1 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
3 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
4 for max-completely-peeled-insns limit.
6 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
8 * ipa-prop.h (ipa_known_type_data): Remove.
9 (ipa_binfo_from_known_type_jfunc): Remove.
11 2014-11-14 Andrew Pinski <apinski@cavium.com>
13 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
15 * config/aarch64/aarch64.md: Include thunderx.md.
16 (generic_sched): Set to no for thunderx.
17 * config/aarch64/thunderx.md: New file.
19 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
24 * config/rs6000/vector.md (VEC_R): Move secondary reload support
25 insns to rs6000.md from vector.md.
26 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
27 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
28 (vec_reload_and_plus_<mptrsize>): Likewise.
30 * config/rs6000/rs6000.md (Fa): New mode attribute to give
31 constraint for the Altivec registers for a type.
32 (RELOAD): New mode iterator for all of the types that have
33 secondary reload address support to load up a base register.
34 (extendsfdf2_fpr): Use correct constraint.
35 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
37 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
38 Generate the non-VSX instruction if all registers were FPRs. Do
39 not use the patterns in vsx.md for scalar operations.
40 (floatsi<mode>2_lfiwax_mem): Likewise.
41 (floatunssi<mode>2_lfiwzx): Likewise.
42 (floatunssi<mode>2_lfiwzx_mem): Likewise.
43 (fix_trunc<mode>di2_fctidz): Likewise.
44 (fixuns_trunc<mode>di2_fctiduz): Likewise.
45 (fctiwz_<mode>): Likewise.
46 (fctiwuz_<mode>): Likewise.
48 (floatdidf2_fpr): Likewise.
49 (floatdidf2_mem): Likewise.
50 (floatunsdidf2): Likewise.
51 (floatunsdidf2_fcfidu): Likewise.
52 (floatunsdidf2_mem): Likewise.
53 (floatdisf2_fcfids): Likewise.
54 (floatdisf2_mem): Likewise.
55 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
56 it more obvious that the code is for pre-ISA 2.06 machines.
57 (floatdisf2_internal2): Likewise.
58 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
59 Generate the non-VSX instruction if all registers were FPRs. Do
60 not use the patterns in vsx.md for scalar operations.
61 (floatunsdisf2_mem): Likewise.
62 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
63 handlers here from vector.md, and expand the types we generate
65 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
66 (vec_reload_and_plus_<mptrsize>): Likewise.
68 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
69 vector forms of the instructions. Move VSX scalar forms to
70 rs6000.md, and add support for -mupper-regs-sf.
71 (vsx_floatuns<VSi><mode>2): Likewise.
72 (vsx_fix_trunc<mode><VSi>2): Likewise.
73 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
74 (vsx_float_fix_<mode>2): Delete DF version, rename to
76 (vsx_float_fix_v2df2): Likewise.
78 2014-11-14 Martin Jambor <mjambor@suse.cz>
80 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
81 (ipa_pass_through_data): Removed field type_preserved.
82 (ipa_ancestor_jf_data): removed fields type and type_preserved.
83 (ipa_jump_func): Removed field known_type.
84 (ipa_get_jf_known_type_offset): Removed.
85 (ipa_get_jf_known_type_base_type): Likewise.
86 (ipa_get_jf_known_type_component_type): Likewise.
87 (ipa_get_jf_ancestor_type): Likewise.
88 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
89 (ipa_get_jf_pass_through_result): Likewise.
90 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
91 (values_equal_for_ipcp_p): Removed BINFO handling.
92 (ipa_get_indirect_edge_target_1): Updated comment.
93 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
94 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
95 (ipa_set_jf_known_type): Removed.
96 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
98 (ipa_set_jf_arith_pass_through): Likewise.
99 (ipa_set_ancestor_jf): Likewise.
100 (ipa_binfo_from_known_type_jfunc): Removed.
101 (prop_type_change_info): Removed fields known_current_type and
102 multiple_types_encountered.
103 (extr_type_from_vtbl_ptr_store): Removed.
104 (check_stmt_for_type_change): Do not attempt to identify changed type.
105 (detect_type_change_from_memory_writes): Do not set the removed fields,
106 always set jfunc to unknown.
107 (compute_complex_assign_jump_func): Do not detect dynamic type change.
108 (compute_complex_ancestor_jump_func): Likewise.
109 (compute_known_type_jump_func): Removed.
110 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
111 change. Do not comute known type jump functions.
112 (combine_known_type_and_ancestor_jfs): Removed.
113 (update_jump_functions_after_inlining): Removed handling of
114 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
115 (ipa_write_jump_function): Do not stream removed fields or known type
117 (ipa_read_jump_function): Likewise.
119 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
121 * lra-int.h (lra_create_live_ranges): Add parameter.
122 * lra-lives.c (temp_bitmap): Move higher.
123 (initiate_live_solver): Move temp_bitmap initialization into
124 lra_live_ranges_init.
125 (finish_live_solver): Move temp_bitmap clearing into
127 (process_bb_lives): Add parameter. Use it to control live info
128 update and dead insn elimination. Pass it to mark_regno_live and
130 (lra_create_live_ranges): Add parameter. Pass it to
132 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
133 initiate_live_solver and finish_live_solver.
134 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
135 Use temp_bitmap to update avail_cands.
136 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
137 check with lra_need_for_spill_p after live range pass. Switch on
138 rematerialization pass.
140 2014-11-14 Martin Jambor <mjambor@suse.cz>
142 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
143 agg_preserved flag instead.
144 (ipa_get_jf_ancestor_type_preserved): Likewise.
145 (ipa_node_params): Rename known_vals to known_csts, update all users.
146 New field known_contexts.
147 (ipa_get_indirect_edge_target): Update prototype.
148 (ipcp_poly_ctx_values_pool): Declare.
149 (ipa_context_from_jfunc): Likewise.
150 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
151 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
152 parameter newline of method dump.
153 * ipa-cp.c (ctxlat): New field.
154 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
155 (ipcp_poly_ctx_values_pool):New variable.
156 (ipa_get_poly_ctx_lat): New function.
157 (print_ipcp_constant_value): New overloaded function for contexts.
158 (print_all_lattices): Also print contexts.
159 (ipa_topo_info): New field contexts;
160 (set_all_contains_variable): Also set the flag in the context lattice.
161 (initialize_node_lattices): Likewise for flag bottom.
162 (ipa_get_jf_ancestor_result): Removed BINFO handling.
163 (ipa_value_from_jfunc): Likewise.
164 (ipa_context_from_jfunc): New function.
165 (values_equal_for_ipcp_p): New overloaded function for contexts.
166 (allocate_and_init_ipcp_value): Construct the value.
167 (allocate_and_init_ipcp_value): New overloaded function for contexts.
168 (propagate_scalar_accross_jump_function): Removed handling of
169 KNOWN_TYPE jump functions.
170 (propagate_context_accross_jump_function): New function.
171 (propagate_constants_accross_call): Also propagate contexts.
172 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
173 (ipa_get_indirect_edge_target): Likewise.
174 (devirtualization_time_bonus): Likewise.
175 (gather_context_independent_values): Create and populate known_contexts
176 vector rather than known_binfos.
177 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
178 (estimate_local_effects): Likewise.
179 (add_all_node_vals_to_toposort): Also add contexts to teir topological
181 (ipcp_propagate_stage): Also propagate effects of contexts.
182 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
183 ipa_get_indirect_edge_target_1.
184 (cgraph_edge_brings_value_p): New overloaded function for contexts.
185 (create_specialized_node): Work on contexts rather than BINFOs.
186 (find_more_contexts_for_caller_subset): New function.
187 (known_contexts_useful_p): New function.
188 (copy_useful_known_contexts): Likewise.
189 (modify_known_vectors_with_val): Likewise.
190 (ipcp_val_in_agg_replacements_p): Renamed to
191 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
193 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
194 (decide_about_value): Work on contexts rather than BINFOs.
195 (decide_whether_version_node): Likewise.
196 (ipcp_driver): Initialize the new alloc pool.
197 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
198 printing of edge contexts.
199 (ipa_set_ancestor_jf): Replace assert with conditional setting of
200 type_preserved to false.
201 (update_jump_functions_after_inlining): Use access function instead of
202 reading agg_preserved directly. Store combined context in the ancestor
204 (try_make_edge_direct_virtual_call): Work on contexts rather than
206 (update_indirect_edges_after_inlining): Get context from
207 ipa_context_from_jfunc.
208 (ipa_free_node_params_substructures): Free also known_contexts.
209 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
210 (ipa_free_all_structures_after_iinln): Likewise.
211 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
212 contexts rather than BINFOs.
213 (estimate_edge_devirt_benefit): Likewise.
214 (estimate_edge_size_and_time): Likewise.
215 (estimate_calls_size_and_time): Likewise.
216 (estimate_node_size_and_time): Likewise.
217 (estimate_ipcp_clone_size_and_time): Likewise.
218 (do_estimate_edge_time): Likewise.
219 (do_estimate_edge_size): Likewise.
220 (do_estimate_edge_hints): Likewise.
221 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
222 parameter newline, ouput newline only when it is set.
223 (ipa_polymorphic_call_context::equal_to): New method.
225 2014-11-14 Martin Jambor <mjambor@suse.cz>
227 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
228 users converted to the same specialization as the using class/function
229 or specialization on tree.
230 (ipcp_value): Likewise.
231 (ipcp_lattice): Likewise.
232 (ipcp_agg_lattice): Now derived from tree specialization of
234 (values_topo): Moved to new class value_topo_info.
235 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
237 (print_lattice): Turned into ipcp_lattice::print. Updated all
239 (value_topo_info): New class template.
240 (ipa_topo_info): New field constants. New constructor.
241 (build_toporder_info): Do not clear stack_top, only checkign assert
243 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
245 (set_lattice_contains_variable): Turned into
246 ipcp_lattice::set_contains_variable. Updated all callers.
247 (add_value_source): Turned into ipcp_value::add_source. Updated all
249 (allocate_and_init_ipcp_value): New function.
250 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
251 parameter got default a value. Updated all callers.
252 (add_scalar_value_to_lattice): Removed, users converted to using
253 ipcp_lattice::add_value with default value of the last parameter.
254 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
256 (propagate_effects): Made method of value_topo_info.
257 (cgraph_edge_brings_value_p): Now a template function.
258 (get_info_about_necessary_edges): Likewise.
259 (gather_edges_for_value): Likewise.
260 (perhaps_add_new_callers): Likewise.
261 (decide_about_value): Likewise.
262 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
264 2014-11-14 Jakub Jelinek <jakub@redhat.com>
266 * doc/install.texi (--with-diagnostics-color=): Document.
268 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
269 IFN_GOMP_SIMD_LANE without lhs as useless.
271 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
272 (varying_state): Add true for can_free.
273 (check_call): For builtin or internal !nonfreeing_call_p set
275 (check_stmt): For asm volatile and asm with "memory" set
277 (analyze_function): Clear local->can_free initially, continue
278 calling check_stmt until all flags are computed, dump can_free
280 (pure_const_write_summary): Write can_free flag.
281 (pure_const_read_summary): Read it back.
282 (propagate_pure_const): Propagate also can_free flag, set
283 w->nonfreeing_fn if it is false after propagation.
284 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
285 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
286 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
287 Also return true for IFN_ABNORMAL_DISPATCHER.
288 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
289 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
290 (input_overwrite_node): Read it back.
292 2014-11-14 Jakub Jelinek <jakub@redhat.com>
293 Marek Polacek <polacek@redhat.com>
295 * sanopt.c: Include tree-ssa-operands.h.
296 (struct sanopt_info): Add has_freeing_call_p,
297 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
298 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
299 being_visited_p fields.
300 (struct sanopt_ctx): Add asan_check_map field.
301 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
302 maybe_optimize_asan_check_ifn): New functions.
303 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
305 (pass_sanopt::execute): Call sanopt_optimize even for
307 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
310 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
312 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
313 'if (extract_scalar_result)' to the only place that it is true.
315 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
317 * config.gcc (default_gnu_indirect_function): Set to yes
318 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
321 2014-11-14 Felix Yang <felix.yang@huawei.com>
322 Jiji Jiang <jiangjiji@huawei.com>
324 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
325 VALL mode iterator instead of VALLDI.
328 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
330 * optc-save-gen.awk: Output cl_target_option_eq,
331 cl_target_option_hash, cl_target_option_stream_out,
332 cl_target_option_stream_in functions.
333 * opth-gen.awk: Output prototypes for
334 cl_target_option_eq and cl_target_option_hash.
335 * lto-streamer.h (cl_target_option_stream_out,
336 cl_target_option_stream_in): Declare.
337 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
338 (cl_option_hash_eq): Use cl_target_option_eq.
339 * tree-streamer-in.c (unpack_value_fields): Stream in
341 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
342 DECL_FUNCTION_SPECIFIC_TARGET.
343 (hash_tree): Hash TREE_TARGET_OPTION; visit
344 DECL_FUNCTION_SPECIFIC_TARGET.
345 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
347 (streamer_write_tree_body): Output TS_TARGET_OPTION.
349 2014-11-14 Richard Biener <rguenther@suse.de>
351 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
352 valueization hook defaulted to no_follow_ssa_edges.
353 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
354 2nd valueization hook to gimple_simplify.
355 * tree-ssa-ccp.c (valueize_op_1): New function to be
356 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
358 * tree-vrp.c (vrp_valueize_1): New function to be
359 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
360 (vrp_visit_assignment_or_call): Adjust.
362 2014-11-14 Marek Polacek <polacek@redhat.com>
364 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
365 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
366 folding with TYPE_OVERFLOW_SANITIZED.
368 2014-11-14 Marek Polacek <polacek@redhat.com>
371 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
372 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
373 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
375 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
376 instrument BUILT_IN_UNREACHABLE here.
377 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
379 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
380 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
381 SANITIZE_UNREACHABLE.
382 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
383 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
385 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
387 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
388 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
390 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
392 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
394 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
395 vect_create_epilog_for_reduction): Likewise.
396 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
398 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
401 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
402 numerical immediate handling to...
403 (aarch64_internal_mov_immediate): ...this. New.
404 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
405 (aarch64_mov_operand_p): Relax predicate.
406 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
407 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
409 (*movdi_aarch64): Likewise.
411 2014-11-14 Richard Biener <rguenther@suse.de>
413 * match.pd: Implement more binary patterns exercised by
415 * fold-const.c (sing_bit_p): Export.
416 (exact_inverse): Likewise.
417 (fold_binary_loc): Remove patterns here.
418 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
419 * fold-const.h (sing_bit_p): Declare.
420 (exact_inverse): Likewise.
422 2014-11-14 Marek Polacek <polacek@redhat.com>
424 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
426 2014-11-14 Richard Biener <rguenther@suse.de>
428 * genmatch.c (add_operator): Allow CONSTRUCTOR.
429 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
430 (parser::parse_op): Allow to iterate over predicates.
432 2014-11-14 Jakub Jelinek <jakub@redhat.com>
434 * configure.ac (--with-diagnostics-color): New configure
435 option, default to --with-diagnostics-color=auto.
436 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
437 to determine -fdiagnostics-color= option default.
438 * doc/invoke.texi (-fdiagnostics-color=): Document new
440 * configure: Regenerated.
441 * config.in: Regenerated.
443 2014-11-13 Teresa Johnson <tejohnson@google.com>
445 PR tree-optimization/63841
446 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
448 2014-11-14 Bin Cheng <bin.cheng@arm.com>
450 * timevar.def (TV_SCHED_FUSION): New time var.
451 * passes.def (pass_sched_fusion): New pass.
452 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
453 (extract_base_offset_in_addr, fusion_load_store): New.
454 (arm_sched_fusion_priority): New.
455 (arm_option_override): Disable scheduling fusion by default
456 on non-armv7 processors or ldrd/strd isn't preferred.
457 * sched-int.h (struct _haifa_insn_data): New field.
458 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
459 * sched-rgn.c (rest_of_handle_sched_fusion): New.
460 (pass_data_sched_fusion, pass_sched_fusion): New.
461 (make_pass_sched_fusion): New.
462 * haifa-sched.c (sched_fusion): New.
463 (insn_cost): Handle sched_fusion.
464 (priority): Handle sched_fusion by calling target hook.
465 (enum rfs_decision): New enum value.
466 (rfs_str): New element for RFS_FUSION.
467 (rank_for_schedule): Support sched_fusion.
468 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
469 (schedule_block, fix_tick_ready): Handle sched_fusion.
470 * common.opt (flag_schedule_fusion): New.
471 * tree-pass.h (make_pass_sched_fusion): New.
472 * target.def (fusion_priority): New.
473 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
474 * doc/tm.texi: Regenerated.
475 * doc/invoke.texi (-fschedule-fusion): New.
477 2014-11-13 Rong Xu <xur@google.com>
480 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
481 footer, instead of unconditionally overwritten.
483 2014-11-14 Martin Jambor <mjambor@suse.cz>
485 * cgraph.h (clear_outer_type): Make public. Fix comment.
486 * ipa-devirt.c (possible_polymorphic_call_targets): Use
487 clear_outer_type when resetting the context.
489 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
492 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
493 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
495 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
497 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
498 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
499 * tree-inline.c (estimate_operator_cost): Likewise.
500 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
503 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
504 against VEC_RSHIFT_EXPR.
506 * optabs.h (expand_vec_shift_expr): Remove.
507 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
508 (expand_vec_shift_expr): Remove.
509 * tree.def (VEC_RSHIFT_EXPR): Remove
511 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
513 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
514 (shift_amt_for_vec_perm_mask): New.
515 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
516 and mask appropriate.
518 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
519 (have_whole_vector_shift): New.
520 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
521 looking for vec_shr_optab.
522 (vect_create_epilog_for_reduction): Likewise; also rename local variable
523 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
524 instead of VEC_RSHIFT_EXPRs.
526 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
528 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
530 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
531 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
533 tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
534 vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
535 with vect_gen_perm_mask_checked.
537 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
540 (vect_gen_perm_mask_checked): New.
541 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
542 (vect_gen_perm_mask_any): ...this.
544 (perm_mask_for_reverse): Call can_vec_perm_p and
545 vect_gen_perm_mask_checked.
547 2014-11-13 Felix Yang <felix.yang@huawei.com>
549 * ipa-utils.h: Fix typo in comments.
550 * ipa-profile.c: Likewise.
551 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
553 2014-11-13 Teresa Johnson <tejohnson@google.com>
555 PR tree-optimization/63841
556 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
558 2014-11-13 Teresa Johnson <tejohnson@google.com>
560 PR tree-optimization/63841
561 * tree.c (initializer_zerop): A clobber does not zero initialize.
563 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
565 * optabs.c (prepare_operand): Gracefully fail if the mode of X
566 does not match the operand mode expected by the insn pattern.
568 2014-11-13 Richard Biener <rguenther@suse.de>
570 * match.pd: Add tcc_comparison, inverted_tcc_comparison
571 and inverted_tcc_comparison_with_nans operator lists.
572 Use tcc_comparison in the truth_valued_p predicate definition.
573 Restrict logical_inverted_value with bit_xor to integral types.
574 Build a boolean true for simplifying x |^ !x because of
575 vector types. Implement patterns from forward_propagate_comparison
576 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
577 (get_prop_dest_stmt): Likewise.
578 (pass_forwprop::execute): Do not call it.
579 * fold-const.c (fold_unary_loc): Remove the pattern here.
581 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
582 Andrey Turetskiy <andrey.turetskiy@intel.com>
584 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
586 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
587 accelerator compiler.
588 * config/i386/intelmic-mkoffload.c: New file.
589 * config/i386/t-intelmic: Ditto.
591 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
592 Andrey Turetskiy <andrey.turetskiy@intel.com>
593 Ilya Verbin <ilya.verbin@intel.com>
595 * common.opt (foffload, foffload-abi): New options.
596 * config/i386/i386.c (ix86_offload_options): New static function.
597 (TARGET_OFFLOAD_OPTIONS): Define.
598 * coretypes.h (enum offload_abi): New enum.
599 * doc/tm.texi: Regenerate.
600 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
601 * gcc.c (offload_targets): New static variable.
602 (handle_foffload_option): New static function.
603 (driver_handle_option): Handle OPT_foffload_.
604 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
605 according to offload_targets.
606 * hooks.c (hook_charptr_void_null): New hook.
607 * hooks.h (hook_charptr_void_null): Declare.
608 * lto-opts.c: Include lto-section-names.h.
609 (lto_write_options): Append options from target offload_options hook and
610 store them to offload_lto section. Do not store target-specific,
611 driver and diagnostic options in offload_lto section.
612 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
614 (append_compiler_options, append_linker_options)
615 (append_offload_options): New static functions.
616 (compile_offload_image): Add new arguments with options.
617 Call append_compiler_options and append_offload_options.
618 (compile_images_for_offload_targets): Add new arguments with options.
619 (find_and_merge_options): New static function.
620 (run_gcc): Outline options handling into the new functions:
621 find_and_merge_options, append_compiler_options, append_linker_options.
622 * opts.c (common_handle_option): Don't handle OPT_foffload_.
623 Forbid OPT_foffload_abi_ for non-offload compiler.
624 * target.def (offload_options): New target hook.
626 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
627 Bernd Schmidt <bernds@codesourcery.com>
628 Andrey Turetskiy <andrey.turetskiy@intel.com>
629 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
631 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
632 (process_command): Tweak path construction for the possibility
633 of being configured as an offload compiler.
634 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
635 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
636 (driver::set_up_specs): Tweak path construction for the possibility of
637 being configured as an offload compiler.
638 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
639 (offload_names, offloadbegin, offloadend): New static variables.
640 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
641 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
642 New static functions.
643 (run_gcc): Determine whether offload sections are present. If so, run
644 compile_images_for_offload_targets and return the names of new generated
645 objects to linker. If there are offload sections, but no LTO sections,
646 then return the copies of input objects without link-time recompilation.
648 2014-11-13 Richard Biener <rguenther@suse.de>
650 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
652 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
653 Bernd Schmidt <bernds@codesourcery.com>
654 Andrey Turetskiy <andrey.turetskiy@intel.com>
655 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
657 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
658 * cgraphunit.c: Include omp-low.h.
659 * doc/tm.texi: Regenerate.
660 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
661 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
662 * lto-cgraph.c (output_offload_tables): New function.
663 (input_offload_tables): Likewise.
664 * lto-section-in.c (lto_section_name): Add "offload_table".
665 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
666 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
667 * lto-streamer-out.c (lto_output): Call output_offload_tables.
668 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
669 (output_offload_tables, input_offload_tables): Declare.
670 * omp-low.c: Include common/common-target.h and lto-section-names.h.
671 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
672 (expand_omp_target): Add child_fn into offload_funcs vector.
673 (add_decls_addresses_to_decl_constructor): New function.
674 (omp_finish_file): Likewise.
675 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
676 * target.def (record_offload_symbol): New DEFHOOK.
677 * toplev.c: Include omp-low.h.
678 (compile_file): Call omp_finish_file.
679 * varpool.c: Include omp-low.h.
680 (varpool_node::get_create): Add decl into offload_vars vector.
682 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
683 Ilya Tocar <ilya.tocar@intel.com>
684 Andrey Turetskiy <andrey.turetskiy@intel.com>
685 Bernd Schmidt <bernds@codesourcery.com>
687 * cgraph.c: Include context.h.
688 (cgraph_node::create): Set node->offloadable and g->have_offload if
689 decl have "omp declare target" attribute.
690 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
691 * cgraphunit.c: Include lto-section-names.h.
692 (ipa_passes): Call ipa_write_summaries if there is something to write to
693 OFFLOAD_SECTION_NAME_PREFIX sections.
694 (symbol_table::compile): Set flag_generate_lto if there is something to
696 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
697 * context.c (gcc::context::context): Initialize have_offload with false.
698 * context.h (class context): Add have_offload flag.
699 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
701 (inline_free_summary): Always remove hooks.
702 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
703 from non-offloadable nodes while streaming a node into offload section.
704 (reachable_from_other_partition_p): Likewise.
705 (select_what_to_stream): New function.
706 (compute_ltrans_boundary): Do not call
707 lto_set_symtab_encoder_in_partition if the node should not be streamed.
708 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
709 (section_name_prefix): Declare.
710 * lto-streamer.c (section_name_prefix): New variable.
711 (lto_get_section_name): Use section_name_prefix instead of
712 LTO_SECTION_NAME_PREFIX.
713 * lto-streamer.h (select_what_to_stream): Declare.
714 * omp-low.c: Include context.h.
715 (is_targetreg_ctx): New function.
716 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
717 (create_omp_child_function, check_omp_nesting_restrictions): Use new
718 is_targetreg_ctx function. Replace usage of "omp declare target"
719 attribute with a cgraph_node flag offloadable.
720 (expand_omp_target): Set mark_force_output for offloadable functions.
721 (lower_omp_critical): Set offloadable flag for omp critical symbol.
722 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
723 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
724 if the node should not be streamed out.
725 * tree-pass.h (ipa_write_summaries): New bool argument.
726 * varpool.c: Include context.h.
727 (varpool_node::get_create): Set node->offloadable and g->have_offload if
728 decl have "omp declare target" attribute.
730 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
731 Thomas Schwinge <thomas@codesourcery.com>
732 Ilya Verbin <ilya.verbin@intel.com>
733 Andrey Turetskiy <andrey.turetskiy@intel.com>
735 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
736 (enable_as_accelerator): New variables substituted by configure.
737 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
738 being configured as an offload compiler.
739 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
741 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
742 install for the offload compiler.
743 * config.in: Regenerate.
744 * configure: Regenerate.
745 * configure.ac (real_target_noncanonical, accel_dir_suffix)
746 (enable_as_accelerator): Compute new variables.
747 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
748 (OFFLOAD_TARGETS): List of target names suitable for offloading.
749 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
750 * doc/install.texi (Options specification): Document
751 --enable-as-accelerator-for and --enable-offload-targets.
753 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
755 PR tree-optimization/63828
756 * ipa-polymorphic-call.c (possible_placement_new): Check
757 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
759 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
761 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
762 (REVERSIBLE_CC_MODE): Fix example.
763 (REVERSE_CONDITION): Fix typo.
764 * doc/tm.texi: Regenerate.
766 2014-11-13 Tom de Vries <tom@codesourcery.com>
768 * omp-low.c (pass_data_expand_omp): Set properties_provided to
770 (pass_expand_omp::gate): Remove function. Move gate expression to ...
771 (pass_expand_omp::execute): ... here, as new variable gate. Add early
772 exit if gate is false.
773 (pass_data pass_data_expand_omp_ssa): New pass_data.
774 (class pass_expand_omp_ssa): New pass.
775 (make_pass_expand_omp_ssa): New function.
776 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
777 instead of NEXT_PASS.
778 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
779 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
780 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
781 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
782 cfun->omp_expand_needed.
783 * tree-pass.h: Add define PROP_gimple_eomp.
784 (make_pass_expand_omp_ssa): Declare.
786 2014-11-13 Marek Polacek <polacek@redhat.com>
788 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
789 * fold-const.c (fold_binary_loc): Use it.
790 * match.pd: Likewise.
792 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
794 * lra-lives.c (struct bb_data): Rename to ...
795 (struct bb_data_pseudos): ... this.
796 (initiate_live_solver): Update struct name.
798 2014-11-13 Richard Biener <rguenther@suse.de>
800 * match.pd: Implement conditional expression patterns.
801 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
803 (combine_cond_exprs): Remove.
804 (pass_forwprop::execute): Do not call combine_cond_exprs.
805 * fold-const.c (fold_ternary_loc): Remove patterns here.
806 (pedantic_omit_one_operand_loc): Remove.
808 2014-12-13 Richard Biener <rguenther@suse.de>
811 * match.pd: Implement bswap patterns for transforms checked by
812 gcc.dg/builtin-bswap-8.c.
814 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
816 * lra.c (lra): Switch off rematerialization pass.
818 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
820 * common.opt (flra-remat): New.
821 * opts.c (default_options_table): Add entry for flra_remat.
822 * timevar_def (TV_LRA_REMAT): New.
823 * doc/invoke.texi (-flra-remat): Add description of the new
825 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
826 lra-saves.c. Add lra-remat.c.
827 * Makefile.in (OBJS): Add lra-remat.o.
828 * lra-remat.c: New file.
829 * lra.c: Add info about the rematerialization pass in the top
831 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
832 Process unallocatable regs too.
833 (lra_constraint_new_insn_uid_start): Remove.
834 (lra): Add code for calling rematerialization sub-pass.
835 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
836 (lra_constrain_insn, lra_remat): New prototypes.
837 (lra_eliminate_regs_1): Add parameter.
838 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
839 Process unallocatable hard regs too.
840 (process_bb_lives): Ditto.
841 * lra-spills.c (remove_pseudos): Add argument to
842 lra_eliminate_regs_1 call.
843 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
844 for sp offset calculation.
845 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
846 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
848 (process_insn_for_elimination): Add argument for
849 eliminate_regs_in_insn call.
850 * lra-constraints.c (get_equiv_with_elimination): Add argument
851 for lra_eliminate_regs_1 call.
852 (process_addr_reg): Add parameter. Use it.
853 (process_address_1): Ditto. Add argument for process_addr_reg
855 (process_address): Ditto.
856 (curr_insn_transform): Add parameter. Use it. Add argument for
857 process_address calls.
858 (lra_constrain_insn): New function.
859 (lra_constraints): Add argument for curr_insn_transform call.
861 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
863 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
864 (print_ignored_options): Fix quoting.
865 * opts.c (common_handle_option): Likewise.
866 (set_debug_level): Likewise.
867 * toplev.c (process_options): Likewise.
869 2014-11-12 Jakub Jelinek <jakub@redhat.com>
872 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
873 chain instead of node->indirect_calls. Put !can_throw into
874 conditions of all the loops.
876 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
878 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
879 set pic_offset_table_rtx.
881 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
883 * common/config/mips/mips-common.c (mips_handle_option): Ensure
884 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
885 * config.gcc (--with-fp-32): New option.
886 (--with-odd-spreg-32): Likewise.
887 * config.in (HAVE_AS_DOT_MODULE): New config define.
888 * config/mips/mips-protos.h
889 (mips_secondary_memory_needed): New prototype.
890 (mips_hard_regno_caller_save_mode): Likewise.
891 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
892 (mips_get_arg_info): Assert that V2SFmode is only handled specially
893 with TARGET_PAIRED_SINGLE_FLOAT.
894 (mips_return_mode_in_fpr_p): Likewise.
895 (mips16_call_stub_mode_suffix): Likewise.
896 (mips_get_reg_raw_mode): New static function.
897 (mips_return_fpr_pair): O32 return values span two registers.
898 (mips16_build_call_stub): Likewise.
899 (mips_function_value_regno_p): Support both FP return registers.
900 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
901 specific cases for TARGET_FPXX to move via memory.
902 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
903 than UNITS_PER_FPREG 'span' one register.
904 (mips_dwarf_frame_reg_mode): New static function.
905 (mips_file_start): Switch to using .module instead of .gnu_attribute.
906 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
907 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
908 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
909 slots with two CFI directives even for O32 FP64.
910 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
911 saving/restoring callee-saved registers.
912 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
913 (mips_secondary_memory_needed): New function.
914 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
915 odd-numbered single-precision registers when using TARGET_FLOATXX.
916 Implement -modd-spreg and defaults.
917 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
918 callee-saved behaviour.
919 (mips_hard_regno_caller_save_mode): Implement.
920 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
921 (TARGET_GET_RAW_ARG_MODE): Define target hook.
922 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
923 * config/mips/mips.h (TARGET_FLOAT32): New macro.
924 (TARGET_O32_FP64A_ABI): Likewise.
925 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
926 _MIPS_SPFPSET builtin define.
927 (MIPS_FPXX_OPTION_SPEC): New macro.
928 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
929 --with-odd-spreg-32=* to -m[no-]odd-spreg.
930 (ISA_HAS_ODD_SPREG): New macro.
931 (ISA_HAS_MXHC1): True for anything other than -mfp32.
932 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
933 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
934 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
935 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
936 (SECONDARY_MEMORY_NEEDED): Likewise.
937 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
938 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
939 FP64A ABI extensions.
940 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
942 * config/mips/mips.opt (mfpxx): New target option.
943 (modd-spreg): Likewise.
944 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
945 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
947 * config/mips/t-mti-elf: Remove fp64 multilib.
948 * config/mips/t-mti-linux: Likewise.
949 * configure.ac: Detect .module support.
950 * configure: Regenerate.
951 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
952 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
955 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
958 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
960 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
961 (x86_output_mi_thunk): Set PIC register to %r11. Call
962 ix86_init_large_pic_reg to initialize PIC register.
964 2014-11-12 Kai Tietz <ktietz@redhat.com>
966 * sdbout.c (sdbout_symbol): Eliminate register only
967 if decl isn't a global variable.
969 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
971 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
973 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
974 qualifier_lane_index.
975 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
976 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
977 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
979 (aarch64_types_getlane_qualifiers): Rename to...
980 (aarch64_types_binop_imm_qualifiers): ...this.
981 (TYPES_SHIFTIMM): Follow renaming.
982 (TYPES_GETLANE): Rename to...
983 (TYPE_GETREG): ...this.
985 (aarch64_types_setlane_qualifiers): Rename to...
986 (aarch64_type_ternop_imm_qualifiers): ...this.
987 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
988 (TYPES_SETLANE): Follow renaming above, and rename self to...
989 (TYPE_SETREG): ...this.
991 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
992 (aarch64_simd_expand_args): Add range check and endianness-flip.
994 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
996 * config/aarch64/aarch64-simd.md
997 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
998 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
999 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
1001 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
1002 (aarch64_sq<r>dmulh_lane<mode>): ...this.
1004 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
1005 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
1007 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
1008 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
1010 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
1011 (aarch64_sqdmull_lane<mode>): ...this.
1013 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
1014 (aarch64_sqdmull_laneq<mode>): ...this.
1016 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
1017 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
1018 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
1019 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
1021 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
1022 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
1023 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
1024 bounds check and lane flip.
1026 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
1027 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
1028 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
1030 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
1031 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
1032 renaming of TERNOP_LANE to QUADOP_LANE.
1034 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
1035 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
1036 qualifiers to TERNOP_LANE.
1038 2014-11-12 Tobias Burnus <burnus@net-b.de>
1040 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
1041 * configure.ac: Ditto.
1042 * graphite-interchange.c: Remove HAVE_CLOOG block.
1043 * config.in: Regenerate.
1044 * configure: Regenerate.
1046 2014-11-12 Jiong Wang <jiong.wang@arm.com>
1048 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
1050 (EPILOGUE_USES): Guard the check by epilogue_completed.
1051 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
1053 (aarch64_can_eliminate): Check LR_REGNUM liveness.
1055 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1057 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
1059 2014-11-12 Marek Polacek <polacek@redhat.com>
1061 * fold-const.c (fold_binary_loc): Don't fold if the result
1063 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
1064 -(-A) -> A): Likewise.
1066 2014-11-12 Richard Biener <rguenther@suse.de>
1068 Merge from match-and-simplify branch
1069 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1071 * genmatch.c (user_id): Add new member is_oper_list.
1072 (user_id::user_id): Add new default argument.
1073 (parser::parse_operator_list): New function.
1074 (parser::parse_for): Allow operator-list.
1075 (parser::parse_pattern): Call parser::parse_operator_list.
1076 (parser::parse_operation): Reject operator-list.
1077 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
1079 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1081 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
1083 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1085 * genmatch.c (parser::parse_op): Check if predicate is used in
1088 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1090 * genmatch.c (parser::parse_for): Make sure to have a valid
1091 token to report errors at.
1093 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1095 * genmatch.c (parser): Add new member parsing_match_operand.
1096 (parser::parse_operation): Check for conditional convert in result
1098 (parser::parse_expr): Check for commutative operator in result operand.
1099 Check for :type in match operand.
1100 (parser::parse_simplify): Set/unset parsing_match_operand.
1101 (parser::parser): Initialize parsing_match_operand.
1103 2014-10-28 Richard Biener <rguenther@suse.de>
1105 * genmatch.c (parser::parse_for): Properly check for already
1108 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1110 * genmatch.c (error_cb): Adjust for printing warnings.
1111 (warning_at): New function.
1112 (user_id): Add new member used.
1113 (get_operator): Mark user_id as used.
1114 (parse_for): Warn for unused operators.
1116 2014-11-12 Richard Biener <rguenther@suse.de>
1118 * match.pd: Implement simple complex operations cancelling.
1119 * fold-const.c (fold_unary_loc): Remove them here.
1121 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1123 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1124 Define __NO_MATH_ERRNO__ if -fno-math-errno.
1125 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
1127 2014-11-12 Richard Biener <rguenther@suse.de>
1129 * genmatch.c (::gen_transform): Add capture_info and
1130 expand_compares arguments.
1131 (struct expr): Add is_generic flag.
1132 (lower_cond): New functions lowering [VEC_]COND_EXPR
1133 conditions to a GENERIC and a GIMPLE variant.
1134 (lower): Call lower_cond.
1135 (cmp_operand): Also compare the is_generic flag.
1136 (capture_info::cinfo): Add cond_expr_cond_p flag.
1137 (capture_info::capture_info): Pass down whether the
1138 expression argument is a COND_EXPR condition.
1139 (capture_info::walk_match): Likewise, mark captures
1140 capturing COND_EXPR conditions with cond_expr_cond_p.
1141 (expr::gen_transform): Pass down whether we need to
1142 expand compares from COND_EXPR conditions.
1143 (capture::gen_transform): Expand compares substituted
1144 from COND_EXPR conditions into non-COND_EXPR conditions.
1145 (dt_operand::gen_gimple_expr): Handle explicitely marked
1146 GENERIC expressions as generic.
1147 (dt_simplify::gen): Pass whether we need to expand
1148 conditions to gen_transform. Handle capture results
1149 which are from COND_EXPR conditions.
1150 (main): Pass gimple flag down to lower.
1152 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1155 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
1156 * builtins.c (fold_builtin_arith_overflow): New function.
1157 (fold_builtin_3): Use it.
1158 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
1159 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
1160 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
1161 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
1162 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
1163 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
1164 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
1165 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
1166 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
1167 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
1168 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
1169 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
1170 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
1171 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
1172 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
1173 * expr.c (write_complex_part): Remove prototype, no longer static.
1174 * expr.h (write_complex_part): New prototype.
1175 * function.c (aggregate_value_p): For internal functions return 0.
1176 * gimple-fold.c (arith_overflowed_p): New functions.
1177 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
1178 * gimple-fold.h (arith_overflowed_p): New prototype.
1179 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
1180 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
1182 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
1183 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
1185 * gimplify.c (gimplify_call_expr): Handle gimplification of
1186 internal calls with lhs.
1187 * internal-fn.c (get_range_pos_neg, get_min_precision,
1188 expand_arith_overflow_result_store): New functions.
1189 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
1190 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
1191 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
1192 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
1193 (ubsan_expand_si_overflow_neg_check): Renamed to ...
1194 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
1195 arguments, remove STMT argument. Handle SUB_OVERFLOW with
1196 0 as first argument expansion.
1197 (ubsan_expand_si_overflow_mul_check): Renamed to ...
1198 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
1199 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
1200 Handle MUL_OVERFLOW expansion.
1201 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
1203 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
1204 expand_neg_overflow, prepare arguments for it.
1205 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
1207 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
1208 expand_MUL_OVERFLOW): New functions.
1209 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
1211 * tree-vrp.c (check_for_binary_op_overflow): New function.
1212 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
1213 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
1214 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
1216 * optabs.def (umulv4_optab): New optab.
1217 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
1218 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
1219 * doc/extend.texi (Integer Overflow Builtins): Document
1220 __builtin_*_overflow.
1222 2014-11-12 Richard Biener <rguenther@suse.de>
1224 * genmatch.c (capture_info::capture_info): Add missing
1226 (capture_info::walk_match): Fix COND_EXPR handling.
1227 (capture_info::walk_result): Likewise.
1229 2014-11-12 Richard Biener <rguenther@suse.de>
1232 * match.pd: Add missing conversion to the -(T)-X pattern.
1234 2014-11-12 Richard Biener <rguenther@suse.de>
1237 * hash-table.h: Include ggc.h also for generator programs.
1238 * genmatch.c (ggc_internal_cleared_alloc): Properly define
1239 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
1241 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1243 PR tree-optimization/63761
1244 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
1245 rather than taking it as a parameter. Add some comments to explain the
1246 gsi_move_before in case of load and why canonicalization of bswap into
1247 a rotation is only done for 16bit values.
1248 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
1249 refer to the statement just before cur_stmt. Ignore 16bit bswap that
1250 are already in canonical form. Adapt bswap_replace to removal of its
1253 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
1255 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
1256 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
1257 (for_each_rtx_in_insn): Delete.
1258 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
1259 * df-core.c: Remove reference to for_each_rtx in comment.
1261 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
1263 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
1264 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
1265 * doc/aarch64-acle-intrinsics.texi: Remove.
1266 * doc/arm-acle-intrinsics.texi: Remove.
1267 * doc/arm-neon-intrinsics.texi: Remove.
1268 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
1269 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
1270 Extension section. Add references to public ACLE specification.
1272 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
1274 * tree-vrp.c (register_edge_assert_for_2): Change return type to
1275 void and adjust accordingly.
1276 (register_edge_assert_for_1): Likewise.
1277 (register_edge_assert_for): Likewise.
1278 (find_conditional_asserts): Likewise.
1279 (find_switch_asserts): Likewise.
1280 (find_assert_locations_1): Likewise.
1281 (find_assert_locations): Likewise.
1282 (insert_range_insertions): Inspect the need_assert_for bitmap.
1284 2014-11-11 Andrew Pinski <apinski@cavium.com>
1287 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
1289 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
1290 at the end of the file.
1292 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
1293 Manuel López-Ibáñez <manu@gcc.gnu.org>
1296 * diagnostic-core.h: Add prototype for fatal_error.
1297 * diagnostic.c (fatal_error): New function fatal_error.
1298 * gcc.c (store_arg): Remove have_o_argbuf_index.
1299 (process_command): Check if input and output files are the same.
1300 * toplev.c (init_asm_output): Check if input and output files are
1303 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
1305 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
1307 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
1310 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
1311 smaller than 8 bytes.
1312 (sparc_function_arg_1): Tweak.
1313 (sparc_function_value_1): Tweak.
1315 2014-11-11 David Malcolm <dmalcolm@redhat.com>
1317 * ChangeLog.jit: New.
1318 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
1319 sphinx is installed, falling back to "texinfo" otherwise.
1320 (FULL_DRIVER_NAME): New variable, adapted from the
1321 install-driver target. New target, a symlink within the builddir,
1322 linked to "xgcc", for use when running the JIT library from the
1324 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
1325 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
1327 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
1328 sphinx is installed, falling back to "texinfo" otherwise.
1329 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
1330 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
1331 * configure: Regenerate.
1332 * doc/install.texi (--enable-host-shared): Specify that this is
1333 required when building libgccjit.
1334 (Tools/packages necessary for modifying GCC): Add Sphinx.
1335 * timevar.def (TV_JIT_REPLAY): New.
1340 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1343 * configure: Regenerate.
1345 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
1347 * config/aarch64/aarch64-simd.md
1348 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
1349 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
1350 are punning between float vectors and integer vectors.
1352 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1354 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
1355 open-coded swap with std::swap to swap values.
1356 (alpha_emit_setcc): Ditto.
1357 (alpha_emit_conditional_move): Ditto.
1358 (alpha_split_tmode_pair): Ditto.
1360 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
1362 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
1363 permutations on power of 2 cases.
1365 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1367 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
1368 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
1370 2014-11-11 Richard Biener <rguenther@suse.de>
1372 * tree-core.h (pedantic_lvalues): Remove.
1373 * fold-const.c (pedantic_lvalues): Likewise.
1374 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
1376 2014-11-11 Martin Liska <mliska@suse.cz>
1380 * ipa-icf.c (sem_function::merge): Add new target symbol alias
1382 (sem_variable::merge): Likewise.
1383 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
1385 2014-11-11 Richard Biener <rguenther@suse.de>
1387 * match.pd: Implement patterns from associate_plusminus
1388 and factor in differences from the fold-const.c implementation.
1389 * fold-const.c (fold_binary_loc): Remove patterns here.
1390 * tree-ssa-forwprop.c (associate_plusminus): Remove.
1391 (pass_forwprop::execute): Don't call it.
1392 * tree.c (tree_nop_conversion_p): New function, factored
1393 from tree_nop_conversion.
1394 * tree.h (tree_nop_conversion_p): Declare.
1396 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1398 * system.h: Include algorithm and utility.
1399 * rtl.h: Do not include utility here.
1400 * wide-int.h: Ditto.
1401 * tree-vect-data-refs.c (swap): Remove template.
1402 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
1404 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1408 * system.h: Include <string> before "safe-ctype.h"
1409 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
1410 calls to min/max with wi namespace.
1411 * ipa-chkp.c: Don't include <string>.
1413 2014-11-11 Terry Guo <terry.guo@arm.com>
1415 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
1416 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
1418 (*thumb1_movhf): Likewise.
1420 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1422 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
1423 instead of INT64_MAX.
1425 2014-11-11 Tobias Burnus <burnus@net-b.de>
1427 * doc/install.texi (Prerequisites): Remove CLooG.
1429 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
1431 * ipa-inline.c (edge_badness): Adjust.
1432 (inline_small_functions): Likewise.
1433 * predict.c (propagate_freq): Likewise.
1434 (estimate_bb_frequencies): Likewise.
1435 * sreal.c (sreal::dump): Rename from dump_sreal.
1437 (copy): Remove function.
1438 (sreal::shift_right): Rename from sreal_sift_right.
1439 (sreal::normalize): Rename from normalize.
1440 (sreal_init): Remove function.
1441 (sreal::to_int): Rename from sreal_to_int.
1442 (sreal_compare): Remove function.
1443 (sreal::operator+): Rename from sreal_add.
1444 (sreal::operator-): Rename from sreal_sub.
1445 (sreal::operator*): Rename from sreal_mul.
1446 (sreal::operator/): Rename from sreal_div.
1447 * sreal.h (class sreal): Adjust.
1448 (inline sreal &operator+=): New operator.
1449 (inline sreal &operator-=): Likewise.
1450 (inline sreal &operator/=): Likewise.
1451 (inline sreal &operator*=): Likewise.
1452 (inline bool operator!=): Likewise.
1453 (inline bool operator>): Likewise.
1454 (inline bool operator<=): Likewise.
1455 (inline bool operator>=): Likewise.
1457 2014-11-11 Bin Cheng <bin.cheng@arm.com>
1459 * sched-deps.c (sched_analyze_1): Check pending list if it is not
1460 less than MAX_PENDING_LIST_LENGTH.
1461 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
1463 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1465 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
1466 swap with std::swap to swap values.
1467 (ix86_fixup_binary_operands): Ditto.
1468 (ix86_binary_operator_ok): Ditto.
1469 (ix86_prepare_fp_compare_args): Ditto.
1470 (ix86_expand_branch): Ditto.
1471 (ix86_expand_carry_flag_compare): Ditto.
1472 (ix86_expand_int_movcc): Ditto.
1473 (ix86_prepare_sse_fp_compare_args): Ditto.
1474 (ix86_expand_sse_fp_minmax): Ditto.
1475 (ix86_expand_int_vcond): Ditto.
1476 (ix86_split_long_move): Ditto.
1477 (ix86_expand_sse_comi): Ditto.
1478 (ix86_expand_sse_compare_and_jump): Ditto.
1479 (ix86_expand_sse_compare_mask): Ditto.
1480 * config/i386/i386.md (*add<mode>_1): Ditto.
1481 (addsi_1_zext): Ditto.
1484 (*add<mode>_2): Ditto.
1485 (*addsi_2_zext): Ditto.
1486 (*add<mode>_3): Ditto.
1487 (*addsi_3_zext): Ditto.
1488 (*add<mode>_5): Ditto.
1489 (absneg splitter): Ditto.
1491 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1494 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
1497 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
1498 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
1499 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
1500 be reloaded through memory.
1504 2014-11-11 Jakub Jelinek <jakub@redhat.com>
1505 Martin Liska <mliska@suse.cz>
1507 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
1508 (func_checker::compare_gimple_call): Compare gimple_call_fn,
1509 gimple_call_chain, gimple_call_fntype and call flags.
1511 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
1513 PR rtl-optimization/63620
1514 PR rtl-optimization/63799
1515 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
1516 and setting PIC pseudo insns.
1517 (lra_create_live_ranges): Fix the typo.
1519 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
1522 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
1523 SSA copies whose source and destination names both occur in
1526 2014-11-10 Roman Gareev <gareevroman@gmail.com>
1528 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
1529 * common.opt: Remove using of fgraphite-code-generator flag.
1530 * flag-types.h: Likewise.
1531 * graphite.c: Remove using of CLooG.
1532 * graphite-blocking.c: Likewise.
1533 * graphite-dependences.c: Likewise.
1534 * graphite-poly.c: Likewise.
1535 * graphite-poly.h: Likewise.
1536 * graphite-scop-detection.c: Likewise.
1537 * graphite-sese-to-poly.c: Likewise.
1538 * graphite-clast-to-gimple.c: Removed.
1539 * graphite-clast-to-gimple.h: Likewise.
1540 * graphite-htab.h: Likewise.
1542 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1544 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
1547 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1549 * config/frv/frv.c (frv_io_handle_use_1): Delete.
1550 (frv_io_handle_use): Use find_all_hard_regs.
1552 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1554 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
1555 than an rtx *. Take the regstate_t directly rather than via a void *.
1556 Return a bool rather than an int. Iterate over all subrtxes here.
1557 (frv_registers_conflict_p): Update accordingly.
1559 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1561 * config/frv/frv.c: Include rtl-iter.h.
1562 (frv_acc_group_1): Delete.
1563 (frv_acc_group): Use FOR_EACH_SUBRTX.
1565 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1567 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
1568 (frv_clear_registers_used): Delete.
1569 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
1571 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
1574 * calls.c (initialize_argument_information): When emitting thunk call
1575 use original memory placement of the argument.
1577 2014-11-10 Renlin Li <renlin.li@arm.com>
1580 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
1582 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1584 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
1585 bswaphi if available.
1587 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
1589 * config/nvptx/nvptx.c: New file.
1590 * config/nvptx/nvptx.h: New file.
1591 * config/nvptx/nvptx-protos.h: New file.
1592 * config/nvptx/nvptx.md: New file.
1593 * config/nvptx/t-nvptx: New file.
1594 * config/nvptx/nvptx.opt: New file.
1595 * common/config/nvptx/nvptx-common.c: New file.
1596 * config.gcc: Handle nvptx-*-*.
1598 2014-11-10 Richard Biener <rguenther@suse.de>
1600 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
1601 released operands on the free list.
1603 2014-11-10 Richard Biener <rguenther@suse.de>
1605 * match.pd: Implement pattern from simplify_mult.
1606 * tree-ssa-forwprop.c (simplify_mult): Remove.
1607 (pass_forwprop::execute): Do not call simplify_mult.
1609 2014-11-10 Richard Biener <rguenther@suse.de>
1611 PR tree-optimization/63800
1612 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
1613 we can restore the previous availability in after_dom_children.
1614 (eliminate_dom_walker::after_dom_children): Restore
1615 previous availability.
1617 2014-11-10 Richard Biener <rguenther@suse.de>
1620 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
1621 properly treat the embedded multiplication as commutative
1622 when looking for feeding negates.
1624 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
1626 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
1628 2014-11-10 Martin Liska <mliska@suse.cz>
1630 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
1631 for the test because of default char signedness
1632 on powerpc64 target.
1634 2014-11-10 Richard Biener <rguenther@suse.de>
1636 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
1637 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
1638 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
1640 2014-11-10 Richard Biener <rguenther@suse.de>
1642 * match.pd: Move rest of the conversion combining patterns
1643 from tree-ssa-forwprop.c.
1644 * tree-ssa-forwprop.c (combine_conversions): Remove.
1645 (pass_forwprop::execute): Do not call it.
1647 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
1649 * gimple-low.c (lower_function_body): Clear the location of the first
1650 inserted representative return if it also fills in for the fallthru.
1652 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
1654 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
1655 that bb is always executed to early exit. Use predicate of
1656 cd-equivalent block for join blocks if it exists.
1657 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
1658 (tree_if_conversion): Free post-dominance information.
1660 2014-11-09 Jason Merrill <jason@redhat.com>
1662 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
1663 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
1664 (_mm_mask_cvtusepi32_storeu_epi16)
1665 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
1667 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
1669 * config/avr/predicates.md (low_io_address_operand): Fix typo.
1671 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
1673 PR rtl-optimization/63620
1674 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
1675 name. Move to lra.c. Make it external.
1676 (substitute_pseudo_within_insn): Ditto.
1677 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
1679 (undo_optional_reloads): Ditto.
1680 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
1682 (lra_substitute_pseudo_within_insn): Ditto.
1683 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
1684 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
1685 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
1687 (struct bb_data, bb_data_t, bb_data): New.
1688 (get_bb_data, get_bb_data_by_index): Ditto.
1689 (all_hard_regs_bitmap): New.
1690 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
1691 (initiate_live_solver, finish_live_solver): New.
1692 (process_bb_lives): Change return type. Add code updating local
1693 live data and removing dead insns. Pass new argument to
1694 mark_regno_live and mark_regno_dead. Check changing bb pseudo
1695 life info. Return the result.
1696 (lra_create_live_ranges): Add code to do global pseudo live
1698 (lra_live_ranges_init): Call initiate_live_solver.
1699 (lra_live_ranges_finish): Call finish_live_solver.
1700 * lra.c (lra_dump_bitmap_with_title): New.
1701 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
1702 from lra-constraints.c.
1704 2014-11-09 Richard Biener <rguenther@suse.de>
1706 * match.pd: Add patterns convering two conversions in a row
1708 * fold-const.c (fold_unary_loc): Remove them here.
1709 * tree-ssa-forwprop.c (combine_conversions): Likewise.
1710 * genmatch.c (dt_node::gen_kids): Check whether we may
1711 follow SSA use-def chains.
1713 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1715 * config/aarch64/aarch64.c: Include rtl-iter.h.
1716 (aarch64_tls_operand_p_1): Delete.
1717 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
1719 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1721 * config/arm/arm.c (arm_note_pic_base): Delete.
1722 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
1724 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1726 * config/arm/arm.c: Include rtl-iter.h.
1727 (arm_tls_referenced_p_1): Delete.
1728 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
1730 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1732 * config/arm/aarch-common.c: Include rtl-iter.h.
1733 (search_term, arm_find_sub_rtx_with_search_term): Delete.
1734 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
1735 (arm_get_set_operands): Pass the insn pattern rather than the
1737 (arm_no_early_store_addr_dep): Likewise.
1739 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
1741 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
1743 (thumb_set_return_address): Likewise.
1745 2014-11-07 Jeff Law <law@redhat.com>
1747 PR tree-optimization/61515
1748 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
1749 stack rather than looking at every SSA_NAME's value.
1751 2014-11-07 Richard Biener <rguenther@suse.de>
1753 PR tree-optimization/63605
1754 * fold-const.c (fold_binary_loc): Properly use element_precision
1755 for types that may not be scalar.
1757 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
1760 * config/i386/i386.md (builtin_setjmp_receiver): Use
1761 pic_offset_table_rtx for PIC register.
1762 (nonlocal_goto_receiver): Delete.
1764 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
1766 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
1767 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
1769 2014-11-07 Martin Liska <mliska@suse.cz>
1772 * cgraphunit.c (cgraph_node::create_wrapper):
1773 TREE_ADDRESSABLE is set to false for a newly created thunk.
1775 2014-11-07 Martin Liska <mliska@suse.cz>
1778 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
1779 Missing checking for CASE_LOW and CASE_HIGH added.
1781 2014-11-07 Martin Liska <mliska@suse.cz>
1784 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
1785 is correctly handled for thunks created by IPA ICF.
1787 2014-11-07 Jiong Wang <jiong.wang@arm.com>
1788 2014-11-07 Richard Biener <rguenther@suse.de>
1790 PR tree-optimization/63676
1791 * gimple-fold.c (fold_gimple_assign): Do not fold node when
1792 TREE_CLOBBER_P be true.
1794 2014-11-07 Richard Biener <rguenther@suse.de>
1797 * match.pd: Guard conflicting GENERIC pattern properly.
1799 2014-11-07 Richard Biener <rguenther@suse.de>
1801 * match.pd: Add patterns for POINTER_PLUS_EXPR association
1802 and special patterns from tree-ssa-forwprop.c
1803 * fold-const.c (fold_binary_loc): Remove them here.
1804 * tree-ssa-forwprop.c (to_purge): New global bitmap.
1805 (fwprop_set_lattice_val): New function.
1806 (fwprop_invalidate_lattice): Likewise.
1807 (remove_prop_source_from_use): Instead of purging dead EH
1808 edges record blocks to do that in to_purge.
1809 (tidy_after_forward_propagate_addr): Likewise.
1810 (forward_propagate_addr_expr): Invalidate the lattice for
1811 SSA names we release.
1812 (simplify_conversion_from_bitmask): Likewise.
1813 (simplify_builtin_call): Likewise.
1814 (associate_pointerplus_align): Remove.
1815 (associate_pointerplus_diff): Likewise.
1816 (associate_pointerplus): Likewise.
1817 (fold_all_stmts): Merge with ...
1818 (pass_forwprop::execute): ... the original loop over all
1819 basic-blocks. Delay purging dead EH edges and invalidate
1820 the lattice for SSA names we release.
1822 2014-11-07 Terry Guo <terry.guo@arm.com>
1824 * config/arm/arm.opt (masm-syntax-unified): New option.
1825 * doc/invoke.texi (-masm-syntax-unified): Document new option.
1826 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
1827 (ASM_APP_ON): Redefined.
1828 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
1829 code always use UAL syntax.
1830 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
1831 * config/arm/thumb1.md: Likewise.
1833 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
1835 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
1836 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
1839 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
1841 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
1842 Set default_mips_arch and default_mips_abi instead of tm_defines.
1843 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
1845 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
1846 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
1847 based on MIPS_ABI_DEFAULT.
1848 (STANDARD_STARTFILE_PREFIX_2): Ditto.
1850 2014-11-06 Joseph Myers <joseph@codesourcery.com>
1852 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
1853 cases of extended identifiers.
1855 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
1857 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
1859 2014-11-06 DJ Delorie <dj@redhat.com>
1861 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
1863 (movhicc_<code>_<mode>): Likewise.
1864 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
1866 (m32c_eh_return_data_regno): Change to using memregs to avoid
1867 tying up all the compute regs.
1868 (m32c_legitimate_address_p) Subregs are not valid addresses.
1870 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
1872 * function.c (thread_prologue_and_epilogue_insns): No longer static.
1873 * function.h (thread_prologue_and_epilogue_insns): Declare.
1875 * target.def (assemble_undefined_decl): New hooks.
1876 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
1877 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
1878 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
1879 * doc/tm.texi: Regenerate.
1880 * output.h (assemble_undefined_decl): Declare.
1881 (get_fnname_from_decl): Declare.
1882 * varasm.c (assemble_undefined_decl): New function.
1883 (get_fnname_from_decl): New function.
1884 * final.c (rest_of_handle_final): Use it.
1885 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
1886 for nodes without a definition.
1888 * target.def (call_args, end_call_args): New hooks.
1889 * hooks.c (hook_void_rtx_tree): New empty function.
1890 * hooks.h (hook_void_rtx_tree): Declare.
1891 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
1892 * doc/tm.texi: Regenerate.
1893 * calls.c (expand_call): Slightly rearrange the code. Use the two new
1895 (expand_library_call_value_1): Use the two new hooks.
1897 * expr.c (use_reg_mode): Just return for pseudo registers.
1899 * combine.c (try_combine): Don't allow a call as one of the source
1902 * target.def (decl_end): New hook.
1903 * varasm.c (assemble_variable_contents, assemble_constant_contents):
1905 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
1906 * doc/tm.texi: Regenerate.
1908 2014-11-06 Renlin Li <renlin.li@arm.com>
1910 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
1911 (processor): New architecture_version field.
1912 (aarch64_override_options): Initialize aarch64_architecture_version.
1913 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
1914 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
1916 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
1918 * params.def (sra-max-scalarization-size-Ospeed): New.
1919 (sra-max-scalarization-size-Osize): Likewise.
1920 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
1921 (sra-max-scalarization-size-Osize): Likewise.
1922 * toplev.c (process_options): Set default values for new
1924 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
1925 * targhooks.c (get_move_ratio): Remove static designator.
1926 * target.h (get_move_ratio): Declare.
1928 2014-11-06 Marek Polacek <polacek@redhat.com>
1930 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
1931 Remove vector limit.
1933 2014-11-06 Richard Biener <rguenther@suse.de>
1935 * match.pd: Implement bitwise binary and unary simplifications
1936 from tree-ssa-forwprop.c.
1937 * fold-const.c (fold_unary_loc): Remove them here.
1938 (fold_binary_loc): Likewise.
1939 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
1940 (truth_valued_ssa_name): Likewise.
1941 (lookup_logical_inverted_value): Likewise.
1942 (simplify_bitwise_binary_1): Likewise.
1943 (hoist_conversion_for_bitop_p): Likewise.
1944 (simplify_bitwise_binary_boolean): Likewise.
1945 (simplify_bitwise_binary): Likewise.
1946 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
1947 and simplify_bitwise_binary.
1948 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
1949 (decision_tree::insert): Also insert non-expressions.
1951 2014-11-06 Hale Wang <hale.wang@arm.com>
1953 * config/arm/arm-cores.def: Add support for
1954 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
1955 cortex-m1.small-multiply.
1956 * config/arm/arm-tables.opt: Regenerate.
1957 * config/arm/arm-tune.md: Regenerate.
1958 * config/arm/arm.c: Update the rtx-costs for MUL.
1959 * config/arm/bpabi.h: Handle
1960 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
1961 cortex-m1.small-multiply.
1962 * doc/invoke.texi: Document
1963 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
1964 cortex-m1.small-multiply.
1966 2014-11-06 Hale Wang <hale.wang@arm.com>
1968 * config/arm/arm.c: Add cortex-m7 tune.
1969 * config/arm/arm-cores.def: Use cortex-m7 tune.
1971 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
1974 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
1975 (ix86_encode_section_info): Do not check for non-automatic varibles
1976 when setting SYMBOL_FLAG_FAR_ADDR flag.
1977 (x86_64_elf_select_section): Do not check ix86_cmodel here.
1978 (x86_64_elf_unique_section): Ditto.
1979 (x86_elf_aligned_common): Emit tab before .largecomm.
1981 2014-11-05 Joseph Myers <joseph@codesourcery.com>
1983 PR preprocessor/9449
1984 * doc/cpp.texi (Character sets, Tokenization)
1985 (Implementation-defined behavior): Don't refer to UCNs in
1986 identifiers requiring -fextended-identifiers.
1987 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
1988 by default for C99 and later and C++.
1989 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
1990 identifiers needing -fextended-identifiers.
1992 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
1994 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
1995 for 512-bit wide modes.
1996 (expand_vec_perm_1): Use correct versions of patterns.
1997 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
1998 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
2000 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
2006 * tree-chkp-opt.c: New.
2009 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
2011 (GTFILES): Add tree-chkp.c.
2012 * mode-classes.def (MODE_POINTER_BOUNDS): New.
2013 * tree.def (POINTER_BOUNDS_TYPE): New.
2014 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
2015 (POINTER_BOUNDS_MODE): New.
2016 (make_pointer_bounds_mode): New.
2017 * machmode.h (POINTER_BOUNDS_MODE_P): New.
2018 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
2019 (layout_type): Support POINTER_BOUNDS_TYPE.
2020 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
2021 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
2022 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
2023 (type_contains_placeholder_1): Likewise.
2024 (build_common_tree_nodes): Initialize
2025 pointer_bounds_type_node.
2026 * tree.h (POINTER_BOUNDS_TYPE_P): New.
2027 (pointer_bounds_type_node): New.
2028 (POINTER_BOUNDS_P): New.
2029 (BOUNDED_TYPE_P): New.
2031 (CALL_WITH_BOUNDS_P): New.
2032 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2033 (gimple_call_with_bounds_p): New.
2034 (gimple_call_set_with_bounds): New.
2035 (gimple_return_retbnd): New.
2036 (gimple_return_set_retbnd): New
2037 * gimple.c (gimple_build_return): Increase number of ops
2038 for return statement.
2039 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
2041 * gimple-pretty-print.c (dump_gimple_return): Print second op.
2042 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2043 * gimplify.c (gimplify_init_constructor): Avoid infinite
2044 loop during gimplification of bounds initializer.
2045 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
2046 (special_function_p): Use original decl name when analyzing
2047 instrumentation clone.
2048 (arg_data): Add fields special_slot, pointer_arg and
2050 (store_bounds): New.
2051 (emit_call_1): Propagate instrumentation flag for CALL.
2052 (initialize_argument_information): Compute pointer_arg,
2053 pointer_offset and special_slot for pointer bounds arguments.
2054 (finalize_must_preallocate): Preallocate when storing bounds
2056 (compute_argument_addresses): Skip pointer bounds.
2057 (expand_call): Store bounds into tables separately. Return
2058 result joined with resulting bounds.
2059 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
2060 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
2061 (expand_return): Add returned bounds arg. Handle returned bounds.
2062 (expand_gimple_stmt_1): Adjust to new expand_return signature.
2063 (gimple_expand_cfg): Reset rtx bounds map.
2064 * expr.c: Include tree-chkp.h, rtl-chkp.h.
2065 (expand_assignment): Handle returned bounds.
2066 (store_expr_with_bounds): New. Replaces store_expr with new bounds
2067 target argument. Handle bounds returned by calls.
2068 (store_expr): Now wraps store_expr_with_bounds.
2069 * expr.h (store_expr_with_bounds): New.
2070 * function.c: Include tree-chkp.h, rtl-chkp.h.
2071 (bounds_parm_data): New.
2072 (use_register_for_decl): Do not registerize decls used for bounds
2074 (assign_parms_augmented_arg_list): Add bounds of the result
2075 structure pointer as the second argument.
2076 (assign_parm_find_entry_rtl): Mark bounds are never passed on
2078 (assign_parm_is_stack_parm): Likewise.
2079 (assign_parm_load_bounds): New.
2080 (assign_bounds): New.
2081 (assign_parms): Load bounds and determine a location for
2083 (diddle_return_value_1): New.
2084 (diddle_return_value): Handle returned bounds.
2085 * function.h (rtl_data): Add field for returned bounds.
2086 * varasm.c: Include tree-chkp.h.
2087 (output_constant): Support POINTER_BOUNDS_TYPE.
2088 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
2089 (ultimate_transparent_alias_target): Move up.
2090 (make_decl_rtl): For instrumented function use
2091 name of the original decl.
2092 (assemble_start_function): Mark function as global
2093 in case it is instrumentation clone of the global
2095 (do_assemble_alias): Follow transparent alias chain
2096 for identifier. Check if original alias is public.
2097 (maybe_assemble_visibility): Use visibility of the
2098 original function for instrumented version.
2099 (default_unique_section): Likewise.
2100 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
2101 (init_emit_once): Build pointer bounds zero constants.
2102 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
2103 * target.def (builtin_chkp_function): New.
2104 (chkp_bound_type): New.
2105 (chkp_bound_mode): New.
2106 (chkp_make_bounds_constant): New.
2107 (chkp_initialize_bounds): New.
2108 (load_bounds_for_arg): New.
2109 (store_bounds_for_arg): New.
2110 (load_returned_bounds): New.
2111 (store_returned_bounds): New.
2112 (chkp_function_value_bounds): New.
2113 (setup_incoming_vararg_bounds): New.
2114 (function_arg): Update hook description with new possible return
2116 * targhooks.h (default_load_bounds_for_arg): New.
2117 (default_store_bounds_for_arg): New.
2118 (default_load_returned_bounds): New.
2119 (default_store_returned_bounds): New.
2120 (default_chkp_bound_type): New.
2121 (default_chkp_bound_mode): New.
2122 (default_builtin_chkp_function): New.
2123 (default_chkp_function_value_bounds): New.
2124 (default_chkp_make_bounds_constant): New.
2125 (default_chkp_initialize_bounds): New.
2126 (default_setup_incoming_vararg_bounds): New.
2127 * targhooks.c (default_load_bounds_for_arg): New.
2128 (default_store_bounds_for_arg): New.
2129 (default_load_returned_bounds): New.
2130 (default_store_returned_bounds): New.
2131 (default_chkp_bound_type): New.
2132 (default_chkp_bound_mode); New.
2133 (default_builtin_chkp_function): New.
2134 (default_chkp_function_value_bounds): New.
2135 (default_chkp_make_bounds_constant): New.
2136 (default_chkp_initialize_bounds): New.
2137 (default_setup_incoming_vararg_bounds): New.
2138 * builtin-types.def (BT_BND): New.
2139 (BT_FN_PTR_CONST_PTR): New.
2140 (BT_FN_CONST_PTR_CONST_PTR): New.
2141 (BT_FN_BND_CONST_PTR): New.
2142 (BT_FN_CONST_PTR_BND): New.
2143 (BT_FN_PTR_CONST_PTR_SIZE): New.
2144 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
2145 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
2146 (BT_FN_VOID_CONST_PTR_SIZE): New.
2147 (BT_FN_VOID_PTR_BND): New.
2148 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
2149 (BT_FN_BND_CONST_PTR_SIZE): New.
2150 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
2151 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
2152 * chkp-builtins.def: New.
2153 * builtins.def: include chkp-builtins.def.
2154 (DEF_CHKP_BUILTIN): New.
2155 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
2156 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
2157 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
2158 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
2159 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
2160 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
2161 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
2162 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
2163 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
2164 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
2165 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
2166 (std_expand_builtin_va_start): Init bounds for va_list.
2167 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
2168 __CHKP__ macro when Pointer Bounds Checker is on.
2169 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
2170 * passes.def (pass_ipa_chkp_versioning): New.
2171 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
2172 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
2173 (pass_chkp_instrumentation_passes): New.
2174 (pass_ipa_chkp_produce_thunks): New.
2175 (pass_local_optimization_passes): New.
2176 (pass_chkp_opt): New.
2177 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
2178 (make_pass_ipa_chkp_produce_thunks): New.
2179 (make_pass_chkp): New.
2180 (make_pass_chkp_opt): New.
2181 (make_pass_early_local_passes): Renamed to ...
2182 (make_pass_build_ssa_passes): This.
2183 (make_pass_chkp_instrumentation_passes): New.
2184 (make_pass_local_optimization_passes): New.
2185 * passes.c (pass_manager::execute_early_local_passes): Execute
2186 early passes in three steps.
2187 (execute_all_early_local_passes): Renamed to ...
2188 (execute_build_ssa_passes): This.
2189 (pass_data_early_local_passes): Renamed to ...
2190 (pass_data_build_ssa_passes): This.
2191 (pass_early_local_passes): Renamed to ...
2192 (pass_build_ssa_passes): This.
2193 (pass_data_chkp_instrumentation_passes): New.
2194 (pass_chkp_instrumentation_passes): New.
2195 (pass_data_local_optimization_passes): New.
2196 (pass_local_optimization_passes): New.
2197 (make_pass_early_local_passes): Renamed to ...
2198 (make_pass_build_ssa_passes): This.
2199 (make_pass_chkp_instrumentation_passes): New.
2200 (make_pass_local_optimization_passes): New.
2201 * c-family/c.opt (fcheck-pointer-bounds): New.
2202 (fchkp-check-incomplete-type): New.
2203 (fchkp-zero-input-bounds-for-main): New.
2204 (fchkp-first-field-has-own-bounds): New.
2205 (fchkp-narrow-bounds): New.
2206 (fchkp-narrow-to-innermost-array): New.
2207 (fchkp-optimize): New.
2208 (fchkp-use-fast-string-functions): New.
2209 (fchkp-use-nochk-string-functions): New.
2210 (fchkp-use-static-bounds): New.
2211 (fchkp-use-static-const-bounds): New.
2212 (fchkp-treat-zero-dynamic-size-as-infinite): New.
2213 (fchkp-check-read): New.
2214 (fchkp-check-write): New.
2215 (fchkp-store-bounds): New.
2216 (fchkp-instrument-calls): New.
2217 (fchkp-instrument-marked-only): New.
2219 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
2220 (handle_bnd_legacy): New.
2221 (handle_bnd_instrument): New.
2222 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
2223 and bnd_instrument. Fix documentation.
2224 (c_common_format_attribute_table): Likewsie.
2225 * toplev.c: include tree-chkp.h.
2226 (process_options): Check Pointer Bounds Checker is supported.
2227 (compile_file): Add chkp_finish_file call.
2228 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
2229 to handle instrumentation clones properly.
2230 (propagate_constants_accross_call): Do not propagate
2231 through instrumentation thunks.
2232 * ipa-pure-const.c (propagate_pure_const): Support
2234 * ipa-inline.c (early_inliner): Check edge has summary allocated.
2235 * ipa-split.c: Include tree-chkp.h.
2237 (split_part_set_ssa_name_p): New.
2238 (consider_split): Do not split retbnd and retval
2240 (insert_bndret_call_after): new.
2241 (split_function): Propagate Pointer Bounds Checker
2242 instrumentation marks and handle returned bounds.
2243 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
2244 into bit field and add with_bounds field.
2245 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
2246 with_bounds field for instrumented calls.
2247 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
2248 CALL_WITH_BOUNDS_P flag for calls.
2249 * tree-ssa-ccp.c: Include tree-chkp.h.
2250 (insert_clobber_before_stack_restore): Handle
2251 BUILT_IN_CHKP_BNDRET calls.
2252 * tree-ssa-dce.c: Include tree-chkp.h.
2253 (propagate_necessity): For free call fed by alloc check
2254 bounds are also provided by the same alloc.
2255 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
2257 * tree-inline.c: Include tree-chkp.h.
2258 (declare_return_variable): Add arg holding
2259 returned bounds slot. Create and initialize returned bounds var.
2260 (remap_gimple_stmt): Handle returned bounds.
2261 Return sequence of statements instead of a single statement.
2262 (insert_init_stmt): Add declaration.
2263 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
2264 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
2265 Properly handle bounds in va_arg_pack and va_arg_pack_len.
2266 (expand_call_inline): Handle returned bounds. Add bounds copy
2267 for generated mem to mem assignments.
2268 * tree-inline.h (copy_body_data): Add fields retbnd and
2270 * value-prof.c: Include tree-chkp.h.
2271 (gimple_ic): Support returned bounds.
2272 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
2273 with "chkp ctor" and "bnd_legacy" attributes.
2274 (symtab_remove_unreachable_nodes): Keep initial values for
2275 pointer bounds to be used for checks eliminations.
2276 (process_references): Handle IPA_REF_CHKP.
2277 (walk_polymorphic_call_targets): Likewise.
2278 * ipa-visibility.c (cgraph_externally_visible_p): Mark
2279 instrumented 'main' as externally visible.
2280 (function_and_variable_visibility): Filter instrumentation
2282 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
2284 (cgraph_node): Add instrumented_version, orig_decl and
2285 instrumentation_clone fields.
2286 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
2287 (varpool_node): Add need_bounds_init field.
2288 (cgraph_local_p): New.
2289 * cgraph.c: Include tree-chkp.h.
2290 (cgraph_node::remove): Fix instrumented_version
2291 of the referenced node if any.
2292 (cgraph_node::dump): Dump instrumentation_clone and
2293 instrumented_version fields.
2294 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
2295 references and instrumentation thunks.
2296 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
2297 all not instrumented instrumentation clones alive.
2298 (cgraph_redirect_edge_call_stmt_to_callee): Support
2300 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
2302 (cgraph_rebuild_references): Likewise.
2303 * cgraphunit.c: Include tree-chkp.h.
2304 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
2306 (varpool_finalize_decl): Register statically initialized decls
2307 in Pointer Bounds Checker.
2308 (walk_polymorphic_call_targets): Do not mark generated call to
2309 __builtin_unreachable as with_bounds.
2310 (output_weakrefs): If there are both instrumented and original
2311 versions, output only one of them.
2312 (cgraph_node::expand_thunk): Set with_bounds flag
2313 for created call statement.
2314 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
2315 (ipa_ref): increase size of use field.
2316 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
2317 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2318 (ctor_for_folding): Do not fold constant bounds vars.
2319 * lto-streamer.h (LTO_minor_version): Change minor version from
2321 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
2323 (lto_output_node): Output instrumentation_clone,
2324 thunk.add_pointer_bounds_args and orig_decl field.
2325 (lto_output_ref): Adjust to new ipa_ref::use field size.
2326 (input_overwrite_node): Read instrumentation_clone field.
2327 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
2329 (input_ref): Adjust to new ipa_ref::use field size.
2330 (input_cgraph_1): Compute instrumented_version fields and restore
2331 IDENTIFIER_TRANSPARENT_ALIAS chains.
2332 (lto_output_varpool_node): Output
2333 need_bounds_init value.
2334 (input_varpool_node): Read need_bounds_init value.
2335 * lto-partition.c (add_symbol_to_partition_1): Keep original
2336 and instrumented versions together.
2337 (privatize_symbol_name): Restore transparent alias chain if required.
2338 (add_references_to_partition): Add references to pointer bounds vars.
2339 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2340 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2341 (gen_type_die_with_usage): Skip pointer bounds.
2342 (dwarf2out_global_decl): Likewise.
2343 (is_base_type): Support POINTER_BOUNDS_TYPE.
2344 (gen_formal_types_die): Skip pointer bounds.
2345 (gen_decl_die): Likewise.
2346 * var-tracking.c (vt_add_function_parameters): Skip
2348 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
2350 (sem_variable::merge): Reset need_bounds_init flag.
2351 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
2353 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2354 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2355 (TARGET_LOAD_RETURNED_BOUNDS): New.
2356 (TARGET_STORE_RETURNED_BOUNDS): New.
2357 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
2358 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
2359 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2360 (TARGET_CHKP_BOUND_TYPE): New.
2361 (TARGET_CHKP_BOUND_MODE): New.
2362 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
2363 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
2364 * doc/tm.texi: Regenerated.
2365 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
2368 * doc/invoke.texi (-mmpx): New.
2370 (chkp-max-ctor-size): New.
2371 * config/i386/constraints.md (w): New.
2374 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
2375 * config/i386/i386-modes.def (BND32): New.
2377 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
2378 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
2379 (regclass_map): Add bound registers.
2380 (dbx_register_map): Likewise.
2381 (dbx64_register_map): Likewise.
2382 (svr4_dbx_register_map): Likewise.
2383 (isa_opts): Add -mmpx.
2385 (ix86_option_override_internal): Support MPX ISA.
2386 (ix86_conditional_register_usage): Support bound registers.
2387 (ix86_code_end): Add MPX bnd prefix.
2388 (output_set_got): Likewise.
2389 (print_reg): Avoid prefixes for bound registers.
2390 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
2391 (ix86_print_operand_punct_valid_p): Likewise.
2392 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
2394 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
2395 (ix86_class_likely_spilled_p): Add bound regs support.
2396 (ix86_hard_regno_mode_ok): Likewise.
2397 (x86_order_regs_for_local_alloc): Likewise.
2398 (ix86_bnd_prefixed_insn_p): New.
2399 (ix86_builtins): Add
2400 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
2401 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
2402 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
2403 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
2404 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
2405 IX86_BUILTIN_BNDUPPER.
2406 (builtin_isa): Add leaf_p and nothrow_p fields.
2407 (def_builtin): Initialize leaf_p and nothrow_p.
2408 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
2411 (bdesc_mpx_const): New.
2412 (ix86_init_mpx_builtins): New.
2413 (ix86_init_builtins): Call ix86_init_mpx_builtins.
2414 (ix86_emit_cmove): New.
2415 (ix86_emit_move_max): New.
2416 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
2417 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
2418 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
2419 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
2420 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
2421 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
2422 (ix86_function_value_bounds): New.
2423 (ix86_builtin_mpx_function): New.
2424 (ix86_get_arg_address_for_bt): New.
2425 (ix86_load_bounds): New.
2426 (ix86_store_bounds): New.
2427 (ix86_load_returned_bounds): New.
2428 (ix86_store_returned_bounds): New.
2429 (ix86_mpx_bound_mode): New.
2430 (ix86_make_bounds_constant): New.
2431 (ix86_initialize_bounds):
2432 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2433 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2434 (TARGET_LOAD_RETURNED_BOUNDS): New.
2435 (TARGET_STORE_RETURNED_BOUNDS): New.
2436 (TARGET_CHKP_BOUND_MODE): New.
2437 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2438 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
2439 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
2440 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
2441 (ix86_option_override_internal): Do not
2442 support x32 with MPX.
2443 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
2445 (function_arg_advance_32): Return number of used integer
2447 (function_arg_advance_64): Likewise.
2448 (function_arg_advance_ms_64): Likewise.
2449 (ix86_function_arg_advance): Handle pointer bounds.
2450 (ix86_function_arg): Likewise.
2451 (ix86_function_value_regno_p): Mark fisrt bounds registers as
2452 possible function value.
2453 (ix86_function_value_1): Handle pointer bounds type/mode
2454 (ix86_return_in_memory): Likewise.
2455 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
2456 (ix86_expand_call): Generate returned bounds.
2457 (ix86_setup_incoming_vararg_bounds): New.
2458 (ix86_va_start): Initialize bounds for pointers in va_list.
2459 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
2460 * config/i386/i386.h (TARGET_MPX): New.
2461 (TARGET_MPX_P): New.
2462 (FIRST_PSEUDO_REGISTER): Fix to new value.
2463 (FIXED_REGISTERS): Add bound registers.
2464 (CALL_USED_REGISTERS): Likewise.
2465 (REG_ALLOC_ORDER): Likewise.
2466 (HARD_REGNO_NREGS): Likewise.
2467 (VALID_BND_REG_MODE): New.
2468 (FIRST_BND_REG): New.
2469 (LAST_BND_REG): New.
2470 (reg_class): Add BND_REGS.
2471 (REG_CLASS_NAMES): Likewise.
2472 (REG_CLASS_CONTENTS): Likewise.
2474 (ANY_BND_REG_P): New.
2476 (HI_REGISTER_NAMES): Add bound registers.
2477 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
2479 * config/i386/i386.md (UNSPEC_BNDMK): New.
2480 (UNSPEC_BNDMK_ADDR): New.
2481 (UNSPEC_BNDSTX): New.
2482 (UNSPEC_BNDLDX): New.
2483 (UNSPEC_BNDLDX_ADDR): New.
2484 (UNSPEC_BNDCL): New.
2485 (UNSPEC_BNDCU): New.
2486 (UNSPEC_BNDCN): New.
2487 (UNSPEC_MPX_FENCE): New.
2488 (UNSPEC_SIZEOF): New.
2491 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2492 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2493 (prefix_rep): Check for bnd prefix.
2494 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2495 (length_nobnd): New.
2496 (length): Use length_nobnd when specified.
2497 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2502 (*jcc_1): Add MPX bnd prefix.
2505 (*indirect_jump): Likewise.
2506 (*tablejump_1): Likewise.
2507 (simple_return_internal): Likewise.
2508 (simple_return_internal_long): Likewise.
2509 (simple_return_pop_internal): Likewise.
2510 (simple_return_indirect_internal): Likewise.
2514 (*mov<mode>_internal_mpx): New.
2515 (<mode>_<bndcheck>): New.
2516 (*<mode>_<bndcheck>): New.
2521 move_size_reloc_<mode>): New.
2522 * config/i386/predicates.md (address_mpx_no_base_operand): New.
2523 (address_mpx_no_index_operand): New.
2524 (bnd_mem_operator): New.
2525 (symbol_operand): New.
2526 (x86_64_immediate_size_operand): New.
2527 * config/i386/i386.opt (mmpx): New.
2528 * config/i386/i386-builtin-types.def (BND): New.
2530 (BND_FTYPE_PCVOID_ULONG): New.
2531 (VOID_FTYPE_BND_PCVOID): New.
2532 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
2533 (BND_FTYPE_PCVOID_PCVOID): New.
2534 (BND_FTYPE_PCVOID): New.
2535 (BND_FTYPE_BND_BND): New.
2536 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
2537 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
2538 (ULONG_FTYPE_VOID): New.
2539 (PVOID_FTYPE_BND): New.
2541 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
2543 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
2544 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
2545 pass_cleanup_barriers, pass_delay_slots,
2546 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
2547 pass_shorten_branches, pass_est_nothrow_function_flags,
2548 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
2549 into pass_late_compilation.
2550 (pass_late_compilation): Add.
2551 * passes.c (pass_data_late_compilation, pass_late_compilation,
2552 make_pass_late_compilation): New.
2553 * timevar.def (TV_LATE_COMPILATION): New.
2555 * target.def (omit_struct_return_reg): New data hook.
2556 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
2557 * doc/tm.texi: Regenerate.
2558 * function.c (expand_function_end): Use it.
2560 * target.def (no_register_allocation): New data hook.
2561 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
2562 * doc/tm.texi: Regenerate.
2563 * ira.c (gate_ira): New function.
2564 (pass_data_ira): Set has_gate.
2565 (pass_ira): Add a gate function.
2566 (pass_data_reload): Likewise.
2567 (pass_reload): Add a gate function.
2569 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
2570 no register allocation happens on the target and return.
2571 * final.c (alter_subreg): Ensure register is not a pseudo before
2572 calling simplify_subreg.
2573 (output_operand): Assert that x isn't a pseudo only if doing
2574 register allocation.
2576 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
2579 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
2582 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
2584 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
2585 * rtl.h (SUBREG_P): New macro added.
2587 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
2589 * config/aarch64/aarch64-builtins.c
2590 (aarch64_build_scalar_type): Remove.
2591 (aarch64_scalar_builtin_types, aarch64_simd_type,
2592 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
2593 aarch64_mangle_builtin_vector_type,
2594 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
2595 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
2596 aarch64_init_simd_builtin_types,
2597 aarch64_init_simd_builtin_scalar_types): New.
2598 (aarch64_init_simd_builtins): Refactor.
2599 (aarch64_init_crc32_builtins): Fixup with qualifier.
2600 * config/aarch64/aarch64-protos.h
2601 (aarch64_mangle_builtin_type): Export.
2602 * config/aarch64/aarch64-simd-builtin-types.def: New.
2603 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
2604 (aarch64_mangle_type): Refactor.
2605 * config/aarch64/arm_neon.h: Declare vector types based on
2607 * config/aarch64/t-aarch64: Update dependency.
2609 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
2611 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
2612 atomic_update_decl): Guard declaration with #ifdef.
2614 2014-11-04 Marek Polacek <polacek@redhat.com>
2616 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
2618 2014-11-04 Marek Polacek <polacek@redhat.com>
2620 * Makefile.in (OBJS): Add sanopt.o.
2621 (GTFILES): Add sanopt.c.
2622 * asan.h (asan_expand_check_ifn): Declare.
2623 * asan.c (asan_expand_check_ifn): No longer static.
2624 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
2625 * sanopt.c: ...here. New file.
2627 2014-11-04 Jiong Wang <jiong.wang@arm.com>
2628 2014-11-04 Wilco Dijkstra <wilco.dijkstra@arm.com>
2631 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
2634 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
2636 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
2637 also verify that mode is equal to the mode of op0.
2639 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
2640 emit into a sequence instead.
2642 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2644 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
2646 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
2648 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
2649 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
2650 (reduc_smax_<mode> *2): Rename to...
2651 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
2652 (reduc_umin_<mode> *2): Rename to...
2653 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
2654 (reduc_umax_<mode> *2): Rename to...
2655 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
2657 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
2659 config/arm/neon.md (reduc_plus_*): Rename to...
2660 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
2662 2014-11-04 Michael Collison <michael.collison@linaro.org>
2664 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
2665 to support constraints for CONST_INT in atomic operations.
2666 * config/aarch64/atomics.md
2667 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
2668 (atomic_nand<mode>): Likewise.
2669 (atomic_fetch_<atomic_optab><mode>): Likewise.
2670 (atomic_fetch_nand<mode>): Likewise.
2671 (atomic_<atomic_optab>_fetch<mode>): Likewise.
2672 (atomic_nand_fetch<mode>): Likewise.
2674 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2676 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
2677 of __ARM_FEATURE_IDIV.
2679 2014-11-04 Marek Polacek <polacek@redhat.com>
2681 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
2683 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2685 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
2687 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
2690 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
2691 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
2692 Allow CC mode if HAVE_cbranchcc4.
2694 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
2696 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
2697 with -fdump-go-spec. Anonymous substructures are now flattened and
2698 replaced by their fields (record) or the first named, non-bitfield
2701 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2703 * input.c (expand_location_to_spelling_point): Fix typo.
2704 (expansion_point_location_if_in_system_header): Fix comment.
2706 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2708 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
2710 2014-11-03 Richard Biener <rguenther@suse.de>
2712 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
2713 like ordinary operations.
2714 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
2717 2014-11-03 Joseph Myers <joseph@codesourcery.com>
2719 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
2721 * configure, config.h.in: Regenerate.
2722 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
2723 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
2724 (RS6000_GLIBC_ATOMIC_FENV): New macro.
2725 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
2726 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
2727 (RS6000_GLIBC_ATOMIC_FENV): New macro.
2728 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
2729 (atomic_update_decl): New static variables.
2730 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
2731 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
2732 and __atomic_feupdateenv for soft-float and no-FPRs.
2734 2014-11-03 Richard Biener <rguenther@suse.de>
2736 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
2737 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
2738 * fold-const.c (fold_unary_loc): Remove them here.
2739 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
2740 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
2741 GIMPLE_UNARY_RHS case.
2742 (gimple_fold_stmt_to_constant_1): Likewise.
2743 (replace_stmt_with_simplification): Fix inverted comparison.
2745 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
2747 PR tree-optimization/60770
2748 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
2749 statement should be removed.
2750 (maybe_register_def): Likewise. Replace clobbers with default
2752 (rewrite_dom_walker::before_dom_children): Remove statement if
2753 rewrite_update_stmt says so.
2754 * tree-ssa-live.c: Include tree-ssa.h.
2755 (set_var_live_on_entry): Do not mark undefined variables as live.
2756 (verify_live_on_entry): Do not check undefined variables.
2757 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
2758 of partially undefined variables.
2759 * tree-ssa.c (ssa_undefined_value_p): Likewise.
2760 (execute_update_addresses_taken): Do not drop clobbers.
2762 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
2764 PR tree-optimization/63666
2765 * fold-const.c: Include "optabs.h".
2766 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
2767 can_vec_perm_p permutation to one that is not.
2769 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
2771 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
2773 2014-11-03 Andrew Pinski <apinski@cavium.com>
2775 * config/mips/mips-cpus.def (octeon3): New cpu.
2776 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
2777 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
2778 of the comparison no longer matches mode of the operands.
2779 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
2780 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
2781 (TARGET_OCTEON2): Likewise.
2782 (TUNE_OCTEON): Add Octeon3.
2783 * config/mips/mips.md (processor): Add octeon3.
2784 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
2785 (octeon_arith): Add octeon3.
2786 (octeon_condmove): Remove.
2787 (octeon_condmove_o1): New reservation.
2788 (octeon_condmove_o2): New reservation.
2789 (octeon_condmove_o3_int_on_cc): New reservation.
2790 (octeon_load_o2): Add octeon3.
2791 (octeon_cop_o2): Likewise.
2792 (octeon_store): Likewise.
2793 (octeon_brj_o2): Likewise.
2794 (octeon_imul3_o2): Likewise.
2795 (octeon_imul_o2): Likewise.
2796 (octeon_mfhilo_o2): Likewise.
2797 (octeon_imadd_o2): Likewise.
2798 (octeon_idiv_o2_si): Likewise.
2799 (octeon_idiv_o2_di): Likewise.
2800 (octeon_fpu): Add to the automaton.
2801 (octeon_fpu): New cpu unit.
2802 (octeon_condmove_o2): Check for non floating point modes.
2803 (octeon_load_o2): Add prefetchx.
2804 (octeon_cop_o2): Don't check for octeon3.
2805 (octeon3_faddsubcvt): New reservation.
2806 (octeon3_fmul): Likewise.
2807 (octeon3_fmadd): Likewise.
2808 (octeon3_div_sf): Likewise.
2809 (octeon3_div_df): Likewise.
2810 (octeon3_sqrt_sf): Likewise.
2811 (octeon3_sqrt_df): Likewise.
2812 (octeon3_rsqrt_sf): Likewise.
2813 (octeon3_rsqrt_df): Likewise.
2814 (octeon3_fabsnegmov): Likewise.
2815 (octeon_fcond): Likewise.
2816 (octeon_fcondmov): Likewise.
2817 (octeon_fpmtc1): Likewise.
2818 (octeon_fpmfc1): Likewise.
2819 (octeon_fpload): Likewise.
2820 (octeon_fpstore): Likewise.
2821 * config/mips/mips-tables.opt: Regenerate.
2822 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
2824 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
2826 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
2827 Allow CC mode if HAVE_cbranchcc4.
2829 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2831 * config/arc/arc.c (write_ext_corereg_1): Delete.
2832 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
2834 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2836 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
2837 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
2839 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2841 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
2842 (small_data_pattern_1): Delete.
2843 (small_data_pattern): Use FOR_EACH_SUBRTX.
2845 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2847 * config/arc/arc.c: Include rtl-iter.h.
2848 (arc_rewrite_small_data_1): Delete.
2849 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
2851 2014-11-02 Michael Collison <michael.collison@linaro.org>
2853 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
2854 to support vector modes.
2855 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
2857 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
2859 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
2860 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
2861 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
2862 * optabs.c: (gen_move_insn): Move to expr.c.
2863 * expr.h: Move protypes and enums to optabs.h.
2864 * expr.c: (gen_move_insn): Relocate from optabs.c.
2865 * genemit.c (main): Include insn-codes.h.
2866 * gengtype.c (open_base_files): Include insn-codes.h.
2867 * asan.c: Include insn-codes.h.
2868 * bb-reorder.c: Ditto.
2869 * builtins.c: Ditto.
2871 * cfgexpand.c: Ditto.
2872 * cilk-common.c: Ditto.
2879 * function.c: Ditto.
2881 * internal-fn.c: Ditto.
2882 * loop-unroll.c: Ditto.
2884 * modulo-sched.c: Ditto.
2886 * postreload.c: Ditto.
2890 * shrink-wrap.c: Ditto.
2891 * simplify-rtx.c: Ditto.
2893 * target-globals.c: Ditto.
2894 * targhooks.c: Ditto.
2896 * tree-if-conv.c: Ditto.
2897 * tree-ssa-forwprop.c: Ditto.
2898 * tree-ssa-loop-prefetch.c: Ditto.
2899 * tree-ssa-math-opts.c: Ditto.
2900 * tree-ssa-phiopt.c: Ditto.
2901 * tree-ssa-reassoc.c: Ditto.
2902 * tree-switch-conversion.c: Ditto.
2903 * tree-vect-data-refs.c: Ditto.
2904 * tree-vect-generic.c: Ditto.
2905 * tree-vect-loop.c: Ditto.
2906 * tree-vect-patterns.c: Ditto.
2907 * tree-vect-slp.c: Ditto.
2908 * tree-vect-stmts.c: Ditto.
2909 * tree-vrp.c: Ditto.
2910 * value-prof.c: Ditto.
2911 * config/aarch64/aarch64-builtins.c: Ditto.
2912 * config/alpha/alpha.c: Ditto.
2913 * config/arm/arm.c: Ditto.
2914 * config/cris/cris.c: Ditto.
2915 * config/epiphany/epiphany.c: Ditto.
2916 * config/frv/frv.c: Ditto.
2917 * config/h8300/h8300.c: Ditto.
2918 * config/ia64/ia64.c: Ditto.
2919 * config/iq2000/iq2000.c: Ditto.
2920 * config/m32c/m32c.c: Ditto.
2921 * config/mep/mep.c: Ditto.
2922 * config/microblaze/microblaze.c: Ditto.
2923 * config/mips/mips.c: Ditto.
2924 * config/mn10300/mn10300.c: Ditto.
2925 * config/moxie/moxie.c: Ditto.
2926 * config/msp430/msp430.c: Ditto.
2927 * config/nios2/nios2.c: Ditto.
2928 * config/pa/pa.c: Ditto.
2929 * config/rl78/rl78.c: Ditto.
2930 * config/rs6000/rs6000.c: Ditto.
2931 * config/rx/rx.c: Ditto.
2932 * config/s390/s390.c: Ditto.
2933 * config/sh/sh.c: Ditto.
2934 * config/sh/sh_treg_combine.cc: Ditto.
2935 * config/spu/spu.c: Ditto.
2936 * config/stormy16/stormy16.c: Ditto.
2937 * config/tilegx/mul-tables.c: Ditto.
2938 * config/tilegx/tilegx.c: Ditto.
2939 * config/tilepro/mul-tables.c: Ditto.
2940 * config/tilepro/tilepro.c: Ditto.
2941 * config/vax/vax.c: Ditto.
2943 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2945 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
2946 (CLEAR_BY_PIECES_P): Likewise.
2947 (SET_BY_PIECES_P): Likewise.
2948 (STORE_BY_PIECES_P): Likewise.
2949 * doc/tm.texi: Regenerate.
2950 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
2951 SET_BY_PIECES_P, STORE_BY_PIECES_P.
2952 * expr.c (MOVE_BY_PIECES_P): Remove.
2953 (CLEAR_BY_PIECES_P): Likewise.
2954 (SET_BY_PIECES_P): Likewise.
2955 (STORE_BY_PIECES_P): Likewise.
2956 (can_move_by_pieces): Rewrite in terms of
2957 targetm.use_by_pieces_infrastructure_p.
2958 (emit_block_move_hints): Likewise.
2959 (can_store_by_pieces): Likewise.
2960 (store_by_pieces): Likewise.
2961 (clear_storage_hints): Likewise.
2962 (emit_push_insn): Likewise.
2963 (expand_constructor): Likewise.
2965 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2967 * config/aarch64/aarch64.c
2968 (aarch64_use_by_pieces_infrastructre_p): New.
2969 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
2970 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
2972 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2974 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
2975 (STORE_BY_PIECES_P): Likewise.
2976 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
2977 (mips_move_by_pieces_p): Rename to...
2978 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
2979 parameters, use the default hook implementation as a
2982 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2984 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
2985 (sh_use_by_pieces_infrastructure_p): Likewise.
2986 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
2987 (STORE_BY_PIECES_P): Likewise.
2988 (SET_BY_PIECES_P): Likewise.
2990 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2992 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
2993 (arc_use_by_pieces_infrastructure_p): Likewise.
2994 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
2995 (CAN_MOVE_BY_PIECES): Likewise.
2997 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2999 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
3000 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
3001 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
3002 (CLEAR_BY_PIECES): Likewise.
3003 (SET_BY_PIECES): Likewise.
3004 (STORE_BY_PIECES): Likewise.
3006 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
3008 * target.def (use_by_pieces_infrastructure_p): New.
3009 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
3011 (STORE_BY_PIECES_P): Likewise.
3012 (CLEAR_BY_PIECES_P): Likewise.
3013 (SET_BY_PIECES_P): Likewise.
3014 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
3015 * doc/tm.texi: Regenerate.
3016 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
3017 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
3018 (STORE_BY_PIECES_P): Likewise.
3019 (CLEAR_BY_PIECES_P): Likewise.
3020 (SET_BY_PIECES_P): Likewise.
3021 (STORE_MAX_PIECES): Move to...
3022 * defaults.h (STORE_MAX_PIECES): ...here.
3023 * targhooks.c (get_move_ratio): New.
3024 (default_use_by_pieces_infrastructure_p): Likewise.
3025 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
3026 * target.h (by_pieces_operation): New.
3028 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
3031 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
3032 assignment to 'nargs' variable.
3034 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
3037 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
3038 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
3039 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
3040 be reloaded through memory.
3044 2014-10-31 Jakub Jelinek <jakub@redhat.com>
3046 PR rtl-optimization/63659
3047 * ree.c (update_reg_equal_equiv_notes): New function.
3048 (combine_set_extension, transform_ifelse): Use it.
3050 2014-10-31 Jeff Law <law@redhat.com>
3052 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
3053 and Jonny Grant (collect2).
3055 2014-10-31 Richard Biener <rguenther@suse.de>
3057 * builtins.c (fold_builtin_atomic_always_lock_free): Use
3058 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
3060 (fold_builtin_expect): Likewise.
3061 (integer_valued_real_p): Likewise.
3062 * cfgexpand.c (expand_debug_expr): Likewise.
3063 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
3064 (find_foldable_builtin_expect): Likewise.
3065 * trans-mem.c (thread_private_new_memory): Likewise.
3066 * tree-affine.c (aff_combination_expand): Likewise.
3067 * tree-data-ref.c (initialize_matrix_A): Likewise.
3068 * tree-inline.c (copy_bb): Likewise.
3069 * tree-pretty-print.c (dump_function_name): Likewise.
3070 (print_call_name): Likewise.
3071 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
3072 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
3073 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3074 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
3075 (vect_recog_widen_mult_pattern): Likewise.
3076 (vect_operation_fits_smaller_type): Likewise.
3077 * tree-vrp.c (find_assert_locations_1): Likewise.
3078 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
3079 converts to NOP_EXPR.
3081 2014-10-31 Richard Biener <rguenther@suse.de>
3083 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
3084 CONVERT_EXPRs in generated code.
3085 (dt_simplify::gen): Likewise.
3087 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
3090 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
3091 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
3092 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
3093 using mcount in 32bit PIC mode.
3094 (ix86_elim_entry_set_got): New.
3095 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
3096 in PROLOGUE, delete initial if possible.
3098 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
3100 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
3101 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
3103 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
3105 PR tree-optimization/63259
3106 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
3107 rotation left if it is a 16 bit byte swap.
3108 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
3109 and RROTATE_EXPR statements if it is a byte rotation.
3111 2014-10-31 Jakub Jelinek <jakub@redhat.com>
3114 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
3115 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
3116 instead of vr0.min - vr1.min and vr0.max - vr1.max.
3118 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
3121 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
3122 alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
3124 2014-10-30 Felix Yang <felix.yang@huawei.com>
3126 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
3127 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
3128 (xtensa_reorg, xtensa_reorg_loops): New.
3129 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
3130 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
3131 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
3132 (xtensa_doloop_hooks): Define.
3133 * config/xtensa/xtensa.md (doloop_end, loop_end): New
3134 (zero_cost_loop_start): Rewritten.
3135 (zero_cost_loop_end): Likewise.
3137 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
3139 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
3141 2014-10-30 Richard Biener <rguenther@suse.de>
3143 * genmatch.c: Remove <map>, <utility> and <string> includes.
3144 Include ggc.h and hash-map.h.
3145 (ggc_internal_cleared_alloc): Provide stub definition.
3146 (ggc_free): Likewise.
3147 (struct capture_id_map_hasher): New traits for hash_map.
3148 (cid_map_t): New typedef.
3149 (everywhere else): Replace std::map use with cid_map_t.
3150 * hash-map.h (hash_map::elements): New member function.
3151 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
3152 hash-map.h and $(GGC_H) as dependency.
3154 2014-10-30 Richard Biener <rguenther@suse.de>
3156 * genmatch.c (capture_info::walk_c_expr): Ignore capture
3157 uses inside TREE_TYPE ().
3158 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
3159 (find_candidates_dom_walker::before_dom_children): Likewise.
3160 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
3161 (replace_profitable_candidates): Likewise.
3162 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
3163 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
3164 * convert.c (convert_to_integer): Use CASE_CONVERT.
3166 2014-10-30 Richard Biener <rguenther@suse.de>
3168 * match.pd: Implement more patterns that simplify to a single value.
3169 * fold-const.c (fold_binary_loc): Remove them here.
3170 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
3171 (fwprop_ssa_val): Remove restriction on single uses.
3173 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3175 * config/avr/driver-avr.c (avr_set_current_device): Remove.
3177 2014-10-30 Martin Liska <mliska@suse.cz>
3181 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
3182 (func_checker::compare_gimple_label): Simlified comparison introduced.
3183 * ipa-icf-gimple.h: Missing comment added.
3185 2014-10-30 Jeff Law <law@redhat.com>
3187 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
3188 argument from rtx to rtx_insn *.
3189 (compute_movmem_length, compute_clrmem_length): Likewise.
3190 (copy_fp_args, length_fp_args): Likewise.
3191 * config/pa/pa.c (legitimize_pic_address): Promote local variable
3192 "insn" from rtx to rtx_insn *.
3193 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
3194 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
3195 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
3196 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
3197 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
3198 (compute_movmem_length, compute_clrmem_length): Likewise.
3199 (copy_fp-args, length_fp_args): Likewise.
3201 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3203 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
3205 (CUMULATIVE_ARGS): Guard against target includes.
3206 (machine_function): Likewise.
3208 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3210 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
3211 recog state after aarch64_prev_real_insn call.
3213 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3215 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
3217 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3219 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
3220 (struct machine_function): Gate definition on
3221 !defined(USED_FOR_TARGET).
3223 2014-10-29 DJ Delorie <dj@redhat.com>
3225 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
3227 2014-10-29 Martin Liska <mliska@suse.cz>
3230 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
3231 to local declarations.
3232 * function.c (add_local_decl): Implementation moved from header
3233 file, assert introduced for tree type.
3234 * function.h: Likewise.
3236 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
3238 * godump.c (go_format_type): Represent "float _Complex" and
3239 "double _Complex" as complex64 or complex128 in Go, as appropriate.
3241 2014-10-29 Richard Biener <rguenther@suse.de>
3243 * match.pd: Implement a first set of conversion patterns.
3244 * fold-const.c (fold_unary_loc): Remove them here.
3245 * tree-ssa-forwprop.c (simplify_vce): Remove.
3246 (pass_forwprop::execute): Do not call simplify_vce.
3248 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3250 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
3251 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
3252 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
3253 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
3254 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
3255 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
3256 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
3257 config/arc/arc.h, config/arc/predicates.md,
3258 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
3259 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
3260 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
3261 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
3262 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
3263 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
3264 config/cr16/cr16-protos.h, config/cr16/cr16.c,
3265 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
3266 config/darwin-protos.h, config/darwin.c,
3267 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
3268 config/epiphany/epiphany.md, config/fr30/fr30.c,
3269 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
3270 config/h8300/h8300-protos.h, config/h8300/h8300.c,
3271 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
3272 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
3273 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
3274 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
3275 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
3276 config/lm32/lm32-protos.h, config/lm32/lm32.c,
3277 config/m32c/m32c-protos.h, config/m32c/m32c.c,
3278 config/m32r/m32r-protos.h, config/m32r/m32r.c,
3279 config/m68k/m68k-protos.h, config/m68k/m68k.c,
3280 config/mcore/mcore-protos.h, config/mcore/mcore.c,
3281 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
3282 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
3283 config/mips/mips-protos.h, config/mips/mips.c,
3284 config/mmix/mmix-protos.h, config/mmix/mmix.c,
3285 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
3286 config/moxie/moxie.c, config/msp430/msp430-protos.h,
3287 config/msp430/msp430.c, config/nds32/nds32-cost.c,
3288 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
3289 config/nds32/nds32-protos.h, config/nds32/nds32.c,
3290 config/nios2/nios2-protos.h, config/nios2/nios2.c,
3291 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
3292 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
3293 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
3294 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
3295 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
3296 config/s390/predicates.md, config/s390/s390-protos.h,
3297 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
3298 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
3299 config/sh/sh.md, config/sparc/predicates.md,
3300 config/sparc/sparc-protos.h, config/sparc/sparc.c,
3301 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
3302 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
3303 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
3304 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
3305 config/tilepro/tilepro.c, config/v850/v850-protos.h,
3306 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
3307 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
3308 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
3309 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
3310 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
3311 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
3312 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
3313 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
3314 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
3315 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
3316 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
3317 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
3318 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
3319 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
3320 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
3321 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
3322 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
3323 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
3324 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
3325 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
3326 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
3327 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
3328 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
3329 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
3330 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
3331 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
3332 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
3333 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
3334 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
3335 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
3336 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
3337 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
3338 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
3339 var-tracking.c, varasm.c: Remove redundant enum from
3341 * gengtype.c (main): Treat machine_mode as a scalar typedef.
3342 * genmodes.c (emit_insn_modes_h): Hide inline functions if
3345 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3347 PR rtl-optimization/63340 (part 2)
3348 * rtl.h (invalid_mode_change_p): Delete.
3349 (valid_mode_changes_for_regno): New function.
3350 * reginfo.c (invalid_mode_change_p): Delete.
3351 (valid_mode_changes_for_regno): New function.
3352 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
3353 classes to registers that are allowed by valid_mode_changes_for_regno.
3354 (setup_regno_cost_classes_by_mode): Likewise.
3355 (print_allocno_costs): Remove invalid_mode_change_p test.
3356 (print_pseudo_costs, find_costs_and_classes): Likewise.
3358 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3360 PR rtl-optimization/63340 (part 1)
3361 * ira-costs.c (all_cost_classes): New variable.
3362 (complete_cost_classes): New function, split out from...
3363 (setup_cost_classes): ...here.
3364 (initiate_regno_cost_classes): Set up all_cost_classes.
3365 (restrict_cost_classes): New function.
3366 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
3367 registers that are valid for the register's mode.
3368 (setup_regno_cost_classes_by_mode): Model the mode cache as a
3369 restriction of all_cost_classes to a particular mode.
3370 (print_allocno_costs): Remove contains_reg_of_mode check.
3371 (print_pseudo_costs, find_costs_and_classes): Likewise.
3373 2014-10-29 Richard Biener <rguenther@suse.de>
3375 PR tree-optimization/63666
3376 * tree-vect-slp.c (vect_get_mask_element): Properly handle
3377 accessing out-of-bound elements.
3379 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
3380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3381 Anna Tikhonova <anna.tikhonova@intel.com>
3382 Ilya Tocar <ilya.tocar@intel.com>
3383 Andrey Turetskiy <andrey.turetskiy@intel.com>
3384 Ilya Verbin <ilya.verbin@intel.com>
3385 Kirill Yukhin <kirill.yukhin@intel.com>
3386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3388 * config/i386/i386.md
3389 (movhi_internal): Always detect maskmov.
3390 (movqi_internal): Fix target check.
3392 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
3393 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3394 Anna Tikhonova <anna.tikhonova@intel.com>
3395 Ilya Tocar <ilya.tocar@intel.com>
3396 Andrey Turetskiy <andrey.turetskiy@intel.com>
3397 Ilya Verbin <ilya.verbin@intel.com>
3398 Kirill Yukhin <kirill.yukhin@intel.com>
3399 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3401 * config/i386/avx512bwintrin.h: Add new intrinsics.
3402 * config/i386/avx512vlbwintrin.h: Ditto.
3403 * config/i386/avx512vlintrin.h: Ditto.
3405 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
3407 * godump.c (precision_to_units): New helper function.
3408 (go_append_artificial_name): Ditto.
3409 (go_append_decl_name): Ditto.
3410 (go_append_bitfield): Ditto.
3411 (go_get_uinttype_for_precision): Ditto.
3412 (go_append_padding): Ditto.
3413 (go_force_record_alignment): Ditto.
3414 (go_format_type): Represent unions with an array of uints of the size
3415 of the alignment in go. This fixes the 'random' size of the union's
3416 representation using just the first field.
3417 (go_format_type): Add argument that indicates whether a record is
3418 nested (used for generation of artificial go names).
3419 (go_output_fndecl): Adapt to new go_format_type signature.
3420 (go_output_typedef): Ditto.
3421 (go_output_var): Ditto.
3422 (go_output_var): Prefer to output type as alias (typedef).
3423 (go_format_type): Bitfields in records are simulated as arrays of bytes
3426 * godump.c (go_format_type): Fix handling of arrays with zero elements.
3428 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
3430 * cgraph.h: Flatten. Remove all include files.
3431 (symbol_table::initialize): Move to cgraph.c.
3432 * cgraph.c: Adjust include files.
3433 (symbol_table::initialize): Relocate from cgraph.h.
3434 * gengtype.c (open_base_files): Adjust include files.
3435 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
3437 * ipa-inline.h: Remove all include files.
3438 * ipa-prop.h: Ditto.
3439 * ipa-reference.h: Ditto.
3440 * ipa-utils.h: Ditto:
3441 * lto-streamer.h: Remove cgraph.h from include list.
3442 * asan.c: Adjust include files.
3443 * auto-profile.c: Ditto.
3444 * bb-reorder.c: Ditto.
3446 * cfgexpand.c: Ditto.
3447 * cgraphbuild.c: Ditto.
3448 * cgraphclones.c: Ditto.
3449 * cgraphunit.c: Ditto.
3451 * coverage.c: Ditto.
3452 * data-streamer.c: Ditto.
3453 * data-streamer-in.c: Ditto.
3454 * data-streamer-out.c: Ditto.
3456 * dwarf2out.c: Ditto.
3460 * fold-const.c: Ditto.
3461 * ggc-page.c: Ditto.
3462 * gimple-fold.c: Ditto.
3463 * gimple-iterator.c: Ditto.
3464 * gimple-pretty-print.c: Ditto.
3465 * gimple-streamer-in.c: Ditto.
3466 * gimple-streamer-out.c: Ditto.
3467 * gimplify.c: Ditto.
3469 * ipa-comdats.c: Ditto.
3471 * ipa-devirt.c: Ditto.
3473 * ipa-icf-gimple.c: Ditto.
3474 * ipa-inline-analysis.c: Ditto.
3475 * ipa-inline.c: Ditto.
3476 * ipa-inline-transform.c: Ditto.
3477 * ipa-polymorphic-call.c: Ditto.
3478 * ipa-profile.c: Ditto.
3479 * ipa-prop.c: Ditto.
3480 * ipa-pure-const.c: Ditto.
3482 * ipa-reference.c: Ditto.
3483 * ipa-split.c: Ditto.
3484 * ipa-utils.c: Ditto.
3485 * ipa-visibility.c: Ditto.
3486 * langhooks.c: Ditto.
3487 * lto-cgraph.c: Ditto.
3488 * lto-compress.c: Ditto.
3489 * lto-opts.c: Ditto.
3490 * lto-section-in.c: Ditto.
3491 * lto-section-out.c: Ditto.
3492 * lto-streamer.c: Ditto.
3493 * lto-streamer-in.c: Ditto.
3494 * lto-streamer-out.c: Ditto.
3496 * opts-global.c: Ditto.
3499 * print-tree.c: Ditto.
3502 * stor-layout.c: Ditto.
3505 * trans-mem.c: Ditto.
3507 * tree-cfg.c: Ditto.
3509 * tree-emutls.c: Ditto.
3510 * tree-inline.c: Ditto.
3511 * tree-nested.c: Ditto.
3512 * tree-pretty-print.c: Ditto.
3513 * tree-profile.c: Ditto.
3514 * tree-sra.c: Ditto.
3515 * tree-ssa-alias.c: Ditto.
3516 * tree-ssa-loop-ivcanon.c: Ditto.
3517 * tree-ssa-loop-ivopts.c: Ditto.
3518 * tree-ssa-pre.c: Ditto.
3519 * tree-ssa-structalias.c: Ditto.
3520 * tree-streamer.c: Ditto.
3521 * tree-streamer-in.c: Ditto.
3522 * tree-streamer-out.c: Ditto.
3523 * tree-switch-conversion.c: Ditto.
3524 * tree-tailcall.c: Ditto.
3525 * tree-vect-data-refs.c: Ditto.
3526 * tree-vectorizer.c: Ditto.
3527 * tree-vect-stmts.c: Ditto.
3530 * value-prof.c: Ditto.
3533 * config/arm/arm.c: Ditto.
3534 * config/bfin/bfin.c: Ditto.
3535 * config/c6x/c6x.c: Ditto.
3536 * config/cris/cris.c: Ditto.
3537 * config/darwin.c: Ditto.
3538 * config/darwin-c.c: Ditto.
3539 * config/i386/i386.c: Ditto.
3540 * config/i386/winnt.c: Ditto.
3541 * config/microblaze/microblaze.c: Ditto.
3542 * config/mips/mips.c: Ditto.
3543 * config/rs6000/rs6000.c: Ditto.
3544 * config/rx/rx.c: Ditto.
3546 2014-10-28 Richard Biener <rguenther@suse.de>
3548 * gimple-fold.h (follow_single_use_edges): Declare.
3549 * gimple-fold.c (follow_single_use_edges): New function.
3550 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
3551 * tree-ssa-propagate.c
3552 (substitute_and_fold_dom_walker::before_dom_children): Allow
3553 following single-use edges when folding stmts we propagated into.
3555 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3556 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3557 Anna Tikhonova <anna.tikhonova@intel.com>
3558 Ilya Tocar <ilya.tocar@intel.com>
3559 Andrey Turetskiy <andrey.turetskiy@intel.com>
3560 Ilya Verbin <ilya.verbin@intel.com>
3561 Kirill Yukhin <kirill.yukhin@intel.com>
3562 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3564 * config/i386/avx512bwintrin.h: New.
3565 * config/i386/avx512dqintrin.h: Ditto.
3566 * config/i386/avx512vlbwintrin.h: Ditto.
3567 * config/i386/avx512vldqintrin.h: Ditto.
3568 * config/i386/avx512vlintrin.h: Ditto.
3569 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
3570 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
3572 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3573 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3574 Anna Tikhonova <anna.tikhonova@intel.com>
3575 Ilya Tocar <ilya.tocar@intel.com>
3576 Andrey Turetskiy <andrey.turetskiy@intel.com>
3577 Ilya Verbin <ilya.verbin@intel.com>
3578 Kirill Yukhin <kirill.yukhin@intel.com>
3579 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3581 * config/i386/i386.c
3582 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
3583 avx_shufpd256_mask, avx_vpermilv2df_mask.
3585 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3586 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3587 Anna Tikhonova <anna.tikhonova@intel.com>
3588 Ilya Tocar <ilya.tocar@intel.com>
3589 Andrey Turetskiy <andrey.turetskiy@intel.com>
3590 Ilya Verbin <ilya.verbin@intel.com>
3591 Kirill Yukhin <kirill.yukhin@intel.com>
3592 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3594 * config/i386/i386.c
3595 (ix86_init_mmx_sse_builtins):
3596 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
3597 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
3598 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
3599 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
3600 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
3601 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
3602 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
3603 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
3604 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
3605 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
3606 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
3607 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
3608 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
3609 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
3610 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
3611 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
3612 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
3613 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
3615 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3616 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3617 Anna Tikhonova <anna.tikhonova@intel.com>
3618 Ilya Tocar <ilya.tocar@intel.com>
3619 Andrey Turetskiy <andrey.turetskiy@intel.com>
3620 Ilya Verbin <ilya.verbin@intel.com>
3621 Kirill Yukhin <kirill.yukhin@intel.com>
3622 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3624 * config/i386/i386.c
3625 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
3626 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
3627 IX86_BUILTIN_GATHER3ALTDIV8SI.
3628 (ix86_expand_builtin):
3629 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
3630 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
3631 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
3632 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
3633 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
3634 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
3635 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
3636 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
3637 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
3638 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
3639 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
3640 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
3641 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
3642 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
3643 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
3644 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
3645 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
3646 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
3647 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
3648 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
3650 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3651 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3652 Anna Tikhonova <anna.tikhonova@intel.com>
3653 Ilya Tocar <ilya.tocar@intel.com>
3654 Andrey Turetskiy <andrey.turetskiy@intel.com>
3655 Ilya Verbin <ilya.verbin@intel.com>
3656 Kirill Yukhin <kirill.yukhin@intel.com>
3657 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3659 * config/i386/i386-builtin-types.def
3678 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
3679 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3680 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3681 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3682 (V16SF_FTYPE_V16HI): Ditto.
3683 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3684 (V16SF_FTYPE_V16SI): Ditto.
3685 (V4DI_FTYPE_V4DI): Ditto.
3686 (V16SI_FTYPE_V16SF): Ditto.
3687 (V8DI_FTYPE_PV2DI): Ditto.
3688 (V8DF_FTYPE_PV2DF): Ditto.
3689 (V4DI_FTYPE_PV2DI): Ditto.
3690 (V4DF_FTYPE_PV2DF): Ditto.
3691 (V16SI_FTYPE_PV2SI): Ditto.
3692 (V16SF_FTYPE_PV2SF): Ditto.
3693 (V8SF_FTYPE_FLOAT): Ditto.
3694 (V4SF_FTYPE_FLOAT): Ditto.
3695 (V4DF_FTYPE_DOUBLE): Ditto.
3696 (V8SF_FTYPE_PV4SF): Ditto.
3697 (V8SI_FTYPE_PV4SI): Ditto.
3698 (V4SI_FTYPE_PV2SI): Ditto.
3699 (V8SF_FTYPE_PV2SF): Ditto.
3700 (V8SI_FTYPE_PV2SI): Ditto.
3701 (V16SF_FTYPE_PV8SF): Ditto.
3702 (V16SI_FTYPE_PV8SI): Ditto.
3703 (V8DI_FTYPE_V8SF): Ditto.
3704 (V4DI_FTYPE_V4SF): Ditto.
3705 (V2DI_FTYPE_V4SF): Ditto.
3706 (V64QI_FTYPE_QI): Ditto.
3707 (V32HI_FTYPE_HI): Ditto.
3708 (V16UHI_FTYPE_V16UHI): Ditto.
3709 (V32UHI_FTYPE_V32UHI): Ditto.
3710 (V2UDI_FTYPE_V2UDI): Ditto.
3711 (V4UDI_FTYPE_V4UDI): Ditto.
3712 (V8UDI_FTYPE_V8UDI): Ditto.
3713 (V4USI_FTYPE_V4USI): Ditto.
3714 (V16USI_FTYPE_V16USI): Ditto.
3715 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3716 (V2DF_FTYPE_V8DF_INT): Ditto.
3717 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3718 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3719 (V8DF_FTYPE_V8DF_INT): Ditto.
3720 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3721 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3722 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3723 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3724 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3725 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3726 (V8DI_FTYPE_V8DI_INT): Ditto.
3727 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3728 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3729 (V8SF_FTYPE_V16SF_INT): Ditto.
3730 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3731 (V64QI_FTYPE_V32HI_V32HI): Ditto.
3732 (V32HI_FTYPE_V16SI_V16SI): Ditto.
3733 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
3734 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3735 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
3736 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
3737 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
3738 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3739 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3740 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3741 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
3742 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3743 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3744 (V32HI_FTYPE_V64QI_V64QI): Ditto.
3745 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3746 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3747 (V32HI_FTYPE_V32HI_V32HI): Ditto.
3748 (V32HI_FTYPE_V32HI_INT): Ditto.
3749 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3750 (V16SI_FTYPE_V32HI_V32HI): Ditto.
3751 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3752 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3753 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3754 (V8SI_FTYPE_V16SI_INT): Ditto.
3755 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3756 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3757 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3758 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3759 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
3760 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
3761 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3762 (V8DI_FTYPE_V16SI_V16SI): Ditto.
3763 (V8DI_FTYPE_V64QI_V64QI): Ditto.
3764 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3765 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3766 (V2DI_FTYPE_V8DI_INT): Ditto.
3767 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3768 (QI_FTYPE_QI): Ditto.
3769 (SI_FTYPE_SI): Ditto.
3770 (DI_FTYPE_DI): Ditto.
3771 (HI_FTYPE_V16QI): Ditto.
3772 (SI_FTYPE_V32QI): Ditto.
3773 (DI_FTYPE_V64QI): Ditto.
3774 (QI_FTYPE_V8HI): Ditto.
3775 (HI_FTYPE_V16HI): Ditto.
3776 (SI_FTYPE_V32HI): Ditto.
3777 (QI_FTYPE_V4SI): Ditto.
3778 (QI_FTYPE_V8SI): Ditto.
3779 (HI_FTYPE_V16SI): Ditto.
3780 (QI_FTYPE_V2DI): Ditto.
3781 (QI_FTYPE_V4DI): Ditto.
3782 (QI_FTYPE_V8DI): Ditto.
3783 (V16QI_FTYPE_HI): Ditto.
3784 (V32QI_FTYPE_SI): Ditto.
3785 (V64QI_FTYPE_DI): Ditto.
3786 (V8HI_FTYPE_QI): Ditto.
3787 (V16HI_FTYPE_HI): Ditto.
3788 (V32HI_FTYPE_SI): Ditto.
3789 (V4SI_FTYPE_QI): Ditto.
3790 (V4SI_FTYPE_HI): Ditto.
3791 (V8SI_FTYPE_QI): Ditto.
3792 (V8SI_FTYPE_HI): Ditto.
3793 (V2DI_FTYPE_QI): Ditto.
3794 (V4DI_FTYPE_QI): Ditto.
3795 (QI_FTYPE_QI_QI): Ditto.
3796 (SI_FTYPE_SI_SI): Ditto.
3797 (DI_FTYPE_DI_DI): Ditto.
3798 (QI_FTYPE_QI_INT): Ditto.
3799 (SI_FTYPE_SI_INT): Ditto.
3800 (DI_FTYPE_DI_INT): Ditto.
3801 (HI_FTYPE_V16QI_V16QI): Ditto.
3802 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3803 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3804 (SI_FTYPE_V32QI_V32QI): Ditto.
3805 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3806 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3807 (DI_FTYPE_V64QI_V64QI): Ditto.
3808 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3809 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3810 (QI_FTYPE_V8HI_V8HI): Ditto.
3811 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3812 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3813 (HI_FTYPE_V16HI_V16HI): Ditto.
3814 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3815 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3816 (SI_FTYPE_V32HI_V32HI): Ditto.
3817 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3818 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3819 (QI_FTYPE_V4SI_V4SI): Ditto.
3820 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3821 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3822 (QI_FTYPE_V8SI_V8SI): Ditto.
3823 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3824 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3825 (QI_FTYPE_V2DI_V2DI): Ditto.
3826 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3827 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3828 (QI_FTYPE_V4DI_V4DI): Ditto.
3829 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3830 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3831 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3832 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
3833 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3834 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3835 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3836 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
3837 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3838 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3839 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3840 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3841 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3842 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3843 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3844 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3845 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3846 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3847 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3848 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3849 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3850 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3851 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3852 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3853 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3854 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3855 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3856 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3857 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3858 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3859 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3860 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3861 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3862 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3863 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3864 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3865 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3866 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3867 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3868 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3869 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3870 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3871 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3872 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3873 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3874 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3875 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3876 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3877 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3878 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3879 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3880 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3881 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3882 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3883 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3884 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3885 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3886 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3887 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3888 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3889 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3890 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3891 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3892 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3893 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3894 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3895 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3896 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3897 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3898 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3899 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3900 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3901 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3902 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3903 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3904 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
3905 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3906 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3907 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
3908 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3909 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3910 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
3911 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3912 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3913 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3914 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3915 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3916 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3917 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3918 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3919 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3920 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3921 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3922 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3923 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3924 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3925 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3926 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3927 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3928 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3929 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3930 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3931 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3932 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3933 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3934 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3935 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3936 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3937 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3938 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3939 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3940 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3941 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3942 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3943 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3944 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3945 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3946 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3947 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3948 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3949 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3950 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3951 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3952 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3953 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3954 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3955 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3956 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3957 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3958 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3959 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3960 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3961 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3962 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3963 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3964 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3965 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3966 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3967 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3968 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3969 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3970 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3971 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3972 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3973 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3974 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3975 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3976 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3977 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3978 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3979 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3980 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3981 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3982 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3983 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3984 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3985 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3986 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3987 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3988 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3989 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3990 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3991 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3992 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3993 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3994 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3995 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3996 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3997 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3998 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3999 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
4000 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
4001 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
4002 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
4003 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
4004 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
4005 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
4006 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
4007 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
4008 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
4009 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
4010 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
4011 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
4012 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
4013 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
4014 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
4015 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
4016 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
4017 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
4018 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
4019 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
4020 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
4021 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
4022 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
4023 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
4024 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
4025 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
4026 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
4027 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
4028 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
4029 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
4030 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
4031 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
4032 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
4033 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
4034 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
4035 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
4036 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
4037 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
4038 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
4039 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
4040 (QI_FTYPE_V8DF_INT): Ditto.
4041 (QI_FTYPE_V4DF_INT): Ditto.
4042 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
4043 (QI_FTYPE_V2DF_INT): Ditto.
4044 (HI_FTYPE_V16SF_INT): Ditto.
4045 (QI_FTYPE_V8SF_INT): Ditto.
4046 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
4047 (QI_FTYPE_V4SF_INT): Ditto.
4048 (QI_FTYPE_V8DF_INT_QI): Ditto.
4049 (QI_FTYPE_V4DF_INT_QI): Ditto.
4050 (QI_FTYPE_V2DF_INT_QI): Ditto.
4051 (HI_FTYPE_V16SF_INT_HI): Ditto.
4052 (QI_FTYPE_V8SF_INT_QI): Ditto.
4053 (QI_FTYPE_V4SF_INT_QI): Ditto.
4054 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
4055 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
4056 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
4057 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
4058 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
4059 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
4060 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
4061 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
4062 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
4063 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
4064 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
4065 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
4066 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
4067 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
4068 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
4069 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
4070 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
4071 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
4072 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
4073 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
4074 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
4075 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
4076 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
4077 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
4078 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
4079 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
4080 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
4081 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
4082 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
4083 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
4084 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
4085 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
4086 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
4087 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
4088 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
4089 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
4090 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
4091 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
4092 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
4093 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
4094 (V8DI_FTYPE_V8DI_INT): Ditto.
4095 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
4096 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
4097 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
4098 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
4099 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
4100 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
4101 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
4102 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
4103 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
4104 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
4105 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
4106 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
4107 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
4108 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
4109 * config/i386/i386.c (ix86_builtins):
4110 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
4111 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
4112 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
4113 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
4114 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
4115 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
4116 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
4117 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
4118 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
4119 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
4120 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
4121 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
4122 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
4123 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
4124 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
4125 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
4126 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
4127 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
4128 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
4129 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
4130 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
4131 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
4132 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
4133 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
4134 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
4135 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
4136 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
4137 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
4138 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
4139 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
4140 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
4141 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
4142 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
4143 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
4144 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
4145 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
4146 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
4147 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
4148 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
4149 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
4150 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
4151 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
4152 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
4153 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
4154 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
4155 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
4156 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
4157 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
4158 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
4159 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
4160 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
4161 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
4162 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
4163 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
4164 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
4165 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
4166 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
4167 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
4168 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
4169 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
4170 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
4171 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
4172 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
4173 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
4174 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
4175 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
4176 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
4177 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
4178 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
4179 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
4180 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
4181 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
4182 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
4183 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
4184 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
4185 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
4186 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
4187 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
4188 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
4189 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
4190 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
4191 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
4192 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
4193 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
4194 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
4195 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
4196 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
4197 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
4198 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
4199 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
4200 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
4201 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
4202 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
4203 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
4204 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
4205 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
4206 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
4207 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
4208 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
4209 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
4210 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
4211 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
4212 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
4213 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
4214 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
4215 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
4216 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
4217 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
4218 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
4219 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
4220 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
4221 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
4222 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
4223 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
4224 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
4225 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
4226 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
4227 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
4228 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
4229 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
4230 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
4231 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
4232 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
4233 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
4234 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
4235 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
4236 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
4237 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
4238 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
4239 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
4240 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
4241 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
4242 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
4243 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
4244 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
4245 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
4246 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
4247 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
4248 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
4249 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
4250 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
4251 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
4252 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
4253 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
4254 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
4255 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
4256 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
4257 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
4258 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
4259 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
4260 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
4261 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
4262 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
4263 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
4264 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
4265 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
4266 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
4267 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
4268 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
4269 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
4270 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
4271 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
4272 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
4273 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
4274 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
4275 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
4276 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
4277 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
4278 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
4279 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
4280 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
4281 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
4282 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
4283 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
4284 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
4285 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
4286 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
4287 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
4288 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
4289 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
4290 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
4291 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
4292 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
4293 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
4294 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
4295 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
4296 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
4297 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
4298 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
4299 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
4300 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
4301 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
4302 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
4303 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
4304 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
4305 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
4306 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
4307 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
4308 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
4309 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
4310 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
4311 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
4312 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
4313 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
4314 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
4315 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
4316 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
4317 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
4318 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
4319 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
4320 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
4321 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
4322 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
4323 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
4324 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
4325 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
4326 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
4327 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
4328 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
4329 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
4330 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
4331 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
4332 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
4333 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
4334 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
4335 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
4336 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
4337 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
4338 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
4339 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
4340 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
4341 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
4342 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
4343 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
4344 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
4345 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
4346 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
4347 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
4348 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
4349 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
4350 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
4351 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
4352 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
4353 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
4354 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
4355 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
4356 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
4357 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
4358 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
4359 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
4360 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
4361 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
4362 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
4363 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
4364 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
4365 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
4366 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
4367 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
4368 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
4369 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
4370 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
4371 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
4372 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
4373 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
4374 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
4375 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
4376 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
4377 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
4378 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
4379 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
4380 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
4381 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
4382 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
4383 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
4384 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
4385 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
4386 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
4387 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
4388 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
4389 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
4390 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
4391 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
4392 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
4393 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
4394 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
4395 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
4396 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
4397 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
4398 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
4399 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
4400 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
4401 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
4402 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
4403 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
4404 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
4405 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
4406 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
4407 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
4408 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
4409 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
4410 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
4411 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
4412 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
4413 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
4414 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
4415 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
4416 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
4417 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
4418 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
4419 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
4420 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
4421 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
4422 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
4423 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
4424 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
4425 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
4426 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
4427 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
4428 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
4429 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
4430 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
4431 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
4432 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
4433 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
4434 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
4435 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
4436 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
4437 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
4438 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
4439 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
4440 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
4441 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
4442 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
4443 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
4444 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
4445 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
4446 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
4447 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
4448 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
4449 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
4450 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
4451 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
4452 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
4453 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
4454 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
4455 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
4456 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
4457 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
4458 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
4459 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
4460 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
4461 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
4462 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
4463 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
4464 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
4465 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
4466 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
4467 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
4468 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
4469 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
4470 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
4471 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
4472 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
4473 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
4474 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
4475 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
4476 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
4477 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
4478 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
4479 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
4480 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
4481 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
4482 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
4483 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
4484 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
4485 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
4486 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
4487 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
4488 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
4489 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
4490 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
4491 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
4492 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
4493 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
4494 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
4495 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
4496 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
4497 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
4498 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
4499 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
4500 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
4501 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
4502 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
4503 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
4504 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
4505 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
4506 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
4507 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
4508 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
4509 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
4510 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
4511 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
4512 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
4513 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
4514 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
4515 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
4516 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
4517 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
4518 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
4519 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
4520 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
4521 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
4522 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
4523 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
4524 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
4525 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
4526 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
4527 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
4528 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
4529 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
4530 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
4531 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
4532 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
4533 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
4534 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
4535 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
4536 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
4537 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
4538 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
4539 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
4540 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
4541 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
4542 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
4543 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
4544 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
4545 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
4546 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
4547 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
4548 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
4549 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
4550 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
4551 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
4552 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
4553 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
4554 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
4555 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
4556 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
4557 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
4558 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
4559 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
4560 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
4561 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
4562 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
4563 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
4564 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
4565 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
4566 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
4567 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
4568 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
4569 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
4570 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
4571 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
4572 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
4573 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
4574 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
4575 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
4576 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
4577 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
4578 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
4579 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
4580 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
4581 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
4582 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
4583 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
4584 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
4585 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
4586 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
4587 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
4588 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
4589 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
4590 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
4591 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
4592 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
4593 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
4594 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
4595 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
4596 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
4597 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
4598 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
4599 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
4600 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
4601 (bdesc_special_args):
4602 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
4603 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
4604 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
4605 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
4606 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
4607 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
4608 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
4609 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
4610 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
4611 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
4612 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
4613 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
4614 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
4615 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
4616 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
4617 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
4618 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
4619 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
4620 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
4621 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
4622 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
4623 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
4624 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
4625 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
4626 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
4627 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
4628 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
4629 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
4630 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
4631 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
4632 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
4633 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
4634 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
4635 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
4636 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
4637 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
4638 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
4639 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
4640 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
4641 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
4642 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
4643 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
4644 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
4645 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
4646 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
4647 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
4648 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
4649 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
4650 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
4651 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
4652 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
4653 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
4654 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
4655 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
4656 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
4657 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
4658 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
4659 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
4660 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
4661 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
4662 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
4663 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
4664 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
4665 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
4666 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
4667 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
4668 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
4669 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
4670 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
4671 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
4672 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
4673 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
4674 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
4675 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
4676 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
4677 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
4678 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
4679 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
4680 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
4681 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
4682 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
4683 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
4684 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
4685 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
4686 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
4687 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
4688 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
4689 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
4690 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
4691 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
4692 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
4693 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
4694 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
4695 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
4696 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
4697 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
4698 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
4699 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
4700 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
4701 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
4702 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
4703 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
4704 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
4705 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
4706 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
4707 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
4708 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
4709 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
4710 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
4711 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
4712 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
4713 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
4714 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
4715 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
4716 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
4717 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
4718 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
4719 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
4720 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
4721 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
4722 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
4723 __builtin_ia32_reducesd, __builtin_ia32_reducess,
4724 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
4725 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
4726 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
4727 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
4728 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
4729 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
4730 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
4731 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
4732 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
4733 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
4734 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
4735 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
4736 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
4737 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
4738 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
4739 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
4740 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
4741 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
4742 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
4743 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
4744 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
4745 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
4746 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
4747 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
4748 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
4749 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
4750 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
4751 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
4752 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
4753 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
4754 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
4755 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
4756 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
4757 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
4758 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
4759 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
4760 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
4761 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
4762 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
4763 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
4764 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
4765 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
4766 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
4767 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
4768 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
4769 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
4770 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
4771 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
4772 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
4773 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
4774 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
4775 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
4776 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
4777 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
4778 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
4779 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
4780 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
4781 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
4782 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
4783 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
4784 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
4785 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
4786 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
4787 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
4788 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
4789 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
4790 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
4791 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
4792 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
4793 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
4794 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
4795 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
4796 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
4797 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
4798 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
4799 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
4800 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
4801 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
4802 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
4803 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
4804 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
4805 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
4806 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
4807 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
4808 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
4809 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
4810 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
4811 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
4812 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
4813 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
4814 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
4815 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
4816 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
4817 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
4818 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
4819 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
4820 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
4821 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
4822 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
4823 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
4824 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
4825 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
4826 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
4827 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
4828 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
4829 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
4830 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
4831 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
4832 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
4833 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
4834 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
4835 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
4836 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
4837 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
4838 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
4839 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
4840 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
4841 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
4842 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
4843 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
4844 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
4845 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
4846 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
4847 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
4848 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
4849 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
4850 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
4851 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
4852 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
4853 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
4854 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
4855 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
4856 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
4857 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
4858 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
4859 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
4860 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
4861 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
4862 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
4863 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
4864 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
4865 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
4866 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
4867 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
4868 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
4869 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
4870 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
4871 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
4872 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
4873 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
4874 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
4875 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
4876 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
4877 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
4878 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
4879 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
4880 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
4881 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
4882 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
4883 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
4884 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
4885 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
4886 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
4887 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
4888 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
4889 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
4890 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
4891 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
4892 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
4893 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
4894 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
4895 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
4896 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
4897 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
4898 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
4899 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
4900 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
4901 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
4902 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
4903 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
4904 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
4905 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
4906 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
4907 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
4908 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
4909 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
4910 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
4911 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
4912 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
4913 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
4914 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
4915 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
4916 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
4917 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
4918 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
4919 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
4920 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
4921 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
4922 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
4923 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
4924 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
4925 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
4926 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
4927 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
4928 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
4929 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
4930 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
4931 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
4932 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
4933 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
4934 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
4935 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
4936 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
4937 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
4938 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
4939 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
4940 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
4941 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
4942 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
4943 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
4944 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
4945 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
4946 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
4947 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
4948 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
4949 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
4950 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
4951 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
4952 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
4953 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
4954 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
4955 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
4956 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
4957 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
4958 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
4959 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
4960 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
4961 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
4962 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
4963 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
4964 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
4965 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
4966 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
4967 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
4968 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
4969 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
4970 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
4971 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
4972 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
4973 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
4974 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
4975 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
4976 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
4977 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
4978 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
4979 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
4980 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
4981 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
4982 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
4983 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
4984 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
4985 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
4986 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
4987 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
4988 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
4989 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
4990 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
4991 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
4992 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
4993 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
4994 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
4995 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
4996 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
4997 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
4998 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
4999 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
5000 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
5001 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
5002 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
5003 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
5004 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
5005 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
5006 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
5007 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
5008 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
5009 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
5010 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
5011 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
5012 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
5013 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
5014 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
5015 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
5016 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
5017 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
5018 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
5019 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
5020 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
5021 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
5022 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
5023 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
5024 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
5025 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
5026 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
5027 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
5028 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
5029 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
5030 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
5031 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
5032 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
5033 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
5034 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
5035 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
5036 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
5037 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
5038 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
5039 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
5040 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
5041 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
5042 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
5043 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
5044 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
5045 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
5046 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
5047 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
5048 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
5049 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
5050 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
5051 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
5052 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
5053 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
5054 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
5055 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
5056 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
5057 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
5058 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
5059 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
5060 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
5061 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
5062 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
5063 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
5064 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
5065 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
5066 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
5067 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
5068 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
5069 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
5070 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
5071 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
5072 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
5073 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
5074 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
5075 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
5076 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
5077 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
5078 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
5079 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
5080 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
5081 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
5082 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
5083 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
5084 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
5085 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
5086 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
5087 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
5088 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
5089 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
5090 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
5091 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
5092 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
5093 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
5094 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
5095 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
5096 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
5097 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
5098 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
5099 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
5100 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
5101 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
5102 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
5103 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
5104 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
5105 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
5106 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
5107 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
5108 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
5109 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
5110 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
5111 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
5112 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
5113 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
5114 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
5115 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
5116 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
5117 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
5118 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
5119 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
5120 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
5121 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
5122 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
5123 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
5124 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
5125 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
5126 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
5127 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
5128 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
5129 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
5130 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
5131 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
5132 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
5133 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
5134 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
5135 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
5136 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
5137 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
5138 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
5139 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
5140 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
5141 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
5142 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
5143 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
5144 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
5145 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
5146 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
5147 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
5148 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
5149 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
5150 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
5151 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
5152 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
5153 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
5154 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
5155 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
5156 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
5157 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
5158 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
5159 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
5160 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
5161 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
5162 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
5163 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
5164 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
5165 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
5166 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
5167 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
5168 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
5169 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
5170 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
5171 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
5172 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
5173 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
5174 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
5175 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
5176 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
5177 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
5178 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
5179 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
5180 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
5181 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
5182 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
5183 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
5184 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
5185 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
5186 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
5187 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
5188 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
5189 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
5190 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
5191 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
5192 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
5193 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
5194 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
5195 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
5196 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
5197 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
5198 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
5199 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
5200 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
5201 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
5202 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
5203 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
5204 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
5205 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
5206 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
5207 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
5208 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
5209 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
5210 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
5212 2014-10-28 Jakub Jelinek <jakub@redhat.com>
5214 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
5215 type for the left shift in CASE_CONVERT case.
5217 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
5219 * asan.h (asan_intercepted_p): New function.
5220 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
5221 hash value construction. Call iterative_hash_expr instead of explicit
5223 (asan_mem_ref_hasher::equal): Change condition.
5224 (has_mem_ref_been_instrumented): Likewise.
5225 (update_mem_ref_hash_table): Likewise.
5226 (maybe_update_mem_ref_hash_table): New function.
5227 (instrument_strlen_call): Removed.
5228 (get_mem_refs_of_builtin_call): Handle new parameter.
5229 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
5230 of instrument_mem_region_access if intercepted_p is true.
5231 (instrument_mem_region_access): Instrument only base with len instead of
5232 base and end with 1.
5233 (build_check_stmt): Remove start_instrumented and end_instrumented
5235 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
5236 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
5237 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
5238 * builtins.c (expand_builtin): Include asan.h. Don't expand string/memory
5239 builtin functions that have interceptors if ASan is enabled.
5241 2014-10-28 Richard Biener <rguenther@suse.de>
5244 * fold-const.c (fold_comparison): Properly guard simplifying
5245 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
5247 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
5249 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
5250 * fold-const.c (const_binop): Likewise.
5251 * cfgexpand.c (expand_debug_expr): Likewise.
5252 * tree-inline.c (estimate_operator_cost): Likewise.
5253 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5254 * optabs.c (optab_for_tree_code): Likewise.
5255 (expand_vec_shift_expr): Likewise, update comment.
5256 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
5257 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
5258 * optabs.def: Remove vec_shl_optab.
5259 * doc/md.texi: Remove references to vec_shr_m.
5261 2014-10-28 Yury Gribov <y.gribov@samsung.com>
5263 * asan.c (report_error_func): Add noabort path.
5264 (check_func): Ditto. Formatting.
5265 (asan_expand_check_ifn): Handle noabort path.
5266 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
5268 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
5269 * opts.c (finish_options): Reword comment.
5270 * sanitizer.def: Add noabort ASan builtins.
5272 2014-10-28 Yury Gribov <y.gribov@samsung.com>
5274 * asan.c (set_asan_shadow_offset): New function.
5275 (asan_shadow_offset): Likewise.
5276 (asan_emit_stack_protection): Call asan_shadow_offset.
5277 (build_shadow_mem_access): Likewise.
5278 * asan.h (set_asan_shadow_offset): Declare.
5279 * common.opt (fasan-shadow-offset): New option.
5280 (frandom-seed): Fixed parameter name.
5281 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
5282 (frandom-seed): Fixed parameter name.
5283 * opts-global.c (handle_common_deferred_options): Handle
5284 -fasan-shadow-offset.
5285 * opts.c (common_handle_option): Likewise.
5287 2014-10-27 Jiong Wang <jiong.wang@arm.com>
5290 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
5292 2014-10-27 DJ Delorie <dj@redhat.com>
5294 * tree.c (build_common_tree_nodes): Don't even store the
5295 __int128 types if they're not supported.
5297 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5299 * config/i386/i386.c (ix86_loop_memcount): Delete.
5300 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
5302 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5304 * config/i386/i386.c (find_constant_1): Delete.
5305 (find_constant): Use FOR_EACH_SUBRTX.
5307 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5309 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
5310 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
5312 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5314 * config/i386/i386.c: Include rtl-iter.h
5315 (ix86_check_avx256_register): Take a const_rtx and return a bool.
5316 (ix86_check_avx256_stores): Update call accordingly.
5317 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
5318 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
5320 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5322 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
5323 Take an rtx and return a bool.
5324 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
5325 Use FOR_EACH_SUBRTX_VAR.
5326 * config/alpha/predicates.md (some_small_symbolic_operand): Update
5329 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5331 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
5333 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
5334 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
5336 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5338 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
5339 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
5341 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5343 * config/alpha/alpha.c: Include rtl-iter.h.
5344 (split_small_symbolic_operand_1): Delete.
5345 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
5347 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5349 * config/s390/s390.c: Include rtl-iter.h.
5350 (check_dpu): Delete.
5351 (s390_loop_unroll_adjust): Only iterate over patterns.
5352 Use FOR_EACH_SUBRTX.
5354 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
5356 * config/spu/spu.c: Include rtl-iter.h
5357 (ea_symbol_ref): Replace with...
5358 (ea_symbol_ref_p): ...this new function.
5359 (spu_legitimate_address_p): Update call accordingly.
5360 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
5362 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
5363 Tom Tromey <tromey@redhat.com>
5365 * aclocal.m4, configure: Rebuild.
5366 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
5367 * configure.ac: Use GCC_ENABLE_PLUGINS.
5368 * stor-layout.c (finish_bitfield_layout): Now public. Change
5369 argument type to 'tree'.
5370 (finish_record_layout): Update.
5371 * stor-layout.h (finish_bitfield_layout): Declare.
5373 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5375 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
5376 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
5377 Restore, enable for bigendian, update to use __builtin..._scal...
5379 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5381 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
5382 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
5383 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
5384 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
5386 * config/aarch64/aarch64-simd.md
5387 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
5388 (reduc_<maxmin_uns>_internal<mode>): ...this.
5389 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
5390 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
5392 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
5393 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
5394 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
5396 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
5397 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
5398 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
5399 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
5400 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
5401 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
5402 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
5403 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
5405 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5407 * config/aarch64/aarch64-simd-builtins.def
5408 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
5410 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
5412 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
5413 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
5415 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
5416 (aarch64_reduc_plus_internal<mode>): ...this.
5418 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
5419 (aarch64_reduc_plus_internalv2si): ...this.
5421 (reduc_splus_<mode>/V2F): Rename to...
5422 (aarch64_reduc_plus_internal<mode>): ...this.
5424 * config/aarch64/iterators.md
5425 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
5427 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
5429 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
5430 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
5431 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
5432 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
5433 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
5435 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5437 PR tree-optimization/61114
5438 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
5439 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
5441 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
5442 back to old reduc_... + BIT_FIELD_REF only if not.
5444 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
5445 return the reduce-to-scalar (reduc_..._scal) optab.
5446 (scalar_reduc_to_vector): New.
5448 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
5449 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
5452 * optabs.h (scalar_reduc_to_vector): Declare.
5454 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
5455 to either scalar or vector.
5457 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5459 PR tree-optimization/61114
5460 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
5461 extract_bit_field around optab result.
5463 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
5466 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
5467 for REDUC_{MIN,MAX,PLUS}_EXPR.
5469 * tree-vect-loop.c (vect_analyze_loop): Update comment.
5470 (vect_create_epilog_for_reduction): For direct vector reduction, use
5471 result of tree code directly without extract_bit_field.
5473 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
5476 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
5478 * basic-block.h: Remove all includes.
5479 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
5480 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
5481 * Makefile.in (GTFILES): Add cfg.h to list.
5482 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
5483 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
5484 * genconditions.c (write_header): Add predict.h and basic-block.h to
5486 * genemit.c (main): Ditto.
5487 * genpreds.c (write_insn_preds_c): Ditto.
5488 * genrecog.c (write_header): Ditto.
5489 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
5490 to list of includes.
5491 * alias.c: Adjust include files.
5493 * auto-inc-dec.c: Ditto.
5494 * auto-profile.c: Ditto.
5495 * bb-reorder.c: Ditto.
5497 * builtins.c: Ditto.
5498 * caller-save.c: Ditto.
5502 * cfgbuild.c: Ditto.
5503 * cfgcleanup.c: Ditto.
5504 * cfgexpand.c: Ditto.
5505 * cfghooks.c: Ditto.
5507 * cfgloopanal.c: Ditto.
5508 * cfgloopmanip.c: Ditto.
5510 * cgraphbuild.c: Ditto.
5511 * cgraphclones.c: Ditto.
5512 * cgraphunit.c: Ditto.
5513 * combine-stack-adj.c: Ditto.
5515 * compare-elim.c: Ditto.
5516 * coverage.c: Ditto.
5520 * data-streamer-in.c: Ditto.
5521 * data-streamer-out.c: Ditto.
5522 * data-streamer.c: Ditto.
5527 * df-problems.c: Ditto.
5531 * dominance.c: Ditto.
5534 * dwarf2cfi.c: Ditto.
5535 * emit-rtl.c: Ditto.
5536 * et-forest.c: Ditto.
5541 * fold-const.c: Ditto.
5542 * function.c: Ditto.
5544 * gcc-plugin.h: Ditto.
5546 * generic-match-head.c: Ditto.
5547 * ggc-page.c: Ditto.
5548 * gimple-builder.c: Ditto.
5549 * gimple-expr.c: Ditto.
5550 * gimple-fold.c: Ditto.
5551 * gimple-iterator.c: Ditto.
5552 * gimple-low.c: Ditto.
5553 * gimple-match-head.c: Ditto.
5554 * gimple-pretty-print.c: Ditto.
5555 * gimple-ssa-isolate-paths.c: Ditto.
5556 * gimple-ssa-strength-reduction.c: Ditto.
5557 * gimple-streamer-in.c: Ditto.
5558 * gimple-streamer-out.c: Ditto.
5559 * gimple-streamer.h: Ditto.
5560 * gimple-walk.c: Ditto.
5562 * gimplify-me.c: Ditto.
5563 * gimplify.c: Ditto.
5565 * graphite-blocking.c: Ditto.
5566 * graphite-clast-to-gimple.c: Ditto.
5567 * graphite-dependences.c: Ditto.
5568 * graphite-interchange.c: Ditto.
5569 * graphite-isl-ast-to-gimple.c: Ditto.
5570 * graphite-optimize-isl.c: Ditto.
5571 * graphite-poly.c: Ditto.
5572 * graphite-scop-detection.c: Ditto.
5573 * graphite-sese-to-poly.c: Ditto.
5574 * graphite.c: Ditto.
5575 * haifa-sched.c: Ditto.
5576 * hw-doloop.c: Ditto.
5578 * init-regs.c: Ditto.
5579 * internal-fn.c: Ditto.
5581 * ipa-devirt.c: Ditto.
5582 * ipa-icf-gimple.c: Ditto.
5584 * ipa-inline-analysis.c: Ditto.
5585 * ipa-inline.c: Ditto.
5586 * ipa-polymorphic-call.c: Ditto.
5587 * ipa-profile.c: Ditto.
5588 * ipa-prop.c: Ditto.
5589 * ipa-pure-const.c: Ditto.
5590 * ipa-reference.c: Ditto.
5591 * ipa-split.c: Ditto.
5592 * ipa-utils.c: Ditto.
5594 * ira-build.c: Ditto.
5595 * ira-color.c: Ditto.
5596 * ira-conflicts.c: Ditto.
5597 * ira-costs.c: Ditto.
5598 * ira-emit.c: Ditto.
5599 * ira-lives.c: Ditto.
5603 * loop-doloop.c: Ditto.
5604 * loop-init.c: Ditto.
5605 * loop-invariant.c: Ditto.
5607 * loop-unroll.c: Ditto.
5608 * lower-subreg.c: Ditto.
5609 * lra-assigns.c: Ditto.
5610 * lra-coalesce.c: Ditto.
5611 * lra-constraints.c: Ditto.
5612 * lra-eliminations.c: Ditto.
5613 * lra-lives.c: Ditto.
5614 * lra-spills.c: Ditto.
5616 * lto-cgraph.c: Ditto.
5617 * lto-compress.c: Ditto.
5618 * lto-opts.c: Ditto.
5619 * lto-section-in.c: Ditto.
5620 * lto-section-out.c: Ditto.
5621 * lto-streamer-in.c: Ditto.
5622 * lto-streamer-out.c: Ditto.
5623 * lto-streamer.c: Ditto.
5625 * mode-switching.c: Ditto.
5626 * modulo-sched.c: Ditto.
5629 * opts-global.c: Ditto.
5631 * postreload-gcse.c: Ditto.
5632 * postreload.c: Ditto.
5634 * print-rtl.c: Ditto.
5638 * reg-stack.c: Ditto.
5639 * regcprop.c: Ditto.
5640 * regcprop.h: Ditto.
5642 * regrename.c: Ditto.
5647 * resource.c: Ditto.
5649 * sched-deps.c: Ditto.
5650 * sched-ebb.c: Ditto.
5651 * sched-int.h: Ditto.
5652 * sched-rgn.c: Ditto.
5653 * sched-vis.c: Ditto.
5654 * sel-sched-dump.c: Ditto.
5655 * sel-sched-ir.c: Ditto.
5656 * sel-sched-ir.h: Ditto.
5657 * sel-sched.c: Ditto.
5659 * shrink-wrap.c: Ditto.
5660 * stack-ptr-mod.c: Ditto.
5662 * store-motion.c: Ditto.
5666 * trans-mem.c: Ditto.
5667 * tree-affine.c: Ditto.
5668 * tree-call-cdce.c: Ditto.
5669 * tree-cfg.c: Ditto.
5670 * tree-cfgcleanup.c: Ditto.
5671 * tree-chrec.c: Ditto.
5672 * tree-complex.c: Ditto.
5673 * tree-data-ref.c: Ditto.
5674 * tree-dfa.c: Ditto.
5676 * tree-emutls.c: Ditto.
5677 * tree-if-conv.c: Ditto.
5678 * tree-inline.c: Ditto.
5679 * tree-into-ssa.c: Ditto.
5680 * tree-loop-distribution.c: Ditto.
5681 * tree-nested.c: Ditto.
5682 * tree-nrv.c: Ditto.
5683 * tree-object-size.c: Ditto.
5684 * tree-outof-ssa.c: Ditto.
5685 * tree-parloops.c: Ditto.
5686 * tree-phinodes.c: Ditto.
5687 * tree-predcom.c: Ditto.
5688 * tree-pretty-print.c: Ditto.
5689 * tree-profile.c: Ditto.
5690 * tree-scalar-evolution.c: Ditto.
5691 * tree-sra.c: Ditto.
5692 * tree-ssa-address.c: Ditto.
5693 * tree-ssa-alias.c: Ditto.
5694 * tree-ssa-ccp.c: Ditto.
5695 * tree-ssa-coalesce.c: Ditto.
5696 * tree-ssa-copy.c: Ditto.
5697 * tree-ssa-copyrename.c: Ditto.
5698 * tree-ssa-dce.c: Ditto.
5699 * tree-ssa-dom.c: Ditto.
5700 * tree-ssa-dse.c: Ditto.
5701 * tree-ssa-forwprop.c: Ditto.
5702 * tree-ssa-ifcombine.c: Ditto.
5703 * tree-ssa-live.c: Ditto.
5704 * tree-ssa-loop-ch.c: Ditto.
5705 * tree-ssa-loop-im.c: Ditto.
5706 * tree-ssa-loop-ivcanon.c: Ditto.
5707 * tree-ssa-loop-ivopts.c: Ditto.
5708 * tree-ssa-loop-manip.c: Ditto.
5709 * tree-ssa-loop-niter.c: Ditto.
5710 * tree-ssa-loop-prefetch.c: Ditto.
5711 * tree-ssa-loop-unswitch.c: Ditto.
5712 * tree-ssa-loop.c: Ditto.
5713 * tree-ssa-math-opts.c: Ditto.
5714 * tree-ssa-operands.c: Ditto.
5715 * tree-ssa-phiopt.c: Ditto.
5716 * tree-ssa-phiprop.c: Ditto.
5717 * tree-ssa-pre.c: Ditto.
5718 * tree-ssa-propagate.c: Ditto.
5719 * tree-ssa-reassoc.c: Ditto.
5720 * tree-ssa-sccvn.c: Ditto.
5721 * tree-ssa-sink.c: Ditto.
5722 * tree-ssa-strlen.c: Ditto.
5723 * tree-ssa-structalias.c: Ditto.
5724 * tree-ssa-tail-merge.c: Ditto.
5725 * tree-ssa-ter.c: Ditto.
5726 * tree-ssa-threadedge.c: Ditto.
5727 * tree-ssa-threadupdate.c: Ditto.
5728 * tree-ssa-uncprop.c: Ditto.
5729 * tree-ssa-uninit.c: Ditto.
5730 * tree-ssa.c: Ditto.
5731 * tree-ssanames.c: Ditto.
5732 * tree-stdarg.c: Ditto.
5733 * tree-streamer-in.c: Ditto.
5734 * tree-streamer-out.c: Ditto.
5735 * tree-streamer.c: Ditto.
5736 * tree-switch-conversion.c: Ditto.
5737 * tree-tailcall.c: Ditto.
5738 * tree-vect-data-refs.c: Ditto.
5739 * tree-vect-generic.c: Ditto.
5740 * tree-vect-loop-manip.c: Ditto.
5741 * tree-vect-loop.c: Ditto.
5742 * tree-vect-patterns.c: Ditto.
5743 * tree-vect-slp.c: Ditto.
5744 * tree-vect-stmts.c: Ditto.
5745 * tree-vectorizer.c: Ditto.
5746 * tree-vrp.c: Ditto.
5750 * valtrack.c: Ditto.
5751 * valtrack.h: Ditto.
5752 * value-prof.c: Ditto.
5753 * var-tracking.c: Ditto.
5756 * vtable-verify.c: Ditto.
5758 * config/aarch64/aarch64-builtins.c: Ditto.
5759 * config/aarch64/aarch64.c: Ditto.
5760 * config/alpha/alpha.c: Ditto.
5761 * config/arc/arc.c: Ditto.
5762 * config/arm/arm.c: Ditto.
5763 * config/avr/avr.c: Ditto.
5764 * config/bfin/bfin.c: Ditto.
5765 * config/c6x/c6x.c: Ditto.
5766 * config/cr16/cr16.c: Ditto.
5767 * config/cris/cris.c: Ditto.
5768 * config/darwin-c.c: Ditto.
5769 * config/darwin.c: Ditto.
5770 * config/epiphany/epiphany.c: Ditto.
5771 * config/epiphany/mode-switch-use.c: Ditto.
5772 * config/epiphany/resolve-sw-modes.c: Ditto.
5773 * config/fr30/fr30.c: Ditto.
5774 * config/frv/frv.c: Ditto.
5775 * config/h8300/h8300.c: Ditto.
5776 * config/i386/i386.c: Ditto.
5777 * config/i386/winnt.c: Ditto.
5778 * config/ia64/ia64.c: Ditto.
5779 * config/iq2000/iq2000.c: Ditto.
5780 * config/lm32/lm32.c: Ditto.
5781 * config/m32c/m32c.c: Ditto.
5782 * config/m32r/m32r.c: Ditto.
5783 * config/m68k/m68k.c: Ditto.
5784 * config/mcore/mcore.c: Ditto.
5785 * config/mep/mep.c: Ditto.
5786 * config/microblaze/microblaze.c: Ditto.
5787 * config/mips/mips.c: Ditto.
5788 * config/mmix/mmix.c: Ditto.
5789 * config/mn10300/mn10300.c: Ditto.
5790 * config/moxie/moxie.c: Ditto.
5791 * config/msp430/msp430.c: Ditto.
5792 * config/nds32/nds32-cost.c: Ditto.
5793 * config/nds32/nds32-fp-as-gp.c: Ditto.
5794 * config/nds32/nds32-intrinsic.c: Ditto.
5795 * config/nds32/nds32-isr.c: Ditto.
5796 * config/nds32/nds32-md-auxiliary.c: Ditto.
5797 * config/nds32/nds32-memory-manipulation.c: Ditto.
5798 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
5799 * config/nds32/nds32-predicates.c: Ditto.
5800 * config/nds32/nds32.c: Ditto.
5801 * config/nios2/nios2.c: Ditto.
5802 * config/pa/pa.c: Ditto.
5803 * config/pdp11/pdp11.c: Ditto.
5804 * config/rl78/rl78.c: Ditto.
5805 * config/rs6000/rs6000.c: Ditto.
5806 * config/rx/rx.c: Ditto.
5807 * config/s390/s390.c: Ditto.
5808 * config/sh/sh-mem.cc: Ditto.
5809 * config/sh/sh.c: Ditto.
5810 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
5811 * config/sh/sh_treg_combine.cc: Ditto.
5812 * config/sparc/sparc.c: Ditto.
5813 * config/spu/spu.c: Ditto.
5814 * config/stormy16/stormy16.c: Ditto.
5815 * config/tilegx/tilegx.c: Ditto.
5816 * config/tilepro/tilepro.c: Ditto.
5817 * config/v850/v850.c: Ditto.
5818 * config/vax/vax.c: Ditto.
5819 * config/xtensa/xtensa.c: Ditto.
5821 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5823 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
5824 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
5825 Remove using preprocessor directives.
5827 2014-10-27 Richard Biener <rguenther@suse.de>
5829 * match.pd (0 % X): Properly use the iterator iterating over
5830 all modulo operators.
5833 2014-10-27 Richard Biener <rguenther@suse.de>
5835 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
5836 (lattice): New global.
5837 (fwprop_ssa_val): New function.
5838 (fold_all_stmts): Likewise.
5839 (pass_forwprop::execute): Finally fold all stmts.
5841 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5844 * doc/invoke.texi (fmessage-length): Update text to match reality.
5846 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5848 * config/microblaze/microblaze.c: Include rtl-iter.h.
5849 (microblaze_tls_referenced_p_1): Delete.
5850 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
5852 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5854 * config/mips/mips.c (mips_at_reg_p): Delete.
5855 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
5857 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5859 * config/mips/mips.c (mips_record_lo_sum): Replace with...
5860 (mips_record_lo_sums): ...this new function.
5861 (mips_reorg_process_insns): Update accordingly.
5863 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5865 * config/mips/mips.c (mips_sim_insn): Update comment.
5866 (mips_sim_wait_regs_2): Delete.
5867 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
5869 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5871 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
5872 and return a bool. Iterate over all subrtxes here.
5873 (r10k_needs_protection_p): Update accordingly.
5875 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5877 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
5878 rather than an rtx pointer. Change type of insn from "void *"
5879 to its real type. Return bool rather than int. Iterate over
5881 (r10k_needs_protection_p_store): Update accordingly.
5882 (r10k_needs_protection_p): Likewise.
5884 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5886 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
5887 (mips16_rewrite_pool_refs): Take the insn and constant pool as
5888 parameters. Iterate over the instruction's pattern and return void.
5889 (mips16_lay_out_constants): Update accordingly.
5891 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5893 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
5894 (mips_refers_to_kernel_reg_p): ...this new function.
5895 (mips_expand_prologue): Update accordingly.
5897 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5899 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
5900 as a parameter instead of the containing MEM. Iterate over all
5901 subrtxes. Don't return a value.
5902 (mips_rewrite_small_data): Update call accordingly.
5904 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5906 * config/mips/mips.c: Include rtl-iter.h.
5907 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
5908 Take the context as a parameter instead of the containing MEM.
5909 Iterate over all subrtxes.
5910 (mips_small_data_pattern_p): Update call accordingly.
5912 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5914 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
5915 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
5917 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5919 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
5920 return a bool. Replace "void *" with specific type. Iterate
5922 (mep_store_data_bypass_1): Update calls accordingly.
5924 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5926 * config/mep/mep.c: Include rtl-iter.h.
5927 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
5928 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
5930 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5932 * config/xtensa/xtensa.c: Include rtl-iter.h.
5933 (xtensa_tls_referenced_p_1): Delete.
5934 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
5936 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5938 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
5939 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
5941 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5943 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
5944 rtx as argument and return the number of changes.
5945 * config/sh/sh.c: Include rtl-iter.h.
5946 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
5947 over all subrtxes. Return the number of changes made.
5948 * config/sh/sh.md: Update caller accordingly.
5950 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5952 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
5953 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
5955 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5957 * config/m68k/m68k.c: Include rtl-iter.h.
5958 (m68k_final_prescan_insn_1): Delete.
5959 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
5961 2014-10-25 Jakub Jelinek <jakub@redhat.com>
5963 PR tree-optimization/63641
5964 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
5965 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
5967 2014-10-25 Alan Modra <amodra@gmail.com>
5969 PR rtl-optimization/63615
5970 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
5971 decomposing PLUS or MINUS if operands are not placed adjacent
5974 2014-10-25 Joseph Myers <joseph@codesourcery.com>
5976 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
5977 not allow e500 double in registers not satisyfing
5980 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
5982 * dwarf2out.c (declare_in_namespace): Only emit external
5983 declarations in the local scope once.
5985 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
5987 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
5989 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
5991 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
5992 update uses to use new macro arguments.
5993 (__LD3_LANE_FUNC): Likewise.
5994 (__LD4_LANE_FUNC): Likewise.
5996 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
5998 * config/aarch64/aarch64-builtins.c
5999 (aarch64_types_loadstruct_lane_qualifiers): Define.
6000 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
6001 ld4_lane): New builtins.
6002 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
6004 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
6005 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
6006 (aarch64_ld2_lane<mode>): New expand.
6007 (aarch64_ld3_lane<mode>): Likewise.
6008 (aarch64_ld4_lane<mode>): Likewise.
6009 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
6010 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
6012 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
6014 * avr-protos.h (avr_out_sign_extend): New.
6015 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
6016 (avr_out_sign_extend): New function.
6017 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
6018 (extendhisi2, extendpsisi2): Use it.
6019 (adjust_len) [sext]: New.
6021 2014-10-24 Martin Liska <mliska@suse.cz>
6023 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
6026 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6028 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
6029 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
6030 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
6031 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
6033 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6035 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
6037 * config/aarch64/aarch64.c (is_mem_p): Delete.
6038 (is_memory_op): Rename to...
6039 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
6040 (dep_between_memop_and_curr): Assert that the input is a SET.
6041 (aarch64_madd_needs_nop): Add comment. Do not call
6042 dep_between_memop_and_curr on NULL body.
6043 (aarch64_final_prescan_insn): Add comment.
6046 2014-10-24 Richard Biener <rguenther@suse.de>
6048 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
6049 to genmatch BUILD_LIBS instead.
6051 2014-10-24 Richard Biener <rguenther@suse.de>
6053 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
6054 and build_call_expr_loc.
6055 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
6056 non_lvalue_loc to build it for GENERIC.
6057 (decision_tree::gen_generic): Add location argument to
6058 generic_simplify prototype.
6059 (capture_info): New class.
6060 (capture_info::capture_info): New constructor.
6061 (capture_info::walk_match): New method.
6062 (capture_info::walk_result): New method.
6063 (capture_info::walk_c_expr): New method.
6064 (dt_simplify::gen): Handle preserving side-effects for
6065 GENERIC code generation.
6066 (decision_tree::gen_generic): Do not reject operands
6067 with TREE_SIDE_EFFECTS.
6068 * generic-match.h: New file.
6069 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
6070 * match.pd: Add some constant folding patterns from fold-const.c.
6071 * fold-const.c: Include generic-match.h.
6072 (fold_unary_loc): Dispatch to generic_simplify.
6073 (fold_ternary_loc): Likewise.
6074 (fold_binary_loc): Likewise. Remove patterns now implemented
6075 by generic_simplify.
6076 * gimple-fold.c (replace_stmt_with_simplification): New function.
6077 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
6078 (no_follow_ssa_edges): New function.
6079 (fold_stmt): New overload with valueization hook. Use
6080 no_follow_ssa_edges for the overload without hook.
6081 (fold_stmt_inplace): Likewise.
6082 * gimple-fold.h (no_follow_ssa_edges): Declare.
6084 2014-10-24 Felix Yang <felix.yang@huawei.com>
6085 Jiji Jiang <jiangjiji@huawei.com>
6088 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
6089 (__LD3R_FUNC): Ditto.
6090 (__LD4R_FUNC): Ditto.
6091 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
6092 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
6093 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
6094 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
6095 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
6096 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
6097 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
6098 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
6099 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
6100 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
6101 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
6102 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
6103 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
6104 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
6105 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
6106 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
6107 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
6108 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
6109 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
6110 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
6111 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
6113 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
6114 (aarch64_simd_ld3r<mode>): Likewise.
6115 (aarch64_simd_ld4r<mode>): Likewise.
6116 (aarch64_ld2r<mode>): New expand.
6117 (aarch64_ld3r<mode>): Likewise.
6118 (aarch64_ld4r<mode>): Likewise.
6120 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6122 * rtlanal.c (get_base_term): Handle SCRATCH.
6124 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6126 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
6129 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6131 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
6132 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
6133 (max_issue, choose_ready, sched_init): Update.
6135 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6137 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
6138 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
6139 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
6140 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
6141 (print_rank_for_schedule_stats): Print out elements of ready list that
6142 ended up on their respective places due to each of the sorting
6144 (ready_sort): Update.
6145 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
6146 (schedule_block): Update.
6148 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6150 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
6151 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
6152 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
6153 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
6154 (model_start_schedule): Update.
6155 (sched_pressure_start_bb): New static function. Calculate
6156 sched_class_regs_num.
6157 (schedule_block): Use it.
6158 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
6160 2014-10-24 Richard Biener <rguenther@suse.de>
6162 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
6163 host library and make sure to pull in the required libintl
6164 and libiconv dependencies.
6166 2014-10-24 Richard Biener <rguenther@suse.de>
6168 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
6170 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
6173 * collect2.c (main): Filter out -fno-lto.
6175 2014-10-24 Martin Liska <mliska@suse.cz>
6177 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
6178 division by zero in dumps.
6179 (sem_item_optimizer::merge_classes): Ditto.
6181 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
6183 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
6185 2014-10-23 Ian Lance Taylor <iant@google.com>
6187 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
6189 2014-10-23 Ian Lance Taylor <iant@google.com>
6191 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
6193 2014-10-23 Jakub Jelinek <jakub@redhat.com>
6196 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
6197 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
6198 instead of only handling autoinc in dest if it is a MEM.
6199 (vt_stack_adjustments): Fix up formatting.
6201 2014-10-23 DJ Delorie <dj@redhat.com>
6203 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
6204 independend of -mlarge.
6205 * config/msp430/constraints.md (Ys): Update comment.
6207 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
6211 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
6213 * dse.c (deletable_insn_p): Likewise.
6215 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
6217 * config/avr/avr.c: Fix GNU coding rules and typos.
6218 * config/avr/avr.h: Dito.
6219 * config/avr/avr-c.c: Dito.
6220 * config/avr/avr.md: Dito.
6222 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
6224 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
6226 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
6228 (define_expand "abs<mode>2"): Ditto.
6230 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
6232 * tree-core.h (tree_var_decl): Extend `function_code' field
6233 by one bit, move `regdecl_flag' field to ...
6234 (tree_decl_with_vis): Here.
6235 * tree.h (DECL_STATIC_CHAIN): Update struct name.
6237 2014-10-23 Richard Biener <rguenther@suse.de>
6239 * Makefile.in (BUILD_CPPLIB): Add.
6240 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
6243 2014-10-23 Richard Biener <rguenther@suse.de>
6245 * fold-const.c (fold_binary_loc): Preserve side-effects of
6246 X - X when simplifying to 0.
6247 * stor-layout.c (finish_bitfield_representative): Strip
6248 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
6250 2014-10-22 Richard Biener <rguenther@suse.de>
6251 Tobias Burnus <burnus@net-b.de>
6254 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
6256 2014-10-22 Dehao Chen <dehao@google.com>
6258 * auto-profile.c: Change order of header files.
6260 2014-10-22 Guozhi Wei <carrot@google.com>
6262 PR tree-optimization/63530
6263 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
6264 pointer alignment according to DR_MISALIGNMENT.
6266 2014-10-22 David Malcolm <dmalcolm@redhat.com>
6268 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
6270 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
6272 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
6273 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
6274 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
6275 * dominance.h: New. Add prototypes for dominance.c.
6276 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
6277 * cfghooks.h: (struct profile_record) Relocate here.
6278 Relocate 2 prototypes from basic-block.h.
6279 * basic-block.h: Move prototypes and struct to new header files.
6280 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
6281 * rtl.h: Move a few prototypes to new header files.
6282 * cfgcleanup.c (merge_memattrs): Make static.
6283 * genopinit.c (main): Add predict.h to list of includes.
6284 * predict.h: Update prototype list to match predict.c.
6285 * predict.c (maybe_hot_count_p): Export.
6286 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
6287 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
6288 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
6289 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
6290 * profile.h: Adjust prototypes.
6291 * ifcvt.h: New. Relocate struct ce_if_block here.
6292 * ifcvt.c: Include ifcvt.h.
6293 * config/frv/frv.c: Include ifcvt.h.
6294 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
6296 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
6298 * lra.c (lra): Remove call to recog_init.
6299 * config/i386/i386.md (preferred_for_speed): New attribute
6300 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
6301 "enabled". Remove check for sched1.
6303 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
6305 * recog.h (recog_data_d): Remove enabled_alternatives.
6306 * recog.c (extract_insn): Don't set it.
6307 * reload.c (find_reloads): Call get_enabled_alternatives.
6309 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
6311 * recog.h (constrain_operands): Add an alternative_mask parameter.
6312 (constrain_operands_cached): Likewise.
6313 (get_preferred_alternatives): Declare new form.
6314 * recog.c (get_preferred_alternatives): New bb-taking instance.
6315 (constrain_operands): Take the set of available alternatives as
6317 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
6318 (extract_constrain_insn_cached): Update calls to constrain_operands.
6319 * caller-save.c (reg_save_code): Likewise.
6320 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6321 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6322 * ree.c (combine_reaching_defs): Likewise.
6323 * reload.c (can_reload_into): Likewise.
6324 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
6325 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
6326 (emit_insn_if_valid_for_reload): Likewise.
6327 * reorg.c (fill_slots_from_thread): Likewise.
6328 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
6329 * config/pa/pa.c (pa_can_combine_p): Likewise.
6330 * config/rl78/rl78.c (insn_ok_now): Likewise.
6331 * config/sh/sh.md (define_peephole2): Likewise.
6332 * final.c (final_scan_insn): Update call to constrain_operands_cached.
6334 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
6336 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
6338 * genattr.c (main): Handle "preferred_for_size" and
6339 "preferred_for_speed" in the same way as "enabled".
6340 * recog.h (bool_attr): New enum.
6341 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
6342 (get_preferred_alternatives, check_bool_attrs): Declare.
6343 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
6344 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
6346 (get_enabled_alternatives): Use get_bool_attr_mask.
6347 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
6348 instead of recog_data.enabled_alternatives.
6349 * ira.c (ira_setup_alts): Likewise.
6350 * postreload.c (reload_cse_simplify_operands): Likewise.
6351 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6352 * ira-lives.c (preferred_alternatives): New variable.
6353 (process_bb_node_lives): Set it.
6354 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
6355 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
6356 of recog_data.enabled_alternatives.
6357 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
6358 to preferred_alternatives.
6359 * lra-constraints.c (process_alt_operands): Update accordingly.
6360 * lra.c (lra_set_insn_recog_data): Likewise.
6361 (lra_update_insn_recog_data): Assert check_bool_attrs.
6363 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
6365 * recog.h (extract_constrain_insn): Declare.
6366 * recog.c (extract_constrain_insn): New function.
6367 * lra.c (check_rtl): Use it.
6368 * postreload.c (reload_cse_simplify_operands): Likewise.
6369 * reg-stack.c (check_asm_stack_operands): Likewise.
6370 (subst_asm_stack_regs): Likewise.
6371 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
6372 * regrename.c (build_def_use): Likewise.
6373 * sel-sched.c (get_reg_class): Likewise.
6374 * config/arm/arm.c (note_invalid_constants): Likewise.
6375 * config/s390/predicates.md (execute_operation): Likewise.
6377 2014-10-22 Jakub Jelinek <jakub@redhat.com>
6378 Yury Gribov <y.gribov@samsung.com>
6380 * common.opt (flag_sanitize_recover): New variable.
6381 (fsanitize-recover): Remove Var/Init, deprecate.
6382 (fsanitize-recover=): New option.
6383 * doc/invoke.texi (fsanitize-recover): Update docs.
6384 * opts.c (finish_options): Use opts->x_flag_sanitize
6385 instead of flag_sanitize. Prohibit -fsanitize-recover
6386 for anything besides UBSan. Formatting.
6387 (common_handle_option): Handle OPT_fsanitize_recover_
6388 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
6389 instead of flag_sanitize.
6390 * asan.c (pass_sanopt::execute): Fix up formatting.
6391 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
6392 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
6393 instrument_bool_enum_load, ubsan_instrument_float_cast,
6394 instrument_nonnull_arg, instrument_nonnull_return): Check
6395 bits in flag_sanitize_recover bitmask instead of
6396 flag_sanitize_recover as bool flag.
6398 2014-10-22 Jiong Wang <jiong.wang@arm.com>
6400 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
6402 2014-10-22 Renlin Li <renlin.li@arm.com>
6404 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
6405 __ARM_FEATURE_IDIV__.
6407 2014-10-22 Richard Biener <rguenther@suse.de>
6409 * Makefile.in (s-match): Adjust dependencies to only catch
6412 2014-10-22 Richard Biener <rguenther@suse.de>
6413 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
6415 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
6416 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
6417 (gimple-match.c): Generate by triggering s-match.
6418 (generic-match.c): Likewise.
6419 (s-match): Rule to build gimple-match.c and generic-match.c
6420 by running the genmatch generator program.
6421 (build/hash-table.o): Dependencies to build hash-table.c for the host.
6422 (build/genmatch.o): Dependencies to build genmatch.
6423 (genprog): Add match.
6424 (build/genmatch): Likewise.
6425 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
6426 * generic-match-head.c: New file.
6427 * gimple-match-head.c: Likewise.
6428 * gimple-match.h: Likewise.
6429 * genmatch.c: Likewise.
6430 * match.pd: Likewise.
6431 * builtins.h (fold_builtin_n): Export.
6432 * builtins.c (fold_builtin_n): Likewise.
6433 * gimple-fold.h (gimple_build): Declare various overloads.
6434 (gimple_simplify): Likewise.
6435 (gimple_convert): Re-implement in terms of gimple_build.
6436 * gimple-fold.c (gimple_convert): Remove.
6437 (gimple_build): New functions.
6438 * doc/match-and-simplify.texi: New file.
6439 * doc/gccint.texi: Add menu item Match and Simplify and include
6440 match-and-simplify.texi.
6442 2014-10-22 Jakub Jelinek <jakub@redhat.com>
6445 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
6446 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
6447 even for just TARGET_AVX2, not only for
6448 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
6449 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
6450 otherwise build it using concatenation of 256-bit
6452 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
6453 avx512 broadcast patterns.
6454 (vec_dup<mode>): Likewise. For avx2 use
6455 v<sseintprefix>broadcast<bcstscalarsuff> instead of
6456 vbroadcast<ssescalarmodesuffix>.
6457 (AVX2_VEC_DUP_MODE): New mode iterator.
6458 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
6459 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
6462 * config/i386/i386.c (ix86_pic_register_p): Also return
6463 true if x is a hard register with ORIGINAL_REGNO equal to
6464 pic_offset_table_rtx pseudo REGNO.
6465 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
6466 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
6468 2014-10-22 Alan Modra <amodra@gmail.com>
6470 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
6471 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
6472 (gcc_obstack_init): Use obstack_specify_allocation in place of
6474 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
6475 (regexp_representation): Likewise.
6476 * godump.c (go_output_type): Likewise.
6478 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
6480 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
6481 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
6482 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
6484 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6486 * doc/invoke.texi (pedantic-errors): Explain better.
6488 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
6489 Vidya Praveen <vidya.praveen@atmel.com>
6490 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
6491 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
6492 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
6494 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
6496 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
6497 (avr_nonconst_pointer_addrspace): Likewise.
6498 * config/avr/avr.h (AVR_HAVE_LPM): Define.
6500 Added AVRTINY architecture to avr target.
6501 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
6502 (base_arch_s): member added for AVRTINY architecture.
6503 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
6504 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
6505 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
6506 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
6507 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
6508 in callee saved register list.
6509 (avr_option_override): CCP address updated for AVRTINY.
6510 (avr_init_expanders): tmp and zero rtx initialized as per arch.
6511 Reset avr_have_dimode if AVRTINY.
6512 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
6513 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
6514 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
6515 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
6516 (expand_epilogue): Likewise.
6517 (avr_print_operand): Print CCP address in case of AVRTINY also.
6519 (function_arg_regno_p): Check different register list for arguments
6521 (init_cumulative_args): Check for AVRTINY to update number of argument
6523 (tiny_valid_direct_memory_access_range): New function. Return false if
6524 direct memory access range is not in accepted range for AVRTINY.
6525 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
6526 indirect load (with displacement) for AVRTINY.
6527 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
6528 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
6529 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
6530 indirect load (no displacement) for AVRTINY.
6531 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
6532 indirect load (with displacement) for AVRTINY.
6533 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
6534 indirect load for pre-decrement address.
6535 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
6536 functions. Update instruction length for AVRTINY.
6537 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
6539 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
6540 (out_movsi_r_mr): Likewise, for SImode.
6541 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
6542 indirect store (no displacement) for AVRTINY.
6543 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
6544 indirect store (with displacement) for AVRTINY.
6545 (out_movsi_mr_r): Emit out insn for IO address store. Update store
6546 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
6548 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
6549 indirect load (no displacement) for PSImode in AVRTINY.
6550 (avr_out_load_psi_reg_disp_tiny): New function to handle register
6551 indirect load (with displacement) for PSImode in AVRTINY.
6552 (avr_out_load_psi): Call PSImode register indirect load functions for
6553 AVRTINY. Update instruction length for AVRTINY.
6554 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
6555 indirect store (no displacement) for PSImode in AVRTINY.
6556 (avr_out_store_psi_reg_disp_tiny): New function to handle register
6557 indirect store (with displacement) for PSImode in AVRTINY.
6558 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
6559 register indirect store functions for AVRTINY.
6560 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
6561 register indirect store (with displacement) for AVRTINY.
6562 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
6563 register indirect store function for QImode in AVRTINY.
6564 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
6565 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
6566 indirect store (no displacement) for HImode in AVRTINY.
6567 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
6568 indirect store (with displacement) for HImode in AVRTINY.
6569 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
6570 indirect store for post-increment address in HImode.
6571 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
6572 register indirect store function for HImode in AVRTINY.
6573 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
6575 (order_regs_for_local_alloc): Updated register allocation order for
6577 (avr_conditional_register_usage): New function. It is a target hook
6578 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
6579 used registers list and register allocation order for AVRTINY.
6580 (avr_return_in_memory): Update return value size for AVRTINY.
6581 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
6582 for AVRTINY arch and tiny program memory base address.
6583 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
6584 (avr_texinfo): Added description for AVRTINY arch.
6585 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
6586 STATIC_CHAIN_REGNUM for AVRTINY.
6587 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
6588 * config/avr/avr.md: Added constants for tmp/ zero registers in
6589 AVRTINY. Attributes for AVRTINY added.
6590 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
6591 memory access range.
6592 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
6593 in AVRTINY memory access range.
6594 (*mov<mode>): Likewise for HImode and SImode.
6595 (*movsf): Likewise for SFmode.
6596 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
6598 * config/avr/avr-protos.h: Added function prototype for
6599 tiny_valid_direct_memory_access_range.
6600 * config/avr/avr-tables.opt: Regenerate.
6601 * gcc/config/avr/t-multilib: Regenerate.
6602 * doc/avr-mmcu.texi: Regenerate.
6604 2014-10-21 Andrew Pinski <apinski@cavium.com>
6606 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
6607 available option also.
6608 * config/aarch64/aarch64-cost-tables.h: New file.
6609 * config/aarch64/aarch64-cores.def (thunderx): New core.
6610 * config/aarch64/aarch64-tune.md: Regenerate.
6611 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
6612 of config/arm/aarch-cost-tables.h.
6613 (thunderx_regmove_cost): New variable.
6614 (thunderx_tunings): New variable.
6616 2014-10-21 Dehao Chen <dehao@google.com>
6618 * auto-profile.c: New file.
6619 * auto-profile.h: New file.
6620 * basic-block.h (maybe_hot_count_p): New export func.
6621 (add_working_set): New export func.
6622 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
6623 (GCOV_TAG_AFDO_FUNCTION): Likewise.
6624 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
6625 * opts.c (enable_fdo_optimizations): New func.
6626 (common_handle_option): Handle -fauto-profile flag.
6627 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
6628 (class pass_early_inline): Export early_inliner.
6629 (early_inliner): Likewise.
6630 (pass_early_inline::execute): Likewise.
6631 * ipa-inline.h (early_inliner): Likewise.
6632 * predict.c (maybe_hot_count_p): New export func.
6633 (counts_to_freqs): AutoFDO logic.
6634 (rebuild_frequencies): Likewise.
6635 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
6636 * profile.c (add_working_set): New func.
6637 * Makefile.in (auto-profile.o): New object file.
6638 * passes.def (pass_ipa_auto_profile): New pass.
6639 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
6640 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
6641 * toplev.c (compile_file): AutoFDO logic.
6642 * doc/invoke.texi (-fauto-profile): New doc.
6643 * coverage.c (coverage_init): AutoFDO logic.
6644 * common.opt (-fauto-profile): New flag.
6645 * timevar.def (TV_IPA_AUTOFDO): New tag.
6646 * value-prof.c (gimple_alloc_histogram_value): New export func.
6647 (check_ic_target): Likewise.
6648 * value-prof.h (gimple_alloc_histogram_value): Likewise.
6649 (check_ic_target): Likewise.
6651 2014-10-21 David Malcolm <dmalcolm@redhat.com>
6653 * cgraph.c (cgraph_c_finalize): New function.
6654 * cgraph.h (cgraph_c_finalize): New prototype.
6655 (cgraphunit_c_finalize): New prototype.
6656 * cgraphunit.c (first_analyzed): Move from analyze_functions
6658 (first_analyzed_var): Likewise.
6659 (analyze_functions): Move static variables into file-scope.
6660 (cgraphunit_c_finalize): New function.
6661 * diagnostic.c (diagnostic_finish): Free the memory for
6662 context->classify_diagnostic and context->printer, running the
6663 destructor for the latter.
6664 (bt_stop): Use toplev::main.
6665 * dwarf2out.c (dwarf2out_finalize): New function.
6666 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
6667 * gcse.c (gcse_c_finalize): New function.
6668 * gcse.h (gcse_c_finalize): New prototype.
6669 * ggc-page.c (init_ggc): Make idempotent.
6670 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
6671 * ipa-cp.c (ipa_cp_c_finalize): New function.
6672 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
6673 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
6674 a field of class pass_ipa_pure_const.
6675 (node_duplication_hook_holder): Likewise.
6676 (node_removal_hook_holder): Likewise.
6677 (register_hooks): Convert to method...
6678 (pass_ipa_pure_const::register_hooks): ...here, converting
6679 static variable init_p into...
6680 (pass_ipa_pure_const::init_p): ...new field.
6681 (pure_const_generate_summary): Update invocation of
6682 register_hooks to invoke as a method of current_pass.
6683 (pure_const_read_summary): Likewise.
6684 (propagate): Convert to...
6685 (pass_ipa_pure_const::execute): ...method.
6686 * ipa-reference.c (ipa_init): Move static bool init_p from here
6688 (ipa_init_p): New file-scope variable, so that it can be reset
6689 when repeatedly invoking the compiler within one process by...
6690 (ipa_reference_c_finalize): New function.
6691 * ipa-reference.h (ipa_reference_c_finalize): New.
6692 * main.c (main): Replace invocation of toplev_main with
6693 construction of a toplev instance, and call its "main" method.
6694 * params.c (global_init_params): Add an assert that
6695 params_finished is false.
6696 (params_c_finalize): New.
6697 * params.h (params_c_finalize): New.
6698 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
6699 invoking generate_summary, for the benefit of pass_ipa_pure_const.
6700 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
6701 before calling write_summary hook.
6702 (ipa_write_optimization_summaries_1): Likewise when calling
6703 write_optimization_summary hook.
6704 (ipa_read_summaries_1): Likewise for read_summary hook.
6705 (ipa_read_optimization_summaries_1): Likewise for
6706 read_optimization_summary hook.
6707 (execute_ipa_stmt_fixups): Likewise.
6708 * stringpool.c (init_stringpool): Clean up if we're called more
6710 * timevar.c (timevar_init): Ignore repeated calls.
6711 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
6713 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
6714 (initialize_rtl): Move static local "initialized_once"
6715 into file scope, and rename to...
6716 (rtl_initialized): New variable.
6717 (do_compile): Move timevar initialization from here to
6718 toplev::start_timevars.
6719 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
6720 toplev::finalize): New functions.
6721 (toplev_main): Rename to...
6722 (toplev::main): ...this.
6723 * toplev.h (class toplev): New class.
6725 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
6727 * loop-doloop.c: Include loop-unroll.h.
6729 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
6731 * cfg.h: New. Header file for cfg.c.
6732 * cfganal.h: New. Header file for cfganal.c.
6733 * lcm.h: New. Header file for lcm.c.
6734 * loop-unroll.h: New. Header file for loop-unroll.h.
6735 * cfgloop.h: (unroll_loops): Remove prototype.
6736 * basic-block.h: Move prototypes and structs to new header files.
6737 Include cfg.h, cfganal.h, and lcm.h.
6738 * loop-init.c: Include loop-unroll.h.
6739 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
6740 * modulo-sched.c: Include loop-unroll.h.
6742 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
6744 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
6745 MARKER_BYTE_UNKNOWN markers when handling casts.
6747 2014-10-21 Richard Biener <rguenther@suse.de>
6749 * tree-ssa-phiopt.c (value_replacement): Properly verify we
6750 are the non-singleton PHI.
6752 2014-10-21 Jakub Jelinek <jakub@redhat.com>
6754 PR tree-optimization/63563
6755 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
6756 if either dra or drb stmts are not normal loads/stores.
6758 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
6760 * config/i386/i386.c (expand_vec_perm_1): Fix
6761 expand_vec_perm_palignr case.
6762 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
6765 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
6767 * cfgloopanal.c (seq_cost): Delete.
6768 * rtl.h (seq_cost): New prototype.
6769 * rtlanal.c (seq_cost): New function.
6770 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
6772 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
6774 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
6775 * basic-block.h: Remove prototypes for cfgrtl.c.
6776 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
6777 prototypes to cfgrtl.h.
6778 * profile.h (profile_info): Add extern export declaration.
6779 * rtl.h: Remove prototypes for cfgrtl.h.
6780 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
6781 * ipa-inline.c: Include profile.h.
6782 * loop-unroll.c: Ditto.
6783 * modulo-sched.c: Ditto.
6784 * postreload-gcse.c: Ditto.
6786 * sched-ebb.c: Ditto.
6787 * sched-rgn.c: Ditto.
6789 * tree-ssa-loop-ivcanon.c: Ditto.
6791 2014-10-20 Richard Biener <rguenther@suse.de>
6793 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
6794 operands to get a def operand kind match. Signal mismatches
6795 to the parent so we can try swapping its operands.
6796 (vect_build_slp_tree): Try swapping operands if they have
6797 a mismatched operand kind.
6799 2014-10-20 Alan Modra <amodra@gmail.com>
6802 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
6803 Increase "ops" array size. Correct array size tests. Init
6804 n_constants in loop. Break out of innermost loop when finding
6805 a trivial CONST expression.
6807 2014-10-20 Martin Liska <mliska@suse.cz>
6810 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
6811 Gimple tempate string is compared.
6813 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
6815 * varasm.c (const_alias_set): Remove.
6816 (init_varasm_once): Remove initialization of const_alias_set.
6817 (build_constant_desc): Do not set alias set to const_alias_set.
6819 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
6821 * configure: Regenerate.
6822 * configure.ac: Move the test for section attribute specifier "e" in GAS
6823 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
6824 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
6825 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
6826 ifdef HAVE_GAS_SECTION_EXCLUDE.
6828 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
6830 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
6831 match_operand expression.
6833 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6834 David Edelsohn <dje.gcc@gmail.com>
6836 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
6838 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
6840 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
6842 * doc/invoke.texi (Options to Request or Suppress Warnings):
6843 Explain options precedence.
6844 (Wtrampolines): Do not indent paragraph.
6846 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
6848 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
6849 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
6850 (pa_jump_in_call_delay): Likewise.
6851 * config/pa/pa.c (pa_option_override): Remove jump in call delay
6853 (pa_output_millicode_call): Remove support for jump in call delay.
6854 (pa_output_call): Likewise.
6855 (pa_jump_in_call_delay): Delete.
6856 (pa_following_call): Likewise.
6857 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
6858 (uncond_branch): Remove following call check from attribute length.
6860 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
6863 * config/sh/sh-modes.def (PSI): Remove.
6864 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
6865 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
6866 (sh_reorg): Remove commented out FPSCR code.
6867 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
6868 insn instead of move insn.
6869 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
6870 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
6872 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
6873 (sh1_builtin_p): Uncomment.
6874 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
6875 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
6876 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
6877 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
6878 (general_movsrc_operand, general_movdst_operand): Disallow
6880 * config/sh/sh.md (FPSCR_FR): New constant.
6881 (push_fpscr): Emit sts_fpscr insn.
6882 (pop_fpscr): Emit lds_fpscr_insn.
6883 (movsi_ie): Disallow FPSCR operands.
6884 (fpu_switch, unnamed related split, extend_psi_si,
6885 truncate_si_psi): Remove insns.
6886 (lds_fpscr, sts_fpscr): New insns.
6887 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
6890 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
6892 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
6893 (clone_inlined_nodes): Do not overwrite the clone if above predicate
6896 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
6898 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
6899 (expand_vec_perm_d): Ditto.
6900 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
6901 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
6903 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
6904 (ix86_expand_sse_unpack): Handle V64QImode.
6905 (expand_vec_perm_blend): Update conditions for TARGET, handle
6906 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
6907 (expand_vec_perm_pshufb): Handle V64QImode.
6908 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
6909 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
6910 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
6911 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
6912 (ix86_expand_vecop_qihi): Handle V64QImode.
6913 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
6914 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
6915 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
6916 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
6917 (mul<mode>3): Use VI1_AVX512.
6918 (<sse2_avx2>_packsswb): Ditto.
6919 (<sse2_avx2>_packuswb): Ditto.
6920 (<ssse3_avx2>_pshufb<mode>3): Ditto.
6921 (<shift_insn><mode>3): Ditto.
6923 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
6925 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
6926 conditions to fix bootstrap.
6928 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
6930 gcc-plugin.h: Add tm.h and flattened includes from function.h.
6932 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
6933 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6934 Anna Tikhonova <anna.tikhonova@intel.com>
6935 Ilya Tocar <ilya.tocar@intel.com>
6936 Andrey Turetskiy <andrey.turetskiy@intel.com>
6937 Ilya Verbin <ilya.verbin@intel.com>
6938 Kirill Yukhin <kirill.yukhin@intel.com>
6939 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6941 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
6942 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
6943 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
6944 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
6945 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
6946 (define_expand "vec_init<mode>"): Use VF48_I1248.
6948 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
6949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6950 Anna Tikhonova <anna.tikhonova@intel.com>
6951 Ilya Tocar <ilya.tocar@intel.com>
6952 Andrey Turetskiy <andrey.turetskiy@intel.com>
6953 Ilya Verbin <ilya.verbin@intel.com>
6954 Kirill Yukhin <kirill.yukhin@intel.com>
6955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6957 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
6958 expand_sse2_mulvxdi3.
6960 2014-10-17 Richard Biener <rguenther@suse.de>
6962 * fold-const.c (fold_comparison): Remove redundant constant
6963 folding and operand swapping.
6964 (fold_binary_loc): Do comparison operand swapping here.
6965 (fold_ternary_loc): Canonicalize operand order for
6966 commutative ternary operations.
6967 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
6970 2014-10-17 Jakub Jelinek <jakub@redhat.com>
6972 PR tree-optimization/63464
6973 * gimple.h (gimple_seq_discard): New prototype.
6974 * gimple.c: Include stringpool.h and tree-ssanames.h.
6975 (gimple_seq_discard): New function.
6976 * optabs.h (lshift_cheap_p): New prototype.
6977 * optabs.c (lshift_cheap_p): New function, moved from...
6978 * tree-switch-conversion.c (lshift_cheap_p): ... here.
6979 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
6980 (reassoc_branch_fixups): New variable.
6981 (update_range_test): Add otherrangep and seq arguments.
6982 Unshare exp. If otherrange is NULL, use for other ranges
6983 array of pointers pointed by otherrangep instead.
6984 Emit seq before gimplified statements for tem.
6985 (optimize_range_tests_diff): Adjust update_range_test
6987 (optimize_range_tests_xor): Likewise. Fix up comment.
6988 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
6990 (optimize_range_tests): Adjust update_range_test caller.
6991 Call optimize_range_tests_to_bit_test.
6992 (branch_fixup): New function.
6993 (execute_reassoc): Call branch_fixup.
6995 PR tree-optimization/63302
6996 * tree-ssa-reassoc.c (optimize_range_tests_xor,
6997 optimize_range_tests_diff): Use !integer_pow2p () instead of
7000 2014-10-17 Martin Liska <mliska@suse.cz>
7002 * ipa-icf.c (sem_function::merge): Local flags are set to false
7003 to enforce equal calling convention to be used.
7004 * opts.c (common_handle_option): Indentation fix.
7006 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
7008 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
7010 2014-10-17 Tom de Vries <tom@codesourcery.com>
7012 PR rtl-optimization/61605
7013 * regcprop.c (copyprop_hardreg_forward_1): Use
7014 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
7016 2014-10-17 Tom de Vries <tom@codesourcery.com>
7018 PR rtl-optimization/61605
7019 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
7020 notice stores for noops. Don't regard noops as copies.
7022 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
7024 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
7025 register in a special way.
7026 (__cpuid_count): Ditto.
7027 * config/i386/driver-i386.h: Protect with
7028 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
7029 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
7030 is required to compile the function.
7032 2014-10-16 DJ Delorie <dj@redhat.com>
7034 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
7037 * config/rs6000/rs6000-c.c (rid_int128): New.
7038 (rs6000_macro_to_expand): Use instead of RID_INT128.
7040 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
7042 * function.h: Flatten file. Remove includes, adjust prototypes to
7043 reflect only what is in function.h.
7044 (enum direction, struct args_size, struct locate_and_pad_arg_data,
7045 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
7047 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
7048 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
7049 prototypes to predict.h.
7050 (init_varasm_status): Move prototype to varasm.h.
7051 * expr.h: Adjust include files.
7052 (enum direction, struct args_size, struct locate_and_pad_arg_data,
7053 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
7055 (locate_and_pad_parm): Move prototype to function.h.
7056 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
7057 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
7058 assign_temp, reposition_prologue_and_epilogue_notes,
7059 prologue_epilogue_contains, sibcall_epilogue_contains,
7060 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
7061 set_return_jump_label): Move prototypes to function.h.
7062 * predict.h (optimize_function_for_size_p,
7063 optimize_function_for_speed_p): Relocate prototypes from function.h.
7064 * shrink-wrap.h (emit_return_into_block, active_insn_between,
7065 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
7067 * varasm.h (init_varasm_status): Relocate prototype from function.h.
7068 * genattrtab.c (write_header): Add predict.h to include list.
7069 * genconditions.c (write_header): Add predict.h to include list.
7070 * genemit.c (main): Adjust header file includes.
7071 * gengtype.c (ifiles): Add flattened function.h header files.
7072 * genoutput.c (output_prologue): Add predict.h to include list.
7073 * genpreds.c (write_insn_preds_c): Adjust header file includes.
7074 * genrecog.c (write_header): Add flattened function.h header files.
7075 * alias.c: Adjust include files.
7076 * auto-inc-dec.c: Likewise.
7077 * basic-block.h: Likewise.
7078 * bb-reorder.c: Likewise.
7079 * bt-load.c: Likewise.
7080 * builtins.c: Likewise.
7081 * caller-save.c: Likewise.
7082 * calls.c: Likewise.
7083 * cfgbuild.c: Likewise.
7084 * cfgcleanup.c: Likewise.
7085 * cfgexpand.c: Likewise.
7086 * cfgloop.c: Likewise.
7087 * cfgloop.h: Likewise.
7088 * cfgrtl.c: Likewise.
7089 * cgraph.h: Likewise.
7090 * cgraphclones.c: Likewise.
7091 * cgraphunit.c: Likewise.
7092 * combine-stack-adj.c: Likewise.
7093 * combine.c: Likewise.
7094 * coverage.c: Likewise.
7095 * cprop.c: Likewise.
7097 * cselib.c: Likewise.
7098 * dbxout.c: Likewise.
7100 * df-core.c: Likewise.
7101 * df-problems.c: Likewise.
7102 * df-scan.c: Likewise.
7103 * dojump.c: Likewise.
7104 * dwarf2cfi.c: Likewise.
7105 * dwarf2out.c: Likewise.
7106 * emit-rtl.c: Likewise.
7107 * except.c: Likewise.
7108 * explow.c: Likewise.
7110 * final.c: Likewise.
7111 * function.c: Likewise.
7113 * gimple-fold.c: Likewise.
7114 * gimple-low.c: Likewise.
7115 * gimple-streamer.h: Likewise.
7116 * haifa-sched.c: Likewise.
7117 * ifcvt.c: Likewise.
7121 * loop-invariant.c: Likewise.
7122 * lra-assigns.c: Likewise.
7123 * lra-coalesce.c: Likewise.
7124 * lra-constraints.c: Likewise.
7125 * lra-eliminations.c: Likewise.
7126 * lra-lives.c: Likewise.
7127 * lra-spills.c: Likewise.
7129 * lto-cgraph.c: Likewise.
7130 * lto-section-in.c: Likewise.
7131 * lto-section-out.c: Likewise.
7132 * lto-streamer-in.c: Likewise.
7133 * lto-streamer-out.c: Likewise.
7134 * mode-switching.c: Likewise.
7135 * modulo-sched.c: Likewise.
7136 * omp-low.c: Likewise.
7137 * optabs.c: Likewise.
7138 * passes.c: Likewise.
7139 * postreload-gcse.c: Likewise.
7140 * postreload.c: Likewise.
7141 * predict.c: Likewise.
7142 * profile.c: Likewise.
7143 * recog.c: Likewise.
7145 * reg-stack.c: Likewise.
7146 * regcprop.c: Likewise.
7147 * reginfo.c: Likewise.
7148 * regrename.c: Likewise.
7149 * reload.c: Likewise.
7150 * reload1.c: Likewise.
7151 * reorg.c: Likewise.
7152 * resource.c: Likewise.
7153 * rtlanal.c: Likewise.
7154 * sched-deps.c: Likewise.
7155 * sched-ebb.c: Likewise.
7156 * sched-rgn.c: Likewise.
7157 * sel-sched-dump.c: Likewise.
7158 * sel-sched-ir.c: Likewise.
7159 * sel-sched.c: Likewise.
7160 * shrink-wrap.c: Likewise.
7161 * simplify-rtx.c: Likewise.
7162 * statistics.c: Likewise.
7164 * stor-layout.c: Likewise.
7165 * store-motion.c: Likewise.
7166 * symtab.c: Likewise.
7167 * targhooks.c: Likewise.
7168 * toplev.c: Likewise.
7169 * trans-mem.c: Likewise.
7170 * tree-cfg.c: Likewise.
7171 * tree-cfgcleanup.c: Likewise.
7172 * tree-dfa.c: Likewise.
7173 * tree-eh.c: Likewise.
7174 * tree-inline.c: Likewise.
7175 * tree-into-ssa.c: Likewise.
7176 * tree-nested.c: Likewise.
7177 * tree-nrv.c: Likewise.
7178 * tree-profile.c: Likewise.
7179 * tree-ssa-alias.c: Likewise.
7180 * tree-ssa-ccp.c: Likewise.
7181 * tree-ssa-copy.c: Likewise.
7182 * tree-ssa-copyrename.c: Likewise.
7183 * tree-ssa-dom.c: Likewise.
7184 * tree-ssa-operands.c: Likewise.
7185 * tree-ssa-propagate.c: Likewise.
7186 * tree-ssa-structalias.c: Likewise.
7187 * tree-ssa-tail-merge.c: Likewise.
7188 * tree-ssa-threadedge.c: Likewise.
7189 * tree-ssa-threadupdate.c: Likewise.
7190 * tree-ssa-uncprop.c: Likewise.
7191 * tree-ssa-uninit.c: Likewise.
7192 * tree-ssa.c: Likewise.
7193 * tree-stdarg.c: Likewise.
7194 * tree-tailcall.c: Likewise.
7197 * valtrack.c: Likewise.
7198 * varasm.c: Likewise.
7199 * vmsdbgout.c: Likewise.
7201 * config/aarch64/aarch64.c: Add flattened includes from function.h.
7202 * config/alpha/alpha.c: Likewise.
7203 * config/arc/arc.c: Likewise.
7204 * config/arm/arm.c: Likewise.
7205 * config/avr/avr-log.c: Likewise.
7206 * config/avr/avr.c: Likewise.
7207 * config/bfin/bfin.c: Likewise.
7208 * config/c6x/c6x.c: Likewise.
7209 * config/cr16/cr16.c: Likewise.
7210 * config/cris/cris.c: Likewise.
7211 * config/darwin.c: Likewise.
7212 * config/epiphany/epiphany.c: Likewise.
7213 * config/epiphany/mode-switch-use.c: Likewise.
7214 * config/epiphany/resolve-sw-modes.c: Likewise.
7215 * config/fr30/fr30.c: Likewise.
7216 * config/frv/frv.c: Likewise.
7217 * config/h8300/h8300.c: Likewise.
7218 * config/i386/i386.c: Likewise.
7219 * config/ia64/ia64.c: Likewise.
7220 * config/iq2000/iq2000.c: Likewise.
7221 * config/lm32/lm32.c: Likewise.
7222 * config/m32c/m32c.c: Likewise.
7223 * config/m32r/m32r.c: Likewise.
7224 * config/m68k/m68k.c: Likewise.
7225 * config/mcore/mcore.c: Likewise.
7226 * config/mep/mep-pragma.c: Likewise.
7227 * config/mep/mep.c: Likewise.
7228 * config/microblaze/microblaze.c: Likewise.
7229 * config/mips/mips.c: Likewise.
7230 * config/mmix/mmix.c: Likewise.
7231 * config/mn10300/mn10300.c: Likewise.
7232 * config/moxie/moxie.c: Likewise.
7233 * config/msp430/msp430.c: Likewise.
7234 * config/nds32/nds32-cost.c: Likewise.
7235 * config/nds32/nds32-fp-as-gp.c: Likewise.
7236 * config/nds32/nds32-intrinsic.c: Likewise.
7237 * config/nds32/nds32-isr.c: Likewise.
7238 * config/nds32/nds32-md-auxiliary.c: Likewise.
7239 * config/nds32/nds32-memory-manipulation.c: Likewise.
7240 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7241 * config/nds32/nds32-predicates.c: Likewise.
7242 * config/nds32/nds32.c: Likewise.
7243 * config/nios2/nios2.c: Likewise.
7244 * config/pa/pa.c: Likewise.
7245 * config/pdp11/pdp11.c: Likewise.
7246 * config/rl78/rl78.c: Likewise.
7247 * config/rs6000/rs6000.c: Likewise.
7248 * config/rx/rx.c: Likewise.
7249 * config/s390/s390.c: Likewise.
7250 * config/score/score.c: Likewise.
7251 * config/sh/sh.c: Likewise.
7252 * config/sparc/sparc.c: Likewise.
7253 * config/spu/spu.c: Likewise.
7254 * config/stormy16/stormy16.c: Likewise.
7255 * config/tilegx/tilegx.c: Likewise.
7256 * config/tilepro/tilepro.c: Likewise.
7257 * config/v850/v850.c: Likewise.
7258 * config/vax/vax.c: Likewise.
7259 * config/xtensa/xtensa.c: Likewise.
7261 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
7263 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
7264 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
7266 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
7268 * config/sh/sh-protos.h (fldi_ok): Remove.
7269 * config/sh/sh.c (fldi_ok): Likewise.
7270 (sh_secondary_reload): Don't use fldi_ok.
7271 * config/sh/constraints.md (G constraint, H constraint): Don't use
7274 2014-10-16 Martin Liska <mliska@suse.cz>
7276 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
7277 Cast to unsigned long.
7278 (sem_item_optimizer::dump_cong_classes): Likewise.
7280 2014-10-16 Tom de Vries <tom@codesourcery.com>
7282 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
7283 with SSA_NAME_IN_FREELIST.
7285 2014-10-16 Richard Biener <rguenther@suse.de>
7288 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
7289 (fold_builtin_strncat_chk): Move ...
7290 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
7291 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
7293 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
7296 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
7299 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
7300 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7301 Anna Tikhonova <anna.tikhonova@intel.com>
7302 Ilya Tocar <ilya.tocar@intel.com>
7303 Andrey Turetskiy <andrey.turetskiy@intel.com>
7304 Ilya Verbin <ilya.verbin@intel.com>
7305 Kirill Yukhin <kirill.yukhin@intel.com>
7306 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7308 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
7311 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
7312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7313 Anna Tikhonova <anna.tikhonova@intel.com>
7314 Ilya Tocar <ilya.tocar@intel.com>
7315 Andrey Turetskiy <andrey.turetskiy@intel.com>
7316 Ilya Verbin <ilya.verbin@intel.com>
7317 Kirill Yukhin <kirill.yukhin@intel.com>
7318 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7320 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
7321 V16SI, V32HI, V64QI modes.
7323 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
7326 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
7327 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
7329 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
7330 to match fp insn patterns.
7331 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
7333 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
7334 expand_df_unop, expand_df_binop): Remove.
7335 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
7336 FPSCR_STAT_REG as not call clobbered.
7337 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
7338 invoking fpscr_set_from_mem.
7340 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
7341 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
7343 (REGISTER_NAMES): Adjust.
7344 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
7345 (FIRST_PSEUDO_REGISTER): Increase to 156.
7346 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
7347 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
7349 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
7350 FPSCR_MODES_REG and FPSCR_STAT_REG.
7351 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
7353 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
7354 FPSCR_SZ): Add new constants.
7355 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
7357 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
7358 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
7359 Use TARGET_FPU_ANY condition.
7360 (fpu_switch peephole2): Remove.
7361 (fpu_switch split): Use simple_mem_operand to capture the mem and
7362 adjust split implementation.
7363 (extend_psi_si, truncate_si_psi): New insns.
7364 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
7365 set of FPSCR_MODES_REG.
7367 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
7368 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
7369 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
7370 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
7371 call_value_compact, call_value_compact_rettramp, call,
7372 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
7373 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
7374 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7375 sibcall_value_compact, sibcall_value, call_value_pop_compact,
7376 call_value_pop_compact_rettramp, various unnamed splits):
7377 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
7380 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
7381 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
7382 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
7383 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
7384 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
7386 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
7387 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
7388 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
7389 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
7390 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
7391 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
7392 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
7394 2014-10-16 Martin Liska <mliska@suse.cz>
7395 Jan Hubicka <hubicka@ucw.cz>
7397 * Makefile.in: New object files included.
7398 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
7400 (verify_edge_corresponds_to_fndecl): More sensitive verification
7401 of nodes that are merged by IPA ICF.
7402 * cgraph.h (cgraph_node::num_references): New function.
7403 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
7404 * common.opt: New options ipa-icf, ipa-icf-functions and
7405 ipa-icf-variables introduced.
7406 * doc/invoke.texi: Documentation of new options introduced.
7407 * ipa-icf-gimple.c: New file.
7408 * ipa-icf-gimple.h: New file.
7409 * ipa-icf.c: New file.
7410 * ipa-icf.h: New file.
7411 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
7412 (input_overwrite_node): Likewise.
7413 * lto-section-in.c: New icf section added.
7414 * lto-streamer.h (enum lto_section_type): Likewise.
7415 * opts.c (common_handle_option): New option added.
7416 * passes.def: New pass included.
7417 * timevar.def: Time variable for IPA ICF added.
7418 * tree-pass.h: New IPA ICF pass entry point added.
7420 2014-10-16 Richard Biener <rguenther@suse.de>
7422 PR tree-optimization/63168
7423 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
7424 latches if after merging they are no longer simple.
7425 * cfghooks.c (merge_blocks): Handle merging a latch block
7428 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
7429 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7430 Anna Tikhonova <anna.tikhonova@intel.com>
7431 Ilya Tocar <ilya.tocar@intel.com>
7432 Andrey Turetskiy <andrey.turetskiy@intel.com>
7433 Ilya Verbin <ilya.verbin@intel.com>
7434 Kirill Yukhin <kirill.yukhin@intel.com>
7435 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7437 * config/i386/sse.md
7438 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
7439 support AVX-512VL instructions.
7441 2014-10-16 DJ Delorie <dj@redhat.com>
7443 * tree-core.h: Fix comment to not assume pointers are multiples of
7446 2014-10-15 Tom Tromey <tromey@redhat.com>
7448 * timevar.h (class auto_timevar): New class.
7450 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
7453 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7454 Remove the second alternative.
7455 (regprefix): Remove mode attribute.
7456 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
7457 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
7460 2013-11-05 Ian Lance Taylor <iant@google.com>
7462 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7463 If possible, add .cfi directives to record change to bx.
7464 * config/i386/i386.c (ix86_emit_cfi): New function.
7465 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7467 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
7470 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
7472 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
7475 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
7477 PR rtl-optimization/63448
7478 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
7479 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
7480 (LRA_MAX_INHERITANCE_PASSES): Use it.
7481 (lra_constraint_iter_after_spill): Remove.
7482 (lra_assignment_iter): New.
7483 (lra_assignment_iter_after_spill): New.
7484 * lra-assigns.c (lra_assignment_iter): New.
7485 (lra_assignment_iter_after_spill): New.
7486 (former_reload_pseudo_spill_p): New.
7487 (spill_for): Set up former_reload_pseudo_spill_p.
7488 (setup_live_pseudos_and_spill_after_risky): Ditto.
7489 (assign_by_spills): Ditto.
7490 (lra_assign): Increment lra_assignment_iter. Print the iteration
7491 number. Reset former_reload_pseudo_spill_p. Check
7492 lra_assignment_iter_after_spill.
7493 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
7494 lra_assignment_iter and lra_assignment_iter_after_spill.
7495 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
7496 (lra_constraints): Remove code with
7497 lra_assignment_iter_after_spill.
7499 2014-10-15 Teresa Johnson <tejohnson@google.com>
7502 * tree-ssa-threadupdate.c (recompute_probabilities): Better
7505 2014-10-15 Renlin Li <renlin.li@arm.com>
7507 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7508 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
7509 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
7510 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
7512 2014-10-15 Richard Biener <rguenther@suse.de>
7514 * gimple-fold.c (gimple_fold_call): Properly keep virtual
7515 SSA form up-to-date when devirtualizing a call to
7516 __builtin_unreachable and avoid fixing up EH info here.
7518 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7520 Anna Tikhonova <anna.tikhonova@intel.com>
7521 Ilya Tocar <ilya.tocar@intel.com>
7522 Andrey Turetskiy <andrey.turetskiy@intel.com>
7523 Ilya Verbin <ilya.verbin@intel.com>
7524 Kirill Yukhin <kirill.yukhin@intel.com>
7525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7527 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
7528 to support AVX-512BW.
7529 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
7530 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
7531 (define_insn "*<plusminus_insn><mode>3"): Ditto.
7532 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
7533 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
7534 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
7535 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
7536 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
7537 (define_insn "*andnot<mode>3"): Ditto.
7538 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
7539 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
7540 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
7541 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
7542 (define_insn "*abs<mode>2"): Remove masking support.
7543 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
7544 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
7545 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
7547 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7548 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7549 Anna Tikhonova <anna.tikhonova@intel.com>
7550 Ilya Tocar <ilya.tocar@intel.com>
7551 Andrey Turetskiy <andrey.turetskiy@intel.com>
7552 Ilya Verbin <ilya.verbin@intel.com>
7553 Kirill Yukhin <kirill.yukhin@intel.com>
7554 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7556 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
7557 * config/i386/sse.md
7558 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
7559 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
7560 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
7561 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
7562 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
7563 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
7564 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
7566 2014-10-15 Renlin Li <renlin.li@arm.com>
7568 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
7570 2014-10-15 Jakub Jelinek <jakub@redhat.com>
7572 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
7573 MINUS_EXPR in unsigned type to avoid undefined behavior.
7575 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
7577 * stor-layout.c (self_referential_size): Do not promote arguments.
7579 2014-10-15 Marek Polacek <polacek@redhat.com>
7581 * doc/invoke.texi: Update to reflect that GNU11 is the default
7583 * c-common.h (c_language_kind): Update comment.
7585 2014-10-15 Richard Biener <rguenther@suse.de>
7587 * hash-table.c: Include bconfig.h if building for the host.
7588 * hash-table.h: Do not include ggc.h on the host but just declare
7589 a few ggc allocation templates.
7591 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
7592 Jeff Law <law@redhat.com>
7594 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
7595 multiple hard registers, use smaller mode derived from MODE.
7597 2014-10-15 Andreas Schwab <schwab@suse.de>
7599 * explow.c (convert_memory_address_addr_space_1): Mark in_const
7600 as ATTRIBUTE_UNUSED.
7602 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
7604 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
7605 (decide_unrolling): ... this one.
7606 (peel_loops_completely): Remove.
7607 (decide_peel_simple): Remove.
7608 (decide_peel_once_rolling): Remove.
7609 (decide_peel_completely): Remove.
7610 (peel_loop_simple): Remove.
7611 (peel_loop_completely): Remove.
7612 (unroll_and_peel_loops): Rename to ...
7613 (unroll_loops): ... this one; handle only unrolling.
7614 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
7617 (unroll_and_peel_loops): Remove.
7618 (unroll_loops): New.
7619 * passes.def: Replace
7620 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
7621 * loop-init.c (gate_rtl_unroll_and_peel_loops,
7622 rtl_unroll_and_peel_loops): Rename to ...
7623 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
7624 (pass_rtl_unroll_and_peel_loops): Rename to ...
7625 (pass_rtl_unroll_loops): ... this one.
7626 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
7627 (make_pass_rtl_unroll_loops): New.
7628 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
7629 (canonicalize_loop_induction_variables): Update.
7631 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
7633 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
7634 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
7635 !TARGET_HARD_FLOAT_POSTINC.
7636 (*lsip, *ssip): new instructions.
7638 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
7640 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
7643 2014-10-14 Andrew Pinski <apinski@cavium.com>
7645 * explow.c (convert_memory_address_addr_space): Rename to ...
7646 (convert_memory_address_addr_space_1): This. Add in_const argument.
7647 Inside a CONST RTL, permute the conversion and addition of constant
7648 for zero and sign extended pointers.
7649 (convert_memory_address_addr_space): New function.
7651 2014-10-14 Andrew Pinski <apinski@cavium.com>
7654 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
7657 * explow.c (convert_memory_address_addr_space): Also permute the
7658 conversion and addition of constant for zero-extend.
7660 2014-10-14 DJ Delorie <dj@redhat.com>
7662 * config/msp430/msp430-modes.def (PSI): Add.
7664 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
7665 (msp430_hard_regno_nregs_with_padding): New.
7666 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
7667 (msp430_hard_regno_nregs_has_padding): New.
7668 (msp430_hard_regno_nregs_with_padding): New.
7669 (msp430_unwind_word_mode): Use PSImode instead of SImode.
7670 (msp430_addr_space_legitimate_address_p): New.
7671 (msp430_asm_integer): New.
7672 (msp430_init_dwarf_reg_sizes_extra): New.
7673 (msp430_print_operand): Use X suffix for PSImode even in small model.
7674 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
7675 (PTR_SIZE): ...but 4 bytes for EH.
7676 (SIZE_TYPE): Use __int20.
7677 (PTRDIFF_TYPE): Likewise.
7678 (INCOMING_FRAME_SP_OFFSET): Adjust.
7679 * config/msp430/msp430.md (movqi_topbyte): New.
7680 (movpsi): Use fixed suffixes.
7681 (movsipsi2): Enable for 430X, not large model.
7682 (extendhipsi2): Likewise.
7683 (zero_extendhisi2): Likewise.
7684 (zero_extendhisipsi2): Likewise.
7685 (extend_and_shift1_hipsi2): Likewise.
7686 (extendpsisi2): Likewise.
7687 (*bitbranch<mode>4_z): Fix suffix logic.
7689 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
7692 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
7693 do not choke on null node.
7694 <VAR_DECL>: Likewise.
7696 2014-10-14 DJ Delorie <dj@redhat.com>
7698 * machmode.h (int_n_data_t): New.
7699 (int_n_enabled_p): New.
7701 * tree.c (int_n_enabled_p): New.
7703 (make_or_reuse_type): Check for all __intN types, not just
7705 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
7707 * tree.h (int128_integer_type_node): Remove.
7708 (int128_unsigned_type_node): Remove.
7709 (int_n_trees_t): New.
7710 (int_n_enabled_p): New.
7712 * toplev.c (standard_type_bitsize): New.
7713 (do_compile): Check which __intN types are enabled for the current
7715 * builtin-types.def (BT_INT128): Remove.
7716 (BT_UINT128): Remove.
7717 * machmode.def: Add macro to create __int128 for all targets.
7718 * stor-layout.c (mode_for_size): Support __intN types.
7719 (smallest_mode_for_size): Likewise.
7720 (initialize_sizetypes): Support __intN types.
7721 * genmodes.c (struct mode_data): Add int_n field.
7722 (blank_mode): Likewise.
7725 (emit_insn_modes_h): Count __intN entries and define
7727 (emit_mode_int_n): New.
7728 (emit_insn_modes_c): Call it.
7729 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
7730 types, not just __int128.
7731 * tree-core.h (integer_type_kind): Remove __int128-specific
7732 entries, reserve spots for __intN entries.
7734 * config/msp430/msp430-modes.def (PSI): Add.
7736 2014-10-14 Kito Cheng <kito@0xlab.org>
7738 * ira.c: Fix typo in comment.
7740 * ira-build.c: Ditto.
7741 * ira-color.c: Ditto.
7742 * ira-emit.c: Ditto.
7744 * ira-lives.c: Ditto.
7746 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
7748 PR rtl-optimization/63475
7749 * alias.c (true_dependence_1): Always use get_addr to extract
7750 true address operands from x_addr and mem_addr. Use extracted
7751 address operands to check for references with alignment ANDs.
7752 Use extracted address operands with find_base_term and
7753 base_alias_check. For noncanonicalized operands call canon_rtx with
7754 extracted address operand.
7755 (write_dependence_1): Ditto.
7756 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
7758 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
7761 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
7764 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7766 Anna Tikhonova <anna.tikhonova@intel.com>
7767 Ilya Tocar <ilya.tocar@intel.com>
7768 Andrey Turetskiy <andrey.turetskiy@intel.com>
7769 Ilya Verbin <ilya.verbin@intel.com>
7770 Kirill Yukhin <kirill.yukhin@intel.com>
7771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7773 * config/i386/i386.c
7774 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
7775 (ix86_expand_int_vcond): Ditto.
7777 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7778 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7779 Anna Tikhonova <anna.tikhonova@intel.com>
7780 Ilya Tocar <ilya.tocar@intel.com>
7781 Andrey Turetskiy <andrey.turetskiy@intel.com>
7782 Ilya Verbin <ilya.verbin@intel.com>
7783 Kirill Yukhin <kirill.yukhin@intel.com>
7784 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7786 * config/i386/i386.c
7787 (emit_reduc_half): Handle V64QI and V32HI mode.
7788 * config/i386/sse.md
7789 (define_mode_iterator VI_AVX512BW): New.
7790 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
7792 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7793 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7794 Anna Tikhonova <anna.tikhonova@intel.com>
7795 Ilya Tocar <ilya.tocar@intel.com>
7796 Andrey Turetskiy <andrey.turetskiy@intel.com>
7797 Ilya Verbin <ilya.verbin@intel.com>
7798 Kirill Yukhin <kirill.yukhin@intel.com>
7799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7801 * config/i386/sse.md
7802 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
7804 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7806 Anna Tikhonova <anna.tikhonova@intel.com>
7807 Ilya Tocar <ilya.tocar@intel.com>
7808 Andrey Turetskiy <andrey.turetskiy@intel.com>
7809 Ilya Verbin <ilya.verbin@intel.com>
7810 Kirill Yukhin <kirill.yukhin@intel.com>
7811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7813 * config/i386/i386.c
7814 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
7815 * config/i386/sse.md
7816 (define_mode_iterator VI): Add V64QI and V32HI modes.
7818 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7820 Anna Tikhonova <anna.tikhonova@intel.com>
7821 Ilya Tocar <ilya.tocar@intel.com>
7822 Andrey Turetskiy <andrey.turetskiy@intel.com>
7823 Ilya Verbin <ilya.verbin@intel.com>
7824 Kirill Yukhin <kirill.yukhin@intel.com>
7825 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7827 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
7829 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7831 Anna Tikhonova <anna.tikhonova@intel.com>
7832 Ilya Tocar <ilya.tocar@intel.com>
7833 Andrey Turetskiy <andrey.turetskiy@intel.com>
7834 Ilya Verbin <ilya.verbin@intel.com>
7835 Kirill Yukhin <kirill.yukhin@intel.com>
7836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7838 * config/i386/sse.md
7839 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
7840 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
7842 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7844 Anna Tikhonova <anna.tikhonova@intel.com>
7845 Ilya Tocar <ilya.tocar@intel.com>
7846 Andrey Turetskiy <andrey.turetskiy@intel.com>
7847 Ilya Verbin <ilya.verbin@intel.com>
7848 Kirill Yukhin <kirill.yukhin@intel.com>
7849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7851 * config/i386/sse.md
7852 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
7853 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
7855 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7857 Anna Tikhonova <anna.tikhonova@intel.com>
7858 Ilya Tocar <ilya.tocar@intel.com>
7859 Andrey Turetskiy <andrey.turetskiy@intel.com>
7860 Ilya Verbin <ilya.verbin@intel.com>
7861 Kirill Yukhin <kirill.yukhin@intel.com>
7862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7864 * config/i386/sse.md
7865 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
7866 (define_mode_iterator VI2_AVX2): Add V32HI mode.
7867 (define_expand "mul<mode>3<mask_name>"): Add masking.
7868 (define_insn "*mul<mode>3<mask_name>"): Ditto.
7869 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
7870 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
7871 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
7872 (define_mode_attr SDOT_PMADD_SUF): Ditto.
7873 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
7874 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
7875 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
7876 (define_insn "avx2_packusdw"): Delete.
7877 (define_insn "sse4_1_packusdw"): Ditto.
7878 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
7880 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7882 Anna Tikhonova <anna.tikhonova@intel.com>
7883 Ilya Tocar <ilya.tocar@intel.com>
7884 Andrey Turetskiy <andrey.turetskiy@intel.com>
7885 Ilya Verbin <ilya.verbin@intel.com>
7886 Kirill Yukhin <kirill.yukhin@intel.com>
7887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7889 * config/i386/sse.md
7890 (define_insn "vec_dup<mode>"): Update constraints.
7892 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7893 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7894 Anna Tikhonova <anna.tikhonova@intel.com>
7895 Ilya Tocar <ilya.tocar@intel.com>
7896 Andrey Turetskiy <andrey.turetskiy@intel.com>
7897 Ilya Verbin <ilya.verbin@intel.com>
7898 Kirill Yukhin <kirill.yukhin@intel.com>
7899 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7901 * config/i386/sse.md
7902 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
7903 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
7904 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
7906 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7908 Anna Tikhonova <anna.tikhonova@intel.com>
7909 Ilya Tocar <ilya.tocar@intel.com>
7910 Andrey Turetskiy <andrey.turetskiy@intel.com>
7911 Ilya Verbin <ilya.verbin@intel.com>
7912 Kirill Yukhin <kirill.yukhin@intel.com>
7913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7915 * config/i386/sse.md
7916 (define_expand "mul<mode>3<mask_name>"): Add masking.
7918 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7920 Anna Tikhonova <anna.tikhonova@intel.com>
7921 Ilya Tocar <ilya.tocar@intel.com>
7922 Andrey Turetskiy <andrey.turetskiy@intel.com>
7923 Ilya Verbin <ilya.verbin@intel.com>
7924 Kirill Yukhin <kirill.yukhin@intel.com>
7925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7927 * config/i386/sse.md
7928 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
7929 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
7931 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7932 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7933 Anna Tikhonova <anna.tikhonova@intel.com>
7934 Ilya Tocar <ilya.tocar@intel.com>
7935 Andrey Turetskiy <andrey.turetskiy@intel.com>
7936 Ilya Verbin <ilya.verbin@intel.com>
7937 Kirill Yukhin <kirill.yukhin@intel.com>
7938 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7940 * config/i386/sse.md
7941 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
7942 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
7943 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
7946 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7947 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7948 Anna Tikhonova <anna.tikhonova@intel.com>
7949 Ilya Tocar <ilya.tocar@intel.com>
7950 Andrey Turetskiy <andrey.turetskiy@intel.com>
7951 Ilya Verbin <ilya.verbin@intel.com>
7952 Kirill Yukhin <kirill.yukhin@intel.com>
7953 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7955 * config/i386/sse.md
7956 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
7957 use VF_128_256 mode iterator and update assembler emit code.
7958 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
7959 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
7960 Add masking, use VF_128_256 mode iterator.
7961 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
7962 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
7963 Add masking, use VF_128_256 mode iterator and update assembler emit
7965 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
7966 (define_mode_attr avx512flogicsuff): Delete.
7967 (define_insn "avx512f_<logic><mode>"): Ditto.
7968 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
7970 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
7972 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7974 Anna Tikhonova <anna.tikhonova@intel.com>
7975 Ilya Tocar <ilya.tocar@intel.com>
7976 Andrey Turetskiy <andrey.turetskiy@intel.com>
7977 Ilya Verbin <ilya.verbin@intel.com>
7978 Kirill Yukhin <kirill.yukhin@intel.com>
7979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7981 * config/i386/sse.md
7982 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
7983 (define_expand "vashr<mode>3<mask_name>"): Add masking,
7984 use VI12_128 mode iterator.
7985 (define_expand "ashrv2di3<mask_name>"): New.
7987 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7989 Anna Tikhonova <anna.tikhonova@intel.com>
7990 Ilya Tocar <ilya.tocar@intel.com>
7991 Andrey Turetskiy <andrey.turetskiy@intel.com>
7992 Ilya Verbin <ilya.verbin@intel.com>
7993 Kirill Yukhin <kirill.yukhin@intel.com>
7994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7996 * config/i386/i386.c
7997 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
7998 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
7999 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
8000 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
8001 CODE_FOR_avx512vl_ucmpv4si3_mask.
8002 * config/i386/sse.md
8003 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
8004 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
8006 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
8007 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
8008 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
8009 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
8010 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
8011 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
8013 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8015 Anna Tikhonova <anna.tikhonova@intel.com>
8016 Ilya Tocar <ilya.tocar@intel.com>
8017 Andrey Turetskiy <andrey.turetskiy@intel.com>
8018 Ilya Verbin <ilya.verbin@intel.com>
8019 Kirill Yukhin <kirill.yukhin@intel.com>
8020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8022 * config/i386/sse.md
8023 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
8024 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
8025 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
8026 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
8027 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
8028 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
8029 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
8030 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
8031 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
8033 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8034 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8035 Anna Tikhonova <anna.tikhonova@intel.com>
8036 Ilya Tocar <ilya.tocar@intel.com>
8037 Andrey Turetskiy <andrey.turetskiy@intel.com>
8038 Ilya Verbin <ilya.verbin@intel.com>
8039 Kirill Yukhin <kirill.yukhin@intel.com>
8040 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8042 * config/i386/sse.md
8043 (define_insn "avx512f_blendm<mode>"): Delete.
8044 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
8045 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
8046 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
8047 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
8049 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
8052 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
8055 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
8057 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
8058 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
8059 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
8060 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
8063 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
8066 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
8068 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
8071 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
8074 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
8077 2014-10-14 Richard Biener <rguenther@suse.de>
8079 PR tree-optimization/63512
8080 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
8083 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
8086 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
8087 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
8089 (negsf2_i): Rename to *negsf2_i.
8090 (abssf2_i): Rename to *abssf2_i.
8091 (negdf2_i): Rename to *negdf2_i.
8092 (absdf2_i): Rename to *absdf2_i.
8094 2014-10-14 Felix Yang <felix.yang@huawei.com>
8095 Jeff Law <law@redhat.com>
8097 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
8098 "replace" into boolean bitfields; turn member "loop_depth" into a short
8099 integer; add new member "no_equiv" and "reserved".
8100 (no_equiv): Set no_equiv of struct equivalence if register is marked
8101 as having no known equivalence.
8102 (update_equiv_regs): Check all definitions for a multiple-set
8103 register to make sure that the RHS have the same value.
8105 2014-10-13 Richard Henderson <rth@redhat.com>
8107 * combine-stack-adj.c (no_unhandled_cfa): New.
8108 (maybe_merge_cfa_adjust): New.
8109 (combine_stack_adjustments_for_block): Use them.
8111 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
8113 * Makefile.in (TAGS): Tag ../include files.
8115 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8117 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
8118 to rs6000_dbx_register_number.
8119 (DWARF_FRAME_REGNUM): Redefine as identity map.
8120 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
8121 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
8122 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
8123 argument to handle .debug_frame and .eh_frame directly. Always
8124 translate SPE high register numbers. Add special treatment for CR,
8125 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
8127 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
8128 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
8129 (RS6000_USE_DWARF_NUMBERING): Define.
8130 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
8131 (RS6000_USE_DWARF_NUMBERING): Define.
8132 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
8133 (RS6000_USE_DWARF_NUMBERING): Define.
8134 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
8135 (RS6000_USE_DWARF_NUMBERING): Define.
8136 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
8137 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
8139 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
8141 * config/i386/i386.c (ix86_address_cost): Lower cost for
8142 when address contains GOT register.
8144 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
8145 Vladimir Makarov <vmakarov@redhat.com>
8149 PR rtl-optimization/55458
8150 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
8151 (ix86_init_pic_reg): New.
8152 (ix86_select_alt_pic_regnum): Add check on pseudo register.
8153 (ix86_save_reg): Likewise.
8154 (ix86_expand_prologue): Remove PIC register initialization
8155 now performed in ix86_init_pic_reg.
8156 (ix86_output_function_epilogue): Add check on pseudo register.
8157 (set_pic_reg_ever_alive): New.
8158 (legitimize_pic_address): Replace df_set_regs_ever_live with new
8159 set_pic_reg_ever_alive.
8160 (legitimize_tls_address): Likewise.
8161 (ix86_pic_register_p): New check.
8162 (ix86_delegitimize_address): Add check on pseudo register.
8163 (ix86_expand_call): Insert move from pseudo PIC register to ABI
8164 defined REAL_PIC_OFFSET_TABLE_REGNUM.
8165 (TARGET_INIT_PIC_REG): New.
8166 (TARGET_USE_PSEUDO_PIC_REG): New.
8167 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
8168 if pic_offset_table_rtx exists.
8169 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
8171 * doc/tm.texi: Regenerate.
8172 * function.c (assign_parms): Generate pseudo register for PIC.
8173 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
8175 * ira-color.c (color_pass): Add check on pseudo register.
8176 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
8178 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
8180 (ira): Add target specific PIC register initialization.
8181 (do_reload): Keep PIC pseudo register.
8182 * lra-assigns.c (spill_for): Add checks on pseudo register.
8183 * lra-constraints.c (contains_symbol_ref_p): New.
8184 (lra_constraints): Enable lra risky transformations when PIC is pseudo
8186 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
8187 * target.def (use_pseudo_pic_reg): New.
8188 (init_pic_reg): New.
8190 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
8192 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
8193 Remove m_SILVERMONT and m_INTEL from the tune.
8195 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8198 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8199 when _HPUX_SOURCE is defined.
8201 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
8203 PR tree-optimization/62127
8204 * tree.c (remap_type_1): When remapping array, remap
8207 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
8209 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
8210 longer impact parallelization.
8212 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
8215 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
8217 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
8219 * asan.c (instrument_derefs): BIT_FIELD_REF added.
8221 2014-10-13 Richard Biener <rguenther@suse.de>
8223 PR tree-optimization/63419
8224 * gimple-fold.h (gimple_convert): New function.
8225 * gimple-fold.c (gimple_convert): Likewise.
8226 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
8227 to split out required conversions early.
8229 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
8231 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
8232 Add the parts of an insn in reverse order, with the pattern at
8233 the top of the queue. Detect when we're iterating over a SEQUENCE
8234 pattern and in that case just consider patterns of subinstructions.
8236 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
8239 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
8241 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
8243 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
8244 address. Use def chains to handle GBR clobbering call insns.
8246 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
8248 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
8249 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
8250 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
8251 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
8252 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
8253 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
8254 * doc/gty.texi (for_user): Document new option.
8255 * gengtype.c (create_user_defined_type): Don't try to get a struct for
8257 (walk_type): Don't error out on for_user option.
8258 (write_func_for_structure): Emit user marking routines if requested by
8260 (write_local_func_for_structure): Likewise.
8261 (main): Mark types with for_user option as used.
8262 * ggc.h (gt_pch_nx): Add overload for unsigned int.
8263 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
8264 * hash-table.h (ggc_hasher): New struct.
8265 (hash_table::create_ggc): New function.
8266 (gt_pch_nx): New overload for hash_table.
8268 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
8270 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
8271 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
8272 * config/sh/sh.c: Likewise.
8273 * config/sh/sh-mem.cc: Likewise.
8274 * config/sh/sh.md: Likewise.
8275 * config/sh/predicates.md: Likewise.
8276 * config/sh/sync.md: Likewise.
8278 2014-10-11 Martin Liska <mliska@suse.cz>
8281 * cgraphunit.c (symbol_table::process_new_functions): Missing call
8282 for call_cgraph_insertion_hooks added.
8284 2014-10-10 Jakub Jelinek <jakub@redhat.com>
8287 * stor-layout.c (min_align_of_type): Don't decrease alignment
8288 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
8289 TYPE_USER_ALIGN is set.
8291 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
8293 PR rtl-optimization/63483
8294 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
8295 references when alignment ANDs are involved.
8296 (write_dependence_p): Ditto.
8297 (may_alias_p): Ditto.
8299 2014-10-10 Marek Polacek <polacek@redhat.com>
8301 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
8302 * doc/invoke.texi: Document -fsanitize=object-size.
8303 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
8304 or it into SANITIZE_UNDEFINED.
8305 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
8306 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
8307 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
8308 * opts.c (common_handle_option): Handle -fsanitize=object-size.
8309 * ubsan.c: Include tree-object-size.h.
8310 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
8311 (ubsan_expand_bounds_ifn): Use false instead of 0.
8312 (ubsan_expand_objsize_ifn): New function.
8313 (instrument_object_size): New function.
8314 (pass_ubsan::execute): Add object size instrumentation.
8315 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
8317 2014-10-10 Richard Henderson <rth@redhat.com>
8320 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
8321 Restrict the set of expressions we're willing to move.
8323 2014-10-10 Jeff Law <law@redhat.com>
8325 * ira.c (struct equivalence): Promote INIT_INSNs field to
8326 an rtx_insn_list. Add comments.
8327 (no_equiv): Promote LIST to an rtx_insn_list. Update
8328 testing for and creating the special marker. Use methods
8329 to extract the insn and next pointers. Promote INSN to an
8331 (update_equiv_regs): Update test for special marker in the
8334 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8336 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
8337 * configure: Regenerate.
8338 * config/aarch64/aarch64.c (aarch64_override_options): Handle
8339 TARGET_FIX_ERR_A53_835769_DEFAULT.
8340 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
8342 * doc/install.texi (aarch64*-*-*): Document
8343 new --enable-fix-cortex-a53-835769 option.
8345 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8346 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8348 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
8349 (ADJUST_INSN_LENGTH): Define.
8350 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
8351 * config/aarch64/aarch64.c (is_mem_p): New function.
8352 (is_memory_op): Likewise.
8353 (aarch64_prev_real_insn): Likewise.
8354 (is_madd_op): Likewise.
8355 (dep_between_memop_and_curr): Likewise.
8356 (aarch64_madd_needs_nop): Likewise.
8357 (aarch64_final_prescan_insn): Likewise.
8358 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
8359 and -mno-fix-cortex-a53-835769 options.
8361 2014-10-10 Jakub Jelinek <jakub@redhat.com>
8363 PR tree-optimization/63464
8364 * tree-switch-conversion.c (struct case_bit_test): Remove
8365 hi and lo fields, add wide_int mask field.
8366 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
8367 hi/lo fields into wide_int mask operations, optimize by pretending
8368 minval to be 0 if maxval is small enough.
8369 (process_switch): Adjust caller.
8371 2014-10-10 Richard Biener <rguenther@suse.de>
8373 PR tree-optimization/63379
8374 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
8375 a neutral operand for min/max when it is not a reduction chain.
8377 2014-10-10 Richard Biener <rguenther@suse.de>
8379 PR tree-optimization/63476
8380 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
8381 (BB_LIVE_VOP_ON_EXIT): New define.
8382 (create_expression_by_pieces): Assign VUSEs to stmts.
8383 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
8384 (pass_pre::execute): Assert virtual SSA form is up-to-date
8387 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
8389 * lra-assigns.c (assign_by_spills): Error out on spill failure.
8391 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
8393 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
8396 2014-10-09 Richard Biener <rguenther@suse.de>
8398 PR tree-optimization/63380
8399 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
8402 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
8404 * config/avr/avr.opt (mmcu=): Change to have a string value.
8405 (mn-flash=, mskip-bug, march=, mrmw): New options.
8406 (HeaderInclude): New.
8407 (mmcu=): Remove Var / Init clauses.
8408 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
8410 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
8411 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
8412 (SYMBOL_FLAG_IO_LOW): Define.
8413 (avr_device_to_as, avr_device_to_ld): Don't declare.
8414 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
8415 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
8416 (EXTRA_SPEC_FUNCTIONS): Don't define.
8417 (ASM_SPEC): Translate -arch= option to -mmcu= option.
8418 (LINK_SPEC): Translate -arch= option to -m= option.
8419 Don't use device_to_ld / device_to_data_start.
8420 (STARTFILE_SPEC): Now empty.
8421 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
8422 * config/avr/gen-avr-mmcu-specs.c: New file.
8423 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
8424 (s-device-specs): Likewise.
8425 (GCC_PASSES): Add s-device-specs.
8426 (install-driver): Depend on install-device-specs.
8427 (install-device-specs): New rule.
8428 * config/avr/avr.c (avr_option_override): Look up mcu arch by
8429 avr_arch_index and provide fallback initialization for avr_n_flash.
8430 (varasm.h): #include.
8431 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
8432 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
8433 (avr_attribute_table): Add "io", "address" and "io_low".
8434 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
8435 Add special handling for symbols with "io" and/or "address" attributes.
8436 (avr_asm_asm_output_aligned_bss): New function.
8437 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
8438 as appropriate. Handle io_low attribute.
8439 (avr_out_sbxx_branch): Handle symbolic io addresses.
8440 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
8441 avr_n_flash instead of avr_current_device->n_flash.
8442 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
8443 (avr_emit_movmemhi): Likewise.
8444 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
8445 Use TARGET_RMW instead of avr_current_device->dev_attributes.
8446 Don't define avr_current_device->macro (that's the specfile's job).
8447 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
8448 * config/avr/avr.c (avr_2word_insn_p): Likewise.
8449 * config/avr/avr.md (*cpse.ne): Likewise.
8450 (mov<mode>): Use avr_eval_addr_attrib.
8451 (cbi): Change constraint for low_io_address_operand operand to "i".
8452 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
8453 * config/avr/predicates.md (io_address_operand):
8454 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
8455 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
8456 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
8458 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
8459 * config/avr/genmultilib.awk: Use -march=.
8460 Remove Multilib matches processing.
8461 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
8462 * config/avr/avr-arch.h: Add double include guard.
8463 (avr_mcu_t) <library_name>: Update comment.
8464 * config/avr/driver-avr.c (avr_device_to_as): Delete.
8465 (avr_device_to_ld, avr_device_to_data_start): Likewise.
8466 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
8467 (avr_device_to_sp8): Likewise.
8468 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
8470 * doc/extend.texi (io, address): Document new AVR variable attributes.
8473 2014-10-09 Marek Polacek <polacek@redhat.com>
8475 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
8477 2014-10-08 Richard Biener <rguenther@suse.de>
8479 PR tree-optimization/61969
8480 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
8483 2014-10-09 Richard Biener <rguenther@suse.de>
8485 PR tree-optimization/63445
8486 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
8487 overflow for non-equality compares.
8489 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
8491 PR rtl-optimization/57003
8492 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
8493 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
8494 killing regs_invalidated_by_call.
8496 2014-10-08 Teresa Johnson <tejohnson@google.com>
8499 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
8500 (ssa_fix_duplicate_block_edges): Invoke it.
8501 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
8503 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
8506 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
8507 atomic_fetch_<fetchop_name>si_hard,
8508 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
8509 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
8510 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
8511 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
8513 2014-10-08 Rong Xu <xur@google.com>
8515 * gcov-tool.c (profile_overlap): New driver function
8516 to compute profile overlap.
8517 (print_overlap_usage_message): New.
8518 (overlap_usage): New.
8520 (print_usage): Add calls to overlap function.
8522 * doc/gcov-tool.texi: Add documentation.
8524 2014-10-08 Steve Ellcey <sellcey@mips.com>
8526 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
8527 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
8529 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
8531 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
8532 pattern matching of MEM_REF.
8533 (check_stmt_for_type_change): Update.
8535 2014-10-08 Steve Ellcey <sellcey@mips.com>
8537 * config/mips/linux64.h: Remove.
8538 * config/mips/gnu-user64.h: Remove.
8539 * gcc.config (mips*-*-*): Remove references to linux64.h and
8541 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
8542 with modified version from gnu-user64.h.
8543 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
8544 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
8545 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
8547 (GNU_USER_LINK_EMULATION64): Ditto.
8548 (GNU_USER_LINK_EMULATIONN32): Ditto.
8549 (GLIBC_DYNAMIC_LINKER32): Ditto.
8550 (GLIBC_DYNAMIC_LINKER64): Ditto.
8551 (GLIBC_DYNAMIC_LINKERN32): Ditto.
8552 (UCLIBC_DYNAMIC_LINKER32): Ditto.
8553 (UCLIBC_DYNAMIC_LINKER64): Ditto.
8554 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
8555 (BIONIC_DYNAMIC_LINKERN32): Ditto.
8556 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
8557 (GLIBC_DYNAMIC_LINKER): Delete.
8558 (UCLIBC_DYNAMIC_LINKER): Delete.
8560 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
8561 Richard Biener <rguenther@suse.de>
8563 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
8564 Get address space from operand 0 (BASE).
8566 2014-10-07 Iain Sandoe <iain@codesourcery.com>
8569 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
8571 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
8573 * dwarf2out.c: Remove current_function_has_inlines.
8574 (gen_subprogram_die): Same.
8575 (gen_inlined_subroutine_die): Same.
8577 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
8579 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
8581 (_addcarry_u64): Ditto.
8582 (_addcarryx_u64): Ditto.
8584 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
8586 * cgraph.h (cgraph_node::get_fun): Declare.
8587 * cgraph.c (cgraph_node::get_fun): New method.
8588 * ipa-inline.c (can_inline_edge_p): Use it.
8590 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
8592 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
8593 and -ftrapping-math.
8594 * lto-wrapper.c (merge_and_complain): Likewise.
8595 (run_gcc): Likewise.
8597 2014-10-06 Rong Xu <xur@google.com>
8599 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
8600 * tree-profile.c: (params.h): New include.
8601 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
8602 and __gcov_indirect_call_topn_counters for
8603 indirect_call_topn_profile.
8604 (gimple_init_edge_profiler): New decls for
8605 __gcov_indirect_call_topn_profiler.
8606 (gimple_gen_ic_profiler): Generate the correct profiler call.
8607 (gimple_gen_ic_func_profiler): Fix format.
8608 * value-prof.c (params.h): New include.
8609 (dump_histogram_value): Hanlde indirect_call_topn counters.
8610 (stream_in_histogram_value): Ditto.
8611 (gimple_indirect_call_to_profile): Use indirect_call_topn
8612 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
8613 (gimple_find_values_to_profile): Hanlde indirect_call_topn
8615 * value-prof.h (enum hist_type): Histrogram type for
8616 indirect_call_topn counters.
8617 * profile.c (instrument_values): Instrument
8618 indirect_call_topn counters.
8620 2014-10-06 Rong Xu <xur@google.com>
8622 * Makefile.in: Fix dependence.
8623 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
8624 indirect call topn profiler.
8627 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
8629 * calls.c (expand_call): Do not use the target as the return slot if
8630 it is not sufficiently aligned.
8632 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8634 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
8635 discussion of permutes and why we don't handle them.
8637 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
8639 * config/sparc/predicates.md (int_register_operand): Delete.
8641 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
8643 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
8645 2014-10-06 Jakub Jelinek <jakub@redhat.com>
8647 * ubsan.h (ubsan_get_source_location): New prototype.
8648 * ubsan.c (ubsan_source_location_type): New variable.
8649 Function renamed to ...
8650 (ubsan_get_source_location_type): ... this. Cache
8651 return value in ubsan_source_location_type variable.
8652 (ubsan_source_location, ubsan_create_data): Use
8653 ubsan_get_source_location_type instead of
8654 ubsan_source_location_type.
8655 * asan.c (asan_protect_global): Don't protect globals
8656 with ubsan_get_source_location_type () type.
8657 (asan_add_global): Provide global decl location info
8660 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8662 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
8665 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8667 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
8669 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
8671 (ipa_polymorphic_call_context::dump): Fix formating.
8672 (walk_ssa_copies): Add logic avoiding loops; update uses.
8673 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
8675 2014-10-02 Mark Wielaard <mjw@redhat.com>
8678 * dwarf2out.c (gen_subprogram_die): When a member function is
8679 explicitly deleted then add a DW_AT_GNU_deleted attribute.
8680 * langhooks.h (struct lang_hooks_for_decls): Add
8681 function_decl_deleted_p langhook.
8682 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
8683 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
8685 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8687 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
8688 NULL pointer checks.
8689 (ipa_polymorphic_call_context::get_dynamic_type): Return true
8690 if type doesn't change.
8691 * cgraph.h (cgraph_indirect_call_info): New flag.
8692 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
8693 (cgraph_node::dump): Dump it.
8694 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
8695 of context.get_dynamic_type.
8696 (ipa_make_edge_direct_to_target): Do not speculate
8697 edge that is already speuclative.
8698 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
8699 speculate to __builtin_unreachable
8700 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
8702 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
8704 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8706 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
8707 get_dynamic_type; drop TODO.
8708 * ipa-polymorphic-call.c
8709 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
8710 for otr_type to be unknown.
8712 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
8714 * common/config/score/score-common.c: Remove.
8715 * config.gcc: Remove support for score-*.
8716 * config/score/constraints.md: Remove.
8717 * config/score/elf.h: Remove.
8718 * config/score/predicates.md: Remove.
8719 * config/score/score-conv.h: Remove.
8720 * config/score/score-generic.md: Remove.
8721 * config/score/score-modes.def: Remove.
8722 * config/score/score-protos.h: Remove.
8723 * config/score/score.c: Remove.
8724 * config/score/score.h: Remove.
8725 * config/score/score.md: Remove.
8726 * config/score/score.opt: Remove.
8727 * doc/md.texi: Don't document score-*.
8729 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
8732 * genconditions.c: Directly include ggc.h before rtl.h.
8734 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
8736 * ipa-polymorphic-call.c
8737 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
8738 code determining speculative type.
8739 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
8741 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8743 * altivec.md (altivec_lvsl): New define_expand.
8744 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
8745 (altivec_lvsr): New define_expand.
8746 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
8747 * rs6000.c (rs6000_expand_builtin): Change to use
8748 altivec_lvs[lr]_direct; remove commented-out code.
8750 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8752 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8753 Issue a warning message when vec_lvsl or vec_lvsr is used with a
8754 little endian target.
8756 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8758 * tree-pretty-print.c (dump_location): Make it extern. Dump also
8760 * tree-pretty-print.h (dump_location): Declare.
8761 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
8762 (pp_gimple_stmt_1): Likewise.
8763 (dump_implicit_edges): Likewise.
8764 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
8768 2014-10-03 David Malcolm <dmalcolm@redhat.com>
8770 * gcc.c (driver::global_initializations): Remove "const" so
8771 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
8772 and decoded_options_count.
8774 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
8776 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
8778 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
8779 TARGET_E500_DOUBLE case here.
8781 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
8786 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
8788 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
8790 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
8791 * lto-cgraph.c (lto_output_edge, input_edge): Stream
8792 in_polymorphic_cdtor
8793 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
8794 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
8795 * cgraphclones.c (cgraph_edge::clone): Likewise.
8796 * ipa-prop.c (update_jump_functions_after_inlining,
8797 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
8798 to possible_dynamic_type_change.
8799 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
8800 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
8801 IN_POLY_CDOTR argument.
8803 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
8804 for BASE and OUTER_TYPE being NULL.
8805 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
8806 in_poly_cdtor parameter.
8808 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8810 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
8811 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
8813 (expand_vec_perm_1): Likewise.
8815 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8816 Uros Bizjak <ubizjak@gmail.com>
8818 PR tree-optimization/61403
8819 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
8820 error in comment. Also optimize 256-bit vectors for AVX2
8821 or AVX (floating vectors only), provided the first permutation
8822 can be performed in one insn.
8824 2014-10-03 David Malcolm <dmalcolm@redhat.com>
8826 * gcc.c (class driver): New class.
8827 (main): Reimplement in terms of driver::main, moving most of the
8828 locals to be locals within individual methods of class driver.
8829 The remaining locals "explicit_link_files", "decoded_options" and
8830 "decoded_options_count" are used by multiple driver:: methods, and
8831 so become member data. Doing so isolates the argc/argv reads and
8832 writes. Replace "goto out" with a special exit code from
8833 new method driver::prepare_infiles. Split out the old
8834 implementation of main into the following...
8835 (driver::main): New function, corresponding to the old "main"
8837 (driver::set_progname): New function, taken from the old
8838 "main" implementation.
8839 (driver::expand_at_files): Likewise.
8840 (driver::decode_argv): Likewise.
8841 (driver::global_initializations): Likewise.
8842 (driver::build_multilib_strings): Likewise.
8843 (driver::set_up_specs): Likewise.
8844 (driver::putenv_COLLECT_GCC): Likewise.
8845 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
8846 (driver::handle_unrecognized_options): Likewise.
8847 (driver::maybe_print_and_exit): Likewise.
8848 (driver::prepare_infiles): Likewise.
8849 (driver::do_spec_on_infiles): Likewise.
8850 (driver::maybe_run_linker): Likewise.
8851 (driver::final_actions): Likewise.
8852 (driver::get_exit_code): Likewise.
8854 2014-10-03 Yury Gribov <y.gribov@samsung.com>
8856 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
8857 don't emit empty ctors.
8859 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
8861 * convert.c (convert_to_integer): Do not introduce useless conversions
8862 between integral types.
8864 2014-10-03 David Sherwood <david.sherwood@arm.com>
8866 * ira-int.h (ira_allocno): Mark hard_regno as signed.
8868 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
8870 * lra-constraints.c (inherit_in_ebb): Handle calls with
8871 multiple return values.
8872 * caller-save.c (save_call_clobbered_regs): Likewise.
8874 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8876 * tree-vect-data-refs.c (vect_permute_load_chain,
8877 vect_shift_permute_load_chain): Fix a typo in temporary var names,
8878 suffle3 to shuffle3.
8881 * omp-low.c (taskreg_contexts): New variable.
8882 (scan_omp_parallel): Push newly created context into taskreg_contexts
8883 vector and move record layout code to finish_taskreg_scan.
8884 (scan_omp_task): Likewise.
8885 (finish_taskreg_scan): New function.
8886 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
8887 vector elements and release it.
8890 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
8891 of palignr arguments can't be used due to min 0 or max - min
8892 too high, try also op0, op1 order of palignr arguments.
8894 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
8896 * cgraph.h (ipa_polymorphic_call_context):
8897 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
8898 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
8899 * ipa-polymorphic-call.c
8900 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
8901 past end of dynamic types.
8902 (ipa_polymorphic_call_context::stream_out,
8903 speculative_outer_type): Stream dynamic flag.
8904 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
8905 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
8907 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
8909 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
8910 * ipa-prop.c (update_jump_functions_after_inlining,
8911 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
8913 2014-10-02 Teresa Johnson <tejohnson@google.com>
8915 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
8916 up when synthesizing counts to avoid rounding errors.
8918 2014-10-02 Teresa Johnson <tejohnson@google.com>
8921 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
8922 asserts to handle incoming insanities.
8924 2014-10-02 Martin Jambor <mjambor@suse.cz>
8926 PR tree-optimization/63375
8927 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
8930 2014-10-02 Olivier Hainque <hainque@adacore.com>
8932 * Makefile.in (CROSS): Define, to @CROSS.
8934 2014-10-02 Jakub Jelinek <jakub@redhat.com>
8937 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
8938 if it expands to a single insn only.
8939 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
8940 fail unless in_order is true. Add forward declaration.
8941 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
8942 is useful for one_operand_p.
8943 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
8945 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8947 * cgraphclones.c (build_function_type_skip_args): Do not make new
8948 type variant of old.
8950 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8952 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
8953 when speculation is added.
8954 (ipa_edge_args): Add polymorphic_call_contexts.
8955 (ipa_get_ith_polymorhic_call_context): New accesor.
8956 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
8957 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
8958 (ipa_compute_jump_functions_for_edge): Compute contexts.
8959 (update_jump_functions_after_inlining): Update contexts.
8960 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
8961 update dumping; add speculative edge creation.
8962 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
8964 (update_indirect_edges_after_inlining): Pass down context.
8965 (ipa_edge_duplication_hook): Duplicate contexts.
8966 (ipa_write_node_info): Stream out contexts.
8967 (ipa_read_node_info): Stream in contexts.
8968 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
8970 (try_speculative_devirtualization): New function.
8971 * ipa-utils.h (try_speculative_devirtualization): Declare.
8973 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8975 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
8978 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8980 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
8983 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8985 * ipa-polymorphic-call.c
8986 (ipa_polymorphic_call_context::restrict_to_inner_class):
8987 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
8988 use speculation_consistent_p to do so; Add CONSDER_BASES
8989 and CONSIDER_PLACEMENT_NEW parameters.
8990 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
8991 short circuit obvious cases.
8992 (ipa_polymorphic_call_context::dump): Improve formatting.
8993 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
8994 combine_speculation_with to record speculations; Do not ICE when
8995 object is located in pointer type decl; do not ICE for methods
8996 of UNION_TYPE; do not record nonpolymorphic types.
8997 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
8998 (ipa_polymorphic_call_context::combine_speculation_with): New method.
8999 (ipa_polymorphic_call_context::combine_with): New method.
9000 (ipa_polymorphic_call_context::make_speculative): Move here; use
9001 combine speculation.
9002 * cgraph.h (ipa_polymorphic_call_context): Update
9003 restrict_to_inner_class prototype; add offset_by, make_speculative,
9004 combine_with, useless_p, combine_speculation_with and
9005 speculation_consistent_p methods.
9006 (ipa_polymorphic_call_context::offset_by): New method.
9007 (ipa_polymorphic_call_context::useless_p): New method.
9009 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
9011 PR rtl-optimization/62151
9012 * combine.c (can_combine_p): Allow the destination register of INSN
9013 to be clobbered in I3.
9014 (subst): Do not substitute into clobbers of registers.
9016 2014-10-01 Jakub Jelinek <jakub@redhat.com>
9019 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
9020 offset, TARGET_MEM_REF and SSA_NAME.
9022 * config/i386/i386.c (expand_vec_perm_palignr): Handle
9023 256-bit vectors for TARGET_AVX2.
9025 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
9029 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
9030 argument to avx2_permv2ti.
9032 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9034 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
9036 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
9038 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
9039 (fmod<mode>3): Ditto.
9040 (fpremxf4_i387): Ditto.
9041 (reminderxf3): Ditto.
9042 (reminder<mode>3): Ditto.
9043 (fprem1xf4_i387): Ditto.
9045 2014-09-30 Teresa Johnson <tejohnson@google.com>
9047 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
9048 duplicate_blocks bitmap.
9049 (remove_ctrl_stmt_and_useless_edges): Ditto.
9050 (create_block_for_threading): Ditto.
9051 (compute_path_counts): New function.
9052 (update_profile): Ditto.
9053 (recompute_probabilities): Ditto.
9054 (update_joiner_offpath_counts): Ditto.
9055 (freqs_to_counts_path): Ditto.
9056 (clear_counts_path): Ditto.
9057 (ssa_fix_duplicate_block_edges): Update profile info.
9058 (ssa_create_duplicates): Pass new parameter.
9059 (ssa_redirect_edges): Remove old profile update.
9060 (thread_block_1): New duplicate_blocks bitmap,
9061 remove old profile update.
9062 (thread_single_edge): Pass new parameter.
9064 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
9067 * varasm.c (decode_reg_name_and_count): Check availability for
9068 registers from ADDITIONAL_REGISTER_NAMES.
9070 2014-09-30 David Malcolm <dmalcolm@redhat.com>
9073 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
9074 (PLUGIN_HEADERS): Add pass-instances.def.
9076 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
9078 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
9080 * config/aarch64/aarch64-simd.md
9081 (aarch64_sqdmull_laneq<mode>): Expand iterator.
9082 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
9083 (vqdmulls_lane_s32): Fix return type.
9084 (vqdmulls_laneq_s32): New.
9086 2014-09-30 Jakub Jelinek <jakub@redhat.com>
9089 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
9090 or invert_jump_1 if jump isn't any_condjump_p.
9092 2014-09-30 Terry Guo <terry.guo@arm.com>
9094 * config/arm/arm-cores.def (cortex-m7): New core name.
9095 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
9097 * config/arm/arm-tables.opt: Regenerated.
9098 * config/arm/arm-tune.md: Regenerated.
9099 * config/arm/arm.h (TARGET_VFP5): New macro.
9100 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
9101 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
9102 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
9103 * doc/invoke.texi: Document new cpu and fpu names.
9105 2014-09-30 Jiong Wang <jiong.wang@arm.com>
9107 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
9108 before sinking insn.
9110 2014-09-30 David Sherwood <david.sherwood@arm.com>
9112 * ira-int.h (ira_allocno): Add "wmode" field.
9113 * ira-build.c (create_insn_allocnos): Add new "parent" function
9115 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
9116 that cannot be accessed in wmode.
9118 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
9120 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
9123 2014-09-29 Andi Kleen <ak@linux.intel.com>
9125 * opts.c (print_filtered_help): Print --param min/max/default
9128 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
9130 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
9132 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
9134 * tree-vrp.c (get_single_symbol): New function.
9135 (build_symbolic_expr): Likewise.
9136 (symbolic_range_based_on_p): New predicate.
9137 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
9138 for PLUS and MINUS. Do not drop symbolic ranges at the end.
9139 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
9140 operand is symbolic and based on the other operand.
9142 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
9144 * config/microblaze/microblaze.md (call_internal1): Use VOID
9145 instead of SI to fix "((void (*)(void)) 0)()" issue
9147 2014-09-29 Nick Clifton <nickc@redhat.com>
9149 * config/msp430/msp430.c (msp430_expand_prologue): Return a
9150 CLOBBER rtx for naked functions.
9151 (msp430_expand_epilogue): Likewise.
9152 (msp430_use_f5_series_hwmult): Cache result.
9153 (use_32bit_hwmult): Cache result.
9154 (msp430_no_hwmult): New function.
9155 (msp430_output_labelref): Use it.
9157 2014-09-29 Jakub Jelinek <jakub@redhat.com>
9160 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
9161 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
9162 use the alignment of avar rather than ovar.
9164 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
9166 * config/pa/pa.c (pa_output_function_epilogue): Only update
9167 last_address when a nonnote insn is found.
9169 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
9172 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
9174 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
9177 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
9178 fix pasto in checking array size.
9180 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
9183 * passes.def (pass_tracer): Move before last dominator pass.
9185 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
9187 * gcc.c (try_generate_repro): Remove argument "prog". Change all
9189 (run_attempt): Handle errors of "pex_run" invocation.
9191 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
9193 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
9195 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
9196 (TARGET_ASAN_SHADOW_OFFSET): Define.
9198 2014-09-26 Martin Liska <mliska@suse.cz>
9200 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
9202 * cgraph.h: Likewise.
9203 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
9204 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
9205 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
9206 * tree-ssa-alias.h: Likewise.
9208 2014-09-26 Jakub Jelinek <jakub@redhat.com>
9209 Max Ostapenko <m.ostapenko@partner.samsung.com>
9211 * common.opt: New option.
9212 * doc/invoke.texi: Describe new option.
9213 * gcc.c (execute): Don't free first string early, but at the end
9214 of the function. Call retry_ice if compiler exited with
9216 (main): Factor out common code.
9217 (print_configuration): New function.
9218 (files_equal_p): Likewise.
9219 (check_repro): Likewise.
9220 (run_attempt): Likewise.
9221 (do_report_bug): Likewise.
9222 (append_text): Likewise.
9223 (try_generate_repro): Likewise
9225 2014-09-25 Andi Kleen <ak@linux.intel.com>
9227 * config/i386/i386.c (x86_print_call_or_nop): New function.
9228 (x86_function_profiler): Support -mnop-mcount and
9230 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
9231 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
9233 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
9235 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
9236 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
9237 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
9240 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
9242 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
9243 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
9244 types_odr_comparable): Declare.
9245 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
9246 * ipa-polymorphic-call.c: New file.
9247 (contains_polymorphic_type_p, possible_placement_new,
9248 ipa_polymorphic_call_context::restrict_to_inner_class,
9249 contains_type_p, decl_maybe_in_construction_p,
9250 ipa_polymorphic_call_context::stream_out,
9251 ipa_polymorphic_call_context::debug,
9252 ipa_polymorphic_call_context::stream_in,
9253 ipa_polymorphic_call_context::set_by_decl,
9254 ipa_polymorphic_call_context::set_by_invariant,
9256 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9257 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
9258 extr_type_from_vtbl_ptr_store, record_known_type
9259 check_stmt_for_type_change,
9260 ipa_polymorphic_call_context::get_dynamic_type): Move here from
9262 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
9263 and streamer-hooks.h
9264 (contains_polymorphic_type_p, possible_placement_new,
9265 ipa_polymorphic_call_context::restrict_to_inner_class,
9266 contains_type_p, decl_maybe_in_construction_p,
9267 ipa_polymorphic_call_context::stream_out,
9268 ipa_polymorphic_call_context::debug,
9269 ipa_polymorphic_call_context::stream_in,
9270 ipa_polymorphic_call_context::set_by_decl,
9271 ipa_polymorphic_call_context::set_by_invariant,
9273 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9274 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
9275 extr_type_from_vtbl_ptr_store, record_known_type
9276 check_stmt_for_type_change,
9277 ipa_polymorphic_call_context::get_dynamic_type): Move to
9278 ipa-polymorphic-call.c
9279 (type_all_derivations_known_p, types_odr_comparable,
9280 types_must_be_same_for_odr): Export.
9281 (type_known_to_have_no_deriavations_p): New function.
9282 * Makefile.in: Add ipa-polymorphic-call.c
9284 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
9286 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
9288 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
9289 (possible_polymorphic_call_targets): Instead of computing both
9290 speculative and non-speculative answers, do just one at a time.
9291 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
9292 (dump_targets): Break out from ...
9293 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
9294 and non-speculative lists.
9295 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
9296 * ipa-utils.h (possible_polymorphic_call_targets): Update.
9298 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
9300 PR rtl-optimization/63348
9301 * emit-rtl.c (try_split): Do not emit extra barrier.
9303 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
9305 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
9306 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
9308 (aarch64_<sur>shll2_n<mode>): Likewise.
9309 (aarch64_<sur>shr_n<mode>): Likewise.
9310 (aarch64_<sur>sra_n<mode>: Likewise.
9311 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
9312 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
9313 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
9314 * config/aarch64/iterators.md (ve_mode): New.
9315 (offsetlr): Remap to infix text for use in new predicates.
9316 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
9317 (aarch64_simd_shift_imm_hi): Likewise.
9318 (aarch64_simd_shift_imm_si): Likewise.
9319 (aarch64_simd_shift_imm_di): Likewise.
9320 (aarch64_simd_shift_imm_offset_qi): Likewise.
9321 (aarch64_simd_shift_imm_offset_hi): Likewise.
9322 (aarch64_simd_shift_imm_offset_si): Likewise.
9323 (aarch64_simd_shift_imm_offset_di): Likewise.
9324 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
9325 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
9326 (aarch64_simd_shift_imm_bitsize_si): Likewise.
9327 (aarch64_simd_shift_imm_bitsize_di): Likewise.
9329 2014-09-25 Jiong Wang <jiong.wang@arm.com>
9331 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
9332 new created BB as the intersection of live-in from "old_dest" and
9335 2014-09-25 Felix Yang <felix.yang@huawei.com>
9337 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
9338 * genautomata.c (merge_states): Ditto.
9340 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9343 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
9344 in instruction sequence.
9346 2014-09-25 Nick Clifton <nickc@redhat.com>
9349 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
9350 in instruction sequence.
9352 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9355 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
9356 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
9358 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
9359 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9360 Anna Tikhonova <anna.tikhonova@intel.com>
9361 Ilya Tocar <ilya.tocar@intel.com>
9362 Andrey Turetskiy <andrey.turetskiy@intel.com>
9363 Ilya Verbin <ilya.verbin@intel.com>
9364 Kirill Yukhin <kirill.yukhin@intel.com>
9365 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9367 * config/i386/sse.md
9368 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
9369 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
9370 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
9371 (define_expand "<avx512>_perm<mode>_mask"): ... this.
9372 Use VI8F_256_512 mode iterator.
9373 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
9374 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
9376 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
9377 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9378 Anna Tikhonova <anna.tikhonova@intel.com>
9379 Ilya Tocar <ilya.tocar@intel.com>
9380 Andrey Turetskiy <andrey.turetskiy@intel.com>
9381 Ilya Verbin <ilya.verbin@intel.com>
9382 Kirill Yukhin <kirill.yukhin@intel.com>
9383 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9385 * config/i386/sse.md
9386 (define_insn "avx_movshdup256<mask_name>"): Add masking.
9387 (define_insn "sse3_movshdup<mask_name>"): Ditto.
9388 (define_insn "avx_movsldup256<mask_name>"): Ditto.
9389 (define_insn "sse3_movsldup<mask_name>"): Ditto.
9390 (define_insn "vec_dupv2df<mask_name>"): Ditto.
9391 (define_insn "*vec_concatv2df"): Add EVEX version.
9393 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
9394 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9395 Anna Tikhonova <anna.tikhonova@intel.com>
9396 Ilya Tocar <ilya.tocar@intel.com>
9397 Andrey Turetskiy <andrey.turetskiy@intel.com>
9398 Ilya Verbin <ilya.verbin@intel.com>
9399 Kirill Yukhin <kirill.yukhin@intel.com>
9400 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9402 * config/i386/sse.md
9403 (define_insn "vec_set<mode>_0"): Add EVEX version.
9405 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
9406 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9407 Anna Tikhonova <anna.tikhonova@intel.com>
9408 Ilya Tocar <ilya.tocar@intel.com>
9409 Andrey Turetskiy <andrey.turetskiy@intel.com>
9410 Ilya Verbin <ilya.verbin@intel.com>
9411 Kirill Yukhin <kirill.yukhin@intel.com>
9412 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9414 * config/i386/sse.md
9416 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
9418 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
9419 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
9420 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
9421 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
9422 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
9423 (define_expand "sse2_cvtpd2ps_mask): New.
9424 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
9425 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
9427 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
9428 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9429 Anna Tikhonova <anna.tikhonova@intel.com>
9430 Ilya Tocar <ilya.tocar@intel.com>
9431 Andrey Turetskiy <andrey.turetskiy@intel.com>
9432 Ilya Verbin <ilya.verbin@intel.com>
9433 Kirill Yukhin <kirill.yukhin@intel.com>
9434 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9436 * config/i386/i386.c
9437 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
9438 (ufix_notruncv8dfv8si2_mask_round): ... this.
9439 * config/i386/sse.md
9440 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
9441 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
9442 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
9443 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
9444 (define_expand "sse2_cvtpd2dq"): Delete.
9445 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
9446 make 2nd operand const0 vector.
9447 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
9449 (define_mode_attr pd2udqsuff): New.
9451 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
9452 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
9453 (define_insn "*avx_cvttpd2dq256_2"): Delete.
9454 (define_expand "sse2_cvttpd2dq"): Ditto.
9455 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
9456 make 2nd operand const0 vector.
9458 2014-09-25 Jakub Jelinek <jakub@redhat.com>
9460 PR tree-optimization/63341
9461 * tree-vectorizer.h (vect_create_data_ref_ptr,
9462 vect_create_addr_base_for_vector_ref): Add another tree argument
9463 defaulting to NULL_TREE.
9464 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
9465 argument, pass it down to vect_create_addr_base_for_vector_ref.
9466 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
9467 add that to base_offset too if non-NULL.
9468 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
9469 for dr_explicit_realign_optimized set it to vector byte size
9470 - 1 instead of setting offset, pass byte_offset down to
9471 vect_create_data_ref_ptr.
9473 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
9475 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
9476 forgotten debug output; canonicalize querries more wtih LTO.
9478 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
9480 * cgraph.h (class ipa_polymorphic_call_context): Move here from
9481 ipa-utils.h; add stream_int and stream_out methods.
9482 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
9483 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
9484 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
9486 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9487 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9488 ipa_polymorphic_call_context::clear_speculation,
9489 ipa_polymorphic_call_context::clear_outer_type): Move here from
9491 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
9492 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9493 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9494 ipa_polymorphic_call_context::clear_speculation,
9495 ipa_polymorphic_call_context::clear_outer_type): Likewise.
9496 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
9498 (ipa_polymorphic_call_context::stream_out): New method.
9499 (ipa_polymorphic_call_context::stream_in): New method.
9500 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
9501 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
9503 (ipa_analyze_call_uses): Simplify.
9504 (update_indirect_edges_after_inlining): Do not care about outer_type.
9505 (ipa_write_indirect_edge_info): Update.
9506 (ipa_write_indirect_edge_info): Likewise.
9507 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
9508 (dump_edge_flags): Break out from ...
9509 (cgraph_node::dump): ... here; dump indirect edges.
9511 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
9513 * ipa-utils.h (polymorphic_call_context): Add
9514 metdhos dump, debug and clear_outer_type.
9515 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
9516 (ipa_polymorphic_call_context::clear_outer_type): New method.
9517 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
9518 * ipa-devirt.c (types_odr_comparable): New function.
9519 (types_must_be_same_for_odr): New function.
9520 (odr_subtypes_equivalent_p): Simplify.
9521 (possible_placement_new): Break out from ...
9522 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
9523 be more cuatious about returning false in cases the context may be
9524 valid in derived type or via placement new.
9525 (contains_type_p): Clear maybe_derived_type
9526 (ipa_polymorphic_call_context::dump): New method.
9527 (ipa_polymorphic_call_context::debug): New method.
9528 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
9529 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
9530 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
9531 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
9532 to suceed on all valid cases; remove confused sanity check.
9533 (dump_possible_polymorphic_call_targets): Simplify.
9535 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
9537 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
9538 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
9539 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
9540 varpool.c: Rename all instances of DECL_ABSTRACT to
9543 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9545 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
9546 special handling for stores whose SET_SRC is an UNSPEC (such as
9549 2014-09-24 Jiong Wang <jiong.wang@arm.com>
9551 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
9552 !REG_P (src) to release more instruction sink opportunities.
9554 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
9556 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
9557 move costs for 128-bit types.
9559 2014-09-24 Martin Jambor <mjambor@suse.cz>
9561 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
9562 when duplicating a PASS_THROUGH jump function when creating a
9565 2014-09-24 Marek Polacek <polacek@redhat.com>
9569 * asan.c (maybe_instrument_call): Add default case.
9570 * ipa-pure-const.c (special_builtin_state): Likewise.
9571 * predict.c (expr_expected_value_1): Likewise.
9572 * lto-streamer-out.c (write_symbol): Initialize variable.
9574 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9576 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
9578 (vmuld_laneq_f64): Likewise.
9579 (vmuls_lane_f32): Likewise.
9580 (vmuls_laneq_f32): Likewise.
9582 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
9585 * varpool.c (varpool_node::add): Pass decl attributes
9586 to lookup_attribute.
9588 2014-09-24 Jakub Jelinek <jakub@redhat.com>
9591 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
9593 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9595 PR tree-optimization/63266
9596 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
9597 marker for unknown byte value.
9598 (MARKER_MASK): New macro.
9599 (MARKER_BYTE_UNKNOWN): New macro.
9600 (HEAD_MARKER): New macro.
9601 (do_shift_rotate): Mark bytes with unknown values due to sign
9602 extension when doing an arithmetic right shift. Replace hardcoded
9603 mask for marker by new MARKER_MASK macro.
9604 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
9605 numbers accordingly.
9607 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9608 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9609 Anna Tikhonova <anna.tikhonova@intel.com>
9610 Ilya Tocar <ilya.tocar@intel.com>
9611 Andrey Turetskiy <andrey.turetskiy@intel.com>
9612 Ilya Verbin <ilya.verbin@intel.com>
9613 Kirill Yukhin <kirill.yukhin@intel.com>
9614 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9616 * config/i386/sse.md
9618 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
9620 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
9621 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
9623 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9625 Anna Tikhonova <anna.tikhonova@intel.com>
9626 Ilya Tocar <ilya.tocar@intel.com>
9627 Andrey Turetskiy <andrey.turetskiy@intel.com>
9628 Ilya Verbin <ilya.verbin@intel.com>
9629 Kirill Yukhin <kirill.yukhin@intel.com>
9630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9632 * config/i386/sse.md
9633 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
9634 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
9635 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
9636 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
9637 (define_expand "avx512vl_pshuflw_mask"): New.
9638 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
9639 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
9640 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
9641 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
9642 (define_expand "avx512vl_pshufhw_mask"): New.
9643 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
9645 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9646 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9647 Anna Tikhonova <anna.tikhonova@intel.com>
9648 Ilya Tocar <ilya.tocar@intel.com>
9649 Andrey Turetskiy <andrey.turetskiy@intel.com>
9650 Ilya Verbin <ilya.verbin@intel.com>
9651 Kirill Yukhin <kirill.yukhin@intel.com>
9652 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9654 * config/i386/i386.c
9655 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
9656 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
9657 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
9658 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
9659 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
9660 * config/i386/sse.md
9661 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
9663 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
9664 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
9666 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
9667 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
9668 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
9669 (define_expand "avx512vl_pshufd_mask"): New.
9670 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
9672 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9673 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9674 Anna Tikhonova <anna.tikhonova@intel.com>
9675 Ilya Tocar <ilya.tocar@intel.com>
9676 Andrey Turetskiy <andrey.turetskiy@intel.com>
9677 Ilya Verbin <ilya.verbin@intel.com>
9678 Kirill Yukhin <kirill.yukhin@intel.com>
9679 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9681 * config/i386/i386.c
9682 (CODE_FOR_avx2_extracti128): Rename to ...
9683 (CODE_FOR_avx_vextractf128v4di): this.
9684 (CODE_FOR_avx2_inserti128): Rename to ...
9685 (CODE_FOR_avx_vinsertf128v4di): this.
9686 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
9687 CODE_FOR_avx_vextractf128v4di.
9688 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
9689 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
9690 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
9691 CODE_FOR_avx512vl_vinsertv8si.
9692 * config/i386/sse.md
9694 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
9695 AVX512_VEC mode iterator.
9697 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
9700 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
9701 AVX512_VEC_2 mode iterator.
9702 (define_insn "vec_set_lo_<mode><mask_name>"): New.
9703 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9704 (define_expand "avx512vl_vinsert<mode>"): Ditto.
9705 (define_insn "avx2_vec_set_lo_v4di"): Delete.
9706 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
9707 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
9708 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9709 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
9710 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9711 (define_expand "avx2_extracti128"): Delete.
9712 (define_expand "avx2_inserti128"): Ditto.
9714 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9715 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9716 Anna Tikhonova <anna.tikhonova@intel.com>
9717 Ilya Tocar <ilya.tocar@intel.com>
9718 Andrey Turetskiy <andrey.turetskiy@intel.com>
9719 Ilya Verbin <ilya.verbin@intel.com>
9720 Kirill Yukhin <kirill.yukhin@intel.com>
9721 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9723 * config/i386/sse.md
9724 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
9725 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
9726 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
9727 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
9728 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
9729 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
9730 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
9731 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
9732 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
9733 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
9734 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
9735 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
9736 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
9738 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
9740 PR rtl-optimization/63210
9741 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
9742 HARD_REGNO is not available for CONFLICT_A.
9744 2014-09-23 Andi Kleen <ak@linux.intel.com>
9746 * cgraph.h (symtab_node): Add no_reorder attribute.
9747 (symbol_table::output_asm_statements): Remove.
9748 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
9749 (cgraph_node::create_version_clone): Dito.
9750 (symbol_table::output_asm_statements): Remove.
9751 * trans-mem.c (ipa_tm_create_version_alias): Dito.
9752 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
9753 (output_in_order): Add no_reorder flag. Only handle no_reorder
9755 (symbol_table::compile): Add separate pass for no_reorder nodes.
9756 (process_common_attributes): Set no_reorder flag in symtab node.
9758 (process_function_and_variable_attributes): Pass symtab nodes to
9759 process_common_attributes.
9760 * doc/extend.texi (no_reorder): Document no_reorder attribute.
9761 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
9762 (lto_output_varpool_node): Dito.
9763 (input_overwrite_node): Dito.
9764 (input_varpool_node): Dito.
9765 * varpool.c (varpool_node::add): Set no_reorder attribute.
9766 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
9767 (symbol_table::output_variables): Dito.
9768 * symtab.c (symtab_node::dump_base): Print no_reorder.
9770 2014-09-23 Jiong Wang <jiong.wang@arm.com>
9772 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
9775 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
9777 * configure: Regenerate.
9779 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
9781 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
9782 when result_mode == shift_mode.
9784 2014-09-23 Kostya Serebryany <kcc@google.com>
9786 Update to match the changed asan API.
9787 * asan.c (asan_global_struct): Update the __asan_global definition
9788 to match the new API.
9789 (asan_add_global): Ditto.
9790 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
9793 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9795 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
9796 refine the constraints used on 32/64-bit floating point moves.
9798 (f64_vsx): Likewise.
9801 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
9802 (BOOL_REGS_OP1): Likewise.
9803 (BOOL_REGS_OP2): Likewise.
9804 (BOOL_REGS_UNARY): Likewise.
9805 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
9806 32/64-bit floating point moves. Do not use wa, instead use ww/ws
9807 for moves involving VSX registers. Do not use constraints that
9808 target VSX registers for decimal types.
9809 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
9810 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
9812 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
9814 * tree.h (int_bit_position): Turn into inline function;
9815 implement using wide int.
9816 * tree.c (int_bit_position): Remove.
9818 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
9821 * target-globals.c (target_globals::~target_globals): Fix location
9822 of ira_int destruction.
9824 2014-09-23 Renlin Li <renlin.li@arm.com>
9826 * config/aarch64/aarch64.md (return): New.
9827 (simple_return): Likewise.
9828 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
9829 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
9831 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
9833 * common/config/aarch64/aarch64-common.c:
9834 (default_options aarch_option_optimization_table):
9835 Default to -fsched-pressure.
9837 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
9839 * cfgcleanup.c (try_optimize_cfg): Do not remove label
9840 with LABEL_PRESERVE_P flag set.
9842 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9844 Anna Tikhonova <anna.tikhonova@intel.com>
9845 Ilya Tocar <ilya.tocar@intel.com>
9846 Andrey Turetskiy <andrey.turetskiy@intel.com>
9847 Ilya Verbin <ilya.verbin@intel.com>
9848 Kirill Yukhin <kirill.yukhin@intel.com>
9849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9851 * config/i386/sse.md
9852 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
9853 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
9854 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
9855 (define_insn "sse2_shufpd_v2df_mask"): New.
9857 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9858 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9859 Anna Tikhonova <anna.tikhonova@intel.com>
9860 Ilya Tocar <ilya.tocar@intel.com>
9861 Andrey Turetskiy <andrey.turetskiy@intel.com>
9862 Ilya Verbin <ilya.verbin@intel.com>
9863 Kirill Yukhin <kirill.yukhin@intel.com>
9864 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9866 * config/i386/sse.md
9867 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
9868 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
9869 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
9870 (define_insn "sse_shufps_v4sf_mask"): New.
9872 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9873 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9874 Anna Tikhonova <anna.tikhonova@intel.com>
9875 Ilya Tocar <ilya.tocar@intel.com>
9876 Andrey Turetskiy <andrey.turetskiy@intel.com>
9877 Ilya Verbin <ilya.verbin@intel.com>
9878 Kirill Yukhin <kirill.yukhin@intel.com>
9879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9881 * config/i386/sse.md
9882 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
9883 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
9884 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
9885 (define_insn "unpcklps128_mask"): New.
9887 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9889 Anna Tikhonova <anna.tikhonova@intel.com>
9890 Ilya Tocar <ilya.tocar@intel.com>
9891 Andrey Turetskiy <andrey.turetskiy@intel.com>
9892 Ilya Verbin <ilya.verbin@intel.com>
9893 Kirill Yukhin <kirill.yukhin@intel.com>
9894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9896 * config/i386/sse.md
9897 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
9898 (define_insn "avx512vl_unpckhpd128_mask"): New.
9899 (define_expand "avx_movddup256<mask_name>"): Add masking.
9900 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
9901 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
9902 (define_insn "avx512vl_unpcklpd128_mask"): New.
9904 2014-09-22 Joseph Myers <joseph@codesourcery.com>
9906 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9907 * doc/tm.texi: Regenerate.
9908 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
9909 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9910 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
9912 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9913 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9914 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9915 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9916 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
9918 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9919 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9920 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9921 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9922 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9923 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9924 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9925 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9926 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9927 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9928 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
9931 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
9933 * tree-ssa-ccp.c (prop_value_d): Rename to ...
9934 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
9935 * ipa-prop.c (struct type_change_info): Rename to ...
9936 (prop_type_change_info): ... this; update uses.
9937 * ggc-page.c (globals): Rename to ...
9938 (static struct ggc_globals): ... this; update uses.
9939 * tree-ssa-loop-im.c (mem_ref): Rename to ...
9940 (im_mem_ref): ... this; update uses.
9941 * ggc-common.c (loc_descriptor): Rename to ...
9942 (ggc_loc_descriptor): ... this; update uses.
9943 * lra-eliminations.c (elim_table): Rename to ...
9944 (lra_elim_table): ... this; update uses.
9945 * bitmap.c (output_info): Rename to ...
9946 (bitmap_output_info): ... this; update uses.
9947 * gcse.c (expr): Rename to ...
9948 (gcse_expr) ... this; update uses.
9949 (occr): Rename to ...
9950 (gcse_occr): .. this; update uses.
9951 * tree-ssa-copy.c (prop_value_d): Rename to ...
9952 (prop_value_t): ... this.
9953 * predict.c (block_info_def): Rename to ...
9954 (block_info): ... this; update uses.
9955 (edge_info_def): Rename to ...
9956 (edge_info): ... this; update uses.
9957 * profile.c (bb_info): Rename to ...
9958 (bb_profile_info): ... this; update uses.
9959 * alloc-pool.c (output_info): Rename to ...
9960 (pool_output_info): ... this; update uses.
9961 * ipa-cp.c (topo_info): Rename to ..
9962 (ipa_topo_info): ... this; update uses.
9963 * tree-nrv.c (nrv_data): Rename to ...
9964 (nrv_data_t): ... this; update uses.
9965 * ipa-split.c (bb_info): Rename to ...
9966 (split_bb_info): ... this one.
9967 * profile.h (edge_info): Rename to ...
9968 (edge_profile_info): ... this one; update uses.
9969 * dse.c (bb_info): Rename to ...
9970 (dse_bb_info): ... this one; update uses.
9971 * cprop.c (occr): Rename to ...
9972 (cprop_occr): ... this one; update uses.
9973 (expr): Rename to ...
9974 (cprop_expr): ... this one; update uses.
9976 2014-09-22 Jason Merrill <jason@redhat.com>
9978 * Makefile.in (check-parallel-%): Add @.
9980 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
9982 * config/aarch64/geniterators.sh: New.
9983 * config/aarch64/iterators.md (VDQF_DF): New.
9984 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
9985 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
9987 2014-09-22 Peter A. Bigot <pab@pabigot.com>
9989 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
9990 -lnosys when -msim absent.
9992 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
9994 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
9996 2014-09-22 Richard Biener <rguenther@suse.de>
9998 * gimplify.c (gimplify_init_constructor): Do not leave
9999 non-GIMPLE vector constructors around.
10000 * tree-cfg.c (verify_gimple_assign_single): Verify that
10001 CONSTRUCTORs have gimple elements.
10003 2014-09-22 Jakub Jelinek <jakub@redhat.com>
10006 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
10007 insert a debug source bind stmt setting DEBUG_EXPR_DECL
10008 instead of a normal gimple assignment stmt.
10010 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
10012 * config/bfin/bfin.md: Fix use of constraints in define_split.
10014 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
10016 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
10017 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
10019 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
10021 * hard-reg-set.h: Include hash-table.h.
10022 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
10024 * target-globals.c (target_globals::~target_globals): Call
10025 hard_regs->finalize.
10026 * rtl.h (subreg_shape): New structure.
10027 (shape_of_subreg): New function.
10028 (simplifiable_subregs): Declare.
10029 * reginfo.c (simplifiable_subreg): New structure.
10030 (simplifiable_subregs_hasher): Likewise.
10031 (simplifiable_subregs): New function.
10032 (invalid_mode_changes): Delete.
10033 (alid_mode_changes, valid_mode_changes_obstack): New variables.
10034 (record_subregs_of_mode): Remove subregs_of_mode parameter.
10035 Record valid mode changes in valid_mode_changes.
10036 (find_subregs_of_mode): Remove subregs_of_mode parameter.
10037 Update calls to record_subregs_of_mode.
10038 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
10039 handling. Initialize new variables. Update call to
10040 find_subregs_of_mode.
10041 (invalid_mode_change_p): Check new variables instead of
10042 invalid_mode_changes.
10043 (finish_subregs_of_mode): Finalize new variables instead of
10044 invalid_mode_changes.
10045 (target_hard_regs::finalize): New function.
10046 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
10047 even when CLASS_CANNOT_CHANGE_MODE is undefined.
10049 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
10051 * combine.c (subst): Use simplify_subreg_regno rather than
10052 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
10054 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
10056 * rtl.h (subreg_info): Expand commentary
10057 * rtlanal.c (subreg_get_info): Likewise.
10059 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
10061 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
10062 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
10063 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
10065 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
10067 * config/arm/arm.c: #include "tm-constrs.h"
10068 (thumb1_size_rtx_costs): Adjust rtx costs.
10070 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
10072 * configure.ac (target_header_dir): Move block defining
10073 this to before the block setting inhibit_libc.
10074 (inhibit_libc): When considering $with_headers, just
10075 check it it's explicitly "no". If not, also check if
10076 $target_header_dir/stdio.h is present. If not, set
10078 * configure: Regenerate.
10080 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
10082 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
10084 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10086 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
10087 insn for divides by integer powers of two.
10088 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
10089 (mod<mode>3): Fix formatting.
10090 (three anonymous define_insn and two define_split): Delete.
10092 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10094 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
10095 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
10096 (floatdisf2_internal2): Ditto.
10097 (ashrdi3_no_power): Ditto. Fix formatting.
10099 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10101 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
10102 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
10105 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10107 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
10108 constant, use addsi3 directly.
10109 (three anonymous define_insn, two define_split): Delete.
10110 (sub<mode>3): Move. Do not allow constant second operand.
10111 Generate different insn for constant first operand.
10112 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
10113 (subf<mode>3_imm): New.
10114 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
10115 (*plus_ltu<mode>): Only handle registers.
10116 (*plus_ltu<mode>_1): New. Handle integer third operand.
10117 (*plus_gtu<mode>): Only handle registers.
10118 (*plus_gtu<mode>_1): New. Handle integer third operand.
10120 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10122 * config/rs6000/rs6000.md (iorxor): New code_iterator.
10123 (iorxor): New code_attr.
10124 (IORXOR): New code_attr.
10125 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
10126 (ior<mode>3, xor<mode>3): Delete.
10127 (<iorxor><mode>3): New.
10128 (splitter for "big" integer ior, xor): New.
10129 (*bool<mode>3): Move. Also handle AND.
10130 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
10131 (splitter for "big" integer ior, xor): Delete.
10133 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10135 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
10136 (two anonymous define_insn and two define_split): Delete.
10137 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
10139 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10141 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
10142 (two anonymous define_insn and two define_split): Delete.
10143 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
10145 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10147 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
10149 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
10151 * config/rs6000/predicates.md (ca_operand): Allow subregs.
10152 (input_operand): Do not allow ca_operand.
10153 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
10154 carry bit, allow SImode and Pmode.
10155 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
10157 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
10159 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
10160 clobbered registers using clobber_reg. Remove UNSPEC decoration.
10161 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
10162 (*call_rex64_ms_sysv): Remove.
10163 (*call_value_rex64_ms_sysv): Ditto.
10164 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
10166 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
10168 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
10169 operand 3 to "CnL".
10171 2014-09-20 Andreas Schwab <schwab@suse.de>
10173 * config/ia64/ia64.md: Remove constraints from define_split
10176 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
10178 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10179 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10180 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10181 (get_dynamic_type): Remove.
10182 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10183 (clear_speculation): Bring to ipa-deivrt.h
10184 (get_class_context): Rename to ...
10185 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10186 (contains_type_p): Update.
10187 (get_dynamic_type): Rename to ...
10188 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10189 (possible_polymorphic_call_targets): UPdate.
10190 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10191 * ipa-prop.c (ipa_analyze_call_uses): Update.
10193 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
10195 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
10196 privatize dynamic TLS variables.
10198 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
10200 * diagnostic.c (warning_n): New function.
10201 * diagnostic-core.h (warning_n): Declare.
10202 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
10203 output dynamic counts when available.
10205 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
10207 PR tree-optimization/63255
10208 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
10209 issue in setting body_removed flag.
10211 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
10214 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
10215 that visibility change is possible
10216 (handle_weakref_attribute): Likewise.
10217 * cgraph.h (symtab_node): Add method get_create and
10218 field refuse_visibility_changes.
10219 (symtab_node::get_create): New method.
10220 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
10221 * varasm.c (mark_weak): Verify that visibility change is
10224 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
10226 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
10227 for base_reg_operand to be common between LO_SUM and PLUS.
10228 (fusion_gpr_mem_combo): New predicate to match a fused address
10229 that combines the addis and memory offset address.
10231 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
10233 (emit_fusion_gpr_load): Likewise.
10235 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
10236 signature to pass each argument separately, rather than
10237 using an operands array. Rewrite the insns found by peephole2 to
10238 be a single insn, rather than hoping the insns will still be
10239 together when the peephole pass is done. Drop being called via a
10241 (emit_fusion_gpr_load): Change calling signature to be called from
10242 the fusion_gpr_load_<mode> insns with a combined memory address
10243 instead of the peephole pass passing the addis and offset
10246 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
10248 (power8 fusion peephole): Drop support for doing power8 via a
10249 normal peephole that was created by the peephole2 pass.
10250 (power8 fusion peephole2): Create a new insn with the fused
10251 address, so that the fused operation is kept together after
10252 register allocation is done.
10253 (fusion_gpr_load_<mode>): Likewise.
10255 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
10258 * tree.c (need_assembler_name_p): Do not mangle variadic types.
10260 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
10262 * recog.c (scratch_operand): Do not simply allow all hard registers:
10263 only allow those that are allocatable.
10265 2014-09-19 Felix Yang <felix.yang@huawei.com>
10267 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
10268 comments and fix spacing to conform to coding style.
10270 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
10272 * genrecog.c (validate_pattern): Allow empty constraints in
10275 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
10277 * dwarf2out.c (decl_ultimate_origin): Update comment.
10278 * tree.c (block_ultimate_origin): Same.
10280 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10282 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
10283 Update GCC version name to GCC 5.
10284 (rs6000_function_arg_boundary): Likewise.
10285 (rs6000_function_arg): Likewise.
10287 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
10289 * config/sh/sh.md: Fix use of constraints in define_split.
10291 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
10294 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
10296 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
10298 * doc/md.texi (Modifiers): Consistently use "read/write"
10299 nomenclature rather than "input/output".
10300 * genrecog.c (constraints_supported_in_insn_p): New.
10301 (validate_pattern): If needed, also check constraints on
10302 MATCH_SCRATCH operands.
10303 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
10304 operands with no '=' or '+' modifier.
10306 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
10308 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
10309 scratch register as written.
10311 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10313 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
10316 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10318 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
10321 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10324 * config/s390/s390.c (s390_emit_epilogue): When doing the return
10325 address load optimization force s390_optimize_prologue to leave it
10326 that way. Only do the optimization if we already decided to push
10327 r14 into a stack slot.
10329 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
10331 * asan.c (build_check_stmt): Alignment arg was added.
10332 (asan_expand_check_ifn): Optimization for alignment >= 8.
10334 2014-09-19 Olivier Hainque <hainque@adacore.com>
10336 * config/i386/vxworksae.h: Remove obsolete definitions.
10337 (STACK_CHECK_PROTECT): Define.
10338 * config/i386/vx-common.h: Remove. Merge contents within
10339 config/i386/vxworks.h.
10340 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
10343 2014-09-19 Olivier Hainque <hainque@adacore.com>
10345 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
10346 * config/rs6000/t-vxworksmils: New file.
10347 * config/rs6000/vxworksmils.h: New file.
10349 2014-09-19 Olivier Hainque <hainque@adacore.com>
10351 * varasm.c (default_section_type_flags): Flag .persistent.bss
10352 sections as SECTION_BSS.
10354 2014-09-19 Nick Clifton <nickc@redhat.com>
10356 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
10357 pop'ed registers so that DCE does not eliminate them.
10359 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
10362 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
10364 2014-09-18 Joseph Myers <joseph@codesourcery.com>
10366 * system.h (LIBGCC2_TF_CEXT): Poison.
10367 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
10368 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
10369 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
10370 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
10371 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
10372 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
10373 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
10374 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
10375 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
10377 2014-09-19 Kito Cheng <kito@0xlab.org>
10379 * except.h: Fix header guard.
10380 * addresses.h: Add missing header guard.
10381 * cfghooks.h: Likewise.
10382 * collect-utils.h: Likewise.
10383 * collect2-aix.h: Likewise.
10384 * conditions.h: Likewise.
10385 * cselib.h: Likewise.
10386 * dwarf2asm.h: Likewise.
10387 * graphds.h: Likewise.
10388 * graphite-scop-detection.h: Likewise.
10389 * gsyms.h: Likewise.
10390 * hw-doloop.h: Likewise.
10391 * incpath.h: Likewise.
10392 * ipa-inline.h: Likewise.
10393 * ipa-ref.h: Likewise.
10394 * ira-int.h: Likewise.
10396 * lra-int.h: Likewise.
10398 * lto-section-names.h: Likewise.
10399 * read-md.h: Likewise.
10400 * reload.h: Likewise.
10401 * rtl-error.h: Likewise.
10402 * sdbout.h: Likewise.
10403 * targhooks.h: Likewise.
10404 * tree-affine.h: Likewise.
10405 * xcoff.h: Likewise.
10406 * xcoffout.h: Likewise.
10408 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
10411 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
10414 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
10417 * lra.c (lra): Call recog_init.
10419 2014-09-18 Jakub Jelinek <jakub@redhat.com>
10422 * asan.c (transform_statements): Don't instrument clobber statements.
10424 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10426 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
10427 to neon_load1_1reg<q>.
10429 2014-09-17 Jakub Jelinek <jakub@redhat.com>
10432 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
10433 if there are only debug stmts after the noreturn call, instead
10434 remove the debug stmts.
10436 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
10438 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
10439 (odr_types_equivalent_p): Use pair hash.
10440 (odr_subtypes_equivalent_p): Likewise, do structural compare
10441 on ODR types that may be mismatched.
10442 (warn_odr): Support warning when only one field is given.
10443 (odr_types_equivalent_p): Strenghten comparsions made;
10445 (add_type_duplicate): Update VISITED hash set.
10447 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
10449 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
10450 Enable selection of 'posix' or no thread model.
10452 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
10454 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
10455 when architecture is older than ARMv7.
10457 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
10460 * config/pa/pa.c (pa_function_value): Directly handle aggregates
10461 that fit exactly in a word or double word.
10463 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
10465 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
10466 zmm/k regs support.
10468 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
10469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10470 Anna Tikhonova <anna.tikhonova@intel.com>
10471 Ilya Tocar <ilya.tocar@intel.com>
10472 Andrey Turetskiy <andrey.turetskiy@intel.com>
10473 Ilya Verbin <ilya.verbin@intel.com>
10474 Kirill Yukhin <kirill.yukhin@intel.com>
10475 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10477 * config/i386/i386.c
10478 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
10479 * config/i386/sse.md
10480 (define_mode_iterator VI48F_256): New.
10481 (define_mode_attr extract_type): Ditto.
10482 (define_mode_attr extract_suf): Ditto.
10483 (define_mode_iterator AVX512_VEC): Ditto.
10485 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
10487 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
10489 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
10491 (define_mode_attr extract_type_2): Ditto.
10492 (define_mode_attr extract_suf_2): Ditto.
10493 (define_mode_iterator AVX512_VEC_2): Ditto.
10495 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
10496 AVX512_VEC_2 mode iterator.
10497 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
10498 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
10499 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
10500 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
10501 (define_split for V16FI mode): Ditto.
10502 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
10503 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
10504 (define_split for VI8F_256 mode): Ditto.
10505 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
10506 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
10507 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
10508 (define_split for VI4F_256 mode): Ditto.
10509 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
10510 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
10511 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
10512 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
10513 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
10514 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
10515 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
10516 Update `type' attribute, remove explicit `memory' attribute calculation.
10518 2014-09-16 Kito Cheng <kito@0xlab.org>
10520 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
10521 ira_spilled_reg_stack_slots_num if using lra.
10522 (do_reload): Remove release ira_spilled_reg_stack_slots part.
10523 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
10524 make sure not using lra.
10525 (ira_reuse_stack_slot): Likewise.
10526 (ira_mark_new_stack_slot): Likewise.
10528 2014-09-15 Andi Kleen <ak@linux.intel.com>
10530 * function.c (allocate_struct_function): Force
10531 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
10532 profiling is disabled.
10534 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
10536 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
10537 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
10538 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
10539 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
10540 macro with statically checked member functions.
10541 * rtl.h (rtx_insn::deleted): New method.
10542 (rtx_insn::set_deleted): Likewise.
10543 (rtx_insn::set_undeleted): Likewise.
10544 (INSN_DELETED_P): Remove.
10546 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
10548 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
10549 result of emit_jump_insn_before to a new variable.
10550 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
10551 (mark_jump_label_1): Likewise.
10552 (mark_jump_label_asm): Likewise.
10553 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
10554 * rtl.h (mark_jump_label): Adjust.
10556 2014-09-15 Jakub Jelinek <jakub@redhat.com>
10558 * Makefile.in (dg_target_exps): Remove.
10559 (check_gcc_parallelize): Change to just an upper bound number.
10560 (check-%-subtargets): Always print the non-parallelized goals.
10561 (check_p_vars, check_p_comma, check_p_subwork): Remove.
10562 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
10563 check_p_numbers3, check_p_numbers4, check_p_numbers5,
10564 check_p_numbers6): New variables.
10565 (check_p_numbers): Set to sequence from 1 to 9999.
10566 (check_p_subdirs): Set to sequence from 1 to minimum of
10567 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
10569 (check-%, check-parallel-%): Rewritten so that for parallelized
10570 testing each job runs all the *.exp files, with
10571 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
10573 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10575 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
10577 (arc_sets_cc_p): Likewise.
10578 * config/arc/arc.c (arc_print_operand): Use methods of
10579 "final_sequence" for clarity, and to enable strengthening of
10580 locals "jump" and "delay" from rtx to rtx_insn *.
10581 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
10582 rtx_insn *; use method of rtx_sequence for typesafety.
10583 (arc_get_insn_variants): Use insn method of rtx_sequence for
10585 (arc_pad_return): Likewise.
10586 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
10587 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
10588 dyn_cast to rtx_sequence *, using insn method for typesafety.
10589 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
10590 rtx_sequence * and use insn method when invoking get_attr_length.
10591 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
10592 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
10593 rtx_sequence *, introducing a local "seq", using its insn method
10594 from typesafety and clarity.
10595 (add_sched_insns_for_speculation): Strengthen local "next" from
10597 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
10598 (predicate_insn): Likewise.
10599 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
10601 * config/cris/cris.c (cris_notice_update_cc): Likewise.
10602 * config/epiphany/epiphany-protos.h
10603 (extern void epiphany_insert_mode_switch_use): Likewise for param
10605 (get_attr_sched_use_fpu): Likewise for param.
10606 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
10607 Likewise for param "insn".
10608 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
10609 param "insn" of "target_insert_mode_switch_use" callback.
10610 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
10611 (frv_issues_to_branch_unit_p): Likewise.
10612 (frv_pack_insn_p): Likewise.
10613 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
10614 const rtx * (i.e. mutable rtx_def * const *) to
10615 rtx_insn * const *.
10616 * config/i386/i386-protos.h (standard_sse_constant_opcode):
10617 Strengthen first param from rtx to rtx_insn *.
10618 (output_fix_trunc): Likewise.
10619 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
10620 (output_fix_trunc): Likewise.
10621 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
10623 (min_insn_size): Likewise for param "insn".
10624 (get_mem_group): Likewise.
10625 (is_cmp): Likewise.
10626 (get_insn_path): Likewise.
10627 (get_insn_group): Likewise.
10628 (count_num_restricted): Likewise.
10629 (fits_dispatch_window): Likewise.
10630 (add_insn_window): Likewise.
10631 (add_to_dispatch_window): Likewise.
10632 (debug_insn_dispatch_info_file): Likewise.
10633 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
10635 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
10636 "cmp" and local "prev".
10637 (m32c_output_compare): Likewise for param "insn".
10638 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
10639 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
10640 (define_predicate "large_insn_p"): Likewise.
10641 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
10642 param from rtx to rtx_insn *.
10643 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
10644 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
10645 (m68k_sched_attr_size): Likewise.
10646 (sched_get_opxy_mem_type): Likewise for param "insn".
10647 (m68k_sched_attr_op_mem): Likewise.
10648 (sched_mem_operand_p): Likewise.
10649 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
10650 * config/mep/mep.c (mep_multi_slot): Likewise.
10651 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
10653 (mips_sync_loop_insns): Likewise.
10654 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
10655 method of "final_sequence" for typesafety.
10656 (mips_process_sync_loop): Strengthen param "insn" from rtx to
10658 (mips_output_sync_loop): Likewise.
10659 (mips_sync_loop_insns): Likewise.
10660 (mips_74k_agen_init): Likewise.
10661 (mips_sched_init): Use NULL rather than NULL_RTX when working with
10663 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
10664 Strengthen param "insn" from rtx to rtx_insn *.
10665 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
10667 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
10669 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
10670 "insn". Use method of rtx_sequence for typesafety.
10671 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
10673 (branch_needs_nop_p): Likewise.
10674 (use_skip_p): Likewise.
10675 (pa_insn_refs_are_delayed): Likewise.
10676 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
10677 for locals "insn", "ninsn".
10678 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
10680 (is_cracked_insn): Likewise.
10681 (is_branch_slot_insn): Likewise.
10682 (is_nonpipeline_insn): Likewise.
10683 (insn_terminates_group_p): Likewise.
10684 (insn_must_be_first_in_group): Likewise.
10685 (insn_must_be_last_in_group): Likewise.
10686 (force_new_group): Likewise for param "next_insn".
10687 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
10689 (s390_sched_score): Likewise.
10690 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
10691 (rtx sfunc_uses_reg): Likewise for sole param.
10692 * config/sh/sh.c (sh_print_operand): Use insn method of
10693 final_sequence for typesafety.
10694 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
10695 Use insn method of final_sequence for typesafety.
10696 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
10697 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
10699 (eligible_for_return_delay): Likewise.
10700 (eligible_for_sibcall_delay): Likewise.
10701 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
10702 (eligible_for_return_delay): Likewise.
10703 (eligible_for_sibcall_delay): Likewise.
10704 * config/stormy16/stormy16-protos.h
10705 (xstormy16_output_cbranch_hi): Likewise for final param.
10706 (xstormy16_output_cbranch_si): Likewise.
10707 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
10708 (xstormy16_output_cbranch_si): Likewise.
10709 * config/v850/v850-protos.h (notice_update_cc): Likewise.
10710 * config/v850/v850.c (notice_update_cc): Likewise.
10712 * final.c (get_attr_length_1): Strengthen param "insn" and param
10713 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
10714 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
10715 (get_attr_min_length): Likewise.
10716 (shorten_branches): Likewise for signature of locals "length_fun"
10717 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
10718 from a checked cast and use its methods for clarity and to enable
10719 strengthening local "inner_insn" from rtx to rtx_insn *.
10720 * genattr.c (gen_attr): When writing out the prototypes of the
10721 various generated "get_attr_" functions, strengthen the params of
10722 the non-const functions from rtx to rtx_insn *.
10723 Similarly, strengthen the params of insn_default_length,
10724 insn_min_length, insn_variable_length_p, insn_current_length.
10725 (main): Similarly, strengthen the param of num_delay_slots,
10726 internal_dfa_insn_code, insn_default_latency, bypass_p,
10727 insn_latency, min_issue_delay, print_reservation,
10728 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
10729 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
10730 to hook_int_rtx_insn_unreachable.
10731 * genattrtab.c (write_attr_get): When writing out the generated
10732 "get_attr_" functions, strengthen the param "insn" from rtx to
10733 rtx_insn *, eliminating a checked cast.
10734 (make_automaton_attrs): When writing out prototypes of
10735 "internal_dfa_insn_code_", "insn_default_latency_" functions
10736 and the "internal_dfa_insn_code" and "insn_default_latency"
10737 callbacks, strengthen their params from rtx to rtx_insn *
10738 * genautomata.c (output_internal_insn_code_evaluation): When
10739 writing out code, add a checked cast from rtx to rtx_insn * when
10740 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
10741 (output_dfa_insn_code_func): Strengthen param of generated
10742 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
10743 (output_trans_func): Likewise for generated function
10744 "state_transition".
10745 (output_internal_insn_latency_func): When writing out generated
10746 function "internal_insn_latency", rename params from "insn" and
10747 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
10748 locals "insn" and "insn2" as rtx_insn * with checked casts once
10749 we've proven that we're not dealing with const0_rtx.
10750 (output_insn_latency_func): Strengthen param of generated
10751 function "insn_latency" from rtx to rtx_insn *.
10752 (output_print_reservation_func): Likewise for generated function
10753 "print_reservation".
10754 (output_insn_has_dfa_reservation_p): Likewise for generated
10755 function "insn_has_dfa_reservation_p".
10756 * hooks.c (hook_int_rtx_unreachable): Rename to...
10757 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
10758 from rtx to rtx_insn *.
10759 * hooks.h (hook_int_rtx_unreachable): Likewise.
10760 (extern int hook_int_rtx_insn_unreachable): Likewise.
10761 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
10762 (get_attr_min_length): Likewise.
10763 * recog.c (get_enabled_alternatives): Likewise.
10764 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
10765 * reorg.c (find_end_label): Introduce local rtx "pat" and
10766 strengthen local "insn" from rtx to rtx_insn *.
10767 (redundant_insn): Use insn method of "seq" rather than element for
10768 typesafety; strengthen local "control" from rtx to rtx_insn *.
10769 * resource.c (mark_referenced_resources): Add checked cast to
10770 rtx_insn * within INSN/JUMP_INSN case.
10771 (mark_set_resources): Likewise.
10772 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
10775 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10777 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
10778 param "label" from rtx to rtx_insn *.
10779 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
10781 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
10782 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
10783 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
10784 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
10785 * final.c (default_label_align_after_barrier_max_skip): Strengthen
10786 param from rtx to rtx_insn *.
10787 (default_loop_align_max_skip): Likewise.
10788 (default_label_align_max_skip): Likewise.
10789 (default_jump_align_max_skip): Likewise.
10790 * target.def (label_align_after_barrier_max_skip): Likewise.
10791 (loop_align_max_skip): Likewise.
10792 (label_align_max_skip): Likewise.
10793 (jump_align_max_skip): Likewise.
10794 * targhooks.h (default_label_align_after_barrier_max_skip):
10796 (default_loop_align_max_skip): Likewise.
10797 (default_label_align_max_skip): Likewise.
10798 (default_jump_align_max_skip): Likewise.
10800 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10802 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
10803 from const_rtx to const rtx_insn *. Update union members from rtx
10805 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
10806 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
10807 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
10808 strengthen both params from const_rtx to const rtx_insn *.
10809 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
10810 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
10811 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
10813 * target.def (can_follow_jump): Strengthen both params from
10814 const_rtx to const rtx_insn *, and update default implementation
10815 from hook_bool_const_rtx_const_rtx_true to
10816 hook_bool_const_rtx_insn_const_rtx_insn_true.
10818 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10820 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
10821 "insn" from rtx to rtx_insn *.
10822 * sched-int.h (deps_start_bb): Likewise for 2nd param.
10824 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10826 Anna Tikhonova <anna.tikhonova@intel.com>
10827 Ilya Tocar <ilya.tocar@intel.com>
10828 Andrey Turetskiy <andrey.turetskiy@intel.com>
10829 Ilya Verbin <ilya.verbin@intel.com>
10830 Kirill Yukhin <kirill.yukhin@intel.com>
10831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10833 * config/i386/sse.md
10834 (define_insn "vcvtph2ps<mask_name>"): Add masking.
10835 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
10836 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
10837 (define_expand "vcvtps2ph_mask"): New.
10838 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
10839 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
10840 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
10842 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10844 Anna Tikhonova <anna.tikhonova@intel.com>
10845 Ilya Tocar <ilya.tocar@intel.com>
10846 Andrey Turetskiy <andrey.turetskiy@intel.com>
10847 Ilya Verbin <ilya.verbin@intel.com>
10848 Kirill Yukhin <kirill.yukhin@intel.com>
10849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10851 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
10853 (define_mode_iterator VI24_AVX512BW_1): Ditto.
10854 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
10855 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
10856 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
10857 also for TARGET_AVX512VL.
10858 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
10860 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
10862 * doc/install.texi (Options specification): add
10863 --disable-libsanitizer item.
10865 2014-09-14 James Clarke <jrtc27@jrtc27.com>
10866 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10869 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
10871 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
10872 kernel version check to avoid incrementing it after every major OS X
10874 (darwin_default_min_version): Avoid static memory buffer.
10876 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
10878 * tree.c (need_assembler_name_p): Store C++ type mangling only
10881 2014-09-13 Marek Polacek <polacek@redhat.com>
10883 * tree.c (protected_set_expr_location): Don't check whether T is
10886 2014-09-12 DJ Delorie <dj@redhat.com>
10888 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
10889 (extend_and_shift1_hipsi2): Likewise.
10890 (extend_and_shift2_hipsi2): Likewise.
10892 2014-09-12 David Malcolm <dmalcolm@redhat.com>
10894 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
10895 with NULL when dealing with an insn.
10896 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
10897 from rtx to rtx_insn *.
10898 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
10899 const_rtx to const rtx_insn *.
10900 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
10902 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
10904 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
10907 2014-09-12 Joseph Myers <joseph@codesourcery.com>
10909 * target.def (libgcc_floating_mode_supported_p): New hook.
10910 * targhooks.c (default_libgcc_floating_mode_supported_p): New
10912 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
10913 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
10914 (LIBGCC2_HAS_TF_MODE): Remove.
10915 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
10916 * doc/tm.texi: Regenerate.
10917 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
10919 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
10920 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
10921 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
10922 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
10923 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10924 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
10925 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
10926 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
10927 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
10928 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
10930 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
10931 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10932 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10933 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10934 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10935 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10936 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10937 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
10938 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
10939 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
10940 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10941 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
10942 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
10943 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
10945 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
10947 (ia64_libgcc_floating_mode_supported_p): New function.
10948 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
10949 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10950 (IA64_NO_LIBGCC_TFMODE): Define.
10951 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
10952 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
10954 (pdp11_scalar_mode_supported_p): New function.
10955 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
10956 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
10958 2014-09-12 Richard Biener <rguenther@suse.de>
10960 PR middle-end/63237
10961 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
10963 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
10965 * tree.c (integer_each_onep): New function.
10966 * tree.h (integer_each_onep): Declare it.
10967 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
10968 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
10969 (X & 1) == 0 for vector and complex.
10971 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10973 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
10975 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
10976 cost to spilling from integer to FP registers.
10978 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10980 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
10982 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
10983 are now handled correctly.
10985 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10987 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
10988 handling of CALLER_SAVE_REGS and POINTER_REGS.
10990 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10992 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
10993 the number of hard registers.
10995 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10997 Anna Tikhonova <anna.tikhonova@intel.com>
10998 Ilya Tocar <ilya.tocar@intel.com>
10999 Andrey Turetskiy <andrey.turetskiy@intel.com>
11000 Ilya Verbin <ilya.verbin@intel.com>
11001 Kirill Yukhin <kirill.yukhin@intel.com>
11002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11004 * config/i386/sse.md
11005 (define_mode_iterator VI48_AVX512VL): New.
11006 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
11007 "avx512f_vternlog<mode>_maskz" and update mode iterator.
11008 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
11009 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
11010 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
11011 "avx512f_vternlog<mode>_mask" and update mode iterator.
11012 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
11013 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
11015 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
11016 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
11017 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
11018 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
11019 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
11020 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
11022 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
11023 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11024 Anna Tikhonova <anna.tikhonova@intel.com>
11025 Ilya Tocar <ilya.tocar@intel.com>
11026 Andrey Turetskiy <andrey.turetskiy@intel.com>
11027 Ilya Verbin <ilya.verbin@intel.com>
11028 Kirill Yukhin <kirill.yukhin@intel.com>
11029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11031 * config/i386/sse.md (VI128_256): Delete.
11032 (define_mode_iterator VI124_256): New.
11033 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
11034 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
11035 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
11036 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
11037 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
11038 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
11039 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
11040 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
11042 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
11043 in presence of AVX-512.
11045 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
11046 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11047 Anna Tikhonova <anna.tikhonova@intel.com>
11048 Ilya Tocar <ilya.tocar@intel.com>
11049 Andrey Turetskiy <andrey.turetskiy@intel.com>
11050 Ilya Verbin <ilya.verbin@intel.com>
11051 Kirill Yukhin <kirill.yukhin@intel.com>
11052 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11054 * config/i386/sse.md
11055 (define_expand "<avx512>_gathersi<mode>"): Rename from
11056 "avx512f_gathersi<mode>".
11057 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
11058 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
11059 (define_expand "<avx512>_gatherdi<mode>"): Rename from
11060 "avx512f_gatherdi<mode>".
11061 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
11062 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
11064 (define_expand "<avx512>_scattersi<mode>"): Rename from
11065 "avx512f_scattersi<mode>".
11066 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
11067 (define_expand "<avx512>_scatterdi<mode>"): Rename from
11068 "avx512f_scatterdi<mode>".
11069 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
11071 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
11073 * ira.h (ira_finish_once): Delete.
11074 * ira-int.h (target_ira_int::~target_ira_int): Declare.
11075 (target_ira_int::free_ira_costs): Likewise.
11076 (target_ira_int::free_register_move_costs): Likewise.
11077 (ira_finish_costs_once): Delete.
11078 * ira.c (free_register_move_costs): Replace with...
11079 (target_ira_int::free_register_move_costs): ...this new function.
11080 (target_ira_int::~target_ira_int): Define.
11081 (ira_init): Call free_register_move_costs as a member function rather
11082 than a global function.
11083 (ira_finish_once): Delete.
11084 * ira-costs.c (free_ira_costs): Replace with...
11085 (target_ira_int::free_ira_costs): ...this new function.
11086 (ira_init_costs): Call free_ira_costs as a member function rather
11087 than a global function.
11088 (ira_finish_costs_once): Delete.
11089 * target-globals.c (target_globals::~target_globals): Call the
11090 target_ira_int destructor.
11091 * toplev.c: Include lra.h.
11092 (finalize): Call lra_finish_once rather than ira_finish_once.
11094 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
11096 * common.opt (flto-odr-type-merging): New flag.
11097 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
11098 (types_same_for_odr): Likewise.
11099 (odr_subtypes_equivalent_p): Likewise.
11100 (add_type_duplicate): Do not walk type variants.
11101 (register_odr_type): New function.
11102 * ipa-utils.h (register_odr_type): Declare.
11103 (odr_type_p): New function.
11104 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
11106 * doc/invoke.texi (-flto-odr-type-merging): Document.
11107 * tree.c (need_assembler_name_p): Compute ODR names when asked
11109 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
11111 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
11114 * config/i386/i386.c (ix86_option_override_internal): Also turn
11115 off OPTION_MASK_ABI_X32 for -m16.
11117 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
11119 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
11122 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
11125 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11126 Directly forward to __*_DENORM_MIN__.
11128 2014-09-11 David Malcolm <dmalcolm@redhat.com>
11130 * rtl.h (LABEL_REF_LABEL): New macro.
11132 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
11133 of XEXP (, 0), where we know that we have a LABEL_REF.
11134 * cfgbuild.c (make_edges): Likewise.
11135 (purge_dead_tablejump_edges): Likewise.
11136 * cfgexpand.c (convert_debug_memory_address): Likewise.
11137 * cfgrtl.c (patch_jump_insn): Likewise.
11138 * combine.c (distribute_notes): Likewise.
11139 * cse.c (hash_rtx_cb): Likewise.
11140 (exp_equiv_p): Likewise.
11141 (fold_rtx): Likewise.
11142 (check_for_label_ref): Likewise.
11143 * cselib.c (rtx_equal_for_cselib_1): Likewise.
11144 (cselib_hash_rtx): Likewise.
11145 * emit-rtl.c (mark_label_nuses): Likewise.
11146 * explow.c (convert_memory_address_addr_space): Likewise.
11147 * final.c (output_asm_label): Likewise.
11148 (output_addr_const): Likewise.
11149 * gcse.c (add_label_notes): Likewise.
11150 * genconfig.c (walk_insn_part): Likewise.
11151 * genrecog.c (validate_pattern): Likewise.
11152 * ifcvt.c (cond_exec_get_condition): Likewise.
11153 (noce_emit_store_flag): Likewise.
11154 (noce_get_alt_condition): Likewise.
11155 (noce_get_condition): Likewise.
11156 * jump.c (maybe_propagate_label_ref): Likewise.
11157 (mark_jump_label_1): Likewise.
11158 (redirect_exp_1): Likewise.
11159 (rtx_renumbered_equal_p): Likewise.
11160 * lra-constraints.c (operands_match_p): Likewise.
11161 * reload.c (operands_match_p): Likewise.
11162 (find_reloads): Likewise.
11163 * reload1.c (set_label_offsets): Likewise.
11164 * reorg.c (get_branch_condition): Likewise.
11165 * rtl.c (rtx_equal_p_cb): Likewise.
11166 (rtx_equal_p): Likewise.
11167 * rtlanal.c (reg_mentioned_p): Likewise.
11168 (rtx_referenced_p): Likewise.
11169 (get_condition): Likewise.
11170 * sched-vis.c (print_value): Likewise.
11171 * varasm.c (const_hash_1): Likewise.
11172 (compare_constant): Likewise.
11173 (const_rtx_hash_1): Likewise.
11174 (output_constant_pool_1): Likewise.
11176 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
11178 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
11179 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
11181 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
11182 cr6_test_for_lt_reverse): Ditto.
11184 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
11187 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
11189 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
11191 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
11192 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
11193 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
11194 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
11197 (aarch64_fold_builtin): Remove all reinterpret cases.
11199 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
11201 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
11203 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
11204 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
11205 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
11206 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
11207 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
11208 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
11209 aarch64_reinterpretv2df<mode>): Delete.
11211 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
11213 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
11214 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
11215 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
11216 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
11217 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
11218 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
11219 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
11220 vreinterpret_u32_f64): Use cast.
11222 * config/aarch64/iterators.md (VD_RE): Delete.
11224 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
11226 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
11227 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
11228 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
11229 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
11230 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
11231 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
11232 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
11233 Replace inline assembler with __aarch64_vset_lane_any.
11235 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
11237 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
11239 (vmull_high_lane_s32): Likewise.
11240 (vmull_high_lane_u16): Likewise.
11241 (vmull_high_lane_u32): Likewise.
11243 2014-09-11 Jason Merrill <jason@redhat.com>
11246 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
11248 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
11251 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
11252 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
11253 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
11255 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11256 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11257 Anna Tikhonova <anna.tikhonova@intel.com>
11258 Ilya Tocar <ilya.tocar@intel.com>
11259 Andrey Turetskiy <andrey.turetskiy@intel.com>
11260 Ilya Verbin <ilya.verbin@intel.com>
11261 Kirill Yukhin <kirill.yukhin@intel.com>
11262 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11264 * config/i386/sse.md
11265 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
11266 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
11267 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
11269 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
11270 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
11272 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
11274 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
11275 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
11276 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
11277 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
11278 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
11279 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
11280 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
11281 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
11283 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
11285 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
11286 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
11287 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
11289 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
11291 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
11292 to access removed nodes.
11294 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
11296 PR tree-optimization/63186
11297 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
11298 (mark_nonssa_use): Likewise.
11299 (verify_non_ssa_vars): Verify all header blocks for label
11302 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11304 Anna Tikhonova <anna.tikhonova@intel.com>
11305 Ilya Tocar <ilya.tocar@intel.com>
11306 Andrey Turetskiy <andrey.turetskiy@intel.com>
11307 Ilya Verbin <ilya.verbin@intel.com>
11308 Kirill Yukhin <kirill.yukhin@intel.com>
11309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11311 * config/i386/sse.md
11312 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
11313 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
11314 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
11315 "<avx2_avx512f>_permvar<mode><mask_name>".
11316 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
11317 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
11318 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
11319 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
11321 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
11322 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
11323 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
11324 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
11326 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
11328 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
11329 V2DF, V4SF, DF, and DI modes.
11330 (vsx_fmav2df2): Likewise.
11331 (vsx_float_fix_<mode>2): Likewise.
11332 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
11334 2014-09-10 Xinliang David Li <davidxl@google.com>
11337 * config/arm/arm.md (movcond_addsi): Handle case where source
11338 and target operands are the same.
11340 2014-09-10 David Malcolm <dmalcolm@redhat.com>
11342 * final.c (this_is_asm_operands): Strengthen this variable from
11343 rtx to const rtx_insn *.
11344 * output.h (this_is_asm_operands): Likewise.
11345 * rtl-error.c (location_for_asm): Strengthen param "insn" from
11346 const_rtx to const rtx_insn *.
11347 (diagnostic_for_asm): Likewise.
11348 * rtl-error.h (error_for_asm): Likewise.
11349 (warning_for_asm): Likewise.
11351 2014-09-10 David Malcolm <dmalcolm@redhat.com>
11353 * genextract.c (print_header): When writing out insn_extract to
11354 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
11355 * recog.h (insn_extract): Strengthen the param from rtx to
11358 2014-09-10 Mike Stump <mikestump@comcast.net>
11360 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
11363 2014-09-10 Martin Jambor <mjambor@suse.cz>
11365 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
11366 (analyze): Do not set analyze flag if expand_thunk returns false;.
11367 (create_wrapper): Likewise.
11368 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
11370 2014-09-10 Martin Jambor <mjambor@suse.cz>
11373 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
11374 new decl properly. Analyze the new thunk if it is expanded.
11376 2014-09-10 Andreas Schwab <schwab@suse.de>
11378 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
11379 [USED_FOR_TARGET]: Define.
11381 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
11383 * config/mips/mips.c (mips_secondary_reload_class): Handle
11386 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
11388 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
11391 2014-09-10 Jakub Jelinek <jakub@redhat.com>
11393 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
11394 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
11395 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
11396 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
11397 flag_delete_null_pointer_checks for them.
11398 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11399 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
11400 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
11401 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
11402 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
11404 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
11405 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
11406 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
11407 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
11408 * doc/invoke.texi (-fsanitize=nonnull-attribute,
11409 -fsanitize=returns-nonnull-attribute): Document.
11411 * ubsan.h (struct ubsan_mismatch_data): Removed.
11412 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
11413 * ubsan.c (ubsan_source_location): For unknown locations,
11414 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
11415 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
11416 Allow more than one location and arbitrary extra arguments passed
11417 in ... instead of through MISMATCH pointer.
11418 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
11419 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
11420 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
11423 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11425 Anna Tikhonova <anna.tikhonova@intel.com>
11426 Ilya Tocar <ilya.tocar@intel.com>
11427 Andrey Turetskiy <andrey.turetskiy@intel.com>
11428 Ilya Verbin <ilya.verbin@intel.com>
11429 Kirill Yukhin <kirill.yukhin@intel.com>
11430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11432 * config/i386/sse.md
11433 (define_mode_iterator VI48F): New.
11434 (define_insn "<avx512>_compress<mode>_mask"): Rename from
11435 "avx512f_compress<mode>_mask" and update mode iterator.
11436 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
11437 "avx512f_compressstore<mode>_mask" and update mode iterator.
11438 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
11439 "avx512f_expand<mode>_maskz" and update mode iterator.
11440 (define_insn "<avx512>_expand<mode>_mask"): Rename from
11441 "avx512f_expand<mode>_mask" and update mode iterator.
11443 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11445 Anna Tikhonova <anna.tikhonova@intel.com>
11446 Ilya Tocar <ilya.tocar@intel.com>
11447 Andrey Turetskiy <andrey.turetskiy@intel.com>
11448 Ilya Verbin <ilya.verbin@intel.com>
11449 Kirill Yukhin <kirill.yukhin@intel.com>
11450 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11452 * config/i386/i386.c
11453 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
11454 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
11455 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
11456 avx512dq_rangepv4sf_mask.
11457 * config/i386/sse.md
11458 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
11460 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
11461 (define_insn "reduces<mode>"): Ditto.
11462 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11464 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
11465 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
11466 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
11468 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11470 Anna Tikhonova <anna.tikhonova@intel.com>
11471 Ilya Tocar <ilya.tocar@intel.com>
11472 Andrey Turetskiy <andrey.turetskiy@intel.com>
11473 Ilya Verbin <ilya.verbin@intel.com>
11474 Kirill Yukhin <kirill.yukhin@intel.com>
11475 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11477 * config/i386/i386.c
11478 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
11479 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
11480 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
11481 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
11482 avx512vl_getmantv2df_mask.
11483 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
11484 avx512f_vgetmantv4sf_round.
11485 * config/i386/sse.md
11486 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
11487 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
11489 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
11490 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
11491 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
11492 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
11494 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
11495 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
11496 update mode iterator.
11498 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
11499 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
11502 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
11503 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
11504 update mode iterator.
11505 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
11506 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
11509 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
11510 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
11512 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
11513 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
11514 update mode iterator.
11515 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
11516 "avx512f_getmant<mode><round_saeonly_name>".
11518 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
11521 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
11523 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11525 Anna Tikhonova <anna.tikhonova@intel.com>
11526 Ilya Tocar <ilya.tocar@intel.com>
11527 Andrey Turetskiy <andrey.turetskiy@intel.com>
11528 Ilya Verbin <ilya.verbin@intel.com>
11529 Kirill Yukhin <kirill.yukhin@intel.com>
11530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11532 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
11533 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
11534 (define_mode_iterator FMAMODE_AVX512): New.
11535 (define_mode_iterator FMAMODE): Remove conditions.
11536 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
11537 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
11538 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
11540 (define_mode_iterator FMAMODE_NOVF512): Remove.
11541 (define_insn "*fma_fmadd_<mode>"): Rename from
11542 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
11543 FMAMODE mode iterator.
11544 (define_mode_iterator VF_SF_AVX512VL): New.
11545 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
11546 Use VF_SF_AVX512VL mode iterator.
11547 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
11548 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
11550 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
11551 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11553 (define_insn "*fma_fmsub_<mode>"): Rename from
11554 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
11555 FMAMODE mode iterator.
11556 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
11557 Use VF_SF_AVX512VL mode iterator.
11558 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
11559 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
11561 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
11562 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11564 (define_insn "*fma_fnmadd_<mode>"): Rename from
11565 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
11566 use FMAMODE mode iterator.
11567 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
11568 Use VF_SF_AVX512VL mode iterator.
11569 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
11570 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
11572 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
11573 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11575 (define_insn "*fma_fnmsub_<mode>"): Rename from
11576 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
11577 FMAMODE mode iterator.
11578 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
11579 Use VF_SF_AVX512VL mode iterator.
11580 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
11581 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
11583 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
11584 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11586 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
11587 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
11588 use VF_AVX512VL mode iterator.
11589 (define_insn "*fma_fmaddsub_<mode>"): Rename from
11590 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
11591 remove subst usage.
11592 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
11593 Use VF_SF_AVX512VL mode iterator.
11594 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
11595 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
11597 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
11598 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11600 (define_insn "*fma_fmsubadd_<mode>"): Rename from
11601 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
11602 remove usage of subst.
11603 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
11604 Use VF_SF_AVX512VL mode iterator.
11605 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
11606 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
11608 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
11609 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11612 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
11615 * calls.c (precompute_arguments): Check
11616 promoted_for_signed_and_unsigned_p and set the promoted mode.
11617 (promoted_for_signed_and_unsigned_p): New function.
11618 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11619 and set the promoted mode.
11620 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11621 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11622 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11624 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11626 * opth-gen.awk: Generate mapping from cpp message reasons to the
11627 options that enable them.
11628 * doc/options.texi (CppReason): Document.
11630 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11632 * doc/invoke.texi (Wnormalized=): Update.
11634 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
11637 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
11638 operands. Split off the constant operand alternative to ...
11639 (*bool<mode>3_imm): New.
11641 2014-09-09 David Malcolm <dmalcolm@redhat.com>
11643 * rtl.h (single_set_2): Strengthen first param from const_rtx to
11644 const rtx_insn *, and move prototype to above...
11645 (single_set): ...this. Convert this from a macro to an inline
11646 function, enforcing the requirement that the param is a const
11648 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
11650 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
11651 Strengthen both params from rtx to rtx_insn *.
11652 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
11653 Likewise; introduce locals "producer_set", "consumer_set", using
11654 them in place of "producer" and "consumer" when dealing with SET
11656 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
11657 when invoking single_set in region guarded by INSN_P.
11658 (avr_out_bitop): Likewise.
11659 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
11660 region guarded by GET_CODE check, using methods to strengthen
11661 local "this_insn" from rtx to rtx_insn *, and for clarity.
11662 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
11663 Strengthen local "insn" from rtx to rtx_insn *.
11664 (define_insn_and_split "xload<mode>_A"): Likewise.
11665 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
11667 (find_load): Likewise for return type.
11668 (workaround_speculation): Likewise for both locals named
11670 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
11672 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
11674 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
11676 * config/h8300/h8300.c (notice_update_cc): Likewise.
11677 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
11678 "insn" and "dep_insn".
11679 (exact_store_load_dependency): Likewise for both params.
11680 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
11681 since this now clashes with inline function. Instead, delay
11682 calling single_set until the point where its needed, and then
11683 assign the result to "compare_set" and rework the conditional that
11685 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
11686 local "last" from rtx to rtx_insn *.
11687 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
11689 (mips_store_data_bypass_p): Likewise for both params.
11690 * config/mips/mips.c (mips_load_store_insns): Likewise for second
11692 (mips_store_data_bypass_p): Likewise for both params.
11693 (mips_orphaned_high_part_p): Likewise for param "insn".
11694 * config/mn10300/mn10300.c (extract_bundle): Likewise.
11695 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
11696 Introduce local rtx "insn2_pat".
11697 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
11699 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
11700 Introduce local rtx "set", using it in place of "insn" for the
11701 result of single_set. This appears to fix a bug, since the call
11702 to find_regno_note on a SET does nothing.
11703 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
11704 params from rtx to rtx_insn *.
11705 (set_to_load_agen): Likewise.
11706 * config/s390/s390.c (s390_label_align): Likewise for local
11707 "prev_insn". Introduce new rtx locals "set" and "src", using
11708 them in place of "prev_insn" for the results of single_set
11709 and SET_SRC respectively.
11710 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
11711 Introduce new rtx local "set" using in place of "jump" for the
11712 result of single_set. Use SET_SRC (set) rather than plain
11714 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
11716 (noncall_uses_reg): Likewise.
11717 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
11718 guarded by GET_CODE check, using its methods for clarity, and to
11719 enable strengthening local "this_insn" from rtx to rtx_insn *.
11720 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
11721 "insn" from rtx to rtx_insn *.
11722 (define_expand "umulhisi3"): Likewise.
11723 (define_expand "smulsi3_highpart"): Likewise.
11724 (define_expand "umulsi3_highpart"): Likewise.
11725 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
11726 local "after". Replace GET_CODE check with a dyn_cast,
11727 introducing new local rtx_sequence * "seq", using insn method for
11730 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
11731 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
11732 place of "insn" once we're dealing with patterns rather than the
11734 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
11735 (scan_trace): Likewise for local "elt", updating lookups within
11736 sequence to use insn method rather than element method.
11737 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
11739 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
11740 * ifcvt.c (noce_try_abs): Likewise for local "insn".
11741 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
11742 invoking single_set.
11743 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
11744 "insn" from rtx to rtx_insn *.
11745 (skip_usage_debug_insns): Likewise for return type, adding a
11747 (check_secondary_memory_needed_p): Likewise for local "insn".
11748 (inherit_reload_reg): Likewise.
11749 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
11750 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
11752 (store_data_bypass_p): Likewise for both params.
11753 (if_test_bypass_p): Likewise.
11754 * recog.h (store_data_bypass_p): Likewise for both params.
11755 (if_test_bypass_p): Likewise.
11756 * reload.c (find_equiv_reg): Likewise for local "where".
11757 * reorg.c (delete_jump): Likewise for param "insn".
11758 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
11759 to const rtx_insn *.
11760 * store-motion.c (replace_store_insn): Likewise for param "del".
11761 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
11762 and use its methods for clarity, and to strengthen local "del"
11763 from rtx to rtx_insn *.
11764 (build_store_vectors): Use insn method of "st" when calling
11765 replace_store_insn for typesafety and clarity.
11767 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11769 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
11770 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
11771 on how to make it legal in future.
11773 2014-09-09 David Malcolm <dmalcolm@redhat.com>
11775 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
11777 (restinsn): Likewise.
11778 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
11779 Likewise for param.
11780 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
11782 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
11784 (arc_hazard): Likewise for both params.
11785 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
11786 checked casts to rtx_sequence * and uses of the insn method for
11788 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
11789 (arc_adjust_insn_length): Likewise for param "insn".
11790 (struct insn_length_parameters_s): Likewise for first param of
11791 "get_variants" callback field.
11792 (arc_get_insn_variants): Likewise for first param and local
11793 "inner". Replace a check of GET_CODE with a dyn_cast to
11794 rtx_sequence *, using methods for type-safety and clarity.
11795 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
11796 rtx_sequence * and uses of the insn method for type-safety when
11797 invoking arc_adjust_insn_length.
11798 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
11800 (arm_address_offset_is_imm): Likewise.
11801 (struct tune_params): Likewise for params 1 and 3 of the
11802 "sched_adjust_cost" callback field.
11803 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
11804 params 1 and 3 ("insn" and "dep").
11805 (xscale_sched_adjust_cost): Likewise.
11806 (fa726te_sched_adjust_cost): Likewise.
11807 (cortexa7_older_only): Likewise for param "insn".
11808 (cortexa7_younger): Likewise.
11809 (arm_attr_length_move_neon): Likewise.
11810 (arm_address_offset_is_imm): Likewise.
11811 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
11812 * config/avr/avr.c (avr_notice_update_cc): Likewise.
11813 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
11814 (workaround_speculation): Likewise for local "last_condjump".
11815 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
11816 (shadow_or_blockage_p): Likewise.
11817 (get_unit_reqs): Likewise.
11818 (get_unit_operand_masks): Likewise.
11819 (c6x_registers_update): Likewise.
11820 (returning_call_p): Likewise.
11821 (can_use_callp): Likewise.
11822 (convert_to_callp): Likewise.
11823 (find_last_same_clock): Likwise for local "t".
11824 (reorg_split_calls): Likewise for local "shadow".
11825 (hwloop_pattern_reg): Likewise for param "insn".
11826 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
11827 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
11828 (frv_extract_membar): Likewise.
11829 (frv_optimize_membar_local): Strengthen param "last_membar" from
11830 rtx * to rtx_insn **.
11831 (frv_optimize_membar_global): Strengthen param "membar" from rtx
11833 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
11835 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
11836 both params from rtx to rtx_insn *.
11837 (ia64_ld_address_bypass_p): Likewise.
11838 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
11840 (ia64_safe_type): Likewise.
11841 (group_barrier_needed): Likewise.
11842 (safe_group_barrier_needed): Likewise.
11843 (ia64_single_set): Likewise.
11844 (is_load_p): Likewise.
11845 (record_memory_reference): Likewise.
11846 (get_mode_no_for_insn): Likewise.
11847 (important_for_bundling_p): Likewise.
11848 (unknown_for_bundling_p): Likewise.
11849 (ia64_st_address_bypass_p): Likewise for both params.
11850 (ia64_ld_address_bypass_p): Likewise.
11851 (expand_vselect): Introduce new local rtx_insn * "insn", using it
11852 in place of rtx "x" after the emit_insn call.
11853 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
11854 Strengthen param from rtx to rtx_insn *.
11855 (ix86_agi_dependent): Likewise for both params.
11856 (ix86_attr_length_immediate_default): Likewise for param 1.
11857 (ix86_attr_length_address_default): Likewise for param.
11858 (ix86_attr_length_vex_default): Likewise for param 1.
11859 * config/i386/i386.c (ix86_attr_length_immediate_default):
11860 Likewise for param "insn".
11861 (ix86_attr_length_address_default): Likewise.
11862 (ix86_attr_length_vex_default): Likewise.
11863 (ix86_agi_dependent): Likewise for both params.
11864 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
11865 (vselect_insn): Likewise for this variable.
11866 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
11868 (m68k_sched_attr_opy_type): Likewise.
11869 * config/m68k/m68k.c (sched_get_operand): Likewise.
11870 (sched_attr_op_type): Likewise.
11871 (m68k_sched_attr_opx_type): Likewise.
11872 (m68k_sched_attr_opy_type): Likewise.
11873 (sched_get_reg_operand): Likewise.
11874 (sched_get_mem_operand): Likewise.
11875 (m68k_sched_address_bypass_p): Likewise for both params.
11876 (sched_get_indexed_address_scale): Likewise.
11877 (m68k_sched_indexed_address_bypass_p): Likewise.
11878 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
11879 (m68k_sched_indexed_address_bypass_p): Likewise.
11880 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
11881 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
11883 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
11884 params from rtx to rtx_insn *.
11885 (mips_fmadd_bypass): Likewise.
11886 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
11887 (mips_linked_madd_p): Likewise.
11888 (mips_macc_chains_last_hilo): Likewise for this variable.
11889 (mips_macc_chains_record): Likewise for param.
11890 (vr4130_last_insn): Likewise for this variable.
11891 (vr4130_swap_insns_p): Likewise for both params.
11892 (mips_ls2_variable_issue): Likewise for param.
11893 (mips_need_noat_wrapper_p): Likewise for param "insn".
11894 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
11895 in place of "x" after the emit_insn.
11896 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
11897 params from rtx to rtx_insn *.
11898 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
11899 (pa_combine_instructions): Introduce local "par" for result of
11900 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
11902 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
11903 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
11904 (rl78_alloc_physical_registers_op1): Likewise.
11905 (rl78_alloc_physical_registers_op2): Likewise.
11906 (rl78_alloc_physical_registers_ro1): Likewise.
11907 (rl78_alloc_physical_registers_cmp): Likewise.
11908 (rl78_alloc_physical_registers_umul): Likewise.
11909 (rl78_alloc_address_registers_macax): Likewise.
11910 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
11911 * config/s390/predicates.md (execute_operation): Likewise for
11913 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
11915 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
11916 (addr_generation_dependency_p): Likewise for param "insn".
11917 (s390_agen_dep_p): Likewise for both params.
11918 (s390_fpload_toreg): Likewise for param "insn".
11919 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
11920 * config/sh/sh.c (sh_loop_align): Likewise for param and local
11922 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
11923 * config/sh/sh_treg_combine.cc
11924 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
11926 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
11927 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
11928 "and_insn", "load", "shift".
11929 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
11931 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
11932 for XEXP (note, 0) of the REG_CC_SETTER note.
11933 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
11934 rtx_insn *, eliminating a checked cast made redundant by this.
11935 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
11937 * genattr.c (main): When writing out the prototype to
11938 const_num_delay_slots, strengthen the param from rtx to
11940 * genattrtab.c (write_const_num_delay_slots): Likewise when
11941 writing out the implementation of const_num_delay_slots.
11942 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
11943 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
11944 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
11945 favor of new rtx locals "src" and "set" and new local rtx_insn *
11947 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
11949 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
11950 locals "cond", "if_then_else", "set" and new rtx_insn * locals
11952 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
11953 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
11954 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
11955 the top-level scope, replacing with new more tightly-scoped rtx
11956 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
11957 "new_insn", "copy_of_insn_b", and make local rtx "set" more
11959 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
11961 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
11963 (ira_setup_alts): Likewise for param "insn".
11964 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
11965 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
11967 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
11968 new more-tightly scoped rtx locals "add3_insn", "insn",
11969 "add2_insn" and rtx_insn * "move_insn".
11970 * postreload-gcse.c (eliminate_partially_redundant_load): Add
11971 checked cast on result of gen_move_insn when invoking
11973 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
11975 (verify_changes): Add a checked cast on "object" when invoking
11977 (extract_insn_cached): Strengthen param "insn" from rtx to
11979 (extract_constrain_insn_cached): Likewise.
11980 (extract_insn): Likewise.
11981 * recog.h (insn_invalid_p): Likewise for param 1.
11982 (recog_memoized): Likewise for param.
11983 (extract_insn): Likewise.
11984 (extract_constrain_insn_cached): Likewise.
11985 (extract_insn_cached): Likewise.
11986 * reload.c (can_reload_into): Likewise for local "test_insn".
11987 * reload.h (cleanup_subreg_operands): Likewise for param.
11988 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
11989 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
11990 result of emit_insn. Remove a checked cast made redundant by this
11992 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
11994 * sel-sched.c (get_reg_class): Likewise.
11996 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
11997 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11999 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
12000 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
12002 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
12004 2014-09-09 David Malcolm <dmalcolm@redhat.com>
12006 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
12007 const rtx_insn *, and from rtx to rtx_insn * for the other
12008 overloaded variant.
12009 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
12010 INSN_LOCATION, since we know INSN_P holds.
12011 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
12012 (insn_file): Likewise.
12013 (insn_scope): Likewise.
12014 (insn_location): Likewise.
12016 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
12017 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
12018 for the result of gen_load_const_gp.
12019 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
12020 param from rtx to rtx_insn *.
12021 * config/rs6000/rs6000.c (output_call): Likewise.
12022 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
12023 introducing a checked cast to rtx_sequence * and use of the insn
12025 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
12026 from rtx to rtx_insn *.
12027 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
12028 (insn_line): Likewise.
12029 (insn_file): Likewise.
12030 (insn_location): Likewise.
12031 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
12032 from rtx to rtx_insn *.
12033 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
12034 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
12035 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
12036 via a checked cast.
12037 * reorg.c (relax_delay_slots): Strengthen locals named "after"
12038 from rtx to rtx_insn *; use methods of "pat" for type-safety.
12040 2014-09-09 David Malcolm <dmalcolm@redhat.com>
12042 * combine.c (try_combine): Eliminate checked cast on result of
12044 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
12045 autogenerated one by strengthening the return type and params 2 and 3
12046 from rtx to rtx_insn *, and by naming the params.
12047 * gengenrtl.c (special_rtx): Add INSN to those that are
12049 * rtl.h (gen_rtx_INSN): New prototype.
12051 2014-09-09 David Malcolm <dmalcolm@redhat.com>
12053 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
12055 (no_equiv): Likewise.
12056 (update_equiv_regs): Likewise.
12057 (setup_reg_equiv): Likewise. Strengthen locals "elem",
12058 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
12059 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
12061 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
12062 from rtx to rtx_insn_list *.
12063 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
12064 rtx_insn_list * and use methods for clarity and typesafety.
12065 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
12067 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
12068 redundant check on INSN_P (insns): this cannot hold, as "insns" is
12069 an INSN_LIST, not an insn.
12070 (reverse_equiv_p): Strengthen local "insns" from rtx to
12071 rtx_insn_list * and use methods for clarity and typesafety.
12072 (contains_reloaded_insn_p): Likewise for local "list".
12074 2014-09-09 Jiong Wang <jiong.wang@arm.com>
12076 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
12077 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
12078 (arm_builtin_vectorized_function): Likewise.
12079 * config/arm/arm_neon_builtins.def: New macro for copysignf.
12080 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
12082 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
12084 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
12085 * builtins.h (default_target_builtins): Likewise.
12086 * gcse.h (default_target_gcse): Likewise.
12087 * target-globals.h (target_globals): Add a destructor. Convert
12088 void-pointer fields back to their real type and change from
12089 GTY((atomic)) to GTY((skip)).
12090 (restore_target_globals): Remove casts accordingly.
12091 * target-globals.c (save_target_globals): Use XCNEW rather than
12092 ggc_internal_cleared_alloc to allocate non-GC structures.
12093 Use ggc_cleared_alloc to allocate the target_globals structure
12095 (target_globals::~target_globals): Define.
12097 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12099 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
12100 mnemonic instead of fldmfdd.
12101 * config/arm/arm.c (vfp_output_fstmd): Rename to...
12102 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
12103 Output vpush when address register is SP.
12104 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
12105 (vfp_output_vstmd): ... This.
12106 * config/arm/vfp.md (push_multi_vfp): Update call to
12109 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12111 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
12113 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12115 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
12116 (*sqrtdf2_vfp): Likewise.
12117 (*cmpsf_vfp): Likewise.
12118 (*cmpsf_trap_vfp): Likewise.
12119 (*cmpdf_vfp): Likewise.
12120 (*cmpdf_trap_vfp): Likewise.
12122 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12124 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
12125 (*truncdfsf2_vfp): Likewise.
12126 (*truncsisf2_vfp): Likewise.
12127 (*truncsidf2_vfp): Likewise.
12128 (fixuns_truncsfsi2): Likewise.
12129 (fixuns_truncdfsi2): Likewise.
12130 (*floatsisf2_vfp): Likewise.
12131 (*floatsidf2_vfp): Likewise.
12132 (floatunssisf2): Likewise.
12133 (floatunssidf2): Likewise.
12135 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12137 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
12138 (*muldf3_vfp): Likewise.
12139 (*mulsf3negsf_vfp): Likewise.
12140 (*muldf3negdf_vfp): Likewise.
12141 (*mulsf3addsf_vfp): Likewise.
12142 (*muldf3adddf_vfp): Likewise.
12143 (*mulsf3subsf_vfp): Likewise.
12144 (*muldf3subdf_vfp): Likewise.
12145 (*mulsf3negsfaddsf_vfp): Likewise.
12146 (*fmuldf3negdfadddf_vfp): Likewise.
12147 (*mulsf3negsfsubsf_vfp): Likewise.
12148 (*muldf3negdfsubdf_vfp): Likewise.
12150 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12152 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
12153 (*absdf2_vfp): Likewise.
12154 (*negsf2_vfp): Likewise.
12155 (*negdf2_vfp): Likewise.
12156 (*addsf3_vfp): Likewise.
12157 (*adddf3_vfp): Likewise.
12158 (*subsf3_vfp): Likewise.
12159 (*subdf3_vfp): Likewise.
12160 (*divsf3_vfp): Likewise.
12161 (*divdf3_vfp): Likewise.
12163 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12165 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
12167 (arm_print_operand): Don't convert real values to decimal
12168 representation in default case.
12169 (fp_immediate_constant): Delete.
12170 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
12171 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
12173 (*thumb2_movsi_vfp): Likewise.
12174 (*movdi_vfp): Likewise.
12175 (*movdi_vfp_cortexa8): Likewise.
12176 (*movhf_vfp_neon): Likewise.
12177 (*movhf_vfp): Likewise.
12178 (*movsf_vfp): Likewise.
12179 (*thumb2_movsf_vfp): Likewise.
12180 (*movdf_vfp): Likewise.
12181 (*thumb2_movdf_vfp): Likewise.
12182 (*movsfcc_vfp): Likewise.
12183 (*thumb2_movsfcc_vfp): Likewise.
12184 (*movdfcc_vfp): Likewise.
12185 (*thumb2_movdfcc_vfp): Likewise.
12187 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
12189 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
12190 (-mtune): Likewise.
12193 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12196 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
12197 Use qualifier_immediate for last operand. Rename to...
12198 (aarch64_types_ternop_lane_qualifiers): ... This.
12199 (TYPES_QUADOP): Rename to...
12200 (TYPES_TERNOP_LANE): ... This.
12201 (aarch64_simd_expand_args): Return const0_rtx when encountering user
12202 error. Change return of 0 to return of NULL_RTX.
12203 (aarch64_crc32_expand_builtin): Likewise.
12204 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
12205 ICE when expanding unknown builtin.
12206 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
12207 TERNOP_LANE qualifiers.
12208 (sqdmlsl_lane): Likewise.
12209 (sqdmlal_laneq): Likewise.
12210 (sqdmlsl_laneq): Likewise.
12211 (sqdmlal2_lane): Likewise.
12212 (sqdmlsl2_lane): Likewise.
12213 (sqdmlal2_laneq): Likewise.
12214 (sqdmlsl2_laneq): Likewise.
12216 2014-09-09 Nick Clifton <nickc@redhat.com>
12218 * doc/invoke.texi (Optimization Options): Add missing @gol to the
12220 (S/390 and zSeries Options): Remove superfluous word from the
12221 description of the -mhotpatch option.
12223 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12225 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
12226 * ira.c: #include "shrink-wrap.h"
12227 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
12228 * ifcvt.c: #include "shrink-wrap.h"
12229 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
12231 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
12233 * common/config/picochip/picochip-common.c: Remove.
12234 * config.gcc: Remove support for picochip.
12235 * config/picochip/constraints.md: Remove.
12236 * config/picochip/dfa_space.md: Remove.
12237 * config/picochip/dfa_speed.md: Remove.
12238 * config/picochip/picochip-protos.h: Remove.
12239 * config/picochip/picochip.c: Remove.
12240 * config/picochip/picochip.h: Remove.
12241 * config/picochip/picochip.md: Remove.
12242 * config/picochip/picochip.opt: Remove.
12243 * config/picochip/predicates.md: Remove.
12244 * config/picochip/t-picochip: Remove.
12245 * doc/md.texi: Don't document picochi.
12247 2014-09-08 David Malcolm <dmalcolm@redhat.com>
12249 * basic-block.h (control_flow_insn_p): Strengthen param from
12250 const_rtx to const rtx_insn *.
12251 * cfgbuild.c (control_flow_insn_p): Likewise.
12253 2014-09-08 David Malcolm <dmalcolm@redhat.com>
12255 * gcse.c (modify_mem_list): Strengthen this variable from
12256 vec<rtx> * to vec<rtx_insn *> *.
12257 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
12259 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
12260 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
12261 (record_last_mem_set_info): Strengthen param "insn" from rtx to
12263 (record_last_set_info): Likewise for local "last_set_insn".
12265 2014-09-08 DJ Delorie <dj@redhat.com>
12267 * doc/invoke.texi (MSP430 Options): Add -minrt.
12269 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12271 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
12272 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
12273 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
12275 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
12277 (adjust_splat): New function.
12278 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
12279 (dump_swap_insn_table): Add case for SH_SPLAT.
12281 2014-09-08 Richard Biener <rguenther@suse.de>
12284 * tree-inline.c (copy_loops): The source loop header should
12285 always be non-NULL.
12286 (tree_function_versioning): If loops need fixup after removing
12287 unreachable blocks fix them.
12288 * omp-low.c (simd_clone_adjust): Do not add incr block to
12289 loop under construction.
12291 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
12293 * config/aarch64/aarch64-builtins.c
12294 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
12296 2014-09-08 Joseph Myers <joseph@codesourcery.com>
12298 * config/i386/cygming.h (TF_SIZE): Remove.
12299 * config/i386/darwin.h (TF_SIZE): Remove.
12300 * config/i386/dragonfly.h (TF_SIZE): Remove.
12301 * config/i386/freebsd.h (TF_SIZE): Remove.
12302 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
12303 * config/i386/openbsdelf.h (TF_SIZE): Remove.
12304 * config/i386/sol2.h (TF_SIZE): Remove.
12305 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
12306 * config/ia64/linux.h (TF_SIZE): Remove.
12307 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
12308 * doc/tm.texi: Regenerate.
12309 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
12311 2014-09-08 Joseph Myers <joseph@codesourcery.com>
12313 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
12315 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
12317 * doc/tm.texi: Regenerate.
12318 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
12320 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
12321 * config/cris/cris.h (__make_dp): Remove.
12323 2014-09-08 Richard Biener <rguenther@suse.de>
12326 * cfgloop.c (mark_loop_for_removal): Track former header
12328 * cfgloop.h (struct loop): Add former_header member unconditionally.
12329 * loop-init.c (fix_loop_structure): Enable bogus loop removal
12330 diagnostic unconditionally.
12332 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
12335 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
12336 constraint for operand0 and remove write only modifier from operand3.
12338 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
12340 PR rtl-optimization/62208
12341 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
12342 rather than const0_rtx in eq/ne-xor simplifications.
12344 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
12346 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
12347 (arc_output_mi_thunk): Likewise.
12349 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
12350 arguments to silence bogus warning.
12352 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
12354 PR middle-end/63171
12355 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
12357 2014-09-06 Tom de Vries <tom@codesourcery.com>
12359 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
12360 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
12361 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12363 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
12366 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
12367 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
12369 2014-09-05 Easwaran Raman <eraman@google.com>
12371 PR rtl-optimization/62146
12372 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
12373 hoisted instruction unconditional.
12375 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
12378 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
12379 Do not allow any_mask_operand for operands[2].
12380 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
12382 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12384 * config/arc/arc.c (arc_print_operand): Use insn method of
12385 final_sequence for type-safety.
12386 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
12387 "insn" from rtx to rtx_insn *.
12388 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12389 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12390 Likewise for locals "branch", "label".
12391 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
12392 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
12393 (same_cmp_following_p): Likewise for locals "i2", "i3".
12394 * config/sh/sh_optimize_sett_clrt.cc
12395 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
12396 param "cbranch_insn".
12397 * function.c (convert_jumps_to_returns): Likewis for local "jump".
12398 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
12399 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
12401 (condjump_p): Likewise.
12402 (condjump_in_parallel_p): Likewise.
12403 (pc_set): Likewise.
12404 (any_uncondjump_p): Likewise.
12405 (any_condjump_p): Likewise.
12406 (condjump_label): Likewise.
12407 (returnjump_p): Strengthen param "insn" from rtx to
12409 (onlyjump_p): Strengthen param "insn" from const_rtx to
12411 (jump_to_label_p): Likewise.
12412 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
12413 (invert_jump): Likewise.
12414 * reorg.c (simplejump_or_return_p): Add checked cast when calling
12416 (get_jump_flags): Strengthen param "insn" from rtx to
12418 (get_branch_condition): Likewise.
12419 (condition_dominates_p): Likewise.
12420 (make_return_insns): Move declaration of local "pat" earlier, to
12421 after we've handled NONJUMP_INSN_P and non-sequences, using its
12422 methods to simplify the code and for type-safety.
12423 * rtl.h (find_constant_src): Strengthen param from const_rtx to
12425 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
12426 (condjump_p): Strengthen param from const_rtx to
12428 (any_condjump_p): Likewise.
12429 (any_uncondjump_p): Likewise.
12430 (pc_set): Likewise.
12431 (condjump_label): Likewise.
12432 (simplejump_p): Likewise.
12433 (returnjump_p): Likewise.
12434 (onlyjump_p): Likewise.
12435 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
12436 (invert_jump): Likewise.
12437 (condjump_in_parallel_p): Strengthen param from const_rtx to
12439 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
12440 to const rtx_insn *.
12441 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
12442 to const rtx_insn *.
12443 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
12445 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12447 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
12448 above the conditional, and convert the check on GET_CODE to a
12449 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
12450 the conditional. Simplify the conditional by using methods of
12453 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12455 * haifa-sched.c (check_clobbered_conditions): Strengthen local
12456 "link" from rtx to rtx_insn_list *, and use its methods for
12457 clarity and type-safety.
12458 (toggle_cancelled_flags): Likewise.
12459 (restore_last_backtrack_point): Likewise.
12460 (queue_to_ready): Use insn method of "link" in one place.
12461 (schedule_block): Strengthen local "link" from rtx to
12462 rtx_insn_list *, and use its methods for clarity and type-safety.
12464 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12466 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
12467 param "insn" from const_rtx to const rtx_insn *.
12468 (sched_get_reverse_condition_uncached): Likewise.
12469 (sched_get_condition_with_rev): Likewise.
12470 (sched_has_condition_p): Likewise.
12471 (sched_insns_conditions_mutex_p): Likewise for both params.
12472 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
12473 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
12474 (setup_insn_reg_uses): Move local "list" to be more tightly
12475 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
12476 its methods for clarity and type-safety.
12477 (sched_analyze_1): Strengthen local "pending" from rtx to
12478 rtx_insn_list *, and local "pending_mem" from rtx to
12479 rtx_expr_list *. Use methods of each for clarity and type-safety.
12480 (sched_analyze_2): Likewise.
12481 (sched_analyze_insn): Likewise.
12483 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
12484 param from const_rtx to const rtx_insn *.
12485 (sched_insns_conditions_mutex_p): Likewise for both params.
12486 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
12489 * system.h (CONST_CAST_RTX_INSN): New macro.
12491 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12493 * recog.c (peep2_attempt): Strengthen return type from rtx to
12495 (peep2_update_life): Likewise for params "last", "prev", removing
12496 a checked cast made redundant by this.
12497 (peephole2_optimize): Likewise for local "last".
12499 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12501 * basic-block.h (set_block_for_insn): Eliminate this macro in
12503 * rtl.h (set_block_for_insn): New inline function, imposing the
12504 requirement that the "insn" param is an rtx_insn *.
12506 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12508 * caller-save.c (setup_save_areas): Strengthen local "insn" from
12510 * final.c (get_call_reg_set_usage): Likewise for first param,
12511 eliminating a checked cast.
12512 * regs.h (get_call_reg_set_usage): Likewise for first param.
12513 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
12514 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
12515 cast, replacing references to "x" with "call_insn" where
12517 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
12518 rtx_insn *, adding a checked cast.
12520 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12522 * output.h (final_scan_insn): Strengthen first param from rtx to
12525 * final.c (final_scan_insn): Likewise, renaming it back from
12526 "uncast_insn" to "insn", eliminating the checked cast.
12528 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
12529 "vec" with an rtx_sequence * "seq", taking a copy of
12530 "final_sequence", and using methods of "seq" for clarity, and for
12531 type-safety in the calls to final_scan_insn.
12532 * config/mips/mips.c (mips_output_conditional_branch): Use methods
12533 of "final_sequence" for clarity, and for type-safety in the call to
12535 * config/sh/sh.c (print_slot): Strengthen param from rtx to
12536 rtx_sequence * and rename from "insn" to "seq".
12538 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12540 * jump.c (delete_related_insns): Introduce a new local "table" by
12541 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
12542 get_labels method of "table" to simplify access to the labels in
12545 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12547 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
12548 f_minmaxs, f_minmaxd types.
12550 2014-09-05 Richard Biener <rguenther@suse.de>
12552 * cfgloop.c (mark_loop_for_removal): Record former header
12553 when ENABLE_CHECKING.
12554 * cfgloop.h (strut loop): Add former_header member when
12556 * loop-init.c (fix_loop_structure): Sanity check loops
12557 marked for removal if they re-appeared.
12559 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12561 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
12562 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
12564 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
12565 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
12566 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
12567 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
12568 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
12569 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
12570 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
12571 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
12572 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
12573 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
12574 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
12575 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
12576 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
12577 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
12578 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
12579 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
12580 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
12581 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
12582 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
12583 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
12584 with int{32,16,8}_t.
12586 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12588 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
12589 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
12590 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
12591 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
12592 Remove temporary __asm__ and reimplement.
12594 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12596 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
12597 handling cmge, cmgt, cmeq, cmtst.
12599 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
12600 cmlt, cmgeu, cmgtu, cmtst): Remove.
12602 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
12603 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
12604 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
12605 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
12607 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12609 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
12610 TYPES_TST): Define.
12611 (aarch64_fold_builtin): Update pattern for cmtst.
12613 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
12616 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
12618 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
12619 Switch operands, separate out more cases, refactor.
12621 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
12623 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
12624 argument; rename old version to...
12625 (aarch64_const_vec_all_same_in_range_p): ...this.
12626 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
12628 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
12630 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12632 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12633 Remove qualifier_const_pointer, update comment.
12635 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12637 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
12639 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12641 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
12642 varargs with pointer parameter.
12643 (aarch64_simd_expand_builtin): pass pointer into previous.
12645 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12647 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
12650 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12652 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
12653 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
12654 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
12655 Replace temporary asm with call to builtin.
12656 (vrbit_p8, vrbitq_p8): New functions.
12658 2014-09-05 Richard Biener <rguenther@suse.de>
12660 * cfgloop.c (mark_loop_for_removal): New function.
12661 * cfgloop.h (mark_loop_for_removal): Declare.
12662 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
12663 (merge_blocks): Likewise.
12664 (duplicate_block): Likewise.
12665 * except.c (sjlj_emit_dispatch_table): Likewise.
12666 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
12667 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
12668 (thread_through_loop_header): Likewise.
12670 2014-09-05 Richard Biener <rguenther@suse.de>
12672 PR middle-end/63148
12673 * fold-const.c (try_move_mult_to_index): Remove.
12674 (fold_binary_loc): Do not call it.
12675 * tree-data-ref.c (dr_analyze_indices): Strip conversions
12676 from the base object again.
12678 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
12680 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
12683 2014-09-05 Bin Cheng <bin.cheng@arm.com>
12686 * config/arm/arm.md (setmem): New pattern.
12687 * config/arm/arm-protos.h (struct tune_params): New fields.
12688 (arm_gen_setmem): New prototype.
12689 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12690 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12691 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12692 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12693 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12694 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12695 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12696 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12697 (arm_const_inline_cost): New function.
12698 (arm_block_set_max_insns): New function.
12699 (arm_block_set_non_vect_profit_p): New function.
12700 (arm_block_set_vect_profit_p): New function.
12701 (arm_block_set_unaligned_vect): New function.
12702 (arm_block_set_aligned_vect): New function.
12703 (arm_block_set_unaligned_non_vect): New function.
12704 (arm_block_set_aligned_non_vect): New function.
12705 (arm_block_set_vect, arm_gen_setmem): New functions.
12707 2014-09-05 Bin Cheng <bin.cheng@arm.com>
12709 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
12711 2014-09-05 Bin Cheng <bin.cheng@arm.com>
12713 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12715 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12717 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
12719 * valtrack.h: Adjust.
12721 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12723 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
12725 (emit_jump_insn_before_noloc): Likewise.
12726 (emit_call_insn_before_noloc): Likewise.
12727 (emit_label_before): Likewise.
12728 (emit_label_after): Likewise.
12729 (emit_insn_before_setloc): Likewise.
12730 (emit_jump_insn_before_setloc): Likewise.
12731 (emit_call_insn_before_setloc): Likewise.
12732 (emit_call_insn_before): Likewise.
12735 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12737 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
12738 rtx_insn *, eliminating a checked cast.
12740 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12742 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
12743 const_rtx to const rtx_insn *.
12744 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
12747 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12749 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
12750 fixup_args_size_notes.
12751 * expr.c (fixup_args_size_notes): Strengthen first two params from
12752 rtx to rtx_insn *, eliminating a checked cast.
12753 * rtl.h (fixup_args_size_notes): Strengthen first two params from
12756 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12758 * haifa-sched.c (get_ready_element): Strengthen return type from
12760 * sched-int.h (get_ready_element): Likewise.
12762 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
12765 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
12766 indexed_or_indirect_operand instead of memory_operand.
12767 (floatsi<mode>2_lfiwzx_mem): Ditto.
12769 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12771 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
12772 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
12773 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
12775 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12777 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
12779 (get_last_nonnote_insn): Likewise.
12780 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
12781 * resource.c (find_basic_block): Likewise.
12783 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
12786 2014-09-04 David Malcolm <dmalcolm@redhat.com>
12788 * genattr.c (main): Within the prototype of insn_latency written
12789 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
12790 * genautomata.c (output_internal_maximal_insn_latency_func):
12791 Within the implementation of insn_latency written out to
12792 insn-automata.c, strengthen both params from rtx to rtx_insn *,
12793 eliminating a pair of checked casts.
12795 2014-09-04 David Malcolm <dmalcolm@redhat.com>
12797 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
12800 * rtl.h (eh_returnjump_p): Likewise.
12802 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
12804 * Makefile.in (TAGS): Handle constructs in timevar.def.
12806 2014-09-04 Guozhi Wei <carrot@google.com>
12809 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
12810 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
12811 it into two patterns.
12812 (move_lo_quad_internal_be_<mode>): Likewise.
12814 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
12816 * doc/options.texi: Document that Var and Init are required if CPP
12818 * optc-gen.awk: Require Var and Init if CPP is given.
12819 * common.opt (Wpedantic): Use Init.
12821 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12823 * config/rs6000/rs6000.c (special_handling_values): Add
12825 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
12826 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
12827 as swappable with special handling SH_EXTRACT. Remove
12828 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
12830 (adjust_extract): New function.
12831 (handle_special_swappables): Add default to case statement; add
12832 case for SH_EXTRACT that calls adjust_extract.
12833 (dump_swap_insn_table): Handle SH_EXTRACT.
12835 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12837 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
12838 selection of 0th memory doubleword, regardless of endianness.
12840 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12842 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
12844 2014-09-04 Alan Modra <amodra@gmail.com>
12847 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
12850 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
12852 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
12853 * targhooks.c (default_dwarf_frame_reg_mode): New function.
12854 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
12855 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
12856 * doc/tm.texi: Regenerate.
12857 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
12858 selection logic to default_dwarf_frame_reg_mode.
12860 2014-09-03 Marek Polacek <polacek@redhat.com>
12862 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
12865 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
12867 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
12868 the automodified register.
12870 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
12872 * output.h (get_some_local_dynamic_name): Declare.
12873 * final.c (some_local_dynamic_name): New variable.
12874 (get_some_local_dynamic_name): New function.
12875 (final_end_function): Clear some_local_dynamic_name.
12876 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
12877 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
12878 (print_operand): Report an error if '%&' is used inappropriately.
12879 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
12880 (get_some_local_dynamic_name_1): Delete.
12881 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
12882 (rs6000_get_some_local_dynamic_name): Delete.
12883 (rs6000_get_some_local_dynamic_name_1): Delete.
12884 (print_operand): Report an error if '%&' is used inappropriately.
12885 * config/s390/s390.c (machine_function): Remove some_ld_name.
12886 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
12887 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
12888 * config/sparc/sparc.c: Include rtl-iter.h.
12889 (machine_function): Remove some_ld_name.
12890 (sparc_print_operand): Report an error if '%&' is used inappropriately.
12891 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
12893 2014-09-03 Richard Henderson <rth@redhat.com>
12895 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
12896 (aarch64_popwb_pair_reg): Remove.
12897 (aarch64_set_frame_expr): Remove.
12898 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
12899 the restore ops performed by the insns generated.
12900 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
12901 insn. Perform the calls_eh_return addition later; do not attempt to
12902 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
12903 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
12904 special markup at all. Load cfun->machine->frame.hard_fp_offset
12905 into a local variable.
12906 (aarch64_frame_pointer_required): Don't check calls_alloca.
12908 2014-09-03 Richard Biener <rguenther@suse.de>
12910 * opts.c (default_options_optimization): Adjust
12911 max-combine-insns to 2 for -Og.
12913 2014-09-03 Martin Jambor <mjambor@suse.cz>
12916 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
12917 pass-trough jump functions correctly.
12919 2014-09-03 Martin Jambor <mjambor@suse.cz>
12922 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
12923 created replacements in ascending order of offsets.
12924 (known_aggs_to_agg_replacement_list): Likewise.
12926 2014-09-03 Martin Liska <mliska@suse.cz>
12928 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
12929 is set to set uninitialized value for vnresult.
12931 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12933 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
12934 for TARGET_MUST_PASS_IN_STACK.
12936 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12938 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
12939 for TARGET_ARG_PARTIAL_BYTES.
12941 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12943 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
12944 instructions for varargs implementation.
12945 (nds32_expand_epilogue): Emit stack adjustment instructions for
12946 varargs implementation.
12948 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12950 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
12951 optimization detection.
12953 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12955 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
12957 (nds32_function_arg_advance): Deal with nameless arguments.
12958 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
12959 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
12960 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
12962 2014-09-03 Richard Biener <rguenther@suse.de>
12964 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
12965 (struct bb_bitmap_sets): Remove deferred member.
12966 (BB_DEFERRED): Remove.
12967 (defer_or_phi_translate_block): Remove.
12968 (compute_antic_aux): Remove deferring of blocks, assert
12969 proper iteration order.
12970 (compute_antic): Do not set BB_DEFERRED.
12971 (eliminate): Allocate el_avail of proper size initially.
12973 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12975 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
12976 according to the value of crtl->args.pretend_args_size.
12978 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12980 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
12981 varargs information.
12983 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12985 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
12986 implementation for TARGET_SETUP_INCOMING_VARARGS.
12987 (nds32_strict_argument_naming): Refine comment.
12988 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
12989 Define for future implementation.
12991 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
12993 * config/i386/adxintrin.h (_subborrow_u32): New.
12994 (_addcarry_u32): Ditto.
12995 (_subborrow_u64): Ditto.
12996 (_addcarry_u64): Ditto.
12997 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
12998 IX86_BUILTIN_SBB64.
12999 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
13000 __builtin_ia32_sbb_u64
13002 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13004 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
13005 GPR-specific stuff.
13006 (nds32_function_arg_advance): Likewise.
13007 (nds32_init_cumulative_args): Likewise.
13008 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
13009 (NDS32_FIRST_GPR_REGNUM): Define.
13010 (NDS32_LAST_GPR_REGNUM): Define.
13011 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
13012 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
13013 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
13014 (machine_function): Use GRP-specific stuff.
13016 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13018 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
13019 (nds32_expand_epilogue): Likewise.
13020 (nds32_expand_prologue_v3push): Likewise.
13021 (nds32_expand_epilogue_v3pop): Likewise.
13023 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13025 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
13026 v3push/v3pop for variadic function.
13027 * config/nds32/nds32.md (prologue, epilogue): Likewise.
13029 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13031 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
13032 Check rtx for varargs implementation.
13033 (nds32_output_stack_pop): Likewise.
13034 * config/nds32/nds32-protos.h: Have a rtx argument for
13035 nds32_output_stack_push and nds32_output_stack_pop.
13036 * config/nds32/nds32.md: Likewise.
13038 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13040 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
13041 to check if FUNC is an interrupt service routine.
13042 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
13044 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13046 * config/nds32/nds32.h (machine_function): Add some fields for variadic
13047 arguments implementation.
13049 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13051 * config/nds32/nds32-predicates.c
13052 (nds32_valid_stack_push_pop): Rename to ...
13053 (nds32_valid_stack_push_pop_p): ... this.
13054 * config/nds32/nds32-protos.h: Likewise.
13055 * config/nds32/predicates.md: Likewise.
13057 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13059 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
13060 (nds32_emit_stack_v3push): ... this.
13061 (nds32_gen_stack_v3pop): Rename to ...
13062 (nds32_emit_stack_v3pop): ... this and consider CFA restore
13065 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13067 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
13068 (nds32_emit_stack_push_multiple): ... this.
13069 (nds32_gen_stack_pop_multiple): Rename to ...
13070 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
13073 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13076 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
13077 and add a second splitter to handle the remaining cases.
13079 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
13081 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
13083 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
13085 * cfgexpand.c (label_rtx_for_bb): Change type to
13086 hash_map<basic_block, rtx_code_label *> *.
13087 (expand_gimple_basic_block): Adjust.
13088 (pass_expand::execute): Likewise.
13090 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
13092 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
13093 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
13094 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
13095 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
13096 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
13097 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
13098 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
13101 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
13103 * alloc-pool.c: Include coretypes.h.
13104 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
13105 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
13106 hash_set instead of htab.
13107 * ggc-page.c (in_gc): New variable.
13108 (ggc_free): Do nothing if a collection is taking place.
13109 (ggc_collect): Set in_gc appropriately.
13110 * ggc.h (gt_ggc_mx(const char *)): New function.
13111 (gt_pch_nx(const char *)): Likewise.
13112 (gt_ggc_mx(int)): Likewise.
13113 (gt_pch_nx(int)): Likewise.
13114 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
13115 (hash_map::hash_entry::pch_nx): Likewise.
13116 (hash_map::hash_entry::pch_nx_helper): Likewise.
13117 (hash_map::hash_map): Adjust.
13118 (hash_map::create_ggc): New function.
13119 (gt_ggc_mx): Likewise.
13120 (gt_pch_nx): Likewise.
13121 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
13122 (default_hashset_traits::pch_nx): Likewise.
13123 (hash_set::hash_entry::ggc_mx): Likewise.
13124 (hash_set::hash_entry::pch_nx): Likewise.
13125 (hash_set::hash_entry::pch_nx_helper): Likewise.
13126 (hash_set::hash_set): Adjust.
13127 (hash_set::create_ggc): New function.
13128 (hash_set::elements): Likewise.
13129 (gt_ggc_mx): Likewise.
13130 (gt_pch_nx): Likewise.
13131 * hash-table.h (hash_table::hash_table): Adjust.
13132 (hash_table::m_ggc): New member.
13133 (hash_table::~hash_table): Adjust.
13134 (hash_table::expand): Likewise.
13135 (hash_table::empty): Likewise.
13136 (gt_ggc_mx): New function.
13137 (hashtab_entry_note_pointers): Likewise.
13138 (gt_pch_nx): Likewise.
13140 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13142 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
13143 built-in definition.
13144 (XVCVUXDDP_SCALE): Likewise.
13145 (XVCVDPSXDS_SCALE): Likewise.
13146 (XVCVDPUXDS_SCALE): Likewise.
13147 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13148 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
13149 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
13150 VSX_BUILTIN_XVCVDPUXDS_SCALE.
13151 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
13153 * config/rs6000/rs6000.c (real.h): New include.
13154 (rs6000_scale_v2df): New function.
13155 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
13156 (UNSPEC_VSX_XVCVUXDDP): Likewise.
13157 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
13158 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
13159 (vsx_xvcvsxddp_scale): New define_expand.
13160 (vsx_xvcvsxddp): New define_insn.
13161 (vsx_xvcvuxddp_scale): New define_expand.
13162 (vsx_xvcvuxddp): New define_insn.
13163 (vsx_xvcvdpsxds_scale): New define_expand.
13164 (vsx_xvcvdpsxds): New define_insn.
13165 (vsx_xvcvdpuxds_scale): New define_expand.
13166 (vsx_xvcvdpuxds): New define_insn.
13167 * doc/extend.texi (vec_ctf): Add new prototypes.
13168 (vec_cts): Likewise.
13169 (vec_ctu): Likewise.
13170 (vec_splat): Likewise.
13171 (vec_div): Likewise.
13172 (vec_mul): Likewise.
13174 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13177 * config/arm/neon.md
13178 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
13179 <v_cmp_result>): New pattern.
13180 * config/arm/iterators.md (NEON_VCVT): New int iterator.
13181 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
13182 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
13183 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
13184 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
13185 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
13187 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13190 * config/arm/iterators.md (FIXUORS): New code iterator.
13191 (VCVT): New int iterator.
13192 (su_optab): New code attribute.
13194 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
13196 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13198 * config/aarch64/predicates.md (aarch64_comparison_operation):
13199 New special predicate.
13200 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
13201 aarch64_comparison_operation instead of matching an operator.
13202 Update operand numbers.
13203 (csinc3<mode>_insn): Likewise.
13204 (*csinv3<mode>_insn): Likewise.
13205 (*csneg3<mode>_insn): Likewise.
13206 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
13207 * config/aarch64/aarch64.c (aarch64_get_condition_code):
13208 Return -1 instead of aborting on invalid condition codes.
13209 (aarch64_print_operand): Update aarch64_get_condition_code callsites
13210 to assert that the returned condition code is valid.
13211 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
13213 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
13215 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
13216 tree.def, and gimple.def
13218 2014-09-02 Jakub Jelinek <jakub@redhat.com>
13219 Balaji V. Iyer <balaji.v.iyer@intel.com>
13220 Igor Zamyatin <igor.zamyatin@intel.com>
13222 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
13223 (__cilkrts_cilk_for_64): Likewise.
13224 * cilk-common.c (declare_cilk_for_builtin): New function.
13225 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
13226 __cilkrts_cilk_for_64 bultins.
13227 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
13229 (cilk_for_32_fndecl): New define.
13230 (cilk_for_64_fndecl): Likewise.
13231 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
13232 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
13233 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
13234 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
13235 GF_OMP_FOR_COMBINED_INTO.
13236 * gimplify.c (gimplify_scan_omp_clauses): Added
13237 OMP_CLAUSE__CILK_FOR_COUNT_ case.
13238 (gimplify_adjust_omp_clauses): Ditto.
13239 (gimplify_omp_for): Added CILK_FOR case.
13240 (gimplify_expr): Ditto.
13241 * omp-low.c: Include cilk.h.
13242 (extract_omp_for_data): Set appropriate kind for
13243 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
13244 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
13245 (create_omp_child_function_name): Added second argument to handle
13247 (cilk_for_check_loop_diff_type): New function.
13248 (expand_cilk_for_call): Likewise.
13249 (expand_cilk_for): Likewise.
13250 (create_omp_child_function): Set cilk_for_count; handle the cases when
13251 it is true; call create_omp_child_function_name with second argument.
13252 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
13253 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
13254 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
13255 * tree-nested.c (convert_nonlocal_omp_clauses): Added
13256 OMP_CLAUSE__CILK_FOR_COUNT_ case.
13257 (convert_local_omp_clauses): Ditto.
13258 * tree-pretty-print.c (dump_omp_clause): Added
13259 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
13260 (dump_generic_node): Added CILK_FOR case.
13261 * tree.c (omp_clause_num_ops): New element
13262 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
13263 (omp_clause_code_name): New element _Cilk_for_count_.
13264 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
13265 * tree.def: Add tree code for CILK_FOR.
13267 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
13269 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
13270 (ppc403-compare): Add "exts with dot" case.
13271 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
13272 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
13273 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
13274 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
13275 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
13276 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
13277 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
13278 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13279 cell-cmp-microcoded): Similarly.
13280 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
13281 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
13282 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
13283 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
13284 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
13285 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
13286 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
13287 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
13288 (power6-compare): Add "exts with dot" case.
13289 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
13290 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
13291 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
13293 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
13294 if avoiding Cell microcode.
13295 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
13296 (is_cracked_insn): Ditto.
13297 (insn_must_be_first_in_group): Ditto.
13298 * config/rs6000/rs6000.md (dot): Adjust comment.
13299 (cell_micro): Handle exts+dot.
13300 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
13301 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
13302 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
13303 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
13304 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
13305 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
13306 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
13308 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
13310 * config/rs6000/rs6000.md (QHSI): Delete.
13311 (EXTQI, EXTHI, EXTSI): New mode iterators.
13312 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
13313 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13314 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
13315 9 anonymous instructions, and 8 splitters): Delete.
13316 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
13317 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
13318 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
13319 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
13320 *zero_extendsi<mode>2_dot2): New.
13322 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
13324 * config/rs6000/rs6000.md (any_extend): New code iterator.
13325 (u, su): New code attributes.
13326 (dmode, DMODE): New mode attributes.
13327 (<su>mul<mode>3_highpart): New.
13328 (*<su>mul<mode>3_highpart): New.
13329 (<su>mulsi3_highpart_le): New.
13330 (<su>muldi3_highpart_le): New.
13331 (<su>mulsi3_highpart_64): New.
13332 (<u>mul<mode><dmode>3): New.
13333 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
13334 splitters): Delete.
13335 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
13336 splitters): Delete.
13338 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
13340 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
13341 *mulsi3_internal2, and two splitters): Delete.
13342 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
13344 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
13346 2014-09-02 Richard Biener <rguenther@suse.de>
13348 PR tree-optimization/62695
13349 * tree-ssa-structalias.c (find_func_clobbers): Add missing
13352 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
13355 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
13357 2014-09-01 Andi Kleen <ak@linux.intel.com>
13359 * file-find.c (add_prefix_begin): Add.
13360 (do_add_prefix): Rename from add_prefix with first argument.
13361 (add_prefix): Add new wrapper.
13362 * file-find.h (add_prefix_begin): Add.
13363 * gcc-ar.c (main): Support -B option.
13365 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13367 * genemit.c: Include dumpfile.h.
13368 (gen_split): Print name of splitter function to dump file.
13370 2014-09-01 Richard Biener <rguenther@suse.de>
13372 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
13373 Use stack auto_vecs for constraint expressions.
13374 (find_func_aliases_for_call): Likewise.
13375 (find_func_aliases): Likewise.
13376 (find_func_clobbers): Likewise.
13378 2014-09-01 Richard Biener <rguenther@suse.de>
13380 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
13381 operands vector in most cases. Remove redundant code.
13383 2014-09-01 Olivier Hainque <hainque@adacore.com>
13385 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
13386 $WIND_BASE instead of designating a harcoded arbitrary home dir.
13387 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
13389 2014-09-01 Richard Biener <rguenther@suse.de>
13391 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
13392 copy_reference_ops_from_call, vn_nary_op_compute_hash,
13393 vn_reference_compute_hash, vn_reference_insert): Remove.
13394 (vn_reference_lookup_call): New function.
13395 * tree-ssa-sccvn.c (vn_reference_compute_hash,
13396 copy_reference_ops_from_ref, copy_reference_ops_from_call,
13397 vn_reference_insert, vn_nary_op_compute_hash): Make static.
13398 (create_reference_ops_from_call): Remove.
13399 (vn_reference_lookup_3): Properly update shared_lookup_references.
13400 (vn_reference_lookup_pieces): Assert that we updated
13401 shared_lookup_references properly.
13402 (vn_reference_lookup): Likewise.
13403 (vn_reference_lookup_call): New function.
13404 (visit_reference_op_call): Use it. Avoid re-building the
13406 (visit_reference_op_load): Remove redundant lookup.
13407 (visit_reference_op_store): Perform special tail-merging work
13408 only when possibly doing tail-merging.
13409 (visit_use): Likewise.
13410 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
13412 2014-09-01 Jakub Jelinek <jakub@redhat.com>
13415 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
13416 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
13417 (find_inc): Revert 2014-08-13 change.
13419 2014-09-01 Marek Polacek <polacek@redhat.com>
13421 PR middle-end/61903
13422 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
13423 Change the type of V to unsigned HOST_WIDE_INT.
13425 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13427 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
13428 the size of byte markers.
13429 (do_shift_rotate): Fix confusion between host, target and marker byte
13431 (verify_symbolic_number_p): Likewise.
13432 (find_bswap_or_nop_1): Likewise.
13433 (find_bswap_or_nop): Likewise.
13435 2014-09-01 Olivier Hainque <hainque@adacore.com>
13437 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
13438 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
13440 2014-09-01 Jakub Jelinek <jakub@redhat.com>
13442 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
13443 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
13444 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
13446 2014-09-01 Yury Gribov <y.gribov@samsung.com>
13450 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
13451 (build_check_stmt): Likewise.
13452 (instrument_strlen_call): Likewise.
13453 (asan_expand_check_ifn): Likewise and fix types.
13454 (maybe_cast_to_ptrmode): New function.
13456 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13458 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
13460 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13462 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
13464 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
13466 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
13467 prefix to function labels when generating fast indirect calls.
13469 2014-08-30 David Malcolm <dmalcolm@redhat.com>
13473 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
13474 param back from rtx_insn * to rtx. Rename param from "label" to
13475 "label_or_return", reintroducing "label" as an rtx_insn * after
13476 we've ensured it's not a RETURN.
13477 (first_active_target_insn): Likewise for return type and param;
13478 add a checked cast to rtx_insn * once we've ensured "insn" is not
13480 (steal_delay_list_from_target): Convert param "pnew_thread" back
13481 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
13483 (own_thread_p): Convert param "thread" back from an rtx_insn * to
13484 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
13485 cast once we've established we're not dealing with a RETURN,
13486 renaming subsequent uses of "thread" to "thread_insn".
13487 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
13489 (follow_jumps): Convert return type and param "label" from
13490 rtx_insn * back to rtx. Move initialization of "value" to after
13491 the handling for ANY_RETURN_P, adding a checked cast there to
13492 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
13493 rename to "this_label_or_return", reintroducing "this_label" as
13494 an rtx_insn * once we've handled the case where it could be an
13496 (fill_slots_from_thread): Rename param "thread" to
13497 "thread_or_return", converting from an rtx_insn * back to an rtx.
13498 Reintroduce name "thread" as an rtx_insn * local with a checked
13499 cast once we've handled the case of it being an ANY_RETURN_P.
13500 Convert local "new_thread" from an rtx_insn * back to an rtx.
13501 Add a checked cast when assigning to "trial" from "new_thread".
13502 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
13503 checked cast to rtx_insn * from "new_thread" when invoking
13505 (fill_eager_delay_slots): Convert locals "target_label",
13506 "insn_at_target" from rtx_insn * back to rtx.
13507 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
13508 (relax_delay_slots): Convert locals "trial", "target_label" from
13509 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
13510 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
13511 invoking update_block.
13512 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
13513 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
13515 * resource.h (mark_target_live_regs): Undo erroneous conversion
13516 of second param of r214693, converting it back from rtx_insn * to
13517 rtx, since it could be a RETURN.
13519 * resource.c (find_dead_or_set_registers): Similarly, convert
13520 param "jump_target" back from an rtx_insn ** to an rtx *, as we
13521 could be writing back a RETURN. Rename local rtx_insn * "next" to
13522 "next_insn", and introduce "lab_or_return" as a local rtx,
13523 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
13524 (mark_target_live_regs): Undo erroneous conversion
13525 of second param of r214693, converting it back from rtx_insn * to
13526 rtx, since it could be a RETURN. Rename it from "target" to
13527 "target_maybe_return", reintroducing the name "target" as a local
13528 rtx_insn * with a checked cast, after we've handled the case of
13531 2014-08-29 DJ Delorie <dj@redhat.com>
13533 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
13534 pointer size up to a power of two.
13535 * defaults.h (DWARF2_ADDR_SIZE): Round up.
13536 (POINTER_SIZE_UNITS): New, rounded up value.
13537 * dwarf2asm.c (size_of_encoded_value): Use it.
13538 (dw2_output_indirect_constant_1): Likewise.
13539 * expmed.c (init_expmed_one_conv): We now know the sizes of
13541 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
13542 * optabs.c (expand_float): Use precision, not size.
13543 (expand_fix): Likewise.
13544 * simplify-rtx (simplify_unary_operation_1): Likewise.
13545 * tree-dfa.c (get_ref_base_and_extent): Likewise.
13546 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
13547 (default_assemble_integer) Likewise.
13548 (dump_tm_clone_pairs): Likewise.
13549 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
13550 * var-tracking.c (adjust_mems): Allow partial-int modes also.
13551 (prepare_call_arguments): Likewise.
13552 * stor-layout.c (finalize_type_size): Preserve precision.
13553 (layout_type): Use precision, not size.
13555 * expr.c (convert_move): If the target has an explicit converter,
13558 2014-08-29 David Malcolm <dmalcolm@redhat.com>
13560 * gdbinit.in: Skip various inline functions in rtl.h when
13563 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
13566 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
13568 2014-08-29 Richard Biener <rguenther@suse.de>
13570 PR tree-optimization/62291
13571 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
13572 exactly the vector size needed and use quick_push.
13573 (phi_translate_1): Adjust comment.
13574 (valid_in_sets): Remove block argument and remove pointless
13576 (dependent_clean): Adjust for removal of block argument.
13578 (compute_antic_aux): Likewise.
13579 (compute_partial_antic_aux): Likewise.
13581 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
13582 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13583 Anna Tikhonova <anna.tikhonova@intel.com>
13584 Ilya Tocar <ilya.tocar@intel.com>
13585 Andrey Turetskiy <andrey.turetskiy@intel.com>
13586 Ilya Verbin <ilya.verbin@intel.com>
13587 Kirill Yukhin <kirill.yukhin@intel.com>
13588 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13590 * config/i386/sse.md
13591 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
13592 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
13593 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
13594 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
13596 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
13597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13598 Anna Tikhonova <anna.tikhonova@intel.com>
13599 Ilya Tocar <ilya.tocar@intel.com>
13600 Andrey Turetskiy <andrey.turetskiy@intel.com>
13601 Ilya Verbin <ilya.verbin@intel.com>
13602 Kirill Yukhin <kirill.yukhin@intel.com>
13603 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13605 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
13606 * config/i386/sse.md
13607 (define_mode_iterator VI4_128_8_256): New.
13608 (define_mode_iterator VI2_128_4_256): Ditto.
13609 (define_mode_iterator PMOV_DST_MODE): Rename into
13610 (define_mode_iterator PMOV_DST_MODE_1): this.
13611 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
13612 Use PMOV_DST_MODE_1 mode iterator.
13613 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
13615 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
13617 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
13618 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
13619 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
13620 (define_mode_iterator PMOV_DST_MODE_2): New.
13621 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
13622 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
13623 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
13625 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
13626 (define_mode_attr pmov_dst_3): Ditto.
13627 (define_mode_attr pmov_dst_zeroed_3): Ditto.
13628 (define_mode_attr pmov_suff_3): Ditto.
13629 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
13630 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
13631 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
13632 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
13633 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
13634 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
13635 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
13636 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
13637 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
13638 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
13639 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
13640 (define_mode_attr pmov_dst_4): Ditto.
13641 (define_mode_attr pmov_dst_zeroed_4): Ditto.
13642 (define_mode_attr pmov_suff_4): Ditto.
13643 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
13644 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
13645 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
13646 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
13647 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
13648 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
13649 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
13650 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
13651 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
13652 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
13653 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
13655 2014-08-29 Richard Biener <rguenther@suse.de>
13657 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
13658 NON_LVALUE_EXPR in gimple.
13660 2014-08-29 Richard Biener <rguenther@suse.de>
13662 PR middle-end/62292
13663 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
13664 from previous refactoring.
13665 (gimple_fold_builtin_strncpy): Likewise.
13667 2014-08-29 David Malcolm <dmalcolm@redhat.com>
13670 * function.c (assign_parm_setup_reg): Remove erroneous checked
13671 cast to rtx_insn * on result of gen_extend_insn in favor of
13672 introducing a new local rtx "pat".
13674 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13676 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
13677 to silence warning.
13678 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
13680 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13682 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
13683 (next_insn): Likewise.
13684 * emit-rtl.c (next_insn): Likewise.
13685 (previous_insn): Likewise.
13686 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
13687 "insn" and "next" from rtx to rtx_insn *.
13688 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
13689 "insn", "insn1", "vliw_start", "prologue_end_note",
13690 "last_insn_in_packet".
13692 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13694 * shrink-wrap.h (active_insn_between): Strengthen both params from
13696 * function.c (active_insn_between): Likewise.
13698 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13700 * genattr.c (main): When writing out insn-attr.h, strengthen param
13701 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
13702 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
13703 writing out the definition of dfa_clear_single_insn_cache to the
13704 generated insn-automata.c
13706 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13708 * resource.h (clear_hashed_info_for_insn): Strengthen param from
13710 (incr_ticks_for_insn): Likewise.
13711 (init_resource_info): Likewise.
13713 * resource.c (init_resource_info): Likewise.
13714 (clear_hashed_info_for_insn): Likewise.
13715 (incr_ticks_for_insn): Likewise.
13717 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
13719 (steal_delay_list_from_target): Use methods of "seq".
13720 (try_merge_delay_insns): Use methods of "merged_insns".
13721 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
13722 (reorg_redirect_jump): Likewise for param "jump".
13724 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13726 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
13728 * config/s390/s390.c (s390_split_branches): Eliminate top-level
13729 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
13731 (s390_mainpool_finish): In three places, split out a local rtx
13732 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
13733 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
13734 and split another local rtx "insn" out into rtx "pat" and
13736 * config/sh/sh.c (output_branchy_insn): Rather than working
13737 directly on operands[9], introduce local rtx_code_label *
13738 variables named "lab" in two places, working on them, and then
13739 assigning them to operands[9], so that the intervening operations
13740 are known by the type system to be on insns.
13742 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13744 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
13747 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
13748 in invocation of INSN_HAS_LOCATION.
13750 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13752 * config/rs6000/altivec.h (vec_xl): New #define.
13753 (vec_xst): Likewise.
13754 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
13755 (XXSPLTD_V2DI): Likewise.
13756 (DIV_V2DI): Likewise.
13757 (UDIV_V2DI): Likewise.
13758 (MUL_V2DI): Likewise.
13759 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13760 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
13761 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
13762 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
13763 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
13764 (UNSPEC_VSX_DIVSD): Likewise.
13765 (UNSPEC_VSX_DIVUD): Likewise.
13766 (UNSPEC_VSX_MULSD): Likewise.
13767 (vsx_mul_v2di): New insn-and-split.
13768 (vsx_div_v2di): Likewise.
13769 (vsx_udiv_v2di): Likewise.
13770 (vsx_xxspltd_<mode>): New insn.
13772 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13774 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
13776 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
13777 (NEXT_INSN): Likewise.
13778 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
13779 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
13781 (no_labels_between_p): Likewise for both params.
13783 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
13784 cast when using NEXT_INSN on operands[2].
13785 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
13786 "insn" from rtx to rtx_insn *, adding a checked cast.
13787 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
13789 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
13791 (arc_text_label): Likewise for param "insn".
13792 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
13794 (arc_ccfsm_record_condition): Likewise for param "jump".
13795 (arc_text_label): Likewise for local "label".
13796 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
13797 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
13798 a method for typesafety. Add a checked cast.
13799 * config/arc/constraints.md (Clb): Add a checked cast when getting
13800 the CODE_LABEL from a LABEL_REF.
13801 * config/arm/arm.c (require_pic_register): Strengthen locals
13802 "seq", "insn" from rtx to rtx_insn *.
13803 (create_fix_barrier): Likewise for locals "selected", "next".
13804 (thumb1_reorg): Likewise for locals "prev", "insn".
13805 (arm_expand_prologue): Likewise for local "last".
13806 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
13808 (thumb2_output_casesi): Likewise for operands[2].
13809 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
13810 strengthen local "insn" from rtx to rtx_insn *.
13811 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
13812 type and param "insn".
13813 (find_prev_insn_start): Likewise.
13814 (hwloop_optimize): Likewise for locals "insn", "last_insn",
13816 (gen_one_bundle): Likewise for loal "t".
13817 (find_load): Likewise for param "insn".
13818 (workaround_speculation): Likewise for locals "insn", "next",
13819 "target", "next_tgt".
13820 * config/c6x/c6x.c (assign_reservations): Likewise for both params
13821 and for locals "insn", "within", "last".
13822 (count_unit_reqs): Likewise for params "head", "tail" and local
13824 (try_rename_operands): Likewise for params "head", "tail".
13825 (reshuffle_units): Likewise for locals "head", "tail", "insn".
13826 (struct c6x_sched_context): Likewise for fields
13827 "last_scheduled_insn", "last_scheduled_iter0".
13828 (init_sched_state): Replace NULL_RTX with NULL.
13829 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
13831 (undo_split_delayed_nonbranch): Likewise for param and for local
13833 (conditionalize_after_sched): Likewise for local "insn".
13834 (bb_earliest_end_cycle): Likewise.
13835 (filter_insns_above): Likewise for locals "insn", "next".
13836 (hwloop_optimize): Remove redundant checked cast.
13837 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
13838 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
13839 NULL_RTX with NULL.
13840 (cris_simple_epilogue): Likewise.
13841 (cris_expand_prologue): Likewise.
13842 (cris_expand_epilogue): Likewise.
13843 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
13844 local "insn" from rtx to rtx_insn *.
13845 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
13846 (struct frv_packet_group): Likewise for the elements within array
13847 fields "insns", "sorted", and for field "nop".
13848 (frv_packet): Likewise for the elements within array field
13850 (frv_add_insn_to_packet): Likewise for param "insn".
13851 (frv_insert_nop_in_packet): Likewise for param "insn" and local
13853 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
13854 (frv_sort_insn_group_1): Likewise for local "insn".
13855 (frv_optimize_membar_local): Likewise.
13856 (frv_align_label): Likewise for locals "x", "last", "barrier",
13858 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
13860 (ia64_sched_init): Likewise for local "insn".
13861 (scheduled_good_insn): Likewise for param "last".
13862 (struct _ia64_sched_context): Likewise for field
13863 "last_scheduled_insn".
13864 (ia64_init_sched_context): Replace NULL_RTX with NULL.
13865 (struct bundle_state): Likewise for field "insn".
13866 (issue_nops_and_insn): Likewise for param "insn".
13867 (get_next_important_insn): Likewise for return type and both
13869 (ia64_add_bundle_selector_before): Likewise for param "insn".
13870 (bundling): Likewise for params "prev_head_insn", "tail" and
13871 locals "insn", "next_insn", "b". Eliminate top-level local rtx
13872 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
13873 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
13874 Strengthen final param from rtx to rtx_insn *.
13875 (iq2000_move_1word): Likewise for second param.
13876 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
13877 param "cur_insn" and local "next_insn".
13878 (iq2000_move_1word): Likewise for param "insn".
13879 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
13880 casts when using NEXT_INSN on operands[1].
13881 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
13882 "insn" from rtx to rtx_insn *.
13883 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
13884 "x", introducing local rtx_insn * "insn" for when working with the
13885 CODE_LABEL of the LABEL_REF.
13886 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
13888 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
13890 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
13892 (conditionalize_block): Likewise for return type and param.
13893 (mcore_is_dead): Likewise for param "first" and local "insn".
13894 (emit_new_cond_insn): Likewise for return type.
13895 (conditionalize_block): Likewise for return type, param, and
13896 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
13898 (conditionalize_optimization): Likewise for local "insn".
13899 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
13901 * config/microblaze/microblaze.md: Add checked casts when using
13903 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
13904 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
13905 and rtx_insn * "insn".
13906 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
13907 checked cast when using NEXT_INSN on operands[2].
13908 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
13909 local "insn" from rtx to rtx_insn *.
13910 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
13912 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
13913 Add a checked cast when using NEXT_INSN on operands[1].
13914 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
13916 (pa_output_cbranch): Likewise for final param.
13917 (pa_output_lbranch): Likewise for second param.
13918 (pa_output_bb): Likewise for third param.
13919 (pa_output_bvb): Likewise.
13920 (pa_output_dbra): Likewise for second param.
13921 (pa_output_movb): Likewise.
13922 (pa_output_parallel_movb): Likewise.
13923 (pa_output_parallel_addb): Likewise.
13924 (pa_output_millicode_call): Likewise for first param.
13925 (pa_output_mul_insn): Likewise for second param.
13926 (pa_output_div_insn): Likewise for third param.
13927 (pa_output_mod_insn): Likewise for second param.
13928 (pa_jump_in_call_delay): Likewise for param.
13929 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
13930 (pa_output_div_insn): Likewise.
13931 (pa_output_mod_insn): Likewise.
13932 (pa_output_cbranch): Likewise.
13933 (pa_output_lbranch): Likewise.
13934 (pa_output_bb): Likewise.
13935 (pa_output_bvb): Likewise.
13936 (pa_output_dbra): Likewise.
13937 (pa_output_movb): Likewise.
13938 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
13939 to simplify and for typesafety.
13940 (pa_output_call): Use method of rtx_sequence *.
13941 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
13942 (pa_jump_in_call_delay): Likewise.
13943 (pa_output_parallel_movb): Likewise.
13944 (pa_output_parallel_addb): Likewise.
13945 (pa_following_call): Likewise.
13946 (pa_combine_instructions): Likewise for locals "anchor",
13948 (pa_can_combine_p): Likewise for params "anchor", "floater" and
13949 locals "start", "end".
13950 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
13951 param "insn" and local "local_insn".
13952 (picochip_final_prescan_insn): Likewise for local "local_insn".
13953 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
13955 (uses_TOC): Likewise.
13956 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
13957 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
13958 splitting out to more tightly-scoped locals, 3 as rtx and one as
13960 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
13962 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
13964 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
13966 (fixup_addr_diff_vecs): Likewise.
13967 (reg_unused_after): Likewise for param 2.
13968 (sh_can_redirect_branch): Likewise for both params.
13969 (check_use_sfunc_addr): Likewise for param 1.
13970 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
13971 (find_barrier): Likewise for local "last_got".
13972 (gen_block_redirect): Likewise for return type, param "jump" and
13973 locals "prev", "scan", "next", "insn".
13974 (struct far_branch): Likewise for fields "near_label",
13975 "insert_place", "far_label".
13976 (gen_far_branch): Likewise for local "jump".
13977 (fixup_addr_diff_vecs): Likewise for param "first" and locals
13979 (barrier_align): Likewise for param and for locals "prev", "x".
13980 Introduce local rtx_sequence * "prev_seq" and use insn method for
13981 typesafety and clarity.
13982 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
13983 (get_dest_uid): Likewise for local "dest".
13984 (split_branches): Likewise for locals "next", "beyond", "label",
13985 "block", "far_label". Add checked casts when assigning to
13986 bp->far_label and "far_label".
13987 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
13988 (sequence_insn_p): Likewise.
13989 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
13990 more loop-scoped rtx "insn" when walking LABEL_REFS.
13991 (sh_can_redirect_branch): Strengthen both params from rtx to
13993 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
13994 new local rtx_sequence * "seq" via a dyn_cast, and use a method
13995 for clarity and typesafety.
13996 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
13997 "insn" from rtx to rtx_insn *.
13998 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
13999 when using NEXT_INSN on the CODE_LABEL in operands[2].
14000 (define_insn "casesi_worker_2"): Likewise.
14001 (define_insn "casesi_shift_media"): Likewise.
14002 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
14004 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
14005 Strengthen field "insn" from rtx to rtx_insn *.
14006 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
14007 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
14008 param "start_insn" and local "start_insn".
14009 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
14011 (find_set_of_reg_bb): Likewise for param "insn".
14012 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
14013 (trace_reg_uses): Likewise for param "start_insn".
14014 (sh_treg_combine::cbranch_trace): Likewise for field
14016 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
14018 (sh_treg_combine::record_set_of_reg): Likewise for param
14019 "start_insn" and local "i".
14020 (sh_treg_combine::can_remove_cstore): Likewise for local
14022 (sh_treg_combine::try_optimize_cbranch): Likewise for param
14024 (sh_treg_combine::execute): Likewise for local "i".
14025 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
14027 (sparc_check_64): Likewise for second param.
14028 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
14029 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
14030 dyn_cast, using its insn method for typesafety and clarity.
14031 (empty_delay_slot): Strengthen param "insn" from rtx to
14033 (set_extends): Likewise.
14034 (sparc_check_64): Likewise.
14035 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
14036 for locals "seq", "last_insn".
14037 (combine_bnp): Likewise for param "insn".
14038 (xstormy16_reorg): Likewise for local "insn".
14039 * config/v850/v850.c (substitute_ep_register): Likewise for params
14040 "first_insn", "last_insn" and local "insn".
14041 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
14042 elements of "regs" array, and local "insn".
14043 * except.c (emit_note_eh_region_end): Likewise for param "insn".
14044 * final.c (final_sequence): Strengthen this global from rtx to
14046 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
14048 (final_scan_insn): Update assignment to "final_sequence" to be
14049 from "seq", the cast version of "body", for type-safety.
14050 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
14051 "insns" from rtx to rtx_insn *.
14052 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
14053 * genattr.c (main): When writing out generated insn-attr.h,
14054 strengthen params 1 and 3 of eligible_for_delay,
14055 eligible_for_annul_true, eligible_for_annul_false from rtx to
14057 * genattrtab.c (write_eligible_delay): Likewise when writing out
14058 generated insn-attrtab.c; also local "insn" the generated
14060 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
14062 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
14063 "start_label" from rtx to rtx_insn *.
14064 * ira.c (decrease_live_ranges_number): Likewise for local "p".
14065 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
14066 "insns" and local "insn".
14067 (validate_equiv_mem): Likewise for param "start" and local "insn".
14068 (memref_used_between_p): Likewise for params "start", "end" and
14070 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
14072 * loop-doloop.c (doloop_optimize): Within region guarded by
14073 INSN_P (doloop_pat), introduce a new local rtx_insn *
14074 "doloop_insn" via a checked cast, and use it for typesafety,
14075 eventually writing the value back into doloop_pat.
14076 * output.h (final_sequence): Strengthen this global from rtx to
14078 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
14079 reintroducing "insn" as an rtx_insn * via a checked cast.
14080 Strengthen param "attempt" and local "new_insn"from rtx to
14082 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
14084 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
14085 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
14086 "p" in favor of more tightly-scoped replacements, sometimes rtx
14087 and sometimes rtx_insn *, as appropriate.
14088 (delete_output_reload): Eliminate top-level rtx "i1", splitting
14089 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
14090 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
14091 local "trial" from rtx to rtx_insn *.
14092 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
14093 rtx to rtx_insn *. Strenghten local "pat" from rtx to
14094 rtx_sequence * and use methods for clarity and typesafety.
14095 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
14096 rtx to rtx_insn *. Strenghten local "li" from rtx to
14097 rtx_insn_list * and use its methods for clarity and typesafety.
14098 (steal_delay_list_from_target): Strengthen param "insn" from rtx
14100 (steal_delay_list_from_fallthrough): Likewise.
14101 (try_merge_delay_insns): Likewise for param "thread" and locals
14102 "trial", "next_trial", "delay_insn".
14103 (redundant_insn): Likewise for param "target" and local "trial".
14104 (own_thread_p): Likewise for param "thread" and locals
14105 "active_insn", "insn".
14106 (get_label_before): Likewise for param "insn".
14107 (fill_simple_delay_slots): Likewise for local "new_label"; use
14108 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
14109 (label_before_next_insn): Strengthen return type and local "insn"
14110 from rtx to rtx_insn *.
14111 (relax_delay_slots): Likewise for locals "other", "tmp".
14112 (make_return_insns): Likewise for param "first" and locals "insn",
14113 "jump_insn", "prev". Move declaration of "pat" to its assignment
14114 and strengthen from rtx to rtx_sequence *. Use its methods for
14115 clarity and typesafety.
14116 * rtlanal.c (no_labels_between_p): Strengthen params from
14117 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
14119 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
14120 from const_rtx to const rtx_insn *.
14121 (reg_set_between_p): Rename param "from_insn" to
14122 "uncast_from_insn", and reintroduce "from_insn" as a
14123 const rtx_insn * via a checked cast.
14124 (modified_between_p): Likewise for param "start" as "uncast_start".
14125 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
14126 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
14127 "tmp", head" from rtx to rtx_insn *.
14128 (recompute_rev_top_order): Likewise for local "insn".
14129 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
14130 * store-motion.c (build_store_vectors): Likewise for local "insn".
14131 Strengthen local "st" from rtx to rtx_insn_list * and use methods
14132 for clarity and typesafety.
14133 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
14135 (computation_cost): Likewise for local "seq".
14136 (get_address_cost): Likewise.
14138 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14140 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
14142 (label_is_jump_target_p): Likewise for second param.
14144 * rtlanal.c (tablejump_p): Likewise for param "insn".
14145 (label_is_jump_target_p): Likewise for param "jump_insn".
14147 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14149 * rtl.h (find_first_parameter_load): Strengthen return type and
14150 both params from rtx to rtx_insn *.
14151 * rtlanal.c (find_first_parameter_load): Strengthen return type,
14152 both params and locals "before", "first_set" from rtx to
14153 rtx_insn *. Remove now-redundant cast.
14154 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
14156 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14158 * rtl.h (find_last_value): Delete.
14159 * rtlanal.c (find_last_value): Delete.
14161 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14163 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
14164 from rtx to rtx_insn *.
14165 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
14166 rtx "note" with new local rtx_insn * "new_head" when calculating
14167 head insn of new basic block.
14168 * combine.c (combine_split_insns): Strengthen return type and local
14169 "ret" from rtx to rtx_insn *.
14170 (likely_spilled_retval_p): Likewise for locals "use" and "p".
14171 (try_combine): Eliminate local "m_split", splitting into new
14172 locals "m_split_insn" and "m_split_pat".
14173 (find_split_point): Strengthen local "seq" from rtx into
14175 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
14176 locals "label", "branch".
14177 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
14179 (define_expand "umulsi3_highpart"): Likewise for local "insn".
14180 * dse.c (note_add_store_info): Likewise for fields "first",
14182 (note_add_store): Likewise for local "insn".
14183 (emit_inc_dec_insn_before): Likewise for locals "insn",
14185 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
14186 (replace_read): Likewise for locals "insns", "this_insn".
14187 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
14188 (notice_eh_throw): Likewise for param "insn".
14189 (before_next_cfi_note): Likewise for return type, param, and local
14191 (connect_traces): Likewise for local "note".
14192 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
14193 (verify_rtl_sharing): Likewise.
14194 (unshare_all_rtl_in_chain): Likewise for param "insn".
14195 (get_first_nonnote_insn): Likewise for local "insn".
14196 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
14197 "seq" and use its methods to clarify things.
14198 (next_insn): Strengthen return type from rtx to rtx_insn *.
14199 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
14200 local rtx_insn * using a checked cast, dropping a checked cast
14201 made redundant by this change. Use a cast to and method of
14202 rtx_sequence to clarify the code.
14203 (previous_insn): Rename param "insn" to "uncast_insn" and
14204 reintroduce "insn" as a local rtx_insn * using a checked cast,
14205 dropping a checked cast made redundant by this change. Use a cast
14206 to and method of rtx_sequence to clarify the code.
14207 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
14208 reintroduce "insn" as a local rtx_insn * using a checked cast,
14209 dropping a checked cast made redundant by this change.
14210 (next_nonnote_insn_bb): Likewise.
14211 (prev_nonnote_insn): Likewise.
14212 (prev_nonnote_insn_bb): Likewise.
14213 (next_nondebug_insn): Likewise.
14214 (prev_nondebug_insn): Likewise.
14215 (next_nonnote_nondebug_insn): Likewise.
14216 (prev_nonnote_nondebug_insn): Likewise.
14217 (next_real_insn): Likewise.
14218 (prev_real_insn): Likewise.
14219 (next_active_insn): Likewise.
14220 (prev_active_insn): Likewise.
14221 (next_cc0_user): Likewise. Use rtx_sequence and a method for
14223 (prev_cc0_setter): Likewise.
14224 (try_split): Rename param "trial" to "uncast_trial" and
14225 reintroduce "insn" as a local rtx_insn * using a checked cast,
14226 dropping checked casts made redundant by this change.
14227 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
14229 (remove_insn): Rename param "insn" to "uncast_insn" and
14230 reintroduce "insn" as a local rtx_insn * using a checked cast.
14231 (emit_pattern_after_setloc): Likewise for param "after", as
14233 (emit_pattern_after): Likewise. Strengthen local "prev" from
14235 (emit_pattern_before_setloc): Rename param "before" to
14236 "uncast_before" and reintroduce "before" as a local rtx_insn *
14237 using a checked cast. Strengthen locals "first", "last" from
14239 (emit_pattern_before): Likewise rename/cast param "before" to
14240 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
14241 * except.c (copy_reg_eh_region_note_forward): Strengthen param
14242 "first" and local "insn" from rtx to rtx_insn *.
14243 (copy_reg_eh_region_note_backward): Likewise for param "last"
14245 * expr.c (fixup_args_size_notes): Rename param "last" to
14246 "uncast_last" and reintroduce "last" as a local rtx_insn *
14247 using a checked cast. Strengthen local "insn" from rtx to
14249 * function.c (set_insn_locations): Strengthen param "insn" from
14251 (record_insns): Likewise for param "insns" and local "tmp".
14252 (active_insn_between): Rename param "tail" to
14253 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
14254 using a checked cast.
14255 (thread_prologue_and_epilogue_insns): Split out top-level local
14256 rtx "seq" into three different rtx_insn * locals. Strengthen
14257 local "prologue_seq" from rtx to rtx_insn *.
14258 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
14259 from rtx to rtx_insn *.
14260 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
14261 (priority): Likewise for locals "prev_first", "twin".
14262 (setup_insn_max_reg_pressure): Likewise for param "after".
14263 (sched_setup_bb_reg_pressure_info): Likewise.
14264 (no_real_insns_p): Strengthen params from const_rtx to
14266 (schedule_block): Strengthen local "next_tail" from rtx to
14268 * ifcvt.c (find_active_insn_before): Strengthen return type and
14269 param "insn" from rtx to rtx_insn *.
14270 (find_active_insn_after): Likewise.
14271 (cond_exec_process_insns): Likewise for param "start" and local "insn".
14272 (cond_exec_process_if_block): Likewise for locals "then_start",
14273 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
14274 (noce_process_if_block): Likewise for local "jump".
14275 (merge_if_block): Likewise for two locals named "end".
14276 (cond_exec_find_if_block): Likewise for local "last_insn".
14277 * jump.c (delete_related_insns): Rename param "insn" to
14278 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
14279 checked cast. Strengthen local "p" from rtx to rtx_insn *.
14280 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
14282 (split_reg): Likewise.
14283 * lra.c (lra_process_new_insns): Likewise.
14284 * modulo-sched.c (permute_partial_schedule): Strengthen param
14285 "last" from rtx to rtx_insn *.
14286 * optabs.c (add_equal_note): Likewise for param "insns" and local
14288 (expand_binop_directly): Add checked casts to rtx_insn * within
14289 NEXT_INSN (pat) uses.
14290 (expand_unop_direct): Likewise.
14291 (maybe_emit_unop_insn): Likewise.
14292 * recog.c (peep2_attempt): Strengthen locals "last",
14293 "before_try", "x" from rtx to rtx_insn *.
14294 * reorg.c (optimize_skip): Strengthen return type and local
14295 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
14296 and locals "trial", "next_trial" from rtx to rtx_insn *.
14297 * resource.c (next_insn_no_annul): Strengthen return type and
14298 param "insn" from rtx to rtx_insn *. Use a cast to and method of
14299 rtx_sequence to clarify the code.
14300 (mark_referenced_resources): Add a checked cast to rtx_insn *
14301 within PREV_INSN (x).
14302 (find_dead_or_set_registers): Strengthen return type, param
14303 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
14304 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
14306 (mark_target_live_regs): Strengthen params "insns" and "target",
14307 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
14308 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
14310 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
14311 from rtx to rtx_insn *.
14312 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
14313 from rtx to rtx_insn *.
14314 (copy_reg_eh_region_note_backward): Likewise.
14315 (unshare_all_rtl_in_chain): Likewise for sole param.
14316 (dump_rtl_slim): Strengthen second and third params from const_rtx
14317 to const rtx_insn *.
14318 * sched-deps.c (sched_free_deps): Strengthen params "head" and
14319 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
14320 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
14321 "next_tail" from rtx to rtx_insn *.
14322 (begin_move_insn): Likewise for local "next".
14323 * sched-int.h (sched_free_deps): Likewise for first and second
14325 (no_real_insns_p): Strengthen both params from const_rtx to
14327 (sched_setup_bb_reg_pressure_info): Strengthen second params from
14329 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
14331 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
14332 and locals "insn", "tail" from const_rtx to const rtx_insn *.
14333 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
14335 (debug_rtl_slim): Strengthen params "first" and "last" from
14336 const_rtx to const rtx_insn *.
14337 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
14338 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
14339 (convert_to_simple_return): Likewise for param "returnjump".
14340 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
14342 (convert_to_simple_return): Likewise for param "returnjump".
14343 * valtrack.c (propagate_for_debug): Likewise for params
14345 * valtrack.h (propagate_for_debug): Likewise for second param.
14347 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14349 * output.h (insn_current_reference_address): Strengthen param
14350 from rtx to rtx_insn *.
14351 * final.c (insn_current_reference_address): Likewise.
14353 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14355 * basic-block.h (inside_basic_block_p): Strengthen param from
14356 const_rtx to const rtx_insn *.
14357 * cfgbuild.c (inside_basic_block_p): Likewise.
14359 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14361 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
14363 (get_trace_info): Likewise for param "insn".
14364 (save_point_p): Likewise.
14365 (maybe_record_trace_start): Likewise for both params.
14366 (maybe_record_trace_start_abnormal): Likewise.
14367 (create_trace_edges): Likewise for sole param and for three of the
14368 locals named "lab".
14369 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
14370 to rtx_insn *, and update a call to pat->element to pat->insn.
14372 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14374 * function.h (struct expr_status): Convert field "x_forced_labels"
14375 from rtx_expr_list * to rtx_insn_list *.
14377 * cfgbuild.c (make_edges): Convert local "x" from an
14378 rtx_expr_list * to an rtx_insn_list *, replacing use of
14379 "element" method with "insn" method.
14380 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
14381 * except.c (sjlj_emit_dispatch_table): Replace use of
14382 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
14384 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
14385 rtx_expr_list * to an rtx_insn_list *, replacing use of
14386 "element" method with "insn" method.
14387 * reload1.c (set_initial_label_offsets): Likewise for local "x".
14388 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
14389 rtx_insn *, adding a checked cast. Replace use of
14390 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
14392 (expand_label): Likewise for local "label_r".
14394 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14396 * function.h (struct rtl_data): Convert field
14397 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
14399 * rtl.h (remove_node_from_insn_list): New prototype.
14401 * builtins.c (expand_builtin): When prepending to
14402 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
14404 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
14405 to rtx_insn_list *, and use its "insn" method rather than
14407 * cfgrtl.c (delete_insn): Use new function
14408 remove_node_from_insn_list rather than
14409 remove_node_from_expr_list.
14410 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
14411 to rtx_insn_list *, and use its "insn" method rather than
14413 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
14414 * reload1.c (set_initial_label_offsets): Likewise for local "x".
14415 * rtlanal.c (remove_node_from_insn_list): New function, adapted
14416 from remove_node_from_expr_list.
14417 * stmt.c (expand_label): When prepending to
14418 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
14421 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14423 * function.h (struct rtl_data): Strengthen fields "x_return_label"
14424 and "x_naked_return_label" from rtx to rtx_code_label *.
14426 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14428 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
14429 (SET_NEXT_INSN): Likewise.
14430 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
14432 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
14433 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
14434 to split out the SEQUENCE from local "bundle", strengthening the
14435 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
14436 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
14437 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
14438 and the type of the elements of the "slot" array from rtx to
14440 (reorg_split_calls): Likewise for locals "insn" and "next", and
14441 the type of the elements of the "slot" array.
14443 * config/frv/frv.c (frv_nops): Likewise for the elements of this
14445 (frv_function_prologue): Likewise for locals "insn", "next",
14447 (frv_register_nop): Introduce a local "nop_insn" to be the
14448 rtx_insn * containing rtx "nop".
14450 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
14451 used as an insn and sometimes as a pattern, so rename it to
14452 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
14453 using it where dealing with the core insn.
14455 * config/picochip/picochip.c (reorder_var_tracking_notes):
14456 Strengthen locals "insn", "next", "last_insn", "queue",
14457 "next_queue", "prev" from rtx to rtx_insn *.
14459 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
14460 the second param is an rtx_insn ** rather than an rtx **.
14461 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
14462 from rtx to rtx_sequence *, and introduce local named "sequence",
14463 using methods of rtx_sequence to clarify the code.
14464 (remove_insn): Introduce local rtx_sequence * named "sequence" and
14466 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
14467 Rename param "after" to "uncast_after", reintroducing "after" as a
14468 local rtx_insn * with a checked cast.
14469 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
14470 reintroducing "after" as a local rtx_insn * with a checked cast.
14471 Strengthen local "last" from rtx to rtx_insn * and remove the
14472 now-redundant checked casts.
14473 (copy_delay_slot_insn): Strengthen return type and param from rtx
14476 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
14477 "last" from rtx to rtx_insn *.
14479 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14481 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
14482 param from rtx to rtx_insn *.
14484 * emit-rtl.c (copy_delay_slot_insn): Likewise.
14486 * reorg.c (skip_consecutive_labels): Strengthen return type, param
14487 and local "insn" from rtx to rtx_insn *.
14488 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
14489 (unfilled_slots_next): Likewise.
14490 (function_return_label): Strengthen from rtx to rtx_code_label *.
14491 (function_simple_return_label): Likewise.
14492 (first_active_target_insn): Strengthen return type and param from
14494 (find_end_label): Strengthen return type from rtx to
14495 rtx_code_label *; strengthen locals as appropriate.
14496 (emit_delay_sequence): Strengthen return type, param "insn" and
14497 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
14498 and local "li" from rtx to rtx_insn_list *, using methods of
14499 rtx_insn_list for clarity and typesafety.
14500 (add_to_delay_list): Strengthen return type and param "insn" from
14501 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
14502 rtx_insn_list * and use methods of rtx_insn_list.
14503 (delete_from_delay_slot): Strengthen return type, param "insn",
14504 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
14505 Strengthen local "seq" from rtx to rtx_sequence *, and local
14506 "delay_list" from rtx to rtx_insn_list *, using methods of
14507 rtx_sequence for clarity and type-safety.
14508 (delete_scheduled_jump): Add checked cast when invoking
14509 delete_from_delay_slot. Strengthen local "trial" from rtx to
14511 (optimize_skip): Strengthen return type and local "delay_list"
14512 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
14514 (steal_delay_list_from_target): Strengthen return type, param
14515 "delay_list" and local "new_delay_list" from rtx to
14516 rtx_insn_list *. Strengthen param "seq" from rtx to
14517 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
14519 Split out local "temp" into multiple more-tightly scoped locals:
14520 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
14521 of rtx_insn_list and rtx_sequence for clarity and typesafety.
14522 Strengthen locals named "trial" from rtx to rtx_insn *.
14523 (steal_delay_list_from_fallthrough): Strengthen return type and
14524 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
14525 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
14526 Strengthen local "trial" from rtx to rtx_insn *.
14527 (try_merge_delay_insns): Strength local "merged_insns" from rtx
14528 to rtx_insn_list * and use its methods. Strengthen local "pat"
14529 from rtx to rtx_sequence * and use its methods. Strengthen locals
14530 "dtrial" and "new_rtx" from rtx to rtx_insn *.
14531 (get_label_before): Strengthen return type and local "label" from
14533 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
14534 "next_trial", "next", prev". Strengthen local "delay_list" from
14535 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
14537 (follow_jumps): Strengthen return type, param "label" and locals
14538 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
14539 (fill_slots_from_thread): Strengthen return type, param
14540 "delay_list" from rtx to rtx_insn_list *. Strengthen params
14541 "insn", "thread", "opposite_thread" and locals "new_thread",
14542 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
14543 "sequence" from a checked cast to rtx_sequence so that we can call
14544 steal_delay_list_from_target and steal_delay_list_from_fallthrough
14545 with an rtx_sequence *.
14546 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
14547 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
14548 Strengthen local "delay_list" from rtx to rtx_insn_list *.
14549 (relax_delay_slots): Strengthen param "first" and locals "insn",
14550 "next", "trial", "delay_insn", "target_label" from rtx to
14551 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
14552 Introduce a local "trial_seq" for PATTERN (trial) of type
14553 rtx_sequence *, in both cases using methods of rtx_sequence.
14554 (dbr_schedule): Strengthen param "first" and locals "insn",
14555 "next", "epilogue_insn" from rtx to rtx_insn *.
14557 2014-08-28 Richard Biener <rguenther@suse.de>
14559 PR tree-optimization/62283
14560 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14561 Do not peel loops for alignment where the vector loop likely
14562 doesn't run at least VF times.
14564 2014-08-28 Bin Cheng <bin.cheng@arm.com>
14566 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
14567 important_candidates. Consider all important candidates if
14568 IVS doesn't give any result. Remove check on ivs->upto.
14569 (try_add_cand_for): Call iv_ca_add_use only once.
14571 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14572 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14573 Anna Tikhonova <anna.tikhonova@intel.com>
14574 Ilya Tocar <ilya.tocar@intel.com>
14575 Andrey Turetskiy <andrey.turetskiy@intel.com>
14576 Ilya Verbin <ilya.verbin@intel.com>
14577 Kirill Yukhin <kirill.yukhin@intel.com>
14578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14580 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
14581 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
14583 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
14584 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
14585 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
14586 (define_insn "*mul<mode>3"): Add EVEX version.
14588 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14589 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14590 Anna Tikhonova <anna.tikhonova@intel.com>
14591 Ilya Tocar <ilya.tocar@intel.com>
14592 Andrey Turetskiy <andrey.turetskiy@intel.com>
14593 Ilya Verbin <ilya.verbin@intel.com>
14594 Kirill Yukhin <kirill.yukhin@intel.com>
14595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14597 * config/i386/sse.md
14598 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
14599 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
14600 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
14601 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
14602 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
14603 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
14604 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
14605 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
14606 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
14607 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
14608 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
14609 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
14610 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
14611 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
14612 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
14613 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
14615 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14616 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14617 Anna Tikhonova <anna.tikhonova@intel.com>
14618 Ilya Tocar <ilya.tocar@intel.com>
14619 Andrey Turetskiy <andrey.turetskiy@intel.com>
14620 Ilya Verbin <ilya.verbin@intel.com>
14621 Kirill Yukhin <kirill.yukhin@intel.com>
14622 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14624 * config/i386/sse.md
14625 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
14626 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
14627 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
14629 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14631 Anna Tikhonova <anna.tikhonova@intel.com>
14632 Ilya Tocar <ilya.tocar@intel.com>
14633 Andrey Turetskiy <andrey.turetskiy@intel.com>
14634 Ilya Verbin <ilya.verbin@intel.com>
14635 Kirill Yukhin <kirill.yukhin@intel.com>
14636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14638 * config/i386/sse.md
14639 (define_mode_iterator VI128_256): New.
14640 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
14642 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14643 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14644 Anna Tikhonova <anna.tikhonova@intel.com>
14645 Ilya Tocar <ilya.tocar@intel.com>
14646 Andrey Turetskiy <andrey.turetskiy@intel.com>
14647 Ilya Verbin <ilya.verbin@intel.com>
14648 Kirill Yukhin <kirill.yukhin@intel.com>
14649 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14651 * config/i386/sse.md
14652 (define_mode_iterator VI8_256_512): New.
14653 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
14655 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
14656 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
14658 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
14660 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14662 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
14663 pointer to the cumulative reloc value and return the value for
14664 this reloc instead.
14665 (compute_reloc_for_rtx): Take a const_rtx. Call
14666 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
14667 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
14668 for_each_rtx for the CONST case.
14670 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14672 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
14673 (mark_constants_in_pattern): ...this new function to iterate over
14675 (mark_constants): Update accordingly.
14677 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14679 * varasm.c: Include rtl-iter.h.
14680 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
14681 Remove the pointer to the cumulative hashval_t and just return
14682 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
14683 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14684 Accumulate the hashval_ts here instead of const_rtx_hash_1.
14686 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14688 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
14689 Give real type of data parameter. Remove return value.
14690 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
14691 to iterate over subrtxes.
14693 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14695 * var-tracking.c (use_narrower_mode_test): Turn from being a
14696 for_each_rtx callback to being a function that examines each
14698 (adjust_mems): Update accordingly.
14700 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14702 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
14703 callback to being a function that examines each subrtx itself.
14704 Remove handling of null rtxes.
14705 (add_uses): Update accordingly.
14707 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14709 * var-tracking.c: Include rtl-iter.h.
14710 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
14711 to being a function that examines each subrtx itself.
14712 (use_type): Update accordingly.
14714 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14716 * store-motion.c: Include rtl-iter.h.
14717 (extract_mentioned_regs_1): Delete.
14718 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
14719 for_each_rtx to iterate over subrtxes.
14721 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14723 * sel-sched.c: Include rtl-iter.h
14724 (count_occurrences_1): Delete.
14725 (count_occurrences_equiv): Turn rtxes into const_rtxes.
14726 Use FOR_EACH_SUBRTX rather than for_each_rtx.
14728 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14730 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
14731 * rtlanal.c (tls_referenced_p_1): Delete.
14732 (tls_referenced_p): Take a const_rtx rather than an rtx.
14733 Use FOR_EACH_SUBRTX rather than for_each_rtx.
14735 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14737 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
14738 (for_each_inc_dec): Take an rtx rather than an rtx *.
14739 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
14740 (cselib_record_sets): Likewise.
14741 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
14742 (check_for_inc_dec): Likewise.
14743 * rtlanal.c (for_each_inc_dec_ops): Delete.
14744 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
14745 rather than a pointer to the memory address. Replace
14746 for_each_inc_dec_ops argument with separate function and data
14747 arguments. Abort on non-autoinc addresses.
14748 (for_each_inc_dec_find_mem): Delete.
14749 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
14750 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
14752 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14754 * rtl.h (find_all_hard_regs): Declare.
14755 * rtlanal.c (find_all_hard_regs): New function.
14756 (record_hard_reg_uses_1): Delete.
14757 (record_hard_reg_uses): Use find_all_hard_regs.
14759 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14761 * rtl.h (replace_label_data): Delete.
14762 (replace_label): Take the old label, new label and update-nuses flag
14763 as direct arguments. Return void.
14764 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
14765 * rtlanal.c (replace_label): Update interface as above. Handle
14766 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
14767 iterator. Use FOR_EACH_SUBRTX_PTR.
14769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14771 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
14772 with const_rtx parameters.
14773 * varasm.c (get_pool_constant): Likewise.
14774 * rtlanal.c (rtx_referenced_p_1): Delete.
14775 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14776 Assert that the rtx we're looking for is nonnull. Allow searches
14777 for constant pool SYMBOL_REFs.
14779 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14781 * reload1.c: Include rtl-iter.h.
14782 (note_reg_elim_costly): Turn from being a for_each_rtx callback
14783 to being a function that examines each subrtx itself.
14784 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
14786 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14788 * regcprop.c (cprop_find_used_regs_1): Delete.
14789 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14791 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14793 * regcprop.c: Include rtl-iter.h.
14794 (kill_value): Take a const_rtx.
14795 (kill_autoinc_value): Turn from being a for_each_rtx callback
14796 to being a function that examines each subrtx itself.
14797 (copyprop_hardreg_forward_1): Update accordingly.
14799 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14801 * reg-stack.c: Include rtl-iter.h.
14802 (subst_stack_regs_in_debug_insn): Delete.
14803 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
14804 instead of for_each_rtx.
14806 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14808 * lower-subreg.c (find_decomposable_subregs): Turn from being
14809 a for_each_rtx callback to being a function that examines each
14810 subrtx itself. Remove handling of null rtxes.
14811 (decompose_multiword_subregs): Update accordingly.
14813 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14815 * lower-subreg.c (adjust_decomposed_uses): Delete.
14816 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
14817 Remove handling of null rtxes.
14819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14821 * lower-subreg.c: Include rtl-iter.h.
14822 (resolve_subreg_use): Turn from being a for_each_rtx callback
14823 to being a function that examines each subrtx itself. Remove
14824 handling of null rtxes.
14825 (resolve_reg_notes, resolve_simple_move): Update accordingly.
14826 (decompose_multiword_subregs): Likewise.
14828 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14830 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
14831 to being a function that examines each subrtx itself.
14832 (simplify_using_condition, simplify_using_initial_values): Update
14835 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14837 * loop-iv.c: Include rtl-iter.h.
14838 (find_single_def_src): New function.
14839 (replace_single_def_regs): Turn from being a for_each_rtx callback
14840 to being a function that examines each subrtx itself.
14841 (replace_in_expr, simplify_using_initial_values): Update accordingly.
14843 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14845 * jump.c (eh_returnjump_p_1): Delete.
14846 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
14847 Remove handling of null rtxes.
14849 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14851 * jump.c: Include rtl-iter.h.
14852 (returnjump_p_1): Delete.
14853 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
14854 Remove handling of null rtxes.
14856 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14858 * ira.c: Include rtl-iter.h.
14859 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
14860 to being a function that examines each subrtx itself. Remove
14861 handling of null rtxes.
14862 (update_equiv_regs): Update call accordingly.
14864 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14866 * fwprop.c: Include rtl-iter.h.
14867 (varying_mem_p): Turn from being a for_each_rtx callback to being
14868 a function that examines each subrtx itself.
14869 (propagate_rtx): Update accordingly.
14871 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14873 * function.c: Include rtl-iter.h
14874 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
14875 callback to being a function that examines each subrtx itself.
14876 Return the changed flag.
14877 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
14878 (instantiate_virtual_regs): Update calls accordingly.
14880 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14882 * final.c: Include rtl-iter.h.
14883 (mark_symbol_ref_as_used): Delete.
14884 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
14887 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14889 * emit-rtl.c: Include rtl-iter.h.
14890 (find_auto_inc): Turn from being a for_each_rtx callback to being
14891 a function that examines each subrtx itself. Assume the first operand
14892 to an RTX_AUTOINC is the automodified register.
14893 (try_split): Update call accordingly.
14895 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14897 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
14898 Return a bool, inverting the result so that 0/false means "not ok".
14899 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
14900 subrtxes of a CONST.
14901 (mem_loc_descriptor, add_const_value_attribute)
14902 (resolve_addr_in_expr): Update calls accordingly.
14904 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14906 * dwarf2out.c: Include rtl-iter.h.
14907 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
14908 Remove unused data parameter. Return a bool, inverting the result
14909 so that 0/false means "not ok".
14910 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
14911 instead of for_each_rtx.
14913 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14915 * dse.c: Include rtl-iter.h.
14916 (check_mem_read_rtx): Change void * parameter to real type.
14917 Remove return value.
14918 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
14919 for_each_rtx. Don't handle null rtxes.
14921 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14923 * df-problems.c: Include rtl-iter.h.
14924 (find_memory): Turn from being a for_each_rtx callback to being
14925 a function that examines each subrtx itself. Continue to look for
14926 volatile references even after a nonvolatile one has been found.
14927 (can_move_insns_across): Update calls accordingly.
14929 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14931 * ddg.c (walk_mems_2, walk_mems_1): Delete.
14932 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
14933 to iterate over subrtxes. Return a bool rather than an int.
14935 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14937 * ddg.c: Include rtl-iter.h.
14938 (mark_mem_use_1): Rename to...
14939 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
14940 instead of for_each_rtx.
14941 (mem_read_insn_p): Update accordingly.
14943 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14945 * cse.c (change_cc_mode_args): Delete.
14946 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
14947 a function that examines each subrtx itself. Take the fields of
14948 change_cc_mode_args as argument and return void.
14949 (cse_change_cc_mode_insn): Update calls accordingly.
14951 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14953 * cse.c (is_dead_reg): Change argument to const_rtx.
14954 (dead_debug_insn_data): Delete.
14955 (is_dead_debug_insn): Expand commentary. Turn from being a
14956 for_each_rtx callback to being a function that examines
14957 each subrtx itself. Take the fields of dead_debug_insn_data
14959 (delete_trivially_dead_insns): Update call accordingly.
14961 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14963 * cse.c (check_for_label_ref): Move earlier in file. Turn from
14964 being a for_each_rtx callback to being a function that examines
14965 each subrtx itself.
14966 (cse_extended_basic_block): Update call accordingly.
14968 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14970 * cse.c (check_dependence_data): Delete.
14971 (check_dependence): Change from being a for_each_rtx callback to being
14972 a function that examines all subrtxes itself. Don't handle null rtxes.
14973 (invalidate): Update call accordingly.
14975 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14977 * cse.c: Include rtl-iter.h.
14978 (approx_reg_cost_1): Delete.
14979 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14980 Don't handle null rtxes.
14982 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14984 * cfgcleanup.c: Include rtl-iter.h.
14985 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
14986 to being a function that examines each subrtx itself.
14987 (thread_jump): Update accordingly.
14989 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14991 * combine-stack-adj.c: Include rtl-iter.h.
14992 (record_stack_refs_data): Delete.
14993 (record_stack_refs): Turn from being a for_each_rtx callback
14994 to being a function that examines each subrtx itself.
14995 Take a pointer to the reflist. Invert sense of return value
14996 so that true means success and false means failure. Don't
14998 (combine_stack_adjustments_for_block): Update accordingly.
15000 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
15002 * combine.c (record_truncated_value): Turn from being a for_each_rtx
15003 callback to a function that takes an rtx and returns a bool
15004 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
15007 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
15009 * combine.c: Include rtl-iter.h.
15010 (unmentioned_reg_p_1): Delete.
15011 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
15012 Don't handle null rtxes.
15014 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
15016 * calls.c: Include rtl-iter.h.
15017 (internal_arg_pointer_based_exp_1): Delete.
15018 (internal_arg_pointer_based_exp): Take a const_rtx.
15019 Use FOR_EACH_SUBRTX to iterate over subrtxes.
15021 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
15023 * caller-save.c: Include rtl-iter.h.
15024 (add_used_regs_1): Delete.
15025 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
15026 to iterate over subrtxes. Assert that any remaining pseudos
15029 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
15031 * bt-load.c: Include rtl-iter.h.
15032 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
15033 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
15034 to iterate over subrtxes.
15035 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
15036 find_btr_use rather than btr_referenced_p.
15038 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
15040 * alias.c: Include rtl-iter.h.
15041 (refs_newer_value_cb): Delete.
15042 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
15044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
15046 * rtl-iter.h: New file.
15047 * rtlanal.c: Include it.
15048 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
15049 (generic_subrtx_iterator <T>::add_single_to_queue)
15050 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
15051 (generic_subrtx_iterator <T>::free_array): New functions.
15052 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
15053 (generic_subrtx_iterator <const_rtx_accessor>)
15054 (generic_subrtx_iterator <rtx_var_accessor>
15055 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
15056 (setup_reg_subrtx_bounds): New function.
15057 (init_rtlanal): Call it.
15059 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
15062 * config/sh/sh.md (ashlsi3): Handle negative shift count for
15064 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
15066 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
15068 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
15070 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15072 * rtl.h (JUMP_LABEL_AS_INSN): New.
15074 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15076 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
15078 (alloc_EXPR_LIST): Strengthen return type from rtx to
15080 (remove_free_EXPR_LIST_node): Likewise for param.
15081 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
15082 from rtx to rtx_expr_list *.
15083 * sched-int.h (struct deps_desc): Strengthen fields
15084 "pending_read_mems" and "pending_write_mems" from rtx to
15087 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
15088 rtx to rtx_expr_list *.
15089 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
15090 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
15092 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
15093 from rtx to rtx_expr_list *.
15094 * loop-iv.c (simplify_using_initial_values): Strengthen local
15095 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
15096 "pnote_next" from rtx * to rtx_expr_list **.
15097 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
15098 param "exprp" from rtx * to rtx_expr_list **.
15099 (add_insn_mem_dependence): Strengthen local "mem_list" from
15100 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
15101 to rtx_expr_list *.
15102 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
15103 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
15104 param "old_mems_p" from rtx * to rtx_expr_list **.
15105 * var-tracking.c (struct adjust_mem_data): Strengthen field
15106 "side_effects" from rtx to rtx_expr_list *.
15107 (adjust_insn): Replace NULL_RTX with NULL when assigning to
15109 (prepare_call_arguments): Likewise.
15111 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15113 * function.h (struct rtl_data): Strengthen field
15114 "x_stack_slot_list" from rtx to rtx_expr_list *.
15116 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
15117 when assigning to stack_slot_list.
15119 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15121 * function.h (struct rtl_data): Strengthen field
15122 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
15123 * rtl.h (remove_node_from_expr_list): Strengthen second param from
15124 rtx * to rtx_expr_list **.
15126 * cfgbuild.c (make_edges): In loop over
15127 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
15128 rtx_expr_list *, and use methods of the latter class to clarify
15130 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
15131 rtx_expr_list *, and use methods of the latter class to clarify
15133 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
15134 * reload1.c (set_initial_label_offsets): Likewise for local "x".
15135 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
15136 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
15137 to rtx_expr_list *. Use methods of the latter class to clarify
15140 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15142 * function.h (struct expr_status): Strengthen field
15143 "x_forced_labels" from rtx to rtx_expr_list *.
15145 * cfgbuild.c (make_edges): Split local "x" into two locals,
15146 strengthening one from rtx to rtx_expr_list *, and using methods
15148 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
15149 loop over forced_labels, introduce strengthen it from rtx to
15150 rtx_expr_list *, using methods to clarify the code.
15151 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
15152 to rtx_expr_list *, using methods of said class to clarify the
15154 * reload1.c (set_initial_label_offsets): Split local "x" into two
15155 per-loop variables, strengthening the first from rtx to
15156 rtx_expr_list * and using methods.
15158 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15160 * coretypes.h (class rtx_expr_list): Add forward declaration.
15161 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
15162 * gengenrtl.c (special_rtx): Add EXPR_LIST.
15163 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
15164 invariant: GET_CODE (X) == EXPR_LIST.
15165 (is_a_helper <rtx_expr_list *>::test): New.
15166 (rtx_expr_list::next): New.
15167 (rtx_expr_list::element): New.
15168 (gen_rtx_EXPR_LIST): New.
15170 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15172 * varasm.c (mark_constants): Convert a GET_CODE check into a
15173 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
15174 Use methods of rtx_sequence to clarify the code.
15176 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15178 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
15179 local "seq" via a checked cast, and use methods of rtx_sequence
15180 to simplify the code.
15182 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15184 * resource.c (mark_referenced_resources): Strengthen local
15185 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
15186 using methods of rtx_sequence to clarify the code.
15187 (find_dead_or_set_registers): Within the switch statement, convert
15188 a GET_CODE check to a dyn_cast, introducing local "seq". Within
15189 the JUMP_P handling, introduce another local "seq", adding a
15190 checked cast to rtx_sequence *. In both cases, use methods of
15191 rtx_sequence to clarify the code.
15192 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
15193 via a checked cast, and use methods of rtx_sequence to simplify
15196 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15198 * reorg.c (redundant_insn): In two places in the function, replace
15199 a check of GET_CODE with a dyn_cast, introducing local "seq", and
15200 usings methods of rtx_sequence to clarify the code.
15202 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15204 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
15205 local "seq" with a checked cast, and use methods of rtx_sequence
15206 to clarify the code.
15208 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15210 * function.c (contains): Introduce local "seq" for PATTERN (insn),
15211 with a checked cast, in the region for where we know it's a
15212 SEQUENCE. Use methods of rtx_sequence.
15214 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15216 * final.c (get_attr_length_1): Replace GET_CODE check with a
15217 dyn_cast, introducing local "seq" and the use of methods of
15219 (shorten_branches): Likewise, introducing local "body_seq".
15220 Strengthen local "inner_insn" from rtx to rtx_insn *.
15221 (reemit_insn_block_notes): Replace GET_CODE check with a
15222 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
15223 Use methods of rtx_sequence.
15224 (final_scan_insn): Likewise, introducing local "seq" for when
15225 "body" is known to be a SEQUENCE, using its methods.
15227 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15229 * except.c (can_throw_external): Strengthen local "seq" from rtx
15230 to rtx_sequence *. Use methods of rtx_sequence.
15231 (insn_nothrow_p): Likewise.
15233 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15235 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
15236 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
15237 Use methods of rtx_sequence.
15238 (scan_trace): Likewise for local "pat".
15240 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15242 * coretypes.h (class rtx_sequence): Add forward declaration.
15243 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
15244 invariant: GET_CODE (X) == SEQUENCE.
15245 (is_a_helper <rtx_sequence *>::test): New.
15246 (is_a_helper <const rtx_sequence *>::test): New.
15247 (rtx_sequence::len): New.
15248 (rtx_sequence::element): New.
15249 (rtx_sequence::insn): New.
15251 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15253 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
15255 (alloc_INSN_LIST): Strengthen return type from rtx to
15257 (copy_INSN_LIST): Likewise for return type and param.
15258 (concat_INSN_LIST): Likewise for both params and return type.
15259 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
15260 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
15261 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
15262 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
15264 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
15265 "implicit_sets", "control_uses", "clobbers" from rtx to
15267 (struct deps_desc): Likewise for fields "pending_read_insns",
15268 "pending_write_insns", "pending_jump_insns",
15269 "last_pending_memory_flush", "last_function_call",
15270 "last_function_call_may_noreturn", "sched_before_next_call",
15271 "sched_before_next_jump".
15272 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
15273 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
15275 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
15276 from rtx to rtx_insn_list *.
15277 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
15280 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
15281 to rtx_insn_list **.
15282 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
15284 (queue_insn): Likewise for local "link".
15285 (struct haifa_saved_data): Strengthen field "insn_queue" from
15286 rtx * to rtx_insn_list **.
15287 (save_backtrack_point): Update allocation of save->insn_queue to
15288 reflect the strengthening of elements from rtx to rtx_insn_list *.
15289 (queue_to_ready): Strengthen local "link" from rtx to
15290 rtx_insn_list *; use methods "next" and "insn" when traversing the
15292 (early_queue_to_ready): Likewise for locals "link", "next_link",
15294 (schedule_block): Update allocation of insn_queue to reflect the
15295 strengthening of elements from rtx to rtx_insn_list *. Strengthen
15296 local "link" from rtx to rtx_insn_list *, and use methods when
15298 (add_to_speculative_block): Strengthen locals "twins" and
15299 "next_node" from rtx to rtx_insn_list *, and use methods when
15300 working with them. Strengthen local "twin" from rtx to
15301 rtx_insn *, eliminating a checked cast.
15302 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
15303 from rtx to rtx_insn_list *, and use methods when working with
15306 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
15307 from rtx to rtx_insn_list *, adding a checked cast.
15308 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
15310 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
15311 "newlink" from rtx to rtx_insn_list *. Strengthen local
15312 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
15313 from rtx to rtx_insn *.
15314 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
15315 from rtx to rtx_insn_list *. Use methods of the latter class.
15316 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
15317 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
15318 (remove_free_INSN_LIST_node): Strengthen return type and local
15319 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
15320 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
15321 rtx_insn_list *, using "insn" method.
15323 * sched-deps.c (add_dependence_list): Strengthen param "list"
15324 from rtx to rtx_insn_list *, and use methods when working with it.
15325 (add_dependence_list_and_free): Strengthen param "listp" from
15326 rtx * to rtx_insn_list **.
15327 (remove_from_dependence_list): Strenghten param "listp" from rtx *
15328 to rtx_insn_list **, and use methods when working with *listp.
15329 (remove_from_both_dependence_lists): Strengthen param "listp" from
15330 rtx * to rtx_insn_list **
15331 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
15332 to rtx_insn_list **. Eliminate local "link", in favor of two new
15333 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
15335 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
15336 by introducing local "cond_deps".
15337 (remove_from_deps): Strengthen param "insn" from rtx to
15340 * sched-rgn.c (concat_insn_mem_list): Strengthen param
15341 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
15342 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
15343 Use methods of rtx_insn_list.
15345 * store-motion.c (struct st_expr): Strengthen fields
15346 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
15347 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
15349 (find_moveable_store): Split out "tmp" into multiple more-tightly
15350 scoped locals. Use methods of rtx_insn_list *.
15351 (compute_store_table): Strengthen local "tmp" from rtx to
15352 rtx_insn *. Use methods of rtx_insn_list *.
15354 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15356 * coretypes.h (class rtx_insn_list): Add forward declaration.
15357 * rtl.h (class rtx_insn_list): New subclass of rtx_def
15358 (is_a_helper <rtx_insn_list *>::test): New.
15359 (rtx_insn_list::next): New.
15360 (rtx_insn_list::insn): New.
15361 (gen_rtx_INSN_LIST): Add prototype.
15362 * emit-rtl.c (gen_rtx_INSN_LIST): New.
15363 * gengenrtl.c (special_rtx): Add INSN_LIST.
15365 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15367 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
15368 "prev" from rtx to rtx_insn *.
15370 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15372 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
15373 functions. Require merely an rtx for now, not an rtx_insn *.
15374 (BLOCK_FOR_INSN): Likewise.
15375 (INSN_LOCATION): Likewise.
15376 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
15378 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15380 * rtl.h (PATTERN): Convert this macro into a pair of inline
15381 functions, for now, requiring const_rtx and rtx.
15383 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15385 * target.def (unwind_emit): Strengthen param "insn" from rtx to
15387 (final_postscan_insn): Likewise.
15388 (adjust_cost): Likewise.
15389 (adjust_priority): Likewise.
15390 (variable_issue): Likewise.
15391 (macro_fusion_pair_p): Likewise.
15392 (dfa_post_cycle_insn): Likewise.
15393 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
15394 (first_cycle_multipass_issue): Likewise.
15395 (dfa_new_cycle): Likewise.
15396 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
15397 (speculate_insn): Likewise for param "insn".
15398 (gen_spec_check): Likewise for params "insn" and "label".
15399 (get_insn_spec_ds): Likewise for param "insn".
15400 (get_insn_checked_ds): Likewise.
15401 (dispatch_do): Likewise.
15402 (dispatch): Likewise.
15403 (cannot_copy_insn_p): Likewise.
15404 (invalid_within_doloop): Likewise.
15405 (legitimate_combined_insn): Likewise.
15406 (needed): Likewise.
15409 * doc/tm.texi: Automatically updated to reflect changes to
15412 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
15414 (schedule_block): Likewise.
15415 (sched_init): Likewise.
15416 (sched_speculate_insn): Strengthen param "insn" from rtx to
15418 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
15420 * hooks.c (hook_bool_rtx_true): Rename to...
15421 hook_bool_rtx_insn_true): ...this, and strengthen first param from
15423 (hook_constcharptr_const_rtx_null): Rename to...
15424 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
15425 first param from const_rtx to const rtx_insn *.
15426 (hook_bool_rtx_int_false): Rename to...
15427 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
15428 param from rtx to rtx_insn *.
15429 (hook_void_rtx_int): Rename to...
15430 (hook_void_rtx_insn_int): ...this, and strengthen first param from
15433 * hooks.h (hook_bool_rtx_true): Rename to...
15434 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
15436 (hook_bool_rtx_int_false): Rename to...
15437 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
15438 param from rtx to rtx_insn *.
15439 (hook_void_rtx_int): Rename to...
15440 (hook_void_rtx_insn_int): ...this, and strengthen first param from
15442 (hook_constcharptr_const_rtx_null): Rename to...
15443 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
15444 first param from const_rtx to const rtx_insn *.
15446 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
15447 and local "prev" from rtx to rtx_insn *.
15449 * sched-int.h (sched_speculate_insn): Strengthen first param from
15452 * sel-sched.c (create_speculation_check): Likewise for local "label".
15453 * targhooks.c (default_invalid_within_doloop): Strengthen param
15454 "insn" from const_rtx to const rtx_insn *.
15455 * targhooks.h (default_invalid_within_doloop): Strengthen param
15456 from const_rtx to const rtx_insn *.
15458 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
15459 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
15461 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
15463 (arc_invalid_within_doloop): Likewise, with const.
15465 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
15466 (arm_cannot_copy_insn_p): Likewise for param "insn".
15467 (arm_unwind_emit): Likewise.
15469 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
15472 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
15473 (c6x_variable_issue): Likewise. Removed now-redundant checked
15475 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
15477 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
15478 Likewise for param "insn".
15479 (epiphany_mode_after): Likewise.
15480 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
15481 params "insn", "dep_insn".
15482 (epiphany_mode_needed): Likewise for param "insn".
15483 (epiphany_mode_after): Likewise.
15485 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
15486 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15487 (ix86_avx_u128_mode_needed): Likewise.
15488 (ix86_i387_mode_needed): Likewise.
15489 (ix86_mode_needed): Likewise.
15490 (ix86_avx_u128_mode_after): Likewise.
15491 (ix86_mode_after): Likewise.
15492 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
15493 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
15494 (ix86_adjust_priority): Likewise for param "insn".
15495 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
15496 (do_dispatch): Likewise.
15497 (has_dispatch): Likewise.
15498 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
15500 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
15501 reflect renaming of default hook implementation from
15502 hook_constcharptr_const_rtx_null to
15503 hook_constcharptr_const_rtx_insn_null.
15504 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
15506 (ia64_variable_issue): Likewise for param "insn".
15507 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
15508 (ia64_dfa_new_cycle): Likewise.
15509 (ia64_get_insn_spec_ds): Likewise.
15510 (ia64_get_insn_checked_ds): Likewise.
15511 (ia64_speculate_insn): Likewise.
15512 (ia64_gen_spec_check): Likewise for params "insn", "label".
15513 (ia64_asm_unwind_emit): Likewise for param "insn".
15515 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
15517 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
15518 "insn", "def_insn".
15519 (m68k_sched_variable_issue): Likewise for param "insn".
15521 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
15524 * config/microblaze/microblaze.c (microblaze_adjust_cost):
15525 Likewise for params "insn", "dep".
15527 * config/mips/mips.c (mips_adjust_cost): Likewise.
15528 (mips_variable_issue): Likewise for param "insn".
15529 (mips_final_postscan_insn): Likewise.
15531 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
15532 for params "insn", "dep".
15534 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
15536 (pa_adjust_priority): Likewise for param "insn".
15538 * config/picochip/picochip.c (picochip_sched_adjust_cost):
15539 Likewise for params "insn", "dep_insn".
15541 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
15543 (rs6000_variable_issue): Likewise.
15544 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
15545 (rs6000_debug_adjust_cost): Likewise.
15546 (rs6000_adjust_priority): Likewise for param "insn".
15547 (rs6000_use_sched_lookahead_guard): Likewise.
15548 (get_next_active_insn): Likewise for return type and both params.
15549 (redefine_groups): Likewise for params "prev_head_insn", "tail"
15550 and locals "insn", "next_insn".
15551 (pad_groups): Likewise.
15553 * config/s390/s390.c (s390_adjust_priority): Likewise for param
15555 (s390_cannot_copy_insn_p): Likewise.
15556 (s390_sched_variable_issue): Likewise for third param, eliminating
15558 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
15559 default hook implementation from hook_constcharptr_const_rtx_null
15560 to hook_constcharptr_const_rtx_insn_null.
15562 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
15563 from rtx to rtx_insn *.
15564 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
15565 (sh_variable_issue): Likewise for param "insn".
15566 (sh_dfa_new_cycle): Likewise.
15567 (sh_mode_needed): Likewise.
15568 (sh_mode_after): Likewise.
15570 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
15571 params "insn", "dep_insn".
15572 (hypersparc_adjust_cost): Likewise.
15573 (sparc_adjust_cost): Likewise.
15575 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
15576 param, eliminated checked cast.
15577 (spu_sched_adjust_cost): Likewise for first and third params.
15579 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
15580 params "insn" and "dep_insn" from rtx to rtx_insn *.
15582 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
15584 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15586 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
15587 (set_is_load_p): ...this, updating to work on a SET pattern rather
15589 (is_store_insn): Rename to...
15590 (set_is_store_p): ...this, updating to work on a SET pattern
15591 rather than an insn.
15592 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
15593 top of function to where it is needed. Rewrite the bogus
15594 condition that checks for "insn" and "dep" being PARALLEL to
15595 instead use single_set, introducing locals "insn_set" and
15596 "dep_set". Given that we only ever returned "cost" for a non-pair
15597 of SETs, bail out early if we don't have a pair of SET.
15598 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
15599 use the new locals "insn_set" and "dep_set", and update calls to
15600 is_load_insn and is_store_insn to be calls to set_is_load_p and
15603 2014-08-27 Guozhi Wei <carrot@google.com>
15606 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
15607 amount before using it.
15609 2014-08-27 Richard Biener <rguenther@suse.de>
15611 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
15612 get_maxval_strlen inside a more useful API.
15613 (gimple_fold_builtin_with_strlen): Remove and fold into ...
15614 (gimple_fold_builtin): ... caller.
15615 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
15616 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
15617 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
15618 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
15619 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
15620 gimple_fold_builtin_sprintf): Adjust to compute maxval
15623 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
15626 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
15628 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
15629 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15630 Anna Tikhonova <anna.tikhonova@intel.com>
15631 Ilya Tocar <ilya.tocar@intel.com>
15632 Andrey Turetskiy <andrey.turetskiy@intel.com>
15633 Ilya Verbin <ilya.verbin@intel.com>
15634 Kirill Yukhin <kirill.yukhin@intel.com>
15635 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15637 * config/i386/sse.md
15638 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
15639 Use `concat_tg_mode' attribute to determine asm register size.
15641 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
15642 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15643 Anna Tikhonova <anna.tikhonova@intel.com>
15644 Ilya Tocar <ilya.tocar@intel.com>
15645 Andrey Turetskiy <andrey.turetskiy@intel.com>
15646 Ilya Verbin <ilya.verbin@intel.com>
15647 Kirill Yukhin <kirill.yukhin@intel.com>
15648 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15650 * config/i386/sse.md
15651 (define_mode_iterator VI48_AVX512VL): New.
15652 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
15653 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
15654 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
15655 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15656 with VI1): Change mode iterator.
15657 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15658 with VI_ULOADSTORE_BW_AVX512VL): New.
15659 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15660 with VI_ULOADSTORE_F_AVX512VL): Ditto.
15661 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15662 with VI1): Change mode iterator.
15663 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15664 with VI_ULOADSTORE_BW_AVX512VL): New.
15665 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15666 with VI_ULOADSTORE_F_AVX512VL): Ditto.
15667 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
15668 with VI1): Change mode iterator.
15669 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
15670 with VI_ULOADSTORE_BW_AVX512VL): New.
15671 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
15672 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
15673 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
15674 (define_insn "<avx512>_storedqu<mode>_mask" with
15675 VI48_AVX512VL): New.
15676 (define_insn "<avx512>_storedqu<mode>_mask" with
15677 VI12_AVX512VL): Ditto.
15679 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
15680 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15681 Anna Tikhonova <anna.tikhonova@intel.com>
15682 Ilya Tocar <ilya.tocar@intel.com>
15683 Andrey Turetskiy <andrey.turetskiy@intel.com>
15684 Ilya Verbin <ilya.verbin@intel.com>
15685 Kirill Yukhin <kirill.yukhin@intel.com>
15686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15688 * config/i386/sse.md
15689 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
15690 (define_mode_iterator VI48_AVX512BW): New.
15691 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
15692 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
15693 with VI48_AVX2_48_AVX512F): New.
15694 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
15695 with VI2_AVX512VL): Ditto.
15697 2014-08-27 Richard Biener <rguenther@suse.de>
15699 PR middle-end/62239
15700 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
15701 (fold_builtin_3): Do not fold strcat_chk here.
15702 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
15704 (gimple_fold_builtin): Fold strcat_chk here.
15706 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
15708 * dwarf2out.h (dwarf2out_decl): Remove prototype.
15709 * dwarf2out.c (dwarf2out_decl): Make static.
15711 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
15713 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
15715 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15717 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
15718 from rtx to rtx_insn *.
15719 (cselib_lookup_from_insn): Likewise for final param.
15720 (cselib_subst_to_values_from_insn): Likewise.
15721 (cselib_add_permanent_equiv): Likewise.
15723 * cselib.c (cselib_current_insn): Likewise for this variable.
15724 (cselib_subst_to_values_from_insn): Likewise for param "insn".
15725 (cselib_lookup_from_insn): Likewise.
15726 (cselib_add_permanent_equiv): Likewise for param "insn" and local
15727 "save_cselib_current_insn".
15728 (cselib_process_insn): Replace use of NULL_RTX with NULL.
15730 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
15731 from rtx to rtx_insn *.
15733 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15735 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
15738 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15740 * df.h (df_dump_insn_problem_function): Strengthen first param of
15741 this callback from const_rtx to const rtx_insn *.
15742 (struct df_insn_info): Strengthen field "insn" from rtx to
15744 (DF_REF_INSN): Eliminate this function, reinstating the older
15746 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
15747 (df_reg_defined): Likewise.
15748 (df_find_use): Likewise.
15749 (df_reg_used): Likewise.
15750 (df_dump_insn_top): Strengthen param 1 from const_rtx to
15752 (df_dump_insn_bottom): Likewise.
15753 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
15754 (df_insn_debug_regno): Likewise.
15755 (debug_df_insn): Likewise.
15756 (df_rd_simulate_one_insn): Likewise for param 2.
15757 (df_word_lr_simulate_defs): Likewise for param 1.
15758 (df_word_lr_simulate_uses): Likewise.
15759 (df_md_simulate_one_insn): Likewise for param 2.
15760 (df_simulate_find_noclobber_defs): Likewise for param 1.
15761 (df_simulate_find_defs): Likewise.
15762 (df_simulate_defs): Likewise.
15763 (df_simulate_uses): Likewise.
15764 (df_simulate_one_insn_backwards): Likewise for param 2.
15765 (df_simulate_one_insn_forwards): Likewise.
15766 (df_uses_create): Likewise for param 2.
15767 (df_insn_create_insn_record): Likewise for param 1.
15768 (df_insn_delete): Likewise.
15769 (df_insn_rescan): Likewise.
15770 (df_insn_rescan_debug_internal): Likewise.
15771 (df_insn_change_bb): Likewise.
15772 (df_notes_rescan): Likewise.
15773 * rtl.h (remove_death): Likewise for param 2.
15774 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
15776 * sched-int.h (reemit_notes): Strengthen param from rtx to
15778 * valtrack.h (propagate_for_debug): Likewise for param 1.
15780 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
15781 local "tmp_rtx" from const_rtx to const rtx_insn *.
15782 * combine.c (remove_death): Strengthen param "insn" from rtx to
15784 (move_deaths): Likewise for local "where_dead".
15785 * cse.c (delete_trivially_dead_insns): Introduce local
15786 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
15787 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
15789 (df_reg_defined): Likewise.
15790 (df_find_use): Likewise.
15791 (df_reg_used): Likewise.
15792 (df_dump_insn_problem_data): Strengthen param "insn" from
15793 const_rtx to const rtx_insn *.
15794 (df_dump_insn_top): Likewise.
15795 (df_dump_insn_bottom): Likewise.
15796 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
15797 (df_insn_debug_regno): Likewise.
15798 (debug_df_insn): Likewise.
15799 (DF_REF_INSN): Delete.
15800 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
15801 from rtx to rtx_insn *.
15802 (df_chain_insn_top_dump): Strengthen param "insn" from
15803 const_rtx to const rtx_insn *.
15804 (df_chain_insn_bottom_dump): Likewise.
15805 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
15807 (df_word_lr_simulate_uses): Likewise.
15808 (df_print_note): Likewise.
15809 (df_remove_dead_and_unused_notes): Likewise.
15810 (df_set_unused_notes_for_mw): Likewise.
15811 (df_set_dead_notes_for_mw): Likewise.
15812 (df_create_unused_note): Likewise.
15813 (df_simulate_find_defs): Likewise.
15814 (df_simulate_find_uses): Likewise.
15815 (df_simulate_find_noclobber_defs): Likewise.
15816 (df_simulate_defs): Likewise.
15817 (df_simulate_uses): Likewise.
15818 (df_simulate_one_insn_backwards): Likewise.
15819 (df_simulate_one_insn_forwards): Likewise.
15820 (df_md_simulate_one_insn): Likewise.
15821 * df-scan.c (df_uses_create): Likewise.
15822 (df_insn_create_insn_record): Likewise.
15823 (df_insn_delete): Likewise.
15824 (df_insn_rescan): Likewise.
15825 (df_insn_rescan_debug_internal): Likewise.
15826 (df_insn_change_bb): Likewise.
15827 (df_notes_rescan): Likewise.
15828 (df_refs_add_to_chains): Likewise.
15829 (df_insn_refs_verify): Likewise.
15830 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
15831 when invoking df_insn_delete.
15832 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
15833 (set_unique_reg_note): Add checked cast.
15834 * final.c (cleanup_subreg_operands): Likewise.
15835 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
15836 "insn" from rtx to rtx_insn *.
15837 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
15838 "last" from rtx to rtx_insn *.
15839 * ira-emit.c (change_regs_in_insn): New function.
15840 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
15841 Invoke change_regs_in_insn rather than change_regs.
15842 * ira.c (update_equiv_regs): Strengthen locals "insn",
15843 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
15844 for_each_rtx_in_insn rather than for_each_rtx.
15845 * recog.c (confirm_change_group): Add checked casts.
15846 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
15848 (peep2_fill_buffer): Add checked cast.
15849 * rtlanal.c (remove_note): Likewise.
15850 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
15851 locals "next" "end" from rtx to rtx_insn *.
15853 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15855 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
15857 (struct reg_use_data): Likewise for field "insn".
15858 (insn_cost): Likewise for param.
15859 (real_insn_for_shadow): Likewise for return type and param.
15860 (increase_insn_priority): Likewise for param 1.
15861 (debug_dependencies): Likewise for both params.
15863 * haifa-sched.c (insn_delay): Likewise for param "insn".
15864 (real_insn_for_shadow): Likewise for return type and param "insn".
15865 (update_insn_after_change): Likewise for param "insn".
15866 (recompute_todo_spec): Likewise for param "next" and locals "pro",
15868 (insn_cost): Likewise for param "insn".
15869 (increase_insn_priority): Likewise.
15870 (calculate_reg_deaths): Likewise.
15871 (setup_insn_reg_pressure_info): Likewise.
15872 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
15873 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
15874 (model_recompute): Likewise.
15875 (must_restore_pattern_p): Likewise for param "next".
15876 (model_excess_cost): Likewise for param "insn".
15877 (queue_remove): Likewise.
15878 (adjust_priority): Likewise for param "prev".
15879 (update_register_pressure): Likewise for param "insn".
15880 (setup_insn_max_reg_pressure): Likewise for local "insn".
15881 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
15882 (model_add_to_schedule): Likewise.
15883 (model_reset_queue_indices): Likewise for local "insn".
15884 (unschedule_insns_until): Strengthen local "recompute_vec" from
15885 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
15886 "con" from rtx to rtx_insn *.
15887 (restore_last_backtrack_point): Likewise for both locals "x". Add
15889 (estimate_insn_tick): Likewise for param "insn".
15890 (commit_schedule): Likewise for params "prev_head", "tail" and
15892 (verify_shadows): Likewise for locals "i1", "i2".
15893 (dump_insn_stream): Likewise for params "head", "tail" and locals
15894 "next_tail", "insn".
15895 (schedule_block): Likewise for locals "insn", "x". Add a checked
15897 (fix_inter_tick): Likewise for params "head", "tail".
15898 (create_check_block_twin): Likewise for local "jump".
15899 (haifa_change_pattern): Likewise for param "insn".
15900 (haifa_speculate_insn): Likewise.
15901 (dump_new_block_header): Likewise for params "head", "tail".
15902 (fix_jump_move): Likewise for param "jump".
15903 (move_block_after_check): Likewise.
15904 (sched_init_insn_luid): Likewise for param "insn".
15905 (sched_init_luids): Likewise for local "insn".
15906 (insn_luid): Likewise for param "insn".
15907 (init_h_i_d): Likewise.
15908 (haifa_init_h_i_d): Likewise for local "insn".
15909 (haifa_init_insn): Likewise for param "insn".
15910 * sched-deps.c (add_dependence): Likewise for local "real_pro",
15912 (create_insn_reg_use): Likewise for param "insn".
15913 (setup_insn_reg_uses): Likewise. Add a checked cast.
15914 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
15915 "tail" from rtx to rtx_insn *.
15916 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
15917 "insn", "next_tail".
15919 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15921 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
15922 from rtx to rtx_insn *.
15923 (model_add_to_schedule): Likewise for locals "start", "end",
15926 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15928 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
15930 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
15931 "to" and locals "insn", "next", "copy". Remove now-redundant
15934 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15936 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
15937 rtx_insn * and param 4 from rtx * to rtx_insn **.
15938 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
15939 param 2 from rtx * to rtx_insn **.
15941 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
15942 rtx_insn * and final param from rtx * to rtx_insn **.
15944 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
15945 from rtx to rtx_insn *.
15946 (try_head_merge_bb): Likewise for both locals named "move_upto".
15947 * df-problems.c (can_move_insns_across): Likewise for params
15948 "from", "to", "across_from", "across_to" and locals "insn",
15949 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
15951 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
15952 from rtx to rtx_insn *.
15953 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
15954 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
15955 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
15957 (noce_try_abs): Likewise.
15958 (noce_get_condition): Likewise for param "jump". Strengthen param
15959 "earliest" from rtx * to rtx_insn **.
15960 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
15962 (find_cond_trap): Likewise.
15963 (dead_or_predicable): Likewise for local "earliest".
15964 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
15966 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
15967 and local "prev". Strengthen param "earliest" from rtx * to
15969 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
15970 Strengthen param "earliest" from rtx * to rtx_insn **.
15972 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15974 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
15975 "to" and local "insn" from rtx to rtx_insn *.
15977 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15979 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
15980 from rtx to rtx_insn *.
15981 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
15982 (code_motion_path_driver): Likewise for local "last_insn".
15983 (simplify_changed_insns): Likewise for local "insn".
15985 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15987 * rtl.h (push_to_sequence): Strengthen param from rtx to
15989 (push_to_sequence2): Likewise for both params.
15990 (delete_insns_since): Likewise for param.
15991 (reorder_insns_nobb): Likewise for all three params.
15992 (set_new_first_and_last_insn): Likewise for both params.
15994 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
15995 rtx_insn *. Remove now-redundant cast.
15996 (set_last_insn): Likewise.
15998 * builtins.c (expand_builtin_return): Strengthen local
15999 "call_fusage" from rtx to rtx_insn *.
16000 * cfgrtl.c (create_basic_block_structure): Likewise for local
16002 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
16003 "first", "last" and local "insn".
16004 (delete_insns_since): Likewise for param "from".
16005 (reorder_insns_nobb): Likewise for params "from", "to", "after"
16007 (push_to_sequence): Likewise for param "first" and local "last".
16008 (push_to_sequence2): Likewise for params "first" and "last".
16009 * lra.c (emit_add3_insn): Likewise for local "last".
16010 (lra_emit_add): Likewise.
16011 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
16013 (process_address_1): Likewise for locals "insn", last".
16014 * modulo-sched.c (ps_first_note): Likewise for return type.
16015 * optabs.c (expand_binop_directly): Likewise for param "last".
16017 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16019 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
16021 * emit-rtl.c (get_last_insn_anywhere): Likewise.
16023 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16025 * function.h (struct sequence_stack): Strengthen fields "first"
16026 and "last" from rtx to rtx_insn *.
16027 (struct emit_status): Likewise for fields "x_first_insn" and
16030 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
16031 (set_first_insn): Add checked cast.
16032 (get_last_insn): Remove now-redundant checked cast.
16033 (set_last_insn): Add checked cast.
16035 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
16036 "saved_first" and "saved_last" from rtx to rtx_insn *.
16038 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16040 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
16041 (unlink_insn_chain): Strengthen both params from rtx to
16044 * cfgrtl.c (cfg_layout_function_header): Likewise for this
16046 (unlink_insn_chain): Likewise for params "first" and "last".
16047 Remove now-redundant checked cast.
16048 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
16049 (fixup_reorder_chain): Strengthen local "insn" from rtx to
16051 * emit-rtl.c (link_insn_into_chain): Likewise for all three
16053 (add_insn): Likewise for param "insn" and local "prev".
16054 (add_insn_after_nobb): Likewise for both params and local "next".
16055 (add_insn_before_nobb): Likewise for both params and local "prev".
16056 (add_insn_after): Rename param "after" to "uncast_after",
16057 introducing local "after" with another checked cast.
16058 (add_insn_before): Rename params "insn" and "before", giving them
16059 "uncast_" prefixes, adding the old names back using checked casts.
16060 (emit_note_after): Likewise for param "after".
16061 (emit_note_before): Likewise for param "before".
16062 (emit_label): Add a checked cast.
16064 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16066 * cselib.h (cselib_record_sets_hook): Strengthen initial param
16067 "insn" from rtx to rtx_insn *.
16069 * cselib.c (cselib_record_sets_hook): Likewise.
16071 * var-tracking.c (add_with_sets): Likewise, renaming back from
16072 "uncast_insn" to "insn" and eliminating the checked cast from rtx
16075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16077 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
16078 and "header_" from rtx to rtx_insn *.
16079 (struct basic_block_d): Likewise for field "head_" within "x"
16080 field of union basic_block_il_dependent.
16081 (BB_HEAD): Drop function...
16082 (SET_BB_HEAD): ...and this function in favor of...
16083 (BB_HEAD): ...reinstate macro.
16084 (BB_END): Drop function...
16085 (SET_BB_END): ...and this function in favor of...
16086 (BB_END): ...reinstate macro.
16087 (BB_HEADER): Drop function...
16088 (SET_BB_HEADER): ...and this function in favor of...
16089 (BB_HEADER): ...reinstate macro.
16091 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
16092 (fix_crossing_unconditional_branches): Likewise.
16093 * caller-save.c (save_call_clobbered_regs): Likewise.
16094 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
16095 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
16096 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
16097 (merge_blocks_move_successor_nojumps): Likewise.
16098 (outgoing_edges_match): Update use of for_each_rtx to
16099 for_each_rtx_in_insn.
16100 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
16101 (expand_gimple_cond): Likewise.
16102 (expand_gimple_tailcall): Likewise.
16103 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
16105 (construct_exit_block): Drop use of SET_BB_END.
16106 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
16108 (delete_insn): Rename param "insn" to "uncast_insn", introducing
16109 a new local "insn" with a checked cast to rtx_insn *. Drop use of
16110 SET_BB_HEAD and SET_BB_END.
16111 (create_basic_block_structure): Drop use of SET_BB_HEAD and
16113 (rtl_delete_block): Drop use of SET_BB_HEAD.
16114 (rtl_split_block): Drop use of SET_BB_END.
16115 (emit_nop_for_unique_locus_between): Likewise.
16116 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
16117 (block_label): Drop use of SET_BB_HEAD.
16118 (fixup_abnormal_edges): Drop use of SET_BB_END.
16119 (record_effective_endpoints): Drop use of SET_BB_HEADER.
16120 (relink_block_chain): Likewise.
16121 (fixup_reorder_chain): Drop use of SET_BB_END.
16122 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
16123 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
16124 rtx_insn **. Drop use of SET_BB_HEADER.
16125 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
16127 (BB_HEAD): Delete this function.
16128 (SET_BB_HEAD): Likewise.
16129 (BB_END): Likewise.
16130 (SET_BB_END): Likewise.
16131 (BB_HEADER): Likewise.
16132 (SET_BB_HEADER): Likewise.
16133 * emit-rtl.c (add_insn_after): Rename param "insn" to
16134 "uncast_insn", adding a new local "insn" and a checked cast to
16135 rtx_insn *. Drop use of SET_BB_END.
16136 (remove_insn): Strengthen locals "next" and "prev" from rtx to
16137 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
16138 (reorder_insns): Drop use of SET_BB_END.
16139 (emit_insn_after_1): Strengthen param "first" and locals "last",
16140 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
16141 (emit_pattern_after_noloc): Add checked cast.
16142 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
16143 (restore_other_notes): Likewise.
16144 (move_insn): Likewise.
16145 (sched_extend_bb): Likewise.
16146 (fix_jump_move): Likewise.
16147 * ifcvt.c (noce_process_if_block): Likewise.
16148 (dead_or_predicable): Likewise.
16149 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
16150 * reg-stack.c (change_stack): Drop use of SET_BB_END.
16151 * sel-sched-ir.c (sel_move_insn): Likewise.
16152 * sel-sched.c (move_nop_to_previous_block): Likewise.
16154 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
16156 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
16158 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16160 * basic-block.h (create_basic_block_structure): Strengthen params
16161 1 "head" and 2 "end" from rtx to rtx_insn *.
16162 * cfgrtl.c (create_basic_block_structure): Likewise.
16163 (rtl_create_basic_block): Update casts from void * to rtx to
16164 rtx_insn *, so that we can pass them as rtx_insn * to
16165 create_basic_block_structure.
16166 * sel-sched-ir.c (sel_create_basic_block): Likewise.
16168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16170 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
16172 (check_for_inc_dec): Strengthen param "insn" from rtx to
16175 * cselib.h (cselib_process_insn): Likewise.
16177 * cselib.c (cselib_record_sets): Likewise.
16178 (cselib_process_insn): Likewise.
16180 * dse.c (struct insn_info): Likewise for field "insn".
16181 (check_for_inc_dec_1): Likewise for local "insn".
16182 (check_for_inc_dec): Likewise for param "insn".
16183 (scan_insn): Likewise.
16184 (dse_step1): Likewise for local "insn".
16186 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
16187 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
16189 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16191 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
16192 from rtx to rtx_insn *.
16193 (DEP_PRO): Delete this function and...
16194 (SET_DEP_PRO): ...this function in favor of...
16195 (DEP_PRO): ...reinstate this macro.
16196 (DEP_CON): Delete this function and...
16197 (SET_DEP_CON): ...this function in favor of...
16198 (DEP_CON): ...reinstate this old macro.
16199 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
16200 (init_dep): Likewise.
16201 (set_priorities): Likewise for both params.
16202 (sd_copy_back_deps): Likewise for params 1 and 2.
16204 * haifa-sched.c (priority): Likewise for param "insn" and local
16206 (set_priorities): Likewise for params "head" and "tail" and local
16208 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
16210 (add_to_speculative_block): Add a checked cast.
16211 (create_check_block_twin): Drop use of SET_DEP_CON.
16212 (add_jump_dependencies): Strengthen params "insn" and "jump" from
16215 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
16216 Drop use of SET_DEP_PRO
16217 (init_dep): Strengthen params "pro" and "con" from rtx to
16219 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
16220 use of SET_DEP_CON.
16223 (SET_DEP_PRO): Delete.
16224 (SET_DEP_CON): Delete.
16226 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16228 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
16229 from rtx to rtx_insn *.
16230 (VINSN_INSN_RTX): Eliminate rvalue function and...
16231 (SET_VINSN_INSN): ...lvalue function in favor of...
16232 (VINSN_INSN_RTX): reinstate this old macro.
16234 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
16235 in favor of VINSN_INSN_RTX.
16236 (VINSN_INSN_RTX): Delete this function.
16237 (SET_VINSN_INSN_RTX): Likewise.
16239 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16241 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
16242 (BND_TO): Delete this function and...
16243 (SET_BND_TO): ...this functions in favor of...
16244 (BND_TO): ...reinstating this macro.
16245 (struct _fence): Strengthen field "executing_insns" from
16246 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
16247 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
16248 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
16249 and param "insn" from rtx to insn_t.
16250 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
16253 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
16255 (rtx_vec_t): Likewise.
16256 (struct sched_deps_info_def): Strengthen param of "start_insn"
16257 callback from rtx to rtx_insn *. Likewise for param "insn2" of
16258 "note_mem_dep" callback and first param of "note_dep" callback.
16260 * haifa-sched.c (add_to_speculative_block): Strengthen param
16261 "insn" from rtx to rtx_insn *.
16262 (clear_priorities): Likewise.
16263 (calc_priorities): Likewise for local "insn".
16265 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
16266 Remove redundant checked cast.
16267 (haifa_note_mem_dep): Likewise for param "pending_insn".
16268 (haifa_note_dep): Likewise for param "elem".
16269 (note_mem_dep): Likewise for param "e".
16270 (sched_analyze_1): Add checked casts.
16271 (sched_analyze_2): Likewise.
16273 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
16274 from rtx to rtx_insn *.
16275 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
16276 from vec<rtx> * to vec<rtx_insn *> *.
16278 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
16280 (flist_add): Strengthen param "executing_insns" from
16281 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
16282 (advance_deps_context): Remove now-redundant checked cast.
16283 (init_fences): Replace uses of NULL_RTX with NULL.
16284 (merge_fences): Strengthen params "last_scheduled_insn" and
16285 "sched_next" from rtx to rtx_insn * and "executing_insns" from
16286 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
16287 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
16288 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
16289 an instruction, rather than doing double-duty as a pattern.
16290 (return_nop_to_pool): Update for change of insn_t.
16291 (deps_init_id): Remove now-redundant checked cast.
16292 (struct sched_scan_info_def): Strengthen param of "init_insn"
16293 callback from rtx to insn_t.
16294 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
16295 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
16297 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
16298 "end" from rtx to rtx_insn *.
16299 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
16300 (rtx insn_rtx, bool force_unique_p)
16301 (BND_TO): Delete function.
16302 (SET_BND_TO): Delete function.
16304 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
16306 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
16307 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
16309 (undo_transformations): Likewise for param "insn".
16310 (update_liveness_on_insn): Likewise.
16311 (compute_live_below_insn): Likewise for param "insn" and local
16313 (update_data_sets): Likewise for param "insn".
16314 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
16315 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
16316 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
16318 (move_cond_jump): Likewise for param "insn".
16319 (move_cond_jump): Drop use of SET_BND_TO.
16320 (compute_av_set_on_boundaries): Likewise.
16321 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
16322 (update_and_record_unavailable_insns): Strengthen local "bb_end"
16323 from rtx to rtx_insn *.
16324 (maybe_emit_renaming_copy): Likewise for param "insn".
16325 (maybe_emit_speculative_check): Likewise.
16326 (handle_emitting_transformations): Likewise.
16327 (remove_insn_from_stream): Likewise.
16328 (code_motion_process_successors): Strengthen local "succ" from rtx
16331 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16333 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
16334 ilist_t, not _xlist_t;
16335 (ILIST_INSN): Define in terms of new union field "insn".
16336 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
16338 (struct _list_node): Add new field "insn" to the union, of type
16340 (ilist_add): Replace macro with an inline function, requiring an
16342 (ilist_remove): Define this macro directly in terms of
16343 _list_remove, rather than indirectly via _xlist_remove.
16344 (ilist_clear): Likewise, in terms of _list_clear rather than
16346 (ilist_is_in_p): Replace macro with an inline function, requiring
16348 (_list_iter_cond_insn): New function.
16349 (ilist_iter_remove): Define this macro directly in terms of
16350 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
16351 (ilist_iterator): Define directly in terms of _list_iterator
16352 rather than indirectly through _xlist_iterator.
16353 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
16354 than in terms of _FOR_EACH_X.
16355 (FOR_EACH_INSN_1): Likewise.
16357 2014-08-26 Joseph Myers <joseph@codesourcery.com>
16361 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
16362 DECL_HARD_REGISTER and return for invalid register specifications.
16363 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
16364 DECL_HARD_REGISTER, call expand_one_error_var.
16365 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
16366 CC_REGNUM with non-MODE_CC modes.
16367 (arm_regno_class): Return NO_REGS for PC_REGNUM.
16369 2014-08-26 Marek Polacek <polacek@redhat.com>
16372 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
16374 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
16376 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
16377 qi cost; add di cost.
16378 (cortexa57_addrcost_table): Likewise.
16380 2014-08-26 Marek Polacek <polacek@redhat.com>
16383 * expr.c (is_aligning_offset): Remove logical not.
16385 2014-08-26 Marek Polacek <polacek@redhat.com>
16388 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
16389 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
16391 2014-08-26 Richard Biener <rguenther@suse.de>
16393 PR tree-optimization/62175
16394 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16395 expand possibly trapping operations.
16397 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16399 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
16400 "insn" from rtx to rtx_insn *.
16401 (permute_load): Likewise for param "insn".
16402 (permute_store): Likewise.
16403 (handle_special_swappables): Likewise for local "insn".
16404 (replace_swap_with_copy): Likewise for locals "insn" and
16406 (rs6000_analyze_swaps): Likewise for local "insn".
16408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16410 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
16413 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16415 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
16416 "note_list" from rtx to rtx_insn *.
16417 (BB_NOTE_LIST): Replace this function and...
16418 (SET_BB_NOTE_LIST): ...this function with...
16419 (BB_NOTE_LIST): ...the former macro implementation.
16421 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
16422 local "from_start" from rtx to rtx_insn *. Strengthen param
16423 "to_endp" from rtx * to rtx_insn **.
16425 * haifa-sched.c (concat_note_lists): Likewise.
16426 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
16428 (sel_restore_notes): Likewise.
16429 (move_bb_info): Likewise.
16430 (BB_NOTE_LIST): Delete this function.
16431 (SET_BB_NOTE_LIST): Delete this function.
16432 * sel-sched.c (create_block_for_bookkeeping): Eliminate
16433 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
16435 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16437 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
16438 from rtx * to rtx_insn **.
16439 (reorder2): Likewise.
16440 (dependencies_evaluation_hook): Strengthen params "head", "tail"
16441 from rtx to rtx_insn *.
16443 * doc/tm.texi: Update mechanically for above change to target.def.
16445 * sched-int.h (note_list): Strengthen this variable from rtx to
16447 (remove_notes): Likewise for both params.
16448 (restore_other_notes): Likewise for return type and first param.
16449 (struct ready_list): Strengthen field "vec" from rtx * to
16451 (struct dep_replacement): Strenghten field "insn" from rtx to
16453 (struct deps_desc): Likewise for fields "last_debug_insn",
16455 (struct haifa_sched_info): Likewise for callback field
16456 "can_schedule_ready_p"'s param, for first param of "new_ready"
16457 callback field, for both params of "rank" callback field, for
16458 first field of "print_insn" callback field (with a const), for
16459 both params of "contributes_to_priority" callback, for param
16460 of "insn_finishes_block_p" callback, for fields "prev_head",
16461 "next_tail", "head", "tail", for first param of "add_remove_insn"
16462 callback, for first param of "begin_schedule_ready" callback, for
16463 both params of "begin_move_insn" callback, and for second param
16464 of "advance_target_bb" callback.
16465 (add_dependence): Likewise for params 1 and 2.
16466 (sched_analyze): Likewise for params 2 and 3.
16467 (deps_analyze_insn): Likewise for param 2.
16468 (ready_element): Likewise for return type.
16469 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
16470 (try_ready): Strenghten param from rtx to rtx_insn *.
16471 (sched_emit_insn): Likewise for return type.
16472 (record_delay_slot_pair): Likewise for params 1 and 2.
16473 (add_delay_dependencies): Likewise for param.
16474 (contributes_to_priority): Likewise for both params.
16475 (find_modifiable_mems): Likewise.
16477 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
16478 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
16479 "first_older_only_insn" from rtx to rtx_insn *.
16480 (arm_sched_reorder): Strengthen param "ready" from rtx * to
16483 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
16484 "last_scheduled_iter0" from rtx to rtx_insn *.
16485 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
16486 (c6x_sched_reorder_1): Strengthen param "ready" and locals
16487 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
16488 "insn" from rtx to rtx_insn *.
16489 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
16491 (c6x_sched_reorder2): Strengthen param "ready" and locals
16492 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
16493 "insn" from rtx to rtx_insn *.
16494 (c6x_variable_issue): Add a checked cast when assigning from insn
16495 to ss.last_scheduled_iter0.
16496 (split_delayed_branch): Strengthen param "insn" and local "i1"
16497 from rtx to rtx_insn *.
16498 (split_delayed_nonbranch): Likewise.
16499 (undo_split_delayed_nonbranch): Likewise for local "insn".
16500 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
16501 "entry_after", "end_packet", "head_insn", "tail_insn",
16502 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
16503 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
16504 to rtx_insn **. Remove now-redundant checked cast on last_insn,
16505 but add a checked cast on loop->start_label. Consolidate calls to
16506 avoid assigning result of gen_spkernel to "insn", now an
16509 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
16510 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
16512 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
16513 rtx_insn **. Strengthen locals "top", "next" from rtx to
16515 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
16516 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
16517 (add_parameter_dependencies): Strengthen params "call", "head" and
16518 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
16519 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
16520 (add_dependee_for_func_arg): Likewise for param "arg" and local
16522 (ix86_dependencies_evaluation_hook): Likewise for params "head",
16523 "tail" and locals "insn", "first_arg".
16525 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
16526 for params "head", "tail" and locals "insn", "next", "next_tail".
16527 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
16528 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
16529 "insn", "lowest", "highest" from rtx to rtx_insn *.
16530 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
16532 (ia64_sched_reorder2): Likewise.
16534 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
16535 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
16536 from rtx * to rtx_insn **.
16537 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
16539 (mep_print_sched_insn): Strengthen param "insn" from rtx to
16541 (mep_sched_reorder): Strengthen param "ready" from rtx * to
16542 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
16545 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
16546 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
16548 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
16549 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
16550 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
16552 (vr4130_reorder): Likewise.
16553 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
16555 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
16557 (mips_sched_reorder): Likewise.
16558 (mips_sched_reorder2): Likewise.
16560 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
16562 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
16563 Strengthen local "tmp" from rtx to rtx_insn *.
16564 (rs6000_sched_reorder2): Likewise.
16566 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
16567 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
16568 (s390_sched_reorder): Strengthen param "ready" from rtx * to
16569 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
16571 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
16572 "tmp2" from rtx to rtx_insn *.
16573 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
16574 Strengthen local "insn" from rtx to rtx_insn *.
16575 (ready_reorder): Strengthen param "ready" from rtx * to
16576 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
16577 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
16578 (sh_reorder2): Likewise.
16580 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
16581 local "insn" from rtx to rtx_insn *.
16583 * haifa-sched.c (note_list): Strengthen this variable from rtx to
16585 (scheduled_insns): Strengthen this variable from vec<rtx> to
16587 (set_modulo_params): Likewise for locals "i1", "i2".
16588 (record_delay_slot_pair): Likewise for params "i1", "i2".
16589 (add_delay_dependencies): Likewise for param "insn".
16590 (cond_clobbered_p): Likewise.
16591 (recompute_todo_spec): Likewise for local "prev".
16592 (last_scheduled_insn): Likewise for this variable.
16593 (nonscheduled_insns_begin): Likewise.
16594 (model_set_excess_costs): Strengthen param "insns" from rtx * to
16596 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
16598 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
16599 Strengthen local "insn" from rtx to rtx_insn *.
16600 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
16601 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
16602 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
16603 (ready_remove_first): Likewise for return type and local "t".
16604 (ready_element): Likewise for return type.
16605 (ready_remove): Likewise for return type and local "t".
16606 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
16607 (check_clobbered_conditions): Strengthen local "x" from rtx to
16608 rtx_insn *, adding a checked cast.
16609 (schedule_insn): Likewise for param "insn".
16610 (remove_notes): Likewise for params "head", "tail" and locals
16611 "next_tail", "insn", "next".
16612 (struct haifa_saved_data): Likewise for fields
16613 "last_scheduled_insn", "nonscheduled_insns_begin".
16614 (save_backtrack_point): Update for change to field "vec" of
16616 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
16618 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
16619 from rtx to rtx_insn *
16620 (resolve_dependencies): Strengthen param "insn" from rtx to
16622 (restore_other_notes): Likewise for return type, for param "head"
16623 and local "note_head".
16624 (undo_all_replacements): Likewise for local "insn".
16625 (first_nonscheduled_insn): Likewise for return type and local "insn".
16626 (queue_to_ready): Likewise for local "insn", adding checked casts.
16627 (early_queue_to_ready): Likewise for local "insn".
16628 (debug_ready_list_1): Strengthen local "p" from rtx * to
16630 (move_insn): Strengthen param "insn" and local "note" from rtx to
16632 (insn_finishes_cycle_p): Likewise for param "insn".
16633 (max_issue): Likewise for local "insn".
16634 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
16636 (commit_schedule): Strengthen param "prev_head" and local "insn"
16637 from rtx to rtx_insn *
16638 (prune_ready_list): Likewise for local "insn".
16639 (schedule_block): Likewise for locals "prev_head", "head", "tail",
16640 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
16641 (set_priorities): Likewise for local "prev_head".
16642 (try_ready): Likewise for param "next".
16643 (fix_tick_ready): Likewise.
16644 (change_queue_index): Likewise.
16645 (sched_extend_ready_list): Update for change to field "vec" of
16647 (generate_recovery_code): Strengthen param "insn" from rtx to
16649 (begin_speculative_block): Likewise.
16650 (create_check_block_twin): Likewise for param "insn" and locals
16651 "label", "check", "twin". Introduce local "check_pat" to avoid
16652 "check" being used as a plain rtx before being used as an insn.
16653 (fix_recovery_deps): Add a checked cast to rtx_insn * when
16654 extracting elements from ready_list.
16655 (sched_remove_insn): Strengthen param "insn" from rtx to
16657 (sched_emit_insn): Likewise for return type.
16658 (ready_remove_first_dispatch): Likewise for return type and local
16661 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
16663 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
16666 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
16667 from rtx to rtx_insn *.
16668 (add_dependence_list): Likewise for param "insn". Add a checked
16670 (add_dependence_list_and_free): Strengthen param "insn" from rtx
16671 to rtx_insn *. Strengthen param "list_p" from rtx * to
16673 (chain_to_prev_insn): Strengthen param "insn" and locals
16674 "prec_nonnote", "i" from rtx to rtx_insn *.
16675 (flush_pending_lists): Likewise for param "insn".
16676 (cur_insn): Likewise for this variable.
16677 (haifa_start_insn): Add a checked cast.
16678 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
16679 (sched_analyze_reg): Likewise for param "insn".
16680 (sched_analyze_1): Likewise.
16681 (sched_analyze_2): Likewise. Add checked casts.
16682 (sched_analyze_insn): Likewise. Also for local "prev".
16683 (deps_analyze_insn): Likewise for param "insn".
16684 (sched_analyze): Likewise for params "head", "tail" and local "insn".
16685 (add_dependence_1): Likewise for params "insn", "elem".
16686 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
16687 (parse_add_or_inc): Likewise for param "insn".
16688 (find_inc): Likewise for local "inc_cand".
16689 (find_modifiable_mems): Likewise for params "head", "tail" and
16690 locals "insn", "next_tail".
16692 * sched-ebb.c (init_ready_list): Likewise for local "insn".
16693 (begin_schedule_ready): Likewise for param "insn".
16694 (begin_move_insn): Likewise for params "insn" and "last".
16695 (ebb_print_insn): Strengthen param "insn" from const_rtx to
16697 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
16698 (ebb_contributes_to_priority): Likewise for params "next", "insn".
16699 (ebb_add_remove_insn): Likewise for param "insn".
16700 (advance_target_bb): Likewise.
16702 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
16704 (check_live): Likewise for param "insn".
16705 (init_ready_list): Likewise for local "insn".
16706 (can_schedule_ready_p): Likewise for param "insn".
16707 (begin_schedule_ready): Likewise.
16708 (new_ready): Likewise for param "next".
16709 (rgn_print_insn): Likewise for param "insn".
16710 (rgn_rank): Likewise for params "insn1", "insn2".
16711 (contributes_to_priority): Likewise for params "next", "insn".
16712 (rgn_insn_finishes_block_p): Likewise for param "insn".
16713 (add_branch_dependences): Likewise for params "head", "tail" and
16714 locals "insn", "last".
16715 (rgn_add_remove_insn): Likewise for param "insn".
16716 (advance_target_bb): Likewise.
16718 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
16719 const_rtx to const rtx_insn *.
16721 * sel-sched-dump.h (sel_print_insn): Likewise.
16723 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
16724 (deps_init_id): Likewise.
16726 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
16727 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
16730 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16732 * output.h (final_start_function): Strengthen param 1 from rtx to
16735 * final.c (final_start_function): Likewise, renaming back from
16736 "uncast_first" to "first", and dropping the checked cast from rtx
16739 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16741 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
16742 * final.c (final): Likewise. Rename param back from
16743 "uncast_first" to "first" and eliminate the checked cast from rtx
16746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16748 * output.h (shorten_branches): Strengthen param from rtx to
16751 * final.c (shorten_branches): Likewise, renaming param back from
16752 "uncast_first" to "first", and dropping the checked cast from rtx
16755 * genattr.c (gen_attr): Likewise when writing out the prototype of
16758 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16760 * sched-int.h (struct haifa_sched_info): Strengthen fields
16761 "prev_head" and "next_tail" from rtx to rtx_insn *.
16763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16765 * rtl.h (rtx_jump_table_data::get_labels): New method.
16766 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
16767 with use of the new rtx_jump_table_data::get_labels method.
16768 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
16769 to rtx_jump_table_data *. Simplify by using get_labels method.
16770 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
16771 a dyn_cast, introducing local "table", using it to replace
16772 label-lookup logic with a get_labels method call.
16773 (patch_jump_insn): Simplify using get_labels method.
16774 * dwarf2cfi.c (create_trace_edges): Likewise.
16775 * rtlanal.c (label_is_jump_target_p): Likewise.
16777 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16779 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
16782 * emit-rtl.c (unshare_all_rtl_1): Likewise.
16783 (unshare_all_rtl_again): Likewise, also for local "p".
16785 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16787 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
16789 * cfgrtl.c (delete_insn_and_edges): Likewise.
16791 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16793 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
16794 from rtx to rtx_insn *.
16796 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
16798 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16800 * function.c (thread_prologue_and_epilogue_insns): Likewise for
16801 locals "returnjump", "epilogue_end", "insn", "next".
16803 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
16804 "returnjump" from rtx * to rtx_insn **.
16805 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
16807 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16809 * basic-block.h (struct edge_def). Strengthen "r" within
16810 union edge_def_insns from rtx to rtx_insn *.
16812 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
16813 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
16815 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
16816 from rtx to rtx_insn *.
16817 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
16819 * postreload-gcse.c (reg_killed_on_edge): Likewise.
16820 (reg_used_on_edge): Likewise.
16821 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
16822 (gt_pch_nx): New overload for rtx_insn *&.
16823 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
16824 from rtx to rtx_insn *.
16826 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16828 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
16829 from rtx to rtx_insn *.
16830 (BB_FOOTER): Replace function with access macro.
16831 (SET_BB_FOOTER): Delete.
16833 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
16835 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16836 (emit_barrier_after_bb): Likewise.
16837 (record_effective_endpoints): Likewise.
16838 (relink_block_chain): Likewise.
16839 (fixup_fallthru_exit_predecessor): Likewise.
16840 (cfg_layout_duplicate_bb): Likewise.
16841 (cfg_layout_split_block): Likewise.
16842 (cfg_layout_delete_block): Likewise.
16843 (cfg_layout_merge_blocks): Likewise.
16844 (BB_FOOTER): Delete function.
16845 (SET_BB_FOOTER): Delete function.
16846 * combine.c (update_cfg_for_uncondjump): Replace uses of
16847 SET_BB_FOOTER with BB_FOOTER.
16849 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16851 * except.h (struct eh_landing_pad_d): Strengthen field
16852 "landing_pad" from rtx to rtx_code_label *.
16854 * except.c (sjlj_emit_dispatch_table): Likewise for param
16856 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
16858 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16860 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
16861 first param from rtx to rtx_insn *.
16862 * config/xtensa/xtensa.c (struct machine_function): Likewise for
16863 field "set_frame_ptr_insn".
16864 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
16865 "csend" from rtx to rtx_code_label *.
16866 (xtensa_expand_atomic): Likewise for local "csloop".
16867 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
16869 (xtensa_call_tls_desc): Likewise for return type and locals
16870 "call_insn", "insns".
16871 (xtensa_legitimize_tls_address): Likewise for local "insns".
16872 (xtensa_expand_prologue): Likewise for locals "insn", "first".
16874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16876 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
16877 first param from rtx to rtx_insn *.
16878 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
16881 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16883 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
16884 Strengthen param 1 from rtx to rtx_insn *.
16885 (tilepro_output_cbranch): Likewise.
16886 (tilepro_adjust_insn_length): Likewise.
16887 (tilepro_final_prescan_insn): Likewise for sole param.
16889 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
16890 Likewise for local "last".
16891 (cbranch_predicted_p): Likewise for param "insn".
16892 (tilepro_output_simple_cbranch_with_opcode): Likewise.
16893 (tilepro_output_cbranch_with_opcode): Likewise.
16894 (tilepro_output_cbranch): Likewise.
16895 (frame_emit_load): Likewise for return type and locals "seq",
16897 (emit_sp_adjust): Likewise for return type and local "insn".
16898 (tilepro_expand_epilogue): Likewise for locals "last_insn",
16900 (tilepro_adjust_insn_length): Likewise for param "insn".
16901 (next_insn_to_bundle): Likewise for return type and params
16903 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
16904 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
16906 (match_addli_pcrel): Likewise for param "insn".
16907 (replace_addli_pcrel): Likewise.
16908 (match_auli_pcrel): Likewise.
16909 (replace_auli_pcrel): Likewise.
16910 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
16912 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
16913 "queue", "next_queue", "prev".
16914 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
16915 (tilepro_final_prescan_insn): Likewise for param "insn".
16917 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16919 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
16920 Strengthen param 1 from rtx to rtx_insn *.
16921 (tilegx_output_cbranch): Likewise.
16922 (tilegx_adjust_insn_length): Likewise.
16923 (tilegx_final_prescan_insn): Likewise for sole param.
16925 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
16927 (cbranch_predicted_p): Likewise for param "insn".
16928 (tilegx_output_simple_cbranch_with_opcode): Likewise.
16929 (tilegx_output_cbranch_with_opcode): Likewise.
16930 (tilegx_output_cbranch): Likewise.
16931 (frame_emit_load): Likewise for return type.
16932 (set_frame_related_p): Likewise for locals "seq", "insn".
16933 (emit_sp_adjust): Likewise for return type, and for local "insn".
16934 Introduce local "pat" for use in place of "insn" where the latter
16935 isn't an instruction.
16936 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
16937 from rtx to rtx_insn *.
16938 (tilegx_adjust_insn_length): Likewise for param "insn".
16939 (next_insn_to_bundle): Likewise for return type and params "r" and
16941 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
16943 (replace_insns): Likewise for params "old_insn", "new_insns".
16944 (replace_mov_pcrel_step1): Likewise for param "insn" and local
16946 (replace_mov_pcrel_step2): Likewise.
16947 (replace_mov_pcrel_step3): Likewise.
16948 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
16950 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
16951 "queue", "next_queue", "prev".
16952 (tilegx_output_mi_thunk): Likewise for local "insn".
16953 (tilegx_final_prescan_insn): Likewise for param "insn".
16955 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16957 * config/spu/spu.c (frame_emit_store): Strengthen return type from
16959 (frame_emit_load): Likewise.
16960 (frame_emit_add_imm): Likewise, also for local "insn".
16961 (spu_expand_prologue): Likewise for local "insn".
16962 (struct spu_bb_info): Likewise for field "prop_jump".
16963 (emit_nop_for_insn): Likewise for param "insn" and local
16965 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
16967 (spu_emit_branch_hint): Likewise for params "before", "branch" and
16968 locals "hint", "insn".
16969 (get_branch_target): Likewise for param "branch".
16970 (insn_clobbers_hbr): Likewise for param "insn".
16971 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
16972 locals "insn", "before_4", "before_16".
16973 (insert_hbrp): Likewise for local "insn".
16974 (spu_machine_dependent_reorg): Likewise for locals "branch",
16975 "insn", "next", "bbend".
16976 (uses_ls_unit): Likewise for param "insn".
16977 (get_pipe): Likewise.
16978 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
16979 introducing a checked cast.
16980 (spu_sched_adjust_cost): Likewise for params "insn" and
16982 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
16983 (spu_sms_res_mii): Likewise.
16985 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16987 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
16988 from rtx to rtx_insn *.
16989 (output_cbranch): Likewise for param 6.
16990 (output_return): Likewise for param 1.
16991 (output_sibcall): Likewise.
16992 (output_v8plus_shift): Likewise.
16993 (output_v8plus_mult): Likewise.
16994 (output_v9branch): Likewise for param 7.
16995 (output_cbcond): Likewise for param 3.
16997 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
16999 (sparc_legitimize_pic_address): Likewise.
17000 (sparc_emit_call_insn): Likewise.
17001 (emit_save_or_restore_regs): Likewise.
17002 (emit_window_save): Likewise for return type and local "insn".
17003 (sparc_expand_prologue): Likewise for local "insn".
17004 (sparc_flat_expand_prologue): Likewise.
17005 (output_return): Likewise for param "insn".
17006 (output_sibcall): Likewise for param "insn" and local "delay".
17007 (output_ubranch): Likewise for param "insn".
17008 (output_cbranch): Likewise.
17009 (output_cbcond): Likewise.
17010 (output_v9branch): Likewise.
17011 (output_v8plus_shift): Likewise.
17012 (sparc_output_mi_thunk): Likewise for local "insn".
17013 (get_some_local_dynamic_name): Likewise.
17014 (output_v8plus_mult): Likewise for param "insn".
17016 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17018 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
17019 from rtx to rtx_insn *.
17020 (output_branchy_insn): Likewise for param 3.
17021 (output_far_jump): Likewise for param 1.
17022 (final_prescan_insn): Likewise.
17023 (sh_insn_length_adjustment): Likewise for sole param.
17025 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
17026 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
17028 (sh_emit_compare_and_set): Likewise for local "lab".
17029 (output_far_jump): Strengthen param "insn" and local "prev" from
17031 (output_branchy_insn): Likewise for param "insn" and local
17033 (output_ieee_ccmpeq): Likewise for param "insn".
17034 (struct label_ref_list_d): Strengthen field "label" from rtx to
17036 (pool_node): Likewise.
17037 (pool_window_label): Likewise for this global.
17038 (add_constant): Likewise for return type and locals "lab", "new_rtx".
17039 (dump_table): Strengthen params "start", "barrier" and local
17040 "scan" from rtx to rtx_insn *.
17041 (broken_move): Likewise for param "insn".
17042 (untangle_mova): Likewise for params "first_mova" and "new_mova".
17043 Strengthen param "first_mova" from rtx * to rtx_insn **.
17044 (mova_p): Likewise for param "insn".
17045 (fixup_mova): Likewise for param "mova".
17046 (find_barrier): Likewise for return type, params "mova" and
17047 "from", and locals "barrier_before_mova", "found_barrier",
17048 "good_barrier", "orig", "last_symoff", "next". Strengthen local
17049 "label" from rtx to rtx_code_label *.
17050 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
17052 (sh_reorg): Likewise for locals "link", "scan", "barrier".
17053 (split_branches): Likewise for param "first" and local "insn".
17054 (final_prescan_insn): Likewise for param "insn".
17055 (sequence_insn_p): Likewise for locals "prev", "next".
17056 (sh_insn_length_adjustment): Likewise for param "insn".
17057 (sh_can_redirect_branch): Likewise for local "insn".
17058 (find_r0_life_regions): Likewise for locals "end", "insn".
17059 (sh_output_mi_thunk): Likewise for local "insns".
17061 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17063 * config/score/score.c (score_output_mi_thunk): Strengthen local
17064 "insn" from rtx to rtx_insn *.
17065 (score_prologue): Likewise.
17067 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17069 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
17070 1 from rtx to rtx_insn *.
17071 (s390_emit_jump): Likewise for return type.
17072 (s390_emit_call): Likewise.
17073 (s390_load_got): Likewise.
17075 * config/s390/s390.c (last_scheduled_insn): Likewise for this
17077 (s390_match_ccmode): Likewise for param "insn".
17078 (s390_emit_jump): Likewise for return type.
17079 (s390_split_branches): Likewise for local "label".
17080 (struct constant): Strengthen field "label" from rtx to
17082 (struct constant_pool): Likewise for field "label". Strengthen
17083 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
17085 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
17087 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
17088 (s390_end_pool): Likewise.
17089 (s390_dump_pool): Likewise for local "insn".
17090 (s390_mainpool_start): Likewise.
17091 (s390_chunkify_start): Likewise.
17092 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
17093 with insns. Strengthen locals "label", "jump", "barrier", "next",
17094 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
17095 (s390_chunkify_finish): Strengthen local "insn" from rtx to
17097 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
17098 "jump", "label", "next_insn".
17099 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
17100 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
17102 (s390_load_got): Likewise for return type and local "insns".
17103 (s390_save_gprs_to_fprs): Likewise for local "insn".
17104 (s390_restore_gprs_from_fprs): Likewise.
17105 (pass_s390_early_mach::execute): Likewise.
17106 (s390_emit_prologue): Likewise for local "insns".
17107 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
17109 (s390_emit_call): Strengthen return type and local "insn" from
17111 (s390_emit_tpf_eh_return): Likewise for local "insn".
17112 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
17113 "next_insn", introducing locals "s_pat", "rpat" to allow this.
17114 (s390_fix_long_loop_prediction): Likewise for param "insn" and
17116 (s390_non_addr_reg_read_p): Likewise for param "insn".
17117 (find_cond_jump): Likewise for return type and param "insn".
17118 (s390_swap_cmp): Likewise for param "insn".
17119 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
17120 "prev_insn", "next_insn".
17121 (s390_reorg): Likewise for locals "insn", "target".
17122 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
17123 (s390_sched_variable_issue): For now, rename param "insn" to
17124 "uncast_insn", introducing a checked cast.
17125 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
17127 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
17128 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
17130 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17132 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
17133 param from rtx to rtx_insn *.
17134 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
17136 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17138 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
17139 4 from rtx to rtx_insn *.
17140 (rs6000_final_prescan_insn): Likewise for first param.
17141 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
17143 (rs6000_get_some_local_dynamic_name): Likewise.
17144 (output_cbranch): Likewise for param "insn".
17145 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
17146 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
17147 (rs6000_emit_allocate_stack): Likewise for local "insn".
17148 (load_cr_save): Likewise.
17149 (restore_saved_cr): Likewise.
17150 (restore_saved_lr): Likewise.
17151 (emit_cfa_restores): Likewise.
17152 (rs6000_output_function_epilogue): Likewise for locals "insn" and
17153 "deleted_debug_label".
17154 (rs6000_output_mi_thunk): Likewise for local "insn".
17155 (rs6000_final_prescan_insn): Likewise for param "insn".
17157 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17159 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
17160 Strengthen param "insn" from rtx to rtx_insn *.
17161 * config/picochip/picochip.c (picochip_current_prescan_insn):
17162 Likewise for this variable.
17163 (picochip_final_prescan_insn): Likewise for param "insn".
17165 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17167 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
17168 from rtx to rtx_insn *.
17169 (pa_output_indirect_call): Likewise.
17170 (pa_adjust_insn_length): Likewise.
17171 (pa_attr_length_millicode_call): Likewise.
17172 (pa_attr_length_call): Likewise.
17173 (pa_attr_length_indirect_call): Likewise.
17175 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
17177 (pa_attr_length_millicode_call): Likewise.
17178 (pa_attr_length_call): Likewise.
17179 (pa_output_call): Likewise.
17180 (pa_attr_length_indirect_call): Likewise.
17181 (pa_output_indirect_call): Likewise.
17183 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17185 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
17186 Strengthen first param from rtx to rtx_insn *.
17187 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
17190 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17192 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
17193 type from rtx to rtx_insn *.
17194 (mips_expand_call): Likewise.
17195 (mips_adjust_insn_length): Likewise for first param.
17196 (mips_output_conditional_branch): Likewise.
17197 (mips_output_order_conditional_branch): Likewise.
17198 (mips_final_prescan_insn): Likewise.
17200 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
17201 rtx_insn * for the SEQUENCE case.
17202 (SEQ_END): Likewise.
17203 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
17204 (mips_emit_call_insn): Likewise, also for local "insn".
17205 (mips16_gp_pseudo_reg): Likewise for local "scan".
17206 (mips16_build_call_stub): Likewise for return type and for local
17207 "insn". Introduce a new local "pattern" so that "insn" can indeed
17209 (mips_expand_call): Strengthen return type and local "insn" from
17211 (mips_block_move_loop): Strengthen local "label" from rtx to
17213 (mips_expand_synci_loop): Likewise for locals "label",
17215 (mips_set_frame_expr): Strengthen local "insn" from rtx to
17217 (mips16e_collect_argument_saves): Likewise for locals "insn",
17219 (mips_find_gp_ref): Likewise for param of callback for "pred"
17220 param, and for local "insn".
17221 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
17222 (mips_insn_has_flexible_gp_ref_p): Likewise.
17223 (mips_epilogue_emit_cfa_restores): Likewise for return type and
17225 (mips_epilogue_set_cfa): Likewise for local "insn".
17226 (mips_expand_epilogue): Likewise.
17227 (mips_adjust_insn_length): Likewise for param "insn".
17228 (mips_output_conditional_branch): Likewise.
17229 (mips_output_order_conditional_branch): Likewise.
17230 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
17231 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
17232 "falu2_turn_enabled_insn".
17233 (mips_builtin_branch_and_move): Strengthen locals "true_label",
17234 "done_label" from rtx to rtx_code_label *.
17235 (struct mips16_constant): Likewise for field "label".
17236 (mips16_add_constant): Likewise for return type.
17237 (mips16_emit_constants_1): Strengthen return type and param "insn"
17238 from rtx to rtx_insn *.
17239 (mips16_emit_constants): Likewise for param "insn".
17240 (mips16_insn_length): Likewise.
17241 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
17242 to rtx_code_label *.
17243 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
17244 from rtx to rtx_insn *.
17245 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
17246 "jump". Strengthen local "label" from rtx to rtx_code_label *.
17247 (r10k_simplify_address): Strengthen param "insn" and local
17248 "def_insn" from rtx to rtx_insn *.
17249 (r10k_safe_address_p): Strengthen param "insn" from rtx to
17251 (r10k_needs_protection_p_1): Update target type of cast of data
17252 from to rtx to rtx_insn *.
17253 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
17254 rtx * to rtx_insn **.
17255 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
17257 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
17258 (mips_call_expr_from_insn): Likewise for param "insn".
17259 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
17260 (mips_find_pic_call_symbol): Likewise for param "insn".
17261 (mips_annotate_pic_calls): Likewise for local "insn".
17262 (mips_sim_insn): Likewise for this variable.
17263 (struct mips_sim): Likewise for field "insn" within elements of
17265 (mips_sim_wait_reg): Likewise for param "insn".
17266 (mips_sim_wait_regs): Likewise.
17267 (mips_sim_wait_units): Likewise.
17268 (mips_sim_wait_insn): Likewise.
17269 (mips_sim_issue_insn): Likewise.
17270 (mips_sim_finish_insn): Likewise.
17271 (mips_seq_time): Likewise for param "seq" and local "insn".
17272 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
17273 locals "first", "second".
17274 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
17275 "last", "last2", "next".
17276 (mips_avoid_hazard): Likewise for params "after", "insn".
17277 (mips_reorg_process_insns): Likewise for locals "insn",
17278 "last_insn", "subinsn", "next_insn".
17279 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
17280 (mips16_split_long_branches): Likewise for locals "insn" "jump",
17282 (mips_output_mi_thunk): Likewise for local "insn".
17283 (mips_final_prescan_insn): Likewise for param "insn".
17285 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17287 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
17288 Strengthen return type and local "insns" from rtx to rtx_insn *.
17289 (microblaze_legitimize_tls_address): Likewise for local "insns".
17290 (microblaze_block_move_loop): Strengthen local "label" from rtx
17291 to rtx_code_label *.
17292 (microblaze_expand_prologue): Strengthen two locals named "insn"
17293 from rtx to rtx_insn *.
17294 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
17295 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
17296 "insn". Strengthen locals "div_label", "div_end_label" from rtx
17297 to rtx_code_label *.
17299 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17301 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
17302 param from rtx to rtx_insn *.
17303 (mep_reuse_lo): Likewise for third param.
17304 (mep_use_post_modify_p): Likewise for first param.
17305 (mep_core_address_length): Likewise.
17306 (mep_cop_address_length): Likewise.
17307 (mep_final_prescan_insn): Likewise.
17308 (mep_store_data_bypass_p): Likewise for both params.
17309 (mep_mul_hilo_bypass_p): Likewise.
17310 (mep_ipipe_ldc_p): Likewise for param.
17312 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
17313 (mep_rewrite_mult): Likewise.
17314 (mep_rewrite_mulsi3): Likewise.
17315 (mep_rewrite_maddsi3): Likewise.
17316 (mep_reuse_lo_p_1): Likewise.
17317 (mep_reuse_lo_p): Likewise.
17318 (mep_frame_expr): Likewise.
17319 (mep_make_parallel): Likewise for both params.
17320 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
17322 (mep_use_post_modify_p): Likewise for param "insn".
17323 (mep_core_address_length): Likewise.
17324 (mep_cop_address_length): Likewise.
17325 (mep_reg_set_in_function): Likewise for local "insn".
17326 (mep_asm_without_operands_p): Likewise.
17327 (F): Likewise for return type and param "x".
17328 (add_constant): Likewise for local "insn".
17329 (maybe_dead_move): Likewise for return type and local "insn".
17330 (mep_expand_prologue): Likewise for local "insn".
17331 (mep_final_prescan_insn): Likewise for param "insn".
17332 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
17333 "next", "follow", "x".
17334 (mep_insert_repeat_label_last): Likewise for return type, param
17335 "last_insn", and locals "next", "prev". Strengthen param "label"
17336 from rtx to rtx_code_label *.
17337 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
17339 (struct mep_doloop_end): Likewise for fields "insn" and
17341 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
17342 Strengthen local "repeat_label" from rtx to rtx_code_label *.
17343 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
17345 (mep_invert_branch): Likewise for params "insn" and "after".
17346 (mep_reorg_erepeat): Likewise for param "insns" and locals
17347 "insn", "prev", "new_last", "barrier", "user". Strengthen local
17348 "l" from rtx to rtx_code_label *.
17349 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
17350 from rtx to rtx_insn *.
17351 (mep_reorg_addcombine): Likewise for param "insns" and locals
17353 (add_sp_insn_p): Likewise for param "insn".
17354 (mep_reorg_noframe): Likewise for param "insns" and locals
17355 "start_frame_insn", "end_frame_insn", "next".
17356 (mep_reorg): Likewise for local "insns".
17357 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
17359 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
17360 (mep_mul_hilo_bypass_p): Likewise.
17361 (mep_ipipe_ldc_p): Likewise for param "insn".
17362 (mep_make_bundle): Likewise for return type, param "cop" and local
17363 "insn", splitting out the latter into a new local "seq" for when it
17364 is a SEQUENCE rather than an insn.
17365 (core_insn_p): Likewise for param "insn".
17366 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
17367 "last", "first", "note", "prev", "core_insn".
17369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17371 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
17373 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
17374 (m68k_final_prescan_insn): Likewise for first param.
17376 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
17377 (m68k_set_frame_related): Likewise for param "insn".
17378 (output_btst): Likewise for param "insn".
17379 (m68k_final_prescan_insn): Likewise.
17380 (m68k_move_to_reg): Likewise for local "insn".
17381 (m68k_call_tls_get_addr): Likewise for local "insns".
17382 (m68k_call_m68k_read_tp): Likewise.
17383 (strict_low_part_peephole_ok): Likewise for param "first_insn".
17384 (m68k_output_mi_thunk): Likewise for local "insn".
17386 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17388 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
17389 first param from rtx to rtx_insn *.
17390 (iq2000_adjust_insn_length): Likewise.
17391 (iq2000_output_conditional_branch): Likewise.
17392 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
17393 "insn" and local "nop_insn".
17394 (iq2000_annotate_frame_insn): Likewise for param "insn".
17395 (iq2000_expand_prologue): Likewise for both locals "insn".
17396 (iq2000_adjust_insn_length): Likewise for param "insn".
17397 (iq2000_output_conditional_branch): Likewise.
17399 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17401 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
17402 "insns" from rtx to rtx_insn *.
17403 (ia64_emit_cond_move): Likewise for locals "insn", "first".
17404 (struct spill_fill_data): Likewise for field "init_after" and for
17405 elements of array field "prev_insn".
17406 (spill_restore_mem): Likewise for locals "insn", "first".
17407 (do_spill): Likewise for local "insn".
17408 (do_restore): Likewise.
17409 (ia64_expand_prologue): Likewise.
17410 (ia64_expand_epilogue): Likewise.
17411 (emit_insn_group_barriers): Likewise for locals "insn",
17413 (emit_all_insn_group_barriers): Likewise for locals "insn",
17415 (dfa_stop_insn): Likewise for this global.
17416 (dfa_pre_cycle_insn): Likewise.
17417 (ia64_nop): Likewise.
17418 (final_emit_insn_group_barriers): Likewise for locals "insn",
17420 (emit_predicate_relation_info): Likewise for locals "head", "n",
17422 (ia64_reorg): Likewise for local "insn".
17423 (ia64_output_mi_thunk): Likewise.
17424 (expand_vec_perm_interleave_2): Likewise for local "seq".
17426 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17428 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
17429 param 1 "insn" from rtx to rtx_insn *.
17430 (ix86_use_lea_for_mov): Likewise.
17431 (ix86_avoid_lea_for_addr): Likewise.
17432 (ix86_split_lea_for_addr): Likewise.
17433 (ix86_lea_for_add_ok): Likewise.
17434 (ix86_output_call_insn): Likewise.
17436 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
17437 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
17438 (ix86_output_function_epilogue): Likewise for locals "insn",
17439 "deleted_debug_label".
17440 (legitimize_tls_address): Likewise for local "insn".
17441 (get_some_local_dynamic_name): Likewise.
17442 (increase_distance): Likewise for params "prev", "next".
17443 (distance_non_agu_define_in_bb): Likewise for params "insn",
17444 "start" and locals "prev", "next".
17445 (distance_non_agu_define): Likewise for param "insn".
17446 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
17447 locals "next", "prev".
17448 (distance_agu_use): Likewise for param "insn".
17449 (ix86_lea_outperforms): Likewise.
17450 (ix86_ok_to_clobber_flags): Likewise.
17451 (ix86_avoid_lea_for_add): Likewise.
17452 (ix86_use_lea_for_mov): Likewise.
17453 (ix86_avoid_lea_for_addr): Likewise.
17454 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
17455 (ix86_split_lea_for_addr): Likewise for param "insn".
17456 (ix86_lea_for_add_ok): Likewise for param "insn".
17457 (ix86_expand_carry_flag_compare): Likewise for local
17459 (ix86_expand_int_movcc): Likewise.
17460 (ix86_output_call_insn): Likewise for param "insn".
17461 (ix86_output_call_insn): Likewise for local "i".
17462 (x86_output_mi_thunk): Introduce local "insn", using it in place
17463 of "tmp" when dealing with insns.
17464 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
17466 (ix86_pad_returns): Likewise for locals "ret", "prev".
17467 (ix86_count_insn_bb): Likewise for local "insn".
17468 (ix86_pad_short_function): Likewise for locals "ret", "insn".
17469 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
17470 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
17471 (expand_vec_perm_interleave2): Likewise for local "seq".
17472 (expand_vec_perm_vperm2f128_vblend): Likewise.
17473 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
17474 call to for_each_rtx with for_each_rtx_in_insn.
17476 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17478 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
17479 "label" from rtx to rtx_code_label *.
17480 (ix86_expand_prologue): Likewise.
17481 (ix86_expand_split_stack_prologue): Likewise for locals "label",
17483 (ix86_split_idivmod): Likewise for locals "end_label" and
17485 (ix86_expand_branch): Likewise for local "label2".
17486 (ix86_expand_aligntest): Likewise for return type and local "label".
17487 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
17489 (expand_movmem_epilogue): Likewise for the various locals named
17491 (expand_setmem_epilogue): Likewise.
17492 (expand_small_movmem_or_setmem): Likewise for local "label".
17493 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
17494 Strengthen param "done_label" from rtx * to rtx_code_label **.
17495 Strengthen locals "loop_label" and "label" from rtx to
17497 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
17498 Likewise for locals "loop_label", "label".
17499 (ix86_expand_set_or_movmem): Likewise for locals "label",
17500 "jump_around_label", "hot_label".
17501 (ix86_expand_strlensi_unroll_1): Likewise for locals
17502 "align_2_label", align_3_label", "align_4_label", "end_0_label",
17504 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
17505 (void ix86_emit_i387_log1p): Likewise for locals "label1",
17506 "label2", "jump_label".
17507 (ix86_expand_sse_compare_and_jump): Likewise for return type and
17509 (ix86_expand_lfloorceil): Likewise for local "label".
17510 (ix86_expand_rint): Likewise.
17511 (ix86_expand_floorceildf_32): Likewise.
17512 (ix86_expand_floorceil): Likewise.
17513 (ix86_expand_rounddf_32): Likewise.
17514 (ix86_expand_trunc): Likewise.
17515 (ix86_expand_truncdf_32): Likewise.
17516 (ix86_expand_round): Likewise.
17518 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17520 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
17521 first param from rtx to rtx_insn *.
17522 (h8300_insn_length_from_table): Likewise.
17523 * config/h8300/h8300.c (F): Likewise for return type and param
17525 (Fpa): Add a checked cast to rtx_insn *.
17526 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
17528 (final_prescan_insn): Likewise for param "insn".
17529 (h8300_binary_length): Likewise.
17530 (h8300_insn_length_from_table): Likewise.
17532 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17534 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
17535 Strengthen first param "insn" from rtx to rtx_insn *.
17537 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
17539 (frame_insn): Likewise for return type. Introduce local "insn"
17540 for use in place of local "x" for use as an rtx_insn *.
17541 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
17542 (epiphany_expand_prologue): Likewise for local "insn".
17543 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
17544 * config/epiphany/resolve-sw-modes.c
17545 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
17548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17550 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
17551 param from rtx to rtx_insn *.
17552 (c6x_final_prescan_insn): Likewise for first param.
17554 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
17555 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
17556 (c6x_expand_compare): Strengthen local "insns" from rtx to
17558 (c6x_get_unit_specifier): Likewise for param "insn".
17559 (c6x_print_unit_specifier_field): Likewise.
17560 (c6x_final_prescan_insn): Likewise.
17561 (emit_add_sp_const): Likewise for local "insn".
17562 (c6x_expand_prologue): Likewise.
17564 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17566 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
17567 param 1 from rtx to rtx_insn *.
17568 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
17569 the various locals named "insn".
17570 (expand_epilogue_reg_restore): Likewise.
17571 (frame_related_constant_load): Likewise.
17572 (add_to_reg): Likewise.
17573 (emit_link_insn): Likewise.
17574 (do_link): Likewise.
17575 (expand_interrupt_handler_prologue): Likewise.
17576 (branch_dest): Likewise for param "branch".
17577 (asm_conditional_branch): Likewise for param "insn".
17578 (gen_one_bundle): Likewise for elements of param "slot" and local
17580 (bfin_gen_bundles): Likewise for locals "insn", "next" and
17581 elements of local "slot".
17582 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
17583 "queue", "next_queue", "prev".
17584 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
17585 (add_sched_insns_for_speculation): Likewise for local "insn".
17587 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17589 * config/avr/avr-protos.h (output_movqi): Strengthen first param
17590 from rtx to rtx_insn *.
17591 (output_movhi): Likewise.
17592 (output_movsisf): Likewise.
17593 (avr_out_tstsi): Likewise.
17594 (avr_out_tsthi): Likewise.
17595 (avr_out_tstpsi): Likewise.
17596 (avr_out_compare): Likewise.
17597 (avr_out_compare64): Likewise.
17598 (avr_out_movpsi): Likewise.
17599 (ashlqi3_out): Likewise.
17600 (ashlhi3_out): Likewise.
17601 (ashlsi3_out): Likewise.
17602 (ashrqi3_out): Likewise.
17603 (ashrhi3_out): Likewise.
17604 (ashrsi3_out): Likewise.
17605 (lshrqi3_out): Likewise.
17606 (lshrhi3_out): Likewise.
17607 (lshrsi3_out): Likewise.
17608 (avr_out_ashlpsi3): Likewise.
17609 (avr_out_ashrpsi3): Likewise.
17610 (avr_out_lshrpsi3): Likewise.
17611 (avr_out_fract): Likewise.
17612 (avr_out_sbxx_branch): Likewise.
17613 (avr_out_round): Likewise.
17614 (avr_out_xload): Likewise.
17615 (avr_out_movmem): Likewise.
17616 (adjust_insn_length): Likewise.
17617 (avr_out_lpm): Likewise.
17618 (reg_unused_after): Likewise.
17619 (_reg_unused_after): Likewise.
17620 (avr_jump_mode): Likewise for second param.
17621 (jump_over_one_insn): Likewise for first param.
17622 (avr_final_prescan_insn): Likewise.
17623 (out_shift_with_cnt): Likewise for second param.
17625 * config/avr/avr.c (get_sequence_length): Likewise for param
17626 "insns" and local "insn".
17627 (emit_push_byte): Likewise for local "insn".
17628 (emit_push_sfr): Likewise.
17629 (avr_prologue_setup_frame): Likewise for locals "insn",
17630 "fp_plus_insns", "sp_plus_insns".
17631 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
17633 (avr_jump_mode): Likewise for param "insn".
17634 (avr_final_prescan_insn): Likewise.
17635 (avr_find_unused_d_reg): Likewise.
17636 (avr_out_lpm_no_lpmx): Likewise.
17637 (avr_out_lpm): Likewise.
17638 (avr_out_xload): Likewise.
17639 (output_movqi): Likewise.
17640 (output_movhi): Likewise.
17641 (out_movqi_r_mr): Likewise.
17642 (out_movhi_r_mr): Likewise.
17643 (out_movsi_r_mr): Likewise.
17644 (out_movsi_mr_r): Likewise.
17645 (output_movsisf): Likewise.
17646 (avr_out_load_psi): Likewise.
17647 (avr_out_store_psi): Likewise.
17648 (avr_out_movpsi): Likewise.
17649 (out_movqi_mr_r): Likewise.
17650 (avr_out_movhi_mr_r_xmega): Likewise.
17651 (out_movhi_mr_r): Likewise.
17652 (compare_condition): Likewise for param "insn" and local "next".
17653 (compare_sign_p): Likewise for param "insn".
17654 (compare_diff_p): Likewise.
17655 (compare_eq_p): Likewise.
17656 (avr_out_compare): Likewise.
17657 (avr_out_compare64): Likewise.
17658 (avr_out_tsthi): Likewise.
17659 (avr_out_tstpsi): Likewise.
17660 (avr_out_tstsi): Likewise.
17661 (out_shift_with_cnt): Likewise.
17662 (ashlqi3_out): Likewise.
17663 (ashlhi3_out): Likewise.
17664 (avr_out_ashlpsi3): Likewise.
17665 (ashlsi3_out): Likewise.
17666 (ashrqi3_out): Likewise.
17667 (ashrhi3_out): Likewise.
17668 (avr_out_ashrpsi3): Likewise.
17669 (ashrsi3_out): Likewise.
17670 (lshrqi3_out): Likewise.
17671 (lshrhi3_out): Likewise.
17672 (avr_out_lshrpsi3): Likewise.
17673 (lshrsi3_out): Likewise.
17674 (avr_out_fract): Likewise.
17675 (avr_out_round): Likewise.
17676 (avr_adjust_insn_length): Likewise.
17677 (reg_unused_after): Likewise.
17678 (_reg_unused_after): Likewise.
17679 (avr_compare_pattern): Likewise.
17680 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
17681 and locals "branch1", "branch2", "insn2", "jump".
17682 (avr_reorg): Likewise for local "insn".
17683 (avr_2word_insn_p): Likewise for param "insn".
17684 (jump_over_one_insn_p): Likewise.
17685 (avr_out_sbxx_branch): Likewise.
17686 (avr_out_movmem): Likewise.
17688 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17690 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
17691 param from rtx to rtx_insn *.
17692 (thumb1_final_prescan_insn): Likewise.
17693 (thumb2_final_prescan_insn): Likewise.
17695 * config/arm/arm.c (emit_set_insn): Strengthen return type from
17697 (struct minipool_node): Likewise for field "insn".
17698 (dump_minipool): Likewise for param "scan".
17699 (create_fix_barrier): Likewise for local "from". Strengthen local
17700 "label" from rtx to rtx_code_label *.
17701 (push_minipool_barrier): Strengthen param "insn" from rtx to
17703 (push_minipool_fix): Likewise.
17704 (note_invalid_constants): Likewise.
17705 (thumb2_reorg): Likewise for local "insn".
17706 (arm_reorg): Likewise.
17707 (thumb2_final_prescan_insn): Likewise for param
17708 "insn" and local "first_insn".
17709 (arm_final_prescan_insn): Likewise for param "insn" and locals
17710 "start_insn", "this_insn".
17711 (arm_debugger_arg_offset): Likewise for param "insn".
17712 (thumb1_emit_multi_reg_push): Likewise for return type and local
17714 (thumb1_final_prescan_insn): Likewise for param "insn".
17715 (thumb_far_jump_used_p): Likewise for local "insn".
17716 (thumb1_expand_prologue): Likewise.
17717 (arm_expand_epilogue_apcs_frame): Likewise.
17718 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
17719 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
17720 from rtx to rtx_code_label *.
17721 (arm_split_atomic_op): Likewise for local "label".
17722 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
17724 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17726 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
17727 first param from rtx to rtx_insn *.
17728 (arc_verify_short): Likewise.
17729 (arc_short_long): Likewise.
17730 (arc_need_delay): Likewise.
17732 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
17734 (arc_ccfsm_advance): Likewise for param "insn" and locals
17735 "start_insn", "this_insn".
17736 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
17737 (arc_ccfsm_post_advance): Likewise for param "insn".
17738 (arc_next_active_insn): Likewise for return type and param "insn".
17739 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
17740 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
17741 (output_short_suffix): Likewise for local "insn".
17742 (arc_final_prescan_insn): Likewise for param "insn". Remove
17743 now-redundant checked cast.
17744 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
17745 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
17746 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
17747 for use where lc_set became an insn.
17748 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
17750 (arc_get_insn_variants): Likewise for local "prev".
17751 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
17753 (arc_predicate_delay_insns): Likewise for local "insn".
17754 (arc_pad_return): Likewise for local "prev". For now, add a
17755 checked cast when extracting the insn from "final_sequence".
17756 (arc_short_long): Likewise for param "insn".
17757 (arc_need_delay): Likewise for param "insn" and local "next".
17758 (arc_label_align): Likewise for locals "prev", "next".
17760 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17762 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
17763 "insn" from rtx to rtx_insn *.
17764 (alpha_gp_save_rtx): Likewise for local "seq".
17765 (alpha_instantiate_decls): Likewise for local "top".
17766 (get_some_local_dynamic_name): Likewise for local "insn".
17767 (alpha_does_function_need_gp): Likewise.
17768 (set_frame_related_p): Likewise for return type and for locals
17770 (emit_frame_store_1): Likewise for local "insn".
17771 (alpha_expand_prologue): Likewise for locals "insn", "seq".
17772 (alpha_end_function): Likewise for local "insn".
17773 (alpha_output_mi_thunk_osf): Likewise.
17774 (alphaev4_insn_pipe): Likewise for param "insn".
17775 (alphaev5_insn_pipe): Likewise.
17776 (alphaev4_next_group): Likewise for return type and param 1
17778 (alphaev5_next_group): Likewise.
17779 (alpha_align_insns_1): Likewise for return type and param 1 of
17780 callback param "next_group", and for locals "i", "next", "prev",
17781 "where", "where2", "insn".
17783 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
17785 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
17786 rather than modifying the stmt.
17788 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17790 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
17791 cgraph_state conversion.
17793 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17795 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17796 Strengthen local "insns" from rtx to rtx_insn *.
17797 (aarch64_set_frame_expr): Likewise for local "insn".
17798 (aarch64_save_or_restore_fprs): Likewise.
17799 (aarch64_save_or_restore_callee_save_registers): Likewise.
17800 (aarch64_expand_prologue): Likewise.
17801 (aarch64_expand_epilogue): Likewise.
17802 (aarch64_output_mi_thunk): Likewise.
17803 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
17804 "label2" from rtx to rtx_code_label *.
17805 (aarch64_split_atomic_op): Likewise for local "label".
17807 2014-08-25 Martin Liska <mliska@suse.cz>
17809 * cgraph.h (symtab_node):
17810 (bool needed_p (void)): created from decide_is_symbol_needed
17811 (bool referred_to_p (void)): created from referred_to_p
17812 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
17813 * cgraph.h (cgraph_node):
17814 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
17815 (void expand (void)): created from expand_function
17816 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
17817 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
17818 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
17819 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
17820 * cgraph.h (varpool_node):
17821 (static void add (tree decl): created from varpool_add_new_variable
17822 * cgraph.h (cgraph_edge):
17823 void remove (void);
17824 (void remove_caller (void)): created from cgraph_edge_remove_caller
17825 (void remove_callee (void)): created from cgraph_edge_remove_callee
17826 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
17827 created from cgraph_set_call_stmt
17828 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
17829 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
17830 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
17831 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
17832 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
17833 created from cgraph_speculative_call_info
17834 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
17835 int freq_scale, bool update_original)): created from cgraph_clone_edge
17836 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
17837 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
17838 (bool recursive_p (void)): created from cgraph_edge_recursive_p
17839 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
17840 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
17841 (static void rebuild_references (void)): created from cgraph_rebuild_references
17842 * cgraph.h (symbol_table):
17843 (create_reference): renamed from add_reference
17844 (maybe_create_reference): renamed from maybe_add_reference
17845 (void register_symbol (symtab_node *node)): new function
17846 (void clear_asm_symbols (void)): new function
17847 (void unregister (symtab_node *node)): new function
17848 (void release_symbol (cgraph_node *node, int uid)): new function
17849 (cgraph_node * allocate_cgraph_symbol (void)): new function
17850 (void initialize (void)): created from cgraph_init
17851 (symtab_node *first_symbol (void)):new function
17852 (asm_node *first_asm_symbol (void)):new function
17853 (symtab_node *first_defined_symbol (void)):new function
17854 (varpool_node *first_variable (void)):new function
17855 (varpool_node *next_variable (varpool_node *node)):new function
17856 (varpool_node *first_static_initializer (void)):new function
17857 (varpool_node *next_static_initializer (varpool_node *node)):new function
17858 (varpool_node *first_defined_variable (void)):new function
17859 (varpool_node *next_defined_variable (varpool_node *node)):new function
17860 (cgraph_node *first_defined_function (void)):new function
17861 (cgraph_node *next_defined_function (cgraph_node *node)):new function
17862 (cgraph_node *first_function (void)):new function
17863 (cgraph_node *next_function (cgraph_node *node)):new function
17864 (cgraph_node *first_function_with_gimple_body (void)):new function
17865 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
17866 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
17867 created from symtab_remove_unreachable_nodes
17868 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
17869 (void process_new_functions (void)): created from cgraph_process_new_functions
17870 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
17871 (bool output_variables (void)): created from varpool_node::output_variables
17872 (void output_asm_statements (void)): created from output_asm_statements
17873 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
17874 (void compile (void)): created from compile
17875 (void output_weakrefs (void)): created from output_weakrefs
17876 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
17877 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
17878 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
17879 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
17880 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
17881 created from cgraph_next_function_with_gimple_body
17882 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
17883 created from cgraph_remove_edge_removal_hook
17884 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
17885 created from cgraph_add_node_removal_hook
17886 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
17887 created from cgraph_remove_node_removal_hook
17888 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
17889 created from varpool_add_node_removal_hook
17890 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
17891 created from varpool_remove_node_removal_hook
17892 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
17893 created from cgraph_add_function_insertion_hook
17894 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
17895 created from cgraph_remove_function_insertion_hook
17896 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
17897 created from varpool_add_variable_insertion_hook
17898 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
17899 created from varpool_remove_variable_insertion_hook
17900 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
17901 created from cgraph_add_edge_duplication_hook
17902 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
17903 created from cgraph_remove_edge_duplication_hook
17904 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
17905 created from cgraph_add_node_duplication_hook
17906 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
17907 created from cgraph_remove_node_duplication_hook
17908 (void call_edge_removal_hooks (cgraph_edge *e)):
17909 created from cgraph_call_edge_removal_hooks
17910 (void call_cgraph_insertion_hooks (cgraph_node *node)):
17911 created from call_function_insertion_hooks
17912 (void call_cgraph_removal_hooks (cgraph_node *node)):
17913 created from cgraph_call_node_removal_hooks
17914 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
17915 created from cgraph_node::call_duplication_hooks
17916 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
17917 created from cgraph_call_edge_duplication_hooks
17918 (void call_varpool_removal_hooks (varpool_node *node)):
17919 created from varpool_call_node_removal_hooks
17920 (void call_varpool_insertion_hooks (varpool_node *node)):
17921 created from varpool_call_variable_insertion_hooks
17922 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
17923 created from insert_to_assembler_name_hash
17924 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
17925 created from unlink_from_assembler_name_hash
17926 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
17927 created from symtab_prevail_in_asm_name_hash
17928 (void symtab_initialize_asm_name_hash (void)):
17929 created from symtab_initialize_asm_name_hash
17930 (void change_decl_assembler_name (tree decl, tree name)):
17931 created from change_decl_assembler_name
17932 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
17933 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
17934 created from decl_assembler_name_hash
17935 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
17936 created from decl_assembler_name_equal
17937 (static hashval_t hash_node_by_assembler_name (const void *p)):
17938 created from hash_node_by_assembler_name
17939 (static int eq_assembler_name (const void *p1, const void *p2)):
17940 created from eq_assembler_name
17942 2014-08-25 Marek Polacek <polacek@redhat.com>
17944 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
17946 2014-08-25 Petr Murzin <petr.murzin@intel.com>
17948 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
17949 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
17950 SWI1248_AVX512BW mode iterator.
17952 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
17955 * config/sh/predicates.md (general_extend_operand): Disable
17956 TRUNCATE before reload completes.
17958 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
17960 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
17962 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
17965 * config/sh/sh.opt (musermode): Allow negative form.
17966 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
17967 targets that don't support it.
17968 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
17969 Document -mno-usermode option.
17971 2014-08-24 Kito Cheng <kito@0xlab.org>
17973 * system.h (CALLER_SAVE_PROFITABLE): Poison.
17974 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
17975 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
17976 * doc/tm.texi: Regenerate.
17978 2014-08-24 Kito Cheng <kito@0xlab.org>
17980 * ira.c: Fix typo in comment.
17982 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
17984 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
17985 Deprecate c++1y. Change language to reflect greater confidence in C++14.
17987 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
17990 * config/pa/pa.c (pa_output_function_epilogue): Don't set
17991 last_address when the current function is a thunk.
17992 (pa_asm_output_mi_thunk): When we don't have named sections or they
17993 are not being used, check that thunk can reach the stub table with a
17996 2014-08-23 David Malcolm <dmalcolm@redhat.com>
17998 * web.c (union_match_dups): Strengthen param "insn" from rtx to
18000 (pass_web::execute): Likewise for local "insn".
18002 2014-08-23 David Malcolm <dmalcolm@redhat.com>
18004 * var-tracking.c (struct micro_operation_def): Strengthen field
18005 "insn" from rtx to rtx_insn *.
18006 (struct emit_note_data_def): Likewise.
18007 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
18008 (vt_stack_adjustments): Likewise for local "insn".
18009 (adjust_insn): Likewise for param "insn".
18010 (val_store): Likewise.
18011 (val_resolve): Likewise.
18012 (struct count_use_info): Likewise for field "insn".
18013 (log_op_type): Likewise for param "insn".
18014 (reverse_op): Likewise.
18015 (prepare_call_arguments): Likewise.
18016 (add_with_sets): The initial param takes an insn, but we can't
18017 yet strengthen it from rtx to rtx_insn * since it's used as a
18018 cselib_record_sets_hook callback. For now rename initial param
18019 from "insn" to "uncast_insn", and introduce a local "insn" of
18020 the stronger rtx_insn * type, with a checked cast.
18021 (compute_bb_dataflow): Strengthen local "insn" from rtx to
18023 (emit_note_insn_var_location): Likewise.
18024 (emit_notes_for_changes): Likewise.
18025 (emit_notes_for_differences): Likewise.
18026 (next_non_note_insn_var_location): Likewise for return type and
18028 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
18029 (vt_initialize): Likewise for local "insn".
18030 (delete_debug_insns): Likewise for locals "insn" and "next".
18032 2014-08-23 David Malcolm <dmalcolm@redhat.com>
18034 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
18036 (mark_constant_pool): Likewise for local "insn".
18038 2014-08-23 David Malcolm <dmalcolm@redhat.com>
18040 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
18042 (dead_debug_promote_uses): Likewise.
18043 (dead_debug_insert_temp): Likewise.
18045 2014-08-23 David Malcolm <dmalcolm@redhat.com>
18047 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
18048 from const_rtx to const rtx_insn *.
18049 (store_killed_after): Likewise. Strengthen locals "last", "act"
18050 from rtx to rtx_insn *.
18051 (store_killed_before): Strengthen param "insn" from const_rtx to
18052 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
18053 (find_moveable_store): Strengthen param "insn" from rtx to
18055 (compute_store_table): Likewise for local "insn".
18056 (insert_insn_start_basic_block): Likewise for param "insn" and
18057 locals "prev", "before", "insn".
18058 (insert_store): For now, add a checked cast to rtx_insn * on the
18059 result of gen_move_insn.
18060 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
18062 (replace_store_insn): Likewise. For now, add a checked cast to
18063 rtx_insn * on the result of gen_move_insn.
18065 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18067 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
18069 (expand_sjlj_dispatch_table): Likewise.
18071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18073 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
18074 "insn" from rtx to rtx_insn *.
18076 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18078 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
18079 "insn" from rtx to rtx_insn *.
18080 (dup_block_and_redirect): Likewise for param 3 "before".
18082 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
18083 from rtx to rtx_insn *.
18084 (move_insn_for_shrink_wrap): Likewise.
18085 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
18086 (dup_block_and_redirect): Likewise for param "before" and local
18088 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
18090 (convert_to_simple_return): Likewise for local "start".
18092 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
18093 Strengthen local "insn" from rtx to rtx_insn *, for use when
18094 invoking requires_stack_frame_p.
18096 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18098 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
18100 (speculate_expr): Likewise for locals "orig_insn_rtx",
18102 (eq_transformed_insns): Likewise for locals "i1", "i2".
18103 (check_for_new_jump): Likewise for return type and local "end".
18104 (find_new_jump): Likewise for return type and local "jump".
18105 (sel_split_edge): Likewise for local "jump".
18106 (sel_create_recovery_block): Likewise.
18107 (sel_redirect_edge_and_branch_force): Likewise.
18108 (sel_redirect_edge_and_branch): Likewise.
18110 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18112 * sel-sched.c (substitute_reg_in_expr): Strengthen local
18113 "new_insn" from rtx to rtx_insn *.
18114 (create_insn_rtx_with_rhs): Likewise for return type and for local
18116 (create_insn_rtx_with_lhs): Likewise.
18117 (create_speculation_check): Likewise for local "insn_rtx".
18118 (implicit_clobber_conflict_p): Likewise for local "insn".
18119 (get_expr_cost): Likewise.
18120 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
18121 (move_cond_jump): Likewise for locals "next", "prev", "link",
18122 "head", "from", "to".
18124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18126 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
18127 "next" from rtx to rtx_insn *.
18128 (find_conditional_protection): Likewise for local "next".
18129 (is_conditionally_protected): Likewise for local "insn1".
18130 (is_pfree): Likewise for locals "insn1", "insn2".
18132 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18134 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
18135 from rtx to rtx_insn *.
18137 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
18138 locals "insn1", "insn2" from rtx to rtx_insn *.
18139 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
18140 locals "insn", "prev", "last_jump", "next_tail".
18141 (schedule_ebb): Likewise for params "head", "tail".
18142 (schedule_ebbs): Likewise for locals "tail", "head".
18144 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
18145 to rtx_insn on "last_insn" in one of the invocations of
18148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18150 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
18151 "elem", "insn" from rtx to rtx_insn *.
18152 (change_spec_dep_to_hard): Likewise.
18153 (get_back_and_forw_lists): Likewise for local "con".
18154 (sd_add_dep): Likewise for locals "elem", "insn".
18155 (sd_resolve_dep): Likewise for locals "pro", "con".
18156 (sd_unresolve_dep): Likewise.
18157 (sd_delete_dep): Likewise.
18158 (chain_to_prev_insn): Likewise for local "pro".
18159 (find_inc): Likewise for locals "pro", "con".
18161 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18163 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
18165 (reg_set_between_p): Strengthen local "insn" from const_rtx to
18167 (modified_between_p): Strengthen local "insn" from rtx to
18169 (remove_reg_equal_equiv_notes_for_regno): Likewise.
18170 (keep_with_call_p): Strengthen local "i2" from const_rtx to
18173 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18175 * resource.c (next_insn_no_annul): Strengthen local "next" from
18177 (mark_referenced_resources): Likewise for local "insn".
18179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18181 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
18183 (find_reloads): Likewise for param 1.
18184 (subst_reloads): Likewise for sole param.
18185 (find_equiv_reg): Likwise for param 2.
18186 (regno_clobbered_p): Likwise for param 2.
18187 (reload): Likewise for param 1.
18189 * caller-save.c (save_call_clobbered_regs): Strengthen local
18190 "insn" from rtx to rtx_insn *.
18191 (insert_one_insn): Likewise for local "insn".
18193 * reload.c (this_insn): Likewise for this global.
18194 (find_reloads): Likewise for param "insn".
18195 (find_reloads_toplev): Likewise.
18196 (find_reloads_address): Likewise.
18197 (subst_reg_equivs): Likewise.
18198 (update_auto_inc_notes): Likewise.
18199 (find_reloads_address_1): Likewise.
18200 (find_reloads_subreg_address): Likewise.
18201 (subst_reloads): Likewise.
18202 (find_equiv_reg): Likewise, also for local "p".
18203 (regno_clobbered_p): Likewise for param "insn".
18205 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
18207 (spill_reg_store): Likewise for the elements of this array.
18208 (remove_init_insns): Likewise for local "equiv_insn".
18209 (will_delete_init_insn_p): Likewise for param "insn".
18210 (reload): Likewise for param ""first" and local "insn".
18211 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
18213 (calculate_elim_costs_all_insns): Likewise.
18214 (delete_caller_save_insns): Likewise.
18215 (spill_failure): Likewise for param "insn".
18216 (delete_dead_insn): Likewise.
18217 (set_label_offsets): Likewise.
18218 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
18220 (elimination_costs_in_insn): Likewise for param "insn".
18221 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
18222 when referring to an insn.
18223 (set_initial_label_offsets): Likewise.
18224 (set_offsets_for_label): Strengthen param "insn" from rtx to
18226 (init_eliminable_invariants): Likewise for param "first" and local
18228 (fixup_eh_region_note): Likewise for param "insn".
18229 (reload_as_needed): Likewise for locals "prev", "insn",
18230 "old_next", "old_prev", "next".
18231 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
18233 (reload_inheritance_insn): Strengthen elements of this array from
18235 (failed_reload): Likewise for param "insn".
18236 (choose_reload_regs): Likewise for local "insn". Replace use of
18237 NULL_RTX with NULL when referring to an insn.
18238 (input_reload_insns): Strengthen elements of this array from rtx
18240 (other_input_address_reload_insns): Likewise for this global.
18241 (other_input_reload_insns): Likewise for this global.
18242 (input_address_reload_insns): Likwise for the elements of this
18244 (inpaddr_address_reload_insns): Likwise for the elements of this
18246 (output_reload_insns): Likewise for the elements of this array.
18247 (output_address_reload_insns): Likewise for the elements of this
18249 (outaddr_address_reload_insns): Likewise for the elements of this
18251 (operand_reload_insns): Likewise for this global.
18252 (other_operand_reload_insns): Likewise for this global.
18253 (other_output_reload_insns): Likewise for the elements of this
18255 (new_spill_reg_store): Likewise for the elements of this
18257 (emit_input_reload_insns): Likewise for locals "insn", "temp".
18258 Strengthen local "where" from rtx * to rtx_insn **.
18259 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
18260 from rtx to rtx_insn *.
18261 (do_input_reload): Likewise for local "insn".
18262 (do_output_reload): Likewise for local "insn".
18263 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
18264 (emit_insn_if_valid_for_reload): Likewise for return type and local
18265 "last". Add checked cast to rtx_insn when returning "insn" since
18266 this has been through emit_insn.
18267 (gen_reload): Strengthen return type and locals "last", "insn", "set"
18268 from rtx to rtx_insn *. Add checked cast to rtx_insn when
18269 returning "insn" since it's been through
18270 emit_insn_if_valid_for_reload at this point.
18271 (delete_output_reload): Strengthen param "insn" and locals
18272 "output_reload_insn", "i2" from rtx to rtx_insn *.
18273 (delete_address_reloads): Likewise for params "dead_insn",
18274 "current_insn" and locals "prev", "next".
18275 (delete_address_reloads_1): Likewise for params "dead_insn",
18276 "current_insn" and locals "prev", "i2".
18277 (inc_for_reload): Likewise for locals "last", "add_insn".
18278 (add_auto_inc_notes): Strengthen param "insn" from rtx to
18281 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
18282 param of this duplicate of the prototype from reload.h
18284 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18286 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
18288 (regstat_bb_compute_calls_crossed): Likewise.
18290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18292 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
18294 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
18296 (regrename_analyze): Strengthen local "insn" from rtx to
18298 (scan_rtx_reg): Likewise for param "insn".
18299 (scan_rtx_address): Likewise.
18300 (scan_rtx): Likewise.
18301 (restore_operands): Likewise.
18302 (record_out_operands): Likewise.
18303 (build_def_use): Likewise for local "insn". Replace use of
18304 NULL_RTX with NULL when dealing with an insn.
18306 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18308 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
18309 * reginfo.c (reg_scan): Likewise, also for local "insn".
18310 (reg_scan_mark_refs): Likewise for param "insn".
18311 (init_subregs_of_mode): Likewise for local "insn".
18313 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18315 * regcprop.c (struct queued_debug_insn_change): Strengthen field
18316 "insn" from rtx to rtx_insn *.
18317 (replace_oldest_value_reg): Likewise for param "insn".
18318 (replace_oldest_value_addr): Likewise.
18319 (replace_oldest_value_mem): Likewise.
18320 (apply_debug_insn_changes): Likewise for local "last_insn".
18321 (copyprop_hardreg_forward_1): Likewise for local "insn".
18323 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18325 * reg-stack.c (next_flags_user): Strengthen return type and param
18326 "insn" from rtx to rtx_insn *.
18327 (straighten_stack): Likewise for param "insn".
18328 (check_asm_stack_operands): Likewise.
18329 (remove_regno_note): Likewise.
18330 (emit_pop_insn): Likewise for return type, param "insn", local
18332 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
18333 "limit" from rtx to rtx_insn *.
18334 (swap_to_top): Likewise for param "insn".
18335 (move_for_stack_reg): Likewise.
18336 (move_nan_for_stack_reg): Likewise.
18337 (swap_rtx_condition): Likewise.
18338 (compare_for_stack_reg): Likewise.
18339 (subst_all_stack_regs_in_debug_insn): Likewise.
18340 (subst_stack_regs_pat): Likewise, and local "insn2".
18341 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
18343 (subst_stack_regs): Likewise.
18344 (change_stack): Likewise.
18345 (convert_regs_1): Likewise for locals "insn", "next".
18347 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18349 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
18351 (combine_set_extension): Likewise for param "curr_insn".
18352 (transform_ifelse): Likewise for param "def_insn".
18353 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
18354 from vec<rtx> * to vec<rtx_insn *> *.
18355 (is_cond_copy_insn): Likewise for param "insn".
18356 (struct ext_state): Strengthen the four vec fields from vec<rtx>
18357 to vec<rtx_insn *>.
18358 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
18359 local "def_insn" from rtx to rtx_insn *.
18360 (get_sub_rtx): Likewise for param "def_insn".
18361 (merge_def_and_ext): Likewise.
18362 (combine_reaching_defs): Likewise.
18363 (add_removable_extension): Likewise for param "insn".
18364 (find_removable_extensions): Likewise for local "insn".
18365 (find_and_remove_re): Likewise for locals "curr_insn" and
18366 "def_insn". Strengthen locals "reinsn_del_list" and
18367 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
18369 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18371 * recog.c (split_insn): Strengthen param "insn" and locals
18372 "first", "last" from rtx to rtx_insn *.
18373 (split_all_insns): Likewise for locals "insn", "next".
18374 (split_all_insns_noflow): Likewise.
18376 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18378 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
18380 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
18381 (debug_rtx_find): Likewise for param 1 "x".
18383 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
18384 const_rtx to const rtx_insn *. Likewise for local "insn".
18385 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
18386 (debug_rtx_find): Likewise for param 1 "x".
18387 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
18388 from const_rtx to const rtx_insn * within the appropriate cases of
18389 the switch statement.
18391 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
18392 Strengthen local "insns" from rtx to rtx_insn * since this is
18393 passed to a call to debug_rtx_list.
18395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18397 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
18400 * function.c (stack_protect_epilogue): Add checked cast to
18401 rtx_insn for now when invoking predict_insn_def.
18403 * predict.c (predict_insn): Strengthen param "insn" from rtx to
18405 (predict_insn_def): Likewise.
18406 (rtl_predict_edge): Likewise for local "last_insn".
18407 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
18409 (combine_predictions_for_insn): Strengthen param "insn" from rtx
18411 (bb_estimate_probability_locally): Likewise for local "last_insn".
18412 (expensive_function_p): Likewise for local "insn".
18414 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
18415 local "jmp", since this is used when invoking predict_insn_def.
18417 2014-08-22 Marek Polacek <polacek@redhat.com>
18420 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
18422 2014-08-22 Marek Polacek <polacek@redhat.com>
18425 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
18426 a comparison in parens.
18427 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
18430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18432 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
18435 * cprop.c (fis_get_condition): Likewise.
18437 * postreload.c (reload_cse_regs): Likewise for param "first".
18438 (reload_cse_simplify): Likewise for param "insn".
18439 (reload_cse_regs_1): Likewise for local "insn".
18440 (reload_cse_simplify_set): Likewise for param "insn".
18441 (reload_cse_simplify_operands): Likewise.
18442 (struct reg_use): Likewise for field "insn".
18443 (reload_combine_purge_insn_uses): Likewise for param "insn".
18444 (fixup_debug_insns): Likewise for params "from", "to" and local
18446 (try_replace_in_use): Likewise for local "use_insn".
18447 (reload_combine_recognize_const_pattern): Likewise for param
18448 "insn" and locals "add_moved_after_insn", "use_insn".
18449 (reload_combine_recognize_pattern): Likewise for param "insn" and
18451 (reload_combine): Likewise for locals "insn", "prev".
18452 (reload_combine_note_use): Likewise for param "insn".
18453 (move2add_use_add2_insn): Likewise.
18454 (move2add_use_add3_insn): Likewise.
18455 (reload_cse_move2add): Likewise, also for local "next".
18456 (move2add_note_store): Likewise for local "insn".
18458 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18460 * postreload-gcse.c (struct occr): Strengthen field "insn" from
18462 (struct unoccr): Likewise.
18463 (struct modifies_mem): Likewise.
18464 (alloc_mem): Likewise for local "insn".
18465 (insert_expr_in_table): Likewise for param "insn".
18466 (dump_expr_hash_table_entry): Likewise for local "insn".
18467 (oprs_unchanged_p): Likewise for param "insn".
18468 (load_killed_in_block_p): Likewise for local "setter".
18469 (record_last_reg_set_info): Likewise for param "insn".
18470 (record_last_reg_set_info_regno): Likewise.
18471 (record_last_mem_set_info): Likewise.
18472 (record_last_set_info): Likewise for local "last_set_insn".
18473 (record_opr_changes): Likewise for param "insn".
18474 (hash_scan_set): Likewise.
18475 (compute_hash_table): Likewise for local "insn".
18476 (get_avail_load_store_reg): Likewise for param "insn".
18477 (eliminate_partially_redundant_load): Likewise, also for locals
18478 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
18480 (eliminate_partially_redundant_loads): Likewise for local "insn".
18482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18484 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
18486 (expand_binop): Likewise for locals "entry_last", "last", "insns"
18487 (expand_twoval_unop): Likewise for locals entry_last", "last".
18488 (expand_twoval_binop): Likewise.
18489 (expand_twoval_binop_libfunc): Likewise for local "insns".
18490 (widen_leading): Likewise for local "last".
18491 (expand_doubleword_clz): Likewise for local "seq". Strengthen
18492 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
18493 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
18494 (expand_parity): Likewise for locals "last" and "seq".
18495 (expand_ffs): Likewise for local "seq". Strengthen local
18496 "nonzero_label" from rtx to rtx_code_label *.
18497 (expand_absneg_bit): Strengthen local "insns" from rtx to
18499 (expand_unop_direct): Likewise for local "last".
18500 (expand_unop): Likewise for locals "last", "insns".
18501 (expand_abs_nojump): Likewise for local "last".
18502 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
18503 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
18505 (expand_copysign_absneg): Strengthen local "label" from rtx to
18507 (expand_copysign_bit): Strengthen local "insns" from rtx to
18509 (struct no_conflict_data): Likewise for fields "first", "insn".
18510 (emit_libcall_block_1): Likewise for param "insns" and locals
18511 "next", "last", "insn".
18512 (emit_libcall_block): For now, add a checked cast to rtx_insn *
18513 on "insns" when invoking emit_libcall_block_1. Ultimately we
18514 want to strengthen insns itself.
18515 (prepare_cmp_insn): Strengthen local "last" from rtx to
18517 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
18518 (prepare_float_lib_cmp): Likewise for local "insns".
18519 (emit_conditional_move): Likewise for local "last".
18520 (emit_conditional_add): Likewise.
18521 (have_sub2_insn): Likewise for local "seq".
18522 (expand_float): Likewise for local "insns". Strengthen locals
18523 "label", "neglabel" from rtx to rtx_code_label *.
18524 (expand_fix): Likewise for locals "last", "insn", "insns" (to
18525 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
18526 (expand_fixed_convert): Likewise for local "insns" (to
18528 (expand_sfix_optab): Likewise for local "last".
18529 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
18530 to rtx_code_label *.
18531 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
18532 from rtx to rtx_insn *.
18533 (expand_atomic_fetch_op): Likewise for local "insn".
18534 (maybe_legitimize_operand_same_code): Likewise for local "last".
18535 (maybe_legitimize_operands): Likewise.
18537 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18539 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
18540 "insn" from rtx to rtx_insn *.
18541 (ps_rtl_insn): Likewise for return type.
18542 (doloop_register_get): Likewise for params "head", "tail" and
18543 locals "insn", "first_insn_not_to_check".
18544 (schedule_reg_move): Likewise for local "this_insn".
18545 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
18546 of gen_move_insn for now.
18547 (reset_sched_times): Strengthen local "insn" from rtx to
18549 (permute_partial_schedule): Likewise.
18550 (duplicate_insns_of_cycles): Likewise for local "u_insn".
18551 (dump_insn_location): Likewise for param "insn".
18552 (loop_canon_p): Likewise for local "insn".
18553 (sms_schedule): Likewise.
18554 (print_partial_schedule): Likewise.
18555 (ps_has_conflicts): Likewise.
18557 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18559 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
18560 "tailp" from rtx * to rtx_insn **.
18562 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
18563 from rtx to rtx_insn *.
18564 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
18565 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
18566 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
18568 * modulo-sched.c (const_iteration_count): Strengthen return type
18569 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
18570 use of NULL_RTX with NULL when working with insns.
18571 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
18573 (sms_schedule): Likewise.
18574 * sched-rgn.c (init_ready_list): Likewise, also for locals
18575 "src_head" and "src_next_tail".
18576 (compute_block_dependences): Likewise.
18577 (free_block_dependencies): Likewise.
18578 (debug_rgn_dependencies): Likewise.
18579 (free_rgn_deps): Likewise.
18580 (compute_priorities): Likewise.
18581 (schedule_region): Likewise.
18582 * sel-sched.c (find_ebb_boundaries): Likewise.
18584 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
18585 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
18587 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18589 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
18590 from rtx to rtx_insn *.
18591 (new_seginfo): Likewise for param "insn".
18592 (create_pre_exit): Likewise for locals "last_insn",
18593 "before_return_copy", "return_copy".
18594 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
18597 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18599 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
18600 from rtx to rtx_insn *.
18601 (lra_push_insn): Likewise for 1st param.
18602 (lra_push_insn_and_update_insn_regno_info): Likewise.
18603 (lra_pop_insn): Likewise for return type.
18604 (lra_invalidate_insn_data): Likewise for 1st param.
18605 (lra_set_insn_deleted): Likewise.
18606 (lra_delete_dead_insn): Likewise.
18607 (lra_process_new_insns): Likewise for first 3 params.
18608 (lra_set_insn_recog_data): Likewise for 1st param.
18609 (lra_update_insn_recog_data): Likewise.
18610 (lra_set_used_insn_alternative): Likewise.
18611 (lra_invalidate_insn_regno_info): Likewise.
18612 (lra_update_insn_regno_info): Likewise.
18613 (lra_former_scratch_operand_p): Likewise.
18614 (lra_eliminate_regs_1): Likewise.
18615 (lra_get_insn_recog_data): Likewise.
18617 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
18620 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
18622 (substitute_within_insn): New.
18623 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
18624 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
18625 Replace call to "substitute" with call to substitute_within_insn.
18627 * lra-constraints.c (curr_insn): Strengthen from rtx to
18629 (get_equiv_with_elimination): Likewise for param "insn".
18630 (match_reload): Strengthen params "before" and "after" from rtx *
18632 (emit_spill_move): Likewise for return type. Add a checked cast
18633 to rtx_insn * on result of gen_move_insn for now.
18634 (check_and_process_move): Likewise for local "before". Replace
18635 NULL_RTX with NULL when referring to insns.
18636 (process_addr_reg): Strengthen params "before" and "after" from
18637 rtx * to rtx_insn **.
18638 (insert_move_for_subreg): Likewise.
18639 (simplify_operand_subreg): Strengthen locals "before" and "after"
18640 from rtx to rtx_insn *.
18641 (process_address_1): Strengthen params "before" and "after" from
18642 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
18644 (process_address): Strengthen params "before" and "after" from
18645 rtx * to rtx_insn **.
18646 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
18647 (curr_insn_transform): Strengthen locals "before" and "after"
18648 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
18650 (loc_equivalence_callback): Update cast of "data", changing
18651 resulting type from rtx to rtx_insn *.
18652 (substitute_pseudo_within_insn): New.
18653 (inherit_reload_reg): Strengthen param "insn" from rtx to
18654 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
18655 NULL when referring to insns. Add a checked cast to rtx_insn *
18656 when using usage_insn to invoke lra_update_insn_regno_info.
18657 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
18658 likewise for locals "restore", "save". Add checked casts to
18659 rtx_insn * when using usage_insn to invoke
18660 lra_update_insn_regno_info and lra_process_new_insns. Replace
18661 NULL_RTX with NULL when referring to insns.
18662 (split_if_necessary): Strengthen param "insn" from rtx to
18664 (update_ebb_live_info): Likewise for params "head", "tail" and local
18666 (get_last_insertion_point): Likewise for return type and local "insn".
18667 (get_live_on_other_edges): Likewise for local "last".
18668 (inherit_in_ebb): Likewise for params "head", "tail" and locals
18669 "prev_insn", "next_insn", "restore".
18670 (remove_inheritance_pseudos): Likewise for local "prev_insn".
18671 (undo_optional_reloads): Likewise for local "insn".
18673 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
18675 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
18677 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
18679 (spill_pseudos): Likewise for local "insn".
18680 (init_elimination): Likewise.
18681 (process_insn_for_elimination): Likewise for param "insn".
18683 * lra-lives.c (curr_insn): Likewise.;
18685 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
18686 (remove_pseudos): Likewise for param "insn".
18687 (spill_pseudos): Likewise for local "insn".
18688 (lra_final_code_change): Likewise for locals "insn", "curr".
18690 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
18691 (lra_set_insn_deleted): Likewise.
18692 (lra_delete_dead_insn): Likewise, and for local "prev".
18693 (new_insn_reg): Likewise for param "insn".
18694 (lra_set_insn_recog_data): Likewise.
18695 (lra_update_insn_recog_data): Likewise.
18696 (lra_set_used_insn_alternative): Likewise.
18697 (get_insn_freq): Likewise.
18698 (invalidate_insn_data_regno_info): Likewise.
18699 (lra_invalidate_insn_regno_info): Likewise.
18700 (lra_update_insn_regno_info): Likewise.
18701 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
18703 (lra_push_insn_1): Strengthen param "insn" from rtx to
18705 (lra_push_insn): Likewise.
18706 (lra_push_insn_and_update_insn_regno_info): Likewise.
18707 (lra_pop_insn): Likewise for return type and local "insn".
18708 (push_insns): Likewise for params "from", "to", and local "insn".
18709 (setup_sp_offset): Likewise for params "from", "last" and locals
18711 (lra_process_new_insns): Likewise for params "insn", "before",
18712 "after" and local "last".
18713 (struct sloc): Likewise for field "insn".
18714 (lra_former_scratch_operand_p): Likewise for param "insn".
18715 (remove_scratches): Likewise for locals "insn", "last".
18716 (check_rtl): Likewise for local "insn".
18717 (add_auto_inc_notes): Likewise for param "insn".
18718 (update_inc_notes): Likewise for local "insn".
18719 (lra): Replace NULL_RTX with NULL when referring to insn.
18721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18723 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
18725 (resolve_reg_notes): Likewise.
18726 (resolve_simple_move): Likewise for return type, param "insn", and
18727 locals "insns", "minsn".
18728 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
18729 (resolve_use): Likewise.
18730 (resolve_debug): Likewise.
18731 (find_decomposable_shift_zext): Likewise.
18732 (resolve_shift_zext): Likewise for return type, param "insn", and
18733 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
18734 (decompose_multiword_subregs): Likewise for local "insn",
18735 "orig_insn", "decomposed_shift", "end".
18737 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18739 * basic-block.h (basic_block split_edge_and_insert): Strengthen
18740 param "insns" from rtx to rtx_insn *.
18742 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
18744 (struct iv_to_split): Likewise.
18745 (loop_exit_at_end_p): Likewise for local "insn".
18746 (split_edge_and_insert): Likewise for param "insns".
18747 (compare_and_jump_seq): Likewise for return type, param "cinsn",
18748 and locals "seq", "jump".
18749 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
18750 "branch_code"; update invocations of compare_and_jump_seq to
18751 eliminate NULL_RTX in favor of NULL.
18752 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
18754 (reset_debug_uses_in_loop): Likewise.
18755 (analyze_insn_to_expand_var): Likewise for param "insn".
18756 (analyze_iv_to_split_insn): Likewise.
18757 (analyze_insns_in_loop): Likewise for local "insn".
18758 (insert_base_initialization): Likewise for param
18759 "insn" and local "seq".
18760 (split_iv): Likewise for param "insn" and local "seq".
18761 (expand_var_during_unrolling): Likewise for param "insn".
18762 (insert_var_expansion_initialization): Likewise for local "seq".
18763 (combine_var_copies_in_loop_exit): Likewise.
18764 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
18766 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
18767 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
18770 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18772 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
18774 (iv_analyze_result): Likewise.
18775 (iv_analyze_expr): Likewise.
18778 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
18779 local "def_insn" from rtx to rtx_insn *.
18780 (get_biv_step_1): Likewise for local "insn".
18781 (iv_analyze_expr): Likewise for param "insn".
18782 (iv_analyze_def): Likewise for local "insn".
18783 (iv_analyze_op): Likewise for param "insn".
18784 (iv_analyze): Likewise.
18785 (iv_analyze_result): Likewise.
18787 (suitable_set_for_replacement): Likewise.
18788 (simplify_using_initial_values): Likewise for local "insn".
18789 (iv_number_of_iterations): Likewise for param "insn".
18790 (check_simple_exit): Add checked cast to rtx_insn when invoking
18791 iv_number_of_iterations for now (until get_condition is
18794 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
18795 "insn" from rtx to rtx_insn *.
18796 (analyze_insns_in_loop): Likewise for local "insn".
18798 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18800 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
18802 (struct invariant): Likewise.
18803 (hash_invariant_expr_1): Likewise for param "insn".
18804 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
18805 (find_exits): Likewise for local "insn".
18806 (create_new_invariant): Likewise for param "insn".
18807 (check_dependencies): Likewise.
18808 (find_invariant_insn): Likewise.
18809 (record_uses): Likewise.
18810 (find_invariants_insn): Likewise.
18811 (find_invariants_bb): Likewise for local "insn".
18812 (get_pressure_class_and_nregs): Likewise for param "insn".
18813 (calculate_loop_reg_pressure): Likewise for local "insn".
18815 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18817 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
18819 (add_test): Likewise for locals "seq", "jump".
18820 (doloop_modify): Likewise for locals "sequence", "jump_insn".
18822 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18824 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
18826 (rebuild_jump_labels_chain): Likewise for param "chain".
18828 * cfgexpand.c (pass_expand::execute): Add checked cast to
18829 rtx_insn * when calling rebuild_jump_labels_chain in region where
18830 we know e->insns.r is non-NULL.
18832 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
18834 (rebuild_jump_labels): Likewise.
18835 (rebuild_jump_labels_chain): Likewise for param "chain".
18836 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
18837 (init_label_info): Likewise for param "f".
18838 (maybe_propagate_label_ref): Likewise for params "jump_insn",
18839 "prev_nonjump_insn".
18840 (mark_all_labels): Likewise for param "f" and locals "insn",
18841 "prev_nonjump_insn".
18843 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18845 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
18846 from rtx to rtx_insn *insn.
18847 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
18848 (ira_add_allocno_copy): Likewise.
18849 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
18851 (ira_create_copy): Likewise.
18852 (ira_add_allocno_copy): Likewise.
18853 (create_bb_allocnos): Likewise for local "insn".
18854 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
18855 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
18856 process_regs_for_copy for rtx_insn * param.
18857 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
18858 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
18859 process_regs_for_copy for rtx_insn * param.
18860 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
18861 * ira-costs.c (record_reg_classes): Likewise for param "insn".
18862 (record_operand_costs): Likewise.
18863 (scan_one_insn): Likewise for return type, and for param "insn".
18864 (process_bb_for_costs): Likewise for local "insn".
18865 (process_bb_node_for_hard_reg_moves): Likewise.
18866 * ira-emit.c (struct move): Likewise for field "insn".
18867 (create_move): Eliminate use of NULL_RTX when dealing with an
18869 (emit_move_list): Strengthen return type and locals "result",
18870 "insn" from rtx to rtx_insn *insn.
18871 (emit_moves): Likewise for locals "insns", "tmp".
18872 (ira_emit): Likewise for local "insn".
18873 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
18875 (find_call_crossed_cheap_reg): Likewise.
18876 (process_bb_node_lives): Likewise for local "insn".
18877 * ira.c (decrease_live_ranges_number): Likewise.
18878 (compute_regs_asm_clobbered): Likewise.
18879 (build_insn_chain): Likewise.
18880 (find_moveable_pseudos): Likewise, also locals "def_insn",
18881 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
18882 to rtx_insn **. Add a checked cast when assigning from
18883 "closest_use" into closest_uses array in a region where we know
18884 it's a non-NULL insn.
18885 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
18887 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
18888 "last_interesting_insn", "uin".
18889 (move_unallocated_pseudos): Likewise for locals "def_insn",
18890 "move_insn", "newinsn".
18892 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18894 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
18895 Strengthen locals "done_label", "do_error" from rtx to
18897 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
18898 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
18900 (ubsan_expand_si_overflow_neg_check): Likewise for locals
18901 "done_label", "do_error" to rtx_code_label * and local "last" to
18903 (ubsan_expand_si_overflow_mul_check): Likewise for locals
18904 "done_label", "do_error", "large_op0", "small_op0_large_op1",
18905 "one_small_one_large", "both_ops_large", "after_hipart_neg",
18906 "after_lopart_neg", "do_overflow", "hipart_different" to
18907 rtx_code_label * and local "last" to rtx_insn *.
18909 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18911 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
18912 "insn" and "move_insn" from rtx to rtx_insn *.
18914 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18916 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
18918 (cheap_bb_rtx_cost_p): Likewise.
18919 (first_active_insn): Likewise for return type and local "insn".
18920 (last_active_insn): Likewise for return type and locals "insn",
18922 (struct noce_if_info): Likewise for fields "jump", "insn_a",
18924 (end_ifcvt_sequence): Likewise for return type and locals "insn",
18926 (noce_try_move): Likewise for local "seq".
18927 (noce_try_store_flag): Likewise.
18928 (noce_try_store_flag_constants): Likewise.
18929 (noce_try_addcc): Likewise.
18930 (noce_try_store_flag_mask): Likewise.
18931 (noce_try_cmove): Likewise.
18932 (noce_try_minmax): Likewise.
18933 (noce_try_abs): Likewise.
18934 (noce_try_sign_mask): Likewise.
18935 (noce_try_bitop): Likewise.
18936 (noce_can_store_speculate_p): Likewise for local "insn".
18937 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
18939 (check_cond_move_block): Likewise for local "insn".
18940 (cond_move_convert_if_block): Likewise.
18941 (cond_move_process_if_block): Likewise for locals "seq",
18943 (noce_find_if_block): Likewise for local "jump".
18944 (merge_if_block): Likewise for local "last".
18945 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
18946 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
18947 (block_has_only_trap): Likewise for return type and local "trap".
18948 (find_if_case_1): Likewise for local "jump".
18949 (dead_or_predicable): Likewise for locals "head", "end", "jump",
18952 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18954 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
18955 "last_insn", "loop_end" from rtx to rtx_insn *.
18957 * hw-doloop.c (scan_loop): Likewise for local "insn".
18958 (discover_loop): Likewise for param "tail_insn".
18959 (discover_loops): Likewise for local "tail".
18961 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
18962 cast to rtx_insn * when assigning from an rtx local to a
18963 hwloop_info's "last_insn" field.
18965 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18967 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
18968 (add_delay_dependencies): Strengthen local "pro" from rtx to
18970 (recompute_todo_spec): Likewise.
18971 (dep_cost_1): Likewise for locals "insn", "used".
18972 (schedule_insn): Likewise for local "dbg".
18973 (schedule_insn): Likewise for locals "pro", "next".
18974 (unschedule_insns_until): Likewise for local "con".
18975 (restore_pattern): Likewise for local "next".
18976 (estimate_insn_tick): Likewise for local "pro".
18977 (resolve_dependencies): Likewise for local "next".
18978 (fix_inter_tick): Likewise.
18979 (fix_tick_ready): Likewise for local "pro".
18980 (add_to_speculative_block): Likewise for locals "check", "twin",
18982 (sched_extend_bb): Likewise for locals "end", "insn".
18983 (init_before_recovery): Likewise for local "x".
18984 (sched_create_recovery_block): Likewise for local "barrier".
18985 (create_check_block_twin): Likewise for local "pro".
18986 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
18988 (unlink_bb_notes): Update for change to type of bb_header.
18989 Strengthen locals "prev", "label", "note", "next" from rtx to
18991 (clear_priorities): Likewise for local "pro".
18993 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18995 * gcse.c (struct occr): Strengthen field "insn" from rtx to
18997 (test_insn): Likewise for this global.
18998 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
19000 (oprs_anticipatable_p): Likewise.
19001 (oprs_available_p): Likewise.
19002 (insert_expr_in_table): Strengthen param "insn" from rtx to
19004 (hash_scan_set): Likewise.
19005 (hash_scan_clobber): Likewise.
19006 (hash_scan_call): Likewise.
19007 (hash_scan_insn): Likewise.
19008 (compute_hash_table_work): Likewise for local "insn".
19009 (process_insert_insn): Likewise for return type and local "pat".
19010 (insert_insn_end_basic_block): Likewise for locals "new_insn",
19011 "pat", "pat_end", "maybe_cc0_setter".
19012 (pre_edge_insert): Likewise for local "insn".
19013 (pre_insert_copy_insn): Likewise for param "insn".
19014 (pre_insert_copies): Likewise for local "insn".
19015 (struct set_data): Likewise for field "insn".
19016 (single_set_gcse): Likewise for param "insn".
19017 (gcse_emit_move_after): Likewise.
19018 (pre_delete): Likewise for local "insn".
19019 (update_bb_reg_pressure): Likewise for param "from" and local
19021 (should_hoist_expr_to_dom): Likewise for param "from".
19022 (hoist_code): Likewise for local "insn".
19023 (get_pressure_class_and_nregs): Likewise for param "insn".
19024 (calculate_bb_reg_pressure): Likewise for local "insn".
19025 (compute_ld_motion_mems): Likewise.
19027 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19029 * genpeep.c (main): Rename param back from "uncast_ins1" to
19030 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
19033 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
19035 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
19038 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
19039 documentation to state it is only for VSX operations.
19041 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
19042 constraint only active if VSX.
19044 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
19045 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
19046 (lfiwzx): Likewise.
19048 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19050 * fwprop.c (single_def_use_dom_walker::before_dom_children):
19051 Strengthen local "insn" from rtx to rtx_insn *.
19052 (use_killed_between): Likewise for param "target_insn".
19053 (all_uses_available_at): Likewise for param "target_insn" and
19055 (update_df_init): Likewise for params "def_insn", "insn".
19056 (update_df): Likewise for param "insn".
19057 (try_fwprop_subst): Likewise for param "def_insn" and local
19059 (free_load_extend): Likewise for param "insn".
19060 (forward_propagate_subreg): Likewise for param "def_insn" and
19062 (forward_propagate_asm): Likewise for param "def_insn" and local
19064 (forward_propagate_and_simplify): Likewise for param "def_insn"
19065 and local "use_insn".
19066 (forward_propagate_into): Likewise for locals "def_insn" and
19069 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19071 * function.c (emit_initial_value_sets): Strengthen local "seq"
19072 from rtx to rtx_insn *.
19073 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
19075 (instantiate_virtual_regs): Likewise for local "insn".
19076 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
19077 (reorder_blocks_1): Likewise for param "insns" and local "insn".
19078 (expand_function_end): Likewise for locals "insn" and "seq".
19079 (epilogue_done): Likewise for local "insn".
19080 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
19082 (reposition_prologue_and_epilogue_notes): Likewise for locals
19083 "insn", "last", "note", "first".
19084 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
19085 (pass_match_asm_constraints::execute): Likewise for local "insn".
19087 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19089 * output.h (final_scan_insn): Strengthen return type from rtx to
19091 (final_forward_branch_p): Likewise for param.
19092 (current_output_insn): Likewise for this global.
19094 * final.c (rtx debug_insn): Likewise for this variable.
19095 (current_output_insn): Likewise.
19096 (get_attr_length_1): Rename param "insn" to "uncast_insn",
19097 adding "insn" back in as an rtx_insn * with a checked cast, so
19098 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
19100 (compute_alignments): Strengthen local "label" from rtx to
19102 (shorten_branches): Rename param from "first" to "uncast_first",
19103 introducing a new local rtx_insn * "first" using a checked cast to
19104 effectively strengthen "first" from rtx to rtx_insn * without
19105 affecting the type signature. Strengthen locals "insn", "seq",
19106 "next", "label" from rtx to rtx_insn *.
19107 (change_scope): Strengthen param "orig_insn" and local "insn" from
19109 (final_start_function): Rename param from "first" to "uncast_first",
19110 introducing a new local rtx_insn * "first" using a checked cast to
19111 effectively strengthen "first" from rtx to rtx_insn * without
19112 affecting the type signature. Strengthen local "insn" from rtx to
19114 (dump_basic_block_info): Strengthen param "insn" from rtx to
19116 (final): Rename param from "first" to "uncast_first",
19117 introducing a new local rtx_insn * "first" using a checked cast to
19118 effectively strengthen "first" from rtx to rtx_insn * without
19119 affecting the type signature. Strengthen locals "insn", "next"
19120 from rtx to rtx_insn *.
19121 (output_alternate_entry_point): Strengthen param "insn" from rtx to
19123 (call_from_call_insn): Strengthen param "insn" from rtx to
19125 (final_scan_insn): Rename param from "insn" to "uncast_insn",
19126 introducing a new local rtx_insn * "insn" using a checked cast to
19127 effectively strengthen "insn" from rtx to rtx_insn * without
19128 affecting the type signature. Strengthen return type and locals
19129 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
19130 now-redundant checked cast to rtx_insn * from both invocations of
19131 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
19132 introducing a local "call_insn" for use when invoking
19133 call_from_call_insn.
19134 (notice_source_line): Strengthen param "insn" from rtx to
19136 (leaf_function_p): Likewise for local "insn".
19137 (final_forward_branch_p): Likewise.
19138 (leaf_renumber_regs): Likewise for param "first".
19139 (rest_of_clean_state): Likewise for locals "insn" and "next".
19140 (self_recursive_call_p): Likewise for param "insn".
19141 (collect_fn_hard_reg_usage): Likewise for local "insn".
19142 (get_call_fndecl): Likewise for param "insn".
19143 (get_call_cgraph_rtl_info): Likewise.
19144 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
19145 introducing a new local rtx_insn * "insn" using a checked cast to
19146 effectively strengthen "insn" from rtx to rtx_insn * without
19147 affecting the type signature.
19149 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
19150 cast when assigning from param "insn" to current_output_insn.
19151 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
19152 so that we can assign it back to current_output_insn.
19154 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19156 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
19157 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
19158 atmxt540s and atmxt540sreva devices.
19159 * config/avr/avr-tables.opt: Regenerate.
19160 * config/avr/t-multilib: Regenerate.
19161 * doc/avr-mmcu.texi: Regenerate.
19163 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19165 * expr.c (convert_move): Strengthen local "insns" from rtx to
19167 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
19168 "top_label" from rtx to rtx_code_label *.
19169 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
19171 (emit_single_push_insn): Likewise for locals "prev", "last".
19172 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
19173 to rtx_code_label *.
19174 (store_constructor): Likewise for locals "loop_start", "loop_end".
19175 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
19177 (expand_expr_real_2): Likewise.
19178 (expand_expr_real_1): Strengthen local "label" from rtx to
19181 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19183 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
19184 from rtx to rtx_insn *.
19185 (store_bit_field_1): Likewise.
19186 (extract_bit_field_1): Likewise.
19187 (expand_mult_const): Likewise for local "insns".
19188 (expmed_mult_highpart): Strengthen local "label" from rtx to
19190 (expand_smod_pow2): Likewise.
19191 (expand_sdiv_pow2): Likewise.
19192 (expand_divmod): Strengthen locals "last", "insn" from rtx to
19193 rtx_insn *. Strengthen locals "label", "label1", "label2",
19194 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
19195 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
19196 (emit_store_flag): Likewise.
19197 (emit_store_flag_force): Strengthen local "label" from rtx to
19199 (do_cmp_and_jump): Likewise for param "label".
19201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19203 * explow.c (force_reg): Strengthen local "insn" from rtx to
19205 (adjust_stack_1): Likewise.
19206 (allocate_dynamic_stack_space): Likewise. Strengthen locals
19207 "final_label", "available_label", "space_available" from rtx to
19209 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
19210 (anti_adjust_stack_and_probe): Likewise.
19212 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19214 * except.h (sjlj_emit_function_exit_after): Strengthen param
19215 "after" from rtx to rtx_insn *. This is only called with
19216 result of get_last_insn (in function.c) so type-change should be
19219 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
19220 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
19221 to rtx_insn *. These fields are only used from except.c so this
19222 type-change should be self-contained to this patch.
19224 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
19225 local "last" from rtx to rtx_insn *.
19226 (dw2_build_landing_pads): Likewise for local "seq".
19227 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
19228 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
19229 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
19231 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
19233 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
19234 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
19235 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
19236 referring to an insn. Strengthen local "dispatch_label" from
19237 rtx to rtx_code_label *.
19238 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
19240 (expand_eh_return): Strengthen local "around_label" from
19241 rtx to rtx_code_label *.
19242 (convert_to_eh_region_ranges): Strengthen locals "iter",
19243 "last_action_insn", "first_no_action_insn",
19244 "first_no_action_insn_before_switch",
19245 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
19247 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19249 * dwarf2out.c (last_var_location_insn): Strengthen this variable
19250 from rtx to rtx_insn *.
19251 (cached_next_real_insn): Likewise.
19252 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
19253 working with insns.
19254 (dwarf2out_var_location): Strengthen locals "next_real",
19255 "next_note", "expected_next_loc_note", "last_start", "insn" from
19258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19260 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
19261 from rtx to rtx_insn *.
19262 (create_pseudo_cfg): Likewise for local "insn".
19264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19266 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
19267 from rtx to rtx_insn *.
19268 (df_bb_regno_last_def_find): Likewise.
19270 * df-problems.c (df_rd_bb_local_compute): Likewise.
19271 (df_lr_bb_local_compute): Likewise.
19272 (df_live_bb_local_compute): Likewise.
19273 (df_chain_remove_problem): Likewise.
19274 (df_chain_create_bb): Likewise.
19275 (df_word_lr_bb_local_compute): Likewise.
19276 (df_remove_dead_eq_notes): Likewise for param "insn".
19277 (df_note_bb_compute): Likewise for local "insn".
19278 (simulate_backwards_to_point): Likewise.
19279 (df_md_bb_local_compute): Likewise.
19281 * df-scan.c (df_scan_free_bb_info): Likewise.
19282 (df_scan_start_dump): Likewise.
19283 (df_scan_start_block): Likewise.
19284 (df_install_ref_incremental): Likewise for local "insn".
19285 (df_insn_rescan_all): Likewise.
19286 (df_reorganize_refs_by_reg_by_insn): Likewise.
19287 (df_reorganize_refs_by_insn_bb): Likewise.
19288 (df_recompute_luids): Likewise.
19289 (df_bb_refs_record): Likewise.
19290 (df_update_entry_exit_and_calls): Likewise.
19291 (df_bb_verify): Likewise.
19293 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19295 * ddg.h (struct ddg_node): Strengthen fields "insn" and
19296 "first_note" from rtx to rtx_insn *.
19297 (get_node_of_insn): Likewise for param 2 "insn".
19298 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
19300 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
19302 (mem_write_insn_p): Likewise.
19303 (mem_access_insn_p): Likewise.
19304 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
19305 (def_has_ccmode_p): Likewise for param "insn".
19306 (add_cross_iteration_register_deps): Likewise for locals
19307 "def_insn" and "use_insn".
19308 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
19309 (build_intra_loop_deps): Likewise for local "src_insn".
19310 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
19312 (get_node_of_insn): Likewise for param "insn".
19314 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19316 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
19317 (deletable_insn_p): Strengthen param "insn" from rtx to
19318 rtx_insn *. Add checked cast to rtx_call_insn when invoking
19319 find_call_stack_args, since this is guarded by CALL_P (insn).
19320 (marked_insn_p): Strengthen param "insn" from rtx to
19322 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
19323 invoking find_call_stack_args, since this is guarded by
19325 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
19326 rtx_insn *; we know this is an insn since this was called by
19327 mark_nonreg_stores.
19328 (mark_nonreg_stores_2): Likewise.
19329 (mark_nonreg_stores): Strengthen param "insn" from rtx to
19331 (find_call_stack_args): Strengthen param "call_insn" from rtx to
19332 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
19334 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
19335 from rtx to rtx_insn *.
19336 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
19337 "next", "ref_insn".
19338 (delete_unmarked_insns): Likewise for locals "insn", "next".
19339 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
19340 (mark_reg_dependencies): Likewise for param "insn".
19341 (rest_of_handle_ud_dce): Likewise for local "insn".
19342 (word_dce_process_block): Likewise.
19343 (dce_process_block): Likewise.
19345 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19347 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
19348 from rtx to rtx_insn *.
19349 (struct change_cc_mode_args): Likewise for field "insn".
19350 (this_insn): Strengthen from rtx to rtx_insn *.
19351 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
19353 (validate_canon_reg): Strengthen param "insn" from rtx to
19355 (canon_reg): Likewise.
19356 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
19358 (record_jump_equiv): Strengthen param "insn" from rtx to
19360 (try_back_substitute_reg): Likewise, also for locals "prev",
19362 (find_sets_in_insn): Likewise for param "insn".
19363 (canonicalize_insn): Likewise.
19364 (cse_insn): Likewise. Add a checked cast.
19365 (invalidate_from_clobbers): Likewise for param "insn".
19366 (invalidate_from_sets_and_clobbers): Likewise.
19367 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
19369 (cse_prescan_path): Strengthen local "insn" from rtx to
19371 (cse_extended_basic_block): Likewise for locals "insn" and
19373 (cse_main): Likewise for param "f".
19374 (check_for_label_ref): Likewise for local "insn".
19375 (set_live_p): Likewise for second param ("insn").
19376 (insn_live_p): Likewise for first param ("insn") and for local
19378 (cse_change_cc_mode_insn): Likewise for first param "insn".
19379 (cse_change_cc_mode_insns): Likewise for first and second params
19381 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
19383 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
19386 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
19387 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19388 Anna Tikhonova <anna.tikhonova@intel.com>
19389 Ilya Tocar <ilya.tocar@intel.com>
19390 Andrey Turetskiy <andrey.turetskiy@intel.com>
19391 Ilya Verbin <ilya.verbin@intel.com>
19392 Kirill Yukhin <kirill.yukhin@intel.com>
19393 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19395 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
19397 * config/i386/sse.md
19398 (define_mode_iterator VI248_AVX2): Delete.
19399 (define_mode_iterator VI2_AVX2_AVX512BW): New.
19400 (define_mode_iterator VI48_AVX2): Ditto.
19401 (define_insn <shift_insn><mode>3): Delete.
19402 (define_insn "<shift_insn><mode>3<mask_name>" with
19403 VI2_AVX2_AVX512BW): New.
19404 (define_insn "<shift_insn><mode>3<mask_name>" with
19407 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
19408 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19409 Anna Tikhonova <anna.tikhonova@intel.com>
19410 Ilya Tocar <ilya.tocar@intel.com>
19411 Andrey Turetskiy <andrey.turetskiy@intel.com>
19412 Ilya Verbin <ilya.verbin@intel.com>
19413 Kirill Yukhin <kirill.yukhin@intel.com>
19414 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19416 * config/i386/sse.md
19417 (define_mode_iterator VI4F_BRCST32x2): New.
19418 (define_mode_attr 64x2_mode): Ditto.
19419 (define_mode_attr 32x2mode): Ditto.
19420 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
19421 with VI4F_BRCST32x2): Ditto.
19422 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
19423 with V16FI mode iterator): Ditto.
19424 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
19425 with V16FI): Ditto.
19426 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
19427 with VI8F_BRCST64x2): Ditto.
19429 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
19430 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19431 Anna Tikhonova <anna.tikhonova@intel.com>
19432 Ilya Tocar <ilya.tocar@intel.com>
19433 Andrey Turetskiy <andrey.turetskiy@intel.com>
19434 Ilya Verbin <ilya.verbin@intel.com>
19435 Kirill Yukhin <kirill.yukhin@intel.com>
19436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19438 * config/i386/sse.md
19439 (define_mode_iterator VI8_AVX512VL): New.
19440 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
19442 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
19444 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
19445 (define_mode_iterator V48_AVX512VL): New.
19446 (define_mode_iterator V12_AVX512VL): Ditto.
19447 (define_insn <avx512>_load<mode>_mask): Split into two similar
19448 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
19449 Refactor output template.
19450 (define_insn "<avx512>_store<mode>_mask"): Ditto.
19452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19454 * cprop.c (struct occr): Strengthen field "insn" from rtx to
19456 (reg_available_p): Likewise for param "insn".
19457 (insert_set_in_table): Likewise.
19458 (hash_scan_set): Likewise.
19459 (hash_scan_insn): Likewise.
19460 (make_set_regs_unavailable): Likewise.
19461 (compute_hash_table_work): Likewise for local "insn".
19462 (reg_not_set_p): Strengthen param "insn" from const_rtx to
19464 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
19465 (try_replace_reg): Likewise.
19466 (find_avail_set): Likewise.
19467 (cprop_jump): Likewise for params "setcc", "jump".
19468 (constprop_register): Likewise for param "insn".
19469 (cprop_insn): Likewise.
19470 (do_local_cprop): Likewise.
19471 (local_cprop_pass): Likewise for local "insn".
19472 (bypass_block): Likewise for params "setcc" and "jump".
19473 (bypass_conditional_jumps): Likewise for locals "setcc" and
19475 (one_cprop_pass): Likewise for local "insn".
19477 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19479 * compare-elim.c (struct comparison_use): Strengthen field "insn"
19480 from rtx to rtx_insn *.
19481 (struct comparison): Likewise, also for field "prev_clobber".
19482 (conforming_compare): Likewise for param "insn".
19483 (arithmetic_flags_clobber_p): Likewise.
19484 (find_flags_uses_in_insn): Likewise.
19485 (find_comparison_dom_walker::before_dom_children): Likewise for
19486 locals "insn", "next", "last_clobber".
19487 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
19489 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19491 * combine-stack-adj.c (struct csa_reflist): Strengthen field
19492 "insn" from rtx to rtx_insn *.
19493 (single_set_for_csa): Likewise for param "insn".
19494 (record_one_stack_ref): Likewise.
19495 (try_apply_stack_adjustment): Likewise.
19496 (struct record_stack_refs_data): Likewise for field "insn".
19497 (maybe_move_args_size_note): Likewise for params "last" and "insn".
19498 (prev_active_insn_bb): Likewise for return type and param "insn".
19499 (next_active_insn_bb): Likewise.
19500 (force_move_args_size_note): Likewise for params "prev" and "last"
19501 and locals "test", "next_candidate", "prev_candidate".
19502 (combine_stack_adjustments_for_block): Strengthen locals
19503 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
19506 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19508 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
19509 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
19510 (subst_insn): Likewise for this variable.
19511 (added_links_insn): Likewise.
19512 (struct insn_link): Likewise for field "insn".
19513 (alloc_insn_link): Likewise for param "insn".
19514 (struct undobuf): Likewise for field "other_insn".
19515 (find_single_use): Likewise for param "insn" and local "next".
19516 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
19517 (delete_noop_moves): Likewise for locals "insn", "next".
19518 (create_log_links): Likewise for locals "insn", "use_insn".
19519 Strengthen local "next_use" from rtx * to rtx_insn **.
19520 (insn_a_feeds_b): Likewise for params "a", "b".
19521 (combine_instructions): Likewise for param "f" and locals "insn",
19522 "next", "prev", "first", "last_combined_insn", "link", "link1",
19523 "temp". Replace use of NULL_RTX with NULL when referring to
19525 (setup_incoming_promotions): Likewise for param "first"
19526 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
19527 (can_combine_p): Likewise for params "insn", "i3", "pred",
19528 "pred2", "succ", "succ2" and for local "p".
19529 (combinable_i3pat): Likewise for param "i3".
19530 (cant_combine_insn_p): Likewise for param "insn".
19531 (likely_spilled_retval_p): Likewise.
19532 (adjust_for_new_dest): Likewise.
19533 (update_cfg_for_uncondjump): Likewise, also for local "insn".
19534 (try_combine): Likewise for return type and for params "i3", "i2",
19535 "i1", "i0", "last_combined_insn", and for locals "insn",
19536 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
19537 "i0_insn". Eliminate local "tem" in favor of new locals
19538 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
19539 checked cast for now to rtx_insn * on the return type of
19540 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
19542 (find_split_point): Strengthen param "insn" from rtx to
19544 (simplify_set): Likewise for local "other_insn".
19545 (recog_for_combine): Likewise for param "insn".
19546 (record_value_for_reg): Likewise.
19547 (record_dead_and_set_regs_1): Likewise for local
19548 "record_dead_insn".
19549 (record_dead_and_set_regs): Likewise for param "insn".
19550 (record_promoted_value): Likewise.
19551 (check_promoted_subreg): Likewise.
19552 (get_last_value_validate): Likewise.
19553 (reg_dead_at_p): Likewise.
19554 (move_deaths): Likewise for param "to_insn".
19555 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
19556 and locals "place", "place2", "cc0_setter". Eliminate local "tem
19557 in favor of new locals "tem_note" and "tem_insn", the latter being
19559 (distribute_links): Strengthen locals "place", "insn" from rtx to
19562 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19564 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
19566 (can_delete_label_p): Require a const rtx_code_label * rather than
19568 (delete_insn): Add checked cast to rtx_code_label * when we know
19569 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
19571 (delete_insn_chain): Strengthen locals "prev" and "current" from
19572 rtx to rtx_insn *. Add a checked cast when assigning from
19573 "finish" (strengthening the params will come later). Add a
19574 checked cast to rtx_note * in region where we know
19576 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
19578 (compute_bb_for_insn): Likewise.
19579 (free_bb_for_insn): Likewise for local "insn".
19580 (compute_bb_for_insn): Likewise.
19581 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
19582 local "insn" from rtx to rtx_insn *
19583 (flow_active_insn_p): Require a const rtx_insn * rather than a
19585 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
19587 (can_fallthru): Likewise for locals "insn" and "insn2".
19588 (bb_note): Likewise for local "note".
19589 (first_insn_after_basic_block_note): Likewise for local "note" and
19591 (rtl_split_block): Likewise for locals "insn" and "next".
19592 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
19594 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
19595 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
19597 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
19598 them), "kill_from", "barrier", "new_insn".
19599 (patch_jump_insn): Likewise for params "insn", "old_label".
19600 (redirect_branch_edge): Likewise for locals "old_label", "insn".
19601 (force_nonfallthru_and_redirect): Likewise for locals "insn",
19602 "old_label", "new_label".
19603 (rtl_tidy_fallthru_edge): Likewise for local "q".
19604 (rtl_split_edge): Likewise for locals "before", "last".
19605 (commit_one_edge_insertion): Likewise for locals "before",
19606 "after", "insns", "tmp", "last", adding a checked cast where
19607 currently necessary.
19608 (commit_edge_insertions): Likewise.
19609 (rtl_dump_bb): Likewise for locals "insn", "last".
19610 (print_rtl_with_bb): Likewise for local "x".
19611 (rtl_verify_bb_insns): Likewise for local "x".
19612 (rtl_verify_bb_pointers): Likewise for local "insn".
19613 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
19615 (rtl_verify_fallthru): Likewise for local "insn".
19616 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
19617 (purge_dead_edges): Likewise for local "insn".
19618 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
19619 (skip_insns_after_block): Likewise for return type and for locals
19620 "insn", "last_insn", "next_head", "prev".
19621 (record_effective_endpoints): Likewise for locals "next_insn",
19623 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
19624 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
19625 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
19626 (duplicate_insn_chain): For now, add checked cast from rtx to
19627 rtx_insn * when returning insn.
19628 (cfg_layout_duplicate_bb): Likewise for local "insn".
19629 (cfg_layout_delete_block): Likewise for locals "insn", "next",
19630 "prev", "remaints".
19631 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
19632 (rtl_block_empty_p): Likewise.
19633 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
19634 "split_point", "last".
19635 (rtl_block_ends_with_call_p): Likewise for local "insn".
19636 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
19638 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
19639 "split_at_insn" from rtx to rtx_insn *.
19640 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
19641 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
19642 to const rtx_insn *.
19643 (rtl_account_profile_record): Likewise.
19645 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19647 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
19649 (average_num_loop_insns): Likewise.
19650 (init_set_costs): Likewise for local "seq".
19651 (seq_cost): Likewise for param "seq", from const_rtx to const
19654 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19656 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
19659 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19661 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
19662 "f1" and "f2" from rtx * to rtx_insn **.
19663 (flow_find_head_matching_sequence): Likewise.
19665 * cfgcleanup.c (try_simplify_condjump): Strengthen local
19666 "cbranch_insn" from rtx to rtx_insn *.
19667 (thread_jump): Likewise for local "insn".
19668 (try_forward_edges): Likewise for local "last".
19669 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
19670 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
19672 (can_replace_by): Likewise for params "i1", "i2".
19673 (old_insns_match_p): Likewise.
19674 (merge_notes): Likewise.
19675 (walk_to_nondebug_insn): Likewise for param "i1".
19676 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
19677 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
19678 "afterlast1", "afterlast2" from rtx to rtx_insn *.
19679 (flow_find_head_matching_sequence): Strengthen params "f1" and
19680 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
19681 "last1", "last2", "beforelast1", "beforelast2" from rtx to
19683 (outgoing_edges_match): Likewise for locals "last1", "last2".
19684 (try_crossjump_to_edge): Likewise for local "insn".
19685 Replace call to for_each_rtx with for_each_rtx_in_insn.
19687 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
19688 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
19689 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
19690 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
19691 (try_optimize_cfg): Strengthen local "last" from rtx to
19693 (delete_dead_jumptables): Likewise for locals "insn", "next",
19696 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
19697 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
19698 "rtx else_first_tail", to reflect the basic-block.h changes above.
19700 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19702 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
19704 (purge_dead_tablejump_edges): Likewise.
19705 (find_bb_boundaries): Likewise for locals "insn", "end",
19706 "flow_transfer_insn".
19708 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19710 * caller-save.c (save_call_clobbered_regs): Strengthen locals
19711 "ins" and "prev" from rtx to rtx_insn *.
19713 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19715 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
19717 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
19718 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
19720 (load_register_parameters): Likewise for local "before_arg".
19721 (check_sibcall_argument_overlap): Likewise for param "insn".
19722 (expand_call): Likewise for locals "normal_call_insns",
19723 "tail_call_insns", "insns", "before_call", "after_args",
19724 "before_arg", "last", "prev". Strengthen one of the "last" from
19725 rtx to rtx_call_insn *.
19726 (fixup_tail_calls): Strengthen local "insn" from rtx to
19728 (emit_library_call_value_1): Likewise for locals "before_call" and
19731 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19733 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
19734 and "last" from rtx to rtx_insn *.
19735 (expand_builtin_nonlocal_goto): Likewise for local "insn".
19736 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
19738 (expand_errno_check): Strengthen local "lab" from rtx to
19740 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
19742 (expand_builtin_mathfn_2): Likewise.
19743 (expand_builtin_mathfn_ternary): Likewise.
19744 (expand_builtin_mathfn_3): Likewise.
19745 (expand_builtin_interclass_mathfn): Likewise for local "last".
19746 (expand_builtin_int_roundingfn): Likewise for local "insns".
19747 (expand_builtin_int_roundingfn_2): Likewise.
19748 (expand_builtin_strlen): Likewise for local "before_strlen".
19749 (expand_builtin_strncmp): Likewise for local "seq".
19750 (expand_builtin_signbit): Likewise for local "last".
19751 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
19752 from rtx to rtx_code_label *.
19753 (expand_stack_restore): Strengthen local "prev" from rtx to
19756 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19758 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
19760 (struct btr_def_s): Likewise.
19761 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
19763 (add_btr_def): Likewise.
19764 (new_btr_user): Likewise.
19765 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
19767 (link_btr_uses): Likewise.
19768 (move_btr_def): Likewise for locals "insp", "old_insn",
19769 "new_insn". Add checked cast to rtx_insn * for now on result of
19771 (can_move_up): Strengthen param "insn" from const_rtx to
19774 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19776 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
19778 (get_uncond_jump_length): Likewise for locals "label", "jump".
19779 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
19781 (add_labels_and_missing_jumps): Likewise for local "new_jump".
19782 (fix_up_fall_thru_edges): Likewise for local "old_jump".
19783 (find_jump_block): Likewise for local "insn".
19784 (fix_crossing_conditional_branches): Likewise for locals
19785 "old_jump", "new_jump".
19786 (fix_crossing_unconditional_branches): Likewise for locals
19787 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
19788 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
19790 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19792 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
19794 (struct mem_insn): Likewise for field "insn".
19795 (reg_next_use): Strengthen from rtx * to rtx_insn **.
19796 (reg_next_inc_use): Likewise.
19797 (reg_next_def): Likewise.
19798 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
19799 from rtx to rtx_insn *.
19800 (move_insn_before): Likewise for param "next_insn" and local "insns".
19801 (attempt_change): Likewise for local "mov_insn".
19802 (try_merge): Likewise for param "last_insn".
19803 (get_next_ref): Likewise for return type and local "insn".
19804 Strengthen param "next_array" from rtx * to rtx_insn **.
19805 (parse_add_or_inc): Strengthen param "insn" from rtx to
19807 (find_inc): Likewise for locals "insn" and "other_insn" (three of
19809 (merge_in_block): Likewise for locals "insn", "curr",
19811 (pass_inc_dec::execute): Update allocations of the arrays to
19812 reflect the stronger types.
19814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19816 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
19817 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
19818 from rtx to rtx_code_label *.
19820 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19822 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
19825 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19827 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
19828 generated a warning and prevented bootstrapping the compiler.
19830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19832 * rtl.h (delete_related_insns): Strengthen return type from rtx to
19835 * jump.c (delete_related_insns): Likewise, also for locals "next"
19838 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19840 * genautomata.c (output_internal_insn_latency_func): When writing
19841 the function "internal_insn_latency" to insn-automata.c,
19842 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
19843 allowing the optional guard function of (define_bypass) clauses to
19844 expect a pair of rtx_insn *, rather than a pair of rtx.
19845 (output_insn_latency_func): When writing the function
19846 "insn_latency", add an "uncast_" prefix to params "insn" and
19847 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
19848 using checked casts from the params, thus enabling the above
19849 change to the generated "internal_insn_latency" function.
19851 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
19853 PR tree-optimization/62091
19854 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
19855 handle correctly arrays.
19856 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
19857 inheritance binfos.
19858 (record_known_type): Walk into inner type.
19859 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
19860 condition on no type changes.
19862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19864 * genattrtab.c (write_attr_get): Within the generated get_attr_
19865 functions, rename param "insn" to "uncast_insn" and reintroduce
19866 "insn" as an local rtx_insn * using a checked cast, so that "insn"
19867 is an rtx_insn * within insn-attrtab.c
19869 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19871 * output.h (peephole): Strengthen return type from rtx to
19873 * rtl.h (delete_for_peephole): Likewise for both params.
19874 * genpeep.c (main): In generated "peephole" function, strengthen
19875 return type and local "insn" from rtx to rtx_insn *. For now,
19876 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
19877 rtx_insn *, with a checked cast.
19878 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
19879 locals "insn", "next", "prev" from rtx to rtx_insn *.
19881 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
19883 PR tree-optimization/62112
19884 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
19885 * gimple-iterator.h (gsi_replace): Return bool.
19886 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
19887 moved from ref_may_alias_global_p.
19888 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
19890 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
19891 (stmt_kills_ref_p_1): Rename...
19892 (stmt_kills_ref_p): ... to this.
19893 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
19894 stmt_kills_ref_p): Declare.
19895 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
19896 Move the self-assignment case...
19897 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
19899 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19901 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
19903 * emit-rtl.c (try_split): Likewise, also for locals "before" and
19904 "after". For now, don't strengthen param "trial", which requires
19905 adding checked casts when returning it.
19907 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19909 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
19910 "label" from rtx to rtx_code_label *. Strengthen param 1 of
19911 "var_location" hook from rtx to rtx_insn *.
19912 (debug_nothing_rtx): Delete in favor of...
19913 (debug_nothing_rtx_code_label): New prototype.
19914 (debug_nothing_rtx_rtx): Delete unused prototype.
19915 (debug_nothing_rtx_insn): New prototype.
19917 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
19918 invoking debug_hooks->var_location (in two places, one in a NOTE
19919 case of a switch statement, the other guarded by a CALL_P
19920 conditional. Add checked cast to rtx_code_label * when invoking
19921 debug_hooks->label (within CODE_LABEL case of switch statement).
19923 * dbxout.c (dbx_debug_hooks): Update "label" hook from
19924 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
19925 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
19926 (xcoff_debug_hooks): Likewise.
19927 * debug.c (do_nothing_debug_hooks): Likewise.
19928 (debug_nothing_rtx): Delete in favor of...
19929 (debug_nothing_rtx_insn): New function.
19930 (debug_nothing_rtx_rtx): Delete unused function.
19931 (debug_nothing_rtx_code_label): New function.
19932 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
19933 debug_nothing_rtx to debug_nothing_rtx_code_label.
19934 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
19936 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
19937 debug_nothing_rtx to debug_nothing_rtx_insn.
19938 (sdbout_label): Strengthen param "insn" from rtx to
19940 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
19941 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
19942 "var_location" hook from debug_nothing_rtx to
19943 debug_nothing_rtx_insn.
19945 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19947 * recog.h (insn_output_fn): Update this function typedef to match
19948 the changes below to the generated output functions, strengthening
19949 the 2nd param from rtx to rtx_insn *.
19951 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
19952 insn when invoking an output function, to match the new signature
19953 of insn_output_fn with a stronger second param.
19955 * genconditions.c (write_header): In the generated code for
19956 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
19957 to match the other changes in this patch.
19959 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
19960 the generated "gen_" functions from rtx to rtx_insn * within their
19963 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
19964 the subfunctions within the generated "recog_", "split", "peephole2"
19965 function trees from rtx to rtx_insn *. For now, the top-level
19966 generated functions ("recog", "split", "peephole2") continue to
19967 take a plain rtx for "insn", to avoid introducing dependencies on
19968 other patches. Rename this 2nd param from "insn" to
19969 "uncast_insn", and reintroduce "insn" as a local variable of type
19970 rtx_insn *, initialized at the top of the generated function with
19971 a checked cast on "uncast_insn".
19972 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
19973 the generated "gen_" functions from rtx to rtx_insn * within their
19976 * genoutput.c (process_template): Strengthen the 2nd param within
19977 the generated "output_" functions "insn" from rtx to rtx_insn *.
19979 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
19981 * tree-profile.c (tree_profiling): Skip external functions
19982 when doing coverage instrumentation.
19983 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
19985 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19987 * config/rs6000/altivec.h (vec_cpsgn): New #define.
19988 (vec_mergee): Likewise.
19989 (vec_mergeo): Likewise.
19990 (vec_cntlz): Likewise.
19991 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
19992 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
19993 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
19994 VMRGEW, and VMRGOW.
19995 * doc/extend.texi: Document various forms of vec_cpsgn,
19996 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
19997 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
19998 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
19999 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
20000 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
20002 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20004 * config/rs6000/rs6000.c (context.h): New include.
20005 (tree-pass.h): Likewise.
20006 (make_pass_analyze_swaps): New decl.
20007 (rs6000_option_override): Register pass_analyze_swaps.
20008 (swap_web_entry): New subsclass of web_entry_base (df.h).
20009 (special_handling_values): New enum.
20010 (union_defs): New function.
20011 (union_uses): Likewise.
20012 (insn_is_load_p): Likewise.
20013 (insn_is_store_p): Likewise.
20014 (insn_is_swap_p): Likewise.
20015 (rtx_is_swappable_p): Likewise.
20016 (insn_is_swappable_p): Likewise.
20017 (chain_purpose): New enum.
20018 (chain_contains_only_swaps): New function.
20019 (mark_swaps_for_removal): Likewise.
20020 (swap_const_vector_halves): Likewise.
20021 (adjust_subreg_index): Likewise.
20022 (permute_load): Likewise.
20023 (permute_store): Likewise.
20024 (handle_special_swappables): Likewise.
20025 (replace_swap_with_copy): Likewise.
20026 (dump_swap_insn_table): Likewise.
20027 (rs6000_analyze_swaps): Likewise.
20028 (pass_data_analyze_swaps): New pass_data.
20029 (pass_analyze_swaps): New rtl_opt_pass.
20030 (make_pass_analyze_swaps): New function.
20031 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
20033 2014-08-21 David Malcolm <dmalcolm@redhat.com>
20035 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
20036 type from rtx to rtx_insn *.
20037 (create_copy_of_insn_rtx): Likewise.
20038 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
20039 (create_copy_of_insn_rtx): Likewise, also for local "res".
20041 2014-08-21 David Malcolm <dmalcolm@redhat.com>
20043 * rtl.h (find_first_parameter_load): Strengthen return type from
20045 * rtlanal.c (find_first_parameter_load): Strengthen return type
20046 from rtx to rtx_insn *. Add checked cast for now, to postpone
20047 strengthening the params.
20049 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
20052 * diagnostic.c: Set default caret.
20053 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
20055 * diagnostic.h (struct diagnostic_context):
20057 2014-08-21 David Malcolm <dmalcolm@redhat.com>
20059 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
20060 (sel_bb_head): Strengthen return type insn_t (currently just an
20061 rtx) to rtx_insn *.
20062 (sel_bb_end): Likewise.
20064 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
20065 (sel_bb_head): Strengthen return type and local "head" from
20066 insn_t (currently just an rtx) to rtx_insn *.
20067 (sel_bb_end): Likewise for return type.
20068 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
20071 2014-08-21 David Malcolm <dmalcolm@redhat.com>
20073 * basic-block.h (get_last_bb_insn): Strengthen return type from
20075 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
20078 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
20081 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
20083 (diagnostic_report_diagnostic): ... from here.
20084 * toplev.c (general_init): Move code to c-family.
20086 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20088 * df.h (web_entry_base): Replace existing struct web_entry with a
20089 new class web_entry_base with only the predecessor member.
20090 (unionfind_root): Remove declaration and move to class member.
20091 (unionfind_union): Remove declaration and move to friend
20093 (union_defs): Remove declaration.
20094 * web.c (web_entry_base::unionfind_root): Modify to be member
20095 function and adjust accessors.
20096 (unionfind_union): Modify to be friend function and adjust
20098 (web_entry): New subclass of web_entry_base containing the reg
20100 (union_match_dups): Modify for struct -> class changes.
20101 (union_defs): Likewise.
20102 (entry_register): Likewise.
20103 (pass_web::execute): Likewise.
20105 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
20107 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
20108 builtin define __VEC_ELEMENT_REG_ORDER__.
20110 2014-08-20 Martin Jambor <mjambor@suse.cz>
20111 Wei Mi <wmi@google.com>
20114 PR middle-end/61776
20115 * tree-ssa-operands.c (update_stmt_operands): Remove
20116 MODIFIED_NORETURN_CALLS.
20117 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
20118 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
20119 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
20120 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
20121 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
20122 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
20123 (gimple_call_set_ctrl_altering): New func.
20124 (gimple_call_ctrl_altering_p): Ditto.
20125 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
20126 (make_blocks): Use gimple_call_initialize_ctrl_altering.
20127 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
20128 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
20129 remove MODIFIED_NORETURN_CALLS.
20131 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
20133 * coverage.c (coverage_compute_profile_id): Return non-0;
20134 also handle symbols with unique name.
20135 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
20137 2014-08-20 Steve Ellcey <sellcey@mips.com>
20139 PR middle-end/49191
20140 * doc/sourcebuild.texi (non_strict_align): New.
20142 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
20144 * cgraphunit.c (ipa_passes, compile): Reshedule
20145 symtab_remove_unreachable_nodes passes; update comments.
20146 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
20147 TODO_remove_functions before the pass; the functions ought to be
20149 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
20150 TODO_remove_functions.
20151 * passes.c (pass_data_early_local_passes): Do not schedule function
20153 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
20155 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20158 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
20159 before setting the option.
20160 * diagnostic.c (diagnostic_classify_diagnostic): Record
20161 command-line status.
20163 2014-08-20 Richard Biener <rguenther@suse.de>
20166 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
20167 to build uint{16,32,64}_type_node.
20169 2014-08-20 Terry Guo <terry.guo@arm.com>
20171 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
20172 with immediate_operand.
20174 2014-08-20 David Malcolm <dmalcolm@redhat.com>
20176 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
20177 "insn" from an as_a to a safe_as_a, for the case when "insn" is
20180 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20182 PR preprocessor/51303
20183 * incpath.c (remove_duplicates): Use cpp_warning.
20185 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20189 * doc/options.texi (CPP): Document it.
20190 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
20191 * optc-gen.awk: Handle CPP.
20192 * opth-gen.awk: Likewise.
20194 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20196 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
20198 (duplicate_insn_chain): Likewise.
20199 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
20200 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
20201 checked cast for now (until we can strengthen the params in the
20203 (duplicate_insn_chain): Likewise.
20205 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20207 * rtl.h (next_cc0_user): Strengthen return type from rtx to
20209 (prev_cc0_setter): Likewise.
20211 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
20212 rtx_insn *, adding checked casts for now as necessary.
20213 (prev_cc0_setter): Likewise.
20215 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20217 * expr.h (emit_move_insn): Strengthen return type from rtx to
20219 (emit_move_insn_1): Likewise.
20220 (emit_move_complex_push): Likewise.
20221 (emit_move_complex_parts): Likewise.
20223 * expr.c (emit_move_via_integer): Strengthen return type from rtx
20224 to rtx_insn *. Replace use of NULL_RTX with NULL when working
20226 (emit_move_complex_push): Strengthen return type from rtx to
20228 (emit_move_complex): Likewise, also for local "ret".
20229 (emit_move_ccmode): Likewise.
20230 (emit_move_multi_word): Likewise for return type and locals
20231 "last_insn", "seq".
20232 (emit_move_insn_1): Likewise for return type and locals "result",
20234 (emit_move_insn): Likewise for return type and local "last_insn".
20235 (compress_float_constant): Likewise.
20237 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20239 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
20240 from rtx to rtx_insn *.
20242 * rtl.h (emit_insn_before): Likewise.
20243 (emit_insn_before_noloc): Likewise.
20244 (emit_insn_before_setloc): Likewise.
20245 (emit_jump_insn_before): Likewise.
20246 (emit_jump_insn_before_noloc): Likewise.
20247 (emit_jump_insn_before_setloc): Likewise.
20248 (emit_call_insn_before): Likewise.
20249 (emit_call_insn_before_noloc): Likewise.
20250 (emit_call_insn_before_setloc): Likewise.
20251 (emit_debug_insn_before): Likewise.
20252 (emit_debug_insn_before_noloc): Likewise.
20253 (emit_debug_insn_before_setloc): Likewise.
20254 (emit_label_before): Likewise.
20255 (emit_insn_after): Likewise.
20256 (emit_insn_after_noloc): Likewise.
20257 (emit_insn_after_setloc): Likewise.
20258 (emit_jump_insn_after): Likewise.
20259 (emit_jump_insn_after_noloc): Likewise.
20260 (emit_jump_insn_after_setloc): Likewise.
20261 (emit_call_insn_after): Likewise.
20262 (emit_call_insn_after_noloc): Likewise.
20263 (emit_call_insn_after_setloc): Likewise.
20264 (emit_debug_insn_after): Likewise.
20265 (emit_debug_insn_after_noloc): Likewise.
20266 (emit_debug_insn_after_setloc): Likewise.
20267 (emit_label_after): Likewise.
20268 (emit_insn): Likewise.
20269 (emit_debug_insn): Likewise.
20270 (emit_jump_insn): Likewise.
20271 (emit_call_insn): Likewise.
20272 (emit_label): Likewise.
20273 (gen_clobber): Likewise.
20274 (emit_clobber): Likewise.
20275 (gen_use): Likewise.
20276 (emit_use): Likewise.
20279 (emit_barrier_before): Strengthen return type from rtx to
20281 (emit_barrier_after): Likewise.
20282 (emit_barrier): Likewise.
20284 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
20285 from rtx to rtx_insn *. Add checked casts for now when converting
20286 "last" from rtx to rtx_insn *.
20287 (emit_insn_before_noloc): Likewise for return type.
20288 (emit_jump_insn_before_noloc): Likewise.
20289 (emit_call_insn_before_noloc): Likewise.
20290 (emit_debug_insn_before_noloc): Likewise.
20291 (emit_barrier_before): Strengthen return type and local "insn"
20292 from rtx to rtx_barrier *.
20293 (emit_label_before): Strengthen return type from rtx to
20294 rtx_insn *. Add checked cast for now when returning param
20295 (emit_pattern_after_noloc): Strengthen return type from rtx to
20296 rtx_insn *. Add checked casts for now when converting "last" from
20298 (emit_insn_after_noloc): Strengthen return type from rtx to
20300 (emit_jump_insn_after_noloc): Likewise.
20301 (emit_call_insn_after_noloc): Likewise.
20302 (emit_debug_insn_after_noloc): Likewise.
20303 (emit_barrier_after): Strengthen return type from rtx to
20305 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
20306 Add checked cast for now when converting "label" from rtx to
20308 (emit_pattern_after_setloc): Strengthen return type from rtx to
20309 rtx_insn *. Add checked casts for now when converting "last" from
20311 (emit_pattern_after): Strengthen return type from rtx to
20313 (emit_insn_after_setloc): Likewise.
20314 (emit_insn_after): Likewise.
20315 (emit_jump_insn_after_setloc): Likewise.
20316 (emit_jump_insn_after): Likewise.
20317 (emit_call_insn_after_setloc): Likewise.
20318 (emit_call_insn_after): Likewise.
20319 (emit_debug_insn_after_setloc): Likewise.
20320 (emit_debug_insn_after): Likewise.
20321 (emit_pattern_before_setloc): Likewise. Add checked casts for now
20322 when converting "last" from rtx to rtx_insn *.
20323 (emit_pattern_before): Strengthen return type from rtx to
20325 (emit_insn_before_setloc): Likewise.
20326 (emit_insn_before): Likewise.
20327 (emit_jump_insn_before_setloc): Likewise.
20328 (emit_jump_insn_before): Likewise.
20329 (emit_call_insn_before_setloc): Likewise.
20330 (emit_call_insn_before): Likewise.
20331 (emit_debug_insn_before_setloc): Likewise.
20332 (emit_debug_insn_before): Likewise.
20333 (emit_insn): Strengthen return type and locals "last", "insn",
20334 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
20335 within cases where we know we have an insn.
20336 (emit_debug_insn): Likewise.
20337 (emit_jump_insn): Likewise.
20338 (emit_call_insn): Strengthen return type and local "insn" from rtx
20340 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
20341 a checked cast to rtx_insn * for now on "label".
20342 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
20343 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
20344 (emit_use): Likewise.
20345 (gen_use): Likewise, also for local "seq".
20346 (emit): Likewise for return type and local "insn".
20347 (rtx_insn): Likewise for return type and local "new_rtx".
20349 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
20350 from rtx to rtx_barrier *.
20352 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
20353 changed return type from rtx to rtx_insn *, we must update
20354 "emit_fn" type, and this in turn means updating...
20355 (frame_insn): ...this. Strengthen return type from rtx to
20356 rtx_insn *. Introduce a new local "insn" of the appropriate type.
20358 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20360 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
20361 rtx to rtx_jump_table_data *. Also for local.
20362 * rtl.h (emit_jump_table_data): Likewise.
20364 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20366 * basic-block.h (create_basic_block_structure): Strengthen third
20367 param "bb_note" from rtx to rtx_note *.
20368 * rtl.h (emit_note_before): Strengthen return type from rtx to
20370 (emit_note_after): Likewise.
20371 (emit_note): Likewise.
20372 (emit_note_copy): Likewise. Also, strengthen param similarly.
20373 * function.h (struct rtl_data): Strengthen field
20374 "x_stack_check_probe_note" from rtx to rtx_note *.
20376 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
20377 from rtx to rtx_note *.
20378 * cfgrtl.c (create_basic_block_structure): Strengthen third param
20379 "bb_note" from rtx to rtx_note *.
20380 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
20381 when calling emit_note_copy.
20382 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
20384 (emit_note_after): Likewise.
20385 (emit_note_before): Likewise.
20386 (emit_note_copy): Likewise. Also, strengthen param similarly.
20387 (emit_note): Likewise.
20388 * except.c (emit_note_eh_region_end): Likewise for return type.
20389 Strengthen local "next" from rtx to rtx_insn *.
20390 (convert_to_eh_region_ranges): Strengthen local "note"
20391 from rtx to rtx_note *.
20392 * final.c (change_scope): Likewise.
20393 (reemit_insn_block_notes): Likewise, for both locals named "note".
20394 Also, strengthen local "insn" from rtx to rtx_insn *.
20395 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
20397 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
20398 strengthen local "seq" from rtx to rtx_insn *.
20399 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
20401 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
20403 (get_bb_note_from_pool): Strengthen return type from rtx to
20405 (sel_create_basic_block): Strengthen local "new_bb_note" from
20406 insn_t to rtx_note *.
20407 * var-tracking.c (emit_note_insn_var_location): Strengthen local
20408 "note" from rtx to rtx_note *.
20409 (emit_notes_in_bb): Likewise.
20411 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20413 * function.h (struct rtl_data): Strengthen field
20414 "x_parm_birth_insn" from rtx to rtx_insn *.
20415 * function.c (struct assign_parm_data_all): Strengthen fields
20416 "first_conversion_insn" and "last_conversion_insn" from rtx to
20419 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20421 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
20422 to rtx_insn *; also for local "var_end_seq".
20423 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
20424 (maybe_cleanup_end_of_block): Likewise for param "last" and local
20426 (expand_gimple_cond): Likewise for locals "last2" and "last".
20427 (mark_transaction_restart_calls): Likewise for local "insn".
20428 (expand_gimple_stmt): Likewise for return type and locals "last"
20430 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
20431 (avoid_complex_debug_insns): Likewise for param "insn".
20432 (expand_debug_locations): Likewise for locals "insn", "last",
20433 "prev_insn" and "insn2".
20434 (expand_gimple_basic_block): Likewise for local "last".
20435 (construct_exit_block): Likewise for locals "head", "end",
20437 (pass_expand::execute): Likewise for locals "var_seq",
20438 "var_ret_seq", "next".
20440 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20442 * asan.h (asan_emit_stack_protection): Strengthen return type from
20444 * asan.c (asan_emit_stack_protection): Likewise. Add local
20445 "insns" to hold the return value.
20447 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20449 * basic-block.h (bb_note): Strengthen return type from rtx to
20451 * sched-int.h (bb_note): Likewise.
20452 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
20454 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20456 * rtl.h (make_insn_raw): Strengthen return type from rtx to
20459 * emit-rtl.c (make_insn_raw): Strengthen return type and local
20460 "insn" from rtx to rtx_insn *.
20461 (make_debug_insn_raw): Strengthen return type from rtx to
20462 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
20463 (make_jump_insn_raw): Strengthen return type from rtx to
20464 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
20465 (make_call_insn_raw): Strengthen return type from rtx to
20466 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
20467 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
20468 callback from rtx to rtx_insn *; likewise for local "insn" and
20469 "next", adding a checked cast to rtx_insn in the relevant cases of
20470 the switch statement.
20471 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
20472 callback from rtx to rtx_insn *.
20473 (emit_pattern_after_setloc): Likewise.
20474 (emit_pattern_after): Likewise.
20475 (emit_pattern_before_setloc): Likewise.
20476 (emit_pattern_before): Likewise.
20478 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20480 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
20482 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
20483 accepting an rtx_insn *.
20484 (last_call_insn): Strengthen return type from rtx to
20487 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20489 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
20490 "insns" from rtx to rtx_insn *.
20491 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
20492 locals "insn" and "prev".
20494 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20496 * rtl.h (tablejump_p): Strengthen third param from rtx * to
20497 rtx_jump_table_data **.
20499 * cfgbuild.c (make_edges): Introduce local "table", using it in
20500 place of "tmp" for jump table data.
20501 (find_bb_boundaries): Strengthen local "table" from rtx to
20502 rtx_jump_table_data *.
20503 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
20504 (outgoing_edges_match): Likewise for locals "table1" and "table2".
20505 (try_crossjump_to_edge): Likewise.
20506 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
20508 (patch_jump_insn): Introduce local "table", using it in place of
20509 "tmp" for jump table data.
20510 (force_nonfallthru_and_redirect): Introduce local "table", so that
20511 call to tablejump_p can receive an rtx_jump_table_data **. Update
20512 logic around the call to overwrite "note" appropriately if
20513 tablejump_p returns non-zero.
20514 (get_last_bb_insn): Introduce local "table", using it in place of
20515 "tmp" for jump table data.
20516 * dwarf2cfi.c (create_trace_edges): Likewise.
20518 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
20519 from rtx to rtx_jump_table_data *.
20520 (create_fix_barrier): Strengthen local "tmp" from rtx to
20521 rtx_jump_table_data *.
20522 (arm_reorg): Likewise for local "table".
20524 * config/s390/s390.c (s390_chunkify_start): Likewise.
20526 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
20528 * jump.c (delete_related_insns): Strengthen local "lab_next" from
20529 rtx to rtx_jump_table_data *.
20531 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
20532 rtx_jump_table_data **. Add a checked cast when writing through
20533 the pointer: we know there that local "table" is non-NULL and that
20534 JUMP_TABLE_DATA_P (table) holds.
20535 (label_is_jump_target_p): Introduce local "table", using it in
20536 place of "tmp" for jump table data.
20538 2014-08-19 Marek Polacek <polacek@redhat.com>
20541 * doc/invoke.texi: Document -Wbool-compare.
20543 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20545 * rtl.h (entry_of_function): Strengthen return type from rtx to
20547 * cfgrtl.c (entry_of_function): Likewise.
20549 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20551 * emit-rtl.h (get_insns): Strengthen return type from rtx to
20552 rtx_insn *, adding a checked cast for now.
20553 (get_last_insn): Likewise.
20555 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20557 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
20560 * emit-rtl.c (gen_label_rtx): Likewise.
20562 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20564 * rtl.h (previous_insn): Strengthen return type from rtx to
20566 (next_insn): Likewise.
20567 (prev_nonnote_insn): Likewise.
20568 (prev_nonnote_insn_bb): Likewise.
20569 (next_nonnote_insn): Likewise.
20570 (next_nonnote_insn_bb): Likewise.
20571 (prev_nondebug_insn): Likewise.
20572 (next_nondebug_insn): Likewise.
20573 (prev_nonnote_nondebug_insn): Likewise.
20574 (next_nonnote_nondebug_insn): Likewise.
20575 (prev_real_insn): Likewise.
20576 (next_real_insn): Likewise.
20577 (prev_active_insn): Likewise.
20578 (next_active_insn): Likewise.
20580 * emit-rtl.c (next_insn): Strengthen return type from rtx to
20581 rtx_insn *, adding a checked cast.
20582 (previous_insn): Likewise.
20583 (next_nonnote_insn): Likewise.
20584 (next_nonnote_insn_bb): Likewise.
20585 (prev_nonnote_insn): Likewise.
20586 (prev_nonnote_insn_bb): Likewise.
20587 (next_nondebug_insn): Likewise.
20588 (prev_nondebug_insn): Likewise.
20589 (next_nonnote_nondebug_insn): Likewise.
20590 (prev_nonnote_nondebug_insn): Likewise.
20591 (next_real_insn): Likewise.
20592 (prev_real_insn): Likewise.
20593 (next_active_insn): Likewise.
20594 (prev_active_insn): Likewise.
20596 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
20597 param "stepfunc" so that it returns an rtx_insn * rather than an
20598 rtx, to track the change to prev_nonnote_insn_bb, which is the
20599 only function this is called with.
20600 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
20602 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
20604 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
20607 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20609 * coretypes.h (class rtx_debug_insn): Add forward declaration.
20610 (class rtx_nonjump_insn): Likewise.
20611 (class rtx_jump_insn): Likewise.
20612 (class rtx_call_insn): Likewise.
20613 (class rtx_jump_table_data): Likewise.
20614 (class rtx_barrier): Likewise.
20615 (class rtx_code_label): Likewise.
20616 (class rtx_note): Likewise.
20618 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
20619 adding the invariant DEBUG_INSN_P (X).
20620 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
20621 the invariant NONJUMP_INSN_P (X).
20622 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
20623 the invariant JUMP_P (X).
20624 (class rtx_call_insn): New, a subclass of rtx_insn, adding
20625 the invariant CALL_P (X).
20626 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
20627 invariant JUMP_TABLE_DATA_P (X).
20628 (class rtx_barrier): New, a subclass of rtx_insn, adding the
20629 invariant BARRIER_P (X).
20630 (class rtx_code_label): New, a subclass of rtx_insn, adding
20631 the invariant LABEL_P (X).
20632 (class rtx_note): New, a subclass of rtx_insn, adding
20633 the invariant NOTE_P(X).
20634 (is_a_helper <rtx_debug_insn *>::test): New.
20635 (is_a_helper <rtx_nonjump_insn *>::test): New.
20636 (is_a_helper <rtx_jump_insn *>::test): New.
20637 (is_a_helper <rtx_call_insn *>::test): New.
20638 (is_a_helper <rtx_jump_table_data *>::test): New functions,
20639 overloaded for both rtx and rtx_insn *.
20640 (is_a_helper <rtx_barrier *>::test): New.
20641 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
20642 for both rtx and rtx_insn *.
20643 (is_a_helper <rtx_note *>::test): New.
20645 2014-08-19 Marek Polacek <polacek@redhat.com>
20647 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
20648 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
20649 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
20650 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
20652 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20654 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
20655 rtx_insn *. To help with transition, for now, convert from an
20656 access macro into a pair of functions: BND_TO, returning an
20658 (SET_BND_TO): New function, for use where BND_TO is used as an
20661 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
20663 (BND_TO): New function, adding a checked cast.
20664 (SET_BND_TO): New function.
20666 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
20668 (compute_av_set_on_boundaries): Likewise.
20670 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
20672 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
20673 destination if it is used in source.
20674 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
20675 (*popcount<mode>2_falsedep_1): Likewise.
20677 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
20680 * configure.ac: Set install_gold_as_default to no first.
20681 * configure: Regenerated.
20683 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20685 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
20686 "note_list" field will eventually be an rtx_insn *. To help with
20687 transition, for now, convert from an access macro into a pair of
20688 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
20689 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
20692 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
20693 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
20695 * sel-sched-ir.c (init_bb): Likewise.
20696 (sel_restore_notes): Likewise.
20697 (move_bb_info): Likewise.
20698 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
20699 (SET_BB_NOTE_LIST): New function.
20701 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20703 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
20704 field will eventually be an rtx_insn *. To help with transition,
20705 for now, convert from an access macro into a pair of functions:
20706 VINSN_INSN_RTX, returning an rtx_insn *, and...
20707 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
20708 is used as an lvalue.
20710 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
20711 SET_VINSN_INSN_RTX where it's used as an lvalue.
20712 (VINSN_INSN_RTX): New function.
20713 (SET_VINSN_INSN_RTX): New function.
20715 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20717 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
20718 eventually be rtx_insn *, but to help with transition, for now,
20719 convert from an access macro into a pair of functions: DEP_PRO
20720 returning an rtx_insn * and...
20721 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
20722 lvalue, returning an rtx&.
20723 (DEP_CON): Analogous changes to DEP_PRO above.
20724 (SET_DEP_CON): Likewise.
20726 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
20727 an lvalue to SET_DEP_CON.
20728 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
20729 (sd_copy_back_deps): Likewise for DEP_CON.
20730 (DEP_PRO): New function, adding a checked cast for now.
20731 (DEP_CON): Likewise.
20732 (SET_DEP_PRO): New function.
20733 (SET_DEP_CON): Likewise.
20735 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
20737 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
20738 (extra_options): Add i386/cygwin.opt.
20739 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
20740 (CPP_SPEC): Accept -pthread.
20741 (LINK_SPEC): Ditto.
20742 (GOMP_SELF_SPECS): Update comment.
20743 * config/i386/cygwin.opt: New file for -pthread flag.
20745 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20747 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
20748 * df.h (DF_REF_INSN): Convert from a macro to a function, so
20749 that we can return an rtx_insn *.
20751 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
20753 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
20754 when building executables, not DLLs. Add --large-address-aware
20755 under the same conditions.
20756 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
20757 when building executables, not DLLs. Add --large-address-aware
20758 under the same conditions when using -m32.
20760 * config/i386/cygwin-stdint.h: Throughout, make type
20761 definitions dependent on target architecture, not host.
20763 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20765 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
20766 the return type from rtx to rtx_insn *, which will enable various
20767 conversions in followup patches. For now this is is done by a
20769 (NEXT_INSN): Likewise.
20770 (SET_PREV_INSN): Convert to an inline function. This is intended
20771 for use as an lvalue, and so returns an rtx& to allow in-place
20773 (SET_NEXT_INSN): Likewise.
20775 2014-07-08 Mark Wielaard <mjw@redhat.com>
20778 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
20780 2014-08-19 Marek Polacek <polacek@redhat.com>
20783 * cgraphunit.c (handle_alias_pairs): Fix condition.
20785 2014-08-19 Richard Biener <rguenther@suse.de>
20787 * gimple-fold.c (fold_gimple_assign): Properly build a
20788 null-pointer constant when devirtualizing addresses.
20790 2014-07-07 Mark Wielaard <mjw@redhat.com>
20792 * dwarf2out.c (decl_quals): New function.
20793 (modified_type_die): Take one cv_quals argument instead of two,
20794 one for const and one for volatile.
20795 (add_type_attribute): Likewise.
20796 (generic_parameter_die): Call add_type_attribute with one modifier
20798 (base_type_for_mode): Likewise.
20799 (add_bounds_info): Likewise.
20800 (add_subscript_info): Likewise.
20801 (gen_array_type_die): Likewise.
20802 (gen_descr_array_type_die): Likewise.
20803 (gen_entry_point_die): Likewise.
20804 (gen_enumeration_type_die): Likewise.
20805 (gen_formal_parameter_die): Likewise.
20806 (gen_subprogram_die): Likewise.
20807 (gen_variable_die): Likewise.
20808 (gen_const_die): Likewise.
20809 (gen_field_die): Likewise.
20810 (gen_pointer_type_die): Likewise.
20811 (gen_reference_type_die): Likewise.
20812 (gen_ptr_to_mbr_type_die): Likewise.
20813 (gen_inheritance_die): Likewise.
20814 (gen_subroutine_type_die): Likewise.
20815 (gen_typedef_die): Likewise.
20816 (force_type_die): Likewise.
20818 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20820 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
20822 * configure: Regenerate.
20824 2014-08-19 Richard Biener <rguenther@suse.de>
20826 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
20827 DECL_EXTERNALs in BLOCKs as non-references.
20828 * tree-streamer-out.c (streamer_write_chain): Likewise.
20830 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20832 Anna Tikhonova <anna.tikhonova@intel.com>
20833 Ilya Tocar <ilya.tocar@intel.com>
20834 Andrey Turetskiy <andrey.turetskiy@intel.com>
20835 Ilya Verbin <ilya.verbin@intel.com>
20836 Kirill Yukhin <kirill.yukhin@intel.com>
20837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20839 * config/i386/sse.md
20840 (define_mode_iterator VI48_AVX512F): Delete.
20841 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
20842 (define_mode_iterator VI2_AVX512VL): Ditto.
20843 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
20846 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
20848 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
20849 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
20850 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
20851 with VI48_AVX512F_AVX512VL): New.
20852 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
20853 with VI2_AVX512VL): Ditto.
20855 2014-08-19 Marek Polacek <polacek@redhat.com>
20857 * doc/invoke.texi: Document -Wc99-c11-compat.
20859 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20861 * rtl.h (PREV_INSN): Split macro in two: the existing one,
20862 for rvalues, and...
20863 (SET_PREV_INSN): New macro, for use as an lvalue.
20864 (NEXT_INSN, SET_NEXT_INSN): Likewise.
20866 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
20867 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
20868 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
20869 (fixup_abnormal_edges): Likewise.
20870 (unlink_insn_chain): Likewise.
20871 (fixup_reorder_chain): Likewise.
20872 (cfg_layout_delete_block): Likewise.
20873 (cfg_layout_merge_blocks): Likewise.
20874 * combine.c (update_cfg_for_uncondjump): Likewise.
20875 * emit-rtl.c (link_insn_into_chain): Likewise.
20876 (remove_insn): Likewise.
20877 (delete_insns_since): Likewise.
20878 (reorder_insns_nobb): Likewise.
20879 (emit_insn_after_1): Likewise.
20880 * final.c (rest_of_clean_state): Likewise.
20881 (final_scan_insn): Likewise.
20882 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
20883 * haifa-sched.c (concat_note_lists): Likewise.
20884 (remove_notes): Likewise.
20885 (restore_other_notes): Likewise.
20886 (move_insn): Likewise.
20887 (unlink_bb_notes): Likewise.
20888 (restore_bb_notes): Likewise.
20889 * jump.c (delete_for_peephole): Likewise.
20890 * optabs.c (emit_libcall_block_1): Likewise.
20891 * reorg.c (emit_delay_sequence): Likewise.
20892 (fill_simple_delay_slots): Likewise.
20893 * sel-sched-ir.c (sel_move_insn): Likewise.
20894 (sel_remove_insn): Likewise.
20895 (get_bb_note_from_pool): Likewise.
20896 * sel-sched.c (move_nop_to_previous_block): Likewise.
20898 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
20899 * config/c6x/c6x.c (gen_one_bundle): Likewise.
20900 (c6x_gen_bundles): Likewise.
20901 (hwloop_optimize): Likewise.
20902 * config/frv/frv.c (frv_function_prologue): Likewise.
20903 (frv_register_nop): Likewise.
20904 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
20905 (ia64_reorg): Likewise.
20906 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
20907 (mep_make_bundle): Likewise.
20908 (mep_bundle_insns): Likewise.
20909 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
20910 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
20911 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
20913 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20915 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
20916 return type from rtx to rtx_insn *.
20917 (BB_END): Likewise.
20918 (BB_HEADER): Likewise.
20919 (BB_FOOTER): Likewise.
20920 (SET_BB_HEAD): Convert to a function.
20921 (SET_BB_END): Likewise.
20922 (SET_BB_HEADER): Likewise.
20923 (SET_BB_FOOTER): Likewise.
20925 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
20926 Strengthen the return type from rtx to rtx_insn *. For now, this
20927 is done by adding a checked cast, but this will eventually
20928 become a field lookup.
20929 (BB_END): Likewise.
20930 (BB_HEADER): Likewise.
20931 (BB_FOOTER): Likewise.
20932 (SET_BB_HEAD): New function, from macro of same name. This is
20933 intended for use as an lvalue, and so returns an rtx& to allow
20934 in-place modification.
20935 (SET_BB_END): Likewise.
20936 (SET_BB_HEADER): Likewise.
20937 (SET_BB_FOOTER): Likewise.
20939 2014-08-18 David Malcolm <dmalcolm@redhat.com>
20941 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
20942 for rvalues, and...
20943 (SET_BB_HEAD): New macro, for use as a lvalue.
20944 (BB_END, SET_BB_END): Likewise.
20945 (BB_HEADER, SET_BB_HEADER): Likewise.
20946 (BB_FOOTER, SET_BB_FOOTER): Likewise.
20948 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
20949 of BB_* macros into SET_BB_* macros.
20950 (fix_crossing_unconditional_branches): Likewise.
20951 * caller-save.c (save_call_clobbered_regs): Likewise.
20952 (insert_one_insn): Likewise.
20953 * cfgbuild.c (find_bb_boundaries): Likewise.
20954 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
20955 (outgoing_edges_match): Likewise.
20956 (try_optimize_cfg): Likewise.
20957 * cfgexpand.c (expand_gimple_cond): Likewise.
20958 (expand_gimple_tailcall): Likewise.
20959 (expand_gimple_basic_block): Likewise.
20960 (construct_exit_block): Likewise.
20961 * cfgrtl.c (delete_insn): Likewise.
20962 (create_basic_block_structure): Likewise.
20963 (rtl_delete_block): Likewise.
20964 (rtl_split_block): Likewise.
20965 (emit_nop_for_unique_locus_between): Likewise.
20966 (rtl_merge_blocks): Likewise.
20967 (block_label): Likewise.
20968 (try_redirect_by_replacing_jump): Likewise.
20969 (emit_barrier_after_bb): Likewise.
20970 (fixup_abnormal_edges): Likewise.
20971 (record_effective_endpoints): Likewise.
20972 (relink_block_chain): Likewise.
20973 (fixup_reorder_chain): Likewise.
20974 (fixup_fallthru_exit_predecessor): Likewise.
20975 (cfg_layout_duplicate_bb): Likewise.
20976 (cfg_layout_split_block): Likewise.
20977 (cfg_layout_delete_block): Likewise.
20978 (cfg_layout_merge_blocks): Likewise.
20979 * combine.c (update_cfg_for_uncondjump): Likewise.
20980 * emit-rtl.c (add_insn_after): Likewise.
20981 (remove_insn): Likewise.
20982 (reorder_insns): Likewise.
20983 (emit_insn_after_1): Likewise.
20984 * haifa-sched.c (get_ebb_head_tail): Likewise.
20985 (restore_other_notes): Likewise.
20986 (move_insn): Likewise.
20987 (sched_extend_bb): Likewise.
20988 (fix_jump_move): Likewise.
20989 * ifcvt.c (noce_process_if_block): Likewise.
20990 (dead_or_predicable): Likewise.
20991 * ira.c (update_equiv_regs): Likewise.
20992 * reg-stack.c (change_stack): Likewise.
20993 * sel-sched-ir.c (sel_move_insn): Likewise.
20994 * sel-sched.c (move_nop_to_previous_block): Likewise.
20996 * config/c6x/c6x.c (hwloop_optimize): Likewise.
20997 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
20999 2014-08-18 David Malcolm <dmalcolm@redhat.com>
21001 * rtl.h (for_each_rtx_in_insn): New function.
21002 * rtlanal.c (for_each_rtx_in_insn): Likewise.
21004 2014-08-18 David Malcolm <dmalcolm@redhat.com>
21006 * coretypes.h (class rtx_insn): Add forward declaration.
21008 * rtl.h: Include is-a.h.
21009 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
21010 workaround to ensure gengtype knows inheritance is occurring,
21011 whilst continuing to use the pre-existing special-casing for
21013 (class rtx_insn): New subclass of rtx_def, adding the
21014 invariant that we're dealing with something we can sanely use
21015 INSN_UID, NEXT_INSN, PREV_INSN on.
21016 (is_a_helper <rtx_insn *>::test): New.
21017 (is_a_helper <const rtx_insn *>::test): New.
21019 2014-08-18 David Malcolm <dmalcolm@redhat.com>
21021 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
21023 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
21025 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
21028 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
21030 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
21031 to BUILT_IN_UNREACHABLE.
21033 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
21036 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
21038 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
21039 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
21040 (ffs<mode>2): Do not expand with tzcnt for
21041 TARGET_AVOID_FALSE_DEP_FOR_BMI.
21042 (ffssi2_no_cmove): Ditto.
21043 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
21044 (ctz<mode>2): New expander.
21045 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
21046 (*ctz<mode>2_falsedep): New insn.
21047 (*ctz<mode>2): Rename from ctz<mode>2.
21048 (clz<mode>2_lzcnt): New expander.
21049 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
21050 (*clz<mode>2_lzcnt_falsedep): New insn.
21051 (*clz<mode>2): Rename from ctz<mode>2.
21052 (popcount<mode>2): New expander.
21053 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
21054 (*popcount<mode>2_falsedep): New insn.
21055 (*popcount<mode>2): Rename from ctz<mode>2.
21056 (*popcount<mode>2_cmp): Remove.
21057 (*popcountsi2_cmp_zext): Ditto.
21059 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
21061 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
21062 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
21063 * config/microblaze/microblaze.h
21064 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
21066 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
21069 * configure.ac: Set install_gold_as_default to no for
21071 * configure: Regenerated.
21073 2014-08-18 Roman Gareev <gareevroman@gmail.com>
21075 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
21076 * config.in: Add undef of HAVE_isl.
21077 * configure: Regenerate.
21078 * configure.ac: Add definition of HAVE_isl.
21079 * graphite-blocking.c: Add checking of HAVE_isl.
21080 * graphite-dependences.c: Likewise.
21081 * graphite-interchange.c: Likewise.
21082 * graphite-isl-ast-to-gimple.c: Likewise.
21083 * graphite-optimize-isl.c: Likewise.
21084 * graphite-poly.c: Likewise.
21085 * graphite-scop-detection.c: Likewise.
21086 * graphite-sese-to-poly.c: Likewise.
21087 * graphite.c: Likewise.
21088 * toplev.c: Replace the checking of HAVE_cloog with the checking
21091 2014-08-18 Richard Biener <rguenther@suse.de>
21093 PR tree-optimization/62090
21094 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
21095 (fold_builtin_3): Do not fold snprintf.
21096 (fold_builtin_4): Likewise.
21097 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
21098 moved from builtins.c.
21099 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
21100 (gimple_fold_builtin): Do not fold sprintf here.
21102 2014-08-18 Richard Biener <rguenther@suse.de>
21104 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
21106 (maybe_canonicalize_mem_ref_addr): ... this function.
21107 (fold_stmt_1): Apply it here before all simplification.
21109 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
21112 * cgraph.h (cgraph_node::create_indirect_edge): Add
21113 compute_indirect_info param.
21114 * cgraph.c (cgraph_node::create_indirect_edge): Compute
21115 indirect_info only when it is required.
21116 * cgraphclones.c (cgraph_clone_edge): Do not recompute
21117 indirect_info fore cloned indirect edge.
21119 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
21120 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21121 Anna Tikhonova <anna.tikhonova@intel.com>
21122 Ilya Tocar <ilya.tocar@intel.com>
21123 Andrey Turetskiy <andrey.turetskiy@intel.com>
21124 Ilya Verbin <ilya.verbin@intel.com>
21125 Kirill Yukhin <kirill.yukhin@intel.com>
21126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21128 * config/i386/sse.md
21129 (define_mode_iterator VI8_AVX2_AVX512BW): New.
21130 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
21132 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
21133 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21134 Anna Tikhonova <anna.tikhonova@intel.com>
21135 Ilya Tocar <ilya.tocar@intel.com>
21136 Andrey Turetskiy <andrey.turetskiy@intel.com>
21137 Ilya Verbin <ilya.verbin@intel.com>
21138 Kirill Yukhin <kirill.yukhin@intel.com>
21139 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21141 * config/i386/sse.md
21142 (define_mode_iterator VF1_AVX512VL): New.
21143 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
21144 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
21147 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
21148 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21149 Anna Tikhonova <anna.tikhonova@intel.com>
21150 Ilya Tocar <ilya.tocar@intel.com>
21151 Andrey Turetskiy <andrey.turetskiy@intel.com>
21152 Ilya Verbin <ilya.verbin@intel.com>
21153 Kirill Yukhin <kirill.yukhin@intel.com>
21154 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21156 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
21157 * config/i386/i386.md
21158 (define_code_iterator any_float): New.
21159 (define_code_attr floatsuffix): New.
21160 * config/i386/sse.md
21161 (define_mode_iterator VF1_128_256VL): New.
21162 (define_mode_iterator VF2_512_256VL): New.
21163 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
21165 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
21166 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
21168 (define_mode_attr qq2pssuff): New.
21169 (define_mode_attr sselongvecmode): New.
21170 (define_mode_attr sselongvecmodelower): New.
21171 (define_mode_attr sseintvecmode3): New.
21172 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
21174 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
21175 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
21176 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
21177 (define_insn "ufloatv2siv2df2<mask_name>"): New.
21179 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
21180 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21181 Anna Tikhonova <anna.tikhonova@intel.com>
21182 Ilya Tocar <ilya.tocar@intel.com>
21183 Andrey Turetskiy <andrey.turetskiy@intel.com>
21184 Ilya Verbin <ilya.verbin@intel.com>
21185 Kirill Yukhin <kirill.yukhin@intel.com>
21186 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21188 * config/i386/sse.md
21189 (define_mode_iterator VF2_AVX512VL): New.
21190 (define_mode_attr sseintvecmode2): New.
21191 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
21192 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
21193 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
21195 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
21197 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
21199 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
21202 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
21203 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21204 Anna Tikhonova <anna.tikhonova@intel.com>
21205 Ilya Tocar <ilya.tocar@intel.com>
21206 Andrey Turetskiy <andrey.turetskiy@intel.com>
21207 Ilya Verbin <ilya.verbin@intel.com>
21208 Kirill Yukhin <kirill.yukhin@intel.com>
21209 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21211 * config/i386/i386.md
21212 (define_insn "*movoi_internal_avx"): Add evex version.
21213 (define_insn "*movti_internal"): Ditto.
21215 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
21216 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21217 Anna Tikhonova <anna.tikhonova@intel.com>
21218 Ilya Tocar <ilya.tocar@intel.com>
21219 Andrey Turetskiy <andrey.turetskiy@intel.com>
21220 Ilya Verbin <ilya.verbin@intel.com>
21221 Kirill Yukhin <kirill.yukhin@intel.com>
21222 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21224 * config/i386/i386.md
21225 (define_attr "isa"): Add avx512dq, noavx512dq.
21226 (define_attr "enabled"): Ditto.
21227 * config/i386/sse.md
21228 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
21230 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
21231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21232 Anna Tikhonova <anna.tikhonova@intel.com>
21233 Ilya Tocar <ilya.tocar@intel.com>
21234 Andrey Turetskiy <andrey.turetskiy@intel.com>
21235 Ilya Verbin <ilya.verbin@intel.com>
21236 Kirill Yukhin <kirill.yukhin@intel.com>
21237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21239 * config/i386/i386.c
21240 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
21241 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
21242 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
21243 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
21244 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
21245 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
21246 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
21247 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
21248 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
21249 * config/i386/sse.md
21250 (define_mode_iterator VMOVE): Allow V4TI mode.
21251 (define_mode_iterator V_AVX512VL): New.
21252 (define_mode_iterator V): New handling for AVX512VL.
21253 (define_insn "avx512f_load<mode>_mask"): Delete.
21254 (define_insn "<avx512>_load<mode>_mask"): New.
21255 (define_insn "avx512f_store<mode>_mask"): Delete.
21256 (define_insn "<avx512>_store<mode>_mask"): New.
21259 2014-08-18 Yury Gribov <y.gribov@samsung.com>
21262 * asan.c (instrument_derefs): Fix bitfield check.
21264 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
21266 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
21267 * config/rs6000/htm.md (ttest): Remove clobber.
21268 * config/rs6000/predicates.md (any_mask_operand): New predicate.
21269 (and_operand): Reformat.
21270 (and_2rld_operand): New predicate.
21271 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
21273 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
21274 parameter. Handle AND directly.
21275 (rs6000_split_logical_di): Remove last parameter.
21276 (rs6000_split_logical): Remove last parameter. Remove obsolete
21278 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
21279 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
21280 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
21281 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
21282 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
21283 and 5 anonymous splitters): Delete.
21284 (and<mode>3): New expander.
21285 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
21286 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
21287 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
21288 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
21289 (floatdisf2_internal1): Remove clobbers.
21290 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
21291 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
21292 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
21293 (and<mode>3 for BOOL_128): Remove clobber.
21294 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
21295 rs6000_split_logical.
21296 (*bool<mode>3_internal for BOOL_128): Adjust call of
21297 rs6000_split_logical.
21298 (*boolc<mode>3_internal1 for BOOL_128,
21299 *boolc<mode>3_internal2 for BOOL_128,
21300 *boolcc<mode>3_internal1 for BOOL_128,
21301 *boolcc<mode>3_internal2 for BOOL_128,
21302 *eqv<mode>3_internal1 for BOOL_128,
21303 *eqv<mode>3_internal2 for BOOL_128,
21304 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
21305 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
21307 (*vec_reload_and_reg_<mptrsize>): Delete.
21309 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
21311 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
21312 and split, *boolccsi3_internal3 and split): Delete.
21313 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
21314 *boolccdi3_internal3 and split): Delete.
21315 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
21316 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
21318 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
21320 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
21321 and split, *boolcsi3_internal3 and split): Delete.
21322 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
21323 *boolcdi3_internal3 and split): Delete.
21324 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
21326 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
21328 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
21329 <'u'>: Also support printing the low-order 16 bits.
21330 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
21331 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
21332 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
21333 *booldi3_internal3 and split): Delete.
21334 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
21335 *bool<mode>3_dot2): New.
21336 (two anonymous define_splits for non_logical_cint_operand): Merge.
21338 2014-08-17 Marek Polacek <polacek@redhat.com>
21339 Manuel López-Ibáñez <manu@gcc.gnu.org>
21342 * diagnostic.c (adjust_line): Add gcc_checking_assert.
21343 (diagnostic_show_locus): Don't print caret diagnostic
21344 if a column is larger than the line_width.
21346 2014-08-17 Roman Gareev <gareevroman@gmail.com>
21348 * common.opt: Make the ISL AST generator to be the main code generator
21351 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
21353 * wide-int.h (generic_wide_int): Declare as class instead of struct.
21355 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
21358 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
21360 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
21361 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
21362 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
21364 * config/pa/pa.md (begin_brtab): Delete insn.
21365 (end_brtab): Likewise.
21367 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
21369 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
21371 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
21373 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
21374 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
21375 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
21376 (get_dynamic_type): Remove.
21377 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
21378 (clear_speculation): Bring to ipa-deivrt.h
21379 (get_class_context): Rename to ...
21380 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
21381 (contains_type_p): Update.
21382 (get_dynamic_type): Rename to ...
21383 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
21384 (possible_polymorphic_call_targets): UPdate.
21385 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
21386 * ipa-prop.c (ipa_analyze_call_uses): Update.
21388 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
21390 * doc/invoke.texi (SH options): Document missing processor variant
21391 options. Remove references to Hitachi. Undocument deprecated mspace
21394 2014-08-15 Jason Merrill <jason@redhat.com>
21396 * tree.c (type_hash_canon): Uncomment assert.
21398 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
21400 * input.h (in_system_header_at): Add comment.
21402 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
21405 * diagnostic.c (build_message_string): Make it extern.
21406 * diagnostic.h (build_message_string): Make it extern.
21408 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
21410 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
21411 load/store from/to non-floating class pseudo.
21413 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
21415 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
21417 2014-08-15 Richard Biener <rguenther@suse.de>
21419 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
21420 (get_constraint_for_ssa_var): Remove dead code.
21421 (get_constraint_for_1): Adjust.
21422 (find_what_var_points_to): Likewise.
21423 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
21425 2014-08-15 Ilya Tocar <tocarip@gmail.com>
21428 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
21429 (_mm512_mask_cmpge_epu32_mask): Ditto.
21430 (_mm512_cmpge_epu32_mask): Ditto.
21431 (_mm512_mask_cmpge_epi64_mask): Ditto.
21432 (_mm512_cmpge_epi64_mask): Ditto.
21433 (_mm512_mask_cmpge_epu64_mask): Ditto.
21434 (_mm512_cmpge_epu64_mask): Ditto.
21435 (_mm512_mask_cmple_epi32_mask): Ditto.
21436 (_mm512_cmple_epi32_mask): Ditto.
21437 (_mm512_mask_cmple_epu32_mask): Ditto.
21438 (_mm512_cmple_epu32_mask): Ditto.
21439 (_mm512_mask_cmple_epi64_mask): Ditto.
21440 (_mm512_cmple_epi64_mask): Ditto.
21441 (_mm512_mask_cmple_epu64_mask): Ditto.
21442 (_mm512_cmple_epu64_mask): Ditto.
21443 (_mm512_mask_cmplt_epi32_mask): Ditto.
21444 (_mm512_cmplt_epi32_mask): Ditto.
21445 (_mm512_mask_cmplt_epu32_mask): Ditto.
21446 (_mm512_cmplt_epu32_mask): Ditto.
21447 (_mm512_mask_cmplt_epi64_mask): Ditto.
21448 (_mm512_cmplt_epi64_mask): Ditto.
21449 (_mm512_mask_cmplt_epu64_mask): Ditto.
21450 (_mm512_cmplt_epu64_mask): Ditto.
21451 (_mm512_mask_cmpneq_epi32_mask): Ditto.
21452 (_mm512_mask_cmpneq_epu32_mask): Ditto.
21453 (_mm512_cmpneq_epu32_mask): Ditto.
21454 (_mm512_mask_cmpneq_epi64_mask): Ditto.
21455 (_mm512_cmpneq_epi64_mask): Ditto.
21456 (_mm512_mask_cmpneq_epu64_mask): Ditto.
21457 (_mm512_cmpneq_epu64_mask): Ditto.
21458 (_mm512_castpd_ps): Ditto.
21459 (_mm512_castpd_si512): Ditto.
21460 (_mm512_castps_pd): Ditto.
21461 (_mm512_castps_si512): Ditto.
21462 (_mm512_castsi512_ps): Ditto.
21463 (_mm512_castsi512_pd): Ditto.
21464 (_mm512_castpd512_pd128): Ditto.
21465 (_mm512_castps512_ps128): Ditto.
21466 (_mm512_castsi512_si128): Ditto.
21467 (_mm512_castpd512_pd256): Ditto.
21468 (_mm512_castps512_ps256): Ditto.
21469 (_mm512_castsi512_si256): Ditto.
21470 (_mm512_castpd128_pd512): Ditto.
21471 (_mm512_castps128_ps512): Ditto.
21472 (_mm512_castsi128_si512): Ditto.
21473 (_mm512_castpd256_pd512): Ditto.
21474 (_mm512_castps256_ps512): Ditto.
21475 (_mm512_castsi256_si512): Ditto.
21476 (_mm512_cmpeq_epu32_mask): Ditto.
21477 (_mm512_mask_cmpeq_epu32_mask): Ditto.
21478 (_mm512_mask_cmpeq_epu64_mask): Ditto.
21479 (_mm512_cmpeq_epu64_mask): Ditto.
21480 (_mm512_cmpgt_epu32_mask): Ditto.
21481 (_mm512_mask_cmpgt_epu32_mask): Ditto.
21482 (_mm512_mask_cmpgt_epu64_mask): Ditto.
21483 (_mm512_cmpgt_epu64_mask): Ditto.
21484 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
21485 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
21486 * config/i386/i386.c (enum ix86_builtins): Add
21487 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
21488 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
21489 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
21490 (bdesc_args): Add __builtin_ia32_si512_256si,
21491 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
21492 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
21493 __builtin_ia32_pd512_pd.
21494 (ix86_expand_args_builtin): Handle new FTYPEs.
21495 * config/i386/sse.md (castmode): Add 512-bit modes.
21496 (AVX512MODE2P): New.
21497 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
21498 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
21500 2014-08-15 Richard Biener <rguenther@suse.de>
21502 * fold-const.c (tree_swap_operands_p): Put all constants
21503 last, also strip sign-changing NOPs when considering further
21504 canonicalization. Canonicalize also when optimizing for size.
21506 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21508 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
21509 one_match > zero_match case to just before simple_sequence.
21511 2014-08-15 Richard Biener <rguenther@suse.de>
21513 * data-streamer.h (streamer_string_index, string_for_index):
21515 * data-streamer-out.c (streamer_string_index): Make static.
21516 * data-streamer-in.c (string_for_index): Likewise.
21517 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
21518 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
21520 2014-08-15 Richard Biener <rguenther@suse.de>
21522 PR tree-optimization/62031
21523 * tree-data-ref.c (dr_analyze_indices): Do not set
21524 DR_UNCONSTRAINED_BASE.
21525 (dr_may_alias_p): All indirect accesses have to go the
21526 formerly DR_UNCONSTRAINED_BASE path.
21527 * tree-data-ref.h (struct indices): Remove
21528 unconstrained_base member.
21529 (DR_UNCONSTRAINED_BASE): Remove.
21531 2014-08-15 Jakub Jelinek <jakub@redhat.com>
21533 PR middle-end/62092
21534 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
21535 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
21536 in OMP_CLAUSE_MAP in some outer target region.
21538 2014-08-15 Bin Cheng <bin.cheng@arm.com>
21540 * tree-ssa-loop-ivopts.c (ivopts_data): New field
21541 name_expansion_cache.
21542 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
21543 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
21544 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
21545 (difference_cannot_overflow_p): New parameter. Use affine
21546 expansion for equality check.
21547 (iv_elimination_compare_lt): Pass new argument.
21549 2014-08-14 DJ Delorie <dj@redhat.com>
21551 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
21552 variables to the accumulator.
21554 * config/rl78/predicates.md (rl78_near_mem_operand): New.
21555 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
21556 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
21557 with far-far moves.
21559 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
21560 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
21561 (umulqihi3_virt): Likewise.
21562 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
21563 (umulqihi3_real): Likewise.
21565 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
21567 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
21569 PR tree-optimization/62091
21570 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
21571 function_entry_reached.
21572 (walk_aliased_vdefs): Clear it here.
21573 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
21575 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
21577 * ipa-utils.h (compare_virtual_tables): Declare.
21578 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
21580 2014-08-14 Marek Polacek <polacek@redhat.com>
21583 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
21584 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
21586 2014-08-14 Tom de Vries <tom@codesourcery.com>
21588 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
21590 2014-08-14 Tom de Vries <tom@codesourcery.com>
21592 PR rtl-optimization/62004
21593 PR rtl-optimization/62030
21594 * ifcvt.c (rtx_interchangeable_p): New function.
21595 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
21596 * emit-rtl.h (mem_attrs_eq_p): Declare.
21598 2014-08-14 Roman Gareev <gareevroman@gmail.com>
21600 * graphite-scop-detection.c:
21601 Add inclusion of cp-tree.h.
21602 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
21603 in case they are pointers to object types
21605 2014-08-14 Richard Biener <rguenther@suse.de>
21607 * BASE-VER: Change to 5.0.0
21609 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21610 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21611 Anna Tikhonova <anna.tikhonova@intel.com>
21612 Ilya Tocar <ilya.tocar@intel.com>
21613 Andrey Turetskiy <andrey.turetskiy@intel.com>
21614 Ilya Verbin <ilya.verbin@intel.com>
21615 Kirill Yukhin <kirill.yukhin@intel.com>
21616 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21618 * config/i386/sse.md (define_mode_attr avx512): New.
21619 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
21621 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
21622 (define_mode_attr ssse3_avx2): Ditto.
21623 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
21624 (define_mode_attr avx2_avx512bw): New.
21625 (define_mode_attr ssedoublemodelower): New.
21626 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
21627 V32HI, V64QI modes.
21628 (define_mode_attr ssebytemode): Allow V8DI modes.
21629 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
21630 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
21631 (define_mode_attr ssePSmode2): New.
21632 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
21633 V16HI, V32HI modes.
21634 (define_mode_attr dbpsadbwmode): New.
21635 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
21636 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
21637 (vi8_sse4_1_avx2_avx512): New.
21638 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
21640 (define_mode_attr blendbits): Move before its immediate use.
21642 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21643 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21644 Anna Tikhonova <anna.tikhonova@intel.com>
21645 Ilya Tocar <ilya.tocar@intel.com>
21646 Andrey Turetskiy <andrey.turetskiy@intel.com>
21647 Ilya Verbin <ilya.verbin@intel.com>
21648 Kirill Yukhin <kirill.yukhin@intel.com>
21649 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21651 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
21652 * config/i386/subst.md
21653 (define_mode_iterator SUBST_V): Update.
21654 (define_mode_iterator SUBST_A): Ditto.
21655 (define_subst_attr "mask_operand7"): New.
21656 (define_subst_attr "mask_operand10"): New.
21657 (define_subst_attr "mask_operand_arg34") : New.
21658 (define_subst_attr "mask_expand_op3"): New.
21659 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
21660 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
21661 (define_subst_attr "mask_avx512vl_condition"): New.
21662 (define_subst_attr "round_mask_operand4"): Ditto.
21663 (define_subst_attr "round_mask_scalar_op3"): Delete.
21664 (define_subst_attr "round_mask_op4"): New.
21665 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
21667 (define_subst_attr "round_modev8sf_condition"): New.
21668 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
21670 (define_subst_attr "round_saeonly_mask_operand4"): New.
21671 (define_subst_attr "round_saeonly_mask_op4"): New.
21672 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
21673 V8DImode, V16SImode.
21674 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
21675 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
21676 (define_subst_attr "mask_expand4_args"): New.
21677 (define_subst "mask_expand4"): New.
21679 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21680 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21681 Anna Tikhonova <anna.tikhonova@intel.com>
21682 Ilya Tocar <ilya.tocar@intel.com>
21683 Andrey Turetskiy <andrey.turetskiy@intel.com>
21684 Ilya Verbin <ilya.verbin@intel.com>
21685 Kirill Yukhin <kirill.yukhin@intel.com>
21686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21688 * config/i386/i386.md
21689 (define_attr "isa"): Add avx512bw,noavx512bw.
21690 (define_attr "enabled"): Ditto.
21691 (define_split): Add 32/64-bit mask logic.
21692 (define_insn "*k<logic>qi"): New.
21693 (define_insn "*k<logic>hi"): New.
21694 (define_insn "*anddi_1"): Add mask version.
21695 (define_insn "*andsi_1"): Ditto.
21696 (define_insn "*<code><mode>_1"): Ditto.
21697 (define_insn "*<code>hi_1"): Ditto.
21698 (define_insn "kxnor<mode>"): New.
21699 (define_insn "kunpcksi"): New.
21700 (define_insn "kunpckdi"): New.
21701 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
21702 (define_insn "*one_cmplhi2_1"): Ditto.
21704 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21706 Anna Tikhonova <anna.tikhonova@intel.com>
21707 Ilya Tocar <ilya.tocar@intel.com>
21708 Andrey Turetskiy <andrey.turetskiy@intel.com>
21709 Ilya Verbin <ilya.verbin@intel.com>
21710 Kirill Yukhin <kirill.yukhin@intel.com>
21711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21713 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
21716 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21717 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21718 Anna Tikhonova <anna.tikhonova@intel.com>
21719 Ilya Tocar <ilya.tocar@intel.com>
21720 Andrey Turetskiy <andrey.turetskiy@intel.com>
21721 Ilya Verbin <ilya.verbin@intel.com>
21722 Kirill Yukhin <kirill.yukhin@intel.com>
21723 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21725 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
21727 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
21728 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
21729 xmm/ymm16+ when availble.
21730 * config/i386/i386.h
21731 (HARD_REGNO_NREGS): Add mask regs.
21732 (VALID_AVX512F_REG_MODE): Ditto.
21733 (VALID_AVX512F_REG_MODE) : Define.
21734 (VALID_MASK_AVX512BW_MODE): Ditto.
21735 (reg_class) (MASK_REG_P(X)): Define.
21736 * config/i386/i386.md: Do not split long moves with mask register,
21737 use kmovb if avx512bw is availible.
21738 (movdi_internal): Handle mask registers.
21740 2014-08-14 Richard Biener <rguenther@suse.de>
21742 PR tree-optimization/62081
21743 * tree-ssa-loop.c (pass_fix_loops): New pass.
21744 (pass_tree_loop::gate): Do not fixup loops here.
21745 * tree-pass.h (make_pass_fix_loops): Declare.
21746 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
21748 2014-08-14 Richard Biener <rguenther@suse.de>
21750 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
21751 (type_hash_canon): ... this and avoid 2nd lookup for the add.
21753 2014-08-14 Richard Biener <rguenther@suse.de>
21755 PR tree-optimization/62090
21756 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
21757 (fold_builtin_2): Do not fold sprintf.
21758 (fold_builtin_3): Likewise.
21759 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
21760 moved from builtins.c.
21761 (gimple_fold_builtin): Fold sprintf.
21763 2014-08-14 Richard Biener <rguenther@suse.de>
21765 PR rtl-optimization/62079
21766 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
21769 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
21771 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
21772 current_function_decl.
21774 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
21776 * cgraph.c (cgraph_node::function_symbol): Fix wrong
21777 cgraph_function_node to cgraph_node::function_symbol
21780 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
21782 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
21783 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
21785 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
21787 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
21790 2014-08-13 Roman Gareev <gareevroman@gmail.com>
21792 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
21795 2014-08-12 Jakub Jelinek <jakub@redhat.com>
21798 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
21799 any registers that are used in mem_insn.
21801 2014-08-12 Steve Ellcey <sellcey@mips.com>
21803 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
21805 2014-08-12 Steve Ellcey <sellcey@mips.com>
21807 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
21808 (MULTILIB_DIRNAMES): Ditto.
21809 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
21810 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
21811 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
21812 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
21813 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
21814 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
21816 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21819 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
21820 of __ARM_SIZEOF_WCHAR_T.
21822 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21825 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
21826 Remove unnecessary attributes.
21828 2014-08-12 Yury Gribov <y.gribov@samsung.com>
21830 * internal-fn.c (init_internal_fns): Fix off-by-one.
21832 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
21833 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21834 Anna Tikhonova <anna.tikhonova@intel.com>
21835 Ilya Tocar <ilya.tocar@intel.com>
21836 Andrey Turetskiy <andrey.turetskiy@intel.com>
21837 Ilya Verbin <ilya.verbin@intel.com>
21838 Kirill Yukhin <kirill.yukhin@intel.com>
21839 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21841 * config/i386/i386.c (standard_sse_constant_opcode): Use
21842 vpxord/vpternlog if avx512 is availible.
21844 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21846 PR middle-end/62103
21847 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
21848 bitfields, that is when size doesn't match the size of type or the
21849 size of the constructor.
21851 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21853 * config/rs6000/constraints.md (wh constraint): New constraint,
21854 for FP registers if direct move is available.
21855 (wi constraint): New constraint, for VSX/FP registers that can
21856 handle 64-bit integers.
21857 (wj constraint): New constraint for VSX/FP registers that can
21858 handle 64-bit integers for direct moves.
21859 (wk constraint): New constraint for VSX/FP registers that can
21860 handle 64-bit doubles for direct moves.
21861 (wy constraint): Make documentation match implementation.
21863 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
21864 scalar_in_vmx_p field to simplify tests of whether SFmode or
21865 DFmode can go in the Altivec registers.
21866 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
21867 (rs6000_setup_reg_addr_masks): Likewise.
21868 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
21869 field, and wh/wi/wj/wk constraints.
21870 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
21871 the wh/wi/wj/wk constraints.
21872 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
21873 upper registers, prefer VSX registers unless the operation is a
21874 memory operation with REG+OFFSET addressing.
21876 * config/rs6000/vsx.md (VSr mode attribute): Add support for
21877 DImode. Change SFmode to use ww constraint instead of d to allow
21878 SF registers in the upper registers.
21881 (VSr5): Fix thinko in comment.
21882 (VSa): New mode attribute that is an alternative to wa, that
21883 returns the VSX register class that a mode can go in, but may not
21884 be the preferred register class.
21885 (VS_64dm): New mode attribute for appropriate register classes for
21886 referencing 64-bit elements of vectors for direct moves and normal
21888 (VS_64reg): Likewise.
21889 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
21890 register allocator to only registers the data type can handle.
21891 (vsx_le_perm_load_<mode>): Likewise.
21892 (vsx_le_perm_store_<mode>): Likewise.
21893 (vsx_xxpermdi2_le_<mode>): Likewise.
21894 (vsx_xxpermdi4_le_<mode>): Likewise.
21895 (vsx_lxvd2x2_le_<mode>): Likewise.
21896 (vsx_lxvd2x4_le_<mode>): Likewise.
21897 (vsx_stxvd2x2_le_<mode>): Likewise.
21898 (vsx_add<mode>3): Likewise.
21899 (vsx_sub<mode>3): Likewise.
21900 (vsx_mul<mode>3): Likewise.
21901 (vsx_div<mode>3): Likewise.
21902 (vsx_tdiv<mode>3_internal): Likewise.
21903 (vsx_fre<mode>2): Likewise.
21904 (vsx_neg<mode>2): Likewise.
21905 (vsx_abs<mode>2): Likewise.
21906 (vsx_nabs<mode>2): Likewise.
21907 (vsx_smax<mode>3): Likewise.
21908 (vsx_smin<mode>3): Likewise.
21909 (vsx_sqrt<mode>2): Likewise.
21910 (vsx_rsqrte<mode>2): Likewise.
21911 (vsx_tsqrt<mode>2_internal): Likewise.
21912 (vsx_fms<mode>4): Likewise.
21913 (vsx_nfma<mode>4): Likewise.
21914 (vsx_eq<mode>): Likewise.
21915 (vsx_gt<mode>): Likewise.
21916 (vsx_ge<mode>): Likewise.
21917 (vsx_eq<mode>_p): Likewise.
21918 (vsx_gt<mode>_p): Likewise.
21919 (vsx_ge<mode>_p): Likewise.
21920 (vsx_xxsel<mode>): Likewise.
21921 (vsx_xxsel<mode>_uns): Likewise.
21922 (vsx_copysign<mode>3): Likewise.
21923 (vsx_float<VSi><mode>2): Likewise.
21924 (vsx_floatuns<VSi><mode>2): Likewise.
21925 (vsx_fix_trunc<mode><VSi>2): Likewise.
21926 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
21927 (vsx_x<VSv>r<VSs>i): Likewise.
21928 (vsx_x<VSv>r<VSs>ic): Likewise.
21929 (vsx_btrunc<mode>2): Likewise.
21930 (vsx_b2trunc<mode>2): Likewise.
21931 (vsx_floor<mode>2): Likewise.
21932 (vsx_ceil<mode>2): Likewise.
21933 (vsx_<VS_spdp_insn>): Likewise.
21934 (vsx_xscvspdp): Likewise.
21935 (vsx_xvcvspuxds): Likewise.
21936 (vsx_float_fix_<mode>2): Likewise.
21937 (vsx_set_<mode>): Likewise.
21938 (vsx_extract_<mode>_internal1): Likewise.
21939 (vsx_extract_<mode>_internal2): Likewise.
21940 (vsx_extract_<mode>_load): Likewise.
21941 (vsx_extract_<mode>_store): Likewise.
21942 (vsx_splat_<mode>): Likewise.
21943 (vsx_xxspltw_<mode>): Likewise.
21944 (vsx_xxspltw_<mode>_direct): Likewise.
21945 (vsx_xxmrghw_<mode>): Likewise.
21946 (vsx_xxmrglw_<mode>): Likewise.
21947 (vsx_xxsldwi_<mode>): Likewise.
21948 (vsx_xscvdpspn): Tighten constraints to only use register classes
21950 (vsx_xscvspdpn): Likewise.
21951 (vsx_xscvdpspn_scalar): Likewise.
21953 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
21954 wj, and wk constraints.
21955 (GPR_REG_CLASS_P): New helper macro for register classes targeting
21956 general purpose registers.
21958 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
21960 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
21961 DImode instead of wm. Use wk constraint for direct move of DFmode
21963 (extendsidi2_lfiwax): Likewise.
21964 (lfiwax): Likewise.
21965 (lfiwzx): Likewise.
21966 (movdi_internal64): Likewise.
21968 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
21969 wk constraints. Make the wy constraint documentation match them
21972 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
21974 Replacement of isl_int by isl_val
21975 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
21976 (compute_bounds_for_param): use isl_val instead of isl_int
21977 (compute_bounds_for_loop): likewise
21978 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
21979 (build_linearized_memory_access): use isl_val instead of isl_int
21980 (pdr_stride_in_loop): likewise
21981 * graphite-optimize-isl.c:
21982 (getPrevectorMap): use isl_val instead of isl_int
21984 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
21985 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
21986 (extern the_isl_ctx): declare
21987 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
21988 (extract_affine_gmp): likewise
21990 (build_loop_iteration_domains): likewise
21991 (add_param_constraints): likewise
21993 2014-08-11 Richard Biener <rguenther@suse.de>
21995 PR tree-optimization/62075
21996 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
21997 handle uses in patterns.
21999 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
22000 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22001 Anna Tikhonova <anna.tikhonova@intel.com>
22002 Ilya Tocar <ilya.tocar@intel.com>
22003 Andrey Turetskiy <andrey.turetskiy@intel.com>
22004 Ilya Verbin <ilya.verbin@intel.com>
22005 Kirill Yukhin <kirill.yukhin@intel.com>
22006 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22008 * common/config/i386/i386-common.c
22009 (OPTION_MASK_ISA_AVX512VL_SET): Define.
22010 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
22011 (ix86_handle_option): Handle OPT_mavx512vl.
22012 * config/i386/cpuid.h (bit_AVX512VL): Define.
22013 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
22014 set -mavx512vl accordingly.
22015 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22016 OPTION_MASK_ISA_AVX512VL.
22017 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
22018 (ix86_option_override_internal): Define PTA_AVX512VL, handle
22019 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
22020 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
22021 * config/i386/i386.h (TARGET_AVX512VL): Define.
22022 (TARGET_AVX512VL_P(x)): Ditto.
22023 * config/i386/i386.opt: Add mavx512vl.
22025 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
22027 PR tree-optimization/62073
22028 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
22031 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
22032 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22033 Anna Tikhonova <anna.tikhonova@intel.com>
22034 Ilya Tocar <ilya.tocar@intel.com>
22035 Andrey Turetskiy <andrey.turetskiy@intel.com>
22036 Ilya Verbin <ilya.verbin@intel.com>
22037 Kirill Yukhin <kirill.yukhin@intel.com>
22038 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22040 * common/config/i386/i386-common.c
22041 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
22042 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
22043 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
22044 (ix86_handle_option): Handle OPT_mavx512bw.
22045 * config/i386/cpuid.h (bit_AVX512BW): Define.
22046 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
22047 set -mavx512bw accordingly.
22048 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22049 OPTION_MASK_ISA_AVX512BW.
22050 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
22051 (ix86_option_override_internal): Define PTA_AVX512BW, handle
22052 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
22053 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
22054 * config/i386/i386.h (TARGET_AVX512BW): Define.
22055 (TARGET_AVX512BW_P(x)): Ditto.
22056 * config/i386/i386.opt: Add mavx512bw.
22058 2014-08-11 Richard Biener <rguenther@suse.de>
22060 PR tree-optimization/62070
22061 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
22062 Remove SSA checking.
22064 2014-08-11 Yury Gribov <y.gribov@samsung.com>
22066 * asan.c (asan_check_flags): New enum.
22067 (build_check_stmt_with_calls): Removed function.
22068 (build_check_stmt): Split inlining logic to
22069 asan_expand_check_ifn.
22070 (instrument_derefs): Rename parameter.
22071 (instrument_mem_region_access): Rename parameter.
22072 (instrument_strlen_call): Likewise.
22073 (asan_expand_check_ifn): New function.
22074 (asan_instrument): Remove old code.
22075 (pass_sanopt::execute): Change handling of
22076 asan-instrumentation-with-call-threshold.
22077 (asan_clear_shadow): Fix formatting.
22078 (asan_function_start): Likewise.
22079 (asan_emit_stack_protection): Likewise.
22080 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
22081 Update description.
22082 * internal-fn.c (expand_ASAN_CHECK): New function.
22083 * internal-fn.def (ASAN_CHECK): New internal function.
22084 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
22085 Update description.
22086 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
22087 * tree.c: Small comment fix.
22089 2014-08-11 Yury Gribov <y.gribov@samsung.com>
22091 * gimple.c (gimple_call_fnspec): Support internal functions.
22092 (gimple_call_return_flags): Use const.
22093 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
22094 * internal-fn.def: Add fnspec information.
22095 * internal-fn.h (internal_fn_fnspec): New function.
22096 (init_internal_fns): Declare new function.
22097 * internal-fn.c (internal_fn_fnspec_array): New global variable.
22098 (init_internal_fns): New function.
22099 * tree-core.h: Update macro call.
22100 * tree.c (build_common_builtin_nodes): Initialize internal fns.
22102 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
22104 * lto-streamer.h (struct output_block::symbol): Change from
22105 struct symtab_node to plain symtab_node.
22106 (referenced_from_this_partition_p): Change first parameter
22107 from struct symtab_node to plain symtab_node.
22109 2014-08-10 Marek Polacek <polacek@redhat.com>
22112 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
22114 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
22116 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
22117 DECL correctly; do not give up on types in static storage.
22119 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
22121 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
22123 2014-08-09 Roman Gareev <gareevroman@gmail.com>
22125 * graphite-isl-ast-to-gimple.c:
22126 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
22128 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
22130 2014-08-08 Guozhi Wei <carrot@google.com>
22132 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
22134 2014-08-08 Cary Coutant <ccoutant@google.com>
22136 * dwarf2out.c (get_skeleton_type_unit): Remove.
22137 (output_skeleton_debug_sections): Remove skeleton type units.
22138 (output_comdat_type_unit): Likewise.
22139 (dwarf2out_finish): Likewise.
22141 2014-08-07 Yi Yang <ahyangyi@google.com>
22143 * predict.c (expr_expected_value_1): Remove the redundant assignment.
22145 2014-08-08 Richard Biener <rguenther@suse.de>
22147 * lto-streamer.h (struct lto_input_block): Make it a class
22148 with a constructor.
22149 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
22150 (struct lto_function_header, struct lto_simple_header,
22151 struct lto_simple_header_with_strings,
22152 struct lto_decl_header, struct lto_function_header): Make
22153 a simple inheritance hieararchy. Remove unused fields.
22154 (struct lto_asm_header): Remove.
22155 * lto-streamer-out.c (produce_asm): Adjust.
22156 (lto_output_toplevel_asms): Likewise.
22157 (produce_asm_for_decls): Likewise.
22158 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
22159 * data-streamer-in.c (string_for_index): Likewise.
22160 * ipa-inline-analysis.c (inline_read_section): Likewise.
22161 * ipa-prop.c (ipa_prop_read_section): Likewise.
22162 (read_replacements_section): Likewise.
22163 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
22164 * lto-section-in.c (lto_create_simple_input_block): Likewise.
22165 (lto_destroy_simple_input_block): Likewise.
22166 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
22167 (lto_input_toplevel_asms): Likewise.
22169 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
22170 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22171 Anna Tikhonova <anna.tikhonova@intel.com>
22172 Ilya Tocar <ilya.tocar@intel.com>
22173 Andrey Turetskiy <andrey.turetskiy@intel.com>
22174 Ilya Verbin <ilya.verbin@intel.com>
22175 Kirill Yukhin <kirill.yukhin@intel.com>
22176 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22178 * common/config/i386/i386-common.c
22179 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
22180 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
22181 (ix86_handle_option): Handle OPT_mavx512dq.
22182 * config/i386/cpuid.h (bit_AVX512DQ): Define.
22183 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
22184 set -mavx512dq accordingly.
22185 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22186 OPTION_MASK_ISA_AVX512DQ.
22187 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
22188 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
22189 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
22190 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
22191 * config/i386/i386.h (TARGET_AVX512DQ): Define.
22192 (TARGET_AVX512DQ_P(x)): Ditto.
22193 * config/i386/i386.opt: Add mavx512dq.
22195 2014-08-08 Richard Biener <rguenther@suse.de>
22197 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
22198 target_percent, target_percent_s): Export.
22199 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
22200 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
22201 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
22202 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
22203 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
22204 Move to gimple-fold.c.
22205 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
22207 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
22208 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
22209 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
22210 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
22211 (rewrite_call_expr_array): Remove.
22212 (fold_builtin_sprintf_chk): Likewise.
22213 (fold_builtin_snprintf_chk): Likewise.
22214 (fold_builtin_varargs): Remove handling of sprintf_chk,
22215 vsprintf_chk, snprintf_chk and vsnprintf_chk.
22216 (gimple_fold_builtin_sprintf_chk): Remove.
22217 (gimple_fold_builtin_snprintf_chk): Likewise.
22218 (gimple_fold_builtin_varargs): Likewise.
22219 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
22220 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
22221 * gimple.c (gimple_seq_add_seq_without_update): New function.
22222 * gimple.h (gimple_seq_add_seq_without_update): Declare.
22223 * gimple-fold.c: Include output.h.
22224 (gsi_replace_with_seq_vops): New function, split out from ...
22225 (gimplify_and_update_call_from_tree): ... here.
22226 (replace_call_with_value): New function.
22227 (replace_call_with_call_and_fold): Likewise.
22228 (var_decl_component_p): Moved from builtins.c.
22229 (gimple_fold_builtin_memory_op): Moved from builtins.c
22230 fold_builtin_memory_op and rewritten to GIMPLE.
22231 (gimple_fold_builtin_memset): Likewise.
22232 (gimple_fold_builtin_strcpy): Likewise.
22233 (gimple_fold_builtin_strncpy): Likewise.
22234 (gimple_fold_builtin_strcat): Likewise.
22235 (gimple_fold_builtin_fputs): Likewise.
22236 (gimple_fold_builtin_memory_chk): Likewise.
22237 (gimple_fold_builtin_stxcpy_chk): Likewise.
22238 (gimple_fold_builtin_stxncpy_chk): Likewise.
22239 (gimple_fold_builtin_snprintf_chk): Likewise.
22240 (gimple_fold_builtin_sprintf_chk): Likewise.
22241 (gimple_fold_builtin_strlen): New function.
22242 (gimple_fold_builtin_with_strlen): New function split out from
22243 gimple_fold_builtin.
22244 (gimple_fold_builtin): Change signature and handle
22245 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
22246 here. Call gimple_fold_builtin_with_strlen.
22247 (gimple_fold_call): Adjust.
22249 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
22251 * calls.c (precompute_arguments): Check
22252 promoted_for_signed_and_unsigned_p and set the promoted mode.
22253 (promoted_for_signed_and_unsigned_p): New function.
22254 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
22255 and set the promoted mode.
22256 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
22257 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
22258 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
22261 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
22263 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
22264 instead of SUBREG_PROMOTED_UNSIGNED_SET.
22265 (expand_call): Likewise.
22266 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
22267 to get promoted mode.
22268 * combine.c (record_promoted_value): Skip > 0 comparison with
22269 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
22270 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
22271 of SUBREG_PROMOTED_UNSIGNED_P.
22272 (convert_modes): Likewise.
22273 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
22274 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
22275 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
22276 SUBREG_PROMOTED_UNSIGNED_SET.
22277 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
22278 instead of SUBREG_PROMOTED_UNSIGNED_SET.
22279 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
22280 SUBREG_PROMOTED_SET.
22281 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
22282 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
22283 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
22284 of SUBREG_PROMOTED_UNSIGNED_P.
22285 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
22286 (SUBREG_PROMOTED_SET): New define.
22287 (SUBREG_PROMOTED_GET): Likewise.
22288 (SUBREG_PROMOTED_SIGN): Likewise.
22289 (SUBREG_PROMOTED_SIGNED_P): Likewise.
22290 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
22291 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
22292 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
22293 instead of SUBREG_PROMOTED_UNSIGNED_GET.
22294 (nonzero_bits1): Skip > 0 comparison with the results as
22295 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
22296 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
22297 of !SUBREG_PROMOTED_UNSIGNED_P.
22298 * simplify-rtx.c (simplify_unary_operation_1): Use new
22299 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
22300 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
22301 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
22302 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
22304 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
22306 * ipa-devirt.c: Include gimple-pretty-print.h
22307 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
22309 (decl_maybe_in_construction_p): Fix conditional on cdtor check
22310 (get_polymorphic_call_info): Fix return value
22311 (type_change_info): New sturcture based on ipa-prop
22313 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
22314 based on ipa-prop variant.
22315 (extr_type_from_vtbl_ptr_store): New function
22316 based on ipa-prop variant.
22317 (record_known_type): New function.
22318 (check_stmt_for_type_change): New function.
22319 (get_dynamic_type): New function.
22320 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
22321 * tree-ssa-pre.c: ipa-utils.h
22322 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
22323 machinery; sanity check with ipa-prop devirtualization.
22324 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
22327 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
22329 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
22330 * alias.c, cfgexpand.c, cgraphbuild.c,
22331 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
22332 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
22333 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
22334 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
22335 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
22336 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
22337 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
22338 dse.c, except.c, gengtype.c, gimple-expr.c,
22339 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
22340 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
22341 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
22342 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
22343 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
22344 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
22346 * pointer-set.c: Remove file.
22347 * pointer-set.h: Remove file.
22349 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22351 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
22352 * config/arm/types.md (f_sels, f_seld): Delete.
22354 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22356 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
22357 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
22358 (aarch64_movdi_<mode>high): Likewise.
22359 (aarch64_mov<mode>high_di): Likewise.
22360 (aarch64_movdi_<mode>low): Likewise.
22361 (aarch64_mov<mode>low_di): Likewise.
22362 (aarch64_movtilow_tilow): Likewise.
22363 Add comment explaining usage of fp,simd attributes and of
22364 TARGET_FLOAT and TARGET_SIMD.
22366 2014-08-07 Ian Bolton <ian.bolton@arm.com>
22367 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22369 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
22370 Use MOVN when one of the half-words is 0xffff.
22372 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
22374 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
22376 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22378 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
22379 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
22380 (rfs_str): String corresponding to RFS_* constants.
22381 (rank_for_schedule_stats_t): New typedef.
22382 (rank_for_schedule_stats): New static variable.
22383 (rfs_result): New static function.
22384 (rank_for_schedule): Track statistics for deciding heuristics.
22385 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
22387 (ready_sort): Use them for debug printouts.
22388 (schedule_block): Init statistics state. Print statistics on
22389 rank_for_schedule decisions.
22391 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22393 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
22395 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
22397 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
22400 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
22402 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
22403 function to not conflict.
22404 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
22405 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
22406 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
22407 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
22408 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
22411 2014-08-07 Marek Polacek <polacek@redhat.com>
22413 * fold-const.c (fold_binary_loc): Add folding of
22414 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
22416 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
22418 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
22419 instead of type size.
22420 (ASM_FINISH_DECLARE_OBJECT): Likewise.
22422 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
22424 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
22425 (*thumb1_movqi_insn): Likewise.
22426 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
22428 2014-08-07 Tom de Vries <tom@codesourcery.com>
22430 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
22431 (glibc_2_11_or_earlier): Remove effective-target keywords.
22433 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
22435 * config/arm/arm.c (bdesc_2arg): Fix typo.
22436 (arm_atomic_assign_expand_fenv): Remove The default implementation.
22438 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
22440 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
22442 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
22445 * haifa-sched.c (advance_one_cycle): Fix dump.
22446 (schedule_block): Don't advance cycle if we are already at the
22447 beginning of the cycle.
22449 2014-08-06 Martin Jambor <mjambor@suse.cz>
22452 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
22454 2014-08-06 Richard Biener <rguenther@suse.de>
22457 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
22459 (lto_input_tree): Pop SCCs here.
22461 2014-08-06 Richard Biener <rguenther@suse.de>
22463 PR tree-optimization/61320
22464 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
22465 handle misaligned loads.
22467 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
22469 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
22470 (aarch64_expand_vec_perm_const): Check for dup before zip.
22472 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22474 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
22475 CONST_INT_P instead of GET_CODE and compare.
22476 (aarch64_select_cc_mode): Likewise.
22477 (aarch64_print_operand): Likewise.
22478 (aarch64_rtx_costs): Likewise.
22479 (aarch64_simd_valid_immediate): Likewise.
22480 (aarch64_simd_check_vect_par_cnst_half): Likewise.
22481 (aarch64_simd_emit_pair_result_insn): Likewise.
22483 2014-08-05 David Malcolm <dmalcolm@redhat.com>
22485 * gdbhooks.py (find_gcc_source_dir): New helper function.
22486 (class PassNames): New class, locating and parsing passes.def.
22487 (class BreakOnPass): New command "break-on-pass".
22489 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
22491 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
22494 2014-08-05 Richard Biener <rguenther@suse.de>
22496 PR rtl-optimization/61672
22497 * emit-rtl.h (mem_attrs_eq_p): Declare.
22498 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
22499 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
22500 * cfgcleanup.c (merge_memattrs): Likewise.
22501 Include emit-rtl.h.
22503 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22505 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
22506 rather than singleton vectors.
22507 (vqdmlsls_lane_s32): Likewise.
22509 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22511 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
22512 Use VSDQ_HSI mode iterator.
22513 (aarch64_sqrdmulh_laneq<mode>): Likewise.
22514 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
22515 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
22516 Use BUILTIN_VDQHS macro.
22517 (sqrdmulh_laneq): Likewise.
22518 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
22519 (vqdmlals_laneq_s32): Likewise.
22520 (vqdmlslh_laneq_s16): Likewise.
22521 (vqdmlsls_laneq_s32): Likewise.
22522 (vqdmulhh_laneq_s16): Likewise.
22523 (vqdmulhs_laneq_s32): Likewise.
22524 (vqrdmulhh_laneq_s16): Likewise.
22525 (vqrdmulhs_laneq_s32): Likewise.
22527 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22529 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
22530 (vmuld_laneq_f64): Likewise.
22531 (vmuls_laneq_f32): Likewise.
22532 (vmul_n_f64): Likewise.
22533 (vmuld_lane_f64): Reimplement in C.
22534 (vmuls_lane_f32): Likewise.
22536 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22538 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
22540 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
22542 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22544 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
22545 (rbitsi2): Likewise.
22546 (*arm_rev): Set predicable and predicable_short_it attributes.
22548 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22550 * convert.c (convert_to_integer): Guard transformation to lrint by
22553 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
22555 * config/aarch64/aarch64-builtins.c
22556 (aarch64_simd_builtin_type_mode): Delete.
22557 (v8qi_UP): Remap to V8QImode.
22558 (v4hi_UP): Remap to V4HImode.
22559 (v2si_UP): Remap to V2SImode.
22560 (v2sf_UP): Remap to V2SFmode.
22561 (v1df_UP): Remap to V1DFmode.
22562 (di_UP): Remap to DImode.
22563 (df_UP): Remap to DFmode.
22564 (v16qi_UP):V16QImode.
22565 (v8hi_UP): Remap to V8HImode.
22566 (v4si_UP): Remap to V4SImode.
22567 (v4sf_UP): Remap to V4SFmode.
22568 (v2di_UP): Remap to V2DImode.
22569 (v2df_UP): Remap to V2DFmode.
22570 (ti_UP): Remap to TImode.
22571 (ei_UP): Remap to EImode.
22572 (oi_UP): Remap to OImode.
22573 (ci_UP): Map to CImode.
22574 (xi_UP): Remap to XImode.
22575 (si_UP): Remap to SImode.
22576 (sf_UP): Remap to SFmode.
22577 (hi_UP): Remap to HImode.
22578 (qi_UP): Remap to QImode.
22579 (aarch64_simd_builtin_datum): Make mode a machine_mode.
22580 (VAR1): Build builtin name.
22581 (aarch64_init_simd_builtins): Remove dead code.
22583 2014-08-05 Roman Gareev <gareevroman@gmail.com>
22585 * graphite-isl-ast-to-gimple.c:
22586 (set_options): New function.
22587 (scop_to_isl_ast): Add calling of set_options.
22589 2014-08-05 Jakub Jelinek <jakub@redhat.com>
22591 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
22592 (analyze_iv_to_split_insn): Don't initialize them.
22593 (get_ivts_expr): Removed.
22594 (allocate_basic_variable, insert_base_initialization): Use
22595 SET_SRC instead of *get_ivts_expr.
22596 (split_iv): Use &SET_SRC instead of get_ivts_expr.
22598 2014-08-05 Roman Gareev <gareevroman@gmail.com>
22600 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
22601 (translate_isl_ast_for_loop): Add checking of the
22602 flag_loop_parallelize_all.
22603 (ast_build_before_for): New function.
22604 (scop_to_isl_ast): Add checking of the
22605 flag_loop_parallelize_all.
22606 * graphite-dependences.c: Move the defenition of the
22607 scop_get_dependences from graphite-optimize-isl.c to this file.
22608 (apply_schedule_on_deps): Add checking of the ux's emptiness.
22609 (carries_deps): Add checking of the x's value.
22610 * graphite-optimize-isl.c: Move the defenition of the
22611 scop_get_dependences to graphite-dependences.c.
22612 * graphite-poly.h: Add declarations of scop_get_dependences
22615 2014-08-04 Rohit <rohitarulraj@freescale.com>
22618 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
22620 (alt_reg_names): Likewise.
22621 (rs6000_dwarf_register_span): For SPE high registers, replace
22622 dwarf register numbers with GCC hard register numbers.
22623 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
22624 (rs6000_dbx_register_number): For SPE high registers, return dwarf
22625 register number for the corresponding GCC hard register number.
22626 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
22627 newly added GCC hard register numbers for SPE high registers.
22628 (DWARF_FRAME_REGISTERS): Likewise.
22629 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
22630 (DWARF_FRAME_REGNUM): Likewise.
22631 (FIXED_REGISTERS): Likewise.
22632 (CALL_USED_REGISTERS): Likewise.
22633 (CALL_REALLY_USED_REGISTERS): Likewise.
22634 (REG_ALLOC_ORDER): Likewise.
22635 (enum reg_class): Likewise.
22636 (REG_CLASS_NAMES): Likewise.
22637 (REG_CLASS_CONTENTS): Likewise.
22638 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
22640 2014-08-04 Richard Biener <rguenther@suse.de>
22642 * gimple-fold.h (gimple_fold_builtin): Remove.
22643 * gimple-fold.c (gimple_fold_builtin): Make static.
22644 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
22645 fold_stmt, not gimple_fold_builtin.
22647 2014-08-04 Martin Liska <mliska@suse.cz>
22649 * cgraph.h (csi_end_p): Removed.
22650 (csi_next): Likewise.
22651 (csi_node): Likewise.
22652 (csi_start): Likewise.
22653 (cgraph_node_in_set_p): Likewise.
22654 (cgraph_node_set_size): Likewise.
22655 (vsi_end_p): Likewise.
22656 (vsi_next): Likewise.
22657 (vsi_node): Likewise.
22658 (vsi_start): Likewise.
22659 (varpool_node_set_size): Likewise.
22660 (cgraph_node_set_nonempty_p): Likewise.
22661 (varpool_node_set_nonempty_p): Likewise.
22662 * cgraphunit.c (cgraph_process_new_functions): vec replaces
22664 * ipa-inline-transform.c: Likewise.
22665 * ipa-utils.c (cgraph_node_set_new): Removed.
22666 (cgraph_node_set_add): Likewise.
22667 (cgraph_node_set_remove): Likewise.
22668 (cgraph_node_set_find): Likewise.
22669 (dump_cgraph_node_set): Likewise.
22670 (debug_cgraph_node_set): Likewise.
22671 (free_cgraph_node_set): Likewise.
22672 (varpool_node_set_new): Likewise.
22673 (varpool_node_set_add): Likewise.
22674 (varpool_node_set_remove): Likewise.
22675 (varpool_node_set_find): Likewise.
22676 (dump_varpool_node_set): Likewise.
22677 (free_varpool_node_set): Likewise.
22678 (debug_varpool_node_set): Likewise.
22679 * tree-emutls.c (struct tls_var_data):
22680 (emutls_index): Removed.
22681 (emutls_decl): Likewise.
22682 (gen_emutls_addr): Function implementation uses newly added
22683 hash_map<varpool_node *, tls_var_data>.
22684 (clear_access_vars): Likewise.
22685 (create_emultls_var): Likewise.
22686 (ipa_lower_emutls): Likewise.
22687 (reset_access): New function.
22689 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22691 * config/i386/i386.c (ix86_option_override_internal): Add
22692 PTA_RDRND and PTA_MOVBE for bdver4.
22694 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22695 James Greenhalgh <james.greenhalgh@arm.com>
22697 * doc/md.texi (clrsb): Document.
22698 (clz): Change reference to x into operand 1.
22700 (popcount): Likewise.
22702 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22705 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
22706 move to subtarget in serial version if result is ignored.
22708 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22709 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22711 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
22712 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
22713 (sched_analyze_insn): Update use of try_group_insn to
22714 sched_macro_fuse_insns.
22715 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
22716 arguments that are not conditional jumps.
22718 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22720 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
22721 family information. Handle BTVER2 cpu with cpuid family value.
22723 2014-08-04 Tom de Vries <tom@codesourcery.com>
22725 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
22726 (glibc_2_11_or_earlier): Document effective-target keywords.
22728 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
22730 * ipa-devirt.c (odr_type_warn_count): Add type.
22731 (possible_polymorphic_call_targets): Set it.
22732 (ipa_devirt): Use it.
22734 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
22736 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
22738 * ipa-devirt.c: Include hash-map.h
22739 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
22740 (clear_speculation): Break out of ...
22741 (get_class_context): ... here; speed up handling obviously useless
22743 (odr_type_warn_count, decl_warn_count): New structures.
22744 (final_warning_record): New structure.
22745 (final_warning_records): New static variable.
22746 (possible_polymorphic_call_targets): Cleanup handling of
22747 speculative info; do not build speculation when user do not care;
22748 record info about warnings when asked for.
22749 (add_decl_warning): New function.
22750 (type_warning_cmp): New function.
22751 (decl_warning_cmp): New function.
22752 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
22753 (gate): Enable pass when warnings are requested.
22754 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
22757 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
22759 * hash-map.h (default_hashmap_traits::mark_key_deleted):
22761 (hash_map::remove): New method.
22762 (hash_map::traverse): New method.
22763 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
22764 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
22765 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
22766 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
22767 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
22768 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
22771 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
22773 * hash-set.h: new File.
22774 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
22775 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
22776 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
22777 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
22778 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
22779 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
22780 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
22781 varpool.c: Use hash_set instead of pointer_set.
22783 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
22785 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
22787 2014-08-01 Jiong Wang <jiong.wang@arm.com>
22789 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
22790 for frame access when strict_p is false.
22792 2014-08-01 Renlin Li <renlin.li@arm.com>
22793 2014-08-01 Jiong Wang <jiong.wang@arm.com>
22795 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
22796 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
22797 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
22799 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
22801 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
22802 aarch64_mem_pair_offset.
22804 2014-08-01 Jiong Wang <jiong.wang@arm.com>
22806 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
22808 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
22809 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
22811 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
22813 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
22815 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
22817 PR regression/61510
22818 * cgraphunit.c (analyze_functions): Use get_create rather than get
22819 for decls which are clones of abstract functions.
22821 2014-08-01 Martin Liska <mliska@suse.cz>
22823 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
22824 * ipa-prop.h (count_formal_params): Global function created from static.
22825 * ipa-prop.c (count_formal_params): Likewise.
22826 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
22827 profiles for semantically equivalent functions.
22828 * passes.c (do_per_function): If we load body of a function
22829 during WPA, this condition should behave same.
22830 * varpool.c (ctor_for_folding): More tolerant assert for variable
22831 aliases created during WPA.
22833 2014-08-01 Martin Liska <mliska@suse.cz>
22835 * doc/invoke.texi (Options That Control Optimization): Documentation
22836 for -foptimize-strlen introduced. Optimization levels default options
22839 2014-08-01 Jakub Jelinek <jakub@redhat.com>
22841 * opts.c (common_handle_option): Handle -fsanitize=alignment.
22842 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
22843 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
22845 * stor-layout.h (min_align_of_type): New prototype.
22846 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
22847 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
22849 * ubsan.c: Include builtins.h.
22850 (ubsan_expand_bounds_ifn): Change return type to bool,
22851 always return true.
22852 (ubsan_expand_null_ifn): Change return type to bool, change
22853 argument to gimple_stmt_iterator *. Handle both null and alignment
22854 sanitization, take type from ckind argument's type rather than
22856 (instrument_member_call): Removed.
22857 (instrument_mem_ref): Remove t argument, add mem and base arguments.
22858 Handle both null and alignment sanitization, don't say whole
22859 struct access is member access. Build 3 argument IFN_UBSAN_NULL
22860 call instead of 2 argument.
22861 (instrument_null): Adjust instrument_mem_ref caller. Don't
22862 instrument calls here.
22863 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
22864 like SANITIZE_NULL.
22865 * stor-layout.c (min_align_of_type): New function.
22866 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
22867 Or it into SANITIZE_UNDEFINED.
22868 * doc/invoke.texi (-fsanitize=alignment): Document.
22870 2014-07-31 Andi Kleen <ak@linux.intel.com>
22872 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
22874 2014-07-31 Andi Kleen <ak@linux.intel.com>
22876 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
22878 (vn_reference_compute_hash): Dito.
22879 (vn_nary_op_compute_hash): Dito.
22880 (vn_phi_compute_hash): Dito.
22881 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
22883 2014-07-31 Andi Kleen <ak@linux.intel.com>
22885 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
22886 Rename to inchash:add_expr_commutative. Convert to inchash.
22887 (iterative_hash_hashable_expr): Rename to
22888 inchash:add_hashable_expr. Convert to inchash.
22889 (avail_expr_hash): Dito.
22891 2014-07-31 Andi Kleen <ak@linux.intel.com>
22893 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
22894 Convert to inchash.
22896 2014-07-31 Andi Kleen <ak@linux.intel.com>
22898 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
22900 2014-07-31 Andi Kleen <ak@linux.intel.com>
22902 * Makefile.in (OBJS): Add rtlhash.o
22903 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
22904 (loc_checksum): Dito.
22905 (loc_checksum_ordered): Dito.
22906 (hash_loc_operands): Dito.
22908 (hash_loc_list): Dito.
22909 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
22910 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
22911 * rtlhash.c: New file.
22912 * rtlhash.h: New file.
22914 2014-07-31 Andi Kleen <ak@linux.intel.com>
22916 * inchash.h (inchash): Change inchash class to namespace.
22917 (class hash): ... Rename from inchash.
22918 (add_object): Move from macro to class template.
22919 * lto-streamer-out.c (hash_tree): Change inchash
22921 * tree.c (build_type_attribute_qual_variant): Dito.
22922 (type_hash_list): Dito.
22923 (attribute_hash_list): Dito.
22924 (iterative_hstate_expr): Rename to inchash::add_expr
22925 (build_range_type_1): Change inchash to inchash::hash
22926 and use hash::add_expr.
22927 (build_array_type_1): Dito.
22928 (build_function_type): Dito
22929 (build_method_type_directly): Dito.
22930 (build_offset_type): Dito.
22931 (build_complex_type): Dito.
22932 (make_vector_type): Dito.
22933 * tree.h (iterative_hash_expr): Dito.
22935 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
22937 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
22939 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
22941 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
22942 correct alphabetical position.
22943 (vpaddd_f64): Rewrite using builtins.
22944 (vpaddd_s64): Move to correct alphabetical position.
22947 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
22950 * config/sh/sh.c (sh_legitimate_address_p,
22951 sh_legitimize_reload_address): Handle reg+reg address modes when
22952 ALLOW_INDEXED_ADDRESS is false.
22953 * config/sh/predicates.md (general_movsrc_operand,
22954 general_movdst_operand): Likewise.
22956 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
22958 * config/aarch64/aarch64-builtins.c
22959 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
22962 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
22964 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
22965 the generated mask based on BYTES_BIG_ENDIAN.
22966 (aarch64_simd_check_vect_par_cnst_half): New.
22967 * config/aarch64/aarch64-protos.h
22968 (aarch64_simd_check_vect_par_cnst_half): New.
22969 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
22970 the check out to aarch64_simd_check_vect_par_cnst_half.
22971 (vect_par_cnst_lo_half): Likewise.
22972 * config/aarch64/aarch64-simd.md
22973 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
22974 (move_hi_quad_<mode>): Always generate a low mask.
22976 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22978 * doc/invoke.texi (AVR Options): Add documentation about
22979 __AVR_DEVICE_NAME__ built-in macro.
22981 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
22984 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
22985 constraints are satisfied.
22986 (<shift>di3_neon): Likewise.
22988 2014-07-31 Richard Biener <rguenther@suse.de>
22990 PR tree-optimization/61964
22991 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
22992 by structural equality.
22994 2014-07-31 Yury Gribov <y.gribov@samsung.com>
22996 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
22997 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
22998 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
23000 * gcc.c (sanitize_spec_function): Support new option.
23001 (SANITIZER_SPEC): Remove now redundant check.
23002 * opts.c (common_handle_option): Support new option.
23003 (finish_options): Check for incompatibilities.
23004 * toplev.c (process_options): Split userspace-specific checks.
23006 2014-07-31 Richard Biener <rguenther@suse.de>
23008 * lto-streamer.h (struct output_block): Remove global.
23009 (struct data_in): Remove labels, num_named_labels and
23010 num_unnamed_labels.
23011 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
23012 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
23014 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
23017 * common.opt (-Wreturn-local-addr): Moved from c.opt.
23018 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
23019 (isolate_path): New argument to avoid inserting a trap.
23020 (find_implicit_erroneous_behaviour): Handle returning the address
23021 of a local variable.
23022 (find_explicit_erroneous_behaviour): Likewise.
23024 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
23027 * toplev.c (init_random_seed): Move piece of code never called to
23029 (set_random_seed): see above.
23031 2014-07-31 Tom de Vries <tom@codesourcery.com>
23033 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
23035 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
23037 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
23038 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
23040 2014-07-31 Richard Biener <rguenther@suse.de>
23042 * data-streamer.h (streamer_write_data_stream): Declare here,
23044 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
23045 * lto-cgraph.c (lto_output_node): Adjust.
23046 (lto_output_varpool_node): Likewise.
23047 * data-streamer-out.c (streamer_string_index): Likewise.
23048 (streamer_write_data_stream, lto_append_block): Move from ...
23049 * lto-section-out.c (lto_output_data_stream,
23050 lto_append_block): ... here.
23052 2014-07-30 Mike Stump <mikestump@comcast.net>
23054 * configure.ac: Also check for popen.
23055 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
23056 * configure: Regenerate.
23057 * config.in: Regenerate.
23059 2014-07-30 Martin Jambor <mjambor@suse.cz>
23061 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
23062 parameter to gimple.
23064 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23066 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
23067 address as second parameter to __tpf_eh_return routine.
23069 2014-07-30 Jiong Wang <jiong.wang@arm.com>
23071 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
23074 2014-07-30 Tom Tromey <tromey@redhat.com>
23077 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
23078 * doc/extend.texi (Type Attributes): Document designated_init
23081 2014-07-30 Roman Gareev <gareevroman@gmail.com>
23083 * graphite-isl-ast-to-gimple.c:
23084 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
23085 (gcc_expression_from_isl_expression): Pass type to
23086 gcc_expression_from_isl_ast_expr_id.
23088 2014-07-30 Richard Biener <rguenther@suse.de>
23090 * lto-streamer.h (lto_write_data): New function.
23091 * langhooks.c (lhd_append_data): Do not free block.
23092 * lto-section-out.c (lto_write_data): New function writing
23093 raw data to the current section.
23094 (lto_write_stream): Adjust for langhook semantic change.
23095 (lto_destroy_simple_output_block): Write header directly.
23096 * lto-opts.c (lto_write_options): Write options directly.
23097 * lto-streamer-out.c (produce_asm): Write heaeder directly.
23098 (lto_output_toplevel_asms): Likewise.
23099 (copy_function_or_variable): Copy data directly.
23100 (write_global_references): Output index table directly.
23101 (lto_output_decl_state_refs): Likewise.
23102 (write_symbol): Write data directly.
23103 (produce_symtab): Adjust.
23104 (produce_asm_for_decls): Output header and refs directly.
23106 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
23108 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
23109 to speculative_targets
23110 (get_class_context): Fix handling of contextes without outer type;
23111 avoid matching non-polymorphic types in LTO.
23112 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
23113 parameter to speculative_targetsp; handle speculation.
23114 (dump_possible_polymorphic_call_targets): Update dumping.
23116 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
23118 * common.opt (Wodr): Enable by default.
23120 2014-07-29 Olivier Hainque <hainque@adacore.com>
23122 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
23124 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
23127 * gengtype.c (strtoken): New function.
23128 (create_user_defined_type): Replace strtok with strtoken.
23130 2014-07-29 Nathan Sidwell <nathan@acm.org>
23132 * gcov-io.c (gcov_var): Make hidden.
23133 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
23134 (gcov_do_dump): Declare.
23135 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
23137 2014-07-29 Martin Jambor <mjambor@suse.cz>
23139 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
23140 parameter to gimple.
23141 (sra_modify_assign): Likewise.
23143 2014-07-29 Richard Biener <rguenther@suse.de>
23145 PR middle-end/52478
23146 * expr.c (expand_expr_real_2): Revert last change.
23148 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
23150 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
23151 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
23152 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
23154 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
23155 (contains_type_p): Forward declare.
23156 (polymorphic_call_target_hasher::hash): Hash speculative info.
23157 (polymorphic_call_target_hasher::equal): Compare speculative info.
23158 (get_class_context): Handle speuclation.
23159 (contains_type_p): Update.
23160 (get_polymorphic_call_info_for_decl): Update.
23161 (walk_ssa_copies): Break out from ...
23162 (get_polymorphic_call_info): ... here; set speculative context
23164 * ipa-prop.c (ipa_write_indirect_edge_info,
23165 ipa_read_indirect_edge_info): Stream speculative context.
23166 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
23167 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
23168 SPECULATIVE_MAYBE_DERIVED_TYPE).
23169 (possible_polymorphic_call_targets overriders): Update.
23170 (dump_possible_polymorphic_call_targets overriders): Update.
23171 (dump_possible_polymorphic_call_target_p overriders): Update.
23173 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
23175 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
23176 ipa-devirt path; fix thinko there.
23178 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
23180 * config/i386/i386.c (ix86_return_in_memory): Replace one
23181 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
23183 2014-07-28 Marek Polacek <polacek@redhat.com>
23185 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
23187 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
23189 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
23190 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
23191 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
23192 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
23193 (USE_LD_AS_NEEDED): Likewise.
23194 (ASM_APP_ON): Likewise.
23195 (ASM_APP_OFF): Likewise.
23196 (TARGET_POSIX_IO): Likewise.
23197 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
23198 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
23199 (USE_LD_AS_NEEDED): Likewise.
23200 (ASM_APP_ON): Likewise.
23201 (ASM_APP_OFF): Likewise.
23202 (TARGET_POSIX_IO): Likewise.
23204 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
23206 PR middle-end/61734
23207 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
23208 operators other than the equality operators.
23210 2014-07-28 Richard Biener <rguenther@suse.de>
23212 PR middle-end/52478
23213 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
23214 sure to register SImode ones, not only >= word_mode ones.
23215 * expr.c (expand_expr_real_2): When expanding -ftrapv
23216 binops do not use OPTAB_LIB_WIDEN.
23218 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
23220 PR middle-end/61919
23221 * tree-outof-ssa.c (insert_partition_copy_on_edge)
23222 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
23223 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
23224 inserting them in the insn stream.
23226 2014-07-28 Marek Polacek <polacek@redhat.com>
23228 PR middle-end/61913
23229 * common.opt (Wodr): Add Var.
23231 2014-07-28 Richard Biener <rguenther@suse.de>
23233 PR tree-optimization/61921
23234 * tree-ssa-structalias.c (create_variable_info_for_1): Check
23235 if there is a varpool node before dereferencing it.
23237 2014-07-28 Roman Gareev <gareevroman@gmail.com>
23239 * graphite-sese-to-poly.c:
23240 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
23241 id of the pbb), which contains pointer to the pbb1.
23243 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
23245 2014-07-28 Roman Gareev <gareevroman@gmail.com>
23247 * graphite-isl-ast-to-gimple.c:
23248 (graphite_create_new_guard): New function.
23249 (translate_isl_ast_node_if): New function.
23250 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
23252 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
23254 2014-07-27 Anthony Green <green@moxielogic.com>
23256 * config.gcc: Add moxie-*-moxiebox* configuration.
23257 * config/moxie/moxiebox.h: New file.
23259 2014-07-26 Andrew Pinski <apinski@cavium.com>
23261 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
23262 from the read only register.
23264 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
23266 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
23267 as the allocation class if it isn't likely to be spilled.
23269 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
23271 * rtl.h (tls_referenced_p): Declare.
23272 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
23273 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
23274 (mips_cannot_force_const_mem): Use tls_referenced_p.
23275 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
23276 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
23277 instead of pa_tls_referenced_p.
23278 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
23279 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
23280 (pa_legitimate_constant_p): Likewise.
23281 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
23282 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
23283 (rs6000_cannot_force_const_mem, rs6000_emit_move)
23284 (rs6000_address_for_altivec): Use tls_referenced_p instead of
23285 rs6000_tls_referenced_p.
23286 (rs6000_tls_symbol_ref_1): Delete.
23288 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
23291 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
23292 Optimize inverse of a VEC_CONCAT.
23294 2014-07-25 Xinliang David Li <davidxl@google.com>
23296 * params.def: New parameter.
23297 * coverage.c (get_coverage_counts): Check new flag.
23298 (coverage_compute_profile_id): Check new flag.
23299 (coverage_begin_function): Check new flag.
23300 (coverage_end_function): Check new flag.
23301 * value-prof.c (coverage_node_map_initialized_p): New function.
23302 (init_node_map): Populate map with all functions.
23303 * doc/invoke.texi: Document new parameter.
23305 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
23306 Richard Biener <rguenther@suse.de>
23308 * lto-streamer-out.c (struct sccs): Turn to ...
23309 (class DFS): ... this one; refactor the DFS walk so it can
23310 be re-done on per-SCC basis.
23311 (DFS::DFS): New constructor.
23312 (DFS::~DFS): New destructor.
23313 (hash_tree): Add new MAP argument holding in-SCC hash values;
23314 remove POINTER_TYPE hashing hack.
23315 (scc_entry_compare): Rename to ...
23316 (DFS::scc_entry_compare): ... this one.
23317 (hash_scc): Rename to ...
23318 (DFS::hash_scc): ... this one; pass output_block instead
23319 of streamer_cache; work harder to get unique and stable SCC
23321 (DFS_write_tree): Rename to ...
23322 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
23323 (lto_output_tree): Update.
23325 2014-07-25 Andi Kleen <ak@linux.intel.com>
23327 * lto-streamer-out.c (hash_tree): Convert to inchash.
23329 2014-07-25 Andi Kleen <ak@linux.intel.com>
23331 * tree.c (build_type_attribute_qual_variant): Use inchash.
23332 (type_hash_list): Dito.
23333 (attribute_hash_list): Dito
23334 (iterative_hstate_expr): Dito.
23335 (iterative_hash_expr): Dito.
23336 (build_range_type_1): Dito.
23337 (build_array_type_1): Dito.
23338 (build_function_type): Dito.
23339 (build_method_type_directly): Dito.
23340 (build_offset_type): Dito.
23341 (build_complex_type): Dito.
23342 (make_vector_type): Dito.
23343 * tree.h (iterative_hash_expr): Add compat wrapper.
23344 (iterative_hstate_expr): Add.
23346 2014-07-25 Andi Kleen <ak@linux.intel.com>
23348 * Makefile.in (OBJS): Add inchash.o.
23349 (PLUGIN_HEADERS): Add inchash.h.
23350 * ipa-devirt.c: Include inchash.h.
23351 * lto-streamer-out.c: Dito.
23352 * tree-ssa-dom.c: Dito.
23353 * tree-ssa-pre.c: Dito.
23354 * tree-ssa-sccvn.c: Dito.
23355 * tree-ssa-tail-merge.c: Dito.
23357 * tree.c (iterative_hash_hashval_t): Move to ...
23358 (iterative_hash_host_wide_int): Move to ...
23359 * inchash.c: Here. New file.
23360 * tree.h (iterative_hash_hashval_t): Move to ...
23361 (iterative_hash_host_wide_int): Move to ...
23362 * inchash.h: Here. New file.
23364 2014-07-25 Richard Biener <rguenther@suse.de>
23366 PR middle-end/61762
23367 PR middle-end/61894
23368 * fold-const.c (native_encode_int): Add and handle offset
23369 parameter to do partial encodings of expr.
23370 (native_encode_fixed): Likewise.
23371 (native_encode_real): Likewise.
23372 (native_encode_complex): Likewise.
23373 (native_encode_vector): Likewise.
23374 (native_encode_string): Likewise.
23375 (native_encode_expr): Likewise.
23376 * fold-const.c (native_encode_expr): Add offset parameter
23378 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
23379 (fold_ctor_reference): Handle all reads from tcc_constant
23382 2014-07-25 Richard Biener <rguenther@suse.de>
23384 * tree-inline.c (estimate_move_cost): Mark speed_p argument
23385 as possibly unused.
23387 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23389 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
23391 2014-07-24 Kyle McMartin <kyle@redhat.com>
23393 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
23395 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23397 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
23399 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
23401 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
23402 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
23403 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
23405 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23407 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
23408 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
23409 aggregate types. Instead, *all* aggregate types, except for single-
23410 element or homogeneous float/vector aggregates, are quadword-aligned
23411 if required by their type alignment. Issue -Wpsabi note when a type
23412 is now treated differently than before.
23414 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23416 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
23417 does not fit fully into floating-point registers, and there is still
23418 space in the register parameter area, use GPRs to pass those parts
23419 of the argument. Issue -Wpsabi note if any parameter is now treated
23420 differently than before.
23421 (rs6000_arg_partial_bytes): Update.
23423 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
23425 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
23427 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
23429 * rtl.h (target_rtl): Remove lang_dependent_initialized.
23430 * toplev.c (initialize_rtl): Don't use it. Move previously
23431 "language-dependent" calls to...
23432 (backend_init): ...here.
23433 (lang_dependent_init_target): Don't set lang_dependent_initialized.
23434 Assert that RTL initialization hasn't happend yet.
23436 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
23438 PR rtl-optimization/61629
23439 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
23440 they have already been initialized.
23442 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
23444 PR middle-end/61268
23445 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
23446 DECL_INCOMING_RTL and entry_parm.
23447 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
23448 * calls.c (load_register_parameters): Likewise argument values.
23449 (emit_library_call_value_1, store_one_arg): Likewise argument
23451 * config/i386/i386.c (assign_386_stack_local): Likewise the local
23453 * explow.c (validize_mem): Modify the argument in-place.
23455 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23457 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
23458 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
23460 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23462 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
23463 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
23465 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23467 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
23468 (aarch64_save_callee_saves): New parameter "skip_wb".
23469 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
23471 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23473 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
23475 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
23477 2014-07-24 Roman Gareev <gareevroman@gmail.com>
23479 * graphite-isl-ast-to-gimple.c:
23480 (graphite_create_new_loop): Add calling of isl_id_free to properly
23481 decrement reference counts.
23483 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
23485 2014-07-24 Martin Liska <mliska@suse.cz>
23486 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
23488 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
23489 (rs6000_code_end): Likewise.
23491 2014-07-24 Martin Liska <mliska@suse.cz>
23493 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
23494 symtab_node funtion used.
23495 (rs6000_xcoff_declare_object_name): Likewise.
23497 2014-07-24 Martin Liska <mliska@suse.cz>
23499 * cgraphunit.c (compile): Correct function used.
23501 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
23503 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
23506 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
23509 * varasm.c (bss_initializer_p): Handle offlined ctors.
23510 (align_variable, get_variable_align): Likewise.
23511 (make_decl_one_only): Likewise.
23512 (default_binds_local_p_1): Likewise.
23513 (decl_binds_to_current_def_p): Likewise.
23514 (get_variable_section): Get constructor if it is offlined.
23515 (assemble_variable_contents): Sanity check that the caller
23516 streamed in the ctor in LTO.
23518 2014-07-24 Roman Gareev <gareevroman@gmail.com>
23520 * graphite-isl-ast-to-gimple.c:
23521 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
23522 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
23523 isl_ast_op_pdiv_r to the different case.
23525 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
23527 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23529 PR middle-end/61876
23530 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
23531 when flag_errno_math is on.
23533 2014-07-24 Martin Liska <mliska@suse.cz>
23535 * cgraph.h (varpool_node):
23536 (availability get_availability (void)):
23537 created from cgraph_variable_initializer_availability
23538 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
23539 created from: cgraph_variable_initializer_availability
23540 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
23541 (void finalize_named_section_flags (void)):
23542 created from varpool_finalize_named_section_flags
23543 (bool assemble_decl (void)): created from varpool_assemble_decl
23544 (void analyze (void)): created from varpool_analyze_node
23545 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
23546 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
23547 (void remove_initializer (void)): created from varpool_remove_initializer
23548 (tree get_constructor (void)): created from varpool_get_constructor
23549 (bool externally_visible_p (void)): created from varpool_externally_visible_p
23550 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
23551 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
23552 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
23553 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
23554 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
23555 (static bool output_variables (void)): created from varpool_output_variables
23556 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
23557 created from varpool_extra_name_alias
23558 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
23559 (static void dump_varpool (FILE *f)): created from dump_varpool
23560 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
23561 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
23562 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
23563 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
23564 (void assemble_aliases (void)): created from assemble_aliases
23566 2014-07-24 Martin Liska <mliska@suse.cz>
23568 * cgraph.h (symtab_node):
23569 (void register_symbol (void)): created from symtab_register_node
23570 (void remove (void)): created from symtab_remove_node
23571 (void dump (FILE *f)): created from dump_symtab_node
23572 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
23573 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
23574 (struct ipa_ref *add_reference (symtab_node *referred_node,
23575 enum ipa_ref_use use_type)): created from add_reference
23576 (struct ipa_ref *add_reference (symtab_node *referred_node,
23577 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
23578 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
23579 gimple stmt)): created from maybe_add_reference
23580 (bool semantically_equivalent_p (symtab_node *target)): created from
23581 symtab_semantically_equivalent_p
23582 (void remove_from_same_comdat_group (void)): created from
23583 remove_from_same_comdat_group
23584 (void add_to_same_comdat_group (symtab_node *old_node)): created from
23585 symtab_add_to_same_comdat_group
23586 (void dissolve_same_comdat_group_list (void)): created from
23587 symtab_dissolve_same_comdat_group_list
23588 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
23589 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
23590 created from symtab_alias_ultimate_target
23591 (inline symtab_node *next_defined_symbol (void)): created from
23592 symtab_next_defined_symbol
23593 (bool resolve_alias (symtab_node *target)): created from
23594 symtab_resolve_alias
23595 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
23596 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
23597 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
23598 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
23599 (void set_section (const char *section)): created from set_section_1
23600 (enum availability get_availability (void)): created from symtab_node_availability
23601 (void make_decl_local (void)): created from symtab_make_decl_local
23602 (bool real_symbol_p (void)): created from symtab_read_node
23603 (can_be_discarded_p (void)): created from symtab_can_be_discarded
23604 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
23605 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
23606 symtab_in_same_comdat_p;
23607 (bool address_taken_from_non_vtable_p (void)): created from
23608 address_taken_from_non_vtable_p
23609 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
23610 (static void dump_table (FILE *)): created from dump_symtab
23611 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
23612 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
23613 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
23614 symtab_used_from_object_file_p
23615 (void dump_base (FILE *)): created from dump_symtab_base
23616 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
23617 (void unregister (void)): created from symtab_unregister_node
23618 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
23619 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
23620 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
23621 symtab_nonoverwritable_alias_1
23622 * cgraph.h (cgraph_node):
23623 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
23624 created from cgraph_remove_node_and_inline_clones
23625 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
23626 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
23627 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
23628 (cgraph_node *function_symbol (enum availability *avail = NULL)):
23629 created from cgraph_function_node
23630 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
23631 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
23632 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
23633 created from cgraph_create_clone
23634 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
23635 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
23636 created from cgraph_create_virtual_clone
23637 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
23638 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
23639 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
23640 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
23641 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
23642 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
23643 created from cgraph_function_version_info
23644 (struct cgraph_function_version_info *insert_new_function_version (void)):
23645 created from insert_new_cgraph_node_version
23646 (struct cgraph_function_version_info *function_version (void)): created from
23647 get_cgraph_node_version
23648 (void analyze (void)): created from analyze_function
23649 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
23650 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
23651 tree real_alias) cgraph_add_thunk
23652 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
23653 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
23654 created from cgraph_function_or_thunk_node
23655 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
23656 created from expand_thunk
23657 (void reset (void)): created from cgraph_reset_node
23658 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
23659 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
23660 (void remove (void)): created from cgraph_remove_node
23661 (void dump (FILE *f)): created from dump_cgraph_node
23662 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
23663 (bool get_body (void)): created from cgraph_get_body
23664 (void release_body (void)): created from cgraph_release_function_body
23665 (void unnest (void)): created from cgraph_unnest_node
23666 (void make_local (void)): created from cgraph_make_node_local
23667 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
23668 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
23669 gcov_type count, int freq)): created from cgraph_create_edge
23670 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
23671 gcov_type count, int freq)): created from cgraph_create_indirect_edge
23672 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
23673 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
23674 created from cgraph_create_edge_including_clones
23675 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
23676 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
23677 (void remove_callers (void)): created from cgraph_node_remove_callers
23678 (void remove_callees (void)): created from cgraph_node_remove_callees
23679 (enum availability get_availability (void)): created from cgraph_function_body_availability
23680 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
23681 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
23682 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
23683 (void call_duplication_hooks (cgraph_node *node2)): created from
23684 cgraph_call_node_duplication_hooks
23685 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
23686 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
23687 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
23688 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
23689 (void call_function_insertion_hooks (void)):
23690 created from cgraph_call_function_insertion_hooks
23691 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
23692 (bool local_p (void)): created from cgraph_local_node
23693 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
23694 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
23695 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
23696 (inline bool only_called_directly_or_aliased_p (void)):
23697 created from cgraph_only_called_directly_or_aliased_p
23698 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
23699 created from cgraph_will_be_removed_from_program_if_no_direct_calls
23700 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
23701 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
23702 (bool can_remove_if_no_direct_calls_p (void)):
23703 created from cgraph_can_remove_if_no_direct_calls_p
23704 (inline bool has_gimple_body_p (void)):
23705 created from cgraph_function_with_gimple_body_p
23706 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
23707 (static void dump_cgraph (FILE *f)): created from dump_cgraph
23708 (static inline void debug_cgraph (void)): created from debug_cgraph
23709 (static void record_function_versions (tree decl1, tree decl2)):
23710 created from record_function_versions
23711 (static void delete_function_version (tree decl)):
23712 created from delete_function_version
23713 (static void add_new_function (tree fndecl, bool lowered)):
23714 created from cgraph_add_new_function
23715 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
23716 (static cgraph_node * create (tree decl)): created from cgraph_create_node
23717 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
23718 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
23719 (static cgraph_node *get_for_asmname (tree asmname)):
23720 created from cgraph_node_for_asm
23721 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
23722 created from cgraph_same_body_alias
23723 (static bool used_from_object_file_p_worker (cgraph_node *node,
23724 void *): new function
23725 (static bool non_local_p (cgraph_node *node, void *)):
23726 created from cgraph_non_local_node_p_1
23727 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
23728 created from verify_cgraph
23729 (static bool make_local (cgraph_node *node, void *)):
23730 created from cgraph_make_node_local
23731 (static cgraph_node *create_alias (tree alias, tree target)):
23732 created from cgraph_create_function_alias
23733 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
23734 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
23735 created from cgraph_create_edge_1
23736 * cgraph.h (varpool_node):
23737 (void remove (void)): created from varpool_remove_node
23738 (void dump (FILE *f)): created from dump_varpool_node
23740 2014-07-24 Richard Biener <rguenther@suse.de>
23743 * tree-ssa-structalias.c (create_variable_info_for_1):
23744 Use varpool_get_constructor.
23745 (create_variable_info_for): Likewise.
23747 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23749 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
23750 subtract outgoing area size when restoring stack_pointer_rtx.
23752 2014-07-24 Nick Clifton <nickc@redhat.com>
23754 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
23755 that operations are taking place in parallel.
23756 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
23758 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
23760 * omp-low.c (extract_omp_for_data): Add missing break statement.
23762 2014-07-24 Richard Biener <rguenther@suse.de>
23764 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
23765 * tree-inline.c (estimate_move_cost): Add speed_p parameter
23766 and adjust MOVE_RATIO query accordingly.
23767 (estimate_num_insns): Adjust callers.
23768 * ipa-prop.c (ipa_populate_param_decls): Likewise.
23769 * ipa-cp.c (gather_context_independent_values,
23770 estimate_local_effects): Likewise.
23771 * ipa-split.c (consider_split): Likewise.
23773 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
23775 * config/i386/driver-i386.c: Remove names of unused arguments and
23776 unnecessary unused attributes.
23777 * config/i386/host-mingw32.c: Likewise.
23778 * config/i386/i386.c: Likewise.
23779 * config/i386/winnt-stubs.c: Likewise.
23780 * config/i386/winnt.c: Likewise.
23782 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23784 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
23785 (aarch64_gen_loadwb_pair): New helper function.
23786 (aarch64_expand_epilogue): Simplify code using new helper functions.
23787 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
23789 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23791 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
23792 (aarch64_gen_storewb_pair): New helper function.
23793 (aarch64_expand_prologue): Simplify code using new helper functions.
23794 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
23796 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23798 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
23799 Rename to aarch64_save_callee_saves, remove restore code.
23800 (aarch64_restore_callee_saves): New function.
23802 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23804 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
23805 (aarch64_save_callee_saves): New function to handle reg save
23806 for both core and vectore regs.
23808 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23810 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
23811 (aarch64_gen_store_pair): New helper function.
23812 (aarch64_save_or_restore_callee_save_registers)
23813 (aarch64_save_or_restore_fprs): Use new helper functions.
23815 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23817 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
23818 (aarch64_save_or_restore_callee_save_registers)
23819 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
23821 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23823 * config/aarch64/aarch64.c
23824 (aarch64_save_or_restore_callee_save_registers)
23825 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
23827 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23829 * config/aarch64/aarch64.c
23830 (aarch64_save_or_restore_callee_save_registers)
23831 (aarch64_save_or_restore_fprs): Remove 'increment'.
23833 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23835 * config/aarch64/aarch64.c
23836 (aarch64_save_or_restore_callee_save_registers)
23837 (aarch64_save_or_restore_fprs): Use register offset in
23838 cfun->machine->frame.reg_offset.
23840 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23842 * config/aarch64/aarch64.c
23843 (aarch64_save_or_restore_callee_save_registers)
23844 (aarch64_save_or_restore_fprs): Remove base_rtx.
23846 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23848 * config/aarch64/aarch64.c
23849 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
23850 to 'start_offset'. Remove local variable 'start_offset'.
23852 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23854 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
23855 type to HOST_WIDE_INT.
23857 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23859 * config/aarch64/aarch64.c (aarch64_expand_prologue)
23860 (aarch64_save_or_restore_fprs)
23861 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
23863 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
23865 * config/arm/t-rtems-eabi: Add
23866 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
23867 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
23868 mbig-endian/mthumb/march=armv7-r, and
23869 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
23872 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
23873 Chris Johns <chrisj@rtems.org>
23874 Joel Sherrill <joel.sherrill@oarcorp.com>
23876 * config.gcc: Add nios2-*-rtems*.
23877 * config/nios2/rtems.h: New file.
23878 * gcc/config/nios2/t-rtems: New file.
23880 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
23883 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
23884 constant numbers, not general constants.
23885 (rs6000_expand_vector_init): Ditto.
23887 2014-07-23 Nathan Sidwell <nathan@acm.org>
23889 * gcov-tool.c (gcov_list): Declare here.
23890 (set_gcov_list): Remove.
23891 (gcov_output_files): Set gcov_list directly.
23893 2014-07-23 Host Schirmeier <horst@schirmeier.com>
23895 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
23897 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23899 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
23900 callee-saved registers are available for padding purpose
23901 and r3 is not mandatory, then prefer use those callee-saved
23904 2014-07-23 Richard Biener <rguenther@suse.de>
23906 * params.def (PARAM_MAX_COMBINE_INSNS): New.
23907 * combine.c: Include statistics.h and params.h.
23908 (combine_instructions): Guard three and four insn combines
23909 with max-combine-insns value. Record statistics for combines
23911 * doc/invoke.texi (max-combine-insns): Document new param.
23913 2014-07-23 Roman Gareev <gareevroman@gmail.com>
23915 * graphite-isl-ast-to-gimple.c:
23916 (translate_isl_ast_node_block): New function.
23917 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
23919 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
23920 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
23922 2014-07-23 Roman Gareev <gareevroman@gmail.com>
23924 * graphite-isl-ast-to-gimple.c:
23925 (get_max_schedule_dimensions): New function.
23926 (extend_schedule): Likewise.
23927 (generate_isl_schedule): Add calling of extend_schedule and
23928 get_max_schedule_dimensions.
23930 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23932 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
23933 (case UNSPEC): Handle UNSPEC_RBIT.
23935 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23937 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
23938 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
23940 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23942 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
23944 2014-07-22 Roman Gareev <gareevroman@gmail.com>
23946 * graphite-isl-ast-to-gimple.c:
23947 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
23948 (ivs_params_clear):
23949 (build_iv_mapping): New function.
23950 (translate_isl_ast_node_user): Likewise.
23951 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
23953 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
23954 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
23955 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
23957 2014-07-21 Bin Cheng <bin.cheng@arm.com>
23960 * config/arm/arm.md (setmem): New pattern.
23961 * config/arm/arm-protos.h (struct tune_params): New fields.
23962 (arm_gen_setmem): New prototype.
23963 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
23964 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
23965 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
23966 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
23967 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
23968 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
23969 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
23970 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
23971 (arm_const_inline_cost): New function.
23972 (arm_block_set_max_insns): New function.
23973 (arm_block_set_non_vect_profit_p): New function.
23974 (arm_block_set_vect_profit_p): New function.
23975 (arm_block_set_unaligned_vect): New function.
23976 (arm_block_set_aligned_vect): New function.
23977 (arm_block_set_unaligned_non_vect): New function.
23978 (arm_block_set_aligned_non_vect): New function.
23979 (arm_block_set_vect, arm_gen_setmem): New functions.
23981 2014-07-21 Bin Cheng <bin.cheng@arm.com>
23983 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
23985 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
23988 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
23989 out of #ifdef __OPTIMIZE__.
23991 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
23993 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
23994 different trapping status if -fnon-call-exceptions is enabled.
23996 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
23998 * expr.c (store_field): Handle VOIDmode for calls that return values
23999 in multiple locations.
24001 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24003 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
24004 (altivec_vsldoi_<mode>): Likewise.
24006 2014-07-20 Roman Gareev <gareevroman@gmail.com>
24008 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
24009 to the number of characters in the line.
24011 2014-07-20 Roman Gareev <gareevroman@gmail.com>
24013 * graphite-isl-ast-to-gimple.c: Add using of
24014 build_nonstandard_integer_type instead of int128_integer_type_node.
24016 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
24018 * toplev.c (output_stack_usage): Adjust the location of the warning.
24020 2014-07-19 Daniel Cederman <cederman@gaisler.com>
24022 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
24023 (*membar_storeload): Disable for LEON3.
24025 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
24027 PR rtl-optimization/61461
24028 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
24030 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
24033 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
24034 Fix instruction constraint.
24035 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
24037 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
24039 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
24041 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
24043 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
24044 GNU coding standards.
24045 (nds32_register_move_cost): Likewise.
24046 (nds32_memory_move_cost): Likewise.
24047 (nds32_address_cost): Likewise.
24049 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24051 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
24053 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
24055 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
24056 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
24057 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
24058 (HAVE_sync_compare_and_swapqi): Define.
24059 (HAVE_sync_compare_and_swaphi): Likewise.
24060 (HAVE_sync_compare_and_swapsi): Likewise.
24062 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
24064 * config/mips/p5600.md: Add missing cpu tests.
24066 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24068 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
24069 (vmla_f64): Likewise.
24070 (vfms_f64): Likewise.
24071 (vmls_f64): Likewise.
24073 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24075 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
24076 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
24078 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24080 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
24081 (vmlal_high_lane_s32): Likewise.
24082 (vmlal_high_lane_u16): Likewise.
24083 (vmlal_high_lane_u32): Likewise.
24084 (vmlsl_high_lane_s16): Likewise.
24085 (vmlsl_high_lane_s32): Likewise.
24086 (vmlsl_high_lane_u16): Likewise.
24087 (vmlsl_high_lane_u32): Likewise.
24089 2014-07-17 Terry Guo <terry.guo@arm.com>
24091 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
24092 (alus_reg): Renamed to alus_sreg.
24093 * config/arm/arm-fixed.md: Change type of non-dsp instructions
24094 from alu_reg to alu_sreg. Change type of dsp instructions from
24095 alu_reg to alu_dsp_reg.
24096 * config/arm/thumb1.md: Likewise.
24097 * config/arm/thumb2.md: Likewise.
24098 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
24099 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
24100 with alu_sreg and alus_sreg.
24101 * config/arm/arm1026ejs.md (alu_op): Likewise.
24102 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
24103 * config/arm/arm926ejs.md (9_alu_op): Likewise.
24104 * config/arm/fa526.md (526_alu_op): Likewise.
24105 * config/arm/fa606te.md (606te_alu_op): Likewise.
24106 * config/arm/fa626te.md (626te_alu_op): Likewise.
24107 * config/arm/fa726te.md (726te_alu_op): Likewise.
24108 * config/arm/fmp626.md (mp626_alu_op): Likewise.
24109 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
24110 alu_sreg, alu_dsp_reg and alus_sreg.
24111 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
24112 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
24113 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
24114 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
24115 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
24116 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
24117 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
24118 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
24119 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
24120 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
24121 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
24122 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
24123 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
24124 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
24125 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
24126 alus_reg to alus_sreg.
24128 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
24130 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
24133 2014-07-17 Richard Biener <rguenther@suse.de>
24135 PR rtl-optimization/61801
24136 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
24137 don't set reg_pending_barrier if it appears in a debug-insn.
24139 2014-07-16 DJ Delorie <dj@redhat.com>
24141 * config/rx/rx.c (rx_option_override): Fix alignment values.
24142 (rx_align_for_label): Likewise.
24144 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
24147 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
24148 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
24149 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
24151 (cris_print_index, cris_print_operand, cris_constant_index_p)
24152 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
24153 (cris_address_cost): Ditto last CONSTANT_P.
24154 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
24155 callers changed. Yield cris_offsettable_symbol for non-PIC
24156 constant symbolic expressions including labels. Yield cris_unspec
24158 (cris_expand_pic_call_address): New parameter MARKERP. Set its
24159 target to pic_offset_table_rtx for calls that will likely go
24160 through PLT, const0_rtx when they can't. All callers changed.
24161 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
24162 symbolic expressions to be PICified. Remove second, redundant,
24163 assert on can_create_pseudo_p returning non-zero. Use
24164 replace_equiv_address_nv, not replace_equiv_address, for final
24166 * config/cris/cris.md ("movsi"): Move variable t to pattern
24167 toplevel. Adjust assert for new cris_symbol_type member. Use
24168 CONSTANT_P instead of CONSTANT_ADDRESS_P.
24169 ("*movsi_internal") <case 9>: Make check for valid unspec operands
24171 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
24172 ("call", "call_value"): Use second incoming operand as a marker
24173 for pic-offset-table-register being used.
24174 ("*expanded_call_non_v32", "*expanded_call_v32")
24175 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
24176 second incoming operand to CALL, match cris_call_type_marker.
24177 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
24178 ("*expanded_call_side"): Ditto. Fix typo in comment.
24179 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
24181 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
24182 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
24183 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
24184 users changed. Add members cris_offsettable_symbol and cris_unspec.
24185 (cris_symbol_type): Rename from cris_pic_symbol_type.
24186 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
24188 * config/cris/cris-protos.h (cris_symbol_type_of,
24189 cris_expand_pic_call_address): Adjust prototypes.
24190 (cris_legitimate_constant_p): New prototype.
24192 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
24193 an existing tmake_file. Don't add t-slibgcc and t-linux.
24195 2014-07-17 Jason Merrill <jason@redhat.com>
24198 * symtab.c (symtab_remove_from_same_comdat_group): Also
24199 set_comdat_group to NULL_TREE.
24200 (verify_symtab): Fix diagnostic.
24202 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
24205 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
24207 2014-07-16 Dodji Seketeli <dodji@redhat.com>
24209 Support location tracking for built-in macro tokens
24210 * input.h (is_location_from_builtin_token): New function declaration.
24211 * input.c (is_location_from_builtin_token): New function definition.
24212 * toplev.c (general_init): Tell libcpp what the pre-defined
24213 spelling location for built-in tokens is.
24215 2014-07-16 Jakub Jelinek <jakub@redhat.com>
24217 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
24218 on the FUNCTION_DECL.
24220 2014-07-16 Richard Biener <rguenther@suse.de>
24223 * doc/extend.texi (always_inline): Clarify.
24225 2014-07-15 Eric Christopher <echristo@gmail.com>
24227 * doc/invoke.texi (Link Options): Document -z option.
24229 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
24231 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
24232 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
24234 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
24236 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
24238 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
24240 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
24241 varpool_assemble_decl.
24242 * varpool.c (varpool_assemble_decl): Assert that node->definition is
24245 2014-07-15 Michael Matz <matz@suse.de>
24247 PR rtl-optimization/61772
24248 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
24250 2014-07-15 Richard Biener <rguenther@suse.de>
24252 * opts.c (default_options_table): Disable bit-ccp at -Og.
24254 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
24256 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
24258 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
24260 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
24261 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
24262 call langhook for unknown declaration.
24263 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
24264 * tree.h (DECL_ARGUMENTS): Update.
24265 * print-tree.c (print_node): Update.
24266 * tree-core.h (tree_decl_non_common): Remove arguments.
24267 (tree_function_decl): Add arguments.
24269 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
24271 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
24273 2014-07-14 Richard Biener <rguenther@suse.de>
24275 PR tree-optimization/61779
24276 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
24277 simplifying a condition.
24279 2014-07-14 Richard Biener <rguenther@suse.de>
24281 * builtins.c (c_strlen): Make only_value == 2 really only
24282 affect warning generation.
24284 2014-07-14 Richard Biener <rguenther@suse.de>
24286 PR tree-optimization/61757
24287 PR tree-optimization/61783
24288 PR tree-optimization/61787
24289 * tree-ssa-dom.c (record_equality): Revert canonicalization
24290 change and add comment.
24291 (propagate_rhs_into_lhs): Revert previous fix, removing
24292 loop depth restriction again.
24294 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24296 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
24297 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
24298 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
24299 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
24300 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
24301 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
24302 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
24304 2014-07-14 Richard Biener <rguenther@suse.de>
24306 * cgraph.h (decl_in_symtab_p): Make inline.
24308 2014-07-14 Jakub Jelinek <jakub@redhat.com>
24310 PR middle-end/61294
24311 * doc/invoke.texi (-Wmemset-transposed-args): Document.
24314 * config/i386/i386.c (classify_argument): Don't merge classes above
24317 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
24319 * cgraph.h (symtab_node): Add nonzero_address.
24320 (decl_in_symtab_p): Break out from ...
24321 (symtab_get_node): ... here.
24322 * fold-const.c: Include cgraph.h
24323 (tree_single_nonzero_warnv_p): Use symtab to determine
24324 if symbol is non-zero.
24325 * symtab.c (symtab_node::nonzero_address): New method.
24327 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
24329 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
24330 forgotten in previous commit.
24332 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
24334 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
24336 * ipa-devirt.c: Include stor-layout.h and intl.h
24337 (odr_subtypes_equivalent_p): New function.
24338 (warn_odr): New function.
24339 (warn_type_mismatch): New function.
24340 (odr_types_equivalent_p): New function.
24341 (add_type_duplicate): Use it.
24342 * common.opt (Wodr): New flag.
24343 * doc/invoke.texi (Wodr): Document new warning.
24345 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
24347 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
24348 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
24349 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
24350 (varpool_get_constructor): Push CTORS_IN timevar.
24351 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
24353 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
24355 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
24356 Remove VOID_FTYPE_PUSHORT.
24357 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
24358 Change code to USHORT_FTYPE_VOID.
24359 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
24360 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
24361 (ix86_atomic_assign_expand_fenv): Update for
24362 __builtin_ia32_fnstsw changes.
24363 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
24364 (fnstsw): Change operand 0 to nonimmediate operand.
24366 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
24368 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
24369 (varpool_get_constructor): New function.
24370 (varpool_ctor_useable_for_folding_p): Break out from ...
24371 (ctor_for_folding): ... here; use varpool_get_constructor.
24372 (varpool_assemble_decl): Likewise.
24373 * lto-streamer.h (struct output_block): Turn cgraph_node
24375 (lto_input_variable_constructor): Declare.
24376 * ipa-visibility.c (function_and_variable_visibility): Use
24377 varpool_get_constructor.
24378 * cgraph.h (varpool_get_constructor): Declare.
24379 (varpool_ctor_useable_for_folding_p): New function.
24380 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
24381 parameter; return error_mark_node for non-trivial constructors.
24382 (lto_write_tree_1, DFS_write_tree): Update use of
24383 get_symbol_initial_value.
24384 (output_function): Update initialization of symbol.
24385 (output_constructor): New function.
24386 (copy_function): Rename to ..
24387 (copy_function_or_variable): ... this one; handle vars too.
24388 (lto_output): Output variable sections.
24389 * lto-streamer-in.c (input_constructor): New function.
24390 (lto_read_body): Rename from ...
24391 (lto_read_body_or_constructor): ... this one; handle vars too.
24392 (lto_input_variable_constructor): New function.
24393 * ipa-prop.c (ipa_prop_write_jump_functions,
24394 ipa_prop_write_all_agg_replacement): Update.
24395 * lto-cgraph.c (compute_ltrans_boundary): Use it.
24396 (output_cgraph_opt_summary): Set symbol to NULL.
24398 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
24400 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
24401 non-polymorphic types.
24402 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
24403 * ipa-devirt.c (types_same_for_odr): Do not explode when one
24404 of types is not polymorphic.
24406 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
24408 * lra-constraints.c (remove_inheritance_pseudos): Process
24409 destination pseudo too.
24411 2014-07-11 Rong Xu <xur@google.com>
24413 * gcov-tool.c (gcov_output_files): Fix build error introduced in
24416 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24418 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
24419 * config/avr/avr-devices.c (AVR_MCU): Same.
24420 (avr_mcu_types): add text start value to end of device list.
24421 * config/avr/avr-mcus.def: Add text section start for all devices.
24422 (ata5782): Add new avr5 device.
24424 * config/avr/avr-tables.opt: Regenerate.
24425 * config/avr/avr.h: Add declaration for text section start handler.
24426 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
24428 (LINK_SPEC): Include text section start handler to linker spec.
24429 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
24430 pass -Ttext option to linker if the text section start for the device
24432 * config/avr/t-multilib: Regenerate.
24433 * doc/avr-mmcu.texi: Regenerate.
24435 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
24437 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
24438 * config/rs6000/aix52.h (LINK_SPEC): Same.
24439 * config/rs6000/aix53.h (LINK_SPEC): Same.
24440 * config/rs6000/aix61.h (LINK_SPEC): Same.
24441 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
24443 2014-07-11 Roman Gareev <gareevroman@gmail.com>
24445 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
24446 (graphite_verify): New function.
24447 (ivs_params_clear): New function.
24448 (gcc_expression_from_isl_ast_expr_id): New function.
24449 (gcc_expression_from_isl_expr_int): New function.
24450 (binary_op_to_tree): New function.
24451 (ternary_op_to_tree): New function.
24452 (unary_op_to_tree): New function.
24453 (nary_op_to_tree): New function.
24454 (gcc_expression_from_isl_expr_op): New function.
24455 (gcc_expression_from_isl_expression): New function.
24456 (graphite_create_new_loop): New function.
24457 (translate_isl_ast_for_loop): New function.
24458 (get_upper_bound): New function.
24459 (graphite_create_new_loop_guard): New function.
24460 (translate_isl_ast_node_for): New function.
24461 (translate_isl_ast): New function.
24462 (add_parameters_to_ivs_params): New function.
24463 (scop_to_isl_ast): New parameter ip.
24464 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
24466 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
24468 * config/xtensa/predicates.md (call expander): Update for
24469 DECL_SECTION_NAME being string.
24471 2014-07-11 Richard Biener <rguenther@suse.de>
24473 PR middle-end/61473
24474 * builtins.c (fold_builtin_memory_op): Inline memory moves that
24475 can be implemented with a single load followed by a single store.
24476 (c_strlen): Only warn when only_value is not 2.
24478 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
24480 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
24482 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
24485 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
24486 (*movhi_bytes): Likewise.
24487 (*arm_movqi_insn): Likewise.
24489 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
24492 * config/alpha/alpha.c: Include tree-pass.h, context.h
24493 and pass_manager.h.
24494 (pass_data_handle_trap_shadows): New pass.
24495 (pass_handle_trap_shadows::gate): New pass gate function.
24496 (make_pass_handle_trap_shadows): New function.
24497 (rest_of_handle_trap_shadows): Ditto.
24499 (alpha_align_insns_1): Rename from alpha_align_insns.
24500 (pass_data_align_insns): New pass.
24501 (pass_align_insns::gate): New pass gate function.
24502 (make_pass_aling_insns): New function.
24503 (rest_of_align_insns): Ditto.
24504 (alpha_align_insns): Ditto.
24506 (alpha_option_override): Declare handle_trap_shadows info
24507 and align_insns_info. Register handle_trap_shadows and align_insns
24509 (alpha_reorg): Do not call alpha_trap_shadows and
24510 alpha_align_insn from here.
24512 (alpha_pad_function_end): Do not skip BARRIERs.
24514 2014-07-10 Rong Xu <xur@google.com>
24516 Add gcov-tool: an offline gcda profile processing tool support.
24517 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
24518 (gcov_is_error): Ditto.
24519 (gcov_read_string): Ditto.
24520 (gcov_read_sync): Ditto.
24521 * gcov-io.h: Move counter defines to gcov-counter.def.
24522 * gcov-dump.c (tag_counters): Use gcov-counter.def.
24523 * coverage.c: Ditto.
24524 * gcov-tool.c: Offline gcda profile processing tool.
24525 (unlink_gcda_file): Remove one gcda file.
24526 (unlink_profile_dir): Remove gcda files from the profile path.
24527 (gcov_output_files): Output gcda files to an output dir.
24528 (profile_merge): Merge two profiles in directory.
24529 (print_merge_usage_message): Print merge usage.
24530 (merge_usage): Print merge usage and exit.
24531 (do_merge): Driver for profile merge sub-command.
24532 (profile_rewrite): Rewrite profile.
24533 (print_rewrite_usage_message): Print rewrite usage.
24534 (rewrite_usage): Print rewrite usage and exit.
24535 (do_rewrite): Driver for profile rewrite sub-command.
24536 (print_usage): Print gcov-info usage and exit.
24537 (print_version): Print gcov-info version.
24538 (process_args): Process arguments.
24539 (main): Main routine for gcov-tool.
24540 * Makefile.in: Build and install gcov-tool.
24541 * gcov-counter.def: New file split from gcov-io.h.
24542 * doc/gcc.texi: Include gcov-tool.texi.
24543 * doc/gcov-tool.texi: Document for gcov-tool.
24545 2014-07-10 Richard Biener <rguenther@suse.de>
24547 PR tree-optimization/61757
24548 * tree-ssa-dom.c (loop_depth_of_name): Restore.
24549 (propagate_rhs_into_lhs): Revert part of last change.
24551 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
24553 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
24556 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
24558 PR middle-end/53590
24559 * function.c (allocate_struct_function): Revert r188667 change.
24561 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
24563 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
24565 * doc/install.texi: Remove links to defunct package providers for
24568 2014-07-09 Tom de Vries <tom@codesourcery.com>
24570 * final.c (get_call_fndecl): Declare.
24571 (self_recursive_call_p): New function.
24572 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
24574 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24576 * ipa-devirt.c (record_node): Walk through aliases.
24578 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24580 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
24582 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24585 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
24587 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24589 * ipa-visibility.c (function_and_variable_visibility): Remove
24590 temporary hack disabling local aliases on AIX.
24592 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24594 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
24595 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
24597 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24599 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
24600 * rs6000/rs6000.c: Inline output of .set instruction.
24601 (declare_alias_data): New struct.
24602 (rs6000_declare_alias): New function.
24603 (rs6000_xcoff_declare_function_name): Use it.
24604 (rs6000_xcoff_declare_object_name): New function.
24605 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
24606 (ASM_OUTPUT_DEF): Turn to empty definition.
24608 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
24611 * hash-table.h: use hash_table::value_type instead of
24612 Descriptor::value_type in the return types of several methods.
24614 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
24616 * tree-pass.h (pass_data): Remove has_execute member.
24617 * passes.c (execute_one_pass): Don't check pass->has_execute.
24618 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24619 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24620 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24621 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24622 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24623 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24624 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24625 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24626 gimple-low.c, gimple-ssa-isolate-paths.c,
24627 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24628 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
24629 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
24630 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
24631 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
24632 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24633 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
24634 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
24635 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
24636 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
24637 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
24638 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24639 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24640 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24641 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24642 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24643 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24644 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24645 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24646 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24647 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24648 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24649 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
24650 web.c: Remove initializer for pass_data::has_execute.
24652 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
24654 * graphite-htab.h: Use hash_map instead of hash_table.
24655 * graphite-clast-to-gimple.c: Adjust.
24656 * passes.c: Use hash_map instead of hash_table.
24657 * sese.c: Likewise.
24658 * sese.h: Remove now unused code.
24660 2014-07-08 Sriraman Tallam <tmsriram@google.com>
24663 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
24666 2014-07-08 Jakub Jelinek <jakub@redhat.com>
24668 PR rtl-optimization/61673
24669 * combine.c (simplify_comparison): Test just mode's sign bit
24670 in tmode rather than the sign bit and any bits above it.
24672 2014-07-08 Roman Gareev <gareevroman@gmail.com>
24674 * graphite-isl-ast-to-gimple.c (generate_isl_context):
24675 Add __isl_give to the declaration.
24676 (generate_isl_schedule): Likewise.
24677 (scop_to_isl_ast): Likewise.
24679 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24681 * config/arm/arm.c (cortexa5_extra_costs): New table.
24682 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
24684 2014-07-08 Jakub Jelinek <jakub@redhat.com>
24686 PR tree-optimization/61725
24687 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
24688 range, use range_includes_zerop_p instead of integer_zerop on
24689 vr0->min, only use log2 of max if min is not negative.
24691 2014-07-08 Richard Biener <rguenther@suse.de>
24693 * tree-ssa-dom.h (loop_depth_of_name): Remove.
24694 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
24695 restriction on loop depth difference.
24696 (record_equality): Likewise.
24697 (propagate_rhs_into_lhs): Likewise. Simplify condition.
24698 (loop_depth_of_name): Remove.
24699 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
24700 restriction on loop depth difference.
24701 (init_copy_prop): Likewise.
24703 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24705 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
24707 (walk_aliased_vdefs): Likewise.
24708 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
24709 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
24710 (detect_type_change_from_memory_writes): Check if entry was reached.
24712 2014-07-08 Richard Biener <rguenther@suse.de>
24714 PR tree-optimization/61681
24715 * tree-ssa-structalias.c (find_what_var_points_to): Expand
24716 NONLOCAL inside ESCAPED.
24718 2014-07-08 Richard Biener <rguenther@suse.de>
24720 PR tree-optimization/61680
24721 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24722 Handle properly all read-write dependences with group accesses.
24724 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
24726 PR tree-optimization/61576
24727 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
24728 block containing reduction statement is predecessor of phi basi block.
24730 2014-07-08 Marek Polacek <polacek@redhat.com>
24733 * fold-const.c (round_up_loc): Change the parameter type.
24735 * fold-const.h (round_up_loc): Adjust declaration.
24736 * stor-layout.c (finalize_record_size): Check for too large types.
24738 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
24740 * symtab.c: Include calls.h.
24741 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
24743 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
24745 * config/rs6000/rs6000.c (output_vec_const_move): Handle
24746 little-endian code generation.
24747 * config/rs6000/spe.md (spe_evmergehi): Rename to...
24748 (vec_perm00_v2si): ... this. Handle little-endian code generation.
24749 (spe_evmergehilo): Rename to...
24750 (vec_perm01_v2si): ... this. Handle little-endian code generation.
24751 (spe_evmergelo): Rename to...
24752 (vec_perm11_v2si): ... this. Handle little-endian code generation.
24753 (spe_evmergelohi): Rename to...
24754 (vec_perm10_v2si): ... this. Handle little-endian code generation.
24755 (spe_evmergehi, spe_evmergehilo): New expanders.
24756 (spe_evmergelo, spe_evmergelohi): Likewise.
24757 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
24758 (*frob_tf_ti): Likewise.
24759 (*frob_<mode>_di_2): Likewise.
24760 (*frob_tf_di_8_2): Likewise.
24761 (*frob_di_<mode>): Likewise.
24762 (*frob_ti_tf): Likewise.
24763 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
24764 (*frob_ti_<mode>_8_2): Likewise.
24765 (*frob_ti_tf_2): Likewise.
24766 (mov_si<mode>_e500_subreg0): Rename to...
24767 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
24769 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
24770 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
24771 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
24772 the big endianness only.
24773 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
24774 (*mov_si<mode>_e500_subreg0_2): Rename to...
24775 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
24776 big big endianness only.
24777 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
24778 (*mov_si<mode>_e500_subreg4): Rename to...
24779 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
24781 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
24782 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
24783 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
24784 the big endianness only.
24785 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
24787 (*mov_si<mode>_e500_subreg4_2): Rename to...
24788 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
24790 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
24791 (*mov_sitf_e500_subreg8): Rename to...
24792 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
24794 (*mov_sitf_e500_subreg8_le): New instruction pattern.
24795 (*mov_sitf_e500_subreg8_2): Rename to...
24796 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
24798 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
24799 (*mov_sitf_e500_subreg12): Rename to...
24800 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
24802 (*mov_sitf_e500_subreg12_le): New instruction pattern.
24803 (*mov_sitf_e500_subreg12_2): Rename to...
24804 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
24806 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
24808 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
24810 * asan.c (instrument_strlen_call): Do not instrument first byte
24811 in strlen if already instrumented.
24813 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24815 * config/arm/arm.opt (mwords-little-endian): Delete.
24816 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
24817 of TARGET_LITTLE_WORDS.
24818 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
24819 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
24821 * doc/invoke.texi: Remove references to -mwords-little-endian.
24823 2014-07-07 Jakub Jelinek <jakub@redhat.com>
24825 * expmed.c (struct init_expmed_rtl): Change all fields but
24826 pow2 and cint from struct rtx_def to rtx.
24827 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
24828 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
24831 2014-07-06 Marek Polacek <polacek@redhat.com>
24834 * doc/invoke.texi: Document -Wsizeof-array-argument.
24836 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
24838 * wide-int.h (wide_int_storage): Change declaration from struct
24841 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
24843 * cgraph.c (cgraph_create_indirect_edge): Update call of
24844 get_polymorphic_call_info.
24845 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
24846 (possible_polymorphic_call_targets): Add parameter call.
24847 (decl_maybe_in_construction_p): New predicate.
24848 (get_polymorphic_call_info): Add parameter call;
24849 use decl_maybe_in_construction_p.
24850 * gimple-fold.c (fold_gimple_assign): Update use of
24851 possible_polymorphic_call_targets.
24852 (gimple_fold_call): Likewise.
24853 * ipa-prop.c: Inlcude calls.h
24854 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
24855 (param_type_may_change_p): New predicate.
24856 (detect_type_change_from_memory_writes): Break out from ...
24857 (detect_type_change): ... this one; use param_type_may_change_p.
24858 (detect_type_change_ssa): Use param_type_may_change_p.
24859 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
24861 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
24864 * config/arm/arm-protos.h (arm_legitimate_address_p,
24865 arm_is_constant_pool_ref): Add prototypes.
24866 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
24867 (arm_is_constant_pool_ref) New function.
24868 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
24869 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
24870 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
24871 operand. Remove pool_range and neg_pool_range attributes.
24872 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
24873 pool_range and neg_pool_range attributes.
24874 * config/arm/constraints.md (Uh): New constraint.
24875 (Uq): Don't allow constant pool references.
24877 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
24879 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
24880 (move_lo_quad_internal_be_<mode>): Likewise.
24881 (move_lo_quad_<mode>): Convert to define_expand.
24882 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
24883 (aarch64_simd_move_hi_quad_be_<mode>): New.
24884 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
24885 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
24886 (aarch64_combinez_be<mode>): New.
24887 (aarch64_combine<mode>): Convert to define_expand.
24888 (aarch64_combine_internal<mode>): New.
24889 (aarch64_simd_combine<mode>): Remove bogus RTL description.
24891 2014-07-04 Tom de Vries <tom@codesourcery.com>
24893 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
24894 combination of earlyclobber and read/write modifiers.
24896 2014-07-04 Tom de Vries <tom@codesourcery.com>
24898 * config/aarch64/aarch64-simd.md
24899 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
24901 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
24904 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
24906 2014-07-04 Jakub Jelinek <jakub@redhat.com>
24908 PR middle-end/61654
24909 * cgraphunit.c (expand_thunk): Call free_dominance_info.
24911 PR tree-optimization/61684
24912 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
24913 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
24915 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24916 Kito Cheng <kito@0xlab.org>
24917 Monk Chiang <sh.chiang04@gmail.com>
24919 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
24920 (nds32_symbol_load_store_p): Move to ...
24921 (nds32_fp_as_gp_check_available): Move to ...
24922 * config/nds32/nds32-fp-as-gp.c: ... here.
24923 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
24924 extern declaration.
24926 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24927 Kito Cheng <kito@0xlab.org>
24928 Monk Chiang <sh.chiang04@gmail.com>
24930 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
24931 (nds32_expand_store_multiple): Move to ...
24932 (nds32_expand_movmemqi): Move to ...
24933 * config/nds32/nds32-memory-manipulation.c: ... here.
24935 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24936 Kito Cheng <kito@0xlab.org>
24937 Monk Chiang <sh.chiang04@gmail.com>
24939 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
24940 (nds32_output_casesi_pc_relative): Move to ...
24941 (nds32_output_casesi): Move to ...
24942 (nds32_mem_format): Move to ...
24943 (nds32_output_16bit_store): Move to ...
24944 (nds32_output_16bit_load): Move to ...
24945 (nds32_output_32bit_store): Move to ...
24946 (nds32_output_32bit_load): Move to ...
24947 (nds32_output_32bit_load_s): Move to ...
24948 (nds32_output_stack_push): Move to ...
24949 (nds32_output_stack_pop): Move to ...
24950 * config/nds32/nds32-md-auxiliary.c: ... here.
24952 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24953 Ling-Hua Tseng <uranus@tinlans.org>
24955 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
24956 the purpose of this file.
24958 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24959 Kito Cheng <kito@0xlab.org>
24960 Monk Chiang <sh.chiang04@gmail.com>
24962 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
24963 (nds32_address_cost): Move implementation to ...
24964 * config/nds32/nds32-cost.c: ... here.
24965 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
24966 (nds32_address_cost_impl): Declare.
24968 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24969 Kito Cheng <kito@0xlab.org>
24970 Monk Chiang <sh.chiang04@gmail.com>
24972 * config/nds32/nds32.c
24973 (nds32_consecutive_registers_load_store_p): Move to ...
24974 (nds32_valid_multiple_load_store): Move to ...
24975 (nds32_valid_stack_push_pop): Move to ...
24976 (nds32_can_use_bclr_p): Move to ...
24977 (nds32_can_use_bset_p): Move to ...
24978 (nds32_can_use_btgl_p): Move to ...
24979 (nds32_can_use_bitci_p): Move to ...
24980 * config/nds32/nds32-predicates.c: ... here.
24982 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24983 Kito Cheng <kito@0xlab.org>
24984 Monk Chiang <sh.chiang04@gmail.com>
24986 * config/nds32/nds32.c
24987 (nds32_expand_builtin_null_ftype_reg): Move to ...
24988 (nds32_expand_builtin_reg_ftype_imm): Move to ...
24989 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
24990 (nds32_init_builtins): Move implementation to ...
24991 (nds32_expand_builtin): Move implementation to ...
24992 * config/nds32/nds32-intrinsic.c: ... here.
24993 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
24994 (nds32_expand_builtin_impl): Declare.
24996 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24997 Kito Cheng <kito@0xlab.org>
24998 Monk Chiang <sh.chiang04@gmail.com>
25000 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
25001 (nds32_emit_section_tail_template): Move to ...
25002 (nds32_emit_isr_jmptbl_section): Move to ...
25003 (nds32_emit_isr_vector_section): Move to ...
25004 (nds32_emit_isr_reset_conten): Move to ...
25005 (nds32_check_isr_attrs_conflict): Move to ...
25006 (nds32_construct_isr_vectors_information): Move to ...
25007 (nds32_asm_file_start): Move implementation to ...
25008 (nds32_asm_file_end): Move implementation to ...
25009 * config/nds32/nds32-isr.c: ... here.
25010 * config/nds32/nds32-protos.h
25011 (nds32_check_isr_attrs_conflict): Declare.
25012 (nds32_construct_isr_vectors_information): Declare.
25013 (nds32_asm_file_start_for_isr): Declare.
25014 (nds32_asm_file_end_for_isr): Declare.
25016 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
25017 Kito Cheng <kito@0xlab.org>
25018 Monk Chiang <sh.chiang04@gmail.com>
25020 * config.gcc (nds32*): Add new modules to extra_objs.
25021 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
25022 (nds32be-*-*): Likewise.
25023 * config/nds32/nds32-cost.c: New file.
25024 * config/nds32/nds32-fp-as-gp.c: New file.
25025 * config/nds32/nds32-intrinsic.c: New file.
25026 * config/nds32/nds32-isr.c: New file.
25027 * config/nds32/nds32-md-auxiliary.c: New file.
25028 * config/nds32/nds32-memory-manipulation.c: New file.
25029 * config/nds32/nds32-pipelines-auxiliary.c: New file.
25030 * config/nds32/nds32-predicates.c: New file.
25031 * config/nds32/t-nds32: New file.
25033 2014-07-03 Jakub Jelinek <jakub@redhat.com>
25035 PR tree-optimization/61682
25036 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
25037 using cases and when one of the operands is equal to 1.
25039 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
25041 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
25042 ashr<mode>3): Correct mode of operands[2].
25043 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
25044 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
25045 Correct mode of operands[2]. Fix split condition.
25047 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
25049 * arm.md (arch): Add armv6_or_vfpv3.
25050 (arch_enabled): Add test for the above.
25051 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
25053 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
25055 2014-07-03 Jakub Jelinek <jakub@redhat.com>
25057 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
25058 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
25059 HWI 1 and negate the unsigned value.
25060 * expmed.c (expand_sdiv_pow2): For modes wider than word always
25061 use AND instead of shift.
25062 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
25064 2014-07-03 Marek Polacek <polacek@redhat.com>
25066 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
25067 (-fsanitize=float-divide-by-zero): Move to the table with
25068 -fsanitize=undefined suboptions.
25069 (-fsanitize=float-cast-overflow): Likewise.
25071 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
25073 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
25074 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
25077 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25079 * loop-invariant.c (struct invariant): Add a new member: eqno;
25080 (find_identical_invariants): Update eqno;
25081 (create_new_invariant): Init eqno;
25082 (get_inv_cost): Compute comp_cost with eqno;
25084 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
25086 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
25087 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
25088 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
25089 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
25090 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
25092 2014-07-02 Christian Bruel <christian.bruel@st.com>
25096 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
25097 (make_preds_opaque): Delete.
25098 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
25099 (commit_mode_sets): New function.
25100 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
25101 Process all modes at once.
25102 * basic-block.h (pre_edge_lcm_avs): Declare.
25103 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
25104 Call clear_aux_for_edges. Fix comments.
25105 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
25106 (pre_edge_rev_lcm): Idem.
25107 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
25109 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
25110 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
25112 * config/i386/i386.c (x96_emit_mode_set): Idem.
25113 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
25114 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
25115 (fpscr_toggle) Disallow from delay slot.
25116 * target.def (emit_mode_set): Add prev_mode parameter.
25117 * doc/tm.texi: Regenerate.
25119 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25121 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
25124 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
25126 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
25127 vtable_pointer_value_to_vtable): Constify.
25128 (contains_polymorphic_type_p): Declare.
25129 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
25130 vtable_pointer_value_to_vtable): Constify.
25131 (contains_polymorphic_type_p): New predicate.
25132 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
25134 (ipa_set_ancestor_jf): Likewise.
25135 (detect_type_change): Return false in easy cases.
25136 (compute_complex_assign_jump_func): Require type to contain
25138 (compute_known_type_jump_func): Likewise.
25140 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
25142 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
25144 (type_in_anonymous_namespace_p): Constify argument.
25145 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
25146 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
25147 (main_odr_variant): New function.
25148 (hash_type_name): Make static; update assert; do not ICE on
25150 (types_same_for_odr): Bring here from tree.c; simplify and remove
25151 old structural comparing code that doesn't work for templates.
25152 (odr_hasher::equal): Update assert.
25153 (add_type_duplicate): Return true when bases should be computed;
25154 replace incomplete loader by complete; do not output duplicated
25155 warnings; do not ICE on non-records; set odr_violated flag.
25156 (get_odr_type): Be ready to replace incomplete type by complete
25157 one; work on ODR variants instead of main variants; reorder item
25158 in array so bases have still smaller indexes.
25159 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
25160 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
25162 2014-07-01 Cary Coutant <ccoutant@google.com>
25164 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
25166 (resolve_addr_in_expr): When replacing the rtx in a location list
25167 entry, get a new address table entry.
25168 (dwarf2out_finish): Call index_location_lists even if there are no
25169 addr_index_table entries yet.
25171 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
25173 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
25174 change for not being obvious.
25176 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
25178 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
25181 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25183 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
25184 (vcagt_f64): Likewise.
25185 (vcale_f64): Likewise.
25186 (vcaled_f64): Likewise.
25187 (vcales_f32): Likewise.
25188 (vcalt_f64): Likewise.
25189 (vcaltd_f64): Likewise.
25190 (vcalts_f32): Likewise.
25192 2014-07-01 Marek Polacek <polacek@redhat.com>
25194 * doc/invoke.texi: Document -Wint-conversion.
25196 2014-07-01 Marek Polacek <polacek@redhat.com>
25199 * doc/invoke.texi: Document -Wincompatible-pointer-types.
25201 2014-07-01 Martin Liska <mliska@suse.cz>
25203 IPA REF alias refactoring
25204 * cgraph.h (iterate_direct_aliases): New function.
25205 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
25206 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
25207 FOR_EACH_ALIAS added.
25208 (cgraph_for_node_and_aliases): Likewise.
25209 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
25210 * ipa-inline.c (reset_edge_caches): Likewise.
25211 (update_caller_keys): Likewise.
25212 * trans-mem.c (ipa_tm_execute): Likewise.
25213 *varpool.c (varpool_analyze_node): Likewise.
25214 (varpool_for_node_and_aliases): Likewise.
25215 * ipa-ref.h (first_alias): New function.
25216 (last_alias): Likewise.
25217 (has_aliases_p): Likewise.
25218 * ipa-ref.c (ipa_ref::remove_reference): Removal function
25219 is sensitive to IPA_REF_ALIASes.
25220 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
25221 are put at the beginning of the list.
25222 (symtab_node::iterate_direct_aliases): New function.
25224 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
25227 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
25229 (write_ts_type_common_tree_pointers): Do not stream fields not set
25230 for incomplete types; do not stream duplicated fields for variants;
25231 sanity check that variant and type match.
25232 (write_ts_type_non_common_tree_pointers): Likewise.
25233 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
25234 TYPE_SIZE whether type is complete.
25235 (lto_input_ts_type_common_tree_pointers): Do same changes as in
25236 write_ts_type_common_tree_pointers
25237 (lto_input_ts_type_non_common_tree_pointers): Likewise.
25239 2014-06-30 Joseph Myers <joseph@codesourcery.com>
25241 * var-tracking.c (add_stores): Return instead of asserting if old
25242 and new values for conditional store are the same.
25244 2014-06-30 Richard Henderson <rth@redhat.com>
25248 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
25249 the cfg if there were any changes.
25250 * passes.def: Revert move of peephole2 after reorder_blocks;
25251 move duplicate_computed_gotos before peephole2.
25253 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
25255 * except.c (emit_note_eh_region_end): New helper function.
25256 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
25257 emit EH_REGION_END note.
25258 * jump.c (cleanup_barriers): Do not split a call and its
25259 corresponding CALL_ARG_LOCATION note.
25261 2014-06-30 Jeff Law <law@redhat.com>
25263 PR tree-optimization/61607
25264 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
25265 deeper into the SSA_NAME_VALUE chain.
25267 2014-06-30 Marek Polacek <polacek@redhat.com>
25269 * convert.c (convert_to_integer): Don't instrument conversions if the
25270 function has no_sanitize_undefined attribute.
25271 * ubsan.c: Don't run the ubsan pass if the function has
25272 no_sanitize_undefined attribute.
25274 2014-06-30 Jakub Jelinek <jakub@redhat.com>
25276 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
25277 -fsanitize=undefined suboptions.
25279 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
25281 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
25282 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
25283 against bigendian and adjust indices.
25285 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
25287 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
25289 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
25292 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
25293 Add alternative; make early clobber. Adjust both split patterns
25294 to use operand 0 as the working register.
25296 2014-06-30 Jakub Jelinek <jakub@redhat.com>
25298 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
25299 as ira_object_id_map might be NULL, or 1.
25301 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25303 * loop-invariant.c (get_inv_cost): Handle register class.
25304 (gain_for_invariant): Check the register pressure of the inv
25305 and its overlapped register class, other than all.
25307 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
25309 * doc/invoke.texi (Optimize Options): Fix descriptions of
25310 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
25312 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
25314 * doc/extend.texi (Function Attributes): Update 'naked' attribute
25317 2014-06-29 Tobias Grosser <tobias@grosser.es>
25320 * graphite-isl-ast-to-gimple.c: Add missing guards.
25322 2014-06-29 Roman Gareev <gareevroman@gmail.com>
25324 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
25325 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
25326 * flag-types.h: Add new enum fgraphite_generator.
25327 * graphite-isl-ast-to-gimple.c: New.
25328 * graphite-isl-ast-to-gimple.h: New.
25329 * graphite.c (graphite_transform_loops): Add choice of Graphite
25330 code generator, which depends on flag_graphite_code_gen.
25332 2014-06-29 Roman Gareev <gareevroman@gmail.com>
25334 * graphite-dependences.c (subtract_commutative_associative_deps):
25335 Add NULL checking of the following variables: must_raw_no_source,
25336 may_raw_no_source, must_war_no_source, may_war_no_source,
25337 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
25338 must_war, may_war, must_waw, may_waw.
25340 2014-06-29 Roman Gareev <gareevroman@gmail.com>
25342 * graphite-clast-to-gimple.c: gloog is renamed to
25343 graphite_regenerate_ast_cloog. gloog_error is renamed to
25344 graphite_regenerate_error.
25345 * graphite-clast-to-gimple.h: The definition of the struct
25346 bb_pbb_def is moved to graphite-htab.h.
25347 Add inclusion of the hash-table.h.
25348 * graphite-htab.h: The declaration of the function gloog is moved
25349 to graphite-clast-to-gimple.h and renamed to
25350 graphite_regenerate_ast_cloog.
25351 * graphite.c (graphite_transform_loops): gloog is renamed
25352 to graphite_regenerate_ast_cloog.
25354 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
25356 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
25358 (write_ts_type_common_tree_pointers): Do not stream fields not set
25359 for incomplete types; do not stream duplicated fields for variants;
25360 sanity check that variant and type match.
25361 (write_ts_type_non_common_tree_pointers): Likewise.
25362 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
25363 TYPE_SIZE whether type is complete.
25364 (lto_input_ts_type_common_tree_pointers): Do same changes as in
25365 write_ts_type_common_tree_pointers
25366 (lto_input_ts_type_non_common_tree_pointers): Likewise.
25368 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
25370 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
25372 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
25374 * tree-inline.c (remap_type_1): Do not duplicate fields
25375 that are shared in between type and its main variant.
25377 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
25379 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
25381 (ipa_set_ancestor_jf) Likewise.
25382 (check_stmt_for_type_change): Check that we work on main variant.
25383 (detect_type_change): Look into main variant.
25384 (compute_known_type_jump_func): Check that main variant has BINFO.
25386 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
25388 * ipa-devirt.c (set_type_binfo): New function.
25389 (add_type_duplicate): Use it.
25390 (get_odr_type): Sanity check that binfos points to main variants.
25391 (get_class_context): Be sure the context's outer_type is main variant.
25392 (contains_type_p): Walk main variant.
25393 (get_polymorphic_call_info_for_decl): Set outer_type to be
25395 (get_polymorphic_call_info): Likewise.
25396 (possible_polymorphic_call_targets): Sanity check that we operate
25399 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
25401 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
25403 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25405 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
25406 accidental change due to wide-int branch merge.
25408 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25410 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
25411 compressed debug support.
25412 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
25413 * configure: Regenerate.
25414 * config.in: Regenerate.
25415 * common.opt (compressed_debug_sections): New enum.
25416 (gz, gz=): New options.
25417 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
25418 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
25419 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
25420 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
25421 LINK_COMPRESS_DEBUG_SPEC.
25422 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
25423 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
25424 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
25425 (Debugging Options): Document -gz[=type].
25427 2014-06-27 Martin Jambor <mjambor@suse.cz>
25430 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
25431 args_to_skip, use those from node instead. Copy args_to_skip and
25432 combined_args_to_skip from node to the new thunk.
25433 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
25434 (cgraph_create_virtual_clone): Moved computation of
25435 combined_args_to_skip...
25436 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
25438 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
25440 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
25441 redundant diagnostic machinary.
25443 2014-06-27 Richard Biener <rguenther@suse.de>
25445 * tree-ssa-math-opts.c (bswap_replace): Fix
25446 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
25448 2014-06-27 Martin Liska <mliska@suse.cz>
25450 * gimple.h (gimple_location_safe): New function introduced.
25451 * cgraphunit.c (walk_polymorphic_call_targets): Usage
25452 of gimple_location_safe replaces gimple_location.
25453 (gimple_fold_call): Likewise.
25454 * ipa-devirt.c (ipa_devirt): Likewise.
25455 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
25456 * ipa.c (walk_polymorphic_call_targets): Likewise.
25457 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25459 2014-06-27 Jakub Jelinek <jakub@redhat.com>
25461 PR tree-optimization/57233
25462 PR tree-optimization/61299
25463 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
25465 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
25466 would be lowered to scalar shifts, check if corresponding
25467 shifts and vector BIT_IOR_EXPR are supported and don't lower
25468 or lower just to narrower vector type in that case.
25469 * expmed.c (expand_shift_1): Fix up handling of vector
25470 shifts and rotates.
25472 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
25475 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
25477 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
25479 * doc/invoke.texi (-fsemantic-interposition): Document.
25480 * common.opt (fsemantic-interposition): New flag.
25481 * varasm.c (decl_replaceable_p): Use it.
25483 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25486 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
25487 extraction other than index 3.
25489 2014-06-26 Teresa Johnson <tejohnson@google.com>
25491 * doc/invoke.texi: Fix typo.
25492 * dumpfile.c: Add support for documented -fdump-* options
25493 optimized/missed/note/optall.
25495 2014-06-26 Martin Jambor <mjambor@suse.cz>
25497 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
25498 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
25499 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
25500 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
25501 * opts.c (default_options_optimization): Set
25502 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
25503 * doc/invoke.texi (allow-load-data-races)
25504 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
25505 (allow-store-data-races): Document the new default.
25507 2014-06-26 Martin Jambor <mjambor@suse.cz>
25509 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
25510 renamed to ipa_impossible_devirt_target. Fix typo.
25511 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
25512 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
25513 ipa_impossible_devirt_target.
25515 2014-06-26 Richard Biener <rguenther@suse.de>
25517 PR tree-optimization/61607
25518 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
25519 explaining why we restrict copies on loop depth.
25520 * tree-ssa-dom.c (cprop_operand): Remove restriction on
25522 (record_equivalences_from_phis): Instead add it here.
25524 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
25526 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
25527 (LTO_WRAPPER_OBJS): New variable.
25528 (lto-wrapper$(exeext)): Use it.
25529 * collect2.c: Include "collect-utils.h".
25530 (verbose, debug): Remove variables.
25531 (at_file_supplied): No longer static.
25532 (tool_name): New variable.
25533 (do_wait, fork_execute, maybe_unlink): Don't declare.
25534 (tool_cleanup): No longer static.
25535 (notice): Remove function.
25536 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
25537 fork_execute calls.
25538 (collect_wait, do_wait, collect_execute): Remove functions.
25539 (maybe_unlink): No longer static.
25540 * collect2.h (verbose, debug): Don't declare.
25541 (at_file_supplied): Declare.
25542 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
25544 (collect_execute): Replace with implementation from collect2, plus a
25545 new arg use_atfile. All callers changed.
25546 (collect_wait): Replace with implementation from collect2.
25547 (maybe_unlink_file): Remove function.
25548 (fork_execute): Replace with implementation from collect2, plus a
25549 new arg use_atfile. All callers changed.
25550 (do_wait): Add call to utils_cleanup to the error path.
25551 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
25552 (tool_cleanup): Adjust declarations.
25553 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
25554 * tlink.c: Include "collect-utils.h".
25555 (tlink_execute): New arg use_atfile. All callers changed.
25556 (tlink_init, tlink_execute): Remove declarations.
25558 * collect-utils.c (save_temps): New variable.
25559 (do_wait): Use it instead of debug. Use fatal_error.
25560 * collect-utils.h (save_temps): Declare.
25561 * collect2.c (verbose): Rename from vflag. All uses changed.
25562 (tool_cleanup): New function, copied from collect_atexit.
25563 (collect_atexit, handler): Just call it.
25564 * collect2.h (verbose): Declaration renamed from vflag.
25565 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
25568 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
25569 (lto-wrapper$(exeext)): Link with collect-utils.o.
25570 * collect-utils.c: New file.
25571 * collect-utils.h: New file.
25572 * lto-wrapper.c: Include "collect-utils.h".
25573 (args_name): Delete variable.
25574 (tool_name): New variable.
25575 (tool_cleanup): New function.
25576 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
25577 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
25578 (fork_execute): Remove functions.
25580 2014-06-26 Nick Clifton <nickc@redhat.com>
25582 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
25584 * doc/extend.texi (Function Attributes): Fix typo in description
25585 of RX vector attribute.
25587 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25589 * config.gcc (supported_defaults): Error when passing either
25590 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
25592 2014-06-26 Richard Biener <rguenther@suse.de>
25594 * tree-ssa-dom.c (cprop_operand): Remove restriction on
25595 propagating volatile pointers.
25597 2014-06-26 Richard Biener <rguenther@suse.de>
25599 PR tree-optimization/61607
25600 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
25601 loop if we redirected its latch edge.
25602 (thread_block_1): Do not cancel loops prematurely.
25604 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
25606 * toplev.c (backend_init_target): Move init_emit_regs and
25608 (backend_init) ... here; skip ira_init_once and backend_init_target.
25609 (target_reinit) ... and here; clear
25610 this_target_rtl->lang_dependent_initialized.
25611 (lang_dependent_init_target): Clear
25612 this_target_rtl->lang_dependent_initialized;
25613 break out rtl initialization to ...
25614 (initialize_rtl): ... here; call also backend_init_target
25616 * toplev.h (initialize_rtl): New function.
25617 * function.c: Include toplev.h
25618 (init_function_start): Call initialize_rtl.
25619 * rtl.h (target_rtl): Add target_specific_initialized,
25620 lang_dependent_initialized.
25622 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
25623 Jakub Jelinek <jakub@redhat.com>
25625 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
25627 2014-06-25 Tom de Vries <tom@codesourcery.com>
25629 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
25631 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
25633 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
25634 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
25635 Issue a strict overflow warning if appropriate.
25637 2014-06-25 Martin Liska <mliska@suse.cz>
25639 IPA REF refactoring
25640 * Makefile.in: Removed header file (ipa-ref-inline.h).
25641 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
25643 (cgraph_speculative_call_info): Likewise.
25644 (cgraph_for_node_thunks_and_aliases): Likewise.
25645 (cgraph_for_node_and_aliases): Likewise.
25646 (verify_cgraph_node): Likewise.
25647 * cgraph.h: Batch of IPA REF functions become member functions of
25648 symtab_node: add_reference, maybe_add_reference, clone_references,
25649 clone_referring, clone_reference, find_reference,
25650 remove_stmt_references, remove_all_references,
25651 remove_all_referring, dump_references, dump_referring,
25652 has_alias_p, iterate_reference, iterate_referring.
25653 * cgraphbuild.c (record_reference): New IPA REF function used.
25654 (record_type_list): Likewise.
25655 (record_eh_tables): Likewise.
25656 (mark_address): Likewise.
25657 (mark_load): Likewise.
25658 (mark_store): Likewise.
25659 (pass_build_cgraph_edges): Likewise.
25660 (rebuild_cgraph_edge): Likewise.
25661 (cgraph_rebuild_references): Likewise.
25662 (pass_remove_cgraph_callee_edges): Likewise.
25663 * cgraphclones.c (cgraph_clone_node): Likewise.
25664 (cgraph_create_virtual_clone): Likewise.
25665 (cgraph_materialize_clone): Likewise.
25666 (cgraph_materialize_all_clones): Likewise.
25667 * cgraphunit.c (cgraph_reset_node): Likewise.
25668 (cgraph_reset_node): Likewise.
25669 (analyze_function): Likewise.
25670 (assemble_thunks_and_aliases): Likewise.
25671 (expand_function): Likewise.
25672 * ipa-comdats.c (propagate_comdat_group): Likewise.
25673 (enqueue_references): Likewise.
25674 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
25675 (create_specialized_node): Likewise.
25676 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
25677 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
25678 * ipa-inline.c (reset_edge_caches): Likewise.
25679 (update_caller_keys): Likewise.
25680 (execute): Likewise.
25681 * ipa-prop.c (remove_described_reference): Likewise.
25682 (propagate_controlled_uses): Likewise.
25683 (ipa_edge_duplication_hook): Likewise.
25684 (ipa_modify_call_arguments): Likewise.
25685 * ipa-pure-const.c (propagate_pure_const): Likewise.
25686 * ipa-ref-inline.h: Header file removed, functions moved
25687 to symtab_node class.
25688 * ipa-ref.c (remove_reference): New class member function.
25689 (cannot_lead_to_return): New class member function.
25690 (referring_ref_list): Likewise.
25691 (referred_ref_list): Likewise.
25692 Rest of functions moved to symtab_node class.
25693 * ipa-ref.h: New member functions remove_reference,
25694 cannot_lead_to_return, referring_ref_list, referred_ref_list added
25696 ipa_ref_list class has new member functions: first_reference,
25697 first_referring, clear, nreferences.
25698 * ipa-reference.c (analyze_function): New IPA REF function used.
25699 (write_node_summary_p): Likewise.
25700 (ipa_reference_write_optimization_summary): Likewise.
25701 * ipa-split.c (split_function): Likewise.
25702 * ipa-utils.c (ipa_reverse_postorder): Likewise.
25703 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
25704 (function_and_variable_visibility): Likewise.
25705 * ipa.c (has_addr_references_p): Likewise.
25706 (process_references): Argument type changed.
25707 (symtab_remove_unreachable_nodes): New IPA REF function used.
25708 (process_references): Likewise.
25709 (set_writeonly_bit): Likewise.
25710 * lto-cgraph.c: Implementation of new symtab_node member functions
25711 that uses new IPA REF functions.
25712 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
25714 * lto-streamer-out.c (output_symbol_p): Likewise.
25715 * lto-streamer.h (referenced_from_this_partition_p): Argument type
25717 * symtab.c: Implementation of new IPA REF API.
25718 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
25719 (ipa_tm_create_version): Likewise.
25720 (ipa_tm_execute): Likewise.
25721 * tree-emutls.c (gen_emutls_addr): Likewise.
25722 * tree-inline.c (copy_bb): Likewise.
25723 (delete_unreachable_blocks_update_callgraph): Likewise.
25724 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
25725 (varpool_for_node_and_aliases): Likewise.
25727 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
25729 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
25731 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
25734 * fold-const.c (fold_checksum_tree): Use a hash_table of const
25735 tree_node * instead of tree_node *.
25737 (print_fold_checksum): Likewise.
25738 (fold_check_failed): Likewise.
25739 (debug_fold_checksum): Likewise.
25740 (fold_build1_stat_loc): Likewise.
25741 (fold_build2_stat_loc): Likewise.
25742 (fold_build3_stat_loc): Likewise.
25743 (fold_build_call_array_loc): Likewise.
25745 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
25747 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
25748 implementation with call to...
25749 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
25751 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
25754 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
25756 PR tree-optimization/57742
25757 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
25758 after replacing the statement.
25760 2014-06-25 Nick Clifton <nickc@redhat.com>
25762 * config/v850/v850.c (GHS_default_section_names): Change to const
25764 (GHS_current_section_names): Likewise.
25765 (v850_insert_attributes): Do not build strings, just assign the
25766 names directly. Change the type of 'chosen_section' to const
25768 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
25769 directly to the array entry.
25770 * config/v850/v850.h (GHS_default_section_names): Change to const
25772 (GHS_current_section_names): Likewise.
25774 2014-06-25 Jakub Jelinek <jakub@redhat.com>
25776 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
25777 (LANG_HOOKS_DECLS): Add it.
25778 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
25780 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
25781 * langhooks.h (struct lang_hooks_for_decls): Add
25782 omp_clause_linear_ctor hook.
25783 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
25784 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
25785 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
25786 combined simd loop use omp_clause_linear_ctor hook.
25788 2014-06-24 Cong Hou <congh@google.com>
25790 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
25791 pattern recognition.
25792 (type_conversion_p): PROMOTION is true if it's a type promotion
25793 conversion, and false otherwise. Return true if the given expression
25794 is a type conversion one.
25795 * tree-vectorizer.h: Adjust the number of patterns.
25796 * tree.def: Add SAD_EXPR.
25797 * optabs.def: Add sad_optab.
25798 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
25799 * expr.c (expand_expr_real_2): Likewise.
25800 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
25801 * gimple.c (get_gimple_rhs_num_ops): Likewise.
25802 * optabs.c (optab_for_tree_code): Likewise.
25803 * tree-cfg.c (estimate_operator_cost): Likewise.
25804 * tree-ssa-operands.c (get_expr_operands): Likewise.
25805 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
25806 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
25807 * doc/generic.texi: Add document for SAD_EXPR.
25808 * doc/md.texi: Add document for ssad and usad.
25810 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25812 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
25813 qualification in cast.
25815 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
25817 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
25818 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
25819 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
25820 (tree_function_decl): ... here.
25821 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
25822 streaming of vindex to ...
25823 (write_ts_function_decl_tree_pointers): ... here.
25824 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
25825 Do not stream DECL_VINDEX.
25826 (lto_input_ts_function_decl_tree_pointers): Stream it here.
25828 2014-06-24 Catherine Moore <clm@codesourcery.com>
25829 Sandra Loosemore <sandra@codesourcery.com>
25831 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
25832 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
25833 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
25835 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
25837 * doc/invoke.texi (Warning Options): Remove duplicated
25838 -Wmaybe-uninitialized.
25840 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
25842 PR tree-optimization/57742
25843 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
25844 (handle_builtin_malloc, handle_builtin_memset): New functions.
25845 (strlen_optimize_stmt): Call them.
25846 * passes.def: Move strlen after loop+dom but before vrp.
25848 2014-06-24 Jakub Jelinek <jakub@redhat.com>
25851 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
25852 model family 6 CPU with has_longmode never use a CPU without
25855 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
25858 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
25861 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25863 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
25864 * dominance.c (iterate_fix_dominators): Use hash_map instead of
25866 * hash-map.h: New file.
25867 * ipa-comdats.c: Use hash_map instead of pointer_map.
25869 * lto-section-out.c: Adjust.
25870 * lto-streamer.h: Replace pointer_map with hash_map.
25871 * symtab.c (verify_symtab): Likewise.
25872 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
25873 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
25874 * tree-streamer.h: Likewise.
25875 * tree-streamer.c: Adjust.
25876 * pointer-set.h: Remove pointer_map.
25878 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25880 * hash-table.h: Add a template arg to choose between storing values
25881 and storing pointers to values, and then provide partial
25882 specializations for both.
25883 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
25884 should store, not the type values should point to.
25885 * tree-into-ssa.c (var_info_hasher): Likewise.
25886 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25887 * tree-complex.c: Adjust.
25888 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
25889 table instead of int_tree_map *.
25890 * tree-parloops.c: Adjust.
25891 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
25892 type is being stored.
25893 * tree-vectorizer.c: Adjust.
25895 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25897 * hash-table.h: Remove a layer of indirection from hash_table so that
25898 it contains the hash table's data instead of a pointer to the data.
25899 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
25900 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
25901 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
25902 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
25903 fold-const.c, gcse.c, ggc-common.c,
25904 gimple-ssa-strength-reduction.c, gimplify.c,
25905 graphite-clast-to-gimple.c, graphite-dependences.c,
25906 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
25907 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25908 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
25909 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
25910 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
25911 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
25912 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
25913 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
25914 tree-ssa-live.c, tree-ssa-loop-im.c,
25915 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
25916 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
25917 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25918 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
25919 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
25920 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
25921 vtable-verify.c, vtable-verify.h: Adjust.
25923 2014-06-24 Richard Biener <rguenther@suse.de>
25925 PR tree-optimization/61572
25926 * tree-ssa-sink.c (statement_sink_location): Do not sink
25927 loads from hard registers.
25929 2014-06-24 Jakub Jelinek <jakub@redhat.com>
25931 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
25932 not mentioned in clauses use private clause if the iterator is
25933 declared in #pragma omp for simd, and when adding lastprivate
25934 instead, add it to the outer #pragma omp for too. Diagnose
25935 if the variable is private in outer context. For simd collapse > 1
25936 loops, replace all iterators with temporaries.
25937 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
25938 same even in collapse > 1 loops.
25940 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
25941 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
25943 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
25944 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
25946 (gimplify_adjust_omp_clauses): Likewise.
25947 * omp-low.c (lower_rec_simd_input_clauses,
25948 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
25949 safelen the same as safelen(1).
25950 * tree-nested.c (convert_nonlocal_omp_clauses,
25951 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
25952 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
25953 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
25954 Fixup handling of GIMPLE_OMP_TARGET.
25955 (convert_tramp_reference_stmt, convert_gimple_call): Handle
25958 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
25960 PR tree-optimization/61554
25961 * tree-ssa-propagate.c: Include "bitmap.h".
25962 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
25963 properly update constructor/destructor.
25964 (substitute_and_fold_dom_walker::before_dom_children):
25965 Remove call to gimple_purge_dead_eh_edges, add bb->index to
25966 need_eh_cleaup instead.
25967 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
25970 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
25972 * varpool.c (dump_varpool_node): Dump used_by_single_function.
25973 * tree-pass.h (make_pass_ipa_single_use): New pass.
25974 * cgraph.h (used_by_single_function): New flag.
25975 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
25977 * passes.def (pass_ipa_single_use): Scedule.
25978 * ipa.c (BOTTOM): New macro.
25979 (meet): New function
25980 (propagate_single_user): New function.
25981 (ipa_single_use): New function.
25982 (pass_data_ipa_single_use): New pass.
25983 (pass_ipa_single_use): New pass.
25984 (pass_ipa_single_use::gate): New gate.
25985 (make_pass_ipa_single_use): New function.
25987 2014-06-23 Kai Tietz <ktietz@redhat.com>
25990 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
25991 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
25993 2014-06-23 Richard Biener <rguenther@suse.de>
25995 * tree-ssa-loop.c (gate_loop): New function.
25996 (pass_tree_loop::gate): Call it.
25997 (pass_data_tree_no_loop, pass_tree_no_loop,
25998 make_pass_tree_no_loop): New.
25999 * tree-vectorizer.c: Include tree-scalar-evolution.c
26000 (pass_slp_vectorize::execute): Initialize loops and SCEV if
26002 (pass_slp_vectorize::clone): New method.
26003 * timevar.def (TV_TREE_NOLOOP): New.
26004 * tree-pass.h (make_pass_tree_no_loop): Declare.
26005 * passes.def (pass_tree_no_loop): New pass group with
26008 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
26011 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
26012 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
26014 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
26016 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
26017 "yes" where needed.
26019 2014-06-23 Alan Modra <amodra@gmail.com>
26022 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
26023 to zero on debug statements.
26025 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
26028 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
26029 Ignore third operand if present by marking qualifier_internal.
26031 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
26033 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
26035 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
26036 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
26037 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
26038 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
26039 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
26040 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
26041 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
26042 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
26043 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
26044 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
26045 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
26046 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
26047 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
26048 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
26049 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
26050 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
26051 logic in GCC vector extensions
26053 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
26054 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
26055 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
26056 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
26057 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
26058 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
26059 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
26060 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
26061 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
26062 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
26064 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
26066 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
26069 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
26070 (vget_low_s64): Use __GET_LOW macro.
26071 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
26072 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
26073 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
26074 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
26075 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
26077 (vcombine_s64): Use GCC vector extensions; remove cast.
26078 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
26079 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
26080 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
26081 Fix type signature; remove cast.
26083 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
26086 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
26088 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
26090 (BUILTIN_VD1): New.
26091 (BUILTIN_VD_RE): Remove.
26092 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
26093 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
26094 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
26095 variant but not df.
26096 (vreinterpretv1df*, vreinterpret*v1df): New.
26097 (vreinterpretdf*, vreinterpret*df): Remove.
26098 * config/aarch64/aarch64-simd.md (aarch64_create,
26099 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
26100 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
26102 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
26103 (vcreate_f64): Remove cast, use v1df builtin.
26104 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
26105 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
26106 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
26107 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
26108 vmov_n_f64, vst1_f64): Use gcc vector extensions.
26109 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
26110 add range check using __builtin_aarch64_im_lane_boundsi.
26111 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
26112 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
26113 type signature, use gcc vector extensions.
26114 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
26115 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
26116 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
26117 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
26118 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
26119 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
26120 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
26121 vreinterpret_u64_f64): Use v1df builtin not df.
26123 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
26125 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
26128 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
26130 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
26133 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26135 * loop-invariant.c (pre_check_invariant_p): New function.
26136 (find_invariant_insn): Call pre_check_invariant_p.
26138 2014-06-22 Richard Henderson <rth@redhat.com>
26141 * compare-elim.c (struct comparison): Add eh_note.
26142 (find_comparison_dom_walker::before_dom_children): Don't eliminate
26143 a redundant comparison in a different EH region. Purge EH edges if
26146 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
26148 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
26149 (var_shift): Use it.
26150 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
26151 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
26152 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
26153 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
26154 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
26155 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
26156 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
26157 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
26158 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
26159 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
26160 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
26161 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
26162 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
26163 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
26164 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
26165 *rotldi3_internal15be): Use the new attribute. Merge register and
26166 integer alternatives.
26168 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
26170 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
26171 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
26172 split, *ashrdi3_internal3 and split): Delete, merge into...
26173 (ashr<mode>3): New expander.
26174 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
26175 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
26177 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
26179 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
26180 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
26181 *rotldi3_internal3 and split): Delete, merge into...
26182 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
26183 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
26184 Use "rotlw" extended mnemonic.
26186 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
26188 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
26189 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
26190 and split, *ashldi3_internal3 and split): Delete, merge into...
26191 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
26192 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
26194 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
26196 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
26197 (lshrsi3, two anonymous define_insns and define_splits,
26198 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
26199 *lshrdi3_internal3 and split): Delete, merge into...
26200 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
26201 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
26203 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
26205 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
26206 Remove "O" alternative.
26208 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
26210 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
26211 (mips_move_from_gpr_cost): Likewise.
26212 (mips_register_move_cost): Update accordingly.
26213 (mips_secondary_reload_class): Remove name of in_p.
26215 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
26218 * config/i386/i386.md (x86_64_shrd, x86_shrd,
26219 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
26221 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26223 * config/nios2/nios2.c: Include "builtins.h".
26225 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
26227 * cgraph.h (tls_model_names): New variable.
26228 * print-tree.c (print_node): Simplify.
26229 * varpool.c (tls_model_names): New variable.
26230 (dump_varpool_node): Output tls model.
26232 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
26234 * ipa-visibility.c (function_and_variable_visibility): Disable
26235 temporarily local aliases for some targets.
26237 2014-06-20 Marek Polacek <polacek@redhat.com>
26239 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
26240 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
26241 into SANITIZE_UNDEFINED.
26242 * doc/invoke.texi: Describe -fsanitize=bounds.
26243 * gimplify.c (gimplify_call_expr): Add gimplification of internal
26244 functions created in the FEs.
26245 * internal-fn.c: Move "internal-fn.h" after "tree.h".
26246 (expand_UBSAN_BOUNDS): New function.
26247 * internal-fn.def (UBSAN_BOUNDS): New internal function.
26248 * internal-fn.h: Don't define internal functions here.
26249 * opts.c (common_handle_option): Add -fsanitize=bounds.
26250 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
26251 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
26252 * tree-core.h: Define internal functions here.
26253 (struct tree_base): Add ifn field.
26254 * tree-pretty-print.c: Include "internal-fn.h".
26255 (dump_generic_node): Handle functions without CALL_EXPR_FN.
26256 * tree.c (get_callee_fndecl): Likewise.
26257 (build_call_expr_internal_loc): New function.
26258 * tree.def (CALL_EXPR): Update description.
26259 * tree.h (CALL_EXPR_IFN): Define.
26260 (build_call_expr_internal_loc): Declare.
26261 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
26263 (ubsan_type_descriptor): Change bool parameter to enum
26264 ubsan_print_style. Adjust the code. Add handling of
26266 (ubsan_expand_bounds_ifn): New function.
26267 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
26268 (ubsan_build_overflow_builtin): Likewise.
26269 (instrument_bool_enum_load): Likewise.
26270 (ubsan_instrument_float_cast): Likewise.
26271 * ubsan.h (enum ubsan_print_style): New enum.
26272 (ubsan_expand_bounds_ifn): Declare.
26273 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
26275 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
26277 * config/rs6000/rs6000.md: Append `DONE' to preparation
26278 statements of `bswap' pattern splitters.
26280 2014-06-20 Tom de Vries <tom@codesourcery.com>
26282 * target.def (call_fusage_contains_non_callee_clobbers): Update
26284 * doc/tm.texi: Regenerate.
26286 2014-06-20 Yury Gribov <y.gribov@samsung.com>
26287 Max Ostapenko <m.ostapenko@partner.samsung.com>
26290 * asan.c (instrument_strlen_call): Fixed instrumentation of
26293 2014-06-20 Martin Jambor <mjambor@suse.cz>
26296 * ipa-prop.c (impossible_devirt_target): New function.
26297 (try_make_edge_direct_virtual_call): Use it, also instead of
26300 2014-06-20 Yury Gribov <y.gribov@samsung.com>
26301 Max Ostapenko <m.ostapenko@partner.samsung.com>
26304 * asan.c (build_check_stmt): Add condition.
26306 2014-06-20 Martin Jambor <mjambor@suse.cz>
26309 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
26312 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26314 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
26316 (VCONQ): Make comment more helpful.
26318 * config/aarch64/aarch64-simd.md
26319 (aarch64_sqdmulh_lane<mode>):
26320 Use VCOND for operands 2. Update lane checking and flipping logic.
26321 (aarch64_sqrdmulh_lane<mode>): Likewise.
26322 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
26323 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
26324 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
26325 attribute of operand 3 to VCOND.
26326 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
26327 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
26328 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
26329 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
26330 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
26331 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
26333 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
26334 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
26335 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
26336 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
26337 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
26338 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
26339 operand to VCOND. Update lane flipping and bounds checking logic.
26340 (aarch64_sqdmlal2_lane<mode>): Likewise.
26341 (aarch64_sqdmlsl_lane<mode>): Likewise.
26342 (aarch64_sqdmull_lane<mode>): Likewise.
26343 (aarch64_sqdmull2_lane<mode>): Likewise.
26344 (aarch64_sqdmlal_laneq<mode>):
26345 Replace VCON usage with VCONQ.
26346 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
26347 (aarch64_sqdmlal2_laneq<mode>): Emit
26348 aarch64_sqdmlal2_laneq<mode>_internal insn.
26349 Replace VCON with VCONQ.
26350 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
26351 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
26352 (aarch64_sqdmull_laneq<mode>): Emit
26353 aarch64_sqdmull_laneq<mode>_internal insn.
26354 Replace VCON with VCONQ.
26355 (aarch64_sqdmull2_laneq<mode>): Emit
26356 aarch64_sqdmull2_laneq<mode>_internal insn.
26357 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
26358 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
26359 of 3rd argument to int16x4_t.
26360 (vqdmlalh_lane_s16): Likewise.
26361 (vqdmlslh_lane_s16): Likewise.
26362 (vqdmull_high_lane_s16): Likewise.
26363 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
26364 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
26365 (vqdmlsl_lane_s16): Likewise.
26366 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
26367 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
26368 (vqdmlals_lane_s32): Likewise.
26369 (vqdmlsls_lane_s32): Likewise.
26370 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
26371 (vqdmulls_lane_s32): Likewise.
26372 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
26373 (vqdmlsl_lane_s32): Likewise.
26374 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
26375 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
26376 (vqrdmulhh_lane_s16): Likewise.
26377 (vqdmlsl_high_lane_s16): Likewise.
26378 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
26379 (vqdmlsl_high_lane_s32): Likewise.
26380 (vqrdmulhs_lane_s32): Likewise.
26382 2014-06-20 Tom de Vries <tom@codesourcery.com>
26384 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
26385 get_call_reg_set_usage.
26387 2014-06-20 Tom de Vries <tom@codesourcery.com>
26389 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
26390 it contains all call_used_regs.
26392 2014-06-20 Tom de Vries <tom@codesourcery.com>
26394 * final.c (collect_fn_hard_reg_usage): Add and use variable
26395 function_used_regs.
26397 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
26399 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
26400 (set_init_priority, get_init_priority, set_fini_priority,
26401 get_fini_priority): New methods.
26402 * tree.c (init_priority_for_decl): Remove.
26403 (init_ttree): Do not initialize init priority.
26404 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
26405 (decl_priority_info): Remove.
26406 (decl_init_priority_insert): Rewrite.
26407 (decl_fini_priority_insert): Rewrite.
26408 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
26409 tree_priority_map_marked_p): Remove.
26410 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
26411 * lto-streamer-out.c (hash_tree): Do not hash priorities.
26412 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
26413 not output priorities.
26414 (pack_ts_function_decl_value_fields): Likewise.
26415 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
26416 not input priorities.
26417 (unpack_ts_function_decl_value_fields): Likewise.
26418 * symtab.c (symbol_priority_map): Declare.
26419 (init_priority_hash): Declare.
26420 (symtab_unregister_node): Unregister from priority hash, too.
26421 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
26423 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
26424 (symbol_priority_info): New function.
26425 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
26427 * tree-core.h (tree_priority_map): Remove.
26429 2014-06-20 Jakub Jelinek <jakub@redhat.com>
26431 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
26432 0xff to uint64_t before shifting it up.
26434 2014-06-20 Julian Brown <julian@codesourcery.com>
26435 Chung-Lin Tang <cltang@codesourcery.com>
26437 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
26438 TARGET_THUMB1_ONLY. Add comments.
26440 2014-06-19 Tom de Vries <tom@codesourcery.com>
26442 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
26443 return type to void.
26444 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
26446 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26448 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
26449 as "move", from depends_on.
26451 2014-06-19 Terry Guo <terry.guo@arm.com>
26453 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
26456 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
26458 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
26460 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
26462 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
26465 * config/sh/sh.c (prepare_move_operands): Don't process TLS
26466 addresses here if reload in progress or completed.
26468 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
26470 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
26471 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
26472 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
26473 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
26474 (mips_register_priority): New function that implements the target
26475 hook TARGET_REGISTER_PRIORITY.
26476 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
26477 (mips_lra_p): Likewise for TARGET_LRA_P.
26478 (TARGET_REGISTER_PRIORITY): Define macro.
26479 (TARGET_SPILL_CLASS): Likewise.
26480 (TARGET_LRA_P): Likewise.
26481 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
26483 (REG_CLASS_NAMES): Likewise.
26484 (REG_CLASS_CONTENTS): Likewise.
26485 (BASE_REG_CLASS): Use M16_SP_REGS.
26486 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
26487 New set attribute to enable alternatives depending on the register
26489 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
26490 (*lea64): Disable pattern for MIPS16.
26491 * config/mips/mips.opt (mlra): New option.
26493 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
26495 * lra-constraints.c (base_to_reg): New function.
26496 (process_address): Use new function.
26498 2014-06-18 Tom de Vries <tom@codesourcery.com>
26500 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
26501 * config/aarch64/aarch64.c
26502 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
26503 (aarch64_emit_call_insn): New function.
26504 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
26506 * config/aarch64/aarch64.md (define_expand "call_internal")
26507 (define_expand "call_value_internal", define_expand "sibcall_internal")
26508 (define_expand "sibcall_value_internal"): New.
26509 (define_expand "call", define_expand "call_value")
26510 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
26511 expand variant and aarch64_emit_call_insn.
26513 2014-06-18 Radovan Obradovic <robradovic@mips.com>
26514 Tom de Vries <tom@codesourcery.com>
26516 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
26517 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
26519 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
26520 clobbers to CALL_INSN_FUNCTION_USAGE.
26521 (define_expand "sibcall_internal")
26522 (define_expand "sibcall_value_internal"): New.
26523 (define_expand "call", define_expand "call_value"): Add argument to
26524 arm_emit_call_insn.
26525 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
26526 (define_expand "sibcall_value"): Use sibcall_value_internal and
26527 arm_emit_call_insn.
26529 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26531 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
26533 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26535 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
26538 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26540 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
26541 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
26542 annotations. Fix DWARF information.
26544 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26546 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
26547 __udivmoddi4, and fixups for negative operands.
26549 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26551 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
26553 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26555 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
26558 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26560 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
26563 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26565 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
26566 describing register usage on function entry and exit.
26568 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26570 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
26571 (__aeabi_ldivmod): Fix whitespace.
26573 2014-06-18 Andreas Schwab <schwab@suse.de>
26575 * doc/md.texi (Standard Names): Use @itemx for grouped items.
26576 Remove blank line after @item.
26578 2014-06-18 Richard Henderson <rth@redhat.com>
26581 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
26583 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26585 * config/arm/arm.c (neon_vector_mem_operand): Allow register
26586 POST_MODIFY for neon loads and stores.
26587 (arm_print_operand): Output post-index register for neon loads and
26590 2014-06-18 Richard Biener <rguenther@suse.de>
26592 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
26594 2014-06-18 Richard Biener <rguenther@suse.de>
26596 * tree-pass.h (make_pass_dce_loop): Remove.
26597 * passes.def: Replace pass_dce_loop with pass_dce.
26598 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
26599 changed free niter estimates and reset the scev cache.
26600 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
26601 make_pass_dce_loop): Remove.
26602 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
26603 (fini_copy_prop): Return whether something changed. Always
26604 let substitute_and_fold perform DCE and free niter estimates
26605 and reset the scev cache if so.
26606 (execute_copy_prop): If sth changed schedule cleanup-cfg.
26607 (pass_data_copy_prop): Do not unconditionally schedule
26608 cleanup-cfg or update-ssa.
26610 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
26612 PR tree-optimization/61518
26613 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
26614 reduction var is used in reduction stmt or phi-function only.
26616 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26618 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
26620 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
26622 PR tree-optimization/61517
26623 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
26624 whose rhs's first tree is the source expression instead of the
26626 (find_bswap_or_nop): Likewise.
26627 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
26628 gimple stmt whose rhs's first tree is the source. In the memory source
26629 case, move the stmt to be replaced close to one of the original load to
26630 avoid the problem of a store between the load and the stmt's original
26632 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
26635 2014-06-18 Andreas Schwab <schwab@suse.de>
26637 PR rtl-optimization/54555
26638 * postreload.c (move2add_use_add2_insn): Substitute
26639 STRICT_LOW_PART only if it is cheaper.
26641 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
26643 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
26644 Do not use unspec as call operand. Use memory_operand instead of
26645 memory_nox32_operand and add "m" operand constraint. Disable
26646 pattern for TARGET_X32.
26647 (*sibcall_pop_memory): Ditto.
26648 (*sibcall_value_memory): Ditto.
26649 (*sibcall_value_pop_memory): Ditto.
26650 (sibcall peepholes): Merge SImode and DImode patterns using
26651 W mode iterator. Use memory_operand instead of memory_nox32_operand.
26652 Disable pattern for TARGET_X32. Check if eliminated register is
26653 really dead after call insn. Generate call RTX without unspec operand.
26654 (sibcall_value peepholes): Ditto.
26655 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
26656 instead of memory_nox32_operand. Check if eliminated register is
26657 really dead after call insn. Generate call RTX without unspec operand.
26658 (sibcall_value_pop peepholes): Ditto.
26659 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
26661 2014-06-18 Terry Guo <terry.guo@arm.com>
26664 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
26667 2014-06-18 Olivier Hainque <hainque@adacore.com>
26669 * tree-core.h (tree_block): Add an "end_locus" field, allowing
26670 memorization of the end of block source location.
26671 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
26672 * gimplify.c (gimplify_bind_expr): Propagate the block start and
26673 end source location info we have on the block entry/exit code we
26676 2014-06-18 Richard Biener <rguenther@suse.de>
26678 * common.opt (fssa-phiopt): New option.
26679 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
26681 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
26682 * doc/invoke.texi (-fssa-phiopt): Document.
26684 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26686 * genattrtab.c (n_bypassed): New variable.
26687 (process_bypasses): Initialise n_bypassed.
26688 Count number of bypassed reservations.
26689 (make_automaton_attrs): Allocate space for bypassed reservations
26690 rather than number of bypasses.
26692 2014-06-18 Richard Biener <rguenther@suse.de>
26694 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
26695 we propagated anything.
26696 (substitute_and_fold_dom_walker::before_dom_children): Something
26697 changed if we propagated into PHI arguments.
26698 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
26701 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
26703 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
26705 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
26706 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
26707 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
26708 Introduces alternative way of loads group permutaions.
26709 (vect_transform_grouped_load): Try alternative way of permutations.
26711 2014-06-18 Jakub Jelinek <jakub@redhat.com>
26713 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
26714 changed in ORT_TARGET region, don't jump to do_outer.
26715 (struct gimplify_adjust_omp_clauses_data): New type.
26716 (gimplify_adjust_omp_clauses_1): Adjust for data being
26717 a struct gimplify_adjust_omp_clauses_data pointer instead
26718 of tree *. Pass pre_p as a new argument to
26719 lang_hooks.decls.omp_finish_clause hook.
26720 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
26721 splay_tree_foreach to pass both list_p and pre_p.
26722 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
26723 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
26724 gimplify_adjust_omp_clauses callers.
26725 * langhooks.c (lhd_omp_finish_clause): New function.
26726 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
26727 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
26728 * langhooks.h (struct lang_hooks_for_decls): Add a new
26729 gimple_seq * argument to omp_finish_clause hook.
26730 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
26731 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
26732 (scan_omp_parallel, lower_omp_for): When adding
26733 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
26734 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
26735 * tree-nested.c (convert_nonlocal_omp_clauses,
26736 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
26737 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
26739 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
26741 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
26742 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
26744 2014-06-17 Xinliang David Li <davidxl@google.com>
26746 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
26747 * passes.c (pass_init_dump_file): Do not set initialize
26748 flag to false unconditionally.
26750 2014-06-17 Richard Biener <rguenther@suse.de>
26752 * genopinit.c (main): Use vec<>::qsort method.
26753 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
26755 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
26757 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
26759 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
26760 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
26761 (mips_move_to_gpr_cost): Remove ST_REGS case.
26762 (mips_move_from_gpr_cost): Likewise.
26763 (mips_register_move_cost): Likewise.
26764 (mips_secondary_reload_class): Likewise.
26766 2014-06-17 Richard Biener <rguenther@suse.de>
26768 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
26769 (pass_all_optimizations): Move 3rd copy-prop pass from after
26770 fre to before ifcombine/phiopt.
26772 2014-06-17 Richard Biener <rguenther@suse.de>
26774 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
26775 and allow all blocks to be forwarders.
26777 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
26780 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
26781 variable 'size'; calculate 'size' right in the front; use
26782 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
26783 pcum->aapcs_stack_words.
26785 2014-06-17 Nick Clifton <nickc@redhat.com>
26787 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
26788 (umulhi3, mulsidi3, umulsidi3): Likewise.
26790 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
26792 PR middle-end/61508
26793 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
26794 check for section name.
26796 2014-06-17 Richard Biener <rguenther@suse.de>
26798 * tree-ssa-propagate.c: Include domwalk.h.
26799 (substitute_and_fold): Outline main worker into a domwalker ...
26800 (substitute_and_fold_dom_walker::before_dom_children): ... here.
26801 Schedule stmts we can fully propagate for removal. Remove
26803 (substitute_and_fold): Apply a dominator walk to perform
26804 substitution. Process stmts scheduled for removal here.
26806 2014-06-17 Richard Biener <rguenther@suse.de>
26808 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
26809 of PHI node moving.
26811 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
26813 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
26814 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
26815 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
26816 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
26817 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
26819 (get_fpscr) : Likewise.
26821 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
26823 PR rtl-optimization/61325
26824 * lra-constraints.c (valid_address_p): Add forward declaration.
26825 (simplify_operand_subreg): Check address validity before and after
26826 alter_reg of memory subreg.
26828 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
26830 * config/i386/i386.c (decide_alg): Correctly handle
26831 maximum size of stringop algorithm.
26833 2014-06-16 Yury Gribov <y.gribov@samsung.com>
26835 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
26837 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
26839 PR rtl-optimization/61522
26840 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
26842 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
26845 * symtab.c (symtab_node::reset_section): New method.
26846 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
26848 * cgraph.h (reset_section): Declare.
26849 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
26850 do not consider comdat locals.
26851 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
26853 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
26854 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
26855 reset sections of symbols dragged out of the comdats.
26856 (function_and_variable_visibility): Reset sections of
26859 2014-06-16 Richard Biener <rguenther@suse.de>
26861 PR tree-optimization/61482
26862 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
26863 [-INF(OVF), +INF(OVF)] range.
26865 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26867 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
26868 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
26869 handling 32-bit multiplication.
26871 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
26873 PR middle-end/61430
26874 * lra-lives.c (process_bb_lives): Skip creating copy during
26875 insn scan when src/dest has constrained to same regno.
26877 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
26879 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
26880 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
26882 2014-06-16 Yury Gribov <y.gribov@samsung.com>
26884 * asan.c (check_func): New function.
26885 (maybe_create_ssa_name): Likewise.
26886 (build_check_stmt_with_calls): Likewise.
26887 (use_calls_p): Likewise.
26888 (report_error_func): Change interface.
26889 (build_check_stmt): Allow non-integer lengths; add support
26891 (asan_instrument): Likewise.
26892 (instrument_mem_region_access): Moved code to build_check_stmt.
26893 (instrument_derefs): Likewise.
26894 (instrument_strlen_call): Likewise.
26895 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
26896 * doc/invoke.texi: Describe new parameter.
26897 * params.def: Define new parameter.
26898 * params.h: Likewise.
26899 * sanitizer.def: Describe new builtins.
26901 2014-06-16 Richard Biener <rguenther@suse.de>
26903 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26904 Make all defs available at the end.
26905 (eliminate): If we remove a PHI node schedule cfg-cleanup.
26907 2014-06-18 Jakub Jelinek <jakub@redhat.com>
26910 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
26912 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26915 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
26916 initialization. Replace remaining use of uid.
26918 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
26920 * c-family/c-common.c (handle_tls_model_attribute): Use
26921 set_decl_tls_model.
26922 * c-family/c-common.c (handle_tls_model_attribute): Use
26923 set_decl_tls_model.
26924 * cgraph.h (struct varpool_node): Add tls_model.
26925 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
26926 * tree.h (DECL_TLS_MODEL): Update.
26927 (DECL_THREAD_LOCAL_P): Check that variable is static.
26928 (decl_tls_model): Declare.
26929 (set_decl_tls_model): Declare.
26930 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
26931 set symbol prorperties.
26932 (get_emutls_init_templ_addr): Cleanup.
26933 (new_emutls_decl): Update.
26934 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
26935 (lto_input_varpool_node): Likewise.
26936 * lto-streamer-out.c (hash_tree): Likewise.
26937 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
26938 not stream DECL_TLS_MODEL.
26939 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
26940 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
26942 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26944 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
26946 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26948 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
26949 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
26951 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
26952 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
26953 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
26954 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
26955 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
26956 (df_get_artificial_defs, df_get_artificial_uses)
26957 (df_single_def, df_single_use): Update accordingly.
26958 (df_refs_chain_dump): Take the first element in a linked list as
26959 parameter, rather than a pointer to an array of pointers.
26960 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
26961 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
26962 (df_chain_create_bb_process_use): Likewise.
26963 (df_md_bb_local_compute_process_def): Likewise.
26964 * fwprop.c (process_defs, process_uses): Likewise.
26965 (register_active_defs, update_uses): Likewise.
26966 (forward_propagate_asm): Update for new df_ref linking.
26967 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
26968 (df_null_ref_rec, df_null_mw_rec): Likewise.
26969 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
26971 (df_scan_free_bb_info): Remove check for null artificial_defs.
26972 (df_install_ref_incremental): Adjust for new df_ref linking.
26973 Use a single-element insertion rather than a full sort.
26974 (df_ref_chain_delete_du_chain): Take the first element
26975 in a linked list as parameter, rather than a pointer to an array of
26977 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
26978 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
26979 (df_insn_info_delete): Remove check for null defs and call to
26980 df_scan_free_mws_vec.
26981 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
26982 null rather than df_null_*_rec.
26983 (df_insn_rescan_debug_internal): Likewise, and update null
26984 checks in the same way. Remove check for null defs.
26985 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
26986 Move a single element rather doing a full sort.
26987 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
26989 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
26990 Initialize df_ref and df_mw_hardreg lists to null rather than
26992 (df_ref_compare): Take df_refs as parameter, transferring the
26993 old interface to...
26994 (df_ref_ptr_compare): ...this new function.
26995 (df_sort_and_compress_refs): Update accordingly.
26996 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
26997 old interface to...
26998 (df_mw_ptr_compare): ...this new function.
26999 (df_sort_and_compress_mws): Update accordingly.
27000 (df_install_refs, df_install_mws): Return a linked list rather than
27001 an array of pointers.
27002 (df_refs_add_to_chains): Assert that old lists are empty rather
27004 (df_insn_refs_verify): Don't handle null defs speciailly.
27005 * web.c (union_match_dups): Update for new df_ref linking.
27007 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
27009 * df.h (df_ref_create, df_ref_remove): Delete.
27010 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
27011 (df_ref_remove): Likewise.
27013 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
27015 * df.h (df_single_def, df_single_use): New functions.
27016 * ira.c (find_moveable_pseudos): Use them.
27018 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
27020 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
27021 * df-problems.c (df_note_bb_compute): Use it.
27022 * regstat.c (regstat_bb_compute_ri): Likewise.
27024 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
27026 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
27027 * cse.c (cse_extended_basic_block): Use them.
27028 * dce.c (mark_artificial_use): Likewise.
27029 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
27030 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
27031 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
27032 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
27033 (df_simulate_initialize_backwards): Likewise.
27034 (df_simulate_finalize_backwards): Likewise.
27035 (df_simulate_initialize_forwards): Likewise.
27036 (df_md_simulate_artificial_defs_at_top): Likewise.
27037 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
27038 * regrename.c (init_rename_info): Likewise.
27039 * regstat.c (regstat_bb_compute_ri): Likewise.
27040 (regstat_bb_compute_calls_crossed): Likewise.
27042 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
27044 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
27045 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
27046 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
27047 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
27048 * combine.c (create_log_links): Likewise.
27049 * compare-elim.c (find_flags_uses_in_insn): Likewise.
27050 (try_eliminate_compare): Likewise.
27051 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
27052 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
27053 (remove_reg_equal_equiv_notes_for_defs): Likewise.
27054 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
27055 (word_dce_process_block, dce_process_block): Likewise.
27056 * ddg.c (def_has_ccmode_p): Likewise.
27057 * df-core.c (df_bb_regno_first_def_find): Likewise.
27058 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
27059 * df-problems.c (df_rd_simulate_one_insn): Likewise.
27060 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
27061 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
27062 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
27063 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
27064 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
27065 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
27066 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
27067 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
27068 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
27069 * fwprop.c (local_ref_killed_between_p): Likewise.
27070 (all_uses_available_at, free_load_extend): Likewise.
27071 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
27072 * hw-doloop.c (scan_loop): Likewise.
27073 * ifcvt.c (dead_or_predicable): Likewise.
27074 * init-regs.c (initialize_uninitialized_regs): Likewise.
27075 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
27076 (process_bb_node_lives): Likewise.
27077 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
27078 (find_moveable_pseudos): Likewise.
27079 * loop-invariant.c (check_dependencies, record_uses): Likewise.
27080 * recog.c (peep2_find_free_register): Likewise.
27081 * ree.c (get_defs): Likewise.
27082 * regstat.c (regstat_bb_compute_ri): Likewise.
27083 (regstat_bb_compute_calls_crossed): Likewise.
27084 * sched-deps.c (find_inc, find_mem): Likewise.
27085 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
27086 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
27087 * shrink-wrap.c (requires_stack_frame_p): Likewise.
27088 (prepare_shrink_wrap): Likewise.
27089 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
27090 * web.c (union_defs, pass_web::execute): Likewise.
27091 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
27092 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
27094 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
27096 * lra-assign.c (assign_by_spills): Add code to assign vector regs
27097 to inheritance pseudos.
27098 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
27100 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
27103 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
27104 (BU_MISC_2): Rename to ...
27105 (BU_LDBL128_2): ... this.
27106 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
27107 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
27108 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27109 RS6000_BTM_LDBL128.
27110 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
27111 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
27112 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
27113 (unpacktf_1): Likewise.
27114 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
27115 (__builtin_longdouble_dw1): Likewise.
27116 * doc/sourcebuild.texi (longdouble128): Document.
27118 2014-06-13 Jeff Law <law@redhat.com>
27120 PR rtl-optimization/61094
27121 PR rtl-optimization/61446
27122 * ree.c (combine_reaching_defs): Get the mode for the copy from
27123 the extension insn rather than the defining insn.
27125 2014-06-13 Dehao Chen <dehao@google.com>
27127 * dwarf2out.c (add_linkage_name): Emit more linkage name.
27129 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
27131 * doc/install.texi (--enable-linker-plugin-configure-flags)
27132 (--enable-linker-plugin-flags): Document new flags.
27134 2014-06-13 Martin Jambor <mjambor@suse.cz>
27137 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
27138 cache_token if returning early.
27140 2014-06-13 Nick Clifton <nickc@redhat.com>
27142 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
27143 requested alignment is active.
27144 (LABEL_ALIGN): Likewise.
27145 (LOOP_ALIGN): Likewise.
27147 2014-06-13 Richard Biener <rguenther@suse.de>
27149 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
27150 Rewrite to propagate the VN result into all uses where
27151 possible and to remove stmts becoming dead because of that.
27152 (eliminate): Generalize stmt removal handling, remove in
27153 reverse dominator order to support proper debug stmt
27154 generation. Update stmts before removing stmts.
27155 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
27157 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27159 PR tree-optimization/61375
27160 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
27161 symbolic number cannot be represented in an uint64_t.
27162 (find_bswap_or_nop_1): Likewise.
27164 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
27166 * symtab.c (symtab_node::reset_section): New method.
27167 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
27169 * cgraph.h (reset_section): Declare.
27170 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
27171 do not consider comdat locals.
27172 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
27174 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
27175 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
27176 reset sections of symbols dragged out of the comdats.
27177 (function_and_variable_visibility): Reset sections of
27180 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
27182 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
27183 to use symtab and decl_binds_to_current_def_p
27184 * tree-vectorizer.c (increase_alignment): Increase alignment
27185 of alias target, too.
27187 2014-06-12 Jakub Jelinek <jakub@redhat.com>
27189 PR middle-end/61486
27190 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
27191 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
27192 if outer combined construct is distribute.
27193 (gimplify_omp_for): For OMP_DISTRIBUTE set
27194 gimplify_omp_ctxp->distribute.
27195 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
27196 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
27197 mapping into decl map.
27199 2014-06-12 Jason Merrill <jason@redhat.com>
27201 * common.opt (fabi-version): Change default to 0.
27203 2014-06-12 Jason Merrill <jason@redhat.com>
27205 * toplev.c (process_options): Reject -fabi-version=1.
27207 2014-06-12 Jeff Law <law@redhat.com>
27209 PR tree-optimization/61009
27210 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
27211 value when we stop processing a block due to problematic PHIs.
27213 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
27215 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
27216 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
27217 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
27218 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
27219 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
27220 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
27221 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
27222 are not in the spec.
27224 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
27227 * config/aarch64/aarch64-modes.def: Add V1DFmode.
27228 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
27231 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
27233 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
27235 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
27238 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
27239 loading from address spaces.
27241 2014-06-12 Martin Liska <mliska@suse.cz>
27244 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
27245 statement is reachable.
27247 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
27249 * symtab.c (section_hash): New hash.
27250 (symtab_unregister_node): Clear section before freeing.
27251 (hash_section_hash_entry): New haser.
27252 (eq_sections): New function.
27253 (symtab_node::set_section_for_node): New method.
27254 (set_section_1): Update.
27255 (symtab_node::set_section): Take string instead of tree as parameter.
27256 (symtab_resolve_alias): Update.
27257 * cgraph.h (section_hash_entry_d): New structure.
27258 (section_hash_entry): New typedef.
27259 (cgraph_node): Change comdat_group_ to x_comdat_group,
27260 change section_ to x_section and turn into section_hash_entry;
27261 update accestors; put set_section_for_node offline.
27262 * tree.c (decl_section_name): Turn into string.
27263 (set_decl_section_name): Change parameter to be string.
27264 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
27265 * sdbout.c (sdbout_one_type): Update.
27266 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
27267 * varasm.c (IN_NAMED_SECTION, get_named_section,
27268 resolve_unique_section, hot_function_section, get_named_text_section,
27269 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
27270 make_decl_rtl, default_unique_section): Update.
27271 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
27272 (c6x_elf_unique_section): Update.
27273 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
27274 * config/pa/pa.c (pa_function_section): Update.
27275 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
27276 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
27277 * config/arc/arc.c (arc_in_small_data_p): Update.
27278 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
27279 * config/mcore/mcore.c (mcore_unique_section): Update.
27280 * config/mips/mips.c (mips16_build_function_stub): Update.
27281 (mips16_build_call_stub): Update.
27282 (mips_function_rodata_section): Update.
27283 (mips_in_small_data_p): Update.
27284 * config/score/score.c (score_in_small_data_p): Update.
27285 * config/rx/rx.c (rx_in_small_data): Update.
27286 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
27287 (rs6000_xcoff_asm_named_section): Update.
27288 (rs6000_xcoff_unique_section): Update.
27289 * config/frv/frv.c (frv_string_begins_with): Update.
27290 (frv_in_small_data_p): Update.
27291 * config/v850/v850.c (v850_encode_data_area): Update.
27292 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
27293 (bfin_handle_l1_data_attribute): Update.
27294 (bfin_handle_l2_attribute): Update.
27295 * config/mep/mep.c (mep_unique_section): Update.
27296 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
27298 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
27299 (h8300_handle_tiny_data_attribute): Update.
27300 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
27301 (m32r_in_small_data_p): Update.
27302 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
27303 * config/i386/i386.c (ix86_in_large_data_p): Update.
27304 * config/i386/winnt.c (i386_pe_unique_section): Update.
27305 * config/darwin.c (darwin_function_section): Update.
27306 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
27307 * tree-emutls.c (get_emutls_init_templ_addr): Update.
27308 (new_emutls_decl): Update.
27309 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
27310 input_varpool_node): Update.
27311 (ead_string_cst): Turn to ...
27312 (read_string): ... this one.
27313 * dwarf2out.c (secname_for_decl): Update.
27314 * asan.c (asan_protect_global): Update.
27316 2014-06-11 DJ Delorie <dj@redhat.com>
27318 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
27320 * config/rx/rx.c (rx_option_override): Likewise.
27321 (rx_align_for_label): Likewise.
27323 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
27325 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
27327 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
27330 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27332 * common.md: New file.
27333 * doc/md.texi: Update description of generic, machine-independent
27335 * config/s390/constraints.md (e): Delete.
27336 * Makefile.in (md_file): Include common.md.
27337 * config/m32c/t-m32c (md_file): Likewise.
27338 * genpreds.c (general_mem): New array.
27339 (generic_constraint_letters): Remove constraints now defined by
27341 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
27342 Allow the first character to be '<' or '>' as well.
27343 * genoutput.c (general_mem): New array.
27344 (indep_constraints): Remove constraints now defined by common.md.
27345 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
27346 Remove special handling of 'm'.
27347 * ira-costs.c (record_reg_classes): Remove special handling of
27348 constraints now defined by common.md.
27349 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
27350 * ira-lives.c (single_reg_class): Likewise.
27351 (ira_implicitly_set_insn_hard_regs): Likewise.
27352 * lra-constraints.c (reg_class_from_constraints): Likewise.
27353 (process_alt_operands, process_address, curr_insn_transform): Likewise.
27354 * postreload.c (reload_cse_simplify_operands): Likewise.
27355 * reload.c (push_secondary_reload, scratch_reload_class)
27356 (find_reloads, alternative_allows_const_pool_ref): Likewise.
27357 * reload1.c (maybe_fix_stack_asms): Likewise.
27358 * targhooks.c (default_secondary_reload): Likewise.
27359 * stmt.c (parse_output_constraint): Likewise.
27360 * recog.c (preprocess_constraints): Likewise.
27361 (constrain_operands, peep2_find_free_register): Likewise.
27362 (asm_operand_ok): Likewise, but add a comment saying why 'o'
27363 must be handled specially.
27365 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27367 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
27368 * genpreds.c (have_const_dbl_constraints): Delete.
27369 (add_constraint): Don't set it.
27370 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
27371 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
27372 constraints using the lookup_constraint logic.
27373 * ira-lives.c (single_reg_class): Likewise.
27374 * ira.c (ira_setup_alts): Likewise.
27375 * lra-constraints.c (process_alt_operands): Likewise.
27376 * recog.c (asm_operand_ok, constrain_operands): Likewise.
27377 * reload.c (find_reloads): Likewise.
27379 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27381 * genpreds.c (const_int_start, const_int_end): New variables.
27382 (choose_enum_order): Output CONST_INT constraints before memory
27384 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
27386 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
27387 * ira.c (ira_setup_alts): Likewise.
27388 * lra-constraints.c (process_alt_operands): Likewise.
27389 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
27390 * reload.c (find_reloads): Likewise.
27392 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27394 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
27395 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
27396 * recog.c (preprocess_constraints): Update accordingly.
27398 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27400 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
27401 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
27402 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
27403 * genpreds.c (print_type_tree): New function.
27404 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
27405 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
27406 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
27407 Write out enum constraint_type and get_constraint_type.
27408 * lra-constraints.c (satisfies_memory_constraint_p): Take a
27409 constraint_num rather than a constraint string.
27410 (satisfies_address_constraint_p): Likewise.
27411 (reg_class_from_constraints): Avoid old constraint macros.
27412 (process_alt_operands, process_address_1): Likewise.
27413 (curr_insn_transform): Likewise.
27414 * ira-costs.c (record_reg_classes): Likewise.
27415 (record_operand_costs): Likewise.
27416 * ira-lives.c (single_reg_class): Likewise.
27417 (ira_implicitly_set_insn_hard_regs): Likewise.
27418 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
27419 * postreload.c (reload_cse_simplify_operands): Likewise.
27420 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
27421 (constrain_operands, peep2_find_free_register): Likewise.
27422 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
27423 (find_reloads, alternative_allows_const_pool_ref): Likewise.
27424 * reload1.c (maybe_fix_stack_asms): Likewise.
27425 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
27426 * targhooks.c (default_secondary_reload): Likewise.
27427 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
27428 to EXTRA_CONSTRAINT_STR.
27429 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
27431 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27433 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
27434 (write_constraint_satisfied_p_array): ...this new function.
27435 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
27437 (write_insn_preds_c): Update accordingly.
27439 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27441 * genpreds.c (write_lookup_constraint): Rename to...
27442 (write_lookup_constraint_1): ...this.
27443 (write_lookup_constraint_array): New function.
27444 (write_tm_preds_h): Define lookup_constraint as an inline function
27445 that uses write_lookup_constraint_array where possible.
27446 (write_insn_preds_c): Update for the changes above.
27448 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27450 * doc/md.texi (regclass_for_constraint): Rename to...
27451 (reg_class_for_constraint): ...this.
27452 * genpreds.c (num_constraints, enum_order, register_start)
27453 (register_end, satisfied_start, memory_start, memory_end)
27454 (address_start, address_end): New variables.
27455 (add_constraint): Count the number of constraints.
27456 (choose_enum_order): New function.
27457 (write_enum_constraint_num): Iterate over enum_order.
27458 (write_regclass_for_constraint): Rename to...
27459 (write_reg_class_for_constraint_1): ...this and update output
27461 (write_constraint_satisfied_p): Rename to...
27462 (write_constraint_satisfied_p_1): ...this and update output
27463 accordingly. Do nothing if all extra constraints are register
27465 (write_insn_extra_memory_constraint): Delete.
27466 (write_insn_extra_address_constraint): Delete.
27467 (write_range_function): New function.
27468 (write_tm_preds_h): Define constraint_satisfied_p and
27469 reg_class_for_constraint as inline functions that do a range check
27470 before calling the out-of-line function. Use write_range_function
27471 to implement insn_extra_{register,memory,address}_constraint,
27472 the first of which is new.
27473 (write_insn_preds_c): Update after above changes to write_* functions.
27474 (main): Call choose_enum_order.
27476 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
27478 PR tree-optimization/61306
27479 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
27480 expression instead of its size.
27481 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
27482 false to prevent optimization when the result is unpredictable due to
27483 arithmetic right shift of signed type with highest byte is set.
27484 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
27485 (init_symbolic_number): Likewise.
27486 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
27487 when the result is unpredictable due to sign extension.
27489 2014-06-11 Terry Guo <terry.guo@arm.com>
27491 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
27492 (*thumb1_addsi3): Ditto.
27493 (*thumb_subdi3): Ditto.
27494 (thumb1_subsi3_insn): Ditto.
27495 (*thumb_mulsi3): Ditto.
27496 (*thumb_mulsi3_v6): Ditto.
27497 (*thumb1_andsi3_insn): Ditto.
27498 (thumb1_bicsi3): Ditto.
27499 (*thumb1_iorsi3_insn): Ditto.
27500 (*thumb1_xorsi3_insn): Ditto.
27501 (*thumb1_ashlsi3): Ditto.
27502 (*thumb1_ashrsi3): Ditto.
27503 (*thumb1_lshrsi3): Ditto.
27504 (*thumb1_rotrsi3): Ditto.
27505 (*thumb1_negdi2): Ditto.
27506 (*thumb1_negsi2): Ditto.
27507 (*thumb1_abssi2): Ditto.
27508 (*thumb1_neg_abssi2): Ditto.
27509 (*thumb1_one_cmplsi2): Ditto.
27510 (*thumb1_zero_extendhisi2): Ditto.
27511 (*thumb1_zero_extendqisi2): Ditto.
27512 (*thumb1_zero_extendqisi2_v6): Ditto.
27513 (thumb1_extendhisi2): Ditto.
27514 (thumb1_extendqisi2): Ditto.
27515 (*thumb1_movdi_insn): Ditto.
27516 (*thumb1_movsi_insn): Ditto.
27517 (*thumb1_movhi_insn): Ditto.
27518 (thumb_movhi_clobber): Ditto.
27519 (*thumb1_movqi_insn): Ditto.
27520 (*thumb1_movhf): Ditto.
27521 (*thumb1_movsf_insn): Ditto.
27522 (*thumb_movdf_insn): Ditto.
27523 (movmem12b): Ditto.
27525 (cbranchqi4): Ditto.
27526 (cbranchsi4_insn): Ditto.
27527 (cbranchsi4_scratch): Ditto.
27528 (*negated_cbranchsi4): Ditto.
27529 (*tbit_cbranch): Ditto.
27530 (*tlobits_cbranch): Ditto.
27531 (*tstsi3_cbranch): Ditto.
27532 (*cbranchne_decr1): Ditto.
27533 (*addsi3_cbranch): Ditto.
27534 (*addsi3_cbranch_scratch): Ditto.
27535 (*thumb_cmpdi_zero): Ditto.
27536 (cstoresi_eq0_thumb1): Ditto.
27537 (cstoresi_ne0_thumb1): Ditto.
27538 (*cstoresi_eq0_thumb1_insn): Ditto.
27539 (*cstoresi_ne0_thumb1_insn): Ditto.
27540 (cstoresi_nltu_thumb1): Ditto.
27541 (cstoresi_ltu_thumb1): Ditto.
27542 (thumb1_addsi3_addgeu): Ditto.
27543 (*thumb_jump): Ditto.
27544 (*call_reg_thumb1_v5): Ditto.
27545 (*call_reg_thumb1): Ditto.
27546 (*call_value_reg_thumb1_v5): Ditto.
27547 (*call_value_reg_thumb1): Ditto.
27548 (*call_insn): Ditto.
27549 (*call_value_insn): Ditto.
27550 (thumb1_casesi_internal_pic): Ditto.
27551 (thumb1_casesi_dispatch): Ditto.
27552 (*thumb1_indirect_jump): Ditto.
27553 (prologue_thumb1_interwork): Ditto.
27554 (*epilogue_insns): Ditto.
27555 (consttable_1): Ditto.
27556 (consttable_2): Ditto.
27557 (tablejump): Ditto.
27558 (*thumb1_tablejump): Ditto.
27559 (thumb_eh_return): Ditto.
27560 (define_peephole2): Two of them are thumb1 only and got moved into
27561 new file thumb1.md.
27562 (define_split): Six of them are thumb1 only and got moved into new
27564 * config/arm/thumb1.md: New file comprised of above thumb1 only
27567 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27569 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
27570 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
27572 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
27573 (aarch64_crc_builtin_datum): New struct.
27574 (aarch64_crc_builtin_data): New.
27575 (aarch64_init_crc32_builtins): New function.
27576 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
27577 (aarch64_crc32_expand_builtin): New.
27578 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
27579 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
27580 __ARM_FEATURE_CRC32 when appropriate.
27581 (TARGET_CRC32): Define.
27582 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
27583 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
27584 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
27585 (aarch64_<crc_variant>): New pattern.
27586 * config/aarch64/arm_acle.h: New file.
27587 * config/aarch64/iterators.md (CRC): New int iterator.
27588 (crc_variant, crc_mode): New int attributes.
27589 * doc/aarch64-acle-intrinsics.texi: New file.
27590 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
27591 Include aarch64-acle-intrinsics.texi.
27593 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
27595 * tree-vect-data-refs.c (vect_grouped_store_supported): New
27596 check for stores group of length 3.
27597 (vect_permute_store_chain): New permutations for stores group of
27599 * tree-vect-stmts.c (vect_model_store_cost): Change cost
27600 of vec_perm_shuffle for the new permutations.
27602 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
27604 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
27605 table rewriting temporarily on targets not supporting ONE_ONLY.
27607 2014-06-11 Richard Biener <rguenther@suse.de>
27609 PR middle-end/61437
27611 2014-06-04 Richard Biener <rguenther@suse.de>
27613 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
27614 TREE_PUBLIC and DECL_EXTERNAL decls.
27616 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
27618 * varasm.c (set_implicit_section): New function.
27619 (resolve_unique_section): Use it to set implicit section
27621 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
27622 (default_function_section): Likewise.
27623 (decl_binds_to_current_def_p): Constify argument.
27624 * varasm.h (decl_binds_to_current_def_p): Update prototype.
27625 * asan.c (asan_protect_global): Use
27626 symtab_get_node (decl)->implicit_section.
27627 * symtab.c (dump_symtab_base): Dump implicit sections.
27628 (verify_symtab_base): Verify sanity of sectoins and comdats.
27629 (symtab_resolve_alias): Alias share the section of its target.
27630 (set_section_1): New function.
27631 (symtab_node::set_section): Move here, recurse to aliases.
27632 (verify_symtab): Check for duplicated symtab lists.
27633 * tree-core.h (implicit_section_name_p): Remove.
27634 * tree-vect-data-refs.c: Include varasm.h.
27635 (vect_can_force_dr_alignment_p): Fix conditional on when
27636 decl bints to current definition; use
27637 symtab_get_node (decl)->implicit_section.
27638 * cgraph.c (cgraph_make_node_local_1): Fix section set.
27639 * cgraph.h (struct symtab_node): Add implicit_section.
27640 (set_section): Rename to ...
27641 (set_section_for_node): ... this one.
27642 (set_section): Declare.
27643 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
27644 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27645 input_overwrite_node, input_varpool_node): Stream implicit_section.
27646 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
27647 removal; it will fail in LTO.
27649 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27651 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
27652 Change second alternative type to f_mcr.
27653 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
27654 and 12th alternatives' types to f_mcr and f_mrc.
27655 (*movdi_aarch64): Same for 12th and 13th alternatives.
27656 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
27657 (aarch64_movtilow_tilow): Change type to fmov.
27659 2014-06-10 Jiong Wang <jiong.wang@arm.com>
27661 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
27662 (aarch64_save_or_restore_callee_save_registers): Fix layout.
27664 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27666 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
27668 (aarch64_sqrdmulh_lane<mode>): Likewise.
27669 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
27670 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
27671 (aarch64_sqdmulh_laneq<mode>): New expander.
27672 (aarch64_sqrdmulh_laneq<mode>): Likewise.
27673 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
27674 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
27675 (aarch64_sqdmulh_lane<mode>): New expander.
27676 (aarch64_sqrdmulh_lane<mode>): Likewise.
27677 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
27678 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
27679 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
27680 (aarch64_sqdmlal_laneq<mode>): Likewise.
27681 (aarch64_sqdmlsl_lane<mode>): Likewise.
27682 (aarch64_sqdmlsl_laneq<mode>): Likewise.
27683 (aarch64_sqdmlal2_lane<mode>): Likewise.
27684 (aarch64_sqdmlal2_laneq<mode>): Likewise.
27685 (aarch64_sqdmlsl2_lane<mode>): Likewise.
27686 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
27687 (aarch64_sqdmull_lane<mode>): Likewise.
27688 (aarch64_sqdmull_laneq<mode>): Likewise.
27689 (aarch64_sqdmull2_lane<mode>): Likewise.
27690 (aarch64_sqdmull2_laneq<mode>): Likewise.
27692 2014-06-10 Richard Biener <rguenther@suse.de>
27694 PR tree-optimization/61438
27695 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
27696 (eliminate_dom_walker::before_dom_children): Only try to inhibit
27697 insertion of IVs if running PRE.
27698 (eliminate): Adjust.
27699 (pass_pre::execute): Likewise.
27700 (pass_fre::execute): Likewise.
27702 2014-06-10 Richard Biener <rguenther@suse.de>
27704 PR middle-end/61456
27705 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
27706 Do not use the main variant for the type comparison.
27707 (ncr_compar): Likewise.
27708 (nonoverlapping_component_refs_p): Likewise.
27710 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
27712 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
27713 REG_CFA_RESTORE mode.
27715 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
27717 * config/i386/i386.c (expand_vec_perm_pblendv): New.
27718 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
27719 expand_vec_perm_pblendv.
27721 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27723 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
27725 Simplify description of __crc32d and __crc32cd intrinsics.
27726 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
27729 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
27732 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
27733 * config.in: Regenerate.
27734 * configure: Likewise.
27736 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
27738 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
27740 (intersect_static_var_sets): Remove.
27741 (propagate): Do not prune local statics.
27743 2014-06-10 Jakub Jelinek <jakub@redhat.com>
27746 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
27747 Set lastprivate_firstprivate even if omp_private_outer_ref
27748 langhook returns true.
27749 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
27750 langhook, call unshare_expr on new_var and call
27751 build_outer_var_ref to get the last argument.
27753 2014-06-10 Marek Polacek <polacek@redhat.com>
27756 * doc/extend.texi: Add cindex for transparent_union.
27758 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
27760 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
27761 init_symbolic_number ().
27763 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
27765 PR middle-end/61141
27766 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
27767 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
27768 (verify_rtl_sharing): Likewise.
27770 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
27773 * tree.c (build_qualified_type): Use a canonical type for
27776 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27778 * config/arm/arm-modes.def: Remove XFmode.
27780 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
27783 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
27784 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
27785 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
27786 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
27787 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
27788 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
27789 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
27790 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
27791 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
27793 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
27795 * tree-core.h (tree_decl_with_vis): Remove section_name.
27797 2014-06-09 Kito Cheng <kito@0xlab.org>
27799 * ira.c (ira): Don't call init_caller_save if LRA enabled
27800 since LRA use its own infrastructure to handle that.
27802 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27804 * symtab.c (dump_symtab_base): Update dumping.
27805 (symtab_make_decl_local): Clear only DECL_COMDAT.
27806 * tree-vect-data-refs.c (Check that variable is static before
27807 tampering with sections.
27808 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
27809 (cgraph_create_virtual_clone): Likewise.
27810 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
27811 (decl_section_name, set_decl_section_name): New accessors.
27812 (find_decls_types_r): Do not walk section name
27813 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
27814 (decl_comdat_group, decl_comdat_group_id): Constify.
27815 (decl_section_name, set_decl_section_name): Update.
27816 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
27817 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
27818 (cgraph_make_node_local_1): Clear section and comdat group.
27819 * cgraph.h (set_comdat_group): Sanity check.
27820 (get_section, set_section): New.
27821 * ipa-comdats.c (ipa_comdats): Use get_section.
27822 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
27823 * lto-streamer-out.c: Do not follow section names.
27824 * c-family/c-common.c (handle_section_attribute): Update.
27825 * lto-cgraph.c (lto_output_node): Output section.
27826 (lto_output_varpool_node): Likewise.
27827 (read_comdat_group): Rename to ...
27828 (read_identifier): ... this one.
27829 (read_string_cst): New function.
27830 (input_node, input_varpool_node): Input section names.
27831 * tree-emutls.c (get_emutls_init_templ_addr): Update.
27832 (new_emutls_decl): Update.
27833 (secname_for_decl): Check section names only of static vars.
27834 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
27835 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
27836 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
27837 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
27838 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
27839 * config/mcore/mcore.c (mcore_unique_section): Likewise.
27840 * config/mips/mips.c (mips16_build_function_stub): Likewise.
27841 * config/v850/v850.c (v850_insert_attributes): Likewise.
27842 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
27844 (h8300_handle_tiny_data_attribute): Likewise.
27845 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
27846 (bfin_handle_l2_attribute): Likewise.
27848 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27850 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
27851 remove static initializer.
27853 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27855 * varasm.c (use_blocks_for_decl_p): Check symbol table
27856 instead of alias attribute.
27857 (place_block_symbol): Recurse on aliases.
27859 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27861 * ipa-visibility.c: Include varasm.h
27862 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
27864 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27866 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
27867 outputting aliases.
27869 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
27871 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
27872 from test_insn into GGC space escape via SET_SRC.
27874 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
27876 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
27877 call statement, if any.
27878 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
27879 statements, if any. Tidy up.
27881 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27884 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
27885 iterators, VSX_D that handles 64-bit types, and VSX_LE that
27886 handles swapping the two 64-bit double words on little endian
27887 systems. Include V1TImode and optionally TImode in VSX_LE so that
27888 these types are properly swapped. Change all of the insns and
27889 splits that do the 64-bit swaps to use VSX_LE.
27890 (vsx_le_perm_load_<mode>): Likewise.
27891 (vsx_le_perm_store_<mode>): Likewise.
27892 (splitters for little endian memory operations): Likewise.
27893 (vsx_xxpermdi2_le_<mode>): Likewise.
27894 (vsx_lxvd2x2_le_<mode>): Likewise.
27895 (vsx_stxvd2x2_le_<mode>): Likewise.
27897 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
27900 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
27901 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
27902 and corresponding splitters. Zero extend general register
27903 or memory input operand to XMM temporary. Enable for
27904 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
27905 (floatunssi<mode>2): Update expander predicate.
27907 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
27909 PR rtl-optimization/61325
27910 * lra-constraints.c (process_address_1): Check scale equal to one
27911 to prevent transformation: base + scale * index => base + new_reg.
27913 2014-06-06 Richard Biener <rguenther@suse.de>
27915 PR tree-optimization/59299
27916 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
27918 (nearest_common_dominator_of_uses): Likewise.
27919 (statement_sink_location): Adjust. Support sinking loads.
27921 2014-06-06 Martin Jambor <mjambor@suse.cz>
27923 * ipa-prop.c (get_place_in_agg_contents_list): New function.
27924 (build_agg_jump_func_from_list): Likewise.
27925 (determine_known_aggregate_parts): Renamed to
27926 determine_locally_known_aggregate_parts. Moved some functionality
27927 to the two functions above, removed bound checks.
27929 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
27931 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
27932 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
27933 (aarch64_progress_pointer): Likewise.
27934 (aarch64_copy_one_part_and_move_pointers): Likewise.
27935 (aarch64_expand_movmen): Likewise.
27936 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
27937 * config/aarch64/aarch64.md (movmem<mode>): New.
27939 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
27941 * targhooks.c (default_add_stmt_cost): Call target specific
27942 hook instead of default one.
27944 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
27946 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
27947 endianness instead of host endianness.
27948 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
27951 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
27954 * function.c (instantiate_decls): Process the saved static chain.
27955 (expand_function_start): If not optimizing, save the static chain
27957 * tree-nested.c (convert_all_function_calls): Always create the static
27958 chain for nested functions if not optimizing.
27960 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
27962 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
27964 2014-06-06 Richard Biener <rguenther@suse.de>
27966 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
27967 (construct_init_block): Likewise.
27968 (construct_exit_block): Likewise.
27969 (pass_expand::execute): Likewise.
27970 * graphite.c (graphite_transforms): Replace check for current_loops
27971 with a check for > 1 loops.
27972 (pass_graphite_transforms::execute): Adjust.
27973 * ipa-split.c (split_function): Remove check for current_loops.
27974 * omp-low.c (expand_parallel_call): Likewise.
27975 (expand_omp_for_init_counts): Likewise.
27976 (extract_omp_for_update_vars): Likewise.
27977 (expand_omp_for_generic): Likewise.
27978 (expand_omp_sections): Likewise.
27979 (expand_omp_target): Likewise.
27980 * tracer.c (tail_duplicate): Likewise.
27981 (pass_tracer::execute): Likewise.
27982 * trans-mem.c (expand_transaction): Likewise.
27983 * tree-complex.c (expand_complex_div_wide): Likewise.
27984 * tree-eh.c (lower_resx): Likewise.
27985 (cleanup_empty_eh_merge_phis): Likewise.
27986 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
27987 current_loops with a check for > 1 loops.
27988 (pass_predcom::execute): Adjust.
27989 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
27990 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
27991 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
27992 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
27993 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
27994 * tree-switch-conversion.c (process_switch): Likewise.
27995 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
27996 * tree-vrp.c (vrp_visit_phi_node): Likewise.
27997 (execute_vrp): Likewise.
27998 * ubsan.c (ubsan_expand_null_ifn): Likewise.
28000 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
28002 * rtl.h (insn_location): Declare.
28003 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
28004 with UNKNOWN_LOCATION.
28005 * emit-rtl.c (insn_location): New function.
28006 * final.c (notice_source_line): Check that the instruction has a
28007 location before retrieving it and use insn_location.
28008 * modulo-sched.c (loop_single_full_bb_p): Likewise.
28009 * print-rtl.c (print_rtx): Likewise.
28011 2014-06-06 Richard Biener <rguenther@suse.de>
28013 * passes.def: Move 2nd VRP pass before phi-only-cprop.
28015 2014-06-06 Christian Bruel <christian.bruel@st.com>
28017 PR tree-optimization/43934
28018 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
28021 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
28023 * ira-lives.c (single_reg_class): Add missing break. Explicitly
28024 return NO_REGS for extra address and memory constraints. Handle
28025 operands that match (or are equivalent to something that matches)
28026 extra constant constraints. Ignore other non-register operands.
28028 2014-06-06 Alan Modra <amodra@gmail.com>
28031 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
28032 * doc/tm.texi: Regenerate.
28033 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
28034 Use throughout in place of REG_PARM_STACK_SPACE.
28035 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
28036 "incoming" param. Pass to rs6000_function_parms_need_stack.
28037 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
28038 prototype_p when incoming. Use function decl when incoming
28039 to handle K&R style functions.
28040 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
28041 (INCOMING_REG_PARM_STACK_SPACE): Define.
28043 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28046 * cfgexpand.c (expand_debug_expr): Use address space of nested
28047 TREE_TYPE for ADDR_EXPR and MEM_REF.
28049 2014-06-05 Jeff Law <law@redhat.com>
28051 PR tree-optimization/61289
28052 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
28053 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
28054 looking for those which match LHS. All callers changed.
28055 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
28056 parameters and code which manipulated them. All callers changed.
28057 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
28058 and DST_MAP parameters. Simplify invalidation code by just calling
28059 invalidate_equivalences. All callers changed.
28060 (thread_across_edge): Simplify now that we don't need to maintain
28061 the map of equivalences to invalidate.
28063 2014-06-05 Kai Tietz <ktietz@redhat.com>
28064 Richard Henderson <rth@redhat.com>
28067 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
28068 checking for !TARGET_X32.
28069 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
28070 (sibcall_intern): New define_insn, plus required peepholes.
28071 (sibcall_pop_intern): Likewise.
28072 (sibcall_value_intern): Likewise.
28073 (sibcall_value_pop_intern): Likewise.
28075 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
28077 * tree-inline.c (tree_function_versioning): Check DF info existence
28078 before accessing it.
28080 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
28082 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
28084 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
28085 aarch64_frame hard_fp_offset and frame_size.
28086 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
28087 frame_size; remove original_frame_size.
28088 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
28089 (aarch64_initial_elimination_offset): Remove frame_size and
28090 offset. Use aarch64_frame frame_size.
28092 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
28093 Jiong Wang <jiong.wang@arm.com>
28094 Renlin <renlin.li@arm.com>
28096 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
28097 initialization of R30 offset. Update offset. Iterate core
28098 regisers upto X30. Remove X29, X30 specific code.
28100 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
28101 Jiong Wang <jiong.wang@arm.com>
28103 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
28104 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
28105 (aarch64_register_saved_on_entry): Adjust test.
28107 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
28109 * config/aarch64/aarch64.h (machine_function): Move
28110 saved_varargs_size from here...
28111 (aarch64_frame): ... to here.
28113 * config/aarch64/aarch64.c (aarch64_expand_prologue)
28114 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
28115 (aarch64_initial_elimination_offset)
28116 (aarch64_setup_incoming_varargs): Adjust location of
28117 saved_varargs_size.
28119 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
28121 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
28124 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
28125 Prachi Godbole <Prachi.Godbole@imgtec.com>
28127 * config/mips/mips-cpus.def: Add definition for p5600. Updated
28128 mips32r5 entry to use PROCESSOR_P5600.
28129 * config/mips/mips-tables.opt: Regenerate.
28130 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
28131 * config/mips/mips.c (mips_fmadd_bypass): New function.
28132 (mips_rtx_cost_data): Add costs for p5600.
28133 (mips_issue_rate): Add support for p5600.
28134 (mips_multipass_dfa_lookahead): Likewise.
28135 * config/mips/mips.h (TUNE_P5600): New define.
28136 (TUNE_MACC_CHAINS): Add TUNE_P5600.
28137 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
28138 * config/mips/mips.md: Include p5600.md.
28139 (processor): Add p5600.
28140 * config/mips/p5600.md: New file.
28142 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
28144 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
28145 * config/i386/predicates.md (palignr_operand): New.
28146 Indicates if permutation is suitable for palignr instruction.
28148 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
28150 PR tree-optimization/61319
28151 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
28152 stmt belongs to loop.
28154 2014-06-05 Richard Biener <rguenther@suse.de>
28156 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
28157 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
28158 (lookup_tmp_var): Adjust.
28159 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
28161 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28163 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
28165 2014-06-05 Marek Polacek <polacek@redhat.com>
28168 * doc/invoke.texi: Document -Wlogical-not-parentheses.
28170 2014-06-04 Tom de Vries <tom@codesourcery.com>
28172 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
28175 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
28177 PR tree-optimization/61385
28178 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
28180 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
28182 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
28183 changed to use fatal_error.
28184 (main): Ensure lto_wrapper_cleanup is run atexit.
28186 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
28188 * lra-constraints.c (valid_address_p): Move earlier in file.
28189 (address_eliminator): New structure.
28190 (satisfies_memory_constraint_p): New function.
28191 (satisfies_address_constraint_p): Likewise.
28192 (process_alt_operands, process_address, curr_insn_transform): Use them.
28194 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
28196 * lra-int.h (lra_static_insn_data): Make operand_alternative a
28198 (target_lra_int, default_target_lra_int, this_target_lra_int)
28199 (op_alt_data): Delete.
28200 * lra.h (lra_init): Delete.
28201 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
28202 (init_insn_code_data_once): Remove op_alt_data handling.
28203 (finish_insn_code_data_once): Likewise.
28204 (init_op_alt_data): Delete.
28205 (get_static_insn_data): Initialize operand_alternative to null.
28206 (free_insn_recog_data): Cast operand_alternative before freeing it.
28207 (setup_operand_alternative): Take the operand_alternative as
28208 parameter and assume it isn't already cached in the static
28210 (lra_set_insn_recog_data): Update accordingly.
28211 (lra_init): Delete.
28212 * ira.c (ira_init): Don't call lra_init.
28213 * target-globals.h (this_target_lra_int): Declare.
28214 (target_globals): Remove lra_int.
28215 (restore_target_globals): Update accordingly.
28216 * target-globals.c: Don't include lra-int.h.
28217 (default_target_globals, save_target_globals): Remove lra_int.
28219 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
28221 * recog.h (operand_alternative): Convert reg_class, reject,
28222 matched and matches into bitfields.
28223 (preprocess_constraints): New overload.
28224 (preprocess_insn_constraints): New function.
28225 (preprocess_constraints): Take the insn as parameter.
28226 (recog_op_alt): Change into a pointer.
28227 (target_recog): Add x_op_alt.
28228 * recog.c (asm_op_alt): New variable.
28229 (recog_op_alt): Change into a pointer.
28230 (preprocess_constraints): New overload, replacing the old function
28231 definition with one that doesn't use global state.
28232 (preprocess_insn_constraints): New function.
28233 (preprocess_constraints): Use them. Take the insn as parameter.
28234 Use asm_op_alt for asms.
28235 (recog_init): Free existing x_op_alt entries.
28236 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
28238 (make_early_clobber_and_input_conflicts): Likewise.
28239 (process_bb_node_lives): Pass the insn to process_constraints.
28240 * reg-stack.c (check_asm_stack_operands): Likewise.
28241 (subst_asm_stack_regs): Likewise.
28242 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
28243 * regrename.c (build_def_use): Likewise.
28244 * sched-deps.c (sched_analyze_insn): Likewise.
28245 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
28246 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
28247 (note_invalid_constants): Likewise.
28248 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
28249 (ix86_legitimate_combined_insn): Make operand_alternative pointer
28252 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
28254 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
28255 * ira-lives.c (check_and_make_def_conflict): Check for disabled
28257 (make_early_clobber_and_input_conflicts): Likewise.
28258 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
28260 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
28262 * recog.h (alternative_class): New function.
28263 (which_op_alt): Return a const recog_op_alt.
28264 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
28265 (subst_asm_stack_regs): Likewise.
28266 * config/arm/arm.c (note_invalid_constants): Likewise.
28267 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
28268 the operand_alternative; use alternative class instead.
28269 * sel-sched.c (get_reg_class): Likewise.
28270 * regrename.c (build_def_use): Likewise.
28271 (hide_operands, restore_operands, record_out_operands): Update type
28274 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
28276 * recog.h (recog_op_alt): Convert to a flat array.
28277 (which_op_alt): New function.
28278 * recog.c (recog_op_alt): Convert to a flat array.
28279 (preprocess_constraints): Update accordingly, grouping all
28280 operands of the same alternative together, rather than the
28282 * ira-lives.c (check_and_make_def_conflict): Likewise.
28283 (make_early_clobber_and_input_conflicts): Likewise.
28284 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
28285 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
28286 (subst_asm_stack_regs): Likewise.
28287 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
28288 * regrename.c (hide_operands, record_out_operands): Likewise.
28289 (build_def_use): Likewise.
28290 * sel-sched.c (get_reg_class): Likewise.
28291 * config/arm/arm.c (note_invalid_constants): Likewise.
28293 2014-06-04 Jason Merrill <jason@redhat.com>
28297 * gimplify.c (gimplify_arg): Non-static.
28298 * gimplify.h: Declare it.
28300 2014-06-04 Richard Biener <rguenther@suse.de>
28302 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
28303 TREE_PUBLIC and DECL_EXTERNAL decls.
28305 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
28307 * regcprop.c (copyprop_hardreg_forward_1): Account for
28308 HARD_REGNO_CALL_PART_CLOBBERED.
28310 2014-06-04 Richard Biener <rguenther@suse.de>
28312 * configure.ac: Check whether the underlying type of int64_t
28313 is long or long long.
28314 * configure: Regenerate.
28315 * config.in: Likewise.
28316 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
28317 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
28319 2014-06-04 Richard Biener <rguenther@suse.de>
28321 PR tree-optimization/60098
28322 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
28324 (dse_optimize_stmt): Simplify, now that we found a kill
28327 2014-06-04 Richard Biener <rguenther@suse.de>
28329 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
28330 of accesses with non-invariant address.
28332 2014-06-04 Martin Liska <mliska@suse.cz>
28334 * cgraph.h (cgraph_make_wrapper): New function introduced.
28335 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
28336 * ipa-inline.h (inline_analyze_function): The function is global.
28337 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
28339 2014-06-04 Martin Liska <mliska@suse.cz>
28341 * tree.h (private_lookup_attribute_starting): New function.
28342 (lookup_attribute_starting): Likewise.
28343 * tree.c (private_lookup_attribute_starting): Likewise.
28345 2014-06-04 Martin Liska <mliska@suse.cz>
28347 * cgraph.h (expand_thunk): New argument added.
28348 (address_taken_from_non_vtable_p): New global function.
28349 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
28350 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
28351 * cgraphunit.c (analyze_function): Likewise.
28352 (assemble_thunks_and_aliases): Argument added to call.
28353 (expand_thunk): New argument forces to produce GIMPLE thunk.
28355 2014-06-04 Martin Liska <mliska@suse.cz>
28357 * coverage.h (coverage_compute_cfg_checksum): Argument added.
28358 * coverage.c (coverage_compute_cfg_checksum): Likewise.
28359 * profile.c (branch_prob): Likewise.
28361 2014-06-04 Martin Jambor <mjambor@suse.cz>
28364 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
28365 handler for switch on an ipa_ref_use enum.
28366 * ipa-reference.c (analyze_function): Likewise.
28368 2014-06-04 Kai Tietz <ktietz@redhat.com>
28370 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
28371 from old call-instruction.
28373 2014-06-04 Bin Cheng <bin.cheng@arm.com>
28375 * config/aarch64/aarch64.c (aarch64_classify_address)
28376 (aarch64_legitimize_reload_address): Support full addressing modes
28378 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
28379 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
28381 2014-06-03 Andrew Pinski <apinski@cavium.com>
28383 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
28386 2014-06-03 Andrew Pinski <apinski@cavium.com>
28388 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
28389 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
28391 2014-06-03 Kai Tietz <ktietz@redhat.com>
28393 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
28396 2014-06-03 Dehao Chen <dehao@google.com>
28398 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
28401 2014-06-03 Marek Polacek <polacek@redhat.com>
28404 * doc/invoke.texi: Document -Wswitch-bool.
28405 * function.c (stack_protect_epilogue): Cast controlling expression of
28407 * gengtype.c (walk_type): Generate switch expression with its
28408 controlling expression cast to int.
28410 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
28412 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
28414 * config/avr/avr-tables.opt: Regenerate.
28415 * config/avr/t-multilib: Regenerate.
28416 * doc/avr-mmcu.texi: Regenerate.
28418 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
28419 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28421 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
28422 (ata6617c, ata664251): Add new avr35 devices.
28423 (ata6612c): Add new avr4 device.
28424 (ata6613c, ata6614q): Add new avr5 devices.
28425 * config/avr/avr-tables.opt: Regenerate.
28426 * config/avr/t-multilib: Regenerate.
28427 * doc/avr-mmcu.texi: Regenerate.
28429 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28431 * gcc/config/aarch64/aarch64-builtins.c
28432 (aarch64_types_binop_ssu_qualifiers): New static data.
28433 (TYPES_BINOP_SSU): Define.
28434 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
28435 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
28436 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
28437 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
28438 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
28439 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
28440 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
28441 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
28442 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
28443 suffix to builtin function name, remove cast.
28444 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
28445 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
28446 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
28448 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28450 * gcc/config/aarch64/aarch64-builtins.c
28451 (aarch64_types_binop_uus_qualifiers,
28452 aarch64_types_shift_to_unsigned_qualifiers,
28453 aarch64_types_unsigned_shiftacc_qualifiers): Define.
28454 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
28455 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
28456 sqshlu_n, uqshl_n): Update qualifiers.
28457 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
28458 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
28459 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
28460 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
28461 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
28462 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
28463 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
28464 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
28465 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
28466 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
28467 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
28468 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
28469 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
28470 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
28471 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
28472 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
28473 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
28474 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
28475 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
28476 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
28477 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
28478 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
28479 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
28480 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
28481 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
28482 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
28483 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
28485 2014-06-03 Teresa Johnson <tejohnson@google.com>
28487 * tree-sra.c (modify_function): Record caller nodes after rebuild.
28489 2014-06-02 Jason Merrill <jason@redhat.com>
28492 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
28494 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28496 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
28499 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28501 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
28503 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
28504 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
28505 * config/aarch64/iterators.md (REVERSE): New iterator.
28506 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
28507 (rev_op): New int_attribute.
28508 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
28509 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
28510 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
28511 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
28512 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
28513 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
28514 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
28515 Replace temporary __asm__ with __builtin_shuffle.
28517 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
28519 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
28521 * config/mips/mips-tables.opt: Regenerate.
28522 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
28523 to use mips_isa_rev rather than ISA_MIPS32R2.
28524 * config/mips/mips.h (ISA_MIPS32R3): New define.
28525 (ISA_MIPS32R5): New define.
28526 (ISA_MIPS64R3): New define.
28527 (ISA_MIPS64R5): New define.
28528 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
28529 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
28530 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
28532 (MIPS_ISA_SYNCI_SPEC): Likewise.
28533 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
28534 (LINK_SPEC): Added mips32r3 and mips32r5.
28535 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
28536 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
28537 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
28538 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
28539 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
28540 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
28541 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
28543 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
28545 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
28547 * config/mips/mips.opt (mxpa): New option.
28548 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
28551 2014-06-03 Martin Jambor <mjambor@suse.cz>
28554 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
28557 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
28559 PR tree-optimization/61328
28560 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
28561 initialization from find_bswap_or_nop_1.
28562 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
28563 in source_expr2 before using the size value the function sets. Also
28564 make use of init_symbolic_number () in both the old place and
28565 find_bswap_or_nop_load () to avoid reading uninitialized memory when
28566 doing recursion in the GIMPLE_BINARY_RHS case.
28568 2014-06-03 Richard Biener <rguenther@suse.de>
28570 PR tree-optimization/61383
28571 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
28574 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
28576 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
28577 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
28578 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
28579 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
28581 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
28582 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
28583 * system.h: ...here and make it unconditional.
28584 * target.def (conditional_register_usage): Mention
28585 define_register_constraint instead of old-style constraint macros.
28586 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
28587 * doc/tm.texi: Regenerate.
28588 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
28589 protected by !USE_MD_CONSTRAINTS.
28590 * config/frv/frv.md: Remove quote from old version of documentation.
28591 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
28592 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
28593 CONST_DOUBLE_OK_FOR_LETTER.
28594 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
28596 2014-06-02 Andrew Pinski <apinski@cavium.com>
28598 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
28599 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
28600 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
28601 file whose name depends on -mabi= and -mbig-endian.
28602 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
28603 Handle LP64 better and handle ilp32 too.
28604 (MULTILIB_OPTIONS): Delete.
28605 (MULTILIB_DIRNAMES): Delete.
28607 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
28609 * expr.h: Remove prototypes of functions defined in builtins.c.
28610 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
28611 Remove prototypes of functions defined in builtins.c.
28612 * builtins.h: Update prototype list to include all exported functions.
28613 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
28614 no_c99_libc_has_function): Move to targhooks.c
28615 (build_string_literal, build_call_expr_loc_array,
28616 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
28618 (expand_builtin_object_size, fold_builtin_object_size): Make static.
28619 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
28620 no_c99_libc_has_function): Relocate from builtins.c.
28621 * tree.c: Include builtins.h.
28622 (build_call_expr_loc_array, build_call_expr_loc_vec,
28623 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
28625 * fold-const.h (fold_fma): Move prototype to builtins.h.
28626 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
28627 * asan.c: Include builtins.h.
28628 * cfgexpand.c: Likewise.
28629 * convert.c: Likewise.
28630 * emit-rtl.c: Likewise.
28631 * except.c: Likewise.
28632 * expr.c: Likewise.
28633 * fold-const.c: Likewise.
28634 * gimple-fold.c: Likewise.
28635 * gimple-ssa-strength-reduction.c: Likewise.
28636 * gimplify.c: Likewise.
28637 * ipa-inline.c: Likewise.
28638 * ipa-prop.c: Likewise.
28639 * lto-streamer-out.c: Likewise.
28640 * stmt.c: Likewise.
28641 * tree-inline.c: Likewise.
28642 * tree-object-size.c: Likewise.
28643 * tree-sra.c: Likewise.
28644 * tree-ssa-ccp.c: Likewise.
28645 * tree-ssa-forwprop.c: Likewise.
28646 * tree-ssa-loop-ivcanon.c: Likewise.
28647 * tree-ssa-loop-ivopts.c: Likewise.
28648 * tree-ssa-math-opts.c: Likewise.
28649 * tree-ssa-reassoc.c: Likewise.
28650 * tree-ssa-threadedge.c: Likewise.
28651 * tree-streamer-in.c: Likewise.
28652 * tree-vect-data-refs.c: Likewise.
28653 * tree-vect-patterns.c: Likewise.
28654 * tree-vect-stmts.c: Likewise.
28655 * config/aarch64/aarch64.c: Likewise.
28656 * config/alpha/alpha.c: Likewise.
28657 * config/arc/arc.c: Likewise.
28658 * config/arm/arm.c: Likewise.
28659 * config/avr/avr.c: Likewise.
28660 * config/bfin/bfin.c: Likewise.
28661 * config/c6x/c6x.c: Likewise.
28662 * config/cr16/cr16.c: Likewise.
28663 * config/cris/cris.c: Likewise.
28664 * config/epiphany/epiphany.c: Likewise.
28665 * config/fr30/fr30.c: Likewise.
28666 * config/frv/frv.c: Likewise.
28667 * config/h8300/h8300.c: Likewise.
28668 * config/i386/i386.c: Likewise.
28669 * config/i386/winnt.c: Likewise.
28670 * config/ia64/ia64.c: Likewise.
28671 * config/iq2000/iq2000.c: Likewise.
28672 * config/lm32/lm32.c: Likewise.
28673 * config/m32c/m32c.c: Likewise.
28674 * config/m32r/m32r.c: Likewise.
28675 * config/m68k/m68k.c: Likewise.
28676 * config/mcore/mcore.c: Likewise.
28677 * config/mep/mep.c: Likewise.
28678 * config/microblaze/microblaze.c: Likewise.
28679 * config/mips/mips.c: Likewise.
28680 * config/mmix/mmix.c: Likewise.
28681 * config/mn10300/mn10300.c: Likewise.
28682 * config/moxie/moxie.c: Likewise.
28683 * config/msp430/msp430.c: Likewise.
28684 * config/nds32/nds32.c: Likewise.
28685 * config/pa/pa.c: Likewise.
28686 * config/pdp11/pdp11.c: Likewise.
28687 * config/picochip/picochip.c: Likewise.
28688 * config/rl78/rl78.c: Likewise.
28689 * config/rs6000/rs6000.c: Likewise.
28690 * config/rx/rx.c: Likewise.
28691 * config/s390/s390.c: Likewise.
28692 * config/score/score.c: Likewise.
28693 * config/sh/sh.c: Likewise.
28694 * config/sparc/sparc.c: Likewise.
28695 * config/spu/spu.c: Likewise.
28696 * config/stormy16/stormy16.c: Likewise.
28697 * config/tilegx/tilegx.c: Likewise.
28698 * config/tilepro/tilepro.c: Likewise.
28699 * config/v850/v850.c: Likewise.
28700 * config/vax/vax.c: Likewise.
28701 * config/xtensa/xtensa.c: Likewise.
28703 2014-06-02 Jeff Law <law@redhat.com>
28705 PR rtl-optimization/61094
28706 * ree.c (combine_reaching_defs): Do not reextend an insn if it
28707 was marked as do_no_reextend. If a copy is needed to eliminate
28708 an extension, then mark it as do_not_reextend.
28710 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
28712 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
28714 2014-06-02 Richard Henderson <rth@redhat.com>
28717 * config/alpha/alpha.c (print_operand_address): Allow symbolic
28718 addresses inside asms. Use output_operand_lossage instead of
28721 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
28724 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
28725 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
28727 2014-06-02 Tom de Vries <tom@codesourcery.com>
28729 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
28730 case that x has VOIDmode.
28732 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
28734 * varasm.c (copy_constant): Delete function.
28735 (build_constant_desc): Don't call it.
28737 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28740 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
28741 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
28742 with immediate_operand.
28744 2014-06-02 Andreas Schwab <schwab@suse.de>
28746 * config/ia64/ia64.c
28747 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
28748 pending_data_specs first.
28750 2014-06-02 Richard Biener <rguenther@suse.de>
28752 PR tree-optimization/61378
28753 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
28754 valueized_anything.
28756 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
28758 * config/i386/constraints.md (Bw): Rename from 'w'.
28759 (Bz): Rename from 'z'.
28760 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
28762 2014-06-01 Kai Tietz <ktietz@redhat.com>
28765 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
28766 * config/i386/i386.md (sibcall_insn_operand): Use Bs
28767 instead of m constraint.
28769 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
28771 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
28772 a separate alternative where the scratch operand 2 is marked as
28775 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
28777 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
28778 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
28779 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
28780 and __builtins_arm_get_fpscr.
28781 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
28782 __builtins_arm_get_fpscr.
28783 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
28784 __builtins_arm_ldfpscr.
28785 (arm_atomic_assign_expand_fenv): New function.
28786 * config/arm/vfp.md (set_fpscr): New pattern.
28787 (get_fpscr) : Likewise.
28788 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
28790 * doc/extend.texi (AARCH64 Built-in Functions) : Document
28791 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
28793 2014-05-30 Jakub Jelinek <jakub@redhat.com>
28795 * asan.c (report_error_func): Add SLOW_P argument, use
28796 BUILT_IN_ASAN_*_N if set.
28797 (build_check_stmt): Likewise.
28798 (instrument_derefs): If T has insufficient alignment,
28799 force same handling as for odd sizes.
28801 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
28802 BUILT_IN_ASAN_REPORT_STORE_N): New.
28803 * asan.c (struct asan_mem_ref): Change access_size type to
28805 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
28806 update_mem_ref_hash_table): Likewise.
28807 (asan_mem_ref_hasher::hash): Hash in a HWI.
28808 (report_error_func): Change size_in_bytes argument to HWI.
28809 Use *_N builtins if size_in_bytes is larger than 16 or not power of
28811 (build_shadow_mem_access): New function.
28812 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
28813 Handle size_in_bytes not power of two or larger than 16.
28814 (instrument_derefs): Don't give up if size_in_bytes is not
28815 power of two or is larger than 16.
28817 2014-05-30 Kai Tietz <ktietz@redhat.com>
28820 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
28821 for sibling-tail-calls.
28822 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
28824 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
28825 (sibcall_insn_operand): Add check for sibcall_memory_operand.
28827 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28829 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
28830 * config/avr/avr-tables.opt: Regenerate.
28831 * config/avr/t-multilib: Regenerate.
28832 * doc/avr-mmcu.texi: Regenerate.
28834 2014-05-30 Ian Lance Taylor <iant@google.com>
28836 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
28839 2014-05-30 Tom de Vries <tom@codesourcery.com>
28841 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
28844 2014-05-30 Tom de Vries <tom@codesourcery.com>
28846 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
28847 * lra.c (initialize_lra_reg_info_element): Add init of
28848 actual_call_used_reg_set field.
28849 (lra): Call lra_create_live_ranges before lra_inheritance for
28851 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
28853 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
28854 instead of call_used_reg_set for -fuse-caller-save.
28855 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
28857 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28859 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
28861 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
28863 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
28865 * ira.c (ira_get_dup_out_num): Check for output operands at
28866 the start of the loop. Handle cases where an included alternative
28867 follows an excluded one.
28869 2014-05-29 Mike Stump <mikestump@comcast.net>
28872 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
28873 post ld passes when lto is used.
28875 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
28877 PR rtl-optimization/61325
28878 * lra-constraints.c (process_address): Rename to process_address_1.
28879 (process_address): New function.
28881 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
28883 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
28884 TYPES_BINOPV): New static data.
28885 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
28887 * config/aarch64/aarch64-simd.md (aarch64_ext,
28888 aarch64_im_lane_boundsi): New patterns.
28889 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
28891 (aarch64_evpc_ext): New function.
28893 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
28895 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
28896 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
28897 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
28898 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
28899 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
28901 2014-05-29 Tom de Vries <tom@codesourcery.com>
28903 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
28905 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
28906 Richard Sandiford <rdsandiford@googlemail.com>
28908 * arm/iterators.md (shiftable_ops): New code iterator.
28909 (t2_binop0, arith_shift_insn): New code attributes.
28910 * arm/predicates.md (shift_nomul_operator): New predicate.
28911 * arm/arm.md (insn_enabled): Delete.
28912 (enabled): Remove insn_enabled test.
28913 (*arith_shiftsi): Delete. Replace with ...
28914 (*<arith_shift_insn>_multsi): ... new pattern.
28915 (*<arith_shift_insn>_shiftsi): ... new pattern.
28916 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
28918 2014-05-29 Radovan Obradovic <robradovic@mips.com>
28919 Tom de Vries <tom@codesourcery.com>
28921 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
28922 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
28924 (mips_split_call): Use POST_CALL_TMP_REG.
28925 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
28927 2014-05-29 Tom de Vries <tom@codesourcery.com>
28929 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
28930 with #ifdef STACK_REGS.
28932 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
28934 * varasm.c (get_variable_section): Walk aliases.
28935 (place_block_symbol): Walk aliases.
28937 2014-05-28 Tom de Vries <tom@codesourcery.com>
28940 2014-05-28 Tom de Vries <tom@codesourcery.com>
28942 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
28943 * lra.c (initialize_lra_reg_info_element): Add init of
28944 actual_call_used_reg_set field.
28945 (lra): Call lra_create_live_ranges before lra_inheritance for
28947 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
28949 * lra-constraints.c (need_for_call_save_p): Use
28950 actual_call_used_reg_set instead of call_used_reg_set for
28952 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
28954 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
28956 * doc/md.texi: Document that the % constraint character must
28957 be at the beginning of the string.
28958 * genoutput.c (validate_insn_alternatives): Check that '=',
28959 '+' and '%' only appear at the beginning of a constraint.
28960 * ira.c (commutative_constraint_p): Delete.
28961 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
28962 at the start of the string.
28963 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
28965 * config/arm/neon.md (bicdi3_neon): Likewise.
28966 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
28967 (slt_si, sltu_si): Likewise.
28968 * config/vax/vax.md (sbcdi3): Likewise.
28969 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
28970 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
28971 (mul64): Move '%' to beginning of constraint.
28972 * config/arm/arm.md (*xordi3_insn): Likewise.
28973 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
28974 (xorsi3): Likewise.
28976 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
28978 * doc/md.texi: Document the restrictions on the "enabled" attribute.
28980 2014-05-28 Jason Merrill <jason@redhat.com>
28983 * cgraph.h (symtab_node::get_comdat_group_id): New.
28984 * cgraphunit.c (analyze_functions): Call it.
28985 * symtab.c (dump_symtab_node): Likewise.
28986 * tree.c (decl_comdat_group_id): New.
28987 * tree.h: Declare it.
28988 * lto-streamer-out.c (write_symbol): Use it.
28989 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
28991 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
28993 PR bootstrap/PR61146
28994 * wide-int.cc: Do not include longlong.h when compiling with clang.
28996 2014-05-28 Richard Biener <rguenther@suse.de>
28998 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
28999 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
29000 (vrp_visit_assignment_or_call): Print less vertical space.
29001 (vrp_visit_stmt): Likewise.
29002 (vrp_visit_phi_node): Likewise. For a PHI argument with
29003 VR_VARYING range consider recording it as copy.
29005 2014-05-28 Richard Biener <rguenther@suse.de>
29008 2014-05-28 Richard Biener <rguenther@suse.de>
29010 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
29012 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
29014 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
29015 sufficiently aligned and an offset is used at the same time.
29016 (expand_expr_real_1): Likewise.
29018 2014-05-28 Richard Biener <rguenther@suse.de>
29020 PR middle-end/61045
29021 * fold-const.c (fold_comparison): When folding
29022 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
29023 the sign of the remaining constant operand stays the same.
29025 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
29027 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
29028 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
29029 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
29031 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
29032 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
29033 (m32bit-doubles) Likewise.
29034 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
29035 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
29038 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29040 * configure.ac ($gcc_cv_ld_clearcap): New test.
29041 * configure: Regenerate.
29042 * config.in: Regenerate.
29043 * config/sol2.opt (mclear-hwcap): New option.
29044 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
29045 * config/sol2-clearcap.map: Moved here from
29046 testsuite/gcc.target/i386/clearcap.map.
29047 * config/sol2-clearcapv2.map: Move here from
29048 gcc.target/i386/clearcapv2.map.
29049 * config/t-sol2 (install): Depend on install-clearcap-map.
29050 (install-clearcap-map): New target.
29051 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
29054 2014-05-28 Richard Biener <rguenther@suse.de>
29056 * hwint.h (*_HALF_WIDE_INT*): Move to ...
29057 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
29058 ... here and remove the rest.
29059 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
29061 2014-05-28 Richard Biener <rguenther@suse.de>
29063 PR tree-optimization/61335
29064 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
29065 new range fails, drop to varying.
29067 2014-05-28 Olivier Hainque <hainque@adacore.com>
29069 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
29070 (CPP_SPEC): Add entry for -mcpu=8548.
29071 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
29072 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
29074 2014-05-28 Tom de Vries <tom@codesourcery.com>
29076 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
29077 * lra.c (initialize_lra_reg_info_element): Add init of
29078 actual_call_used_reg_set field.
29079 (lra): Call lra_create_live_ranges before lra_inheritance for
29081 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
29083 * lra-constraints.c (need_for_call_save_p): Use
29084 actual_call_used_reg_set instead of call_used_reg_set for
29086 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
29088 2014-05-28 Radovan Obradovic <robradovic@mips.com>
29089 Tom de Vries <tom@codesourcery.com>
29091 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
29093 (@item -fuse-caller-save): New item.
29095 2014-05-28 Radovan Obradovic <robradovic@mips.com>
29096 Tom de Vries <tom@codesourcery.com>
29098 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
29099 OPT_fuse_caller_save.
29101 2014-05-28 Radovan Obradovic <robradovic@mips.com>
29102 Tom de Vries <tom@codesourcery.com>
29104 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
29105 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
29106 get_call_reg_set_usage.
29107 * resource.c (mark_set_resources, mark_target_live_regs): Use
29108 get_call_reg_set_usage.
29109 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
29111 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
29112 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
29113 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
29114 * ira-build.c (ira_create_allocno): Init
29115 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
29116 (create_cap_allocno, propagate_allocno_info)
29117 (propagate_some_info_from_allocno)
29118 (copy_info_to_removed_store_destinations): Handle
29119 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
29120 * ira-costs.c (ira_tune_allocno_costs): Use
29121 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
29123 2014-05-28 Radovan Obradovic <robradovic@mips.com>
29124 Tom de Vries <tom@codesourcery.com>
29126 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
29127 and function_used_regs_valid fields.
29128 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
29129 find_all_hard_reg_sets.
29130 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
29131 (get_call_reg_set_usage): New function.
29132 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
29133 * regs.h (get_call_reg_set_usage): Declare.
29135 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
29138 * config/dbx.h (License): Add Runtime Library Exception.
29139 * config/newlib-stdint.h (License): Same.
29140 * config/rtems.h (License): Same
29141 * config/initfini-array.h (License): Same
29142 * config/v850/v850.h (License): Same.
29143 * config/v850/v850-opts.h (License): Same
29144 * config/v850/rtems.h (License): Same.
29146 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
29149 * doc/extend.texi (Local Labels): Note that label differences are
29150 not supported for AVR.
29152 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
29153 Olivier Hainque <hainque@adacore.com>
29155 * rtl.h (set_for_reg_notes): Declare.
29156 * emit-rtl.c (set_for_reg_notes): New function.
29157 (set_unique_reg_note): Use it.
29158 * optabs.c (add_equal_note): Likewise
29160 2014-05-27 Andrew Pinski <apinski@cavium.com>
29162 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
29163 Use <w> for the register in assembly template.
29164 (stack_protect_test): Use the mode of operands[0] for the result.
29165 (stack_protect_test_<mode>): Use <w> for the register
29166 in assembly template.
29168 2014-05-27 DJ Delorie <dj@redhat.com>
29170 * config/rx/rx.c (add_vector_labels): New.
29171 (rx_output_function_prologue): Call it.
29172 (rx_handle_func_attribute): Don't require empty arguments.
29173 (rx_handle_vector_attribute): New.
29174 (rx_attribute_table): Add "vector" attribute.
29175 * doc/extend.texi (interrupt, vector): Document new/changed
29176 RX-specific attributes.
29178 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
29180 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
29182 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
29183 predicate to detect a negative quotient.
29185 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
29187 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
29188 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
29189 Add X - Y CMP 0 to X CMP Y transformation.
29190 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
29192 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
29194 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
29197 2014-05-27 Steve Ellcey <sellcey@mips.com>
29199 * config/mips/mips.c: Add include of cgraph.h.
29201 2014-05-27 Richard Biener <rguenther@suse.de>
29203 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
29205 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
29208 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
29209 * config/arm/arm-cores.def (License): Same.
29210 * config/arm/arm-opts.h (License): Same.
29211 * config/arm/aout.h (License): Same.
29212 * config/arm/bpabi.h (License): Same.
29213 * config/arm/elf.h (License): Same.
29214 * config/arm/linux-elf.h (License): Same.
29215 * config/arm/linux-gas.h (License): Same.
29216 * config/arm/netbsd-elf.h (License): Same.
29217 * config/arm/uclinux-eabi.h (License): Same.
29218 * config/arm/uclinux-elf.h (License): Same.
29219 * config/arm/vxworks.h (License): Same.
29221 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29223 * config/arm/neon.md (neon_bswap<mode>): New pattern.
29224 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
29225 (arm_init_neon_builtins): Handle NEON_BSWAP.
29226 Define required type nodes.
29227 (arm_expand_neon_builtin): Handle NEON_BSWAP.
29228 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
29229 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
29230 * config/arm/iterators.md (VDQHSD): New mode iterator.
29232 2014-05-27 Richard Biener <rguenther@suse.de>
29234 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
29235 Try using literal operands when comparing value-ranges failed.
29237 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
29239 * ira.c (commutative_operand): Adjust for change to recog_data.
29240 [Missing from previous commit.]
29242 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
29244 * system.h (TEST_BIT): New macro.
29245 * recog.h (alternative_mask): New type.
29246 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
29247 (recog_data_d): Replace alternative_enabled_p array with
29248 enabled_alternatives.
29249 (target_recog): New structure.
29250 (default_target_recog, this_target_recog): Declare.
29251 (get_enabled_alternatives, recog_init): Likewise.
29252 * recog.c (default_target_recog, this_target_recog): New variables.
29253 (get_enabled_alternatives): New function.
29254 (extract_insn): Use it.
29255 (recog_init): New function.
29256 (preprocess_constraints, constrain_operands): Adjust for change to
29258 * postreload.c (reload_cse_simplify_operands): Likewise.
29259 * reload.c (find_reloads): Likewise.
29260 * ira-costs.c (record_reg_classes): Likewise.
29261 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
29262 all alternatives after a disabled one would be skipped.
29263 (ira_implicitly_set_insn_hard_regs): Likewise.
29264 * ira.c (ira_setup_alts): Adjust for change to recog_data.
29265 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
29266 with enabled_alternatives.
29267 * lra.c (free_insn_recog_data): Update accordingly.
29268 (lra_update_insn_recog_data): Likewise.
29269 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
29270 * lra-constraints.c (process_alt_operands): Likewise. Handle
29271 only_alternative as part of the enabled mask.
29272 * target-globals.h (this_target_recog): Declare.
29273 (target_globals): Add a recog field.
29274 (restore_target_globals): Restore this_target_recog.
29275 * target-globals.c: Include recog.h.
29276 (default_target_globals): Initialize recog field.
29277 (save_target_globals): Likewise.
29278 * reginfo.c (reinit_regs): Call recog_init.
29279 * toplev.c (backend_init_target): Likewise.
29281 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
29283 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
29284 rather than any named insn's code.
29286 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
29289 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
29290 * config/arm/arm-cores.def (License): Same.
29292 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
29294 * tree.h (decl_comdat_group): Declare.
29295 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
29296 * tree.c (decl_comdat_group): Here.
29298 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
29300 PR rtl-optimization/61222
29301 * combine.c (simplify_shift_const_1): When moving a PLUS outside
29302 the shift, truncate the PLUS operand to the result mode.
29304 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
29307 * config/i386/i386.c (ix86_rtx_costs)
29308 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
29311 2014-05-26 Martin Jambor <mjambor@suse.cz>
29313 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
29316 2014-05-26 Richard Biener <rguenther@suse.de>
29318 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
29319 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
29320 Provide specializations.
29321 (wi::int_traits <HOST_WIDE_INT>,
29322 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
29324 2014-05-26 Alan Modra <amodra@gmail.com>
29327 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
29328 params and return a bool. Remove dead code. Update comment.
29329 Assert we have a const_int source. Remove bogus code from
29330 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
29331 handling of constants > 2G and reg_equal note, from..
29332 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
29333 return value. Update comment. If we can, use a new pseudo
29334 for intermediate calculations.
29335 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
29337 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
29338 call to rs6000_emit_set_const in splitter.
29339 (movdi_internal64+2, +3): Likewise.
29341 2014-05-26 Richard Biener <rguenther@suse.de>
29343 * system.h: Define __STDC_FORMAT_MACROS before
29344 including inttypes.h.
29345 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
29346 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
29347 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
29348 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
29349 HOST_WIDEST_INT_C): Remove.
29350 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
29351 if C99 inttypes.h is not available.
29352 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
29353 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
29354 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
29355 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
29356 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
29357 (struct output_info): Likewise.
29358 (print_statistics): Adjust.
29359 (dump_bitmap_statistics): Likewise.
29360 * bt-load.c (migrate_btr_defs): Print with PRId64.
29361 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
29362 (MAX_SAFE_MULTIPLIER): Adjust.
29363 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
29364 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
29365 dump_cgraph_node): Likewise.
29366 * final.c (dump_basic_block_info): Likewise.
29367 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
29368 * gcov.c (format_gcov): Likewise.
29369 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
29371 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
29372 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
29373 (inline_small_functions, dump_overall_stats, dump_inline_stats):
29374 Use PRId64 for dumping.
29375 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
29376 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
29377 (add_allocno_hard_regs): Adjust.
29378 * loop-doloop.c (doloop_modify): Print using PRId64.
29379 * loop-iv.c (inverse): Compute in uint64_t.
29380 (determine_max_iter, iv_number_of_iterations): Likewise.
29381 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
29382 Print using PRId64.
29383 * lto-streamer-out.c (write_symbol): Use uint64_t.
29384 * mcf.c (CAP_INFINITY): Use int64_t maximum.
29385 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
29386 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
29387 * modulo-sched.c (const_iteration_count): Use int64_t.
29388 (sms_schedule): Dump using PRId64.
29389 * predict.c (dump_prediction): Likewise.
29390 * pretty-print.h (pp_widest_integer): Remove.
29391 * profile.c (get_working_sets, is_edge_inconsistent,
29392 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
29393 * tree-pretty-print.c (pp_double_int): Remove case handling
29394 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
29395 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
29397 (pass_optimize_bswap::execute): Remove restriction on hosts.
29398 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
29399 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
29400 * tree.c (widest_int_cst_value): Remove.
29401 * tree.h (widest_int_cst_value): Likewise.
29402 * value-prof.c (dump_histogram_value): Print using PRId64.
29403 * gengtype.c (main): Also inject int64_t.
29404 * ggc-page.c (struct max_alignment): Use int64_t.
29405 * alloc-pool.c (struct allocation_object_def): Likewise.
29406 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
29408 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
29409 * doc/tm.texi: Regenerated.
29410 * gengtype-lex.l (IWORD): Handle [u]int64_t.
29411 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
29412 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
29413 mmix_output_register_setting): Use [u]int64_t in prototypes.
29414 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
29415 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
29416 mmix_output_octa, mmix_output_shifted_value): Adjust.
29417 (mmix_intval): Adjust. Remove unreachable case.
29418 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
29420 2014-05-26 Richard Biener <rguenther@suse.de>
29422 * configure.ac: Drop __int64 type check. Insist that we
29423 found uint64_t and int64_t.
29424 * hwint.h (HOST_BITS_PER___INT64): Remove.
29425 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
29426 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
29427 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
29428 (HOST_WIDEST_FAST_INT): Remove __int64 case.
29429 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
29430 for dst_q_src_df_rms_cdt.
29431 * configure: Regenerate.
29432 * config.in: Likewise.
29434 2014-05-26 Michael Tautschnig <mt@debian.org>
29437 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
29438 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
29440 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29442 PR rtl-optimization/61278
29443 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
29445 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29447 PR rtl-optimization/61220
29448 Part of PR rtl-optimization/61225
29449 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
29450 insn; skip split_edge for a block with only one successor.
29452 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29454 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
29457 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29459 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
29460 (update_vtable_references): New function.
29461 (function_and_variable_visibility): Rewrite also vtable initializers.
29462 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
29464 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29466 * ggc.h (ggc_grow): New function.
29467 * ggc-none.c (ggc_grow): New function.
29468 * ggc-page.c (ggc_grow): Likewise.
29470 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29472 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
29473 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
29474 comdat_can_be_unshared_p, cgraph_externally_visible_p,
29475 varpool_externally_visible_p, can_replace_by_local_alias,
29476 update_visibility_by_resolution_info, function_and_variable_visibility,
29477 pass_data_ipa_function_and_variable_visibility,
29478 make_pass_ipa_function_and_variable_visibility,
29479 whole_program_function_and_variable_visibility,
29480 pass_data_ipa_whole_program_visibility,
29481 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
29482 * cgraph.h (cgraph_local_node_p): Declare.
29483 * ipa-visibility.c: New file.
29484 * Makefile.in (OBJS): Add ipa-visiblity.o
29486 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29488 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
29489 that var decl is available.
29491 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29493 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
29494 symtab_node pointer.
29495 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
29496 (find_decls_types_r): Do not walk COMDAT_GROUP.
29497 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
29498 * varasm.c (make_decl_one_only): Use set_comdat_group;
29499 create node if needed.
29500 * ipa-inline-transform.c (save_inline_function_body): Update
29501 way we decl->symtab mapping.
29502 * symtab.c (symtab_hash, hash_node, eq_node
29503 symtab_insert_node_to_hashtable): Remove.
29504 (symtab_register_node): Update.
29505 (symtab_unregister_node): Update.
29506 (symtab_get_node): Reimplement as inline function.
29507 (symtab_add_to_same_comdat_group): Update.
29508 (symtab_dissolve_same_comdat_group_list): Update.
29509 (dump_symtab_base): Update.
29510 (verify_symtab_base): Update.
29511 (symtab_make_decl_local): Update.
29512 (fixup_same_cpp_alias_visibility): Update.
29513 (symtab_nonoverwritable_alias): Update.
29514 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
29515 * ipa.c (update_visibility_by_resolution_info): UPdate.
29516 * bb-reorder.c: Include cgraph.h
29517 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
29518 with comdat groups.
29519 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
29520 * cgraph.c (cgraph_get_create_node): Update.
29521 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
29523 (symtab_get_node): Make inline.
29524 (symtab_insert_node_to_hashtable): Remove.
29525 (symtab_can_be_discarded): Update.
29526 (decl_comdat_group): New function.
29527 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
29529 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
29531 (read_comdat_group): New function.
29532 (input_node, input_varpool_node): Use it.
29533 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
29535 * mips.c (mips_start_unique_function): Likewise.
29536 (ix86_code_end): Likewise.
29537 (rs6000_code_end): Likweise.
29538 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
29540 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29542 * gengtype-state.c (fatal_reading_state): Bring offline.
29543 * optabs.c (widening_optab_handler): Bring offline.
29544 * optabs.h (widening_optab_handler): Likewise.
29545 * final.c (get_attr_length_1): Likewise.
29547 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29549 * sched-int.h (sd_iterator_cond): Manually tail recurse.
29551 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29553 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
29554 (ppc440-compare): Include shift with dot.
29555 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
29556 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
29558 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
29560 (e6500_sfx2): Include it.
29561 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
29562 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
29563 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
29564 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
29565 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
29566 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
29567 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
29568 *lshiftrt_internal1le, *lshiftrt_internal1be,
29569 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
29570 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
29571 *rotldi3_internal10le, *rotldi3_internal10be,
29572 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
29573 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
29574 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
29575 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
29576 define_insns): Use type "shift" in the appropriate alternatives.
29578 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29580 * config/rs6000/rs6000.md (type): Add "logical". Delete
29582 (dot): Adjust comment.
29583 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
29584 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
29585 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
29586 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
29587 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
29588 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
29589 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
29590 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
29592 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
29593 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
29594 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
29595 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
29596 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
29597 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
29598 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
29599 * config/rs6000/8540.md (ppc8540_su): Adjust.
29600 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
29601 cell-cmp-microcoded): Adjust.
29602 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
29603 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29604 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
29605 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
29606 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
29607 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
29608 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
29609 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
29610 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
29612 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
29613 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
29614 Adjust. Adjust comment.
29615 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
29616 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
29618 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29620 * config/rs6000/rs6000.md (type): Add "add".
29621 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
29622 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
29623 define_insns): Use it.
29624 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
29626 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
29627 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
29628 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
29629 * config/rs6000/601.md (ppc601-integer): Adjust.
29630 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
29631 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
29632 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
29633 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
29634 * config/rs6000/8540.md (ppc8540_su): Adjust.
29635 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
29636 cell-cmp-microcoded): Adjust.
29637 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
29638 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29639 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
29640 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
29641 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
29642 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
29643 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
29644 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
29645 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
29647 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
29648 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
29649 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
29650 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
29652 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29654 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
29655 "delayed_compare", "var_delayed_compare".
29656 (var_shift): New attribute.
29657 (cell_micro): Adjust.
29658 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
29659 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
29660 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
29661 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
29662 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
29663 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
29664 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
29665 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
29666 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
29667 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29668 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
29669 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
29670 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
29671 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
29672 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
29673 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
29674 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
29675 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
29676 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
29677 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
29678 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
29679 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
29680 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
29681 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29682 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
29684 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
29685 * config/rs6000/440.md (ppc440-integer): Adjust.
29686 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
29687 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
29688 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
29689 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
29690 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
29691 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
29692 * config/rs6000/8540.md (ppc8540_su): Adjust.
29693 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
29694 cell-cmp-microcoded): Adjust.
29695 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
29696 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29697 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
29698 e500mc64_delayed): Adjust.
29699 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
29700 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
29701 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
29702 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
29703 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
29704 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
29705 power6-delayed-compare, power6-var-delayed-compare): Adjust.
29706 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
29707 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
29709 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
29710 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
29712 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29714 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
29715 (bits): New mode_attr.
29716 (idiv_ldiv): Delete mode_attr.
29717 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
29718 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29719 rs6000_adjust_priority, is_nonpipeline_insn,
29720 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
29722 * config/rs6000/40x.md (ppc403-idiv): Adjust.
29723 * config/rs6000/440.md (ppc440-idiv): Adjust.
29724 * config/rs6000/476.md (ppc476-idiv): Adjust.
29725 * config/rs6000/601.md (ppc601-idiv): Adjust.
29726 * config/rs6000/603.md (ppc603-idiv): Adjust.
29727 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
29728 ppc620-ldiv): Adjust.
29729 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
29730 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
29731 * config/rs6000/8540.md (ppc8540_divide): Adjust.
29732 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
29733 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
29734 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
29735 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
29736 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
29737 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
29738 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
29739 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
29740 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
29741 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
29742 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
29743 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
29744 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
29745 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
29746 * config/rs6000/titan.md (titan_fxu_div): Adjust.
29748 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29750 * config/rs6000/rs6000.md (type): Delete "insert_word",
29751 "insert_dword". Add "insert".
29752 (size): Update comment.
29753 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29754 insn_must_be_first_in_group): Adjust.
29755 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
29756 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
29757 *insvsi_internal6, insvdi_internal): Adjust.
29759 * config/rs6000/40x.md (ppc403-integer): Adjust.
29760 * config/rs6000/440.md (ppc440-integer): Adjust.
29761 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
29762 * config/rs6000/601.md (ppc601-integer): Adjust.
29763 * config/rs6000/603.md (ppc603-integer): Adjust.
29764 * config/rs6000/6xx.md (ppc604-integer): Adjust.
29765 * config/rs6000/7450.md (ppc7450-integer): Adjust.
29766 * config/rs6000/7xx.md (ppc750-integer): Adjust.
29767 * config/rs6000/8540.md (ppc8540_su): Adjust.
29768 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
29769 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
29770 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29771 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
29772 * config/rs6000/e5500.md (e5500_sfx): Adjust.
29773 * config/rs6000/e6500.md (e6500_sfx): Adjust.
29774 * config/rs6000/mpc.md (mpccore-integer): Adjust.
29775 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
29776 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
29777 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
29778 * config/rs6000/power7.md (power7-integer): Adjust.
29779 * config/rs6000/power8.md (power8-1cyc): Adjust.
29780 * config/rs6000/rs64.md (rs64a-integer): Adjust.
29781 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
29783 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29785 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
29786 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
29787 (size): New attribute.
29788 (dot): New attribute.
29789 (cell_micro): Adjust.
29790 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
29791 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
29792 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
29793 umuldi3_highpart): Adjust.
29794 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29795 rs6000_adjust_priority, is_nonpipeline_insn,
29796 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
29798 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
29799 ppc405-imul3): Adjust.
29800 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
29801 * config/rs6000/476.md (ppc476-imul): Adjust.
29802 * config/rs6000/601.md (ppc601-imul): Adjust.
29803 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
29804 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
29805 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
29806 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
29807 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
29809 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
29810 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
29811 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
29812 cell-imul): Adjust.
29813 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
29814 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
29815 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
29816 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
29817 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
29818 * config/rs6000/mpc.md (mpccore-imul): Adjust.
29819 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
29820 power4-lmul, power4-imul, power4-imul3): Adjust.
29821 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
29822 power5-lmul, power5-imul, power5-imul3): Adjust.
29823 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
29824 power6-lmul, power6-imul, power6-imul3): Adjust.
29825 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
29826 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
29828 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
29829 rs64a-lmul): Adjust.
29830 * config/rs6000/titan.md (titan_imul): Adjust.
29832 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29834 * config/rs6000/rs6000.md (type): Add new value "halfmul".
29835 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
29836 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
29837 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
29838 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
29839 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
29840 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
29841 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
29842 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
29843 * config/rs6000/titan.md: Delete nonsensical comment.
29844 (titan_imul): Add type imul3.
29845 (titan_mulhw): Remove type imul3; add type halfmul.
29847 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29849 * config/rs6000/rs6000.md (type): Reorder, reformat.
29851 2014-05-23 Martin Jambor <mjambor@suse.cz>
29853 PR tree-optimization/53787
29854 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
29855 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
29856 analysis_done, update all uses.
29857 * ipa-prop.c: Include domwalk.h
29858 (param_analysis_info): Removed.
29859 (param_aa_status): New type.
29860 (ipa_bb_info): Likewise.
29861 (func_body_info): Likewise.
29862 (ipa_get_bb_info): New function.
29863 (aa_overwalked): Likewise.
29864 (find_dominating_aa_status): Likewise.
29865 (parm_bb_aa_status_for_bb): Likewise.
29866 (parm_preserved_before_stmt_p): Changed to use new param AA info.
29867 (load_from_unmodified_param): Accept func_body_info as a parameter
29868 instead of parms_ainfo.
29869 (parm_ref_data_preserved_p): Changed to use new param AA info.
29870 (parm_ref_data_pass_through_p): Likewise.
29871 (ipa_load_from_parm_agg_1): Likewise. Update callers.
29872 (compute_complex_assign_jump_func): Changed to use new param AA info.
29873 (compute_complex_ancestor_jump_func): Likewise.
29874 (ipa_compute_jump_functions_for_edge): Likewise.
29875 (ipa_compute_jump_functions): Removed.
29876 (ipa_compute_jump_functions_for_bb): New function.
29877 (ipa_analyze_indirect_call_uses): Likewise, moved variable
29879 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
29880 and info, moved variable declarations down.
29881 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
29883 (ipa_analyze_stmt_uses): Likewise.
29884 (ipa_analyze_params_uses): Removed.
29885 (ipa_analyze_params_uses_in_bb): New function.
29886 (ipa_analyze_controlled_uses): Likewise.
29887 (free_ipa_bb_info): Likewise.
29888 (analysis_dom_walker): New class.
29889 (ipa_analyze_node): Handle node-specific forbidden analysis,
29890 initialize and free func_body_info, use dominator walker.
29891 (ipcp_modif_dom_walker): New class.
29892 (ipcp_transform_function): Create and free func_body_info, use
29893 ipcp_modif_dom_walker, moved a lot of functionality there.
29895 2014-05-23 Marek Polacek <polacek@redhat.com>
29896 Jakub Jelinek <jakub@redhat.com>
29898 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
29899 * gcc.c (sanitize_spec_function): Likewise.
29900 * convert.c (convert_to_integer): Include "ubsan.h". Add
29901 floating-point to integer instrumentation.
29902 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
29903 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
29904 SANITIZE_NONDEFAULT.
29905 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
29906 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
29907 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
29908 * ubsan.c: Include "realmpfr.h" and "dfp.h".
29909 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
29910 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
29911 float/double/long double.
29912 (ubsan_instrument_float_cast): New function.
29913 * ubsan.h (ubsan_instrument_float_cast): Declare.
29915 2014-05-23 Jiong Wang <jiong.wang@arm.com>
29917 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
29919 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
29920 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
29921 Adjust for tailcalling through registers.
29922 * config/aarch64/aarch64.h (enum reg_class): New caller save
29924 (REG_CLASS_NAMES): Likewise.
29925 (REG_CLASS_CONTENTS): Likewise.
29926 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
29927 Allow tailcalling without decls.
29929 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
29931 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
29932 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
29934 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
29935 gsi, and variables v_* to v*.
29937 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
29939 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
29941 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
29943 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
29944 * omp-low.c: Update accordingly.
29946 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
29947 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
29948 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
29949 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
29950 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
29951 GF_OMP_TARGET_KIND_UPDATE.
29953 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
29954 Explicitly enumerate the expected region types.
29956 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
29959 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
29960 documentation; the old documentation didn't clearly state the
29961 constraints on the contents of the pointed-to storage.
29963 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29965 Fix bootstrap error on ia64
29966 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
29967 Return default value.
29969 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
29971 PR tree-optimization/54733
29972 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
29974 (find_bswap_or_nop_load): New.
29975 (find_bswap_1): Renamed to ...
29976 (find_bswap_or_nop_1): This. Also add support for memory source.
29977 (find_bswap): Renamed to ...
29978 (find_bswap_or_nop): This. Also add support for memory source and
29979 detection of bitwise operations equivalent to load in target
29981 (execute_optimize_bswap): Likewise. Also move its leading comment back
29982 in place and split statement transformation into ...
29983 (bswap_replace): This.
29985 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
29987 PR rtl-optimization/61215
29988 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
29989 simplify_gen_subreg until final substitution.
29991 2014-05-23 Alan Modra <amodra@gmail.com>
29994 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
29995 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
29996 Use "Y" constraint rather than "m".
29998 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
30000 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
30002 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
30003 New function declaration.
30004 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
30005 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
30006 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
30007 (aarch64_init_builtins) : Initialize builtins
30008 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
30009 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
30010 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
30011 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
30012 and __builtins_aarch64_set_fpsr.
30013 (aarch64_atomic_assign_expand_fenv): New function.
30014 * config/aarch64/aarch64.md (set_fpcr): New pattern.
30015 (get_fpcr) : Likewise.
30016 (set_fpsr) : Likewise.
30017 (get_fpsr) : Likewise.
30018 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
30019 and UNSPECV_SET_FPSR.
30020 * doc/extend.texi (AARCH64 Built-in Functions) : Document
30021 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
30022 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
30024 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
30026 PR rtl-optimization/60969
30027 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
30028 constraints. Set up mem cost for NO_REGS case.
30030 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
30032 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
30034 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
30036 * config/darwin.c: Include "lto-section-names.h".
30037 (LTO_SEGMENT_NAME): Don't define.
30038 * config/i386/winnt.c: Include "lto-section-names.h".
30039 * lto-streamer.c: Include "lto-section-names.h".
30040 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
30041 * lto-wrapper.c: Include "lto-section-names.h".
30042 (LTO_SECTION_NAME_PREFIX): Don't define.
30043 * lto-section-names.h: New file.
30044 * cgraphunit.c: Include "lto-section-names.h".
30046 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
30048 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
30050 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
30053 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
30055 2014-05-22 Nick Clifton <nickc@redhat.com>
30057 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
30059 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
30061 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
30062 -> (T)A transformation to integer types.
30064 2014-05-22 Teresa Johnson <tejohnson@google.com>
30066 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
30067 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
30068 (gcov_rewrite): Use gcov_nonruntime_assert.
30069 (gcov_open): Ditto.
30070 (gcov_write_words): Ditto.
30071 (gcov_write_length): Ditto.
30072 (gcov_read_words): Use gcov_nonruntime_assert, and remove
30073 gcc_assert from IN_LIBGCOV code.
30074 (gcov_read_summary): Use gcov_error to flag profile corruption.
30075 (gcov_sync): Use gcov_nonruntime_assert.
30076 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
30077 (gcov_histo_index): Use gcov_nonruntime_assert.
30078 (static void gcov_histogram_merge): Ditto.
30079 (compute_working_sets): Ditto.
30080 * gcov-io.h (gcov_nonruntime_assert): Define.
30081 (gcov_error): Define for !IN_LIBGCOV
30083 2014-05-22 Richard Biener <rguenther@suse.de>
30085 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
30086 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
30087 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
30088 and deallocation site.
30089 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30090 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
30091 passing through the incoming points-to set.
30092 (handle_lhs_call): Use flags argument instead of recomputing it.
30093 (find_func_aliases_for_call): Call handle_lhs_call with proper
30096 2014-05-22 Jakub Jelinek <jakub@redhat.com>
30098 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
30099 all padding bits in REAL_VALUE_TYPE are cleared.
30101 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30103 Cleanup and improve multipass_dfa_lookahead_guard
30104 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
30105 (core2i7_first_cycle_multipass_begin,)
30106 (core2i7_first_cycle_multipass_issue,)
30107 (core2i7_first_cycle_multipass_backtrack): Update signature.
30108 * config/ia64/ia64.c
30109 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
30110 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
30111 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
30113 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
30114 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
30116 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
30118 * doc/tm.texi: Regenerate.
30120 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
30121 * haifa-sched.c (ready_try): Make signed to allow negative values.
30122 (rebug_ready_list_1): Update.
30123 (choose_ready): Simplify.
30124 (sched_extend_ready_list): Update.
30126 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30128 Remove IA64 speculation tweaking flags
30129 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
30130 speculation tuning flags.
30131 (msched-prefer-non-data-spec-insns,)
30132 (msched-prefer-non-control-spec-insns): Obsolete options.
30133 * haifa-sched.c (choose_ready): Remove handling of
30134 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
30135 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
30136 and PREFER_NON_DATA_SPEC.
30137 * sel-sched.c (process_spec_exprs): Remove handling of
30138 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
30140 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30142 Improve scheduling debug output
30143 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
30144 (advance_one_cycle): Update.
30145 (schedule_insn, queue_to_ready): Add debug printouts.
30146 (debug_ready_list_1): New static function.
30147 (debug_ready_list): Update.
30148 (max_issue): Add debug printouts.
30149 (dump_insn_stream): New static function.
30150 (schedule_block): Use it. Also better indent printouts.
30152 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30154 Fix sched_insn debug counter
30155 * haifa-sched.c (schedule_insn): Update.
30156 (struct haifa_saved_data): Add nonscheduled_insns_begin.
30157 (save_backtrack_point, restore_backtrack_point): Update.
30158 (first_nonscheduled_insn): New static function.
30159 (queue_to_ready, choose_ready): Use it.
30160 (schedule_block): Init nonscheduled_insns_begin.
30161 (sched_emit_insn): Update.
30164 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
30166 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
30168 (aarch64_secondary_reload) : LikeWise.
30169 (aarch64_class_max_nregs) : Remove CORE_REGS.
30170 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
30171 (REG_CLASS_NAMES) : Likewise.
30172 (REG_CLASS_CONTENTS) : LikeWise.
30173 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
30175 2014-05-21 Guozhi Wei <carrot@google.com>
30178 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
30180 (vqdmulhq_n_s16): Likewise.
30182 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
30184 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
30186 2014-05-21 Marek Polacek <polacek@redhat.com>
30189 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
30191 2014-05-21 Martin Jambor <mjambor@suse.cz>
30193 * doc/invoke.texi (Optimize Options): Document parameters
30194 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
30195 ipa-cp-array-index-hint-bonus.
30197 2014-05-21 Mark Wielaard <mjw@redhat.com>
30200 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
30201 version >= 3 or not strict DWARF.
30202 * langhooks.h (struct lang_hooks_for_types): Add
30203 enum_underlying_base_type.
30204 * langhooks.c (lhd_enum_underlying_base_type): New function.
30205 * gcc/langhooks.h (struct lang_hooks_for_types): Add
30206 enum_underlying_base_type.
30207 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
30208 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
30209 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
30211 2014-05-21 Richard Biener <rguenther@suse.de>
30213 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
30215 2014-05-21 John Marino <gnugcc@marino.st>
30217 * config.gcc (*-*-dragonfly*): New target.
30218 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
30219 * configure: Regenerate.
30220 * config/dragonfly-stdint.h: New.
30221 * config/dragonfly.h: New.
30222 * config/dragonfly.opt: New.
30223 * config/i386/dragonfly.h: New.
30224 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
30226 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30228 * tree.def (VOID_CST): New.
30229 * tree-core.h (TI_VOID): New.
30230 * tree.h (void_node): New.
30231 * tree.c (tree_node_structure_for_code, tree_code_size)
30232 (iterative_hash_expr): Handle VOID_CST.
30233 (build_common_tree_nodes): Initialize void_node.
30235 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
30237 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
30239 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
30241 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
30244 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
30245 flag_reorder_blocks_and_partition.
30246 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
30248 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
30251 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
30253 (*addc_r_t): Add new insn_and_split.
30255 2014-05-21 Jakub Jelinek <jakub@redhat.com>
30257 PR middle-end/61252
30258 * omp-low.c (handle_simd_reference): New function.
30259 (lower_rec_input_clauses): Use it. Defer adding reference
30260 initialization even for reduction without placeholder if in simd,
30261 handle it properly later on.
30263 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
30265 PR tree-optimization/60899
30266 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
30267 assume all static symbols will have definition wile parsing and
30268 check the do have definition later in compilation; check that
30269 variable referring symbol will be output before concluding that
30270 reference is safe; be conservative for referring local statics;
30271 be more precise about when comdat is output in other partition.
30273 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
30276 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
30278 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
30279 (ipa_inline): Loop inline_to_all_callers until no more aliases
30282 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
30284 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
30285 set writeonly flag only for vars actually written to.
30287 2014-05-20 Dehao Chen <dehao@google.com>
30289 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
30290 and callee count to get clone count.
30291 * tree-inline.c (expand_call_inline): Use callee count instead of bb
30292 count in copy_body.
30294 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
30296 PR rtl-optimization/61243
30297 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
30299 2014-05-20 Xinliang David Li <davidxl@google.com>
30301 * cgraphunit.c (walk_polymorphic_call_targets): Add
30302 dbgcnt and fopt-info support.
30303 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
30304 * ipa-devirt.c (ipa_devirt): Ditto.
30305 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
30306 * ipa.c (walk_polymorphic_call_targets): Ditto.
30307 * gimple-fold.c (fold_gimple_assign): Ditto.
30308 (gimple_fold_call): Ditto.
30309 * dbgcnt.def: New counter.
30311 2014-05-20 DJ Delorie <dj@redhat.com>
30313 * config/msp430/msp430.md (split): Don't allow subregs when
30314 splitting SImode adds.
30315 (andneghi): Fix subtraction logic.
30316 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
30318 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
30320 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
30322 * except.c (switch_to_exception_section, resolve_unique_section,
30323 get_named_text_section, default_function_rodata_section,
30324 align_variable, get_block_for_decl, default_section_type_flags):
30325 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
30326 * symtab.c (symtab_add_to_same_comdat_group,
30327 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
30328 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
30330 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
30331 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
30332 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
30333 (c6x_function_in_section_p): Likewise.
30334 * config/darwin.c (machopic_select_section): Likewise.
30335 * config/arm/arm.c (arm_function_in_section_p): Likewise.
30336 * config/mips/mips.c (mips_function_rodata_section): Likewise.
30337 * config/mep/mep.c (mep_select_section): LIkewise.
30338 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
30340 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
30342 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
30343 EH region of calls to pure functions that can throw an exception.
30344 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
30345 (copy_reference_ops_from_call): Also copy the EH region of the call if
30346 it can throw an exception.
30348 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30350 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
30351 nested VEC_SELECTs that are inverses of each other.
30353 2014-05-20 Richard Biener <rguenther@suse.de>
30355 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
30356 (extract_and_process_scc_for_name): not here.
30357 (cond_dom_walker::before_dom_children): Only process
30358 stmts that end the BB in interesting ways.
30359 (run_scc_vn): Mark param uses as visited.
30361 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30363 * config/arm/arm.md (arith_shiftsi): Do not predicate for
30366 2014-05-20 Nick Clifton <nickc@redhat.com>
30368 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
30369 (msp430_gimplify_va_arg_expr): New function.
30370 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
30372 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
30373 operand 0 in order to prevent confusion about the number of
30374 registers involved.
30376 2014-05-20 Richard Biener <rguenther@suse.de>
30378 PR tree-optimization/61221
30379 * tree-ssa-pre.c (el_to_update): Remove.
30380 (eliminate_dom_walker::before_dom_children): Handle released
30381 VDEFs by value-numbering them to the associated VUSE. Update
30382 stmt immediately for substituted call address.
30383 (eliminate): Remove delayed stmt updating code.
30384 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
30385 possibly late re-numbered vuses.
30386 (vn_reference_lookup_2): Adjust.
30387 (vn_reference_lookup_pieces): Likewise.
30388 (vn_reference_lookup): Likewise.
30390 2014-05-20 Richard Biener <rguenther@suse.de>
30392 * config.gcc: Remove need_64bit_hwint.
30393 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
30394 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
30396 * config.in: Regenerate.
30397 * configure: Likewise.
30399 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
30401 * doc/extend.texi: Create Label Attributes section,
30402 move all label attributes into it and reference it.
30404 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
30406 * arm.c (thumb1_reorg): When scanning backwards skip anything
30407 that's not a proper insn.
30409 2014-05-19 Richard Biener <rguenther@suse.de>
30411 PR tree-optimization/61221
30412 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30413 Do nothing for unreachable blocks.
30414 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
30415 Improve unreachability detection.
30417 2014-05-19 Richard Biener <rguenther@suse.de>
30419 PR tree-optimization/61209
30420 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
30422 2014-05-19 Nick Clifton <nickc@redhat.com>
30424 * except.c (init_eh): Fix computation of builtin setjmp buffer
30425 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
30427 2014-05-19 Richard Biener <rguenther@suse.de>
30429 PR tree-optimization/61184
30430 * tree-vrp.c (is_negative_overflow_infinity): Use
30431 TREE_OVERFLOW_P and do that check first.
30432 (is_positive_overflow_infinity): Likewise.
30433 (is_overflow_infinity): Likewise.
30434 (vrp_operand_equal_p): Properly treat operands with
30435 differing overflow as not equal.
30437 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
30439 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
30440 shift simplification where it was intended.
30442 2014-05-19 Christian Bruel <christian.bruel@st.com>
30445 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
30447 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
30450 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
30453 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30455 * reg-notes.def (CROSSING_JUMP): Likewise.
30456 * rtl.h (rtx_def): Update comment for jump flag.
30457 (CROSSING_JUMP_P): Define.
30458 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
30459 of a REG_CROSSING_JUMP note.
30460 * cfghooks.c (tidy_fallthru_edges): Likewise.
30461 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
30462 * emit-rtl.c (try_split): Likewise.
30463 * haifa-sched.c (sched_create_recovery_edges): Likewise.
30464 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
30465 * jump.c (redirect_jump_2): Likewise.
30466 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
30467 (relax_delay_slots): Likewise.
30468 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
30469 (bbit_di): Likewise.
30470 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
30471 * config/sh/sh.md (jump_compact): Likewise.
30472 * bb-reorder.c (rotate_loop): Likewise.
30473 (pass_duplicate_computed_gotos::execute): Likewise.
30474 (add_reg_crossing_jump_notes): Rename to...
30475 (update_crossing_jump_flags): ...this.
30476 (pass_partition_blocks::execute): Update accordingly.
30478 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30480 * tree.h: Remove extraneous template <>.
30482 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30484 * ipa.c (symtab_remove_unreachable_nodes): Remove
30485 symbol from comdat group if its body was eliminated.
30486 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
30487 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
30488 (symtab_unregister_node): ... this one.
30489 (verify_symtab_base): More strict checking of comdats.
30490 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
30492 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30494 * tree-pass.h (make_pass_ipa_comdats): New pass.
30495 * timevar.def (TV_IPA_COMDATS): New timevar.
30496 * passes.def (pass_ipa_comdats): Add.
30497 * Makefile.in (OBJS): Add ipa-comdats.o
30498 * ipa-comdats.c: New file.
30500 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30502 * ipa.c (update_visibility_by_resolution_info): New function.
30503 (function_and_variable_visibility): Use it.
30505 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30507 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
30509 (FOR_EACH_DEFINED_SYMBOL): New macro.
30510 (varpool_first_static_initializer, varpool_next_static_initializer,
30511 varpool_first_defined_variable, varpool_next_defined_variable):
30513 (symtab_in_same_comdat_p): Correctly deal with inline functions.
30515 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30517 * ggc-page.c (ggc_handle_finalizers): Add comment.
30519 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30521 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
30522 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
30523 (ggc_internal_cleared_alloc): Likewise.
30524 * ggc-page.c (finalizer): New class.
30525 (vec_finalizer): Likewise.
30526 (globals::finalizers): New member.
30527 (globals::vec_finalizers): Likewise.
30528 (ggc_internal_alloc): Record the finalizer if any for the block being
30530 (ggc_handle_finalizers): New function.
30531 (ggc_collect): Call ggc_handle_finalizers.
30532 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
30534 (ggc_internal_cleared_alloc): Likewise.
30535 (finalize): New function.
30536 (need_finalization_p): Likewise.
30537 (ggc_alloc): Install the type's destructor as the finalizer if it
30538 might do something.
30539 (ggc_cleared_alloc): Likewise.
30540 (ggc_vec_alloc): Likewise.
30541 (ggc_cleared_vec_alloc): Likewise.
30543 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30545 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
30547 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30549 * alias.c (record_alias_subset): Adjust.
30550 * bitmap.c (bitmap_element_allocate): Likewise.
30551 (bitmap_gc_alloc_stat): Likewise.
30552 * cfg.c (init_flow): Likewise.
30553 (alloc_block): Likewise.
30554 (unchecked_make_edge): Likewise.
30555 * cfgloop.c (alloc_loop): Likewise.
30556 (flow_loops_find): Likewise.
30557 (rescan_loop_exit): Likewise.
30558 * cfgrtl.c (init_rtl_bb_info): Likewise.
30559 * cgraph.c (insert_new_cgraph_node_version): Likewise.
30560 (cgraph_allocate_node): Likewise.
30561 (cgraph_create_edge_1): Likewise.
30562 (cgraph_allocate_init_indirect_info): Likewise.
30563 * cgraphclones.c (cgraph_clone_edge): Likewise.
30564 * cgraphunit.c (add_asm_node): Likewise.
30565 (init_lowered_empty_function): Likewise.
30566 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
30567 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
30568 (alpha_use_linkage): Likewise.
30569 * config/arc/arc.c (arc_init_machine_status): Likewise.
30570 * config/arm/arm.c (arm_init_machine_status): Likewise.
30571 * config/avr/avr.c (avr_init_machine_status): Likewise.
30572 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
30573 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
30574 * config/cris/cris.c (cris_init_machine_status): Likewise.
30575 * config/darwin.c (machopic_indirection_name): Likewise.
30576 (darwin_build_constant_cfstring): Likewise.
30577 (darwin_enter_string_into_cfstring_table): Likewise.
30578 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
30579 * config/frv/frv.c (frv_init_machine_status): Likewise.
30580 * config/i386/i386.c (get_dllimport_decl): Likewise.
30581 (ix86_init_machine_status): Likewise.
30582 (assign_386_stack_local): Likewise.
30583 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
30584 (i386_pe_maybe_record_exported_symbol): Likewise.
30585 (i386_pe_record_stub): Likewise.
30586 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
30587 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
30588 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
30589 (m32c_note_pragma_address): Likewise.
30590 * config/mep/mep.c (mep_init_machine_status): Likewise.
30591 (mep_note_pragma_flag): Likewise.
30592 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
30593 (mips16_local_alias): Likewise.
30594 (mips_init_machine_status): Likewise.
30595 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
30596 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
30597 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
30598 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
30599 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
30600 * config/pa/pa.c (pa_init_machine_status): Likewise.
30601 (pa_get_deferred_plabel): Likewise.
30602 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
30603 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
30604 (rs6000_init_machine_status): Likewise.
30605 (output_toc): Likewise.
30606 * config/s390/s390.c (s390_init_machine_status): Likewise.
30607 * config/score/score.c (score_output_external): Likewise.
30608 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
30609 * config/spu/spu.c (spu_init_machine_status): Likewise.
30610 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
30611 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
30612 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
30613 * coverage.c (coverage_end_function): Likewise.
30614 * dbxout.c (dbxout_init): Likewise.
30615 * doc/gty.texi: Don't mention variable_size attribute.
30616 * dwarf2cfi.c (new_cfi): Adjust.
30617 (new_cfi_row): Likewise.
30618 (copy_cfi_row): Likewise.
30619 (create_cie_data): Likewise.
30620 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
30621 (new_loc_descr): Likewise.
30622 (find_AT_string_in_table): Likewise.
30623 (add_addr_table_entry): Likewise.
30624 (new_die): Likewise.
30625 (add_var_loc_to_decl): Likewise.
30626 (clone_die): Likewise.
30627 (clone_as_declaration): Likewise.
30628 (break_out_comdat_types): Likewise.
30629 (new_loc_list): Likewise.
30630 (add_loc_descr_to_each): Likewise.
30631 (add_location_or_const_value_attribute): Likewise.
30632 (add_linkage_name): Likewise.
30633 (lookup_filename): Likewise.
30634 (dwarf2out_var_location): Likewise.
30635 (new_line_info_table): Likewise.
30636 (dwarf2out_init): Likewise.
30637 (mem_loc_descriptor): Likewise.
30638 (loc_descriptor): Likewise.
30639 (add_const_value_attribute): Likewise.
30640 (tree_add_const_value_attribute): Likewise.
30641 (comp_dir_string): Likewise.
30642 (dwarf2out_vms_debug_main_pointer): Likewise.
30643 (string_cst_pool_decl): Likewise.
30644 * emit-rtl.c (set_mem_attrs): Likewise.
30645 (get_reg_attrs): Likewise.
30646 (start_sequence): Likewise.
30647 (init_emit): Likewise.
30648 (init_emit_regs): Likewise.
30649 * except.c (init_eh_for_function): Likewise.
30650 (gen_eh_region): Likewise.
30651 (gen_eh_region_catch): Likewise.
30652 (gen_eh_landing_pad): Likewise.
30653 (add_call_site): Likewise.
30654 * function.c (add_frame_space): Likewise.
30655 (insert_temp_slot_address): Likewise.
30656 (assign_stack_temp_for_type): Likewise.
30657 (get_hard_reg_initial_val): Likewise.
30658 (allocate_struct_function): Likewise.
30659 (prepare_function_start): Likewise.
30660 (types_used_by_var_decl_insert): Likewise.
30661 * gengtype.c (variable_size_p): Remove function.
30662 (enum alloc_quantity): Remove enum.
30663 (write_typed_alloc_def): Remove function.
30664 (write_typed_struct_alloc_def): Likewise.
30665 (write_typed_typedef_alloc_def): Likewise.
30666 (write_typed_alloc_defns): Likewise.
30668 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
30669 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
30670 * ggc.h (ggc_alloc): new function.
30671 (ggc_cleared_alloc): Likewise.
30672 (ggc_vec_alloc): Template on type of vector element, and remove
30673 element size argument.
30674 (ggc_cleared_vec_alloc): Likewise.
30675 * gimple.c (gimple_build_omp_for): Adjust.
30676 (gimple_copy): Likewise.
30677 * ipa-cp.c (get_replacement_map): Likewise.
30678 (find_aggregate_values_for_callers_subset): Likewise.
30679 (known_aggs_to_agg_replacement_list): Likewise.
30680 * ipa-devirt.c (get_odr_type): Likewise.
30681 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
30682 (read_agg_replacement_chain): Likewise.
30683 * loop-iv.c (get_simple_loop_desc): Likewise.
30684 * lto-cgraph.c (input_node_opt_summary): Likewise.
30685 * lto-section-in.c (lto_new_in_decl_state): Likewise.
30686 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
30687 (input_eh_region): Likewise.
30688 (input_eh_lp): Likewise.
30689 (input_cfg): Likewise.
30690 * optabs.c (set_optab_libfunc): Likewise.
30691 (init_tree_optimization_optabs): Likewise.
30692 (set_conv_libfunc): Likewise.
30693 * passes.c (do_per_function_toporder): Likewise.
30694 * rtl.h: Don't use variable_size gty attribute.
30695 * sese.c (if_region_set_false_region): Adjust.
30696 * stringpool.c (gt_pch_save_stringpool): Likewise.
30697 * target-globals.c (save_target_globals): Likewise.
30698 * toplev.c (general_init): Likewise.
30699 * trans-mem.c (record_tm_replacement): Likewise.
30700 (split_bb_make_tm_edge): Likewise.
30701 * tree-cfg.c (move_sese_region_to_fn): Likewise.
30702 * tree-data-ref.h (lambda_vector_new): Likewise.
30703 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
30704 * tree-iterator.c (tsi_link_before): Likewise.
30705 (tsi_link_after): Likewise.
30706 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
30707 * tree-ssa-loop-niter.c (record_estimate): Likewise.
30708 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
30709 * tree-ssa-operands.h: Don't use variable_size gty attribute.
30710 * tree-ssa.c (init_tree_ssa): Adjust.
30711 * tree-ssanames.c (set_range_info): Likewise.
30712 (get_ptr_info): Likewise.
30713 (duplicate_ssa_name_ptr_info): Likewise.
30714 (duplicate_ssa_name_range_info): Likewise.
30715 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
30716 (unpack_ts_fixed_cst_value_fields): Likewise.
30717 * tree.c (build_fixed): Likewise.
30718 (build_real): Likewise.
30719 (build_string): Likewise.
30720 (decl_priority_info): Likewise.
30721 (decl_debug_expr_insert): Likewise.
30722 (decl_value_expr_insert): Likewise.
30723 (decl_debug_args_insert): Likewise.
30724 (type_hash_add): Likewise.
30725 (build_omp_clause): Likewise.
30726 * ubsan.c (decl_for_type_insert): Likewise.
30727 * varasm.c (get_unnamed_section): Likewise.
30728 (get_noswitch_section): Likewise.
30729 (get_section): Likewise.
30730 (get_block_for_section): Likewise.
30731 (create_block_symbol): Likewise.
30732 (build_constant_desc): Likewise.
30733 (create_constant_pool): Likewise.
30734 (force_const_mem): Likewise.
30735 (record_tm_clone_pair): Likewise.
30736 * varpool.c (varpool_create_empty_node): Likewise.
30738 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30740 * dwarf2out.c (tree_add_const_value_attribute): Call
30741 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
30742 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
30743 instead of ggc_internal_<x>alloc_stat.
30744 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
30745 (ggc_realloc): Likewise.
30746 * ggc-none.c (ggc_internal_alloc): Likewise.
30747 (ggc_internal_cleared_alloc): Likewise.
30748 * ggc-page.c: Likewise.
30749 * ggc.h (ggc_internal_alloc_stat): Likewise.
30750 (ggc_internal_alloc): Remove macro.
30751 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
30752 (ggc_internal_cleared_alloc): Remove macro.
30753 (GGC_RESIZEVEC): Adjust.
30754 (ggc_resizevar): Remove macro.
30755 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
30756 (ggc_internal_cleared_vec_alloc_stat): Likewise.
30757 (ggc_internal_vec_cleared_alloc): Remove macro.
30758 (ggc_alloc_atomic_stat): Drop _stat suffix.
30759 (ggc_alloc_atomic): Remove macro.
30760 (ggc_alloc_cleared_atomic): Remove macro.
30761 (ggc_alloc_string_stat): Drop _stat suffix.
30762 (ggc_alloc_string): Remove macro.
30763 (ggc_alloc_rtx_def_stat): Adjust.
30764 (ggc_alloc_tree_node_stat): Likewise.
30765 (ggc_alloc_cleared_tree_node_stat): Likewise.
30766 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
30767 (ggc_alloc_cleared_simd_clone_stat): Likewise.
30768 * gimple.c (gimple_build_omp_for): Likewise.
30769 (gimple_copy): Likewise.
30770 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
30771 * toplev.c (realloc_for_line_map): Adjust.
30772 * tree-data-ref.h (lambda_vector_new): Likewise.
30773 * tree-phinodes.c (allocate_phi_node): Likewise.
30774 * tree.c (grow_tree_vec_stat): Likewise.
30775 * vec.h (va_gc::reserve): Adjust.
30777 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
30779 * config/microblaze/microblaze.c (break_handler): New Declaration.
30780 (microblaze_break_function_p,microblaze_is_break_handler): New.
30781 (compute_frame_size): Use microblaze_break_function_p.
30782 Add the test of break_handler.
30783 (microblaze_function_prologue) : Add the test of variable
30784 break_handler. Check the fnname by BREAK_HANDLER_NAME.
30785 (microblaze_function_epilogue) : Add the test of break_handler.
30786 (microblaze_globalize_label) : Add the test of break_handler.
30787 Check the name by BREAK_HANDLER_NAME.
30789 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
30791 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
30792 microblaze_is_break_handler test.
30793 (call_internal1,call_value_intern): Use microblaze_break_function_p.
30794 Use SYMBOL_REF_DECL.
30796 * config/microblaze/microblaze-protos.h
30797 (microblaze_break_function_p,microblaze_is_break_handler):
30800 * doc/extend.texi (MicroBlaze break_handler Functions): Document
30801 new MicroBlaze break_handler functions.
30803 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
30805 * doc/extend.texi (Size of an asm): Move node text according
30806 to its @menu entry position.
30808 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
30810 PR tree-optimization/61140
30811 PR tree-optimization/61150
30812 PR tree-optimization/61197
30813 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
30815 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
30817 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
30819 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
30821 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
30822 __SIZEOF_INT128__ is defined.
30824 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
30826 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
30827 (rs6000_delegitimize_address): Use it.
30829 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
30831 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
30832 inplace argument. Store the new address in the original MEM when true.
30833 * emit-rtl.c (change_address_1): Likewise.
30834 (adjust_address_1, adjust_automodify_address_1, offset_address):
30835 Update accordingly.
30836 * rtl.h (plus_constant): Add an inplace argument.
30837 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
30838 when true. Avoid generating (plus X (const_int 0)).
30839 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
30840 in-place. Pass true to plus_constant.
30841 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
30843 2014-05-16 Dehao Chen <dehao@google.com>
30845 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
30847 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
30850 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
30852 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
30854 2014-05-16 Dehao Chen <dehao@google.com>
30856 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
30857 optimize_function_for_size_p.
30858 * regs.h (REG_FREQ_FROM_BB): Likewise.
30860 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
30863 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
30864 negt_reg_operand cases.
30865 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
30867 * config/sh/predicates.md (cbranch_treg_value): Simplify.
30869 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
30871 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
30874 2014-05-16 David Malcolm <dmalcolm@redhat.com>
30877 2014-04-29 David Malcolm <dmalcolm@redhat.com>
30879 * tree-cfg.c (dump_function_to_file): Dump the return type of
30880 functions, in a line to itself before the function body, mimicking
30881 the layout of a C function.
30883 2014-05-16 Dehao Chen <dehao@google.com>
30885 * cfghooks.c (make_forwarder_block): Use direct computation to
30886 get fall-through edge's count and frequency.
30888 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
30890 * config/arc/arc.c (arc_init): Fix typo in error message.
30891 * config/i386/i386.c (ix86_expand_builtin): Likewise.
30892 (split_stack_prologue_scratch_regno): Likewise.
30893 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
30894 word from error message.
30896 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30898 * ira-costs.c: Fix typo in comment.
30900 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
30902 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
30904 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
30906 * varpool.c (dump_varpool_node): Dump write-only flag.
30907 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
30909 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
30910 write-only variables.
30911 * ipa.c (process_references): New function.
30912 (set_readonly_bit): New function.
30913 (set_writeonly_bit): New function.
30914 (clear_addressable_bit): New function.
30915 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
30916 fix handling of aliases.
30917 * cgraph.h (struct varpool_node): Add writeonly flag.
30919 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
30921 PR rtl-optimization/60969
30922 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
30923 Calculate costs for this case.
30925 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
30927 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
30928 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
30930 2014-05-16 Richard Biener <rguenther@suse.de>
30932 PR tree-optimization/61194
30933 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
30934 bool patterns ending in a COND_EXPR.
30936 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30938 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
30940 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30942 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
30943 where we were unable to cost an RTX.
30945 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30947 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
30950 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30951 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30953 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
30955 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30956 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30958 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
30959 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
30961 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30962 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30964 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
30967 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30968 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30970 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
30973 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30974 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30976 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
30977 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
30979 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30980 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30982 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
30983 rotates and shifts.
30985 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30986 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30988 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
30989 ZERO_EXTEND and SIGN_EXTEND better.
30991 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30992 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30994 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
30995 logical operations.
30997 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30998 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31000 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
31001 costs when costing loads and stores to memory.
31003 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
31004 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
31006 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
31009 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
31011 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
31013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
31014 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31016 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
31018 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
31020 (aarch64_rtx_mult_cost): New.
31021 (aarch64_rtx_costs): Use it, refactor as appropriate.
31023 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
31024 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31026 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
31027 emit instructions, return number of instructions which would
31029 (aarch64_add_constant): Update call to aarch64_build_constant.
31030 (aarch64_output_mi_thunk): Likewise.
31031 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
31034 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
31036 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
31037 (TARGET_RTX_COSTS): Call it.
31039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
31041 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
31042 (cortexa57_vector_cost): Likewise.
31043 (cortexa57_tunings): Use them.
31045 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
31047 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
31048 (cpu_addrcost_table): Use it.
31049 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
31050 (aarch64_address_cost): Rewrite using aarch64_classify_address,
31053 2014-05-16 Richard Biener <rguenther@suse.de>
31055 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
31056 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
31057 (visit_phi): Ignore edges marked as not executable.
31058 (class cond_dom_walker): New.
31059 (cond_dom_walker::before_dom_children): Value-number
31060 control statements and mark successor edges as not
31061 executable if possible.
31062 (run_scc_vn): First walk all control statements in
31063 dominator order, marking edges as not executable.
31064 * tree-inline.c (copy_edges_for_bb): Be not confused
31065 about random edge flags.
31067 2014-05-16 Richard Biener <rguenther@suse.de>
31069 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
31071 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
31074 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
31075 (__TM_simple_begin): Use it.
31076 (__TM_begin): Likewise.
31078 2014-05-15 Martin Jambor <mjambor@suse.cz>
31081 * ipa-prop.c (update_indirect_edges_after_inlining): Check
31082 type_preserved flag when the indirect edge is polymorphic.
31084 2014-05-15 Martin Jambor <mjambor@suse.cz>
31086 PR tree-optimization/61090
31087 * tree-sra.c (sra_modify_expr): Pass the current gsi to
31088 build_ref_for_model.
31090 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31092 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
31093 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
31095 2014-05-15 Jakub Jelinek <jakub@redhat.com>
31097 PR tree-optimization/61158
31098 * fold-const.c (fold_binary_loc): If X is zero-extended and
31099 shiftc >= prec, make sure zerobits is all ones instead of
31100 invoking undefined behavior.
31102 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31104 * regcprop.h: New file.
31105 * regcprop.c (skip_debug_insn_p): New decl.
31106 (replace_oldest_value_reg): Check skip_debug_insn_p.
31107 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
31108 * shrink-wrap.c: Include regcprop.h.
31109 (prepare_shrink_wrap): Call
31110 copyprop_hardreg_forward_bb_without_debug_insn.
31112 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31114 * shrink-wrap.h: Update comment.
31115 * shrink-wrap.c: Update comment.
31116 (next_block_for_reg): Rename to live_edge_for_reg.
31117 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
31118 (move_insn_for_shrink_wrap): Split live_edge.
31119 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
31121 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
31123 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
31125 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
31126 * config/sparc/sparc.md (fptype_ut699): New attribute.
31127 (in_branch_delay): Return false if -mfix-ut699 is specified and
31128 fptype_ut699 is set to single.
31129 (truncdfsf2): Add fptype_ut699 attribute.
31130 (fix_truncdfsi2): Likewise.
31131 (floatsisf2): Change fptype attribute.
31132 (fix_truncsfsi2): Likewise.
31133 (negtf2_notv9): Delete.
31134 (negtf2_v9): Likewise.
31135 (negtf2_hq): New instruction.
31136 (negtf2): New instruction and splitter.
31137 (negdf2_notv9): Rewrite.
31138 (abstf2_notv9): Delete.
31139 (abstf2_hq_v9): Likewise.
31140 (abstf2_v9): Likewise.
31141 (abstf2_hq): New instruction.
31142 (abstf2): New instruction and splitter.
31143 (absdf2_notv9): Rewrite.
31145 2014-05-14 Cary Coutant <ccoutant@google.com>
31148 * opts.c (common_handle_option): Don't special-case "-g".
31149 (set_debug_level): Default to at least level 2 with "-g".
31151 2014-05-14 DJ Delorie <dj@redhat.com>
31153 * config/msp430/msp430.c (msp430_builtin): Add
31154 MSP430_BUILTIN_DELAY_CYCLES.
31155 (msp430_init_builtins): Register void __delay_cycles(long long).
31156 (msp430_builtin_decl): Add it.
31157 (cg_magic_constant): New.
31158 (msp430_expand_delay_cycles): New.
31159 (msp430_expand_builtin): Call it.
31160 (msp430_print_operand_raw): Change integer printing from "int" to
31162 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
31163 (delay_cycles_start): New.
31164 (delay_cycles_end): New.
31165 (delay_cycles_32): New.
31166 (delay_cycles_32x): New.
31167 (delay_cycles_16): New.
31168 (delay_cycles_16x): New.
31169 (delay_cycles_2): New.
31170 (delay_cycles_1): New.
31171 * doc/extend.texi: Document __delay_cycles().
31173 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
31175 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
31176 length attribute computation.
31178 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
31181 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
31183 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
31186 * config/sparc/sparc.md: Fix types of low and high in DI constant
31187 splitter. Use gen_int_mode in some other splitters.
31189 2014-05-14 Martin Jambor <mjambor@suse.cz>
31192 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
31194 2014-05-14 James Norris <jnorris@codesourcery.com>
31196 * omp-low.c (expand_parallel_call): Remove shadow variable.
31197 (expand_omp_taskreg): Likewise.
31199 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
31201 * common/config/i386/i386-common.c
31202 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
31203 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
31204 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
31205 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
31206 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
31207 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
31208 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
31209 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
31210 xsavecintrin.h, xsavesintrin.h.
31211 (x86_64-*-*): Ditto.
31212 * config/i386/clflushoptintrin.h: New.
31213 * config/i386/xsavecintrin.h: Ditto.
31214 * config/i386/xsavesintrin.h: Ditto.
31215 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
31216 (bit_XSAVES): Ditto.
31217 (bit_XSAVES): Ditto.
31218 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
31219 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
31221 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31222 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
31223 OPTION_MASK_ISA_XSAVES.
31224 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
31225 -mxsavec, -mxsaves.
31226 (PTA_CLFLUSHOPT) Define.
31227 (PTA_XSAVEC): Ditto.
31228 (PTA_XSAVES): Ditto.
31229 (ix86_option_override_internal): Handle new options.
31230 (ix86_valid_target_attribute_inner_p): Ditto.
31231 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
31232 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
31233 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
31234 (bdesc_special_args): Add __builtin_ia32_xsaves,
31235 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
31236 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
31237 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
31238 (ix86_expand_builtin): Handle new builtins.
31239 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
31240 (TARGET_CLFLUSHOPT_P): Ditto.
31241 (TARGET_XSAVEC): Ditto.
31242 (TARGET_XSAVEC_P): Ditto.
31243 (TARGET_XSAVES): Ditto.
31244 (TARGET_XSAVES_P): Ditto.
31245 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
31246 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
31247 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
31249 (ANY_XRSTOR64): Ditto.
31251 (xrstor): Change into <xrstor>.
31252 (xrstor_rex64): Change into <xrstor>_rex64.
31253 (xrstor64): Change into <xrstor>64
31255 * config/i386/i386.opt (mclflushopt): New.
31258 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
31260 * doc/invoke.texi: Document new options.
31262 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
31264 PR rtl-optimization/60866
31265 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
31266 Default it to -1. Pass it down to init_simplejump_data.
31267 (init_simplejump_data): New parameter old_seqno. Pass it down
31268 to get_seqno_for_a_jump.
31269 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
31270 initializing new jump seqno as a last resort. Add comment.
31271 (sel_redirect_edge_and_branch): Save old seqno of the conditional
31272 jump and pass it down to sel_init_new_insn.
31273 (sel_redirect_edge_and_branch_force): Likewise.
31275 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
31277 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
31278 shifted values to avoid build warning.
31280 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
31282 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
31283 * cfgrtl.c (rtl_merge_blocks): Fix comment.
31284 (cfg_layout_merge_blocks): Likewise.
31285 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
31287 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
31289 PR rtl-optimization/60901
31290 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
31291 bb predecessor belongs to the same scheduling region. Adjust comment.
31293 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
31295 * doc/sourcebuild.texi: (dfp_hw): Document.
31296 (p8vector_hw): Likewise.
31297 (powerpc_eabi_ok): Likewise.
31298 (powerpc_elfv2): Likewise.
31299 (powerpc_htm_ok): Likewise.
31300 (ppc_recip_hw): Likewise.
31301 (vsx_hw): Likewise.
31303 2014-05-13 Cary Coutant <ccoutant@google.com>
31305 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
31307 2014-05-13 David Malcolm <dmalcolm@redhat.com>
31309 * gengtype-parse.c (require3): Eliminate in favor of...
31311 (require_template_declaration): Update to support optional single *
31314 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
31315 (create_user_defined_type): Handle a single level of explicit
31316 pointerness within template arguments.
31317 (struct write_types_data): Add field "kind".
31318 (filter_type_name): Handle "*" character.
31319 (write_user_func_for_structure_ptr): Require a write_types_data
31320 rather than just a prefix string, so that we can look up the kind
31321 of the wtd and use it as an index into wrote_user_func_for_ptr,
31322 ensuring that such functions are written at most once. Support
31323 subclasses by invoking the marking function of the ultimate base class.
31324 (write_user_func_for_structure_body): Require a write_types_data
31325 rather than just a prefix string, so that we can pass this to
31326 write_user_func_for_structure_ptr.
31327 (write_func_for_structure): Likewise.
31328 (ggc_wtd): Add initializer of new "kind" field.
31329 (pch_wtd): Likewise.
31331 * gengtype.h (enum write_types_kinds): New.
31332 (struct type): Add field wrote_user_func_for_ptr to the "s"
31335 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
31337 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
31338 instead of const_binop.
31339 (fold_binary_loc): Likewise.
31341 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
31343 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
31344 calculation to match get_ref_base_and_extent.
31346 2014-05-13 Catherine Moore <clm@codesourcery.com>
31347 Sandra Loosemore <sandra@codesourcery.com>
31349 * configure.ac: Fix assembly for explicit JALR relocation check.
31350 * configure: Regenerate.
31352 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31354 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
31355 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
31356 Remove associated type declarations and initialisations.
31357 (arm_expand_neon_builtin): Likewise.
31358 (neon_emit_pair_result_insn): Delete.
31359 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
31360 * config/arm/neon.md (neon_vtrn<mode>): Delete.
31361 (neon_vzip<mode>): Likewise.
31362 (neon_vuzp<mode>): Likewise.
31364 2014-05-13 Richard Biener <rguenther@suse.de>
31367 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
31368 it needs revisiting whether the call still may be tail-called.
31370 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31372 * rtl.def (SYMBOL_REF): Remove middle "0" field.
31373 * rtl.h (block_symbol): Reduce number of fields to 2.
31374 (rtx_def): Add u2.symbol_ref_flags.
31375 (SYMBOL_REF_FLAGS): Use it.
31376 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
31377 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
31378 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
31379 Lower index of SYMBOL_REF_DATA.
31380 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
31381 Print SYMBOL_REF_FLAGS at the same time.
31382 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
31384 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31386 * rtl.def (VAR_LOCATION): Remove "i" field.
31387 * rtl.h (rtx_def): Add u2.var_location_status.
31388 (PAT_VAR_LOCATION_STATUS): Use it.
31389 (gen_rtx_VAR_LOCATION): Declare.
31390 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
31391 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
31392 * var-tracking.c (emit_note_insn_var_location): Remove casts.
31394 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31396 * rtl.def (scratch): Fix outdated comment and remove "0" field.
31397 * gengtype.c (adjust_field_rtx_def): Update accordingly.
31399 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31401 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
31402 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
31403 * rtl.h (rtx_def): Add insn_uid to u2 field.
31404 (RTX_FLAG_CHECK8): Delete in favor of...
31405 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
31406 (INSN_DELETED_P): Update accordingly.
31407 (INSN_UID): Use u2.insn_uid.
31408 (INSN_CHAIN_CODE_P): Define.
31409 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
31410 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
31411 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
31412 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
31413 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
31414 indices accordingly.
31415 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
31416 Update indices for insn-chain rtxes.
31417 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
31418 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
31419 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
31420 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
31421 * combine.c (try_combine): Likewise.
31422 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31424 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31426 * rtl.def (REG): Remove middle field.
31427 * rtl.h (rtx_def): Add orignal_regno to u2.
31428 (ORIGINAL_REGNO): Use it instead of field 1.
31429 (REG_ATTRS): Lower field index accordingly.
31430 * gengtype.c (adjust_field_rtx_def): Remove handling of
31431 ORIGINAL_REGNO. Move REG_ATTRS index down.
31432 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
31433 code that prints the REGNO.
31435 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31437 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
31440 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31442 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
31444 2014-05-13 Bin Cheng <bin.cheng@arm.com>
31446 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
31447 (alloc_iv): Lower base expressions containing ADDR_EXPR.
31449 2014-05-13 Ian Bolton <ian.bolton@arm.com>
31451 * config/aarch64/aarch64-protos.h
31452 (aarch64_hard_regno_caller_save_mode): New prototype.
31453 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
31455 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
31457 2014-05-13 Christian Bruel <christian.bruel@st.com>
31459 * target.def (mode_switching): New hook vector.
31460 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
31461 (mode_exit, modepriority_to_mode): Likewise.
31462 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
31463 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31464 * target.h: Include tm.h and hard-reg-set.h.
31465 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
31466 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
31467 * doc/tm.texi Regenerate.
31468 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
31469 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31470 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
31471 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
31472 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
31473 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31474 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
31475 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
31476 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
31477 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
31478 (ix86_emit_mode_set): Hookify.
31479 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
31481 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31482 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
31483 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
31484 (epiphany_mode_priority_to_mode): Remove declaration.
31485 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
31486 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
31487 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
31489 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
31490 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
31491 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
31493 2014-05-13 Jakub Jelinek <jakub@redhat.com>
31496 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
31497 is const0_rtx, return immediately. Don't test count == 0 when
31500 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31502 * Makefile.in: add shrink-wrap.o.
31503 * config/i386/i386.c: include "shrink-wrap.h"
31504 * function.c: Likewise.
31505 (requires_stack_frame_p, next_block_for_reg,
31506 move_insn_for_shrink_wrap, prepare_shrink_wrap,
31507 dup_block_and_redirect): Move to shrink-wrap.c
31508 (thread_prologue_and_epilogue_insns): Extract three code segments
31509 as functions in shrink-wrap.c
31510 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
31512 * shrink-wrap.c: New file.
31513 * shrink-wrap.h: New file.
31515 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
31517 * doc/extend.texi: Reflect current numbers of pragmas. Remove
31518 reference to Solaris.
31520 2014-05-12 Mike Stump <mikestump@comcast.net>
31523 * genattrtab.c (filename): Add.
31524 (convert_set_attr_alternative): Improve error message.
31525 (check_defs): Restore read_md_filename for error messages.
31526 (gen_insn): Save filename.
31528 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
31530 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
31531 -fno-local-ivars and -fivar-visibility.
31532 * c-family/c.opt: Make -Wshadow also implicitly enable
31535 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
31537 * doc/tm.texi: Remove reference to deleted macro.
31538 * doc/tm.texi.in: Likewise.
31540 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31543 * config/avr/avr.c (avr_out_store_psi): Use correct constant
31546 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
31549 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
31550 * config/arm/aout.h (License): Same.
31551 * config/arm/bpabi.h (License): Same.
31552 * config/arm/elf.h (License): Same.
31553 * config/arm/linux-elf.h (License): Same.
31554 * config/arm/linux-gas.h (License): Same.
31555 * config/arm/netbsd-elf.h (License): Same.
31556 * config/arm/uclinux-eabi.h (License): Same.
31557 * config/arm/uclinux-elf.h (License): Same.
31558 * config/arm/vxworks.h (License): Same.
31560 2014-05-11 Jakub Jelinek <jakub@redhat.com>
31562 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
31563 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
31564 number of operands to 3.
31565 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
31566 * tree-nested.c (convert_nonlocal_omp_clauses,
31567 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
31568 * gimplify.c (gimplify_scan_omp_clauses): Handle
31569 OMP_CLAUSE_LINEAR_STMT.
31570 * omp-low.c (lower_rec_input_clauses): Fix typo.
31571 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
31572 cast between Fortran boolean_type_node and C _Bool if
31575 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
31577 PR tree-optimization/61136
31578 * wide-int.h (multiple_of_p): Define a version that doesn't return
31580 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
31581 integer_zerop/const_binop pair.
31582 (multiple_of_p): Likewise, converting both operands to widest_int
31585 2014-05-09 Teresa Johnson <tejohnson@google.com>
31587 * cgraphunit.c (analyze_functions): Use correct dump file.
31589 2014-05-09 Florian Weimer <fweimer@redhat.com>
31591 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
31593 (stack_protect_return_slot_p): New function.
31594 (expand_used_vars): Call stack_protect_decl_p and
31595 stack_protect_return_slot_p for -fstack-protector-strong.
31597 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
31598 Andrew Haley <aph@redhat.com>
31599 Richard Sandiford <rdsandiford@googlemail.com>
31601 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
31604 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
31606 PR middle-end/61111
31607 * fold-const.c (fold_binary_loc): Changed width of mask.
31609 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
31611 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
31612 unsigned int initializers for regno_in, regno_out.
31614 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
31617 * config/avr/avr.md (cc): Add new attribute set_vzn.
31618 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
31619 Set cc insn attribute to set_vzn instead of set_zn for alternatives
31620 with INC, DEC or NEG.
31621 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
31622 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
31623 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
31625 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31628 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31630 * wide-int.cc (UTItype): Define.
31631 (UDWtype): Define for appropriate W_TYPE_SIZE.
31633 2014-05-09 Richard Biener <rguenther@suse.de>
31635 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
31636 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
31637 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
31638 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
31639 ssa_propagate): Adjust.
31641 2014-05-08 Jeff Law <law@redhat.com>
31643 PR tree-optimization/61009
31644 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
31645 tri-state rather than a boolean. When a block is too big to
31646 thread through, inform caller via negative return value.
31647 (thread_across_edge): If a block was too big for normal threading,
31648 then it's too big for a joiner too, so remove temporary equivalences
31649 and return immediately.
31651 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
31652 Matthias Klose <doko@ubuntu.com>
31655 * optc-gen.awk: Fix option handling for -Wunused-parameter.
31657 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
31660 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
31662 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
31665 * config/alpha/alpha.c: Include gimple-iterator.h.
31666 (alpha_gimple_fold_builtin): New function. Move
31667 ALPHA_BUILTIN_UMULH folding from ...
31668 (alpha_fold_builtin): ... here.
31669 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
31671 2014-05-08 Wei Mi <wmi@google.com>
31674 * config/i386/i386.c (ix86_compute_frame_layout): Update
31675 preferred_stack_boundary for call, expanded from tls descriptor.
31676 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
31677 to depend on SP register.
31678 (*tls_local_dynamic_base_32_gnu): Ditto.
31679 (*tls_local_dynamic_32_once): Ditto.
31680 (tls_global_dynamic_64_<mode>): Set
31681 ix86_tls_descriptor_calls_expanded_in_cfun.
31682 (tls_local_dynamic_base_64_<mode>): Ditto.
31683 (tls_global_dynamic_32): Set
31684 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
31685 to depend on SP register.
31686 (tls_local_dynamic_base_32): Ditto.
31688 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31690 * config/arm/arm_neon.h: Update comment.
31691 * config/arm/neon-docgen.ml: Delete.
31692 * config/arm/neon-gen.ml: Delete.
31693 * doc/arm-neon-intrinsics.texi: Update comment.
31695 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31697 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
31699 (vand, vorr, veor, vorn, vbic): Remove.
31700 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
31702 (neon_vsub_unspec): Likewise.
31703 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
31705 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31707 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
31708 (vadd_s16): Likewise.
31709 (vadd_s32): Likewise.
31710 (vadd_f32): Likewise.
31711 (vadd_u8): Likewise.
31712 (vadd_u16): Likewise.
31713 (vadd_u32): Likewise.
31714 (vadd_s64): Likewise.
31715 (vadd_u64): Likewise.
31716 (vaddq_s8): Likewise.
31717 (vaddq_s16): Likewise.
31718 (vaddq_s32): Likewise.
31719 (vaddq_s64): Likewise.
31720 (vaddq_f32): Likewise.
31721 (vaddq_u8): Likewise.
31722 (vaddq_u16): Likewise.
31723 (vaddq_u32): Likewise.
31724 (vaddq_u64): Likewise.
31725 (vmul_s8): Likewise.
31726 (vmul_s16): Likewise.
31727 (vmul_s32): Likewise.
31728 (vmul_f32): Likewise.
31729 (vmul_u8): Likewise.
31730 (vmul_u16): Likewise.
31731 (vmul_u32): Likewise.
31732 (vmul_p8): Likewise.
31733 (vmulq_s8): Likewise.
31734 (vmulq_s16): Likewise.
31735 (vmulq_s32): Likewise.
31736 (vmulq_f32): Likewise.
31737 (vmulq_u8): Likewise.
31738 (vmulq_u16): Likewise.
31739 (vmulq_u32): Likewise.
31740 (vsub_s8): Likewise.
31741 (vsub_s16): Likewise.
31742 (vsub_s32): Likewise.
31743 (vsub_f32): Likewise.
31744 (vsub_u8): Likewise.
31745 (vsub_u16): Likewise.
31746 (vsub_u32): Likewise.
31747 (vsub_s64): Likewise.
31748 (vsub_u64): Likewise.
31749 (vsubq_s8): Likewise.
31750 (vsubq_s16): Likewise.
31751 (vsubq_s32): Likewise.
31752 (vsubq_s64): Likewise.
31753 (vsubq_f32): Likewise.
31754 (vsubq_u8): Likewise.
31755 (vsubq_u16): Likewise.
31756 (vsubq_u32): Likewise.
31757 (vsubq_u64): Likewise.
31758 (vand_s8): Likewise.
31759 (vand_s16): Likewise.
31760 (vand_s32): Likewise.
31761 (vand_u8): Likewise.
31762 (vand_u16): Likewise.
31763 (vand_u32): Likewise.
31764 (vand_s64): Likewise.
31765 (vand_u64): Likewise.
31766 (vandq_s8): Likewise.
31767 (vandq_s16): Likewise.
31768 (vandq_s32): Likewise.
31769 (vandq_s64): Likewise.
31770 (vandq_u8): Likewise.
31771 (vandq_u16): Likewise.
31772 (vandq_u32): Likewise.
31773 (vandq_u64): Likewise.
31774 (vorr_s8): Likewise.
31775 (vorr_s16): Likewise.
31776 (vorr_s32): Likewise.
31777 (vorr_u8): Likewise.
31778 (vorr_u16): Likewise.
31779 (vorr_u32): Likewise.
31780 (vorr_s64): Likewise.
31781 (vorr_u64): Likewise.
31782 (vorrq_s8): Likewise.
31783 (vorrq_s16): Likewise.
31784 (vorrq_s32): Likewise.
31785 (vorrq_s64): Likewise.
31786 (vorrq_u8): Likewise.
31787 (vorrq_u16): Likewise.
31788 (vorrq_u32): Likewise.
31789 (vorrq_u64): Likewise.
31790 (veor_s8): Likewise.
31791 (veor_s16): Likewise.
31792 (veor_s32): Likewise.
31793 (veor_u8): Likewise.
31794 (veor_u16): Likewise.
31795 (veor_u32): Likewise.
31796 (veor_s64): Likewise.
31797 (veor_u64): Likewise.
31798 (veorq_s8): Likewise.
31799 (veorq_s16): Likewise.
31800 (veorq_s32): Likewise.
31801 (veorq_s64): Likewise.
31802 (veorq_u8): Likewise.
31803 (veorq_u16): Likewise.
31804 (veorq_u32): Likewise.
31805 (veorq_u64): Likewise.
31806 (vbic_s8): Likewise.
31807 (vbic_s16): Likewise.
31808 (vbic_s32): Likewise.
31809 (vbic_u8): Likewise.
31810 (vbic_u16): Likewise.
31811 (vbic_u32): Likewise.
31812 (vbic_s64): Likewise.
31813 (vbic_u64): Likewise.
31814 (vbicq_s8): Likewise.
31815 (vbicq_s16): Likewise.
31816 (vbicq_s32): Likewise.
31817 (vbicq_s64): Likewise.
31818 (vbicq_u8): Likewise.
31819 (vbicq_u16): Likewise.
31820 (vbicq_u32): Likewise.
31821 (vbicq_u64): Likewise.
31822 (vorn_s8): Likewise.
31823 (vorn_s16): Likewise.
31824 (vorn_s32): Likewise.
31825 (vorn_u8): Likewise.
31826 (vorn_u16): Likewise.
31827 (vorn_u32): Likewise.
31828 (vorn_s64): Likewise.
31829 (vorn_u64): Likewise.
31830 (vornq_s8): Likewise.
31831 (vornq_s16): Likewise.
31832 (vornq_s32): Likewise.
31833 (vornq_s64): Likewise.
31834 (vornq_u8): Likewise.
31835 (vornq_u16): Likewise.
31836 (vornq_u32): Likewise.
31837 (vornq_u64): Likewise.
31839 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31841 * wide-int.cc (UTItype): Define.
31842 (UDWtype): Define for appropriate W_TYPE_SIZE.
31844 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
31846 PR tree-optimization/59100
31847 * tree-ssa-phiopt.c: Include tree-inline.h.
31848 (neutral_element_p, absorbing_element_p): New functions.
31849 (value_replacement): Handle conditional binary operations with a
31850 neutral or absorbing element.
31852 2014-05-08 Richard Biener <rguenther@suse.de>
31854 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
31855 folding the expression.
31856 (valueize_expr): Remove.
31857 (visit_reference_op_load): Do not valueize the result of
31859 (simplify_binary_expression): Likewise.
31860 (simplify_unary_expression): Likewise.
31862 2014-05-08 Richard Biener <rguenther@suse.de>
31864 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
31865 looking at TYPE_ARG_TYPES.
31867 2014-05-08 Richard Biener <rguenther@suse.de>
31869 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
31870 pointer propagation special-case.
31872 2014-05-08 Bin Cheng <bin.cheng@arm.com>
31874 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
31875 core part of address expressions.
31877 2014-05-08 Alan Modra <amodra@gmail.com>
31880 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
31881 loads and stores when -mno-strict-align at any alignment.
31882 (expand_block_clear): Similarly. Also correct calculation of
31885 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
31887 PR middle-end/39246
31888 * tree-complex.c (expand_complex_move): Keep line info when expanding
31890 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
31891 of complex expression. Use new argument to display correct location
31892 for values coming from phi statement.
31893 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
31894 (warn_uninitialized_phi): Pass location of phi argument to
31896 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
31897 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
31899 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31901 * config/rs6000/predicates.md (indexed_address_mem): New.
31902 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
31903 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
31904 fpstore_ux, fpstore_u.
31905 (sign_extend, indexed, update): New.
31906 (cell_micro): Adjust.
31907 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
31908 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
31909 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
31910 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
31911 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
31912 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
31913 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
31914 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
31915 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
31916 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
31917 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
31918 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
31919 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
31920 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
31921 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
31923 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
31924 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
31925 *vsx_extract_<mode>_store): Adjust.
31926 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
31927 is_cracked_insn, insn_must_be_first_in_group,
31928 insn_must_be_last_in_group): Adjust.
31930 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
31932 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
31933 ppc440-fpstore): Adjust.
31934 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
31935 ppc476-fpstore): Adjust.
31936 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
31937 ppc601-fpstore): Adjust.
31938 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
31940 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
31942 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
31943 ppc7450-fpstore): Adjust.
31944 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
31945 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
31946 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
31948 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
31949 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
31950 cell-fpstore, cell-fpstore-update): Adjust.
31951 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
31952 ppce300c3_store, ppce300c3_fpstore): Adjust.
31953 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
31954 e500mc_fpstore): Adjust.
31955 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
31956 e500mc64_store, e500mc64_fpstore): Adjust.
31957 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
31958 e5500_fpstore): Adjust.
31959 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
31960 e6500_fpstore): Adjust.
31961 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
31963 * config/rs6000/power4.md (power4-load, power4-load-ext,
31964 power4-load-ext-update, power4-load-ext-update-indexed,
31965 power4-load-update-indexed, power4-load-update, power4-fpload,
31966 power4-fpload-update, power4-store, power4-store-update,
31967 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
31969 * config/rs6000/power5.md (power5-load, power5-load-ext,
31970 power5-load-ext-update, power5-load-ext-update-indexed,
31971 power5-load-update-indexed, power5-load-update, power5-fpload,
31972 power5-fpload-update, power5-store, power5-store-update,
31973 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
31975 * config/rs6000/power6.md (power6-load, power6-load-ext,
31976 power6-load-update, power6-load-update-indexed,
31977 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
31978 power6-fpload-update, power6-store, power6-store-update,
31979 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
31981 * config/rs6000/power7.md (power7-load, power7-load-ext,
31982 power7-load-update, power7-load-update-indexed,
31983 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
31984 power7-fpload-update, power7-store, power7-store-update,
31985 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
31987 * config/rs6000/power8.md (power8-load, power8-load-update,
31988 power8-load-ext, power8-load-ext-update, power8-fpload,
31989 power8-fpload-update, power8-store, power8-store-update-indexed,
31990 power8-fpstore, power8-fpstore-update): Adjust.
31991 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
31993 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
31994 titan_lsu_store, titan_lsu_fpstore): Adjust.
31995 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
31997 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
32000 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
32001 unrolled byte insns. Emit address increments after move insns.
32003 2014-05-07 David Malcolm <dmalcolm@redhat.com>
32005 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
32006 const_gimple, rather than a gimple.
32007 (gimple_call_builtin_p): Likewise, for the three variants.
32009 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
32010 (gimple_call_builtin_p): Likewise, for the three variants.
32012 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32014 PR tree-optimization/61095
32015 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
32017 2014-05-07 Richard Biener <rguenther@suse.de>
32019 PR tree-optimization/61034
32020 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
32021 (maybe_skip_until): Use translate to take into account
32022 lattices when trying to do disambiguations.
32023 (get_continuation_for_phi_1): Likewise.
32024 (get_continuation_for_phi): Adjust for added translate arguments.
32025 (walk_non_aliased_vuses): Likewise.
32026 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
32027 (walk_non_aliased_vuses): Likewise.
32028 (call_may_clobber_ref_p_1): Declare.
32029 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
32030 calls. Stop early if we are only supposed to disambiguate.
32031 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
32033 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
32035 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
32036 Emit an error when the function has arguments.
32038 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
32040 * cfgloop.h (unswitch_loops): Remove.
32041 * doc/passes.texi: Remove references to loop-unswitch.c
32042 * timevar.def (TV_LOOP_UNSWITCH): Remove.
32044 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
32046 * tree-vect-data-refs.c (vect_grouped_load_supported): New
32047 check for loads group of length 3.
32048 (vect_permute_load_chain): New permutations for loads group of
32050 * tree-vect-stmts.c (vect_model_load_cost): Change cost
32051 of vec_perm_shuffle for the new permutations.
32053 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
32055 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
32056 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
32057 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
32058 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
32059 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
32060 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
32061 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
32062 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
32064 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
32066 * loop-unswitch.c: Delete.
32068 2014-05-07 Richard Biener <rguenther@suse.de>
32070 * config.gcc: Always set need_64bit_hwint to yes.
32072 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
32074 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
32075 of using optimize_size.
32077 2014-05-06 Mike Stump <mikestump@comcast.net>
32079 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
32081 2014-05-06 Joseph Myers <joseph@codesourcery.com>
32083 * config/i386/sse.md (*mov<mode>_internal)
32084 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
32085 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
32086 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
32087 (*<code><mode>3, *andnot<mode>3<mask_name>)
32088 (<mask_codefor><code><mode>3<mask_name>): Only consider
32089 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
32091 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
32094 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
32096 * lra-constraints.c (valid_address_p): Move earlier in file.
32097 Add a constraint argument to the address_info version.
32098 (satisfies_memory_constraint_p): New function.
32099 (satisfies_address_constraint_p): Likewise.
32100 (process_alt_operands, curr_insn_transform): Use them.
32101 (process_address): Pass the constraint to valid_address_p when
32102 checking address operands.
32104 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
32106 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
32107 to their respective blocks. Fix inadvertent use of "node".
32109 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
32111 * emit-rtl.c (init_derived_machine_modes): New functionm, split
32113 (init_emit_once): ...here.
32114 * rtl.h (init_derived_machine_modes): Declare.
32115 * toplev.c (do_compile): Call it even if no_backend.
32117 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
32118 Mike Stump <mikestump@comcast.net>
32119 Richard Sandiford <rdsandiford@googlemail.com>
32120 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32122 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
32123 (rtx_equal_for_memref_p): Update comment.
32124 (adjust_offset_for_component_ref): Use wide-int interfaces.
32125 * builtins.c (get_object_alignment_2): Likewise.
32126 (c_readstr): Likewise.
32127 (target_char_cast): Add comment.
32128 (determine_block_size): Use wide-int interfaces.
32129 (expand_builtin_signbit): Likewise.
32130 (fold_builtin_int_roundingfn): Likewise.
32131 (fold_builtin_bitop): Likewise.
32132 (fold_builtin_bswap): Likewise.
32133 (fold_builtin_logarithm): Use signop.
32134 (fold_builtin_pow): Likewise.
32135 (fold_builtin_memory_op): Use wide-int interfaces.
32136 (fold_builtin_object_size): Likewise.
32137 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
32138 nb_iterations_estimate.
32139 (record_niter_bound): Use wide-int interfaces.
32140 (get_estimated_loop_iterations_int): Likewise.
32141 (get_estimated_loop_iterations): Likewise.
32142 (get_max_loop_iterations): Likewise.
32143 * cfgloop.h: Include wide-int.h.
32144 (struct nb_iter_bound): Change bound to widest_int.
32145 (struct loop): Change nb_iterations_upper_bound and
32146 nb_iterations_estimate to widest_int.
32147 (record_niter_bound): Switch to use widest_int.
32148 (get_estimated_loop_iterations): Likewise.
32149 (get_max_loop_iterations): Likewise.
32150 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
32151 update for wide-int.
32152 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
32153 * combine.c (try_combine): Likewise.
32154 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
32155 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
32157 (aarch64_float_const_representable_p): Likewise.
32158 * config/arc/arc.c: Include wide-int.h.
32159 (arc_can_use_doloop_p): Use wide-int interfaces.
32160 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
32161 (vfp3_const_double_index): Likewise.
32162 * config/avr/avr.c (avr_out_round): Likewise.
32163 (avr_fold_builtin): Likewise.
32164 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
32165 (bfin_can_use_doloop_p): Likewise.
32166 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
32167 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
32168 * config/i386/i386.c: Include wide-int.h.
32169 (ix86_data_alignment): Use wide-int interfaces.
32170 (ix86_local_alignment): Likewise.
32171 (ix86_emit_swsqrtsf): Update real_from_integer.
32172 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
32173 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
32174 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
32175 (zero_constant): Likewise.
32176 (input_operand): Likewise.
32177 (splat_input_operand): Likewise.
32178 (non_logical_cint_operand): Change const_double to const_wide_int.
32179 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
32180 (easy_altivec_constant): Remove comment.
32181 (paired_expand_vector_init): Use CONSTANT_P.
32182 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
32183 (rs6000_emit_move): Update checks.
32184 (rs6000_aggregate_candidate): Use wide-int interfaces.
32185 (rs6000_expand_ternop_builtin): Likewise.
32186 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
32187 (rs6000_assemble_integer): Likewise.
32188 (rs6000_hash_constant): Likewise.
32189 (output_toc): Likewise.
32190 (rs6000_rtx_costs): Likewise.
32191 (rs6000_emit_swrsqrt); Update call to real_from_integer.
32192 * config/rs6000/rs6000-c.c: Include wide-int.h.
32193 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
32194 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
32195 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
32196 Handle CONST_WIDE_INT.
32197 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
32198 Use tree_fits_uhwi_p.
32199 * config/sparc/sparc.c: Include wide-int.h.
32200 (sparc_fold_builtin): Use wide-int interfaces.
32201 * config/vax/vax.c: Include wide-int.h.
32202 (vax_float_literal): Use real_from_integer.
32203 * coretypes.h (struct hwivec_def): New.
32205 (const_hwivec): New.
32206 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
32207 (equiv_constant): Handle CONST_WIDE_INT.
32208 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
32209 (cselib_hash_rtx): Handle CONST_WIDE_INT.
32210 * dbxout.c (stabstr_U): Use wide-int interfaces.
32211 (dbxout_type): Update to use cst_fits_shwi_p.
32212 * defaults.h (LOG2_BITS_PER_UNIT): Define.
32213 (TARGET_SUPPORTS_WIDE_INT): Add default.
32214 * dfp.c: Include wide-int.h.
32215 (decimal_real_to_integer2): Use wide-int interfaces and rename to
32216 decimal_real_to_integer.
32217 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
32218 decimal_real_to_integer.
32219 * doc/generic.texi (Constant expressions): Update for wide_int.
32220 * doc/rtl.texi (const_double): Likewise.
32221 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
32222 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
32223 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
32224 (REAL_VALUE_FROM_INT): Remove.
32225 (TARGET_SUPPORTS_WIDE_INT): New.
32226 * doc/tm.texi: Regenerate.
32227 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
32228 * double-int.h: Include wide-int.h.
32229 (struct wi::int_traits): New.
32230 * dwarf2out.c (get_full_len): New.
32231 (dw_val_equal_p): Add case dw_val_class_wide_int.
32232 (size_of_loc_descr): Likewise.
32233 (output_loc_operands): Likewise.
32234 (insert_double): Remove.
32235 (insert_wide_int): New.
32236 (add_AT_wide): New.
32237 (print_die): Add case dw_val_class_wide_int.
32238 (attr_checksum): Likewise.
32239 (attr_checksum_ordered): Likewise.
32240 (same_dw_val_p): Likewise.
32241 (size_of_die): Likewise.
32242 (value_format): Likewise.
32243 (output_die): Likewise.
32244 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
32246 (clz_loc_descriptor): Use wide-int interfaces.
32247 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
32248 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
32249 (round_up_to_align): Use wide-int interfaces.
32250 (field_byte_offset): Likewise.
32251 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
32252 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
32253 CONST_DOUBLE handling. Use wide-int interfaces.
32254 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
32255 (gen_enumeration_type_die): Use add_AT_wide.
32256 (hash_loc_operands): Add case dw_val_class_wide_int.
32257 (compare_loc_operands): Likewise.
32258 * dwarf2out.h: Include wide-int.h.
32259 (wide_int_ptr): New.
32260 (enum dw_val_class): Add dw_val_class_wide_int.
32261 (struct dw_val_struct): Add val_wide.
32262 * emit-rtl.c (const_wide_int_htab): New.
32263 (const_wide_int_htab_hash): New.
32264 (const_wide_int_htab_eq): New.
32265 (lookup_const_wide_int): New.
32266 (const_double_htab_hash): Use wide-int interfaces.
32267 (const_double_htab_eq): Likewise.
32268 (rtx_to_double_int): Conditionally compile for wide-int.
32269 (immed_double_int_const): Rename to immed_wide_int_const and
32270 update for wide-int.
32271 (immed_double_const): Conditionally compile for wide-int.
32272 (init_emit_once): Use wide-int interfaces.
32273 * explow.c (plus_constant): Likewise.
32274 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
32275 (lshift_value): Use wide-int interfaces.
32276 (expand_mult): Likewise.
32277 (choose_multiplier): Likewise.
32278 (expand_smod_pow2): Likewise.
32279 (make_tree): Likewise.
32280 * expr.c (convert_modes): Consolidate handling of constants.
32281 Use wide-int interfaces.
32282 (emit_group_load_1): Add note.
32283 (store_expr): Update comment.
32284 (get_inner_reference): Use wide-int interfaces.
32285 (expand_constructor): Update comment.
32286 (expand_expr_real_2): Use wide-int interfaces.
32287 (expand_expr_real_1): Likewise.
32288 (reduce_to_bit_field_precision): Likewise.
32289 (const_vector_from_tree): Likewise.
32290 * final.c: Include wide-int-print.h.
32291 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
32292 * fixed-value.c: Include wide-int.h.
32293 (fixed_from_string): Use wide-int interfaces.
32294 (fixed_to_decimal): Likewise.
32295 (fixed_convert_from_real): Likewise.
32296 (real_convert_from_fixed): Likewise.
32297 * fold-const.h (mem_ref_offset): Return an offset_int.
32298 (div_if_zero_remainder): Remove code parameter.
32299 * fold-const.c (div_if_zero_remainder): Remove code parameter.
32300 Use wide-int interfaces.
32301 (may_negate_without_overflow_p): Use wide-int interfaces.
32302 (negate_expr_p): Likewise.
32303 (fold_negate_expr): Likewise.
32304 (int_const_binop_1): Likewise.
32305 (const_binop): Likewise.
32306 (fold_convert_const_int_from_int): Likewise.
32307 (fold_convert_const_int_from_real): Likewise.
32308 (fold_convert_const_int_from_fixed): Likewise.
32309 (fold_convert_const_fixed_from_int): Likewise.
32310 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
32311 (sign_bit_p): Use wide-int interfaces.
32312 (make_range_step): Likewise.
32313 (build_range_check): Likewise. Pass an integer of the correct type
32314 instead of using integer_one_node.
32315 (range_predecessor): Pass an integer of the correct type instead
32316 of using integer_one_node.
32317 (range_successor): Likewise.
32318 (merge_ranges): Likewise.
32319 (unextend): Use wide-int interfaces.
32320 (extract_muldiv_1): Likewise.
32321 (fold_div_compare): Likewise.
32322 (fold_single_bit_test): Likewise.
32323 (fold_sign_changed_comparison): Likewise.
32324 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
32325 (fold_plusminus_mult_expr): Use wide-int interfaces.
32326 (native_encode_int): Likewise.
32327 (native_interpret_int): Likewise.
32328 (fold_unary_loc): Likewise.
32329 (pointer_may_wrap_p): Likewise.
32330 (size_low_cst): Likewise.
32331 (mask_with_tz): Likewise.
32332 (fold_binary_loc): Likewise.
32333 (fold_ternary_loc): Likewise.
32334 (multiple_of_p): Likewise.
32335 (tree_call_nonnegative_warnv_p): Update calls to
32336 tree_int_cst_min_precision and real_from_integer.
32337 (fold_negate_const): Use wide-int interfaces.
32338 (fold_abs_const): Likewise.
32339 (fold_relational_const): Use tree_int_cst_lt.
32340 (round_up_loc): Use wide-int interfaces.
32341 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
32342 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
32343 * gengtype.c: Remove include of double-int.h.
32344 (do_typedef): Use wide-int interfaces.
32345 (open_base_files): Add wide-int.h.
32346 (main): Add offset_int and widest_int typedefs.
32347 * gengtype-lex.l: Handle "^".
32348 (CXX_KEYWORD): Add "static".
32349 * gengtype-parse.c (require3): New.
32350 (require_template_declaration): Handle constant template arguments
32351 and nested templates.
32352 * gengtype-state.c: Don't include "double-int.h".
32353 * genpreds.c (write_one_predicate_function): Update comment.
32354 (write_tm_constrs_h): Add check for hval and lval use in
32356 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
32357 (add_to_sequence): Likewise.
32358 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
32359 and const_double_operand.
32360 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
32362 * gimple-fold.c (get_base_constructor): Likewise.
32363 (fold_array_ctor_reference): Likewise.
32364 (fold_nonarray_ctor_reference): Likewise.
32365 (fold_const_aggregate_ref_1): Likewise.
32366 (gimple_val_nonnegative_real_p): Likewise.
32367 (gimple_fold_indirect_ref): Likewise.
32368 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
32369 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
32370 (struct slsr_cand_d): Change index to be widest_int.
32371 (struct incr_info_d): Change incr to be widest_int.
32372 (alloc_cand_and_find_basis): Use wide-int interfaces.
32373 (slsr_process_phi): Likewise.
32374 (backtrace_base_for_ref): Likewise. Return a widest_int.
32375 (restructure_reference): Take a widest_int instead of a double_int.
32376 (slsr_process_ref): Use wide-int interfaces.
32377 (create_mul_ssa_cand): Likewise.
32378 (create_mul_imm_cand): Likewise.
32379 (create_add_ssa_cand): Likewise.
32380 (create_add_imm_cand): Take a widest_int instead of a double_int.
32381 (slsr_process_add): Use wide-int interfaces.
32382 (slsr_process_cast): Likewise.
32383 (slsr_process_copy): Likewise.
32384 (dump_candidate): Likewise.
32385 (dump_incr_vec): Likewise.
32386 (replace_ref): Likewise.
32387 (cand_increment): Likewise. Return a widest_int.
32388 (cand_abs_increment): Likewise.
32389 (replace_mult_candidate): Take a widest_int instead of a double_int.
32390 (replace_unconditional_candidate): Use wide-int interfaces.
32391 (incr_vec_index): Take a widest_int instead of a double_int.
32392 (create_add_on_incoming_edge): Likewise.
32393 (create_phi_basis): Use wide-int interfaces.
32394 (replace_conditional_candidate): Likewise.
32395 (record_increment): Take a widest_int instead of a double_int.
32396 (record_phi_increments): Use wide-int interfaces.
32397 (phi_incr_cost): Take a widest_int instead of a double_int.
32398 (lowest_cost_path): Likewise.
32399 (total_savings): Likewise.
32400 (analyze_increments): Use wide-int interfaces.
32401 (ncd_with_phi): Take a widest_int instead of a double_int.
32402 (ncd_of_cand_and_phis): Likewise.
32403 (nearest_common_dominator_for_cands): Likewise.
32404 (insert_initializers): Use wide-int interfaces.
32405 (all_phi_incrs_profitable): Likewise.
32406 (replace_one_candidate): Likewise.
32407 (replace_profitable_candidates): Likewise.
32408 * godump.c: Include wide-int-print.h.
32409 (go_output_typedef): Use wide-int interfaces.
32410 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
32411 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
32412 (build_loop_iteration_domains): Likewise.
32413 * hooks.h: Include wide-int.h rather than double-int.h.
32414 (hook_bool_dint_dint_uint_bool_true): Delete.
32415 (hook_bool_wint_wint_uint_bool_true): Declare.
32416 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
32417 (hook_bool_wint_wint_uint_bool_true): New.
32418 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
32420 (ubsan_expand_si_overflow_mul_check): Likewise.
32421 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
32422 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
32423 (get_ancestor_addr_info): Likewise.
32424 (ipa_modify_call_arguments): Likewise.
32425 * loop-doloop.c (doloop_modify): Likewise.
32426 (doloop_optimize): Likewise.
32427 * loop-iv.c (iv_number_of_iterations): Likewise.
32428 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
32429 (unroll_loop_constant_iterations): Likewise.
32430 (decide_unroll_runtime_iterations): Likewise.
32431 (unroll_loop_runtime_iterations): Likewise.
32432 (decide_peel_simple): Likewise.
32433 (decide_unroll_stupid): Likewise.
32434 * lto-streamer-in.c (streamer_read_wi): Add.
32435 (input_cfg): Use wide-int interfaces.
32436 (lto_input_tree_1): Likewise.
32437 * lto-streamer-out.c (streamer_write_wi): Add.
32438 (hash_tree): Use wide-int interfaces.
32439 (output_cfg): Likewise.
32440 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
32441 (GTFILES): Add wide-int.h and signop.h.
32442 (TAGS): Look for .cc files too.
32443 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
32444 * optabs.c (expand_subword_shift): Likewise.
32445 (expand_doubleword_shift): Likewise.
32446 (expand_absneg_bit): Likewise.
32447 (expand_copysign_absneg): Likewise.
32448 (expand_copysign_bit): Likewise.
32449 * postreload.c (reload_cse_simplify_set): Likewise.
32450 * predict.c (predict_iv_comparison): Likewise.
32451 * pretty-print.h: Include wide-int-print.h.
32453 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
32454 * print-tree.c: Include wide-int-print.h.
32455 (print_node_brief): Use wide-int interfaces.
32456 (print_node): Likewise.
32457 * read-rtl.c (validate_const_wide_int): New.
32458 (read_rtx_code): Add CONST_WIDE_INT case.
32459 * real.c: Include wide-int.h.
32460 (real_to_integer2): Delete.
32461 (real_to_integer): New function, returning a wide_int.
32462 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
32463 (ten_to_ptwo): Update call to real_from_integer.
32464 (real_digit): Likewise.
32465 * real.h: Include signop.h, wide-int.h and insn-modes.h.
32466 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
32467 (REAL_VALUE_TO_INT): Delete.
32468 (real_to_integer): Declare a wide-int form.
32469 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
32470 * recog.c (const_int_operand): Improve comment.
32471 (const_scalar_int_operand): New.
32472 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
32473 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
32474 (split_double): Likewise.
32475 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
32476 (rtx_size): Likewise.
32477 (rtx_alloc_stat_v): New.
32478 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
32479 (cwi_output_hex): New.
32480 (iterative_hash_rtx): Handle CONST_WIDE_INT.
32481 (cwi_check_failed_bounds): New.
32482 * rtl.def (CONST_WIDE_INT): New.
32483 * rtl.h: Include <utility> and wide-int.h.
32484 (struct hwivec_def): New.
32485 (CWI_GET_NUM_ELEM): New.
32486 (CWI_PUT_NUM_ELEM): New.
32487 (struct rtx_def): Add num_elem and hwiv.
32488 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
32489 (CASE_CONST_UNIQUE): Likewise.
32490 (CASE_CONST_ANY): Likewise.
32491 (CONST_SCALAR_INT_P): Likewise.
32492 (CONST_WIDE_INT_P): New.
32494 (HWIVEC_CHECK): New.
32495 (cwi_check_failed_bounds): New.
32497 (HWIVEC_CHECK): New.
32498 (CONST_WIDE_INT_VEC) New.
32499 (CONST_WIDE_INT_NUNITS) New.
32500 (CONST_WIDE_INT_ELT) New.
32501 (rtx_mode_t): New type.
32502 (wi::int_traits <rtx_mode_t>): New.
32504 (wi::min_value): New.
32505 (wi::max_value): New.
32507 (const_wide_int_alloc): New.
32508 (immed_wide_int_const): New.
32509 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
32510 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
32511 * signop.h: New file.
32512 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
32513 (simplify_const_unary_operation): Use wide-int interfaces.
32514 (simplify_binary_operation_1): Likewise.
32515 (simplify_const_binary_operation): Likewise.
32516 (simplify_const_relational_operation): Likewise.
32517 (simplify_immed_subreg): Likewise.
32518 * stmt.c (expand_case): Likewise.
32519 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
32520 signop rather than a bool.
32521 * stor-layout.c (layout_type): Use wide-int interfaces.
32522 (initialize_sizetypes): Update calls to
32523 set_min_and_max_values_for_integral_type.
32524 (set_min_and_max_values_for_integral_type): Take a signop rather
32525 than a bool. Use wide-int interfaces.
32526 (fixup_signed_type): Update accordingly. Remove
32527 HOST_BITS_PER_DOUBLE_INT limit.
32528 (fixup_unsigned_type): Likewise.
32529 * system.h (STATIC_CONSTANT_P): New.
32530 (STATIC_ASSERT): New.
32531 * target.def (can_use_doloop_p): Take widest_ints rather than
32533 * target.h: Include wide-int.h rather than double-int.h.
32534 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
32536 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
32537 rather than INT_CST_LT_UNSIGNED.
32538 (can_use_doloop_if_innermost): Take widest_ints rather than
32540 * tree-affine.c: Include wide-int-print.h.
32541 (double_int_ext_for_comb): Delete.
32542 (wide_int_ext_for_comb): New.
32543 (aff_combination_zero): Use wide-int interfaces.
32544 (aff_combination_const): Take a widest_int instead of a double_int.
32545 (aff_combination_elt): Use wide-int interfaces.
32546 (aff_combination_scale): Take a widest_int instead of a double_int.
32547 (aff_combination_add_elt): Likewise.
32548 (aff_combination_add_cst): Likewise.
32549 (aff_combination_add): Use wide-int interfaces.
32550 (aff_combination_convert): Likewise.
32551 (tree_to_aff_combination): Likewise.
32552 (add_elt_to_tree): Take a widest_int instead of a double_int.
32553 (aff_combination_to_tree): Use wide-int interfaces.
32554 (aff_combination_remove_elt): Likewise.
32555 (aff_combination_add_product): Take a widest_int instead of
32557 (aff_combination_mult): Use wide-int interfaces.
32558 (aff_combination_expand): Likewise.
32559 (double_int_constant_multiple_p): Delete.
32560 (wide_int_constant_multiple_p): New.
32561 (aff_combination_constant_multiple_p): Take a widest_int pointer
32562 instead of a double_int pointer.
32563 (print_aff): Use wide-int interfaces.
32564 (get_inner_reference_aff): Take a widest_int pointer
32565 instead of a double_int pointer.
32566 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
32567 * tree-affine.h: Include wide-int.h.
32568 (struct aff_comb_elt): Change type of coef to widest_int.
32569 (struct affine_tree_combination): Change type of offset to widest_int.
32570 (double_int_ext_for_comb): Delete.
32571 (wide_int_ext_for_comb): New.
32572 (aff_combination_const): Use widest_int instead of double_int.
32573 (aff_combination_scale): Likewise.
32574 (aff_combination_add_elt): Likewise.
32575 (aff_combination_constant_multiple_p): Likewise.
32576 (get_inner_reference_aff): Likewise.
32577 (aff_comb_cannot_overlap_p): Likewise.
32578 (aff_combination_zero_p): Use wide-int interfaces.
32579 * tree.c: Include tree.h.
32580 (init_ttree): Use make_int_cst.
32581 (tree_code_size): Removed code for INTEGER_CST case.
32582 (tree_size): Add INTEGER_CST case.
32583 (make_node_stat): Update comment.
32584 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
32585 (build_int_cst_type): Use wide-int interfaces.
32586 (double_int_to_tree): Likewise.
32587 (double_int_fits_to_tree_p): Delete.
32588 (force_fit_type_double): Delete.
32589 (force_fit_type): New.
32590 (int_cst_hash_hash): Use wide-int interfaces.
32591 (int_cst_hash_eq): Likewise.
32592 (build_int_cst_wide): Delete.
32593 (wide_int_to_tree): New.
32594 (cache_integer_cst): Use wide-int interfaces.
32595 (build_low_bits_mask): Likewise.
32596 (cst_and_fits_in_hwi): Likewise.
32597 (real_value_from_int_cst): Likewise.
32598 (make_int_cst_stat): New.
32599 (integer_zerop): Use wide_int interfaces.
32600 (integer_onep): Likewise.
32601 (integer_all_onesp): Likewise.
32602 (integer_pow2p): Likewise.
32603 (integer_nonzerop): Likewise.
32604 (tree_log2): Likewise.
32605 (tree_floor_log2): Likewise.
32606 (tree_ctz): Likewise.
32607 (int_size_in_bytes): Likewise.
32608 (mem_ref_offset): Return an offset_int rather than a double_int.
32609 (build_type_attribute_qual_variant): Use wide_int interfaces.
32610 (type_hash_eq): Likewise
32611 (tree_int_cst_equal): Likewise.
32612 (tree_int_cst_lt): Delete.
32613 (tree_int_cst_compare): Likewise.
32614 (tree_fits_shwi_p): Use wide_int interfaces.
32615 (tree_fits_uhwi_p): Likewise.
32616 (tree_int_cst_sign_bit): Likewise.
32617 (tree_int_cst_sgn): Likewise.
32618 (tree_int_cst_min_precision): Take a signop rather than a bool.
32619 (simple_cst_equal): Use wide_int interfaces.
32620 (compare_tree_int): Likewise.
32621 (iterative_hash_expr): Likewise.
32622 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
32624 (get_type_static_bounds): Use wide_int interfaces.
32625 (tree_int_cst_elt_check_failed): New.
32626 (build_common_tree_nodes): Reordered to set prec before filling in
32628 (int_cst_value): Check cst_and_fits_in_hwi.
32629 (widest_int_cst_value): Use wide_int interfaces.
32630 (upper_bound_in_type): Likewise.
32631 (lower_bound_in_type): Likewise.
32632 (num_ending_zeros): Likewise.
32633 (drop_tree_overflow): Likewise.
32634 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
32635 (gen_conditions_for_pow_cst_base): Likewise.
32636 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
32637 (group_case_labels_stmt): Use wide-int interfaces.
32638 (verify_gimple_assign_binary): Likewise.
32639 (print_loop): Likewise.
32640 * tree-chrec.c (tree_fold_binomial): Likewise.
32641 * tree-core.h (struct tree_base): Add int_length.
32642 (struct tree_int_cst): Change rep of value.
32643 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
32644 (dr_may_alias_p): Likewise.
32645 (max_stmt_executions_tree): Likewise.
32646 * tree.def (INTEGER_CST): Update comment.
32647 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
32648 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
32649 * tree-dump.c: Include wide-int.h and wide-int-print.h.
32650 (dequeue_and_dump): Use wide-int interfaces.
32651 * tree.h: Include wide-int.h.
32652 (NULL_TREE): Moved to earlier loc in file.
32653 (TREE_INT_CST_ELT_CHECK): New.
32654 (tree_int_cst_elt_check_failed): New.
32656 (TREE_INT_CST): Delete.
32657 (TREE_INT_CST_LOW): Use wide-int interfaces.
32658 (TREE_INT_CST_HIGH): Delete.
32659 (TREE_INT_CST_NUNITS): New.
32660 (TREE_INT_CST_EXT_NUNITS): Likewise.
32661 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
32662 (TREE_INT_CST_ELT): Likewise.
32663 (INT_CST_LT): Delete.
32664 (tree_int_cst_elt_check): New (two forms).
32665 (type_code_size): Update comment.
32666 (make_int_cst_stat, make_int_cst): New.
32667 (tree_to_double_int): Delete.
32668 (double_int_fits_to_tree_p): Delete.
32669 (force_fit_type_double): Delete.
32670 (build_int_cstu): Replace with out-of-line function.
32671 (build_int_cst_wide): Delete.
32672 (tree_int_cst_lt): Define inline.
32673 (tree_int_cst_le): New.
32674 (tree_int_cst_compare): Define inline.
32675 (tree_int_cst_min_precision): Take a signop rather than a bool.
32676 (wi::int_traits <const_tree>): New.
32677 (wi::int_traits <tree>): New.
32678 (wi::extended_tree): New.
32679 (wi::int_traits <wi::extended_tree>): New.
32680 (wi::to_widest): New.
32681 (wi::to_offset): New.
32682 (wi::fits_to_tree_p): New.
32683 (wi::min_value): New.
32684 (wi::max_value): New.
32685 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
32686 (copy_tree_body_r): Likewise.
32687 * tree-object-size.c (compute_object_offset): Likewise.
32688 (addr_object_size): Likewise.
32689 * tree-predcom.c: Include wide-int-print.h.
32690 (struct dref_d): Change type of offset to widest_int.
32691 (dump_dref): Call wide-int printer.
32692 (aff_combination_dr_offset): Use wide-int interfaces.
32693 (determine_offset): Take a widest_int pointer rather than a
32694 double_int pointer.
32695 (split_data_refs_to_components): Use wide-int interfaces.
32696 (suitable_component_p): Likewise.
32697 (order_drefs): Likewise.
32698 (add_ref_to_chain): Likewise.
32699 (valid_initializer_p): Likewise.
32700 (determine_roots_comp): Likewise.
32701 * tree-pretty-print.c: Include wide-int-print.h.
32702 (dump_generic_node): Use wide-int interfaces.
32703 * tree-sra.c (sra_ipa_modify_expr): Likewise.
32704 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
32705 (move_fixed_address_to_symbol): Likewise.
32706 (move_hint_to_base): Likewise.
32707 (move_pointer_to_base): Likewise.
32708 (move_variant_to_index): Likewise.
32709 (most_expensive_mult_to_index): Likewise.
32710 (addr_to_parts): Likewise.
32711 (copy_ref_info): Likewise.
32712 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
32713 (indirect_refs_may_alias_p): Likewise.
32714 (stmt_kills_ref_p_1): Likewise.
32715 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
32716 * tree-ssa-ccp.c: Update comment at top of file. Include
32718 (struct prop_value_d): Change type of mask to widest_int.
32719 (extend_mask): New function.
32720 (dump_lattice_value): Use wide-int interfaces.
32721 (get_default_value): Likewise.
32722 (set_constant_value): Likewise.
32723 (set_value_varying): Likewise.
32724 (valid_lattice_transition): Likewise.
32725 (set_lattice_value): Likewise.
32726 (value_to_double_int): Delete.
32727 (value_to_wide_int): New.
32728 (get_value_from_alignment): Use wide-int interfaces.
32729 (get_value_for_expr): Likewise.
32730 (do_dbg_cnt): Likewise.
32731 (ccp_finalize): Likewise.
32732 (ccp_lattice_meet): Likewise.
32733 (bit_value_unop_1): Use widest_ints rather than double_ints.
32734 (bit_value_binop_1): Likewise.
32735 (bit_value_unop): Use wide-int interfaces.
32736 (bit_value_binop): Likewise.
32737 (bit_value_assume_aligned): Likewise.
32738 (evaluate_stmt): Likewise.
32739 (ccp_fold_stmt): Likewise.
32740 (visit_cond_stmt): Likewise.
32741 (ccp_visit_stmt): Likewise.
32742 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
32743 (constant_pointer_difference): Likewise.
32744 (associate_pointerplus): Likewise.
32745 (combine_conversions): Likewise.
32746 * tree-ssa-loop.h: Include wide-int.h.
32747 (struct tree_niter_desc): Change type of max to widest_int.
32748 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
32749 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
32750 (remove_redundant_iv_tests): Likewise.
32751 (canonicalize_loop_induction_variables): Likewise.
32752 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
32753 (constant_multiple_of): Take a widest_int pointer instead of
32754 a double_int pointer.
32755 (get_computation_aff): Use wide-int interfaces.
32756 (ptr_difference_cost): Likewise.
32757 (difference_cost): Likewise.
32758 (get_loop_invariant_expr_id): Likewise.
32759 (get_computation_cost_at): Likewise.
32760 (iv_elimination_compare_lt): Likewise.
32761 (may_eliminate_iv): Likewise.
32762 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
32763 instead of double_int.
32764 (max_loop_iterations): Likewise.
32765 (max_stmt_executions): Likewise.
32766 (estimated_stmt_executions): Likewise.
32767 * tree-ssa-loop-niter.c: Include wide-int-print.h.
32768 (split_to_var_and_offset): Use wide-int interfaces.
32769 (determine_value_range): Likewise.
32770 (bound_difference_of_offsetted_base): Likewise.
32771 (bounds_add): Take a widest_int instead of a double_int.
32772 (number_of_iterations_ne_max): Use wide-int interfaces.
32773 (number_of_iterations_ne): Likewise.
32774 (number_of_iterations_lt_to_ne): Likewise.
32775 (assert_loop_rolls_lt): Likewise.
32776 (number_of_iterations_lt): Likewise.
32777 (number_of_iterations_le): Likewise.
32778 (number_of_iterations_cond): Likewise.
32779 (number_of_iterations_exit): Likewise.
32780 (finite_loop_p): Likewise.
32781 (derive_constant_upper_bound_assign): Likewise.
32782 (derive_constant_upper_bound): Return a widest_int.
32783 (derive_constant_upper_bound_ops): Likewise.
32784 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
32785 (record_estimate): Take a widest_int rather than a double_int.
32786 (record_nonwrapping_iv): Use wide-int interfaces.
32787 (double_int_cmp): Delete.
32788 (wide_int_cmp): New.
32789 (bound_index): Take a widest_int rather than a double_int.
32790 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
32791 (maybe_lower_iteration_bound): Likewise.
32792 (estimate_numbers_of_iterations_loop): Likewise.
32793 (estimated_loop_iterations): Take a widest_int pointer than than
32794 a double_int pointer.
32795 (estimated_loop_iterations_int): Use wide-int interfaces.
32796 (max_loop_iterations): Take a widest_int pointer than than
32797 a double_int pointer.
32798 (max_loop_iterations_int): Use wide-int interfaces.
32799 (max_stmt_executions): Take a widest_int pointer than than
32800 a double_int pointer.
32801 (estimated_stmt_executions): Likewise.
32802 (n_of_executions_at_most): Use wide-int interfaces.
32803 (scev_probably_wraps_p): Likewise.
32804 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
32805 to real_to_integer.
32806 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
32808 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
32809 double_ints. Adjust for trailing_wide_ints <3> representation.
32810 (set_nonzero_bits): Likewise.
32811 (get_range_info): Return wide_ints rather than double_ints.
32812 Adjust for trailing_wide_ints <3> representation.
32813 (get_nonzero_bits): Likewise.
32814 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
32816 * tree-ssanames.h (struct range_info_def): Replace min, max and
32817 nonzero_bits with a trailing_wide_ints <3>.
32818 (set_range_info): Use wide_int_refs rather than double_ints.
32819 (set_nonzero_bits): Likewise.
32820 (get_range_info): Return wide_ints rather than double_ints.
32821 (get_nonzero_bits): Likewise.
32822 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
32823 * tree-ssa-pre.c (phi_translate_1): Likewise.
32824 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
32825 (acceptable_pow_call): Likewise.
32826 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
32828 (vn_reference_fold_indirect): Likewise.
32829 (vn_reference_maybe_forwprop_address): Likewise.
32830 (valueize_refs_1): Likewise.
32831 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
32832 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
32833 tree_int_cst_lt and tree_int_cst_le.
32834 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
32836 (streamer_alloc_tree): Likewise.
32837 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
32838 (streamer_write_tree_header): Likewise.
32839 (streamer_write_integer_cst): Likewise.
32840 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
32841 (build_constructors): Likewise.
32842 (array_value_type): Likewise.
32843 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
32844 (vect_check_gather): Likewise.
32845 * tree-vect-generic.c (build_replicated_const): Likewise.
32846 (expand_vector_divmod): Likewise.
32847 * tree-vect-loop.c (vect_transform_loop): Likewise.
32848 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
32849 (vect_do_peeling_for_alignment): Likewise.
32850 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
32851 * tree-vrp.c: Include wide-int.h.
32852 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
32853 (extract_range_from_assert): Use wide-int interfaces.
32854 (vrp_int_const_binop): Likewise.
32855 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
32856 double_int pointers.
32857 (ranges_from_anti_range): Use wide-int interfaces.
32858 (quad_int_cmp): Delete.
32859 (quad_int_pair_sort): Likewise.
32860 (extract_range_from_binary_expr_1): Use wide-int interfaces.
32861 (extract_range_from_unary_expr_1): Likewise.
32862 (adjust_range_with_scev): Likewise.
32863 (masked_increment): Take and return wide_ints rather than double_ints.
32864 (register_edge_assert_for_2): Use wide-int interfaces.
32865 (check_array_ref): Likewise.
32866 (search_for_addr_array): Likewise.
32867 (maybe_set_nonzero_bits): Likewise.
32868 (union_ranges): Pass an integer of the correct type instead of
32869 using integer_one_node.
32870 (intersect_ranges): Likewise.
32871 (simplify_truth_ops_using_ranges): Likewise.
32872 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
32873 (range_fits_type_p): Likewise.
32874 (simplify_cond_using_ranges): Likewise. Take a signop rather than
32876 (simplify_conversion_using_ranges): Use wide-int interfaces.
32877 (simplify_float_conversion_using_ranges): Likewise.
32878 (vrp_finalize): Likewise.
32879 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
32880 (gimple_stringops_transform): Likewise.
32881 * varasm.c (decode_addr_const): Likewise.
32882 (const_hash_1): Likewise.
32883 (const_rtx_hash_1): Likewise
32884 (output_constant): Likewise.
32885 (array_size_for_constructor): Likewise.
32886 (output_constructor_regular_field): Likewise.
32887 (output_constructor_bitfield): Likewise.
32888 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
32889 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
32891 * gencheck.c: Define BITS_PER_UNIT.
32892 * wide-int.cc: New.
32894 * wide-int-print.cc: New.
32895 * wide-int-print.h: New.
32897 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32899 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
32901 2014-05-06 Richard Biener <rguenther@suse.de>
32903 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
32904 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
32905 (TODO_verify_all): Adjust.
32906 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
32907 TODO_verify_stmts and TODO_verify_rtl_sharing.
32908 * bb-reorder.c: Likewise.
32909 * cfgexpand.c: Likewise.
32910 * cprop.c: Likewise.
32912 * function.c: Likewise.
32913 * fwprop.c: Likewise.
32914 * gcse.c: Likewise.
32915 * gimple-ssa-isolate-paths.c: Likewise.
32916 * gimple-ssa-strength-reduction.c: Likewise.
32917 * ipa-split.c: Likewise.
32918 * loop-init.c: Likewise.
32919 * loop-unroll.c: Likewise.
32920 * lower-subreg.c: Likewise.
32921 * modulo-sched.c: Likewise.
32922 * postreload-gcse.c: Likewise.
32923 * predict.c: Likewise.
32924 * recog.c: Likewise.
32925 * sched-rgn.c: Likewise.
32926 * store-motion.c: Likewise.
32927 * tracer.c: Likewise.
32928 * trans-mem.c: Likewise.
32929 * tree-call-cdce.c: Likewise.
32930 * tree-cfg.c: Likewise.
32931 * tree-cfgcleanup.c: Likewise.
32932 * tree-complex.c: Likewise.
32933 * tree-eh.c: Likewise.
32934 * tree-emutls.c: Likewise.
32935 * tree-if-conv.c: Likewise.
32936 * tree-into-ssa.c: Likewise.
32937 * tree-loop-distribution.c: Likewise.
32938 * tree-object-size.c: Likewise.
32939 * tree-parloops.c: Likewise.
32940 * tree-pass.h: Likewise.
32941 * tree-sra.c: Likewise.
32942 * tree-ssa-ccp.c: Likewise.
32943 * tree-ssa-copy.c: Likewise.
32944 * tree-ssa-copyrename.c: Likewise.
32945 * tree-ssa-dce.c: Likewise.
32946 * tree-ssa-dom.c: Likewise.
32947 * tree-ssa-dse.c: Likewise.
32948 * tree-ssa-forwprop.c: Likewise.
32949 * tree-ssa-ifcombine.c: Likewise.
32950 * tree-ssa-loop-ch.c: Likewise.
32951 * tree-ssa-loop-ivcanon.c: Likewise.
32952 * tree-ssa-loop.c: Likewise.
32953 * tree-ssa-math-opts.c: Likewise.
32954 * tree-ssa-phiopt.c: Likewise.
32955 * tree-ssa-phiprop.c: Likewise.
32956 * tree-ssa-pre.c: Likewise.
32957 * tree-ssa-reassoc.c: Likewise.
32958 * tree-ssa-sink.c: Likewise.
32959 * tree-ssa-strlen.c: Likewise.
32960 * tree-ssa-tail-merge.c: Likewise.
32961 * tree-ssa-uncprop.c: Likewise.
32962 * tree-switch-conversion.c: Likewise.
32963 * tree-tailcall.c: Likewise.
32964 * tree-vect-generic.c: Likewise.
32965 * tree-vectorizer.c: Likewise.
32966 * tree-vrp.c: Likewise.
32967 * tsan.c: Likewise.
32968 * var-tracking.c: Likewise.
32969 * bt-load.c: Likewise.
32970 * cfgcleanup.c: Likewise.
32971 * combine-stack-adj.c: Likewise.
32972 * combine.c: Likewise.
32973 * compare-elim.c: Likewise.
32974 * config/epiphany/resolve-sw-modes.c: Likewise.
32975 * config/i386/i386.c: Likewise.
32976 * config/mips/mips.c: Likewise.
32977 * config/s390/s390.c: Likewise.
32978 * config/sh/sh_treg_combine.cc: Likewise.
32979 * config/sparc/sparc.c: Likewise.
32982 * final.c: Likewise.
32983 * ifcvt.c: Likewise.
32984 * mode-switching.c: Likewise.
32985 * passes.c: Likewise.
32986 * postreload.c: Likewise.
32988 * reg-stack.c: Likewise.
32989 * regcprop.c: Likewise.
32990 * regrename.c: Likewise.
32993 2014-05-06 Richard Biener <rguenther@suse.de>
32995 PR middle-end/61070
32996 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
32997 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
32999 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
33002 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
33004 2014-05-05 Radovan Obradovic <robradovic@mips.com>
33005 Tom de Vries <tom@codesourcery.com>
33007 * target.def (call_fusage_contains_non_callee_clobbers): New
33009 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
33011 (@node Miscellaneous Register Hooks): New node.
33012 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
33013 * doc/tm.texi: Regenerate.
33015 2014-05-05 Marek Polacek <polacek@redhat.com>
33018 * opts.c (common_handle_option): Call error_at instead of warning_at.
33020 2014-05-05 Richard Biener <rguenther@suse.de>
33022 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
33023 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
33024 under the TODO_verify_il umbrella.
33026 2014-05-05 Richard Biener <rguenther@suse.de>
33028 * passes.c (execute_function_todo): Move TODO_verify_flow under
33029 the TODO_verify_ul umbrella.
33031 2014-05-05 Richard Biener <rguenther@suse.de>
33033 PR middle-end/61010
33034 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
33035 X & CST away from a CST that is the mask of a mode.
33037 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33039 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
33040 int argument to enum machine_mode.
33041 (picochip_class_max_nregs): Ditto.
33042 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
33043 (picochip_class_max_nregs): Ditto.
33045 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33047 * target.def: Add new target hook.
33048 * doc/tm.texi: Regenerate.
33049 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
33050 * targhooks.c (default_keep_leaf_when_profiled): New function.
33052 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
33053 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
33055 2014-05-05 Bin Cheng <bin.cheng@arm.com>
33057 PR tree-optimization/60363
33058 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
33059 (copy_phi_args): New parameters. Call get_value_locus_in_path.
33060 (update_destination_phis): New parameter.
33061 (create_edge_and_update_destination_phis): Ditto.
33062 (ssa_fix_duplicate_block_edges): Pass new arguments.
33063 (thread_single_edge): Ditto.
33065 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
33067 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
33068 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
33069 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
33070 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
33071 Use RS6000_BTM_HARD_FLOAT.
33072 (BU_MISC_2): Likewise.
33073 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
33074 RS6000_BTM_HARD_FLOAT.
33075 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
33076 is explicitly used.
33077 (rs6000_invalid_builtin): Add hard floating builtin support.
33078 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
33079 hard float builtins.
33080 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
33082 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
33084 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
33085 Add missing function* argument.
33087 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
33089 * lra-constraints.c (valid_address_p): Move earlier in file.
33090 Add a constraint argument to the address_info version.
33091 (satisfies_memory_constraint_p): New function.
33092 (satisfies_address_constraint_p): Likewise.
33093 (process_alt_operands, curr_insn_transform): Use them.
33094 (process_address): Pass the constraint to valid_address_p when
33095 checking address operands.
33097 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
33099 * config/mips/mips.c (mips_isa_rev): New variable.
33100 (mips_set_architecture): Set it.
33101 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
33103 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
33104 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
33105 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
33106 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
33107 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
33108 conditions in terms of mips_isa_rev.
33109 (mips_isa_rev): Declare.
33111 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
33113 * config/sh/sh-mem.cc: Use tabs instead of spaces.
33114 (prob_unlikely, prob_likely): Make variables const.
33116 2014-05-03 Denis Chertykov <chertykov@gmail.com>
33118 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
33120 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
33122 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
33124 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
33126 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
33127 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
33128 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
33130 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
33131 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
33133 Replace usage of ROUND_REG with sh_round_reg.
33134 Use CEIL instead of ROUND_ADVANCE.
33136 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
33139 * config/sh/sh.c: Include stdlib headers before everything else.
33141 2014-05-02 Jakub Jelinek <jakub@redhat.com>
33143 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
33144 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
33145 (gimplify_adjust_omp_clauses): Simd region is never
33146 directly nested in combined parallel. Instead, for linear
33147 with copyin/copyout, if in combined for simd loop, make decl
33148 firstprivate/lastprivate on OMP_FOR.
33149 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
33150 expand_omp_for_static_chunk): When setting endvar, also set
33151 fd->loop.v to the same value.
33153 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33155 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
33157 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
33159 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
33162 2014-05-02 Marek Polacek <polacek@redhat.com>
33164 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
33166 2014-05-02 Kito Cheng <kito@0xlab.org>
33168 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
33169 to a C expression marco.
33170 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
33171 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
33172 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
33173 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
33174 HONOR_REG_ALLOC_ORDER.
33175 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
33177 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33179 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
33181 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33183 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
33185 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
33187 * tree-if-conv.c (is_cond_scalar_reduction): New function.
33188 (convert_scalar_cond_reduction): Likewise.
33189 (predicate_scalar_phi): Add recognition and transformation
33190 of simple conditioanl reduction to be vectorizable.
33192 2014-05-01 Marek Polacek <polacek@redhat.com>
33195 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
33197 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
33199 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
33200 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
33201 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
33202 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
33203 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
33204 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
33205 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
33206 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
33208 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
33210 * config/arc/arc.opt (mlra): Move comment above option name
33211 to avoid mis-parsing as language options.
33213 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33215 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
33216 * config/sol2.h: ... here.
33217 * config/sol2-10.h: Remove.
33219 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
33220 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
33221 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
33222 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
33223 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
33224 * config/sol2.h: ... here.
33225 (SECTION_NAME_FORMAT): Don't redefine.
33226 (STARTFILE_ARCH32_SPEC): Rename to ...
33227 (STARTFILE_ARCH_SPEC): ... this.
33228 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
33229 * config/sparc/sol2.h: ... here.
33230 (SECTION_NAME_FORMAT): Don't undef.
33231 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
33232 (SUBTARGET_EXTRA_SPECS): Remove.
33233 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
33235 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
33236 (MD_STARTFILE_PREFIX): Remove.
33237 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
33238 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
33239 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
33240 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
33241 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
33242 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
33243 * config/i386/sol2.h: ... here.
33244 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
33245 * config/i386/sol2-bi.h: Remove.
33246 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
33247 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
33249 * config/i386/t-sol2-64: Rename to ...
33250 * config/i386/t-sol2: ... this.
33251 * config/sparc/t-sol2-64: Rename to ...
33252 * config/sparc/t-sol2: ... this.
33254 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
33255 sol2_tm_file_head, sol2_tm_file_tail.
33256 Include ${cpu_type}/sol2.h before sol2.h.
33258 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
33259 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
33260 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
33261 Reflect i386/t-sol2-64 renaming.
33262 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
33263 Reflect sparc/t-sol2-64 renaming.
33265 2014-04-30 Richard Biener <rguenther@suse.de>
33267 * passes.c (execute_function_todo): Move TODO_verify_stmts
33268 and TODO_verify_ssa under the TODO_verify_il umbrella.
33269 * tree-ssa.h (verify_ssa): Adjust prototype.
33270 * tree-ssa.c (verify_ssa): Add parameter to tell whether
33271 we should verify SSA operands.
33272 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
33273 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
33274 whether we should verify whether not throwing stmts have EH info.
33275 * graphite-scop-detection.c (create_sese_edges): Adjust.
33276 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
33277 * tree-eh.c (lower_try_finally_switch): Do not add the
33278 default case label twice.
33280 2014-04-30 Marek Polacek <polacek@redhat.com>
33282 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
33283 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
33284 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
33285 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
33287 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
33289 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
33290 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
33291 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
33292 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
33293 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
33294 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
33295 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
33296 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
33298 2014-04-29 David Malcolm <dmalcolm@redhat.com>
33300 * tree-cfg.c (dump_function_to_file): Dump the return type of
33301 functions, in a line to itself before the function body, mimicking
33302 the layout of a C function.
33304 2014-04-29 Jakub Jelinek <jakub@redhat.com>
33306 PR tree-optimization/60971
33307 * tree-tailcall.c (process_assignment): Reject conversions which
33310 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
33312 * calls.c (initialize_argument_information): Always treat
33313 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
33314 (expand_call): Likewise.
33315 (emit_library_call_calue_1): Likewise.
33316 * expr.c (PUSH_ARGS_REVERSED): Do not define.
33317 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
33320 2014-04-29 Nick Clifton <nickc@redhat.com>
33322 * config/msp430/msp430.md (umulsidi): Fix typo.
33323 (mulhisi3): Enable even inside interrupt handlers.
33324 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
33325 bigger return address pushed in large mode.
33327 2014-04-29 Nick Clifton <nickc@redhat.com>
33329 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
33330 (arc_init_reg_tables): Use a machine_mode enum to iterate over
33332 * config/m32r/m32r.c (init_reg_tables): Likewise.
33333 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
33334 enum to hold the modes.
33336 2014-04-29 Richard Biener <rguenther@suse.de>
33338 * dominance.c (free_dominance_info): Add overload with
33339 function parameter.
33340 (dom_info_state): Likewise.
33341 (dom_info_available_p): Likewise.
33342 * basic-block.h (free_dominance_info, dom_info_state,
33343 dom_info_available_p): Declare overloads.
33344 * passes.c (execute_function_todo): Verify that verifiers
33345 don't change dominator info state. Drop dominator info
33346 for IPA pass invocations.
33347 * cgraph.c (release_function_body): Restore asserts that
33348 dominator information is released.
33350 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
33352 * doc/invoke.texi: Fix typo.
33353 * tree-vrp.c: Fix typos.
33354 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
33356 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33358 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
33360 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
33362 * config/aarch64/aarch64-builtins.c
33363 (aarch64_types_storestruct_lane_qualifiers): New.
33364 (TYPES_STORESTRUCT_LANE): Likewise.
33365 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
33366 (st3_lane): Likewise.
33367 (st4_lane): Likewise.
33368 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
33369 (vec_store_lanesci_lane<mode>): Likewise.
33370 (vec_store_lanesxi_lane<mode>): Likewise.
33371 (aarch64_st2_lane<VQ:mode>): Likewise.
33372 (aarch64_st3_lane<VQ:mode>): Likewise.
33373 (aarch64_st4_lane<VQ:mode>): Likewise.
33374 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
33375 * config/aarch64/arm_neon.h
33376 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
33377 use new macro arguments.
33378 (__ST3_LANE_FUNC): Likewise.
33379 (__ST4_LANE_FUNC): Likewise.
33380 * config/aarch64/iterators.md (V_TWO_ELEM): New.
33381 (V_THREE_ELEM): Likewise.
33382 (V_FOUR_ELEM): Likewise.
33384 2014-04-28 David Malcolm <dmalcolm@redhat.com>
33386 * doc/gimple.texi: Replace the description of the now-defunct
33387 union gimple_statement_d with a diagram showing the
33388 gimple_statement_base class hierarchy and its relationships to
33389 the GSS_ and GIMPLE_ enums.
33391 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
33393 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
33394 * config/aarch64/aarch64.c
33395 (aarch64_cannot_change_mode_class): Weaken conditions.
33396 (aarch64_modes_tieable_p): New.
33397 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
33399 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
33401 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
33402 (loadsync_<mode>): Change mode.
33403 (load_quadpti, store_quadpti): New.
33404 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
33405 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
33407 2014-04-28 Martin Jambor <mjambor@suse.cz>
33409 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
33410 same alias type as the original statement.
33411 (subreplacement_assignment_data): New type.
33412 (handle_unscalarized_data_in_subtree): New type of parameter,
33413 generate new memory accesses with same alias type as the original
33415 (load_assign_lhs_subreplacements): Likewise.
33416 (sra_modify_constructor_assign): Generate new memory accesses with
33417 same alias type as the original statement.
33419 2014-04-28 Richard Biener <rguenther@suse.de>
33421 * tree-pass.h (TODO_verify_il): Define.
33422 (TODO_verify_all): Complete properly.
33423 * passes.c (execute_function_todo): Move existing loop-closed
33424 SSA verification under TODO_verify_il.
33425 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
33426 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
33427 Fix tree sharing issue.
33429 2014-04-28 Richard Biener <rguenther@suse.de>
33431 PR middle-end/60092
33432 * builtins.def (DEF_C11_BUILTIN): Add.
33433 (BUILT_IN_ALIGNED_ALLOC): Likewise.
33434 * coretypes.h (enum function_class): Add function_c11_misc.
33435 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
33436 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
33437 (call_may_clobber_ref_p_1): Likewise.
33438 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
33439 (mark_all_reaching_defs_necessary_1): Likewise.
33440 (propagate_necessity): Likewise.
33441 (eliminate_unnecessary_stmts): Likewise.
33442 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
33444 2014-04-28 Richard Biener <rguenther@suse.de>
33446 * tree-vrp.c (vrp_var_may_overflow): Remove.
33447 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
33448 with overflow immediately bump to one before that value and
33449 let iteration figure out overflow status.
33451 2014-04-28 Richard Biener <rguenther@suse.de>
33453 * configure.ac: Do valgrind header checks unconditionally.
33454 Add --enable-valgrind-annotations.
33455 * system.h: Guard valgrind header inclusion with
33456 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
33457 * alloc-pool.c (pool_alloc, pool_free): Use
33458 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
33459 to guard possibly dead code.
33460 * config.in: Regenerated.
33461 * configure: Likewise.
33463 2014-04-28 Jeff Law <law@redhat.com>
33465 PR tree-optimization/60902
33466 * tree-ssa-threadedge.c
33467 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
33468 over real defs when invalidating outputs from statements that do not
33469 produce useful outputs for threading.
33471 2014-04-28 Richard Biener <rguenther@suse.de>
33473 PR tree-optimization/60979
33474 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
33475 SCOPs that end in a block with a successor with abnormal
33478 2014-04-28 Richard Biener <rguenther@suse.de>
33480 * tree-pass.h (execute_pass_list): Adjust prototype.
33481 * passes.c (pass_manager::execute_early_local_passes): Adjust.
33482 (do_per_function): Change callback signature, push all actual
33483 work to the callbals.
33484 (do_per_function_toporder): Likewise.
33485 (execute_function_dump): Adjust.
33486 (execute_function_todo): Likewise.
33487 (clear_last_verified): Likewise.
33488 (verify_curr_properties): Likewise.
33489 (update_properties_after_pass): Likewise.
33490 (execute_pass_list_1): Split out from ...
33491 (execute_pass_list): ... here. Adjust.
33492 (execute_ipa_pass_list): Likewise.
33493 * cgraphunit.c (cgraph_add_new_function): Adjust.
33494 (analyze_function): Likewise.
33495 (expand_function): Likewise.
33496 * cgraph.c (release_function_body): Free dominance info
33497 here instead of asserting it was magically freed elsewhere.
33499 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
33501 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
33502 * configure: Regenerate.
33503 * config/sparc/sparc.opt (muser-mode): New option.
33504 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
33506 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
33507 * doc/invoke.texi (SPARC options): Document -muser-mode.
33509 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
33511 * cselib.c (find_slot_memmode): Delete.
33512 (cselib_hasher): Change compare_type to a struct.
33513 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
33515 (preserve_constants_and_equivs): Adjust for new compare_type.
33516 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
33517 (wrap_constant): Delete.
33518 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
33520 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
33522 * doc/install.texi (Building with profile feedback): Remove
33525 2014-04-26 Tom de Vries <tom@codesourcery.com>
33527 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
33530 2014-04-25 Cary Coutant <ccoutant@google.com>
33533 * dwarf2out.c (should_move_die_to_comdat): A type definition
33534 can contain a subprogram definition, but don't move it to a
33536 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
33537 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
33539 (clone_tree_hash): Rename to...
33540 (clone_tree_partial): ...this; change callers. Copy
33541 DW_TAG_subprogram DIEs as declarations.
33542 (copy_decls_walk): Don't copy children of a declaration into a
33545 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
33548 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
33551 2014-04-25 Jiong Wang <jiong.wang@arm.com>
33553 * config/arm/predicates.md (call_insn_operand): Add long_call check.
33554 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
33556 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
33559 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33561 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
33563 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33565 PR tree-optimization/60930
33566 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
33567 creating a multiply candidate by folding two constant
33568 multiplicands when the result overflows.
33570 2014-04-25 Jakub Jelinek <jakub@redhat.com>
33572 PR tree-optimization/60960
33573 * tree-vect-generic.c (expand_vector_operation): Only call
33574 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
33576 2014-04-25 Tom de Vries <tom@codesourcery.com>
33578 * expr.c (clobber_reg_mode): New function.
33579 * expr.h (clobber_reg): New function.
33581 2014-04-25 Tom de Vries <tom@codesourcery.com>
33583 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
33586 2014-04-25 Radovan Obradovic <robradovic@mips.com>
33587 Tom de Vries <tom@codesourcery.com>
33589 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
33591 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
33592 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
33593 new argument to find_all_hard_reg_sets call.
33595 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33597 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
33598 Use HOST_WIDE_INT_C for mask literal.
33599 (aarch_rev16_shleft_mask_imm_p): Likewise.
33601 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
33604 * config/sparc/sparc.md (ashlsi3_extend): Delete.
33606 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
33608 PR preprocessor/56540
33609 * config/i386/i386-c.c (ix86_target_macros): Define
33610 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
33612 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33614 * configure.ac (tga_func): Remove.
33615 (LIB_TLS_SPEC): Remove.
33616 * configure: Regenerate.
33617 * config.in: Regenerate.
33618 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
33620 2014-04-25 Richard Biener <rguenther@suse.de>
33623 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
33624 call stmt use/clobber sets during stmt walk instead of
33625 walking the possibly incomplete set of caller edges.
33627 2014-04-25 Richard Biener <rguenther@suse.de>
33630 * passes.c (apply_ipa_transforms): Inline into only caller ...
33631 (execute_one_pass): ... here. Properly bring in function
33632 bodies for nodes we want to apply IPA transforms to.
33634 2014-04-24 Cong Hou <congh@google.com>
33636 PR tree-optimization/60896
33637 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
33638 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
33639 (vect_mark_pattern_stmts): Set the def type of all statements in
33640 PATTERN_DEF_SEQ as vect_internal_def.
33642 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33644 * doc/extend.texi (PowerPC Built-in Functions): Document new
33645 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
33646 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
33648 * config/rs6000/predicates.md (const_0_to_3_operand): New
33649 predicate to match 0..3 integer constants.
33651 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
33652 to support adding miscellaneous builtin functions.
33653 (BU_DFP_MISC_2): Likewise.
33654 (BU_P7_MISC_1): Likewise.
33655 (BU_P7_MISC_2): Likewise.
33656 (BU_P8V_MISC_3): Likewise.
33657 (BU_MISC_1): Likewise.
33658 (BU_MISC_2): Likewise.
33659 (DIVWE): Add extended divide builtin functions.
33660 (DIVWEO): Likewise.
33661 (DIVWEU): Likewise.
33662 (DIVWEUO): Likewise.
33664 (DIVDEO): Likewise.
33665 (DIVDEU): Likewise.
33666 (DIVDEUO): Likewise.
33667 (DXEX): Add decimal floating-point builtin functions.
33669 (DDEDPD): Likewise.
33670 (DDEDPDQ): Likewise.
33671 (DENBCD): Likewise.
33672 (DENBCDQ): Likewise.
33676 (DSCLIQ): Likewise.
33678 (DSCRIQ): Likewise.
33679 (CDTBCD): Add new BCD builtin functions.
33680 (CBCDTD): Likewise.
33681 (ADDG6S): Likewise.
33682 (BCDADD): Likewise.
33683 (BCDADD_LT): Likewise.
33684 (BCDADD_EQ): Likewise.
33685 (BCDADD_GT): Likewise.
33686 (BCDADD_OV): Likewise.
33687 (BCDSUB): Likewise.
33688 (BCDSUB_LT): Likewise.
33689 (BCDSUB_EQ): Likewise.
33690 (BCDSUB_GT): Likewise.
33691 (BCDSUB_OV): Likewise.
33692 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
33693 (UNPACK_TD): Likewise.
33694 (PACK_TF): Likewise.
33695 (UNPACK_TF): Likewise.
33696 (UNPACK_TF_0): Likewise.
33697 (UNPACK_TF_1): Likewise.
33698 (PACK_V1TI): Likewise.
33699 (UNPACK_V1TI): Likewise.
33701 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33702 support for decimal floating point builtin functions.
33703 (rs6000_expand_ternop_builtin): Add checks for the new builtin
33704 functions that take constant arguments.
33705 (rs6000_invalid_builtin): Add decimal floating point builtin support.
33706 (rs6000_init_builtins): Setup long double, _Decimal64, and
33707 _Decimal128 types for new builtin functions.
33708 (builtin_function_type): Set the unsigned flags appropriately for
33709 the new builtin functions.
33710 (rs6000_opt_masks): Add support for decimal floating point builtin
33713 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
33714 floating point builtin functions.
33715 (RS6000_BTM_COMMON): Likewise.
33716 (RS6000_BTI_long_double): Likewise.
33717 (RS6000_BTI_dfloat64): Likewise.
33718 (RS6000_BTI_dfloat128): Likewise.
33719 (long_double_type_internal_node): Likewise.
33720 (dfloat64_type_internal_node): Likewise.
33721 (dfloat128_type_internal_node): Likewise.
33723 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
33724 2.07 bcd arithmetic instructions.
33725 (UNSPEC_BCDSUB): Likewise.
33726 (UNSPEC_BCD_OVERFLOW): Likewise.
33727 (UNSPEC_BCD_ADD_SUB): Likewise.
33728 (bcd_add_sub): Likewise.
33729 (BCD_TEST): Likewise.
33730 (bcd<bcd_add_sub>): Likewise.
33731 (bcd<bcd_add_sub>_test): Likewise.
33732 (bcd<bcd_add_sub>_test2): Likewise.
33733 (bcd<bcd_add_sub>_<code>): Likewise.
33734 (peephole2 for combined bcd ops): Likewise.
33736 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
33737 decimal floating point builtin functions.
33738 (UNSPEC_DENBCD): Likewise.
33739 (UNSPEC_DXEX): Likewise.
33740 (UNSPEC_DIEX): Likewise.
33741 (UNSPEC_DSCLI): Likewise.
33742 (UNSPEC_DSCRI): Likewise.
33743 (D64_D128): Likewise.
33744 (dfp_suffix): Likewise.
33745 (dfp_ddedpd_<mode>): Likewise.
33746 (dfp_denbcd_<mode>): Likewise.
33747 (dfp_dxex_<mode>): Likewise.
33748 (dfp_diex_<mode>): Likewise.
33749 (dfp_dscli_<mode>): Likewise.
33750 (dfp_dscri_<mode>): Likewise.
33752 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
33754 (UNSPEC_CDTBCD): Likewise.
33755 (UNSPEC_CBCDTD): Likewise.
33756 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
33757 (UNSPEC_DIVEO): Likewise.
33758 (UNSPEC_DIVEU): Likewise.
33759 (UNSPEC_DIVEUO): Likewise.
33760 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
33761 pack/unpack 128-bit types.
33762 (UNSPEC_PACK_128BIT): Likewise.
33763 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
33764 (udiv<mode>3): Use idiv_ldiv mode attribute.
33765 (div<mode>3): Likewise.
33766 (addg6s): Add new BCD builtin functions.
33767 (cdtbcd): Likewise.
33768 (cbcdtd): Likewise.
33769 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
33770 (div_extend): Likewise.
33771 (div<div_extend>_<mode>"): Likewise.
33772 (FP128_64): Add support for new builtin functions to pack/unpack
33774 (unpack<mode>): Likewise.
33775 (unpacktf_0): Likewise.
33776 (unpacktf_1): Likewise.
33777 (unpack<mode>_dm): Likewise.
33778 (unpack<mode>_nodm): Likewise.
33779 (pack<mode>): Likewise.
33780 (unpackv1ti): Likewise.
33781 (packv1ti): Likewise.
33783 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
33785 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
33788 2014-04-24 Jakub Jelinek <jakub@redhat.com>
33790 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
33791 * gimplify.c (omp_is_private): Change last argument's type to int.
33792 Only diagnose lastprivate if the simd argument is 1, only diagnose
33793 linear if the simd argument is 2.
33794 (gimplify_omp_for): Adjust omp_is_private callers. When adding
33795 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
33796 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
33797 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
33798 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
33799 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
33800 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
33801 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
33802 * tree-nested.c (convert_nonlocal_omp_clauses,
33803 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
33805 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
33808 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
33811 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
33813 * flag-types.h (enum ivar_visibility): Add.
33815 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
33817 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
33818 function * argument.
33820 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
33822 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
33824 2014-04-24 Radovan Obradovic <robradovic@mips.com>
33825 Tom de Vries <tom@codesourcery.com>
33827 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
33828 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
33830 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
33831 * emit-rtl.c (try_split): Same.
33833 2014-04-24 Radovan Obradovic <robradovic@mips.com>
33834 Tom de Vries <tom@codesourcery.com>
33836 * common.opt (fuse-caller-save): New option.
33838 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
33840 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
33841 elements for big-endian.
33843 2014-04-24 Richard Biener <rguenther@suse.de>
33845 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
33846 during TER and instead use the sepops interface for expanding
33847 non-GIMPLE_SINGLE_RHS.
33849 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33851 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
33852 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
33854 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33856 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
33857 assembler 64-bit option.
33858 * configure: Regenerate.
33860 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33862 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
33863 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
33864 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
33865 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
33866 (TARGET_CRYPTO): Take TARGET_SIMD into account.
33868 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33870 * config/aarch64/aarch64-builtins.c
33871 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
33872 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
33873 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
33874 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
33876 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
33877 (Vrevsuff): New mode attribute.
33879 2014-04-24 Terry Guo <terry.guo@arm.com>
33881 * config/arm/arm.h (machine_function): Define variable
33882 after_arm_reorg here.
33883 * config/arm/arm.c (after_arm_reorg): Remove the definition.
33884 (arm_split_constant): Update the way to access variable
33886 (arm_reorg): Ditto.
33887 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
33889 2014-04-23 Tom de Vries <tom@codesourcery.com>
33891 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
33893 2014-04-23 David Malcolm <dmalcolm@redhat.com>
33895 * is-a.h: Update comments to reflect the following changes to the
33896 "pointerness" of the API, making the template parameter match the
33897 return type, allowing use of is-a.h with typedefs of pointers.
33898 (is_a_helper::cast): Return a T rather then a pointer to a T, so
33899 that the return type matches the parameter to the is_a_helper.
33901 (dyn_cast): Likewise.
33903 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
33904 pointer from the is-a.h API.
33906 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
33907 (is_a_helper <cgraph_node *>::test): ...this, matching change to
33909 (is_a_helper <varpool_node>::test): Likewise, convert to...
33910 (is_a_helper <varpool_node *>::test): ...this.
33912 (varpool_first_variable): Update for removal of implicit pointer
33913 from the is-a.h API.
33914 (varpool_next_variable): Likewise.
33915 (varpool_first_static_initializer): Likewise.
33916 (varpool_next_static_initializer): Likewise.
33917 (varpool_first_defined_variable): Likewise.
33918 (varpool_next_defined_variable): Likewise.
33919 (cgraph_first_defined_function): Likewise.
33920 (cgraph_next_defined_function): Likewise.
33921 (cgraph_first_function): Likewise.
33922 (cgraph_next_function): Likewise.
33923 (cgraph_first_function_with_gimple_body): Likewise.
33924 (cgraph_next_function_with_gimple_body): Likewise.
33925 (cgraph_alias_target): Likewise.
33926 (varpool_alias_target): Likewise.
33927 (cgraph_function_or_thunk_node): Likewise.
33928 (varpool_variable_node): Likewise.
33929 (symtab_real_symbol_p): Likewise.
33930 * cgraphunit.c (referred_to_p): Likewise.
33931 (analyze_functions): Likewise.
33932 (handle_alias_pairs): Likewise.
33933 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
33934 * gimple-ssa.h (gimple_vuse_op): Likewise.
33935 (gimple_vdef_op): Likewise.
33936 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
33937 * gimple.c (gimple_build_asm_1): Likewise.
33938 (gimple_build_try): Likewise.
33939 (gimple_build_resx): Likewise.
33940 (gimple_build_eh_dispatch): Likewise.
33941 (gimple_build_omp_for): Likewise.
33942 (gimple_omp_for_set_clauses): Likewise.
33944 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
33945 (is_a_helper <gimple_statement_asm *>::test): ...this.
33946 (is_a_helper <gimple_statement_bind>::test): Convert to...
33947 (is_a_helper <gimple_statement_bind *>::test): ...this.
33948 (is_a_helper <gimple_statement_call>::test): Convert to...
33949 (is_a_helper <gimple_statement_call *>::test): ...this.
33950 (is_a_helper <gimple_statement_catch>::test): Convert to...
33951 (is_a_helper <gimple_statement_catch *>::test): ...this.
33952 (is_a_helper <gimple_statement_resx>::test): Convert to...
33953 (is_a_helper <gimple_statement_resx *>::test): ...this.
33954 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
33955 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
33956 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
33957 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
33958 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
33959 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
33960 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
33961 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
33962 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
33963 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
33964 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
33965 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
33966 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
33967 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
33968 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
33969 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
33970 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
33971 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
33972 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
33973 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
33974 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
33975 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
33976 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
33977 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
33978 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
33979 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
33980 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
33981 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
33982 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
33983 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
33984 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
33985 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
33986 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
33987 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
33988 (is_a_helper <gimple_statement_phi>::test): Convert to...
33989 (is_a_helper <gimple_statement_phi *>::test): ...this.
33990 (is_a_helper <gimple_statement_transaction>::test): Convert to...
33991 (is_a_helper <gimple_statement_transaction *>::test): ...this.
33992 (is_a_helper <gimple_statement_try>::test): Convert to...
33993 (is_a_helper <gimple_statement_try *>::test): ...this.
33994 (is_a_helper <gimple_statement_wce>::test): Convert to...
33995 (is_a_helper <gimple_statement_wce *>::test): ...this.
33996 (is_a_helper <const gimple_statement_asm>::test): Convert to...
33997 (is_a_helper <const gimple_statement_asm *>::test): ...this.
33998 (is_a_helper <const gimple_statement_bind>::test): Convert to...
33999 (is_a_helper <const gimple_statement_bind *>::test): ...this.
34000 (is_a_helper <const gimple_statement_call>::test): Convert to...
34001 (is_a_helper <const gimple_statement_call *>::test): ...this.
34002 (is_a_helper <const gimple_statement_catch>::test): Convert to...
34003 (is_a_helper <const gimple_statement_catch *>::test): ...this.
34004 (is_a_helper <const gimple_statement_resx>::test): Convert to...
34005 (is_a_helper <const gimple_statement_resx *>::test): ...this.
34006 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
34007 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
34008 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
34009 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
34010 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
34012 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
34014 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
34016 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
34018 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
34019 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
34020 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
34022 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
34023 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
34025 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
34026 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
34027 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
34028 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
34029 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
34030 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
34032 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
34033 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
34034 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
34035 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
34037 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
34038 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
34039 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
34040 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
34041 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
34042 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
34043 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
34044 (is_a_helper <const gimple_statement_phi>::test): Convert to...
34045 (is_a_helper <const gimple_statement_phi *>::test): ...this.
34046 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
34047 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
34048 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
34049 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
34050 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
34051 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
34052 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
34054 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
34056 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
34057 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
34059 (gimple_use_ops): Update for removal of implicit pointer from the
34061 (gimple_set_use_ops): Likewise.
34062 (gimple_vuse): Likewise.
34063 (gimple_vdef): Likewise.
34064 (gimple_vuse_ptr): Likewise.
34065 (gimple_vdef_ptr): Likewise.
34066 (gimple_set_vuse): Likewise.
34067 (gimple_set_vdef): Likewise.
34068 (gimple_omp_return_set_lhs): Likewise.
34069 (gimple_omp_return_lhs): Likewise.
34070 (gimple_omp_return_lhs_ptr): Likewise.
34071 (gimple_call_fntype): Likewise.
34072 (gimple_call_set_fntype): Likewise.
34073 (gimple_call_set_internal_fn): Likewise.
34074 (gimple_call_use_set): Likewise.
34075 (gimple_call_clobber_set): Likewise.
34076 (gimple_bind_vars): Likewise.
34077 (gimple_bind_set_vars): Likewise.
34078 (gimple_bind_body_ptr): Likewise.
34079 (gimple_bind_set_body): Likewise.
34080 (gimple_bind_add_stmt): Likewise.
34081 (gimple_bind_block): Likewise.
34082 (gimple_bind_set_block): Likewise.
34083 (gimple_asm_ninputs): Likewise.
34084 (gimple_asm_noutputs): Likewise.
34085 (gimple_asm_nclobbers): Likewise.
34086 (gimple_asm_nlabels): Likewise.
34087 (gimple_asm_input_op): Likewise.
34088 (gimple_asm_input_op_ptr): Likewise.
34089 (gimple_asm_output_op): Likewise.
34090 (gimple_asm_output_op_ptr): Likewise.
34091 (gimple_asm_set_output_op): Likewise.
34092 (gimple_asm_clobber_op): Likewise.
34093 (gimple_asm_set_clobber_op): Likewise.
34094 (gimple_asm_label_op): Likewise.
34095 (gimple_asm_set_label_op): Likewise.
34096 (gimple_asm_string): Likewise.
34097 (gimple_catch_types): Likewise.
34098 (gimple_catch_types_ptr): Likewise.
34099 (gimple_catch_handler_ptr): Likewise.
34100 (gimple_catch_set_types): Likewise.
34101 (gimple_catch_set_handler): Likewise.
34102 (gimple_eh_filter_types): Likewise.
34103 (gimple_eh_filter_types_ptr): Likewise.
34104 (gimple_eh_filter_failure_ptr): Likewise.
34105 (gimple_eh_filter_set_types): Likewise.
34106 (gimple_eh_filter_set_failure): Likewise.
34107 (gimple_eh_must_not_throw_fndecl): Likewise.
34108 (gimple_eh_must_not_throw_set_fndecl): Likewise.
34109 (gimple_eh_else_n_body_ptr): Likewise.
34110 (gimple_eh_else_e_body_ptr): Likewise.
34111 (gimple_eh_else_set_n_body): Likewise.
34112 (gimple_eh_else_set_e_body): Likewise.
34113 (gimple_try_eval_ptr): Likewise.
34114 (gimple_try_cleanup_ptr): Likewise.
34115 (gimple_try_set_eval): Likewise.
34116 (gimple_try_set_cleanup): Likewise.
34117 (gimple_wce_cleanup_ptr): Likewise.
34118 (gimple_wce_set_cleanup): Likewise.
34119 (gimple_phi_capacity): Likewise.
34120 (gimple_phi_num_args): Likewise.
34121 (gimple_phi_result): Likewise.
34122 (gimple_phi_result_ptr): Likewise.
34123 (gimple_phi_set_result): Likewise.
34124 (gimple_phi_arg): Likewise.
34125 (gimple_phi_set_arg): Likewise.
34126 (gimple_resx_region): Likewise.
34127 (gimple_resx_set_region): Likewise.
34128 (gimple_eh_dispatch_region): Likewise.
34129 (gimple_eh_dispatch_set_region): Likewise.
34130 (gimple_omp_critical_name): Likewise.
34131 (gimple_omp_critical_name_ptr): Likewise.
34132 (gimple_omp_critical_set_name): Likewise.
34133 (gimple_omp_for_clauses): Likewise.
34134 (gimple_omp_for_clauses_ptr): Likewise.
34135 (gimple_omp_for_set_clauses): Likewise.
34136 (gimple_omp_for_collapse): Likewise.
34137 (gimple_omp_for_index): Likewise.
34138 (gimple_omp_for_index_ptr): Likewise.
34139 (gimple_omp_for_set_index): Likewise.
34140 (gimple_omp_for_initial): Likewise.
34141 (gimple_omp_for_initial_ptr): Likewise.
34142 (gimple_omp_for_set_initial): Likewise.
34143 (gimple_omp_for_final): Likewise.
34144 (gimple_omp_for_final_ptr): Likewise.
34145 (gimple_omp_for_set_final): Likewise.
34146 (gimple_omp_for_incr): Likewise.
34147 (gimple_omp_for_incr_ptr): Likewise.
34148 (gimple_omp_for_set_incr): Likewise.
34149 (gimple_omp_for_pre_body_ptr): Likewise.
34150 (gimple_omp_for_set_pre_body): Likewise.
34151 (gimple_omp_parallel_clauses): Likewise.
34152 (gimple_omp_parallel_clauses_ptr): Likewise.
34153 (gimple_omp_parallel_set_clauses): Likewise.
34154 (gimple_omp_parallel_child_fn): Likewise.
34155 (gimple_omp_parallel_child_fn_ptr): Likewise.
34156 (gimple_omp_parallel_set_child_fn): Likewise.
34157 (gimple_omp_parallel_data_arg): Likewise.
34158 (gimple_omp_parallel_data_arg_ptr): Likewise.
34159 (gimple_omp_parallel_set_data_arg): Likewise.
34160 (gimple_omp_task_clauses): Likewise.
34161 (gimple_omp_task_clauses_ptr): Likewise.
34162 (gimple_omp_task_set_clauses): Likewise.
34163 (gimple_omp_task_child_fn): Likewise.
34164 (gimple_omp_task_child_fn_ptr): Likewise.
34165 (gimple_omp_task_set_child_fn): Likewise.
34166 (gimple_omp_task_data_arg): Likewise.
34167 (gimple_omp_task_data_arg_ptr): Likewise.
34168 (gimple_omp_task_set_data_arg): Likewise.
34169 (gimple_omp_taskreg_clauses): Likewise.
34170 (gimple_omp_taskreg_clauses_ptr): Likewise.
34171 (gimple_omp_taskreg_set_clauses): Likewise.
34172 (gimple_omp_taskreg_child_fn): Likewise.
34173 (gimple_omp_taskreg_child_fn_ptr): Likewise.
34174 (gimple_omp_taskreg_set_child_fn): Likewise.
34175 (gimple_omp_taskreg_data_arg): Likewise.
34176 (gimple_omp_taskreg_data_arg_ptr): Likewise.
34177 (gimple_omp_taskreg_set_data_arg): Likewise.
34178 (gimple_omp_task_copy_fn): Likewise.
34179 (gimple_omp_task_copy_fn_ptr): Likewise.
34180 (gimple_omp_task_set_copy_fn): Likewise.
34181 (gimple_omp_task_arg_size): Likewise.
34182 (gimple_omp_task_arg_size_ptr): Likewise.
34183 (gimple_omp_task_set_arg_size): Likewise.
34184 (gimple_omp_task_arg_align): Likewise.
34185 (gimple_omp_task_arg_align_ptr): Likewise.
34186 (gimple_omp_task_set_arg_align): Likewise.
34187 (gimple_omp_single_clauses): Likewise.
34188 (gimple_omp_single_clauses_ptr): Likewise.
34189 (gimple_omp_single_set_clauses): Likewise.
34190 (gimple_omp_target_clauses): Likewise.
34191 (gimple_omp_target_clauses_ptr): Likewise.
34192 (gimple_omp_target_set_clauses): Likewise.
34193 (gimple_omp_target_child_fn): Likewise.
34194 (gimple_omp_target_child_fn_ptr): Likewise.
34195 (gimple_omp_target_set_child_fn): Likewise.
34196 (gimple_omp_target_data_arg): Likewise.
34197 (gimple_omp_target_data_arg_ptr): Likewise.
34198 (gimple_omp_target_set_data_arg): Likewise.
34199 (gimple_omp_teams_clauses): Likewise.
34200 (gimple_omp_teams_clauses_ptr): Likewise.
34201 (gimple_omp_teams_set_clauses): Likewise.
34202 (gimple_omp_sections_clauses): Likewise.
34203 (gimple_omp_sections_clauses_ptr): Likewise.
34204 (gimple_omp_sections_set_clauses): Likewise.
34205 (gimple_omp_sections_control): Likewise.
34206 (gimple_omp_sections_control_ptr): Likewise.
34207 (gimple_omp_sections_set_control): Likewise.
34208 (gimple_omp_for_set_cond): Likewise.
34209 (gimple_omp_for_cond): Likewise.
34210 (gimple_omp_atomic_store_set_val): Likewise.
34211 (gimple_omp_atomic_store_val): Likewise.
34212 (gimple_omp_atomic_store_val_ptr): Likewise.
34213 (gimple_omp_atomic_load_set_lhs): Likewise.
34214 (gimple_omp_atomic_load_lhs): Likewise.
34215 (gimple_omp_atomic_load_lhs_ptr): Likewise.
34216 (gimple_omp_atomic_load_set_rhs): Likewise.
34217 (gimple_omp_atomic_load_rhs): Likewise.
34218 (gimple_omp_atomic_load_rhs_ptr): Likewise.
34219 (gimple_omp_continue_control_def): Likewise.
34220 (gimple_omp_continue_control_def_ptr): Likewise.
34221 (gimple_omp_continue_set_control_def): Likewise.
34222 (gimple_omp_continue_control_use): Likewise.
34223 (gimple_omp_continue_control_use_ptr): Likewise.
34224 (gimple_omp_continue_set_control_use): Likewise.
34225 (gimple_transaction_body_ptr): Likewise.
34226 (gimple_transaction_label): Likewise.
34227 (gimple_transaction_label_ptr): Likewise.
34228 (gimple_transaction_set_body): Likewise.
34229 (gimple_transaction_set_label): Likewise.
34231 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
34232 * ipa-inline-analysis.c (inline_write_summary): Likewise.
34233 * ipa-ref.c (ipa_record_reference): Likewise.
34234 * ipa-reference.c (analyze_function): Likewise.
34235 (ipa_reference_write_optimization_summary): Likewise.
34236 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
34237 (address_taken_from_non_vtable_p): Likewise.
34238 (comdat_can_be_unshared_p_1): Likewise.
34239 * lto-cgraph.c (lto_output_ref): Likewise.
34240 (add_references): Likewise.
34241 (compute_ltrans_boundary): Likewise.
34242 (output_symtab): Likewise.
34243 (input_ref): Likewise.
34244 (input_cgraph_1): Likewise.
34245 (output_cgraph_opt_summary): Likewise.
34246 * lto-streamer-out.c (lto_output): Likewise.
34247 (output_symbol_p): Likewise.
34248 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
34249 (lsei_start_function_in_partition): Likewise.
34250 (lsei_next_variable_in_partition): Likewise.
34251 (lsei_start_variable_in_partition): Likewise.
34252 * symtab.c (insert_to_assembler_name_hash): Likewise.
34253 (unlink_from_assembler_name_hash): Likewise.
34254 (symtab_unregister_node): Likewise.
34255 (symtab_remove_node): Likewise.
34256 (dump_symtab_node): Likewise.
34257 (verify_symtab_base): Likewise.
34258 (verify_symtab_node): Likewise.
34259 (symtab_make_decl_local): Likewise.
34260 (symtab_alias_ultimate_target): Likewise.
34261 (symtab_resolve_alias): Likewise.
34262 (symtab_get_symbol_partitioning_class): Likewise.
34263 * tree-phinodes.c (allocate_phi_node): Likewise.
34264 (reserve_phi_args_for_new_edge): Likewise.
34265 (remove_phi_args): Likewise.
34266 * varpool.c (varpool_node_for_asm): Likewise.
34267 (varpool_remove_unreferenced_decls): Likewise.
34269 2014-04-23 Jeff Law <law@redhat.com>
34271 PR tree-optimization/60902
34272 * tree-ssa-threadedge.c
34273 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
34274 invalidate outputs from statements that do not produce useful
34275 outputs for threading.
34277 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
34279 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
34280 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
34281 machine descriptions for Stack Smashing Protector.
34283 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
34285 * aarch64.md (<optab>_rol<mode>3): New pattern.
34286 (<optab>_rolsi3_uxtw): Likewise.
34287 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
34289 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
34291 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
34292 (arm_cortex_a12_tune): Likewise.
34294 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34296 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
34298 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34300 * config/arm/arm.md (arm_rev16si2): New pattern.
34301 (arm_rev16si2_alt): Likewise.
34302 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
34304 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34306 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
34307 (rev16<mode>2_alt): Likewise.
34308 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
34309 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
34310 (aarch_rev16_shleft_mask_imm_p): Likewise.
34311 (aarch_rev16_p_1): Likewise.
34312 (aarch_rev16_p): Likewise.
34313 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
34314 (aarch_rev16_shright_mask_imm_p): Likewise.
34315 (aarch_rev16_shleft_mask_imm_p): Likewise.
34317 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34319 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
34320 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
34322 (cortex_a53_extra_costs): Likewise.
34323 (cortex_a57_extra_costs): Likewise.
34324 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
34325 (cortexa7_extra_costs): Likewise.
34326 (cortexa8_extra_costs): Likewise.
34327 (cortexa12_extra_costs): Likewise.
34328 (cortexa15_extra_costs): Likewise.
34329 (v7m_extra_costs): Likewise.
34330 (arm_new_rtx_costs): Handle BSWAP.
34332 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34334 * config/arm/arm.c (cortexa8_extra_costs): New table.
34335 (arm_cortex_a8_tune): New tuning struct.
34336 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
34338 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34340 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
34342 2014-04-23 Richard Biener <rguenther@suse.de>
34344 * Makefile.in (OBJS): Remove loop-unswitch.o.
34345 * tree-pass.h (make_pass_rtl_unswitch): Remove.
34346 * passes.def (pass_rtl_unswitch): Likewise.
34347 * loop-init.c (gate_rtl_unswitch): Likewise.
34348 (rtl_unswitch): Likewise.
34349 (pass_data_rtl_unswitch): Likewise.
34350 (pass_rtl_unswitch): Likewise.
34351 (make_pass_rtl_unswitch): Likewise.
34352 * rtl.h (reversed_condition): Likewise.
34353 (compare_and_jump_seq): Likewise.
34354 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
34356 * loop-unroll.c (compare_and_jump_seq): Likewise.
34358 2014-04-23 Richard Biener <rguenther@suse.de>
34360 PR tree-optimization/60903
34361 * tree-ssa-loop-im.c (analyze_memory_references): Remove
34362 commented code block.
34363 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
34364 loop flags to newly created BBs and edges.
34366 2014-04-23 Nick Clifton <nickc@redhat.com>
34368 * config/msp430/msp430.c (msp430_handle_option): Move function
34370 (msp430_option_override): Simplify mcu and mcpu option handling.
34371 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
34372 support for -mhwmult command line option.
34373 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
34374 -mhwmult command line option.
34375 (msp430_hwmult_enabled): Delete.
34376 (msp43o_output_labelref): Add support for -mhwmult command line option.
34377 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
34378 (umulsidi3): Likewise.
34379 * config/msp430/msp430.opt (mmcu): Add Report attribute.
34380 (mcpu, mlarge, msmall): Likewise.
34381 (mhwmult): New option.
34382 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
34384 (msp430_is_f5_mcu): Remove prototype.
34385 (msp430_use_f5_series_hwmult): Add prototype.
34386 * config/msp430/msp430-opts.h: New file.
34387 * common/config/msp430: New directory.
34388 * common/config/msp430/msp430-common.c: New file.
34389 * config.gcc (msp430): Remove target_has_targetm_common.
34390 * doc/invoke.texi: Document -mhwmult command line option.
34392 2014-04-23 Nick Clifton <nickc@redhat.com>
34394 * config/i386/cygwin.h (ENDFILE_SPEC): Include
34395 default-manifest.o if it can be found in the search path.
34396 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34398 2014-04-23 Terry Guo <terry.guo@arm.com>
34400 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
34402 2014-04-23 Richard Biener <rguenther@suse.de>
34404 PR middle-end/60895
34405 * tree-inline.c (declare_return_variable): Use mark_addressable.
34407 2014-04-23 Richard Biener <rguenther@suse.de>
34409 PR middle-end/60891
34410 * loop-init.c (loop_optimizer_init): Make sure to apply
34411 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
34413 2014-04-22 Jakub Jelinek <jakub@redhat.com>
34416 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
34418 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
34419 if flag_sanitize_undefined_trap_on_error.
34420 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
34421 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
34422 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
34423 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
34424 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
34425 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
34426 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
34427 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
34428 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
34429 * ubsan.c (ubsan_instrument_unreachable): Return
34430 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
34431 (ubsan_expand_null_ifn): Emit __builtin_trap ()
34432 if flag_sanitize_undefined_trap_on_error and
34433 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
34434 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
34435 instrument_bool_enum_load): Emit __builtin_trap () if
34436 flag_sanitize_undefined_trap_on_error and
34437 __builtin_handle_*_abort () if !flag_sanitize_recover.
34438 * doc/invoke.texi (-fsanitize-recover,
34439 -fsanitize-undefined-trap-on-error): Document.
34441 2014-04-22 Christian Bruel <christian.bruel@st.com>
34443 * config/sh/sh.md (mov<mode>): Replace movQIHI.
34444 Force immediates to SImode.
34446 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
34448 * config/nios2/nios2.md (UNSPEC_ROUND): New.
34449 (lroundsfsi2): New.
34450 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
34451 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
34452 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
34453 (nios2_fpu_insn): Add entry for round.
34454 (N2FPU_NO_ERRNO_P): Define.
34455 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
34457 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
34459 2014-04-22 Richard Henderson <rth@redhat.com>
34461 * config/aarch64/aarch64 (addti3, subti3): New expanders.
34462 (add<GPI>3_compare0): Remove leading * from name.
34463 (add<GPI>3_carryin): Likewise.
34464 (sub<GPI>3_compare0): Likewise.
34465 (sub<GPI>3_carryin): Likewise.
34466 (<su_optab>mulditi3): New expander.
34467 (multi3): New expander.
34468 (madd<GPI>): Remove leading * from name.
34470 2014-04-22 Martin Jambor <mjambor@suse.cz>
34472 * cgraphclones.c (cgraph_function_versioning): Copy
34473 ipa_transforms_to_apply instead of asserting it is empty.
34475 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
34478 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
34479 on count_exp to get mode.
34481 2014-04-22 Andrew Pinski <apinski@cavium.com>
34483 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
34484 Handle TLS for ILP32.
34485 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
34486 (tlsie_small_<mode>): this and handle PTR.
34487 (tlsie_small_sidi): New pattern.
34488 (tlsle_small): Change to an expand to handle ILP32.
34489 (tlsle_small_<mode>): New pattern.
34490 (tlsdesc_small): Rename to ...
34491 (tlsdesc_small_<mode>): this and handle PTR.
34493 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34495 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
34497 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34499 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
34500 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
34501 (aarch64_types_signed_poly_qualifiers): Likewise.
34502 (aarch64_types_unsigned_signed_qualifiers): Likewise.
34503 (aarch64_types_poly_signed_qualifiers): Likewise.
34504 (TYPES_REINTERP_SS): Type macro added.
34505 (TYPES_REINTERP_SU): Likewise.
34506 (TYPES_REINTERP_SP): Likewise.
34507 (TYPES_REINTERP_US): Likewise.
34508 (TYPES_REINTERP_PS): Likewise.
34509 (aarch64_fold_builtin): New expression folding added.
34510 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
34511 Declarations removed.
34512 (REINTERP_SS): Declarations added.
34513 (REINTERP_US): Likewise.
34514 (REINTERP_PS): Likewise.
34515 (REINTERP_SU): Likewise.
34516 (REINTERP_SP): Likewise.
34517 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
34518 (vreinterpretq_p8_f64): Likewise.
34519 (vreinterpret_p16_f64): Likewise.
34520 (vreinterpretq_p16_f64): Likewise.
34521 (vreinterpret_f32_f64): Likewise.
34522 (vreinterpretq_f32_f64): Likewise.
34523 (vreinterpret_f64_f32): Likewise.
34524 (vreinterpret_f64_p8): Likewise.
34525 (vreinterpret_f64_p16): Likewise.
34526 (vreinterpret_f64_s8): Likewise.
34527 (vreinterpret_f64_s16): Likewise.
34528 (vreinterpret_f64_s32): Likewise.
34529 (vreinterpret_f64_s64): Likewise.
34530 (vreinterpret_f64_u8): Likewise.
34531 (vreinterpret_f64_u16): Likewise.
34532 (vreinterpret_f64_u32): Likewise.
34533 (vreinterpret_f64_u64): Likewise.
34534 (vreinterpretq_f64_f32): Likewise.
34535 (vreinterpretq_f64_p8): Likewise.
34536 (vreinterpretq_f64_p16): Likewise.
34537 (vreinterpretq_f64_s8): Likewise.
34538 (vreinterpretq_f64_s16): Likewise.
34539 (vreinterpretq_f64_s32): Likewise.
34540 (vreinterpretq_f64_s64): Likewise.
34541 (vreinterpretq_f64_u8): Likewise.
34542 (vreinterpretq_f64_u16): Likewise.
34543 (vreinterpretq_f64_u32): Likewise.
34544 (vreinterpretq_f64_u64): Likewise.
34545 (vreinterpret_s64_f64): Likewise.
34546 (vreinterpretq_s64_f64): Likewise.
34547 (vreinterpret_u64_f64): Likewise.
34548 (vreinterpretq_u64_f64): Likewise.
34549 (vreinterpret_s8_f64): Likewise.
34550 (vreinterpretq_s8_f64): Likewise.
34551 (vreinterpret_s16_f64): Likewise.
34552 (vreinterpretq_s16_f64): Likewise.
34553 (vreinterpret_s32_f64): Likewise.
34554 (vreinterpretq_s32_f64): Likewise.
34555 (vreinterpret_u8_f64): Likewise.
34556 (vreinterpretq_u8_f64): Likewise.
34557 (vreinterpret_u16_f64): Likewise.
34558 (vreinterpretq_u16_f64): Likewise.
34559 (vreinterpret_u32_f64): Likewise.
34560 (vreinterpretq_u32_f64): Likewise.
34562 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34564 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
34565 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
34566 (vreinterpret_p8_s8): Likewise.
34567 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
34568 (vreinterpret_p8_s16): Likewise.
34569 (vreinterpret_p8_s32): Likewise.
34570 (vreinterpret_p8_s64): Likewise.
34571 (vreinterpret_p8_f32): Likewise.
34572 (vreinterpret_p8_u8): Likewise.
34573 (vreinterpret_p8_u16): Likewise.
34574 (vreinterpret_p8_u32): Likewise.
34575 (vreinterpret_p8_u64): Likewise.
34576 (vreinterpret_p8_p16): Likewise.
34577 (vreinterpretq_p8_s8): Likewise.
34578 (vreinterpretq_p8_s16): Likewise.
34579 (vreinterpretq_p8_s32): Likewise.
34580 (vreinterpretq_p8_s64): Likewise.
34581 (vreinterpretq_p8_f32): Likewise.
34582 (vreinterpretq_p8_u8): Likewise.
34583 (vreinterpretq_p8_u16): Likewise.
34584 (vreinterpretq_p8_u32): Likewise.
34585 (vreinterpretq_p8_u64): Likewise.
34586 (vreinterpretq_p8_p16): Likewise.
34587 (vreinterpret_p16_s8): Likewise.
34588 (vreinterpret_p16_s16): Likewise.
34589 (vreinterpret_p16_s32): Likewise.
34590 (vreinterpret_p16_s64): Likewise.
34591 (vreinterpret_p16_f32): Likewise.
34592 (vreinterpret_p16_u8): Likewise.
34593 (vreinterpret_p16_u16): Likewise.
34594 (vreinterpret_p16_u32): Likewise.
34595 (vreinterpret_p16_u64): Likewise.
34596 (vreinterpret_p16_p8): Likewise.
34597 (vreinterpretq_p16_s8): Likewise.
34598 (vreinterpretq_p16_s16): Likewise.
34599 (vreinterpretq_p16_s32): Likewise.
34600 (vreinterpretq_p16_s64): Likewise.
34601 (vreinterpretq_p16_f32): Likewise.
34602 (vreinterpretq_p16_u8): Likewise.
34603 (vreinterpretq_p16_u16): Likewise.
34604 (vreinterpretq_p16_u32): Likewise.
34605 (vreinterpretq_p16_u64): Likewise.
34606 (vreinterpretq_p16_p8): Likewise.
34607 (vreinterpret_f32_s8): Likewise.
34608 (vreinterpret_f32_s16): Likewise.
34609 (vreinterpret_f32_s32): Likewise.
34610 (vreinterpret_f32_s64): Likewise.
34611 (vreinterpret_f32_u8): Likewise.
34612 (vreinterpret_f32_u16): Likewise.
34613 (vreinterpret_f32_u32): Likewise.
34614 (vreinterpret_f32_u64): Likewise.
34615 (vreinterpret_f32_p8): Likewise.
34616 (vreinterpret_f32_p16): Likewise.
34617 (vreinterpretq_f32_s8): Likewise.
34618 (vreinterpretq_f32_s16): Likewise.
34619 (vreinterpretq_f32_s32): Likewise.
34620 (vreinterpretq_f32_s64): Likewise.
34621 (vreinterpretq_f32_u8): Likewise.
34622 (vreinterpretq_f32_u16): Likewise.
34623 (vreinterpretq_f32_u32): Likewise.
34624 (vreinterpretq_f32_u64): Likewise.
34625 (vreinterpretq_f32_p8): Likewise.
34626 (vreinterpretq_f32_p16): Likewise.
34627 (vreinterpret_s64_s8): Likewise.
34628 (vreinterpret_s64_s16): Likewise.
34629 (vreinterpret_s64_s32): Likewise.
34630 (vreinterpret_s64_f32): Likewise.
34631 (vreinterpret_s64_u8): Likewise.
34632 (vreinterpret_s64_u16): Likewise.
34633 (vreinterpret_s64_u32): Likewise.
34634 (vreinterpret_s64_u64): Likewise.
34635 (vreinterpret_s64_p8): Likewise.
34636 (vreinterpret_s64_p16): Likewise.
34637 (vreinterpretq_s64_s8): Likewise.
34638 (vreinterpretq_s64_s16): Likewise.
34639 (vreinterpretq_s64_s32): Likewise.
34640 (vreinterpretq_s64_f32): Likewise.
34641 (vreinterpretq_s64_u8): Likewise.
34642 (vreinterpretq_s64_u16): Likewise.
34643 (vreinterpretq_s64_u32): Likewise.
34644 (vreinterpretq_s64_u64): Likewise.
34645 (vreinterpretq_s64_p8): Likewise.
34646 (vreinterpretq_s64_p16): Likewise.
34647 (vreinterpret_u64_s8): Likewise.
34648 (vreinterpret_u64_s16): Likewise.
34649 (vreinterpret_u64_s32): Likewise.
34650 (vreinterpret_u64_s64): Likewise.
34651 (vreinterpret_u64_f32): Likewise.
34652 (vreinterpret_u64_u8): Likewise.
34653 (vreinterpret_u64_u16): Likewise.
34654 (vreinterpret_u64_u32): Likewise.
34655 (vreinterpret_u64_p8): Likewise.
34656 (vreinterpret_u64_p16): Likewise.
34657 (vreinterpretq_u64_s8): Likewise.
34658 (vreinterpretq_u64_s16): Likewise.
34659 (vreinterpretq_u64_s32): Likewise.
34660 (vreinterpretq_u64_s64): Likewise.
34661 (vreinterpretq_u64_f32): Likewise.
34662 (vreinterpretq_u64_u8): Likewise.
34663 (vreinterpretq_u64_u16): Likewise.
34664 (vreinterpretq_u64_u32): Likewise.
34665 (vreinterpretq_u64_p8): Likewise.
34666 (vreinterpretq_u64_p16): Likewise.
34667 (vreinterpret_s8_s16): Likewise.
34668 (vreinterpret_s8_s32): Likewise.
34669 (vreinterpret_s8_s64): Likewise.
34670 (vreinterpret_s8_f32): Likewise.
34671 (vreinterpret_s8_u8): Likewise.
34672 (vreinterpret_s8_u16): Likewise.
34673 (vreinterpret_s8_u32): Likewise.
34674 (vreinterpret_s8_u64): Likewise.
34675 (vreinterpret_s8_p8): Likewise.
34676 (vreinterpret_s8_p16): Likewise.
34677 (vreinterpretq_s8_s16): Likewise.
34678 (vreinterpretq_s8_s32): Likewise.
34679 (vreinterpretq_s8_s64): Likewise.
34680 (vreinterpretq_s8_f32): Likewise.
34681 (vreinterpretq_s8_u8): Likewise.
34682 (vreinterpretq_s8_u16): Likewise.
34683 (vreinterpretq_s8_u32): Likewise.
34684 (vreinterpretq_s8_u64): Likewise.
34685 (vreinterpretq_s8_p8): Likewise.
34686 (vreinterpretq_s8_p16): Likewise.
34687 (vreinterpret_s16_s8): Likewise.
34688 (vreinterpret_s16_s32): Likewise.
34689 (vreinterpret_s16_s64): Likewise.
34690 (vreinterpret_s16_f32): Likewise.
34691 (vreinterpret_s16_u8): Likewise.
34692 (vreinterpret_s16_u16): Likewise.
34693 (vreinterpret_s16_u32): Likewise.
34694 (vreinterpret_s16_u64): Likewise.
34695 (vreinterpret_s16_p8): Likewise.
34696 (vreinterpret_s16_p16): Likewise.
34697 (vreinterpretq_s16_s8): Likewise.
34698 (vreinterpretq_s16_s32): Likewise.
34699 (vreinterpretq_s16_s64): Likewise.
34700 (vreinterpretq_s16_f32): Likewise.
34701 (vreinterpretq_s16_u8): Likewise.
34702 (vreinterpretq_s16_u16): Likewise.
34703 (vreinterpretq_s16_u32): Likewise.
34704 (vreinterpretq_s16_u64): Likewise.
34705 (vreinterpretq_s16_p8): Likewise.
34706 (vreinterpretq_s16_p16): Likewise.
34707 (vreinterpret_s32_s8): Likewise.
34708 (vreinterpret_s32_s16): Likewise.
34709 (vreinterpret_s32_s64): Likewise.
34710 (vreinterpret_s32_f32): Likewise.
34711 (vreinterpret_s32_u8): Likewise.
34712 (vreinterpret_s32_u16): Likewise.
34713 (vreinterpret_s32_u32): Likewise.
34714 (vreinterpret_s32_u64): Likewise.
34715 (vreinterpret_s32_p8): Likewise.
34716 (vreinterpret_s32_p16): Likewise.
34717 (vreinterpretq_s32_s8): Likewise.
34718 (vreinterpretq_s32_s16): Likewise.
34719 (vreinterpretq_s32_s64): Likewise.
34720 (vreinterpretq_s32_f32): Likewise.
34721 (vreinterpretq_s32_u8): Likewise.
34722 (vreinterpretq_s32_u16): Likewise.
34723 (vreinterpretq_s32_u32): Likewise.
34724 (vreinterpretq_s32_u64): Likewise.
34725 (vreinterpretq_s32_p8): Likewise.
34726 (vreinterpretq_s32_p16): Likewise.
34727 (vreinterpret_u8_s8): Likewise.
34728 (vreinterpret_u8_s16): Likewise.
34729 (vreinterpret_u8_s32): Likewise.
34730 (vreinterpret_u8_s64): Likewise.
34731 (vreinterpret_u8_f32): Likewise.
34732 (vreinterpret_u8_u16): Likewise.
34733 (vreinterpret_u8_u32): Likewise.
34734 (vreinterpret_u8_u64): Likewise.
34735 (vreinterpret_u8_p8): Likewise.
34736 (vreinterpret_u8_p16): Likewise.
34737 (vreinterpretq_u8_s8): Likewise.
34738 (vreinterpretq_u8_s16): Likewise.
34739 (vreinterpretq_u8_s32): Likewise.
34740 (vreinterpretq_u8_s64): Likewise.
34741 (vreinterpretq_u8_f32): Likewise.
34742 (vreinterpretq_u8_u16): Likewise.
34743 (vreinterpretq_u8_u32): Likewise.
34744 (vreinterpretq_u8_u64): Likewise.
34745 (vreinterpretq_u8_p8): Likewise.
34746 (vreinterpretq_u8_p16): Likewise.
34747 (vreinterpret_u16_s8): Likewise.
34748 (vreinterpret_u16_s16): Likewise.
34749 (vreinterpret_u16_s32): Likewise.
34750 (vreinterpret_u16_s64): Likewise.
34751 (vreinterpret_u16_f32): Likewise.
34752 (vreinterpret_u16_u8): Likewise.
34753 (vreinterpret_u16_u32): Likewise.
34754 (vreinterpret_u16_u64): Likewise.
34755 (vreinterpret_u16_p8): Likewise.
34756 (vreinterpret_u16_p16): Likewise.
34757 (vreinterpretq_u16_s8): Likewise.
34758 (vreinterpretq_u16_s16): Likewise.
34759 (vreinterpretq_u16_s32): Likewise.
34760 (vreinterpretq_u16_s64): Likewise.
34761 (vreinterpretq_u16_f32): Likewise.
34762 (vreinterpretq_u16_u8): Likewise.
34763 (vreinterpretq_u16_u32): Likewise.
34764 (vreinterpretq_u16_u64): Likewise.
34765 (vreinterpretq_u16_p8): Likewise.
34766 (vreinterpretq_u16_p16): Likewise.
34767 (vreinterpret_u32_s8): Likewise.
34768 (vreinterpret_u32_s16): Likewise.
34769 (vreinterpret_u32_s32): Likewise.
34770 (vreinterpret_u32_s64): Likewise.
34771 (vreinterpret_u32_f32): Likewise.
34772 (vreinterpret_u32_u8): Likewise.
34773 (vreinterpret_u32_u16): Likewise.
34774 (vreinterpret_u32_u64): Likewise.
34775 (vreinterpret_u32_p8): Likewise.
34776 (vreinterpret_u32_p16): Likewise.
34777 (vreinterpretq_u32_s8): Likewise.
34778 (vreinterpretq_u32_s16): Likewise.
34779 (vreinterpretq_u32_s32): Likewise.
34780 (vreinterpretq_u32_s64): Likewise.
34781 (vreinterpretq_u32_f32): Likewise.
34782 (vreinterpretq_u32_u8): Likewise.
34783 (vreinterpretq_u32_u16): Likewise.
34784 (vreinterpretq_u32_u64): Likewise.
34785 (vreinterpretq_u32_p8): Likewise.
34786 (vreinterpretq_u32_p16): Likewise.
34788 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34790 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
34792 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
34794 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
34795 (vqnegd_s64): Likewise.
34796 (vqabs_s64): Likewise.
34797 (vqabsd_s64): Likewise.
34799 2014-04-22 Richard Henderson <rth@redhat.com>
34801 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
34802 computation to the top of the loop.
34804 2014-04-22 Renlin <renlin.li@arm.com>
34805 Jiong Wang <jiong.wang@arm.com>
34807 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
34808 * config/aarch64/aarch64.c (aarch64_layout_frame)
34809 (aarch64_initial_elimination_offset): Likewise.
34811 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
34813 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
34816 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
34818 * machmode.h (bitwise_mode_for_mode): Declare.
34819 * stor-layout.h (bitwise_type_for_mode): Likewise.
34820 * stor-layout.c (bitwise_mode_for_mode): New function.
34821 (bitwise_type_for_mode): Likewise.
34822 * builtins.c (fold_builtin_memory_op): Use it instead of
34823 int_mode_for_mode and build_nonstandard_integer_type.
34825 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34827 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
34828 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
34829 (*-*-solaris2*): Simplify.
34830 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
34831 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
34832 *-*-solaris2.9* handling.
34834 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
34836 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
34837 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
34838 handling, simplify.
34839 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
34840 * configure: Regenerate.
34842 * config/i386/sol2-9.h: Remove.
34844 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
34845 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
34846 Remove Solaris 9 references.
34848 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
34850 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
34851 (floatuns<GPI:mode><GPF:mode>2): Remove.
34852 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
34853 and floatuns conversions.
34854 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
34855 and floatuns conversions.
34856 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
34857 (w1,w2): New mode attributes for inequal width conversions.
34859 2014-04-22 Renlin Li <Renlin.Li@arm.com>
34861 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
34862 the output asm format.
34864 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
34866 * config/aarch64/aarch64-simd.md
34867 (aarch64_cm<optab>di): Always split.
34868 (*aarch64_cm<optab>di): New.
34869 (aarch64_cmtstdi): Always split.
34870 (*aarch64_cmtstdi): New.
34872 2014-04-22 Jakub Jelinek <jakub@redhat.com>
34874 PR tree-optimization/60823
34875 * omp-low.c (ipa_simd_modify_function_body): Go through
34876 all SSA_NAMEs and for those refering to vector arguments
34877 which are going to be replaced adjust SSA_NAME_VAR and,
34878 if it is a default definition, change it into a non-default
34879 definition assigned at the beginning of function from new_decl.
34880 (ipa_simd_modify_stmt_ops): Rewritten.
34881 * tree-dfa.c (set_ssa_default_def): When removing default def,
34882 check for NULL loc instead of NULL *loc.
34884 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34886 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
34887 restrictions on core registers for DImode values in Thumb2.
34889 2014-04-22 Ian Bolton <ian.bolton@arm.com>
34891 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
34892 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
34894 2014-04-22 Ian Bolton <ian.bolton@arm.com>
34896 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
34897 (*iordi_notzesidi_di): Likewise.
34898 (*iordi_notsesidi_di): Likewise.
34900 2014-04-22 Ian Bolton <ian.bolton@arm.com>
34902 * config/arm/arm-protos.h (tune_params): New struct members.
34903 * config/arm/arm.c: Initialise tune_params per processor.
34904 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
34905 for speed, based on new tune_params.
34907 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34909 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
34910 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
34911 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
34912 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
34913 * config/aarch64/arm_neon.h (vrnd_f64): Added.
34914 (vrnda_f64): Likewise.
34915 (vrndi_f64): Likewise.
34916 (vrndm_f64): Likewise.
34917 (vrndn_f64): Likewise.
34918 (vrndp_f64): Likewise.
34919 (vrndx_f64): Likewise.
34921 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
34923 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
34924 GET_MODE_SIZE argument is enum machine_mode.
34926 2014-04-22 Jakub Jelinek <jakub@redhat.com>
34929 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
34930 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
34932 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
34934 PR middle-end/60281
34935 * asan.c (asan_emit_stack_protection): Force the base to align to
34936 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
34937 appropriate bits if STRICT_ALIGNMENT.
34938 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
34940 (expand_used_vars): Leave a space in the stack frame for alignment
34941 if STRICT_ALIGNMENT.
34943 2014-04-21 David Malcolm <dmalcolm@redhat.com>
34945 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
34947 (gimple_store_p): Likewise.
34948 (gimple_assign_load_p): Likewise.
34949 (gimple_assign_cast_p): Likewise.
34950 (gimple_clobber_p): Likewise.
34952 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
34953 rather than a gimple.
34954 (gimple_assign_cast_p): Likewise.
34956 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
34959 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
34960 If mode is DDmode and TARGET_E500_DOUBLE allow move.
34962 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
34963 more debug information for E500 if -mdebug=reg.
34965 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
34968 * config/i386/i386.c (ix86_expand_builtin)
34969 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
34970 register for target RTX.
34971 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
34973 2014-04-18 Cong Hou <congh@google.com>
34975 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
34976 the widen-mult pattern by handling two operands with different sizes,
34977 and operands whose size is smaller than half of the result type.
34979 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
34981 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
34982 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
34983 (do_estimate_edge_time): Compute it.
34984 * ipa-inline.c (want_inline_small_function_p): Bypass
34985 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
34987 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
34989 * ipa-inline.c (spec_rem): New static variable.
34990 (dump_overall_stats): New function.
34991 (dump_inline_stats): New function.
34993 2014-04-18 Richard Henderson <rth@redhat.com>
34995 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
34996 to GET_MODE_SIZE, not a reg_class_t.
34998 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35000 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
35001 (vsx_xxmrglw_<mode>): Likewise.
35003 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
35006 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
35007 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
35008 (rs6000_init_hard_regno_mode_ok): Likewise.
35010 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
35012 * ipa-inline.c (inline_small_functions): Account only non-cold
35014 * doc/invoke.texi (inline-unit-growth): Update documentation.
35016 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
35018 * config/rs6000/rs6000.md (addti3, subti3): New.
35020 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
35023 * config/i386/i386.c (ix86_expand_clear): Remove outdated
35024 comment. Check optimize_insn_for_size_p instead of
35025 optimize_insn_for_speed_p.
35027 2014-04-17 Martin Jambor <mjambor@suse.cz>
35029 * gimple-iterator.c (gsi_start_edge): New function.
35030 * gimple-iterator.h (gsi_start_edge): Declare.
35031 * tree-sra.c (single_non_eh_succ): New function.
35032 (disqualify_ops_if_throwing_stmt): Renamed to
35033 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
35034 having one non-EH successor BB.
35035 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
35036 generate loads into replacements.
35037 (sra_modify_assign): Likewise and and also use the simple path for
35039 (sra_modify_function_body): Commit statements on edges.
35041 2014-04-17 Richard Biener <rguenther@suse.de>
35043 PR middle-end/60849
35044 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
35045 comparison results and add clarifying comment.
35047 2014-04-17 Jakub Jelinek <jakub@redhat.com>
35049 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
35050 (blank_mode): Initialize it.
35051 (emit_mode_size_inline, emit_mode_nunits_inline,
35052 emit_mode_inner_inline): New functions.
35053 (emit_insn_modes_h): Call them and surround their output with
35054 #if GCC_VERSION >= 4001 ... #endif.
35055 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
35056 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
35057 mode_* arrays if the argument is __builtin_constant_p.
35058 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
35059 is enum machine_mode.
35061 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
35063 * passes.c (opt_pass::execute): Adjust.
35064 (pass_manager::execute_pass_mode_switching): Likewise.
35065 (early_local_passes::execute): Likewise.
35066 (execute_one_pass): Pass cfun to the pass's execute method.
35067 * tree-pass.h (opt_pass::execute): Add function * argument.
35068 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
35069 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
35070 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
35071 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
35072 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
35073 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
35074 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
35075 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
35076 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
35077 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
35078 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
35079 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
35080 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
35081 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
35082 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
35083 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
35084 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
35085 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
35086 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
35087 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
35088 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
35089 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
35090 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
35091 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
35092 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
35093 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
35094 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
35095 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
35096 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
35099 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
35101 * passes.c (opt_pass::gate): Take function * argument.
35102 (gate_all_early_local_passes): Merge into
35103 (early_local_passes::gate): this.
35104 (gate_all_early_optimizations): Merge into
35105 (all_early_optimizations::gate): this.
35106 (gate_all_optimizations): Mege into
35107 (all_optimizations::gate): this.
35108 (gate_all_optimizations_g): Merge into
35109 (all_optimizations_g::gate): this.
35110 (gate_rest_of_compilation): Mege into
35111 (rest_of_compilation::gate): this.
35112 (gate_postreload): Merge into
35113 (postreload::gate): this.
35114 (dump_one_pass): Pass cfun to the pass's gate method.
35115 (execute_ipa_summary_passes): Likewise.
35116 (execute_one_pass): Likewise.
35117 (ipa_write_summaries_2): Likewise.
35118 (ipa_write_optimization_summaries_1): Likewise.
35119 (ipa_read_summaries_1): Likewise.
35120 (ipa_read_optimization_summaries_1): Likewise.
35121 (execute_ipa_stmt_fixups): Likewise.
35122 * tree-pass.h (opt_pass::gate): Add function * argument.
35123 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
35124 combine-stack-adj.c, combine.c, compare-elim.c,
35125 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
35126 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
35127 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
35128 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
35129 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
35130 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
35131 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
35132 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
35133 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
35134 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
35135 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
35136 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
35137 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
35138 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
35139 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
35140 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
35141 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
35142 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
35143 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
35144 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
35145 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
35146 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
35147 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
35148 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
35149 var-tracking.c, vtable-verify.c, web.c: Adjust.
35151 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
35153 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
35154 * configure: Regenerate.
35156 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
35158 * passes.c (dump_one_pass): don't check pass->has_gate.
35159 (execute_ipa_summary_passes): Likewise.
35160 (execute_one_pass): Likewise.
35161 (ipa_write_summaries_2): Likewise.
35162 (ipa_write_optimization_summaries_1): Likewise.
35163 (ipa_read_optimization_summaries_1): Likewise.
35164 (execute_ipa_stmt_fixups): Likewise.
35165 * tree-pass.h (pass_data::has_gate): Remove.
35166 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
35167 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
35168 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
35169 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
35170 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
35171 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
35172 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
35173 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
35174 gimple-low.c, gimple-ssa-isolate-paths.c,
35175 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
35176 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
35177 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
35178 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
35179 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
35180 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
35181 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
35182 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
35183 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
35184 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
35185 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
35186 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
35187 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
35188 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
35189 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
35190 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
35191 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
35192 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
35193 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
35194 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
35195 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
35196 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
35199 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
35201 * pass_manager.h (pass_manager::register_dump_files_1): Remove
35203 * passes.c (pass_manager::register_dump_files_1): Merge into
35204 (pass_manager::register_dump_files): this, and remove its handling of
35205 properties since the pass always has the properties anyway.
35206 (pass_manager::pass_manager): Adjust.
35208 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
35210 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
35211 * passes.c (pass_manager::register_dump_files_1): Remove dead code
35212 dealing with properties.
35213 (pass_manager::register_dump_files): Adjust.
35215 2014-03-20 Mark Wielaard <mjw@redhat.com>
35217 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
35218 then represent the bound as normal constant value.
35220 2014-04-17 Jakub Jelinek <jakub@redhat.com>
35223 Forward port from 4.8 branch
35224 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
35226 * config/i386/bmiintrin.h (_blsi_u32): New.
35227 (_blsi_u64): Ditto.
35228 (_blsr_u32): Ditto.
35229 (_blsr_u64): Ditto.
35230 (_blsmsk_u32): Ditto.
35231 (_blsmsk_u64): Ditto.
35232 (_tzcnt_u32): Ditto.
35233 (_tzcnt_u64): Ditto.
35235 2014-04-17 Kito Cheng <kito@0xlab.org>
35237 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
35239 2014-04-17 Richard Biener <rguenther@suse.de>
35241 PR middle-end/60849
35242 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
35243 boolean results for comparisons.
35245 2014-04-17 Richard Biener <rguenther@suse.de>
35247 PR tree-optimization/60836
35248 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
35249 initial PHI args to be gimple values.
35251 2014-04-17 Richard Biener <rguenther@suse.de>
35253 PR tree-optimization/60841
35254 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
35255 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
35256 of stmts to SLP build.
35257 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
35258 (vect_analyze_slp): Likewise.
35259 (vect_analyze_slp_instance): Likewise.
35260 (vect_build_slp_tree): Limit overall SLP tree growth.
35261 * tree-vectorizer.h (vect_analyze_data_refs,
35262 vect_analyze_slp): Adjust prototypes.
35264 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
35266 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
35269 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
35271 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
35272 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
35273 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
35274 for TARGET_SLOW_PSHUFB
35276 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
35278 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
35279 * config/i386/i386.c (intel_cost): Ditto.
35281 2014-04-17 Joey Ye <joey.ye@arm.com>
35283 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
35285 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
35287 * opts.c (common_handle_option): Disable -fipa-reference coorectly
35288 with -fuse-profile.
35290 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
35292 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
35293 (type_all_derivations_known_p): New predicate.
35294 (type_all_ctors_visible_p): New predicate.
35295 (type_possibly_instantiated_p): New predicate.
35296 (get_odr_type): Compute all_derivations_known.
35297 (dump_odr_type): Dump the flag.
35298 (maybe_record_type): Cleanup.
35299 (record_target_from_binfo): Add bases_to_consider array;
35300 record bases for types w/o instances and skip CXX destructor.
35301 (possible_polymorphic_call_targets_1): Add bases_to_consider
35302 and consider_construction parameters; check if type may have instance.
35303 (get_polymorphic_call_info): Set maybe_in_construction to true
35304 when we know nothing.
35305 (record_targets_from_bases): Skip CXX destructors; they are
35306 never called for types in construction.
35307 (possible_polymorphic_call_targets): Do not record target when
35308 type may not have instance.
35310 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
35313 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
35314 external aliases alive, too.
35316 2014-04-16 Andrew Pinski <apinski@cavium.com>
35318 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
35321 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
35323 * final.c (compute_alignments): Do not apply loop alignment to a block
35324 falling through to the exit.
35326 2014-04-16 Catherine Moore <clm@codesourcery.com>
35328 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
35329 Adjust constraints for microMIPS store patterns.
35331 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
35333 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
35335 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
35337 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
35338 (append_use): Run at -O0.
35339 (append_vdef): Likewise.
35340 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
35341 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
35343 2014-04-16 Jakub Jelinek <jakub@redhat.com>
35345 PR tree-optimization/60844
35346 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
35347 (propagate_op_to_single_use, remove_visited_stmt_chain,
35348 linearize_expr, repropagate_negates, reassociate_bb): Use it
35349 instead of gsi_remove.
35351 2014-04-16 Martin Jambor <mjambor@suse.cz>
35353 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
35354 ipa_transforms_to_apply.
35355 (cgraph_function_versioning): Assert that old_node has empty
35356 ipa_transforms_to_apply.
35357 * trans-mem.c (ipa_tm_create_version): Likewise.
35358 * tree-inline.c (tree_function_versioning): Do not duplicate
35359 ipa_transforms_to_apply.
35361 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35364 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
35366 Pass necessary as flags on 64-bit Solaris/x86.
35367 Use lowercase relocs for x86_64-*-*.
35368 * configure: Regenerate.
35370 2014-04-15 Jan Hubicka <jh@suse.cz>
35372 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
35373 (maybe_record_node, likely_target_p): Use it.
35375 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35378 Revert following patch
35380 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35383 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
35384 software floating point or no floating point registers, do not
35385 allow any type in the FPRs. Eliminate a test for SPE SIMD types
35386 in GPRs that occurs after we tested for GPRs that would never be
35389 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
35390 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
35391 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
35392 specifically allow DDmode, since that does not use the SPE SIMD
35395 2014-03-21 Mark Wielaard <mjw@redhat.com>
35397 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
35398 as unsigned or int depending on type and value used.
35400 2014-04-15 Richard Biener <rguenther@suse.de>
35402 PR rtl-optimization/56965
35403 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
35404 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
35406 * alias.c (true_dependence_1): Do not call
35407 nonoverlapping_component_refs_p.
35408 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
35409 nonoverlapping_component_refs_p.
35410 (indirect_refs_may_alias_p): Likewise.
35412 2014-04-15 Teresa Johnson <tejohnson@google.com>
35414 * cfg.c (dump_bb_info): Fix flags check.
35415 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
35417 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35419 PR rtl-optimization/60663
35420 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
35423 2014-04-15 Richard Biener <rguenther@suse.de>
35425 * lto-streamer.h (LTO_major_version): Bump to 4.
35427 2014-04-15 Richard Biener <rguenther@suse.de>
35429 * common.opt (lto_partition_model): New enum.
35430 (flto-partition=): Merge separate options with a single with argument,
35431 add -flto-partition=one support.
35432 * flag-types.h (enum lto_partition_model): Declare.
35433 * opts.c (finish_options): Remove duplicate -flto-partition=
35435 * lto-wrapper.c (run_gcc): Adjust.
35437 2014-04-15 Richard Biener <rguenther@suse.de>
35439 * alias.c (ncr_compar): New function.
35440 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
35442 2014-04-15 Richard Biener <rguenther@suse.de>
35444 * alias.c (record_component_aliases): Do not walk BINFOs.
35446 2014-04-15 Richard Biener <rguenther@suse.de>
35448 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35449 Add struct function argument and adjust.
35450 (find_func_aliases_for_call): Likewise.
35451 (find_func_aliases): Likewise.
35452 (find_func_clobbers): Likewise.
35453 (intra_create_variable_infos): Likewise.
35454 (compute_points_to_sets): Likewise.
35455 (ipa_pta_execute): Adjust. Do not push/pop cfun.
35457 2014-04-15 Richard Biener <rguenther@suse.de>
35459 * tree.c (iterative_hash_expr): Use enum tree_code_class
35460 to store TREE_CODE_CLASS.
35461 (tree_block): Likewise.
35462 (tree_set_block): Likewise.
35463 * tree.h (fold_build_pointer_plus_loc): Use
35464 convert_to_ptrofftype_loc.
35466 2014-04-15 Jakub Jelinek <jakub@redhat.com>
35469 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
35472 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
35474 * cfgloop.h (struct loop): Move force_vectorize down.
35475 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
35476 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
35477 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
35478 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
35479 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
35480 * tree-core.h (enum annot_expr_kind): Add new kind values.
35481 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
35482 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
35484 * tree.def (ANNOTATE_EXPR): Tweak comment.
35486 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
35488 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
35491 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
35493 * tree.h (TYPE_IDENTIFIER): Declare.
35494 * tree.c (subrange_type_for_debug_p): Use it.
35495 * godump.c (go_format_type): Likewise.
35496 * dwarf2out.c (is_cxx_auto, modified_type_die,
35497 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
35498 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
35500 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
35503 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
35505 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
35507 * config/i386/i386.c (examine_argument): Return bool. Return true if
35508 parameter should be passed in memory.
35509 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
35510 (construct_container): Update calls to examine_argument.
35511 (function_arg_advance_64): Ditto.
35512 (return_in_memory_32): Merge with ix86_return_in_memory.
35513 (return_in_memory_64): Ditto.
35514 (return_in_memory_ms_64): Ditto.
35516 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
35518 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
35519 * coverage.c (coverage_compute_profile_id): Handle externally visible
35522 2014-04-14 Martin Jambor <mjambor@suse.cz>
35524 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
35525 DECL_DISREGARD_INLINE_LIMITS functions.
35527 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
35530 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
35532 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
35535 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
35536 optimize_insn_for_speed_p instead of
35537 optimize_function_for_speed_p.
35539 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
35541 * doc/invoke.texi (free): Document AArch64.
35543 2014-04-14 Richard Biener <rguenther@suse.de>
35545 PR tree-optimization/60042
35546 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
35547 (insert_into_preds_of_block): Do not prevent PHI insertion
35548 for REFERENCE exprs here ...
35549 (eliminate_dom_walker::before_dom_children): ... but prevent
35550 their use here under similar conditions when applied to the
35551 IL after PRE optimizations.
35553 2014-04-14 Richard Biener <rguenther@suse.de>
35555 * passes.def: Move early points-to after early SRA.
35557 2014-04-14 Richard Biener <rguenther@suse.de>
35559 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
35560 check for which sign-changes we allow when forwarding
35561 a converted value into a switch.
35563 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
35565 * stor-layout.c (place_field): Finalize non-constant offset for the
35568 2014-04-14 Richard Biener <rguenther@suse.de>
35570 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
35572 (expand_switch_using_bit_tests_p): Likewise.
35573 (process_switch): Compute and pass on speed_p based on the
35575 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
35576 optimize_bb_for_speed_p.
35578 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
35580 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
35581 * function.h (struct function): Rename has_force_vect_loops into
35582 has_force_vectorize_loops.
35583 * lto-streamer-in.c (input_cfg): Adjust for renaming.
35584 (input_struct_function_base): Likewise.
35585 * lto-streamer-out.c (output_cfg): Likewise.
35586 (output_struct_function_base): Likewise.
35587 * omp-low.c (expand_omp_simd): Likewise.
35588 * tree-cfg.c (move_sese_region_to_fn): Likewise.
35589 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
35590 (version_loop_for_if_conversion): Likewise.
35591 (tree_if_conversion): Likewise.
35592 (main_tree_if_conversion): Likewise.
35593 (gate_tree_if_conversion): Likewise.
35594 * tree-inline.c (copy_loops): Likewise.
35595 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
35596 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
35597 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
35598 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
35599 * tree-vectorizer.c (vectorize_loops): Likewise.
35600 * tree-vectorizer.h (unlimited_cost_model): Likewise.
35602 2014-04-14 Richard Biener <rguenther@suse.de>
35605 * lto-streamer-out.c (wrap_refs): New function.
35606 (lto_output): Wrap symbol references in global initializes in
35607 type-preserving MEM_REFs.
35609 2014-04-14 Christian Bruel <christian.bruel@st.com>
35611 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
35613 2014-04-14 Christian Bruel <christian.bruel@st.com>
35615 * config/sh/sh.md (setmemqi): New expand pattern.
35616 * config/sh/sh.h (CLEAR_RATIO): Define.
35617 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
35618 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
35620 2014-04-14 Richard Biener <rguenther@suse.de>
35622 PR middle-end/55022
35623 * fold-const.c (negate_expr_p): Don't negate directional rounding
35625 (fold_negate_expr): Likewise.
35627 2014-04-14 Richard Biener <rguenther@suse.de>
35629 PR tree-optimization/59817
35630 PR tree-optimization/60453
35631 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
35632 recursion to catch all CHRECs in the scalar evolution and restrict
35633 the predicate for the remains appropriately.
35635 2014-04-12 Catherine Moore <clm@codesourcery.com>
35637 * config/mips/constraints.md: Add new register constraint "kb".
35638 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
35639 (*movhi_internal): Likewise.
35640 (*movqi_internal): Likewise.
35641 * config/mips/mips.h (M16_STORE_REGS): New register class.
35642 (REG_CLASS_NAMES): Add M16_STORE_REGS.
35643 (REG_CLASS_CONTENTS): Likewise.
35644 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
35646 2014-04-11 Tobias Burnus <burnus@net-b.de>
35649 * doc/invoke.texi (-Wformat-signedness): Document it.
35650 (Wformat=2): Mention that this enables -Wformat-signedness.
35652 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
35654 * common/config/epiphany/epiphany-common.c
35655 (epiphany_option_optimization_table): Enable section anchors by
35656 default at -O1 or higher.
35657 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
35658 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
35659 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
35660 carries no extra cost.
35661 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
35662 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
35663 * config/epiphany/predicates.md (memclob_operand): New predicate.
35664 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
35665 Use memclob_operand predicate and X constraint for operand 3.
35667 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
35669 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
35670 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
35673 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
35675 PR rtl-optimization/60651
35676 * mode-switching.c (optimize_mode_switching): Make sure to emit
35677 sets of a lower numbered entity before sets of a higher numbered
35678 entity to a mode of the same or lower priority.
35679 When creating a seginfo for a basic block that starts with a code
35680 label, move the insertion point past the code label.
35681 (new_seginfo): Document and enforce requirement that
35682 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
35683 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
35684 * doc/tm.texi: Regenerate.
35686 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
35689 * config/arc/arc.c (arc_save_restore): Fix assert typo.
35691 2013-04-11 Jakub Jelinek <jakub@redhat.com>
35693 * BASE-VER: Set to 4.10.0.
35695 2014-04-11 Tobias Burnus <burnus@net-b.de>
35698 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
35699 * doc/gcc.texi (Service): Update description in the @menu
35700 * doc/invoke.texi (Option Summary): Remove misplaced and
35703 2014-04-11 Steve Ellcey <sellcey@mips.com>
35704 Jakub Jelinek <jakub@redhat.com>
35706 PR middle-end/60556
35707 * expr.c (convert_move): Use emit_store_flag_force instead of
35708 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
35711 2014-04-11 Richard Biener <rguenther@suse.de>
35713 PR middle-end/60797
35714 * varasm.c (assemble_alias): Avoid endless error reporting
35715 recursion by setting TREE_ASM_WRITTEN.
35717 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35719 * config/s390/s390.md: Add a splitter for NOT rtx.
35721 2014-04-11 Jakub Jelinek <jakub@redhat.com>
35723 PR rtl-optimization/60663
35724 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
35726 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
35727 Jakub Jelinek <jakub@redhat.com>
35730 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
35731 flag from decl_node to node.
35733 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35736 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
35737 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
35738 ameliorating the cases where it can be.
35740 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
35743 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
35745 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
35746 (loadsync_<mode>): Change mode.
35747 (load_quadpti, store_quadpti): New.
35748 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
35749 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
35750 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
35752 2014-04-09 Cong Hou <congh@google.com>
35755 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
35758 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35760 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
35761 instead of vnor to exploit possible fusion opportunity in the
35763 (altivec_expand_vec_perm_const_le): Likewise.
35765 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
35767 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
35768 (loadsync_<mode>): Change mode.
35769 (load_quadpti, store_quadpti): New.
35770 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
35771 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
35773 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
35776 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
35777 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
35778 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
35780 2014-04-08 Richard Biener <rguenther@suse.de>
35782 PR middle-end/60706
35783 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
35784 a 64bit widest int print double-int similar to on HWI64 hosts.
35786 2014-04-08 Richard Biener <rguenther@suse.de>
35788 PR tree-optimization/60785
35789 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
35790 default defs properly.
35792 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
35794 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
35795 (Weffc++): Likewise.
35797 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
35799 * ipa-devirt.c (maybe_record_node): When node is not recorded,
35800 set completep to false rather than true.
35802 2014-04-07 Douglas B Rupp <rupp@adacore.com>
35805 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
35806 ARM_TARGET2_DWARF_FORMAT.
35808 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
35811 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
35812 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
35815 2014-04-07 Richard Biener <rguenther@suse.de>
35817 PR tree-optimization/60766
35818 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
35819 (may_eliminate_iv): Convert cand_value_at result to desired type.
35821 2014-04-07 Jason Merrill <jason@redhat.com>
35824 * common.opt (-fno-gnu-unique): Add.
35825 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
35827 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35829 * haifa-sched.c: Fix outdated function reference and minor
35830 grammar errors in introductory comment.
35832 2014-04-07 Richard Biener <rguenther@suse.de>
35834 PR middle-end/60750
35835 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
35836 for noreturn calls.
35837 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
35839 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
35842 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
35843 size accounting for thunks.
35844 (pa_asm_output_mi_thunk): Use final_start_function() and
35845 final_end_function() to output function start and end directives.
35847 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
35849 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
35850 device specific ISA/ feature information. Remove short_sp and
35851 errata_skip ds. Add avr_device_specific_features enum to have device
35853 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
35854 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
35855 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
35856 updated device specific info.
35857 * config/avr/avr-mcus.def: Merge device specific details to
35858 dev_attribute field.
35859 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
35861 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
35862 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
35863 assembler if RMW isa supported by current device.
35864 * config/avr/genmultilib.awk: Update as device info structure changed.
35865 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
35867 2014-04-04 Cong Hou <congh@google.com>
35869 PR tree-optimization/60656
35870 * tree-vect-stmts.c (supportable_widening_operation):
35871 Fix a bug that elements in a vector with vect_used_by_reduction
35872 property are incorrectly reordered when the operation on it is not
35873 consistant with the one in reduction operation.
35875 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
35877 PR rtl-optimization/60155
35878 * gcse.c (record_set_data): New function.
35879 (single_set_gcse): New function.
35880 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
35881 (hoist_code): Likewise.
35882 (get_pressure_class_and_nregs): Likewise.
35884 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
35886 * explow.c (probe_stack_range): Emit a final optimization blockage.
35888 2014-04-04 Anthony Green <green@moxielogic.com>
35890 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
35893 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
35896 * lto-cgraph.c (input_overwrite_node): Check that partitioning
35897 flags are set only during streaming.
35898 * ipa.c (process_references, walk_polymorphic_call_targets,
35899 symtab_remove_unreachable_nodes): Drop bodies of always inline
35900 after early inlining.
35901 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
35903 2014-04-04 Jakub Jelinek <jakub@redhat.com>
35904 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35907 * dwarf2out.c (const_ok_for_output_1): Reject expressions
35910 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35913 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
35915 (cortex_a53_fdivd): Likewise.
35917 2014-04-04 Martin Jambor <mjambor@suse.cz>
35920 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
35921 Adjust all callers.
35922 * cgraph.c (clone_of_p): Also return true if thunks match.
35923 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
35924 cgraph_function_or_thunk_node and an obsolete comment.
35925 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
35927 (build_function_decl_skip_args): Likewise.
35928 (set_new_clone_decl_and_node_flags): New function.
35929 (duplicate_thunk_for_node): Likewise.
35930 (redirect_edge_duplicating_thunks): Likewise.
35931 (cgraph_clone_node): New parameter args_to_skip, pass it to
35932 redirect_edge_duplicating_thunks which is called instead of
35933 cgraph_redirect_edge_callee.
35934 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
35935 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
35937 2014-04-04 Jeff Law <law@redhat.com>
35940 * config/arm/predicates.md (const_int_I_operand): New predicate.
35941 (const_int_M_operand): Similarly.
35942 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
35944 (insv_t2, extv_reg, extzv_t2): Likewise.
35945 (load_multiple_with_writeback): Similarly for const_int_I_operand.
35946 (pop_multiple_with_writeback_and_return): Likewise.
35947 (vfp_pop_multiple_with_writeback): Likewise
35949 2014-04-04 Richard Biener <rguenther@suse.de>
35952 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
35953 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
35955 * gimplify.h (gimple_add_tmp_var_fn): Declare.
35956 * gimplify.c (gimple_add_tmp_var_fn): New function.
35957 * gimple-expr.h (create_tmp_reg_fn): Declare.
35958 * gimple-expr.c (create_tmp_reg_fn): New function.
35959 * gimple-low.c (record_vars_into): Don't change cfun.
35960 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
35961 code generation without cfun.
35963 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
35966 * Makefile.in (install-driver): Fix shell scripting.
35968 2014-04-03 Cong Hou <congh@google.com>
35970 PR tree-optimization/60505
35971 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
35972 threshold of number of iterations below which no vectorization
35974 * tree-vect-loop.c (new_loop_vec_info):
35975 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
35976 * tree-vect-loop.c (vect_analyze_loop_operations):
35977 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
35978 * tree-vect-loop.c (vect_transform_loop):
35979 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
35980 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
35981 of iterations of the loop and see if we should build the epilogue.
35983 2014-04-03 Richard Biener <rguenther@suse.de>
35985 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
35986 (streamer_tree_cache_create): Adjust.
35987 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
35988 to allow optional nodes array.
35989 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
35990 (streamer_tree_cache_append): Likewise.
35991 (streamer_tree_cache_create): Create nodes array optionally
35992 as specified by parameter.
35993 * lto-streamer-out.c (create_output_block): Avoid maintaining
35994 the node array in the writer cache.
35995 (DFS_write_tree): Remove assertion.
35996 (produce_asm_for_decls): Free the out decl state hash table early.
35997 * lto-streamer-in.c (lto_data_in_create): Adjust for
35998 streamer_tree_cache_create prototype change.
36000 2014-04-03 Richard Biener <rguenther@suse.de>
36002 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
36003 set TREE_CHAIN to NULL_TREE.
36005 2014-04-03 Richard Biener <rguenther@suse.de>
36007 PR tree-optimization/60740
36008 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
36009 over all GIMPLE_COND operands.
36011 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
36013 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
36014 (Weffc++): Remove Scott's numbering, merge lists and reference
36017 2014-04-03 Nick Clifton <nickc@redhat.com>
36019 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
36022 2014-04-03 Martin Jambor <mjambor@suse.cz>
36024 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
36025 mention gcc_unreachable before failing.
36026 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
36029 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
36032 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
36033 inconsistent code and instead mark the context inconsistent.
36034 (possible_polymorphic_call_targets): For inconsistent contexts
36035 return empty complete list.
36037 2014-04-02 Anthony Green <green@moxielogic.com>
36039 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
36040 (extendqisi2, extendhisi2): Define.
36041 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
36042 (WCHAR_TYPE): Change to unsigned int.
36044 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36046 PR tree-optimization/60733
36047 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
36048 insertion point for PHI candidates to be the end of the feeding
36049 block for the PHI argument.
36051 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
36053 PR rtl-optimization/60650
36054 * lra-constraints.c (process_alt_operands): Decrease reject for
36055 earlyclobber matching.
36057 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36059 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
36061 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36063 * config/spu/spu.c (pad_bb): Do not crash when the last
36064 insn is CODE_FOR_blockage.
36066 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36068 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
36069 lies outside the target mode.
36071 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36074 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
36075 software floating point or no floating point registers, do not
36076 allow any type in the FPRs. Eliminate a test for SPE SIMD types
36077 in GPRs that occurs after we tested for GPRs that would never be
36080 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
36081 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
36082 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
36083 specifically allow DDmode, since that does not use the SPE SIMD
36086 2014-04-02 Richard Biener <rguenther@suse.de>
36088 PR middle-end/60729
36089 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
36090 MODE_INTs. Properly use negv_optab.
36091 (expand_abs): Likewise.
36093 2014-04-02 Richard Biener <rguenther@suse.de>
36096 * Makefile.in (install-driver): Guard extra installs with special
36099 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
36101 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
36102 Document vec_vgbbd.
36104 2014-04-01 Richard Henderson <rth@redhat.com>
36107 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
36108 alternative enabled before register allocation.
36110 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
36112 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
36113 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
36115 (nios2_large_got_address): Remove unneeded 'sym' parameter.
36116 (nios2_got_address): Update nios2_large_got_address call site.
36117 (nios2_delegitimize_address): New function.
36118 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
36119 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
36120 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
36122 2014-04-01 Martin Husemann <martin@duskware.de>
36124 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
36127 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
36129 PR rtl-optimization/60604
36130 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
36131 check from register_operand.
36132 (register_operand): Redefine in terms of general_operand.
36133 (nonmemory_operand): Use register_operand for the non-constant cases.
36135 2014-04-01 Richard Biener <rguenther@suse.de>
36137 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
36139 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
36141 * doc/invoke.texi (mapp-regs): Clarify.
36143 2014-03-31 Ulrich Drepper <drepper@gmail.com>
36145 * config/i386/avx512fintrin.h (__v32hi): Define type.
36146 (__v64qi): Likewise.
36147 (_mm512_set1_epi8): Define.
36148 (_mm512_set1_epi16): Define.
36149 (_mm512_set4_epi32): Define.
36150 (_mm512_set4_epi64): Define.
36151 (_mm512_set4_pd): Define.
36152 (_mm512_set4_ps): Define.
36153 (_mm512_setr4_epi64): Define.
36154 (_mm512_setr4_epi32): Define.
36155 (_mm512_setr4_pd): Define.
36156 (_mm512_setr4_ps): Define.
36157 (_mm512_setzero_epi32): Define.
36159 2014-03-31 Martin Jambor <mjambor@suse.cz>
36161 PR middle-end/60647
36162 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
36163 callsite_arguments_match_p. Updated all callers. Also check types of
36164 corresponding formal parameters and actual arguments.
36165 (not_all_callers_have_enough_arguments_p) Renamed to
36166 some_callers_have_mismatched_arguments_p.
36168 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
36170 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
36172 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
36175 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
36178 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
36180 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
36181 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
36183 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
36184 Use FMAMODE_NOVF512 mode iterator.
36185 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
36186 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
36187 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
36188 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
36190 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
36191 Use VF_128_256 mode iterator.
36192 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
36195 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
36197 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
36198 static chain if needed.
36200 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
36203 * lra-constraints.c (index_part_to_reg): New.
36204 (process_address): Use it.
36206 2014-03-27 Jeff Law <law@redhat.com>
36207 Jakub Jelinek <jakub@redhat.com>
36210 * expr.c (do_tablejump): Use simplify_gen_binary rather than
36211 gen_rtx_{PLUS,MULT} to build up the address expression.
36213 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
36214 creating non-canonical RTL.
36216 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
36219 * ipa-inline.c (want_inline_small_function_p): Short circuit large
36220 functions; reorganize to make cheap checks first.
36221 (inline_small_functions): Do not estimate growth when dumping;
36223 * ipa-inline.h (inline_summary): Add min_size.
36224 (growth_likely_positive): New function.
36225 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
36226 (set_cond_stmt_execution_predicate): Cleanup.
36227 (estimate_edge_size_and_time): Compute min_size.
36228 (estimate_calls_size_and_time): Likewise.
36229 (estimate_node_size_and_time): Likewise.
36230 (inline_update_overall_summary): Update min_size.
36231 (do_estimate_edge_time): Likewise.
36232 (do_estimate_edge_size): Update.
36233 (do_estimate_edge_hints): Update.
36234 (growth_likely_positive): New function.
36236 2014-03-28 Jakub Jelinek <jakub@redhat.com>
36239 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
36240 also if addr has VOIDmode.
36242 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36244 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
36245 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
36247 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
36248 instructions as well as AdvancedSIMD loads.
36250 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36252 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
36253 Use crypto_aese type.
36254 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
36255 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
36256 crypto_aese, crypto_aesmc. Move to types.md.
36257 * config/arm/types.md (crypto_aes): Split into crypto_aese,
36259 * config/arm/iterators.md (crypto_type): Likewise.
36261 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
36263 * cgraph.c: Include expr.h and tree-dfa.h.
36264 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
36267 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
36270 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
36271 regs from checking multi-reg pseudos.
36273 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36275 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
36277 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36279 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
36280 if it would clobber the stack pointer, even temporarily.
36282 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
36284 * mode-switching.c: Make small adjustments to the top comment.
36286 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
36288 * config/rs6000/constraints.md (wD constraint): New constraint to
36289 match the constant integer to get the top DImode/DFmode out of a
36290 vector in a VSX register.
36292 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
36293 match the constant integer to get the top DImode/DFmode out of a
36294 vector in a VSX register.
36296 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
36299 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36302 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
36303 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
36305 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
36306 Optimize vec_extract of 64-bit values, where the value being
36307 extracted is in the top word, where we can use scalar
36308 instructions. Add direct move and store support. Combine the big
36309 endian/little endian vector select load support into a single insn.
36310 (vsx_extract_<mode>_internal1): Likewise.
36311 (vsx_extract_<mode>_internal2): Likewise.
36312 (vsx_extract_<mode>_load): Likewise.
36313 (vsx_extract_<mode>_store): Likewise.
36314 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
36315 combined into vsx_extract_<mode>_load.
36316 (vsx_extract_<mode>_one_le): Likewise.
36318 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
36319 define the top 64-bit vector element.
36321 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
36324 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
36325 Document vec_vbpermq builtin.
36328 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
36329 enable use of xxsldwi and xxpermdi builtin functions.
36330 (vec_xxpermdi): Likewise.
36332 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
36333 Document use of vec_xxsldwi and vec_xxpermdi builtins.
36335 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
36337 PR rtl-optimization/60650
36338 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
36340 (find_spills_for): New.
36341 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
36342 Spill all pseudos on the second iteration.
36344 2014-03-27 Marek Polacek <polacek@redhat.com>
36347 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
36350 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36352 * config/s390/s390.c (s390_can_use_return_insn): Check for
36353 call-saved FPRs on 31 bit.
36355 2014-03-27 Jakub Jelinek <jakub@redhat.com>
36357 PR middle-end/60682
36358 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
36359 if they need regimplification, just drop them instead of
36360 calling gimple_regimplify_operands on them.
36362 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
36365 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
36366 (aarch64_frame_pointer_required): Adjust logic.
36367 (aarch64_can_eliminate): Adjust logic.
36368 (aarch64_override_options_after_change): Adjust logic.
36370 2014-03-27 Dehao Chen <dehao@google.com>
36372 * ipa-inline.c (early_inliner): Update node's inline info.
36374 2014-03-26 Dehao Chen <dehao@google.com>
36376 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
36377 compiler inserted conditional jumps for NAN float check.
36379 2014-03-26 Jakub Jelinek <jakub@redhat.com>
36381 * ubsan.h (ubsan_create_data): Change second argument's type
36382 to const location_t *.
36383 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
36385 (ubsan_create_data): Change second argument to const location_t *PLOC.
36386 Create Loc field whenever PLOC is non-NULL.
36387 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
36388 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
36392 * real.c (real_to_integer2): Change type of low to UHWI.
36394 2014-03-26 Tobias Burnus <burnus@net-b.de>
36396 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
36397 (CILK_SELF_SPECS): New define.
36398 (driver_self_specs): Use it.
36400 2014-03-26 Richard Biener <rguenther@suse.de>
36402 * tree-pretty-print.c (percent_K_format): Implement special
36403 case for LTO and its stripped down BLOCK tree.
36405 2014-03-26 Jakub Jelinek <jakub@redhat.com>
36408 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
36410 * tree-vrp.c (simplify_internal_call_using_ranges): If only
36411 one range is range_int_cst_p, but not both, at least optimize
36412 addition/subtraction of 0 and multiplication by 0 or 1.
36413 * gimple-fold.c (gimple_fold_call): Fold
36414 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
36415 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
36416 INTEGER_CSTs, try to fold at least x * 0 and y - y.
36418 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
36420 PR rtl-optimization/60452
36421 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
36422 <case REG>: Return 1 for invalid offsets from the frame pointer.
36424 2014-03-26 Marek Polacek <polacek@redhat.com>
36427 * doc/extend.texi (C Extensions): Mention variable-length arrays in
36430 2014-03-26 Marek Polacek <polacek@redhat.com>
36433 * doc/extend.texi (Designated Inits): Describe what happens to omitted
36436 2014-03-26 Marek Polacek <polacek@redhat.com>
36439 * ira-color.c (update_conflict_hard_regno_costs): Perform the
36440 multiplication in unsigned type.
36442 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
36444 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
36446 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
36448 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
36450 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
36453 * cif-code.def (UNREACHABLE) New code.
36454 * ipa-inline.c (inline_small_functions): Skip edges to
36455 __builtlin_unreachable.
36456 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
36457 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
36458 predicate to __bulitin_unreachable.
36459 (set_cond_stmt_execution_predicate): Fix issue when
36460 invert_tree_comparison returns ERROR_MARK.
36461 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
36462 propagate to inline clones.
36463 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
36465 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
36466 * cgraphclones.c (cgraph_clone_node): If call destination is already
36467 ureachable, do not redirect it back.
36468 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
36471 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
36473 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
36474 Do not modify inline clones.
36476 2014-03-25 Jakub Jelinek <jakub@redhat.com>
36478 * config/i386/i386.md (general_sext_operand): New mode attr.
36479 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
36480 don't generate (sign_extend (const_int)).
36481 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
36482 operands[2]. Use We constraint instead of <i> and
36483 <general_sext_operand> predicate instead of <general_operand>.
36484 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
36485 * config/i386/constraints.md (We): New constraint.
36486 * config/i386/predicates.md (x86_64_sext_operand,
36487 sext_operand): New predicates.
36489 2014-03-25 Martin Jambor <mjambor@suse.cz>
36492 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
36493 inconsistent devirtualizations to __builtin_unreachable.
36495 2014-03-25 Marek Polacek <polacek@redhat.com>
36498 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
36500 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
36502 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
36503 order of elements for big-endian.
36505 2014-03-25 Richard Biener <rguenther@suse.de>
36507 PR middle-end/60635
36508 * gimplify-me.c (gimple_regimplify_operands): Update the
36511 2014-03-25 Martin Jambor <mjambor@suse.cz>
36514 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
36515 (lto_output_varpool_node): Likewise.
36516 (input_overwrite_node): Likewise.
36517 (input_varpool_node): Likewise.
36519 2014-03-25 Richard Biener <rguenther@suse.de>
36521 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
36522 (run_gcc): Likewise.
36524 2014-03-25 Jakub Jelinek <jakub@redhat.com>
36526 * combine.c (simplify_compare_const): Add MODE argument.
36527 Handle mode_width 0 as very large mode_width.
36528 (try_combine, simplify_comparison): Adjust callers.
36530 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
36531 type to avoid signed integer overflow.
36532 * explow.c (plus_constant): Likewise.
36534 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
36536 * doc/generic.texi: Correct typos.
36538 2014-03-24 Tobias Burnus <burnus@net-b.de>
36540 * doc/invoke.texi (-flto): Expand section about
36541 using static libraries with LTO.
36543 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36545 PR rtl-optimization/60501
36546 * optabs.def (addptr3_optab): New optab.
36547 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
36548 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
36549 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
36551 * lra.c (emit_add3_insn): Use the addptr pattern if available.
36553 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
36555 2014-03-24 Ulrich Drepper <drepper@gmail.com>
36557 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
36560 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
36561 (_mm256_undefined_ps): Define.
36562 (_mm256_undefined_pd): Define.
36563 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
36564 (_mm_undefined_pd): Define.
36565 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
36566 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
36567 (_mm512_undefined_ps): Define.
36568 (_mm512_undefined_pd): Define.
36569 Use _mm*_undefined_*.
36570 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
36572 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
36574 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
36575 (lshr_simd): DI mode added.
36576 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
36577 (aarch64_ushr_simddi): Likewise.
36578 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
36579 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
36580 (vshrd_n_u64): Likewise.
36582 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36584 * Makefile.in (s-macro_list): Depend on cc1.
36586 2014-03-23 Teresa Johnson <tejohnson@google.com>
36588 * ipa-utils.c (ipa_print_order): Use specified dump file.
36590 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
36592 PR rtl-optimization/60601
36593 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
36595 * gcc.c (eval_spec_function): Initialize save_growing_value.
36597 2014-03-22 Jakub Jelinek <jakub@redhat.com>
36600 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
36601 code == MINUS_EXPR, never swap op0 with op1.
36603 * toplev.c (init_local_tick): Avoid signed integer multiplication
36605 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
36606 shift by first operand's bitsize.
36608 2014-03-21 Jakub Jelinek <jakub@redhat.com>
36611 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
36612 redefine to 1 or 0.
36613 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
36614 TARGET_ISA_64BIT_P(x).
36616 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36618 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
36619 pattern for vector nor instead of subtract from splat(-1).
36620 (altivec_expand_vec_perm_const_le): Likewise.
36622 2014-03-21 Richard Henderson <rth@twiddle.net>
36625 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
36626 related insns after epilogue_completed.
36628 2014-03-21 Martin Jambor <mjambor@suse.cz>
36631 * cgraph.h (symtab_node): New flag body_removed.
36632 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
36633 when removing bodies.
36634 * symtab.c (dump_symtab_base): Dump body_removed flag.
36635 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
36636 had their bodies removed.
36638 2014-03-21 Martin Jambor <mjambor@suse.cz>
36641 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
36644 2014-03-21 Richard Biener <rguenther@suse.de>
36646 PR tree-optimization/60577
36647 * tree-core.h (struct tree_base): Document nothrow_flag use
36648 in DECL_NONALIASED.
36649 * tree.h (DECL_NONALIASED): New.
36650 (may_be_aliased): Adjust.
36651 * coverage.c (build_var): Set DECL_NONALIASED.
36653 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
36655 * expr.c (expand_expr_real_1): Remove outdated comment.
36657 2014-03-20 Jakub Jelinek <jakub@redhat.com>
36659 PR middle-end/60597
36660 * ira.c (adjust_cleared_regs): Call copy_rtx on
36661 *reg_equiv[REGNO (loc)].src_p before passing it to
36662 simplify_replace_fn_rtx.
36665 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
36666 into CONST, put pic register as first operand of PLUS. Use
36667 gen_const_mem for both 32-bit and 64-bit PIC got loads.
36669 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36671 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
36673 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
36675 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
36676 around for store forwarding issue in the FPU on the UT699.
36677 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
36678 loads and operations if -mfix-ut699 is specified.
36679 (divtf3_hq): Tweak attribute.
36680 (sqrttf2_hq): Likewise.
36682 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
36684 * calls.c (store_one_arg): Remove incorrect const qualification on the
36685 type of the temporary.
36686 * cfgexpand.c (expand_return): Likewise.
36687 * expr.c (expand_constructor): Likewise.
36688 (expand_expr_real_1): Likewise.
36690 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36692 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
36695 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
36698 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
36700 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
36702 * config/arm/aarch-common-protos.h
36703 (alu_cost_table): Fix spelling of "extend".
36704 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
36706 2014-03-19 Richard Biener <rguenther@suse.de>
36708 PR middle-end/60553
36709 * tree-core.h (tree_type_common): Re-order pointer members
36710 to reduce recursion depth during GC walks.
36712 2014-03-19 Marek Polacek <polacek@redhat.com>
36715 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
36716 before accessing it.
36718 2014-03-19 Richard Biener <rguenther@suse.de>
36721 * lto-streamer-in.c (input_function): In WPA stage do not drop
36724 2014-03-19 Jakub Jelinek <jakub@redhat.com>
36726 PR tree-optimization/60559
36727 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
36728 with build_zero_cst assignment.
36730 2014-03-18 Kai Tietz <ktietz@redhat.com>
36732 PR rtl-optimization/56356
36733 * sdbout.c (sdbout_parms): Verify that parms'
36734 incoming argument is valid.
36735 (sdbout_reg_parms): Likewise.
36737 2014-03-18 Richard Henderson <rth@redhat.com>
36740 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
36741 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
36742 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
36744 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
36746 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
36747 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
36748 Italicize plugin event names in description. Explain that
36749 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
36750 Remind that no GCC functions should be called after PLUGIN_FINISH.
36751 Explain what pragmas with expansion are.
36753 2014-03-18 Martin Liska <mliska@suse.cz>
36755 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
36756 gimple call statement is update.
36757 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
36758 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
36760 2014-03-18 Jakub Jelinek <jakub@redhat.com>
36763 * ubsan.c (ubsan_instrument_unreachable): Call
36764 initialize_sanitizer_builtins.
36765 (ubsan_pass): Likewise.
36768 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
36769 varpool_finalize_decl instead of rest_of_decl_compilation.
36771 2014-03-18 Richard Biener <rguenther@suse.de>
36773 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
36774 by using bitmap_and_compl instead of bitmap_and_compl_into.
36775 (df_rd_transfer_function): Likewise.
36777 2014-03-18 Richard Biener <rguenther@suse.de>
36779 * doc/lto.texi (fresolution): Fix typo.
36781 2014-03-18 Richard Biener <rguenther@suse.de>
36783 * doc/invoke.texi (flto): Update for changes in 4.9.
36785 2014-03-18 Richard Biener <rguenther@suse.de>
36787 * doc/loop.texi: Remove section on the removed lambda framework.
36788 Update loop docs with recent changes in preserving loop structure.
36790 2014-03-18 Richard Biener <rguenther@suse.de>
36792 * doc/lto.texi (-fresolution): Document.
36794 2014-03-18 Richard Biener <rguenther@suse.de>
36796 * doc/contrib.texi: Adjust my name.
36798 2014-03-18 Jakub Jelinek <jakub@redhat.com>
36801 * internal-fn.c: Include diagnostic-core.h.
36802 (expand_BUILTIN_EXPECT): New function.
36803 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
36804 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
36805 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
36806 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
36807 IFN_BUILTIN_EXPECT.
36808 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
36809 Revert 3 argument __builtin_expect code.
36810 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
36811 * gimple-fold.c (gimple_fold_call): Likewise.
36812 * tree.h (fold_builtin_expect): New prototype.
36813 * builtins.c (build_builtin_expect_predicate): Add predictor
36814 argument, if non-NULL, create 3 argument __builtin_expect.
36815 (fold_builtin_expect): No longer static. Add ARG2 argument,
36816 pass it through to build_builtin_expect_predicate.
36817 (fold_builtin_2): Adjust caller.
36818 (fold_builtin_3): Handle BUILT_IN_EXPECT.
36819 * internal-fn.def (BUILTIN_EXPECT): New.
36821 2014-03-18 Tobias Burnus <burnus@net-b.de>
36824 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
36825 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
36826 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
36828 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
36831 * predict.c (combine_predictions_for_bb): Fix up formatting.
36832 (expr_expected_value_1, expr_expected_value): Add predictor argument,
36833 fill what it points to if non-NULL.
36834 (tree_predict_by_opcode): Adjust caller, use the predictor.
36835 * predict.def (PRED_COMPARE_AND_SWAP): Add.
36837 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
36839 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
36840 proper constant for the store mode.
36842 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
36844 * symtab.c (change_decl_assembler_name): Fix transparent alias
36845 chain construction.
36847 2014-03-16 Renlin Li <Renlin.Li@arm.com>
36849 * config/aarch64/aarch64.c: Correct the comments about the
36850 aarch64 stack layout.
36852 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
36854 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
36855 check for GF_OMP_FOR_KIND_FOR.
36857 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
36859 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
36860 ymm and zmm register names.
36862 2014-03-17 Jakub Jelinek <jakub@redhat.com>
36865 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
36866 note creation for the 2010-08-31 changes.
36868 2014-03-17 Marek Polacek <polacek@redhat.com>
36870 PR middle-end/60534
36871 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
36872 as -fno-tree-loop-vectorize.
36873 (expand_omp_simd): Likewise.
36875 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
36877 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
36878 (eligible_for_call_delay): New prototype.
36879 * config/sparc/sparc.c (tls_call_delay): Rename into...
36880 (eligible_for_call_delay): ...this. Return false if the instruction
36881 cannot be put in the delay slot of a branch.
36882 (eligible_for_restore_insn): Simplify.
36883 (eligible_for_return_delay): Return false if the instruction cannot be
36884 put in the delay slot of a branch and simplify.
36885 (eligible_for_sibcall_delay): Return false if the instruction cannot be
36886 put in the delay slot of a branch.
36887 * config/sparc/sparc.md (fix_ut699): New attribute.
36888 (tls_call_delay): Delete.
36889 (in_call_delay): Reimplement.
36890 (eligible_for_sibcall_delay): Rename into...
36891 (in_sibcall_delay): ...this.
36892 (eligible_for_return_delay): Rename into...
36893 (in_return_delay): ...this.
36894 (in_branch_delay): Reimplement.
36895 (in_uncond_branch_delay): Delete.
36896 (in_annul_branch_delay): Delete.
36898 2014-03-14 Richard Henderson <rth@redhat.com>
36901 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
36902 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
36903 (*floathi<X87MODEF>2_i387_with_temp): Remove.
36904 (floathi splitters): Remove.
36905 (float<SWI48x>xf2): New pattern.
36906 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
36907 code that tried to handle DImode for 32-bit, but which was excluded
36908 by the pattern's condition. Drop allocation of stack temporary.
36909 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
36910 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
36911 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
36912 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
36913 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
36914 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
36915 (*float<SWI48><MODEF>2_sse_interunit): Remove.
36916 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
36917 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
36918 (*float<SWI48x><X87MODEF>2_i387): Remove.
36919 (all float _with_temp splitters): Remove.
36920 (*float<SWI48x><MODEF>2_i387): New pattern.
36921 (*float<SWI48><MODEF>2_sse): New pattern.
36922 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
36923 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
36925 2014-03-14 Jakub Jelinek <jakub@redhat.com>
36926 Marek Polacek <polacek@redhat.com>
36928 PR middle-end/60484
36929 * common.opt (dump_base_name_prefixed): New Variable.
36930 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
36931 if x_dump_base_name_prefixed is already set, set it at the end.
36933 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
36935 PR rtl-optimization/60508
36936 * lra-constraints.c (get_reload_reg): Add new parameter
36938 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
36939 Pass the new parameter values.
36941 2014-03-14 Richard Biener <rguenther@suse.de>
36943 * common.opt: Revert unintented changes from r205065.
36944 * opts.c: Likewise.
36946 2014-03-14 Richard Biener <rguenther@suse.de>
36948 PR middle-end/60518
36949 * cfghooks.c (split_block): Properly adjust all loops the
36950 block was a latch of.
36952 2014-03-14 Martin Jambor <mjambor@suse.cz>
36955 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
36958 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
36961 * config/avr/avr.c (avr_set_current_function): Pass function name
36962 through default_strip_name_encoding before sanity checking instead
36963 of skipping the first char of the assembler name.
36965 2014-03-13 Richard Henderson <rth@redhat.com>
36968 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
36969 (ix86_force_to_memory, ix86_free_from_memory): Remove.
36970 * config/i386/i386-protos.h: Likewise.
36971 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
36972 in the expander instead of a splitter.
36973 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
36974 any possibility of requiring a memory.
36975 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
36976 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
36977 (fp branch splitters): Update for ix86_split_fp_branch.
36978 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
36979 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
36980 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
36981 (*fop_<MODEF>_2_i387): Remove f/r alternative.
36982 (*fop_<MODEF>_3_i387): Likewise.
36983 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
36984 (splitters for the fop_* register patterns): Remove.
36985 (fscalexf4_i387): Rename from *fscalexf4_i387.
36986 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
36988 2014-03-13 Jakub Jelinek <jakub@redhat.com>
36990 PR tree-optimization/59779
36991 * tree-dfa.c (get_ref_base_and_extent): Use double_int
36992 type for bitsize and maxsize instead of HOST_WIDE_INT.
36994 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
36996 PR rtl-optimization/57320
36997 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
36998 the CFG after thread_prologue_and_epilogue_insns.
37000 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
37002 PR rtl-optimization/57189
37003 * lra-constraints.c (process_alt_operands): Disfavor spilling
37006 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
37008 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
37010 2014-03-13 Jakub Jelinek <jakub@redhat.com>
37012 PR tree-optimization/59025
37013 PR middle-end/60418
37014 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
37015 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
37017 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
37020 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
37021 calls of avr_out_plus_1.
37023 2014-03-13 Bin Cheng <bin.cheng@arm.com>
37025 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
37026 BB's single pred and update the father loop's latch info later.
37028 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
37030 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
37034 (VEC_base): Likewise.
37035 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
37036 registers, we need to swap double words in little endian mode.
37038 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
37039 to be a container mode for 128-bit integer operations added in ISA
37040 2.07. Unlike TImode and PTImode, the preferred register set is
37041 the Altivec/VMX registers for the 128-bit operations.
37043 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
37045 (rs6000_split_128bit_ok_p): Likewise.
37047 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
37048 macros for creating ISA 2.07 normal and overloaded builtin
37049 functions with 3 arguments.
37050 (BU_P8V_OVERLOAD_3): Likewise.
37051 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
37052 for use as overloaded functions.
37053 (VPERM_1TI_UNS): Likewise.
37054 (VSEL_1TI): Likewise.
37055 (VSEL_1TI_UNS): Likewise.
37056 (ST_INTERNAL_1ti): Likewise.
37057 (LD_INTERNAL_1ti): Likewise.
37058 (XXSEL_1TI): Likewise.
37059 (XXSEL_1TI_UNS): Likewise.
37060 (VPERM_1TI): Likewise.
37061 (VPERM_1TI_UNS): Likewise.
37062 (XXPERMDI_1TI): Likewise.
37063 (SET_1TI): Likewise.
37064 (LXVD2X_V1TI): Likewise.
37065 (STXVD2X_V1TI): Likewise.
37066 (VEC_INIT_V1TI): Likewise.
37067 (VEC_SET_V1TI): Likewise.
37068 (VEC_EXT_V1TI): Likewise.
37069 (EQV_V1TI): Likewise.
37070 (NAND_V1TI): Likewise.
37071 (ORC_V1TI): Likewise.
37072 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
37073 added in ISA 2.07. Add both normal 'altivec' builtins, and the
37074 overloaded builtin.
37075 (VADDUQM): Likewise.
37076 (VSUBCUQ): Likewise.
37077 (VADDEUQM): Likewise.
37078 (VADDECUQ): Likewise.
37079 (VSUBEUQM): Likewise.
37080 (VSUBECUQ): Likewise.
37082 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
37083 __int128_t and __uint128_t types.
37084 (__uint128_type): Likewise.
37085 (altivec_categorize_keyword): Add support for vector __int128_t,
37086 vector __uint128_t, vector __int128, and vector unsigned __int128
37087 as a container type for TImode operations that need to be done in
37088 VSX/Altivec registers.
37089 (rs6000_macro_to_expand): Likewise.
37090 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
37091 to support 128-bit integer instructions vaddcuq, vadduqm,
37092 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
37093 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
37095 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
37096 for V1TImode, and set up preferences to use VSX/Altivec registers.
37097 Setup VSX reload handlers.
37098 (rs6000_debug_reg_global): Likewise.
37099 (rs6000_init_hard_regno_mode_ok): Likewise.
37100 (rs6000_preferred_simd_mode): Likewise.
37101 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
37102 (easy_altivec_constant): Likewise.
37103 (output_vec_const_move): Likewise.
37104 (rs6000_expand_vector_set): Convert V1TImode set and extract to
37106 (rs6000_expand_vector_extract): Likewise.
37107 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
37109 (rs6000_const_vec): Add support for V1TImode.
37110 (rs6000_emit_le_vsx_load): Swap double words when loading or
37111 storing TImode/V1TImode.
37112 (rs6000_emit_le_vsx_store): Likewise.
37113 (rs6000_emit_le_vsx_move): Likewise.
37114 (rs6000_emit_move): Add support for V1TImode.
37115 (altivec_expand_ld_builtin): Likewise.
37116 (altivec_expand_st_builtin): Likewise.
37117 (altivec_expand_vec_init_builtin): Likewise.
37118 (altivec_expand_builtin): Likewise.
37119 (rs6000_init_builtins): Add support for V1TImode type. Add
37120 support for ISA 2.07 128-bit integer builtins. Define type names
37121 for the VSX/Altivec vector types.
37122 (altivec_init_builtins): Add support for overloaded vector
37123 functions with V1TImode type.
37124 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
37125 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
37127 (rs6000_split_128bit_ok_p): Likewise.
37128 (rs6000_handle_altivec_attribute): Create V1TImode from vector
37129 __int128_t and vector __uint128_t.
37131 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
37132 and mode attributes.
37134 (VSX_M2): Likewise.
37139 (VS_scalar): Likewise.
37140 (VS_double): Likewise.
37141 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
37143 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
37144 we support the ISA 2.07 128-bit integer arithmetic instructions.
37145 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
37146 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
37147 and TImode types for use with the builtin functions.
37148 (V1TI_type_node): Likewise.
37149 (unsigned_V1TI_type_node): Likewise.
37150 (intTI_type_internal_node): Likewise.
37151 (uintTI_type_internal_node): Likewise.
37153 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
37154 128-bit builtin functions.
37155 (UNSPEC_VADDEUQM): Likewise.
37156 (UNSPEC_VADDECUQ): Likewise.
37157 (UNSPEC_VSUBCUQ): Likewise.
37158 (UNSPEC_VSUBEUQM): Likewise.
37159 (UNSPEC_VSUBECUQ): Likewise.
37160 (VM): Add V1TImode to vector mode iterators.
37162 (VI_unit): Likewise.
37163 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
37164 (altivec_vaddcuq): Likewise.
37165 (altivec_vsubuqm): Likewise.
37166 (altivec_vsubcuq): Likewise.
37167 (altivec_vaddeuqm): Likewise.
37168 (altivec_vaddecuq): Likewise.
37169 (altivec_vsubeuqm): Likewise.
37170 (altivec_vsubecuq): Likewise.
37172 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
37174 (BOOL_128): Likewise.
37175 (BOOL_REGS_OUTPUT): Likewise.
37176 (BOOL_REGS_OP1): Likewise.
37177 (BOOL_REGS_OP2): Likewise.
37178 (BOOL_REGS_UNARY): Likewise.
37179 (BOOL_REGS_AND_CR0): Likewise.
37181 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
37182 128-bit integer builtin support.
37183 (vec_vadduqm): Likewise.
37184 (vec_vaddecuq): Likewise.
37185 (vec_vaddeuqm): Likewise.
37186 (vec_vsubecuq): Likewise.
37187 (vec_vsubeuqm): Likewise.
37188 (vec_vsubcuq): Likewise.
37189 (vec_vsubuqm): Likewise.
37191 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
37192 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
37193 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
37194 128-bit integer add/subtract to ISA 2.07.
37196 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
37198 * config/arc/arc.c (arc_predicate_delay_insns):
37199 Fix third argument passed to conditionalize_nonjump.
37201 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
37203 * config/aarch64/aarch64-builtins.c
37204 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
37205 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
37206 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
37207 instead of __builtin_lfloor.
37208 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
37210 2014-03-12 Jakub Jelinek <jakub@redhat.com>
37212 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
37213 (tree_ssa_ifcombine_bb_1): New function.
37214 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
37215 is an empty forwarder block to then_bb or vice versa and then_bb
37216 and else_bb are effectively swapped.
37218 2014-03-12 Christian Bruel <christian.bruel@st.com>
37221 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
37222 REG_CFA_DEF_CFA note.
37223 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
37224 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
37226 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
37228 PR tree-optimization/60454
37229 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
37231 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37233 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
37234 Do not define target_cpu_default2 to generic.
37235 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
37236 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
37237 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
37239 2014-03-12 Jakub Jelinek <jakub@redhat.com>
37240 Marc Glisse <marc.glisse@inria.fr>
37242 PR tree-optimization/60502
37243 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
37244 instead of build_low_bits_mask.
37246 2014-03-12 Jakub Jelinek <jakub@redhat.com>
37248 PR middle-end/60482
37249 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
37250 if there are multiple uses, but op doesn't live on E edge.
37251 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
37252 clobber stmts before __builtin_unreachable.
37254 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
37256 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
37257 hard_frame_pointer_rtx.
37258 * cse.c (cse_insn): Remove volatile check.
37259 * cselib.c (cselib_process_insn): Likewise.
37260 * dse.c (scan_insn): Likewise.
37262 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
37264 * config/arc/arc.c (conditionalize_nonjump): New function,
37266 (arc_ifcvt): ... this.
37267 (arc_predicate_delay_insns): Use it.
37269 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
37271 * config/arc/predicates.md (extend_operand): During/after reload,
37272 allow const_int_operand.
37273 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
37274 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
37275 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
37277 (umulsi3_highpart_i): Likewise.
37279 2014-03-11 Richard Biener <rguenther@suse.de>
37281 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
37282 Add asserts to guard possible wrong-code bugs.
37284 2014-03-11 Richard Biener <rguenther@suse.de>
37286 PR tree-optimization/60429
37287 PR tree-optimization/60485
37288 * tree-ssa-structalias.c (set_union_with_increment): Properly
37289 take into account all fields that overlap the shifted vars.
37290 (do_sd_constraint): Likewise.
37291 (do_ds_constraint): Likewise.
37292 (get_constraint_for_ptr_offset): Likewise.
37294 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
37296 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
37297 (nios2_compute_frame_layout):
37298 Add calculation of cfun->machine->fp_save_offset.
37299 (nios2_expand_prologue): Correct setting of frame pointer register
37301 (nios2_expand_epilogue): Update recovery of stack pointer from
37302 frame pointer accordingly.
37303 (nios2_initial_elimination_offset): Update calculation of offset
37304 for eliminating to HARD_FRAME_POINTER_REGNUM.
37306 2014-03-10 Jakub Jelinek <jakub@redhat.com>
37309 * ipa.c (symtab_remove_unreachable_nodes): Don't call
37310 cgraph_get_create_node on VAR_DECLs.
37312 2014-03-10 Richard Biener <rguenther@suse.de>
37314 PR middle-end/60474
37315 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
37317 2014-03-08 Douglas B Rupp <rupp@gnat.com>
37319 * config/vms/vms.opt (vms_float_format): New variable.
37321 2014-03-08 Tobias Burnus <burnus@net-b.de>
37323 * doc/invoke.texi (-fcilkplus): Update implementation status.
37325 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
37326 Richard Biener <rguenther@suse.de>
37328 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
37329 consistently accross all TUs.
37330 (run_gcc): Enable -fshort-double automatically at link at link-time
37331 and disallow override.
37333 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
37336 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
37337 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
37338 if they can't be used.
37340 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37342 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
37343 for Solaris 11/x86 ld.
37344 * configure: Regenerate.
37346 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37348 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
37349 (LIB_TLS_SPEC): Save as ld_tls_libs.
37350 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
37351 (HAVE_AS_IX86_TLSLDM): New test.
37352 * configure, config.in: Regenerate.
37353 * config/i386/i386.c (legitimize_tls_address): Fall back to
37354 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
37355 cannot support TLS_MODEL_LOCAL_DYNAMIC.
37356 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
37357 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
37359 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
37361 * common.opt (fira-loop-pressure): Mark as optimization.
37363 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
37365 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
37366 an OpenMP mappable type.
37368 2014-03-06 Matthias Klose <doko@ubuntu.com>
37370 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
37371 MULTILIB_OSDIRNAMES is not defined.
37373 2014-03-06 Jakub Jelinek <jakub@redhat.com>
37374 Meador Inge <meadori@codesourcery.com>
37377 * config/arm/arm.c (arm_tls_symbol_p): Remove.
37378 (arm_legitimize_address): Call legitimize_tls_address for any
37379 arm_tls_referenced_p expression, handle constant addend. Call it
37380 before testing for !TARGET_ARM.
37381 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
37383 2014-03-06 Richard Biener <rguenther@suse.de>
37385 PR middle-end/60445
37389 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
37391 * tree-streamer.c (record_common_node): Assert we don't record
37392 nodes with type double.
37393 (preload_common_node): Skip type double, complex double and double
37394 pointer since it is now frontend dependent due to fshort-double option.
37396 2014-03-06 Richard Biener <rguenther@suse.de>
37398 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
37399 or -fno-lto is specified and the linker has full plugin support.
37400 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
37401 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
37402 * lto-wrapper.c (merge_and_complain): Merge compile-time
37403 optimization levels.
37404 (run_gcc): And pass it through to the link options.
37406 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
37410 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37412 * cselib.c (remove_useless_values): Skip to avoid quadratic
37413 behavior if the condition moved from...
37414 (cselib_process_insn): ... here holds.
37416 2014-03-05 Jakub Jelinek <jakub@redhat.com>
37419 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
37420 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
37423 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
37424 (TM_H): Add x86-tune.def.
37426 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37428 * config/aarch64/aarch64.c (generic_tunings):
37429 Use cortexa57_extra_costs.
37431 2014-03-05 Jakub Jelinek <jakub@redhat.com>
37434 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
37435 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
37436 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
37439 2014-03-04 Heiher <r@hev.cc>
37441 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
37442 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
37444 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
37446 * config/i386/predicates.md (const2356_operand): Change to ...
37447 (const2367_operand): ... this.
37448 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
37450 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
37451 (*avx512pf_scatterpf<mode>sf): Ditto.
37452 (avx512pf_scatterpf<mode>df): Ditto.
37453 (*avx512pf_scatterpf<mode>df_mask): Ditto.
37454 (*avx512pf_scatterpf<mode>df): Ditto.
37455 * config/i386/i386.c (ix86_expand_builtin): Update
37456 incorrect hint operand error message.
37458 2014-03-04 Richard Biener <rguenther@suse.de>
37460 * lto-section-in.c (lto_get_section_data): Fix const cast.
37462 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
37464 * tree-streamer.c (record_common_node): Assert we don't record
37465 nodes with type double.
37466 (preload_common_node): Skip type double, complex double and double
37467 pointer since it is now frontend dependent due to fshort-double option.
37469 2014-03-04 Richard Biener <rguenther@suse.de>
37472 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
37473 (lto_input_toplevel_asms): Likewise.
37474 * lto-section-in.c (lto_get_section_data): Instead do it here
37477 2014-03-04 Richard Biener <rguenther@suse.de>
37479 PR tree-optimization/60382
37480 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
37481 dead PHIs a reduction.
37483 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
37485 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
37487 (_mm_prefetch): Move out of GCC target("sse") pragma.
37488 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
37489 GCC target("prfchw") pragma.
37490 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
37492 * config/i386/i386.c (ix86_option_override_internal): Enable
37493 -mprfchw with -mprefetchwt1.
37495 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
37497 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
37500 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
37502 * opts.h (CL_PCH_IGNORE): Define.
37503 * targhooks.c (option_affects_pch_p):
37504 Return false for options that have CL_PCH_IGNORE set.
37505 * opt-functions.awk: Process PchIgnore.
37506 * doc/options.texi: Document PchIgnore.
37508 * config/arc/arc.opt (misize): Add PchIgnore property.
37510 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37512 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
37513 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
37514 constraint on constants to permit them being loaded into
37515 GENERAL_REGS or BASE_REGS.
37517 2014-03-03 Nick Clifton <nickc@redhat.com>
37519 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
37520 anti-cacnonical alternatives.
37521 (negandhi3_real): New pattern.
37522 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
37524 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
37526 * config/avr/avr-mcus.def: Remove atxmega16x1.
37527 * config/avr/avr-tables.opt: Regenerate.
37528 * config/avr/t-multilib: Regenerate.
37529 * doc/avr-mmcu.texi: Regenerate.
37531 2014-03-03 Tobias Grosser <tobias@grosser.es>
37532 Mircea Namolaru <mircea.namolaru@inria.fr>
37534 PR tree-optimization/58028
37535 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
37538 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37540 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
37541 not handled by recognizers.
37543 2014-03-03 Jakub Jelinek <jakub@redhat.com>
37545 PR middle-end/60175
37546 * function.c (expand_function_end): Don't emit
37547 clobber_return_register sequence if clobber_after is a BARRIER.
37548 * cfgexpand.c (construct_exit_block): Append instructions before
37549 return_label to prev_bb.
37551 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37553 * config/rs6000/constraints.md: Document reserved use of "wc".
37555 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
37558 * ipa.c (function_and_variable_visibility): When dissolving comdat
37559 group, also set all symbols to local.
37561 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
37566 2013-12-14 Jan Hubicka <jh@suse.cz>
37567 PR middle-end/58477
37568 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
37570 2014-03-02 Jon Beniston <jon@beniston.com>
37576 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
37577 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
37578 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
37579 (simple_return, *simple_return): New patterns
37580 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
37581 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
37583 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
37585 * dwarf2out.c (gen_subprogram_die): Tidy.
37587 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
37590 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
37591 (*mov_t_msb_neg_negc): ... this new insn.
37593 2014-02-28 Jason Merrill <jason@redhat.com>
37596 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
37599 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
37602 * dwarf2out.c (decltype_auto_die): New static.
37603 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
37604 (gen_type_die_with_usage): Handle 'decltype(auto)'.
37605 (is_cxx_auto): Likewise.
37607 2014-02-28 Ian Bolton <ian.bolton@arm.com>
37609 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
37610 we are not using general regs only.
37612 2014-02-28 Richard Biener <rguenther@suse.de>
37615 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
37616 previous fix and only allow to remove trivial pre-headers
37617 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
37618 (remove_forwarder_block): Properly update the latch of a loop.
37620 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37623 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
37624 (cselib_preserved_hash_table): New.
37625 (preserve_constants_and_equivs): Move preserved vals to it.
37626 (cselib_find_slot): Look it up first.
37627 (cselib_init): Initialize it.
37628 (cselib_finish): Release it.
37629 (dump_cselib_table): Dump it.
37631 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37634 * cselib.c (remove_useless_values): Skip to avoid quadratic
37635 behavior if the condition moved from...
37636 (cselib_process_insn): ... here holds.
37638 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37641 * var-tracking.c (vt_initialize): Apply the same condition to
37642 preserve the CFA base value.
37644 2014-02-28 Joey Ye <joey.ye@arm.com>
37647 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
37648 if reload in progress or completed.
37650 2014-02-28 Tobias Burnus <burnus@net-b.de>
37652 PR middle-end/60147
37653 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
37656 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
37658 * doc/tm.texi.in (Condition Code Status): Update documention for
37659 relative locations of cc0-setter and cc0-user.
37661 2014-02-27 Jeff Law <law@redhat.com>
37663 PR rtl-optimization/52714
37664 * combine.c (try_combine): When splitting an unrecognized PARALLEL
37665 into two independent simple sets, if I3 is a jump, ensure the
37666 pattern we place into I3 is a (set (pc) ...).
37668 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
37669 Jeff Law <law@redhat.com>
37671 PR rtl-optimization/49847
37672 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
37673 are in different blocks.
37674 * doc/tm.texi (Condition Code Status): Update documention for
37675 relative locations of cc0-setter and cc0-user.
37677 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
37680 * lra.c (lra_emit_add): Check SUBREG too.
37682 2014-02-27 Andreas Schwab <schwab@suse.de>
37684 * config/m68k/m68k.c (m68k_option_override): Disable
37685 -flive-range-shrinkage for classic m68k.
37686 (m68k_override_options_after_change): Likewise.
37688 2014-02-27 Marek Polacek <polacek@redhat.com>
37690 PR middle-end/59223
37691 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
37692 -Wmaybe-uninitialized.
37694 2014-02-27 Alan Modra <amodra@gmail.com>
37697 * reload1.c (emit_input_reload_insns): When reload_override_in,
37698 set old to rl->in_reg when rl->in_reg is a subreg.
37700 2014-02-26 Richard Biener <rguenther@suse.de>
37703 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
37705 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
37707 * common/config/i386/predicates.md (const1256_operand): Remove.
37708 (const2356_operand): New.
37709 (const_1_to_2_operand): Remove.
37710 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
37711 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
37712 (*avx512pf_gatherpf<mode>sf): Ditto.
37713 (avx512pf_gatherpf<mode>df): Ditto.
37714 (*avx512pf_gatherpf<mode>df_mask): Ditto.
37715 (*avx512pf_gatherpf<mode>df): Ditto.
37716 (avx512pf_scatterpf<mode>sf): Ditto.
37717 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
37718 (*avx512pf_scatterpf<mode>sf): Ditto.
37719 (avx512pf_scatterpf<mode>df): Ditto.
37720 (*avx512pf_scatterpf<mode>df_mask): Ditto.
37721 (*avx512pf_scatterpf<mode>df): Ditto.
37722 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
37724 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
37726 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
37727 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
37728 (_mm512_mask_testn_epi64_mask): Move to ...
37729 * config/i386/avx512cdintrin.h: Here.
37730 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
37731 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
37732 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
37733 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
37734 TARGET_AVX512F from TARGET_AVX512CD.
37736 2014-02-26 Richard Biener <rguenther@suse.de>
37739 * ipa.c (walk_polymorphic_call_targets): Properly guard
37740 call to inline_update_overall_summary.
37742 2014-02-26 Bin Cheng <bin.cheng@arm.com>
37745 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
37746 and latches only if requested. Fix latch if it is removed.
37747 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
37748 LOOPS_HAVE_PREHEADERS.
37750 2014-02-25 Andrew Pinski <apinski@cavium.com>
37752 * builtins.c (expand_builtin_thread_pointer): Create a new target
37753 when the target is NULL.
37755 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
37757 PR rtl-optimization/60317
37758 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
37759 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
37760 * lra-assigns.c: Include params.h.
37761 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
37762 other reload pseudos considerations.
37764 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37766 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
37767 to use canonical form for nor<mode>3.
37769 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37772 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
37775 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
37777 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
37778 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
37779 (ix86_handle_option): Handle OPT_mprefetchwt1.
37780 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
37781 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
37783 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
37784 OPTION_MASK_ISA_PREFETCHWT1.
37785 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
37786 (PTA_PREFETCHWT1): New.
37787 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
37788 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
37789 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
37790 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
37791 (*prefetch_avx512pf_<mode>_: Change into ...
37792 (*prefetch_prefetchwt1_<mode>: This.
37793 * config/i386/i386.opt (mprefetchwt1): New.
37794 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
37795 (_mm_prefetch): Handle intent to write.
37796 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
37798 2014-02-25 Richard Biener <rguenther@suse.de>
37800 PR middle-end/60291
37801 * emit-rtl.c (mem_attrs_htab): Remove.
37802 (mem_attrs_htab_hash): Likewise.
37803 (mem_attrs_htab_eq): Likewise.
37804 (set_mem_attrs): Always allocate new mem-attrs when something changed.
37805 (init_emit_once): Do not allocate mem_attrs_htab.
37807 2014-02-25 Richard Biener <rguenther@suse.de>
37810 * lto-opts.c (lto_write_options): Output non-explicit conservative
37811 -fwrapv, -fno-trapv and -fno-strict-overflow.
37812 * lto-wrapper.c (merge_and_complain): Handle merging those options.
37813 (run_gcc): And pass them through.
37815 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
37817 * sel-sched.c (calculate_new_fences): New parameter ptime.
37818 Calculate it as a maximum over all fence cycles.
37819 (sel_sched_region_2): Adjust the call to calculate_new_fences.
37820 Print the final schedule timing when sched_verbose.
37822 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
37824 PR rtl-optimization/60292
37825 * sel-sched.c (fill_vec_av_set): Do not reset target availability
37826 bit fot the fence instruction.
37828 2014-02-24 Alangi Derick <alangiderick@gmail.com>
37830 * calls.h: Fix typo in comment.
37832 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
37834 * config/pa/pa.c (pa_output_move_double): Don't valididate when
37835 adjusting offsetable addresses.
37837 2014-02-24 Guozhi Wei <carrot@google.com>
37839 * sparseset.h (sparseset_pop): Fix the wrong index.
37841 2014-02-24 Walter Lee <walt@tilera.com>
37843 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
37844 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
37846 * common/config/tilegx/tilegx-common.c
37847 (TARGET_DEFAULT_TARGET_FLAGS): Define.
37848 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
37849 (LINK_SPEC): Ditto.
37850 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
37851 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
37852 (tilegx_gimplify_va_arg_expr): Handle big endian.
37853 (tilegx_expand_unaligned_load): Ditto.
37854 (tilegx_expand_unaligned_store): Ditto.
37855 (TARGET_RETURN_IN_MSB): New.
37856 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
37857 (TARGET_ENDIAN_DEFAULT): New.
37858 (TARGET_BIG_ENDIAN): Handle big endian.
37859 (BYTES_BIG_ENDIAN): Ditto.
37860 (WORDS_BIG_ENDIAN): Ditto.
37861 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
37862 (ENDIAN_SPEC): New.
37863 (EXTRA_SPECS): New.
37864 * config/tilegx/tilegx.md (extv): Handle big endian.
37866 (insn_st<n>): Ditto.
37867 (insn_st<n>_add<bitsuffix>): Ditto.
37868 (insn_stnt<n>): Ditto.
37869 (insn_stnt<n>_add<bitsuffix>):Ditto.
37870 (vec_interleave_highv8qi): Handle big endian.
37871 (vec_interleave_highv8qi_be): New.
37872 (vec_interleave_highv8qi_le): New.
37873 (insn_v1int_h): Handle big endian.
37874 (vec_interleave_lowv8qi): Handle big endian.
37875 (vec_interleave_lowv8qi_be): New.
37876 (vec_interleave_lowv8qi_le): New.
37877 (insn_v1int_l): Handle big endian.
37878 (vec_interleave_highv4hi): Handle big endian.
37879 (vec_interleave_highv4hi_be): New.
37880 (vec_interleave_highv4hi_le): New.
37881 (insn_v2int_h): Handle big endian.
37882 (vec_interleave_lowv4hi): Handle big endian.
37883 (vec_interleave_lowv4hi_be): New.
37884 (vec_interleave_lowv4hi_le): New.
37885 (insn_v2int_l): Handle big endian.
37886 (vec_interleave_highv2si): Handle big endian.
37887 (vec_interleave_highv2si_be): New.
37888 (vec_interleave_highv2si_le): New.
37889 (insn_v4int_h): Handle big endian.
37890 (vec_interleave_lowv2si): Handle big endian.
37891 (vec_interleave_lowv2si_be): New.
37892 (vec_interleave_lowv2si_le): New.
37893 (insn_v4int_l): Handle big endian.
37894 * config/tilegx/tilegx.opt (mbig-endian): New option.
37895 (mlittle-endian): New option.
37896 * doc/install.texi: Document tilegxbe-linux.
37897 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
37899 2014-02-24 Martin Jambor <mjambor@suse.cz>
37902 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
37903 there are no parameter descriptors.
37905 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
37907 PR rtl-optimization/60268
37908 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
37909 initialization to ...
37910 (sched_rgn_init): ... here.
37911 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
37913 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
37915 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
37918 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
37920 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
37923 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
37925 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
37926 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
37928 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
37930 * config/microblaze/predicates.md: Add cmp_op predicate.
37931 * config/microblaze/microblaze.md: Add branch_compare instruction
37932 which uses cmp_op predicate and emits cmp insn before branch.
37933 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
37934 to microblaze_expand_conditional_branch and consolidate logic.
37935 (microblaze_expand_conditional_branch): emit branch_compare
37936 insn instead of handling cmp op separate from branch insn.
37938 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37940 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
37943 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37945 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
37946 define_insn with define_expand and new define_insn
37947 *altivec_lve<VI_char>x_internal.
37948 (altivec_stve<VI_char>x): Replace define_insn with define_expand
37949 and new define_insn *altivec_stve<VI_char>x_internal.
37950 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
37952 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
37954 (altivec_expand_stvex_be): New function.
37956 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
37958 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
37959 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
37960 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
37961 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
37963 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
37966 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
37967 instead of emit_move_insn.
37969 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37971 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
37972 vspltw with vsldoi.
37973 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
37974 gen_altivec_vsumsws.
37976 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37978 * config/rs6000/altivec.md (altivec_lvxl): Rename as
37979 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
37980 (altivec_lvxl_<mode>): New define_expand incorporating
37981 -maltivec=be semantics where needed.
37982 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
37983 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
37984 semantics where needed.
37985 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
37986 (altivec_stvx_<mode>): New define_expand incorporating
37987 -maltivec=be semantics where needed.
37988 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
37989 VM2 iterator instead of V4SI.
37990 (altivec_stvxl_<mode>): New define_expand incorporating
37991 -maltivec=be semantics where needed.
37992 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
37993 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
37994 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
37995 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
37996 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
37997 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
37998 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
37999 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
38000 ALTIVEC_BUILTIN_STVXL.
38001 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
38002 (altivec_expand_stvx_be): Likewise.
38003 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
38004 (altivec_expand_lvx_be): Likewise.
38005 (altivec_expand_stvx_be): Likewise.
38006 (altivec_expand_builtin): Add cases for
38007 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
38008 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
38009 (altivec_init_builtins): Add definitions for
38010 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
38011 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
38013 2014-02-21 Catherine Moore <clm@codesourcery.com>
38015 * doc/invoke.texi (mvirt, mno-virt): Document.
38016 * config/mips/mips.opt (mvirt): New option.
38017 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
38019 2014-02-21 Richard Biener <rguenther@suse.de>
38021 PR tree-optimization/60276
38022 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
38023 (STMT_VINFO_MIN_NEG_DIST): New macro.
38024 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
38025 STMT_VINFO_MIN_NEG_DIST.
38026 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
38027 made for negative dependence distances still hold.
38029 2014-02-21 Richard Biener <rguenther@suse.de>
38031 PR middle-end/60291
38032 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
38033 DECL_INITIAL for globals not in the current function context.
38035 2014-02-21 Jakub Jelinek <jakub@redhat.com>
38037 PR tree-optimization/56490
38038 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
38039 * tree-ssa-uninit.c: Include params.h.
38040 (compute_control_dep_chain): Add num_calls argument, return false
38041 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
38042 num_calls to recursive call.
38043 (find_predicates): Change dep_chain into normal array,
38044 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
38045 variable and adjust compute_control_dep_chain caller.
38046 (find_def_preds): Likewise.
38048 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
38050 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
38051 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
38053 2014-02-21 Nick Clifton <nickc@redhat.com>
38055 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
38056 (pushhi1): Likewise.
38057 (popqi1): Add mode to pre_dec.
38058 (pophi1): Likewise.
38060 2014-02-21 Jakub Jelinek <jakub@redhat.com>
38062 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
38063 mode for mask of V8SFmode permutation.
38065 2014-02-20 Richard Henderson <rth@redhat.com>
38068 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
38069 a new pseudo for OLDVAL.
38071 2014-02-20 Jakub Jelinek <jakub@redhat.com>
38074 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
38075 gen_reg_rtx if d->testing_p.
38076 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
38077 if d->testing_p and we will certainly return true.
38078 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
38081 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
38083 * emit-rtl.c (gen_reg_rtx): Assert that
38084 crtl->emit.regno_pointer_align_length is non-zero.
38086 2014-02-20 Richard Henderson <rth@redhat.com>
38089 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
38090 on failure the store back into EXPECT.
38092 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
38093 Sandra Loosemore <sandra@codesourcery.com>
38095 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
38096 * config/nios2/nios2.c (nios2_function_profiler): Add
38097 -fPIC (flag_pic == 2) support.
38098 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
38099 (nios2_large_offset_p): New function.
38100 (nios2_unspec_reloc_p): Move up position, update to use
38101 nios2_large_offset_p.
38102 (nios2_unspec_address): Remove function.
38103 (nios2_unspec_offset): New function.
38104 (nios2_large_got_address): New function.
38105 (nios2_got_address): Add large offset support.
38106 (nios2_legitimize_tls_address): Update usage of removed and new
38108 (nios2_symbol_binds_local_p): New function.
38109 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
38110 (nios2_legitimize_address): Update to use nios2_large_offset_p.
38111 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
38112 (nios2_print_operand): Merge H/L processing, add hiadj/lo
38113 processing for (const (unspec ...)).
38114 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
38116 2014-02-20 Richard Biener <rguenther@suse.de>
38118 * tree-cfg.c (replace_uses_by): Mark altered BBs before
38119 doing the substitution.
38120 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
38122 2014-02-20 Martin Jambor <mjambor@suse.cz>
38125 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
38126 info when checking whether lattices are bottom.
38128 2014-02-20 Richard Biener <rguenther@suse.de>
38130 PR middle-end/60221
38131 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
38134 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
38137 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
38138 parameter specifying the scaling.
38139 (inline_call): Update.
38140 (want_inline_recursively): Guard division by zero.
38141 (recursive_inlining): Update.
38142 * ipa-inline.h (clone_inlined_nodes): Update.
38144 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
38147 * config/i386/i386.c (classify_argument): Pass structures of size
38148 64 bytes or less in register.
38150 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
38151 Kirill Yukhin <kirill.yukhin@intel.com>
38153 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
38154 (_mm_rcp28_round_ss): Ditto.
38155 (_mm_rsqrt28_round_sd): Ditto.
38156 (_mm_rsqrt28_round_ss): Ditto.
38157 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
38158 (_mm_rcp14_round_ss): Ditto.
38159 (_mm_rsqrt14_round_sd): Ditto.
38160 (_mm_rsqrt14_round_ss): Ditto.
38161 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
38162 the first input operand, get rid of match_dup.
38163 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
38165 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
38167 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
38168 operand as the first input operand, set type attribute.
38169 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
38170 Set type attribute.
38171 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
38172 operand as the first input operand, set type attribute.
38174 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38176 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
38179 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
38182 * config/i386/i386.c (construct_container): Remove TFmode check
38183 for X86_64_INTEGER_CLASS.
38185 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
38188 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
38189 only when -Wpsabi is enabled.
38191 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
38194 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
38195 passing arrays in registers are the same as for structs, so remove the
38196 special case for them.
38198 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
38200 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
38201 destination type, extract only the valid bits if the source type is not
38202 integral and has a different mode.
38204 2014-02-19 Richard Biener <rguenther@suse.de>
38207 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
38210 2014-02-19 Richard Biener <rguenther@suse.de>
38213 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
38214 (ipa_modify_call_arguments): Emit an argument load explicitely and
38215 preserve virtual SSA form there and for the replacement call.
38216 Do not update SSA form nor free dominance info.
38218 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
38220 * ipa.c (function_and_variable_visibility): Also clear WEAK
38221 flag when disolving COMDAT_GROUP.
38223 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
38225 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
38226 * ipa-prop.c (ipa_set_jf_known_type): Return early when
38227 not devirtualizing.
38228 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
38229 do more sanity checks.
38230 (detect_type_change): Return true when giving up early.
38231 (compute_complex_assign_jump_func): Fix type parameter of
38232 ipa_set_ancestor_jf.
38233 (compute_complex_ancestor_jump_func): Likewise.
38234 (update_jump_functions_after_inlining): Fix updating of
38236 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
38238 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
38240 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
38241 inline clones when edge disappears.
38243 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
38246 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
38247 Split 64-bit moves into 2 patterns. Do not allow the use of
38248 direct move for TDmode in little endian, since the decimal value
38249 has little endian bytes within a word, but the 64-bit pieces are
38250 ordered in a big endian fashion, and normal subreg's of TDmode are
38252 (mov<mode>_64bit_dm): Likewise.
38253 (movtd_64bit_nodm): Likewise.
38255 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
38257 PR tree-optimization/60174
38258 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
38259 statement of an SSA_NAME that occurs in an abnormal PHI node.
38261 2014-02-18 Jakub Jelinek <jakub@redhat.com>
38264 * final.c (SEEN_BB): Remove.
38265 (SEEN_NOTE, SEEN_EMITTED): Renumber.
38266 (final_scan_insn): Don't force_source_line on second
38267 NOTE_INSN_BASIC_BLOCK.
38269 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
38272 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
38273 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
38274 (type_natural_mode): Warn ABI change when %zmm register is not
38275 available for AVX512F vector value passing.
38277 2014-02-18 Kai Tietz <ktietz@redhat.com>
38280 * config/i386/i386.c (ix86_expand_prologue): Use value in
38281 rax register as displacement when restoring %r10 or %rax.
38282 Fix wrong offset when restoring both registers.
38284 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
38286 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
38287 assertion with conditional return.
38289 2014-02-18 Jakub Jelinek <jakub@redhat.com>
38290 Uros Bizjak <ubizjak@gmail.com>
38293 * config/i386/driver-i386.c (host_detect_local_cpu): If
38294 YMM state is not saved by the OS, also clear has_f16c. Move
38295 CPUID 0x80000001 handling before YMM state saving checking.
38297 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
38299 PR rtl-optimization/58960
38300 * haifa-sched.c (alloc_global_sched_pressure_data): New,
38301 factored out from ...
38302 (sched_init): ... here.
38303 (free_global_sched_pressure_data): New, factored out from ...
38304 (sched_finish): ... here.
38305 * sched-int.h (free_global_sched_pressure_data): Declare.
38306 * sched-rgn.c (nr_regions_initial): New static global.
38307 (haifa_find_rgns): Initialize it.
38308 (schedule_region): Disable sched-pressure for the newly
38311 2014-02-17 Richard Biener <rguenther@suse.de>
38313 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
38314 release SSA defs of pattern stmts.
38316 2014-02-17 Richard Biener <rguenther@suse.de>
38318 * tree-inline.c (expand_call_inline): Release the virtual
38319 operand defined by the call we are about to inline.
38321 2014-02-17 Richard Biener <rguenther@suse.de>
38323 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
38325 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
38326 Ilya Tocar <ilya.tocar@intel.com>
38328 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
38329 arguments order in builtin.
38330 (_mm512_permutexvar_epi64): Ditto.
38331 (_mm512_mask_permutexvar_epi64): Ditto
38332 (_mm512_maskz_permutexvar_epi32): Ditto
38333 (_mm512_permutexvar_epi32): Ditto
38334 (_mm512_mask_permutexvar_epi32): Ditto
38336 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38338 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
38339 (p8_vmrgow): Likewise.
38341 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38343 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
38346 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
38349 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
38350 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
38351 into 64-bit and 32-bit moves. On 64-bit moves, add support for
38352 using direct move instructions on ISA 2.07. Also adjust
38353 instruction length for 64-bit.
38354 (mov<mode>_64bit, TFmode/TDmode): Likewise.
38355 (mov<mode>_32bit, TFmode/TDmode): Likewise.
38357 2014-02-15 Alan Modra <amodra@gmail.com>
38361 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
38362 find_replacement on parts of insn rtl that might be reloaded.
38364 2014-02-15 Richard Biener <rguenther@suse.de>
38366 PR tree-optimization/60183
38367 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
38368 (tree_ssa_phiprop): Calculate and free post-dominators.
38370 2014-02-14 Jeff Law <law@redhat.com>
38372 PR rtl-optimization/60131
38373 * ree.c (get_extended_src_reg): New function.
38374 (combine_reaching_defs): Use it rather than assuming location of REG.
38375 (find_and_remove_re): Verify first operand of extension is
38376 a REG before adding the insns to the copy list.
38378 2014-02-14 Roland McGrath <mcgrathr@google.com>
38380 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
38381 * configure: Regenerated.
38382 * config.in: Regenerated.
38383 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
38384 instead of ASM_SHORT.
38386 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
38387 Richard Earnshaw <rearnsha@arm.com>
38389 PR rtl-optimization/59535
38390 * lra-constraints.c (process_alt_operands): Encourage alternative
38391 when unassigned pseudo class is superset of the alternative class.
38392 (inherit_reload_reg): Don't inherit when optimizing for code size.
38393 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
38394 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
38395 modes not less than 4 for Thumb1.
38397 2014-02-14 Kyle McMartin <kyle@redhat.com>
38400 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
38402 2014-02-14 Richard Biener <rguenther@suse.de>
38404 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
38405 (get_frame_arg): Drop the assert with langhook types_compatible_p.
38406 Do not strip INDIRECT_REFs.
38408 2014-02-14 Richard Biener <rguenther@suse.de>
38411 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
38412 DECL_FUNCTION_SPECIFIC_TARGET.
38413 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
38414 * tree-streamer-out.c (pack_ts_target_option): Remove.
38415 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
38416 (write_ts_function_decl_tree_pointers): Do not stream
38417 DECL_FUNCTION_SPECIFIC_TARGET.
38418 * tree-streamer-in.c (unpack_ts_target_option): Remove.
38419 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
38420 (lto_input_ts_function_decl_tree_pointers): Do not stream
38421 DECL_FUNCTION_SPECIFIC_TARGET.
38423 2014-02-14 Jakub Jelinek <jakub@redhat.com>
38425 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
38426 (get_initial_def_for_induction, vectorizable_induction): Ignore
38427 debug stmts when looking for exit_phi.
38428 (vectorizable_live_operation): Fix up condition.
38430 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
38432 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
38433 nreverse() because it changes the content of original tree list.
38435 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
38437 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
38438 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
38440 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
38442 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
38443 GNU coding standards.
38445 2014-02-13 Jakub Jelinek <jakub@redhat.com>
38448 * dwarf2out.c (gen_subprogram_die): Don't call
38449 add_calling_convention_attribute if subr_die is old_die.
38451 2014-02-13 Sharad Singhai <singhai@google.com>
38453 * doc/optinfo.texi: Fix order of nodes.
38455 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
38457 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
38458 operands[2], not operands[3].
38460 2014-02-13 Richard Biener <rguenther@suse.de>
38463 * doc/install.texi (ISL): Update recommended version to 0.12.2,
38464 mention the possibility of an in-tree build.
38465 (CLooG): Update recommended version to 0.18.1, mention the
38466 possibility of an in-tree build and clarify that the ISL
38467 bundled with CLooG does not work.
38469 2014-02-13 Jakub Jelinek <jakub@redhat.com>
38472 * expr.c (compress_float_constant): If x is a hard register,
38473 extend into a pseudo and then move to x.
38475 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
38477 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
38478 caused by bad second argument to warning_at() with -mhotpatch and
38479 nested functions (e.g. with gfortran).
38481 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
38483 * opts.c (option_name): Remove "enabled by default" rider.
38485 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
38487 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
38489 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
38490 Uros Bizjak <ubizjak@gmail.com>
38493 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
38494 * configure: Regenerated.
38496 2014-02-12 Richard Biener <rguenther@suse.de>
38498 * vec.c (vec_prefix::calculate_allocation): Move as
38499 inline variant to vec.h.
38500 (vec_prefix::calculate_allocation_1): New out-of-line version.
38501 * vec.h (vec_prefix::calculate_allocation_1): Declare.
38502 (vec_prefix::m_has_auto_buf): Rename to ...
38503 (vec_prefix::m_using_auto_storage): ... this.
38504 (vec_prefix::calculate_allocation): Inline the easy cases
38505 and dispatch to calculate_allocation_1 which doesn't need the
38507 (va_heap::reserve): Use gcc_checking_assert.
38508 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
38509 m_using_auto_storage.
38510 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
38512 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
38513 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
38514 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
38516 2014-02-12 Richard Biener <rguenther@suse.de>
38518 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
38519 when we found a dependence.
38521 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
38523 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
38525 (maybe_fold_stmt): ... into this new function.
38526 * omp-low.c (lower_omp): Update comment.
38528 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
38531 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
38534 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
38536 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
38537 identifiers in comments.
38538 (cortexa53_extra_costs): Likewise.
38539 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
38540 (cortexa7_extra_costs): Likewise.
38541 (cortexa12_extra_costs): Likewise.
38542 (cortexa15_extra_costs): Likewise.
38543 (v7m_extra_costs): Likewise.
38545 2014-02-12 Richard Biener <rguenther@suse.de>
38547 PR middle-end/60092
38548 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
38549 of posix_memalign being successful.
38550 (lower_stmt): Restrict lowering of posix_memalign to when
38551 -ftree-bit-ccp is enabled.
38553 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38555 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
38557 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
38559 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
38561 PR rtl-optimization/60116
38562 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
38563 other_insn once the combination has been validated.
38565 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
38568 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
38570 * ipa-devirt.c: Include demangle.h
38571 (odr_violation_reported): New static variable.
38572 (add_type_duplicate): Update odr_violations.
38573 (maybe_record_node): Add completep parameter; update it.
38574 (record_target_from_binfo): Add COMPLETEP parameter;
38575 update it as needed.
38576 (possible_polymorphic_call_targets_1): Likewise.
38577 (struct polymorphic_call_target_d): Add nonconstruction_targets;
38578 rename FINAL to COMPLETE.
38579 (record_targets_from_bases): Sanity check we found the binfo;
38580 fix COMPLETEP updating.
38581 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
38582 parameter, fix computing of COMPLETEP.
38583 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
38584 at LTO time do demangling.
38585 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
38586 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
38588 (gimple_get_virt_method_for_binfo): Likewise.
38589 * gimple-fold.h (gimple_get_virt_method_for_binfo,
38590 gimple_get_virt_method_for_vtable): Update prototypes.
38592 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
38595 * genautomata.c (add_presence_absence): Fix typo with
38596 {final_}presence_list.
38598 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38601 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
38602 for VSX/Altivec vectors that land in GPR registers.
38604 2014-02-11 Richard Henderson <rth@redhat.com>
38605 Jakub Jelinek <jakub@redhat.com>
38608 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
38609 around drhs if type conversion to lacc->type is not useless.
38611 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38613 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
38615 (cortex-a57.cortex-a53): Likewise.
38616 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
38618 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38620 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
38623 2014-02-11 Renlin Li <Renlin.Li@arm.com>
38625 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
38626 add_options_for_arm_vfp3.
38628 2014-02-11 Jeff Law <law@redhat.com>
38630 PR middle-end/54041
38631 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
38632 object with an undesirable mode.
38634 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38637 * config/i386/sol2-9.h: New file.
38638 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
38639 *-*-solaris2.9*): Use it.
38641 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
38643 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
38644 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
38646 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
38648 * config/microblaze/microblaze.c: Extend mcpu version format
38650 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
38652 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
38654 2014-02-10 Richard Henderson <rth@redhat.com>
38657 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
38658 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
38659 ms-abi vs -mno-accumulate-outgoing-args.
38660 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
38661 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
38664 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
38666 PR middle-end/60080
38667 * cfgexpand.c (expand_asm_operands): Attach source location to
38668 ASM_INPUT rtx objects.
38669 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
38671 2014-02-10 Nick Clifton <nickc@redhat.com>
38673 * config/mn10300/mn10300.c (popcount): New function.
38674 (mn10300_expand_prologue): Include saved registers in stack usage
38677 2014-02-10 Jeff Law <law@redhat.com>
38679 PR middle-end/52306
38680 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
38681 when changing the SET_DEST of a prior insn to avoid an input reload.
38683 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38685 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
38686 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
38687 -mcall-openbsd, or -mcall-linux.
38688 (CC1_ENDIAN_BIG_SPEC): Remove.
38689 (CC1_ENDIAN_LITTLE_SPEC): Remove.
38690 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
38691 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
38692 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
38693 and %cc1_endian_default.
38694 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
38696 2014-02-10 Richard Biener <rguenther@suse.de>
38698 PR tree-optimization/60115
38699 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
38700 MEM_REF handling. Properly verify that the accesses are not
38701 out of the objects bound.
38703 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38705 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
38708 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
38710 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
38711 proper constants and fix formatting.
38712 (possible_polymorphic_call_targets): Fix formatting.
38714 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
38715 Ilya Tocar <ilya.tocar@intel.com>
38717 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
38718 (_mm512_loadu_epi32): Renamed into...
38719 (_mm512_loadu_si512): This.
38720 (_mm512_storeu_epi32): Renamed into...
38721 (_mm512_storeu_si512): This.
38722 (_mm512_maskz_ceil_ps): Removed.
38723 (_mm512_maskz_ceil_pd): Ditto.
38724 (_mm512_maskz_floor_ps): Ditto.
38725 (_mm512_maskz_floor_pd): Ditto.
38726 (_mm512_floor_round_ps): Ditto.
38727 (_mm512_floor_round_pd): Ditto.
38728 (_mm512_ceil_round_ps): Ditto.
38729 (_mm512_ceil_round_pd): Ditto.
38730 (_mm512_mask_floor_round_ps): Ditto.
38731 (_mm512_mask_floor_round_pd): Ditto.
38732 (_mm512_mask_ceil_round_ps): Ditto.
38733 (_mm512_mask_ceil_round_pd): Ditto.
38734 (_mm512_maskz_floor_round_ps): Ditto.
38735 (_mm512_maskz_floor_round_pd): Ditto.
38736 (_mm512_maskz_ceil_round_ps): Ditto.
38737 (_mm512_maskz_ceil_round_pd): Ditto.
38738 (_mm512_expand_pd): Ditto.
38739 (_mm512_expand_ps): Ditto.
38740 * config/i386/i386.c (ix86_builtins): Remove
38741 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
38742 (bdesc_args): Ditto.
38743 * config/i386/predicates.md (const1256_operand): New.
38744 (const_1_to_2_operand): Ditto.
38745 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
38746 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
38747 (*avx512pf_gatherpf<mode>sf): Ditto.
38748 (avx512pf_gatherpf<mode>df): Ditto.
38749 (*avx512pf_gatherpf<mode>df_mask): Ditto.
38750 (*avx512pf_gatherpf<mode>df): Ditto.
38751 (avx512pf_scatterpf<mode>sf): Ditto.
38752 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
38753 (*avx512pf_scatterpf<mode>sf): Ditto.
38754 (avx512pf_scatterpf<mode>df): Ditto.
38755 (*avx512pf_scatterpf<mode>df_mask): Ditto.
38756 (*avx512pf_scatterpf<mode>df): Ditto.
38757 (avx512f_expand<mode>): Removed.
38758 (<shift_insn><mode>3<mask_name>): Change predicate type.
38760 2014-02-08 Jakub Jelinek <jakub@redhat.com>
38762 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
38763 not at the end of datarefs vector use ordered_remove to avoid
38764 reordering datarefs vector.
38767 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
38768 mark local addressable non-static vars as GOVD_PRIVATE
38769 instead of GOVD_LOCAL.
38770 * omp-low.c (lower_omp_for): Move gimple_bind_vars
38771 and BLOCK_VARS of gimple_bind_block to new_stmt rather
38774 PR middle-end/60092
38775 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
38776 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
38777 assume_aligned or alloc_align attributes.
38778 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
38779 arguments. Handle also assume_aligned and alloc_align attributes.
38780 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
38781 calls to functions with assume_aligned or alloc_align attributes.
38782 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
38784 2014-02-08 Terry Guo <terry.guo@arm.com>
38786 * doc/invoke.texi: Document ARM -march=armv7e-m.
38788 2014-02-08 Jakub Jelinek <jakub@redhat.com>
38790 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
38791 flag on __cilkrts_rethrow builtin.
38794 * ipa-cp.c (determine_versionability): Fail at -O0
38795 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
38796 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
38799 2014-02-04 Jakub Jelinek <jakub@redhat.com>
38802 * tree-inline.c (copy_forbidden): Fail for
38803 __attribute__((optimize (0))) functions.
38805 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
38807 * varpool.c: Include pointer-set.h.
38808 (varpool_remove_unreferenced_decls): Variables in other partitions
38809 will not be output; be however careful to not lose information
38810 about partitioning.
38812 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
38814 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
38815 lookup in the vtable constructor.
38817 2014-02-07 Jeff Law <law@redhat.com>
38820 * config/m68k/m68k.md (ashldi_extsi): Turn into a
38821 define_insn_and_split.
38823 * ipa-inline.c (inline_small_functions): Fix typos.
38825 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38827 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
38828 (s390_can_use_return_insn): Declare.
38829 * config/s390/s390.h (EPILOGUE_USES): Define.
38830 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
38832 (s390_chunkify_start): Handle return JUMP_LABELs.
38833 (s390_early_mach): Emit a main_pool instruction on the entry edge.
38834 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
38835 (s390_can_use_return_insn): New functions.
38836 (s390_fix_long_loop_prediction): Handle conditional returns.
38837 (TARGET_SET_UP_BY_PROLOGUE): Define.
38838 * config/s390/s390.md (ANY_RETURN): New code iterator.
38839 (*creturn, *csimple_return, return, simple_return): New patterns.
38841 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38843 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
38844 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
38845 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
38846 REG_CFA_RESTORE list when deciding not to restore a register.
38848 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38850 * config/s390/s390.c: Include tree-pass.h and context.h.
38851 (s390_early_mach): New function, split out from...
38852 (s390_emit_prologue): ...here.
38853 (pass_data_s390_early_mach): New pass structure.
38854 (pass_s390_early_mach): New class.
38855 (s390_option_override): Create and register early_mach pass.
38856 Move to end of file.
38858 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38860 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
38861 to match for the exit block.
38863 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38865 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
38866 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
38867 Reject misaligned operands.
38869 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38871 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
38873 2014-02-07 Richard Biener <rguenther@suse.de>
38875 PR middle-end/60092
38876 * gimple-low.c (lower_builtin_posix_memalign): New function.
38877 (lower_stmt): Call it to lower posix_memalign in a way
38878 to make alignment info accessible.
38880 2014-02-07 Jakub Jelinek <jakub@redhat.com>
38883 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
38884 __builtin_setjmp_receiver.
38886 2014-02-07 Richard Biener <rguenther@suse.de>
38888 PR middle-end/60092
38889 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
38890 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
38891 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38892 Handle BUILT_IN_POSIX_MEMALIGN.
38893 (find_func_clobbers): Likewise.
38894 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
38895 (call_may_clobber_ref_p_1): Likewise.
38897 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38900 * ipa-devirt.c (record_target_from_binfo): Remove overactive
38903 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38906 * lto-cgraph.c (lto_output_node): Use
38907 symtab_get_symbol_partitioning_class.
38908 (lto_output_varpool_node): likewise.
38909 (symtab_get_symbol_partitioning_class): Move here from
38910 lto/lto-partition.c
38911 * cgraph.h (symbol_partitioning_class): Likewise.
38912 (symtab_get_symbol_partitioning_class): Declare.
38914 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38916 * ggc.h (ggc_internal_cleared_alloc): New macro.
38917 * vec.h (vec_safe_copy): Handle memory stats.
38918 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
38919 * target-globals.c (save_target_globals): Likewise.
38921 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38924 * expr.c (emit_move_resolve_push): Export; be bit more selective
38925 on when to clear alias set.
38926 * expr.h (emit_move_resolve_push): Declare.
38927 * function.h (struct function): Add tail_call_marked.
38928 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
38929 * config/i386/i386-protos.h (ix86_expand_push): Remove.
38930 * config/i386/i386.md (TImode move expander): De not call
38932 (FP push expanders): Preserve memory attributes.
38933 * config/i386/sse.md (push<mode>1): Remove.
38934 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
38935 (ix86_expand_push): Remove.
38936 * config/i386/mmx.md (push<mode>1): Remove.
38938 2014-02-06 Jakub Jelinek <jakub@redhat.com>
38940 PR rtl-optimization/60030
38941 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
38942 lopart with paradoxical subreg before shifting it up by hprec.
38944 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38946 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
38947 Remove extra newline at end of file.
38948 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
38949 (arm_issue_rate): Handle cortexa57.
38950 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
38951 (cortex-a57.cortex-a53): Likewise.
38953 2014-02-06 Jakub Jelinek <jakub@redhat.com>
38956 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
38957 don't record in REG_FRAME_RELATED_EXPR registers not set in that
38959 (arm_expand_prologue): Adjust all callers.
38960 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
38961 info, registers also at the lowest numbered registers side. Use
38962 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
38966 * var-tracking.c (adjust_mems): Before adding a SET to
38967 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
38969 2014-02-06 Alan Modra <amodra@gmail.com>
38972 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
38973 change SDmode to DDmode when lra_in_progress.
38975 2014-02-06 Jakub Jelinek <jakub@redhat.com>
38977 PR middle-end/59150
38978 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
38979 free_data_ref on the dr first, and before goto again also set dr
38980 to the next dr. For simd_lane_access, free old datarefs[i] before
38981 overwriting it. For get_vectype_for_scalar_type failure, don't
38982 free_data_ref if simd_lane_access.
38984 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
38987 * tree.h (opts_for_fn): New inline function.
38988 (opt_for_fn): Define.
38989 * config/i386/i386.c (ix86_function_regparm): Use
38990 opt_for_fn (decl, optimize) instead of optimize.
38992 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
38994 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
38995 for SYMBOL_REF in large memory model.
38997 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38999 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
39000 and crypto support.
39001 (cortex-a57): Likewise.
39002 (cortex-a57.cortex-a53): Likewise.
39004 2014-02-06 Yury Gribov <y.gribov@samsung.com>
39005 Kugan Vivekanandarajah <kuganv@linaro.org>
39007 * config/arm/arm.c (arm_vector_alignment_reachable): Check
39009 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
39011 2014-02-06 Richard Biener <rguenther@suse.de>
39013 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
39014 set_loop_copy and initialize_original_copy_tables.
39016 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
39018 * config/aarch64/aarch64-simd.md
39019 (aarch64_ashr_simddi): Change QI to SI.
39021 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
39022 Jakub Jelinek <jakub@redhat.com>
39024 PR middle-end/60013
39025 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
39028 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39030 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
39031 CODE_FOR_altivec_vpku[hw]um to
39032 CODE_FOR_altivec_vpku[hw]um_direct.
39033 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
39034 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
39035 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
39036 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
39038 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39040 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
39041 generation for -maltivec=be.
39042 (altivec_vsumsws): Simplify redundant test.
39044 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39046 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
39047 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
39048 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
39049 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
39050 gen_altivec_vpkuwum.
39051 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
39053 (altivec_vpks<VI_char>ss): Likewise.
39054 (altivec_vpks<VI_char>us): Likewise.
39055 (altivec_vpku<VI_char>us): Likewise.
39056 (altivec_vpku<VI_char>um): Likewise.
39057 (altivec_vpku<VI_char>um_direct): New (copy of
39058 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
39060 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
39061 target is little endian and -maltivec=be is not specified.
39062 (*altivec_vupkhs<VU_char>_direct): New (copy of
39063 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
39064 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
39065 target is little endian and -maltivec=be is not specified.
39066 (*altivec_vupkls<VU_char>_direct): New (copy of
39067 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
39068 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
39069 little endian and -maltivec=be is not specified.
39070 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
39071 little endian and -maltivec=be is not specified.
39073 2014-02-05 Richard Henderson <rth@redhat.com>
39076 * combine-stack-adj.c: Revert r206943.
39077 * sched-int.h (struct deps_desc): Add last_args_size.
39078 * sched-deps.c (init_deps): Initialize it.
39079 (sched_analyze_insn): Add OUTPUT dependencies between insns that
39080 contain REG_ARGS_SIZE notes.
39082 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
39084 * lto-cgraph.c (asm_nodes_output): Make global.
39085 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
39086 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
39087 (driver_handle_option): Handle OPT_fwpa.
39089 2014-02-05 Jakub Jelinek <jakub@redhat.com>
39092 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
39093 a comment typo and formatting issue. If odr_hash hasn't been
39094 created, return vNULL and set *completep to false.
39096 PR middle-end/57499
39097 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
39098 bb with no successors.
39100 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
39103 * doc/invoke.texi (-march): Clarify documentation for ARM.
39104 (-mtune): Likewise.
39107 2014-02-05 Richard Biener <rguenther@suse.de>
39109 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
39110 when not vectorizing because of too many alias checks.
39111 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
39112 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
39114 2014-02-05 Nick Clifton <nickc@redhat.com>
39116 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
39117 accept extended registers in any mode when compiling for the MN10300.
39119 2014-02-05 Yury Gribov <y.gribov@samsung.com>
39121 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
39122 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
39123 sanitization attributes.
39124 (can_inline_edge_p): Likewise.
39125 (sanitize_attrs_match_for_inline_p): New function.
39127 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
39129 * ipa-prop.c (detect_type_change): Shor circuit testing of
39130 type changes on THIS pointer.
39132 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
39135 * config/pa/pa.c (legitimize_tls_address): Return original address
39136 if not passed a SYMBOL_REF rtx.
39137 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
39139 (pa_emit_move_sequence): Simplify TLS source operands.
39140 (pa_legitimate_constant_p): Reject all TLS constants.
39141 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
39142 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
39144 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
39146 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
39147 groups when we know they are controlled by LTO.
39148 * varasm.c (default_binds_local_p_1): If object is in other partition,
39149 it will be resolved locally.
39151 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
39153 * config/host-linux.c (linux_gt_pch_use_address): Don't
39154 use SSIZE_MAX because it is not always defined.
39156 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
39159 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
39160 threshold for pseudo splitting.
39161 (update_ebb_live_info): Process call argument hard registers and
39162 hard registers from insn definition too.
39163 (max_small_class_regs_num): New constant.
39164 (inherit_in_ebb): Update live hard regs through EBBs. Update
39165 reloads_num only for small register classes. Don't split for
39168 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
39171 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
39174 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
39176 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
39177 visibility is safe.
39179 2014-02-04 Marek Polacek <polacek@redhat.com>
39181 * gdbinit.in (pel): Define.
39183 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
39185 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
39188 2014-02-04 Richard Biener <rguenther@suse.de>
39191 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
39192 in function context local.
39193 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
39194 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
39195 similar to LTO_imported_decl_ref.
39197 2014-02-04 Jakub Jelinek <jakub@redhat.com>
39199 PR tree-optimization/60002
39200 * cgraphclones.c (build_function_decl_skip_args): Clear
39201 DECL_LANG_SPECIFIC.
39203 PR tree-optimization/60023
39204 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
39205 false to gsi_replace.
39206 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
39207 has been in some EH region and vec_stmt could throw, add
39208 vec_stmt into the same EH region.
39209 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
39210 has no lhs, ignore it.
39211 * internal-fn.c (expand_MASK_LOAD): Likewise.
39214 * tree-inline.c (copy_forbidden): Fail for
39215 __attribute__((optimize (0))) functions.
39218 * omp-low.c (simd_clone_struct_copy): If from->inbranch
39219 is set, copy one less argument.
39220 (expand_simd_clones): Don't subtract clone_info->inbranch
39221 from simd_clone_struct_alloc argument.
39223 PR rtl-optimization/57915
39224 * recog.c (simplify_while_replacing): If all unary/binary/relational
39225 operation arguments are constant, attempt to simplify those.
39227 PR middle-end/59261
39228 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
39229 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
39231 2014-02-04 Richard Biener <rguenther@suse.de>
39233 PR tree-optimization/60012
39234 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
39235 TBAA disambiguation to all DDRs.
39237 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39240 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
39241 (LINK_SPEC): Use it for -shared, -shared-libgcc.
39243 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
39246 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
39248 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
39250 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
39251 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
39253 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
39256 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
39257 to figure out targets of polymorphic calls with known decl.
39258 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
39259 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
39260 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
39261 (get_polymorphic_call_info): ... here.
39262 (get_polymorphic_call_info_from_invariant): New function.
39264 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
39266 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
39267 lookup via vtable pointer; check for type consistency
39268 and turn inconsitent facts into UNREACHABLE.
39269 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
39270 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
39271 type inconsistent querries; return UNREACHABLE instead.
39273 2014-02-03 Richard Henderson <rth@twiddle.net>
39276 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
39277 already processed this node.
39278 (normalize_one_pred_1): Pass along mark_set.
39279 (normalize_one_pred): Create and destroy a pointer_set_t.
39280 (normalize_one_pred_chain): Likewise.
39282 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
39284 PR gcov-profile/58602
39285 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
39287 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
39290 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
39291 -fno-devirtualize; try to devirtualize by the knowledge of
39292 virtual table pointer given by aggregate propagation.
39293 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
39294 (ipa_print_node_jump_functions): Dump also offset that
39295 is relevant for polymorphic calls.
39296 (determine_known_aggregate_parts): Add arg_type parameter; use it
39297 instead of determining the type from pointer type.
39298 (ipa_compute_jump_functions_for_edge): Update call of
39299 determine_known_aggregate_parts.
39300 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
39301 (gimple_get_virt_method_for_binfo): ... here; simplify using
39302 vtable_pointer_value_to_vtable.
39303 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
39304 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
39305 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
39306 (vtable_pointer_value_to_vtable): Break out from ...; handle also
39308 (vtable_pointer_value_to_binfo): ... here.
39309 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
39311 2014-02-03 Teresa Johnson <tejohnson@google.com>
39313 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
39314 redef of outer loop index variable.
39316 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
39320 * doc/extend.texi (Function Attributes): Typo.
39322 2014-02-03 Cong Hou <congh@google.com>
39324 PR tree-optimization/60000
39325 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
39326 if the vectorized statement is a store. A store statement can only
39327 appear at the end of pattern statements.
39329 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
39331 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
39332 (ix86_option_override_internal): Default long double to 64-bit for
39333 32-bit Bionic and to 128-bit for 64-bit Bionic.
39335 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
39336 TARGET_LONG_DOUBLE_128 is true.
39337 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
39339 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
39340 (mlong-double-64): Negate -mlong-double-128.
39341 (mlong-double-128): New option.
39343 * config/i386/i386-c.c (ix86_target_macros): Define
39344 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
39346 * doc/invoke.texi: Document -mlong-double-128.
39348 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
39350 PR rtl-optimization/60024
39351 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
39353 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
39355 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
39357 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
39359 PR rtl-optimization/57662
39360 * sel-sched.c (code_motion_path_driver): Do not mark already not
39361 existing blocks in the visiting bitmap.
39363 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
39365 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
39366 on the insn being emitted.
39368 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
39369 Will Deacon <will.deacon@arm.com>
39371 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
39373 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39375 * config/arm/arm-tables.opt: Regenerate.
39377 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39379 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
39380 for vector types other than V16QImode.
39381 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
39382 define_expand, and call altivec_expand_vec_perm_le when producing
39383 code with little endian element order.
39384 (*altivec_vperm_<mode>_internal): New insn having previous
39385 behavior of altivec_vperm_<mode>.
39386 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
39387 altivec_expand_vec_perm_le when producing code with little endian
39389 (*altivec_vperm_<mode>_uns_internal): New insn having previous
39390 behavior of altivec_vperm_<mode>_uns.
39392 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39394 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
39395 (altivec_vsumsws): Add handling for -maltivec=be with a little
39397 (altivec_vsumsws_direct): New.
39398 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
39399 gen_altivec_vsumsws.
39401 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
39403 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
39404 vtable_pointer_value_to_binfo): New functions.
39405 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
39406 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
39408 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
39410 * config/nios2/nios2.md (load_got_register): Initialize GOT
39411 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
39412 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
39414 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
39416 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
39417 preserverd by passthrough, do not propagate the type.
39419 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
39421 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
39422 (mips_atomic_assign_expand_fenv): New function.
39423 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39425 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
39427 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
39428 (__builtin_mips_set_fcsr): Likewise.
39429 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
39430 MIPS_USI_FTYPE_VOID.
39431 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
39432 (mips16_expand_set_fcsr): Likewise.
39433 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
39434 (mips16_set_fcsr_stub): Likewise.
39435 (mips16_get_fcsr_one_only_stub): New class.
39436 (mips16_set_fcsr_one_only_stub): Likewise.
39437 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
39438 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
39439 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
39440 (hard_float): New availability predicate.
39441 (mips_builtins): Add get_fcsr and set_fcsr.
39442 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
39443 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
39444 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
39445 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
39446 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
39449 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
39451 * config/mips/mips.c (mips_one_only_stub): New class.
39452 (mips_need_mips16_rdhwr_p): Replace with...
39453 (mips16_rdhwr_stub): ...this new variable.
39454 (mips16_stub_call_address): New function.
39455 (mips16_rdhwr_one_only_stub): New class.
39456 (mips_expand_thread_pointer): Use mips16_stub_call_address.
39457 (mips_output_mips16_rdhwr): Delete.
39458 (mips_finish_stub): New function.
39459 (mips_code_end): Use it to handle rdhwr stubs.
39461 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
39464 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
39465 when calculating size of integer atomic types.
39467 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
39469 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
39471 2014-02-01 Jakub Jelinek <jakub@redhat.com>
39473 PR tree-optimization/60003
39474 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
39475 * profile.c (branch_prob): Use gimple_call_builtin_p
39476 to check for BUILT_IN_SETJMP_RECEIVER.
39477 * tree-inline.c (copy_bb): Call notice_special_calls.
39479 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
39482 * lra-constraints.c (process_alt_operands): Update reload_sum only
39485 2014-01-31 Richard Henderson <rth@redhat.com>
39487 PR middle-end/60004
39488 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
39489 until after else_eh is processed.
39491 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
39493 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
39494 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
39495 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
39496 in smmintrin.h, remove them.
39497 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
39498 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
39499 * config/i386/i386.md (ROUND_SAE): Fix value.
39500 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
39501 (const48_operand): New.
39502 * config/i386/subst.md (round), (round_expand): Use
39503 const_4_or_8_to_11_operand.
39504 (round_saeonly), (round_saeonly_expand): Use const48_operand.
39506 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
39508 * config/i386/constraints.md (Yk): Swap meaning with k.
39509 * config/i386/i386.md (movhi_internal): Change Yk to k.
39510 (movqi_internal): Ditto.
39511 (*k<logic><mode>): Ditto.
39514 (kandn<mode>): Ditto.
39515 (*<code>hi_1): Ditto.
39516 (*<code>qi_1): Ditto.
39517 (kxnor<mode>): Ditto.
39518 (kortestzhi): Ditto.
39519 (kortestchi): Ditto.
39521 (*one_cmplhi2_1): Ditto.
39522 (*one_cmplqi2_1): Ditto.
39523 * config/i386/sse.md (): Change k to Yk.
39524 (avx512f_load<mode>_mask): Ditto.
39525 (avx512f_blendm<mode>): Ditto.
39526 (avx512f_store<mode>_mask): Ditto.
39527 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
39528 (avx512f_storedqu<mode>_mask): Ditto.
39529 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
39531 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
39532 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
39533 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
39534 (avx512f_maskcmp<mode>3): Ditto.
39535 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
39536 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
39537 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
39538 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
39539 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
39540 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
39541 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
39542 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
39543 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
39544 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
39545 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
39546 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
39547 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
39548 (vec_extract_lo_<mode>_maskm): Ditto.
39549 (vec_extract_hi_<mode>_maskm): Ditto.
39550 (avx512f_vternlog<mode>_mask): Ditto.
39551 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
39552 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
39553 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
39554 (avx512f_<code>v8div16qi2_mask): Ditto.
39555 (avx512f_<code>v8div16qi2_mask_store): Ditto.
39556 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
39557 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
39558 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
39559 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
39560 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
39561 (*avx512pf_gatherpf<mode>df_mask): Ditto.
39562 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
39563 (*avx512pf_scatterpf<mode>df_mask): Ditto.
39564 (avx512cd_maskb_vec_dupv8di): Ditto.
39565 (avx512cd_maskw_vec_dupv16si): Ditto.
39566 (avx512f_vpermi2var<mode>3_maskz): Ditto.
39567 (avx512f_vpermi2var<mode>3_mask): Ditto.
39568 (avx512f_vpermi2var<mode>3_mask): Ditto.
39569 (avx512f_vpermt2var<mode>3_maskz): Ditto.
39570 (*avx512f_gathersi<mode>): Ditto.
39571 (*avx512f_gathersi<mode>_2): Ditto.
39572 (*avx512f_gatherdi<mode>): Ditto.
39573 (*avx512f_gatherdi<mode>_2): Ditto.
39574 (*avx512f_scattersi<mode>): Ditto.
39575 (*avx512f_scatterdi<mode>): Ditto.
39576 (avx512f_compress<mode>_mask): Ditto.
39577 (avx512f_compressstore<mode>_mask): Ditto.
39578 (avx512f_expand<mode>_mask): Ditto.
39579 * config/i386/subst.md (mask): Change k to Yk.
39580 (mask_scalar_merge): Ditto.
39583 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
39585 * doc/extend.texi (Vector Extensions): Document ?: in C++.
39587 2014-01-31 Richard Biener <rguenther@suse.de>
39589 PR middle-end/59990
39590 * builtins.c (fold_builtin_memory_op): Make sure to not
39591 use a floating-point mode or a boolean or enumeral type for
39592 the copy operation.
39594 2014-01-30 DJ Delorie <dj@redhat.com>
39596 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
39597 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
39598 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
39599 whenever main() has an epilogue.
39601 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39603 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
39604 unused variable "field".
39605 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
39606 (vsx_mergeh_<mode>): Likewise.
39607 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
39608 (altivec_vmrghh): Likewise.
39609 (altivec_vmrghw): Likewise.
39610 (altivec_vmrglb): Likewise.
39611 (altivec_vmrglh): Likewise.
39612 (altivec_vmrglw): Likewise.
39613 (altivec_vspltb): Add missing uses.
39614 (altivec_vsplth): Likewise.
39615 (altivec_vspltw): Likewise.
39616 (altivec_vspltsf): Likewise.
39618 2014-01-30 Jakub Jelinek <jakub@redhat.com>
39621 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
39622 frame related instructions.
39624 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
39626 PR rtl-optimization/59959
39627 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
39628 any reload of register whose subreg is invalid.
39630 2014-01-30 Jakub Jelinek <jakub@redhat.com>
39632 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
39633 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
39634 Add missing return type - void.
39636 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39638 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
39639 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
39640 remove element index adjustment for endian (now handled in vsx.md
39642 (altivec_expand_vec_perm_const): Use
39643 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
39644 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
39645 (vsx_xxspltw_<mode>): Adjust element index for little endian.
39646 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
39647 define_expand and a new define_insn *altivec_vspltb_internal;
39648 adjust for -maltivec=be on a little endian target.
39649 (altivec_vspltb_direct): New.
39650 (altivec_vsplth): Divide into a define_expand and a new
39651 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
39652 little endian target.
39653 (altivec_vsplth_direct): New.
39654 (altivec_vspltw): Divide into a define_expand and a new
39655 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
39656 little endian target.
39657 (altivec_vspltw_direct): New.
39658 (altivec_vspltsf): Divide into a define_expand and a new
39659 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
39660 a little endian target.
39662 2014-01-30 Richard Biener <rguenther@suse.de>
39664 PR tree-optimization/59993
39665 * tree-ssa-forwprop.c (associate_pointerplus): Check we
39666 can propagate form the earlier stmt and avoid the transform
39667 when the intermediate result is needed.
39669 2014-01-30 Alangi Derick <alangiderick@gmail.com>
39671 * README.Portability: Fix typo.
39673 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
39675 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
39676 comparison_operator with ordered_comparison_operator.
39678 2014-01-30 Nick Clifton <nickc@redhat.com>
39680 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
39681 Rename to mn10300_store_multiple_regs.
39682 * config/mn10300/mn10300.c: Likewise.
39683 * config/mn10300/mn10300.md (store_movm): Fix typo: call
39684 store_multiple_regs.
39685 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
39686 Call mn10300_store_multiple_regs.
39688 2014-01-30 Nick Clifton <nickc@redhat.com>
39689 DJ Delorie <dj@redhat.com>
39691 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
39692 %fp 2 to keep registers after it properly word-aligned.
39693 (rl78_alloc_physical_registers_umul): Handle the case where both
39694 input operands are the same.
39696 2014-01-30 Richard Biener <rguenther@suse.de>
39698 PR tree-optimization/59903
39699 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
39702 2014-01-30 Jason Merrill <jason@redhat.com>
39705 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
39708 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
39710 2014-01-30 Richard Biener <rguenther@suse.de>
39712 PR tree-optimization/59951
39713 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
39715 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
39718 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
39719 SFmode to DFmode case.
39721 2014-01-29 DJ Delorie <dj@redhat.com>
39723 * config/msp430/msp430.opt (-minrt): New.
39724 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
39726 (ENDFILE_SPEC): Likewise.
39728 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
39730 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
39731 (estimate_function_body_sizes): Use it.
39733 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
39736 * dwarf2out.c (is_cxx_auto): New.
39737 (is_base_type): Use it.
39738 (gen_type_die_with_usage): Likewise.
39740 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39742 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
39743 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
39744 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
39745 -maltivec=be with LE targets.
39746 (vsx_mergeh_<mode>): Likewise.
39747 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
39748 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
39749 (altivec_vmrghb): Replace with define_expand and new
39750 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
39751 (altivec_vmrghb_direct): New define_insn.
39752 (altivec_vmrghh): Replace with define_expand and new
39753 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
39754 (altivec_vmrghh_direct): New define_insn.
39755 (altivec_vmrghw): Replace with define_expand and new
39756 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
39757 (altivec_vmrghw_direct): New define_insn.
39758 (*altivec_vmrghsf): Adjust for endianness.
39759 (altivec_vmrglb): Replace with define_expand and new
39760 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
39761 (altivec_vmrglb_direct): New define_insn.
39762 (altivec_vmrglh): Replace with define_expand and new
39763 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
39764 (altivec_vmrglh_direct): New define_insn.
39765 (altivec_vmrglw): Replace with define_expand and new
39766 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
39767 (altivec_vmrglw_direct): New define_insn.
39768 (*altivec_vmrglsf): Adjust for endianness.
39769 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
39770 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
39771 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
39772 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
39773 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
39774 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
39775 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
39776 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
39778 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
39780 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
39781 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
39784 2014-01-29 Richard Biener <rguenther@suse.de>
39786 PR tree-optimization/58742
39787 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
39788 associate_pointerplus_align.
39789 (associate_pointerplus_diff): New function.
39790 (associate_pointerplus): Likewise. Call associate_pointerplus_align
39791 and associate_pointerplus_diff.
39793 2014-01-29 Richard Biener <rguenther@suse.de>
39795 * lto-streamer.h (LTO_major_version): Bump to 3.
39796 (LTO_minor_version): Reset to 0.
39798 2014-01-29 Renlin Li <Renlin.Li@arm.com>
39800 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
39801 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
39802 (arm_file_start): Generate correct asm header for armv7ve.
39803 * config/arm/bpabi.h: Add multilib support for armv7ve.
39804 * config/arm/driver-arm.c: Change the architectures of cortex-a7
39805 and cortex-a15 to armv7ve.
39806 * config/arm/t-aprofile: Add multilib support for armv7ve.
39807 * doc/invoke.texi: Document -march=armv7ve.
39809 2014-01-29 Richard Biener <rguenther@suse.de>
39811 PR tree-optimization/58742
39812 * tree-ssa-forwprop.c (associate_plusminus): Return true
39813 if we changed sth, defer EH cleanup to ...
39814 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
39815 (simplify_mult): New function.
39817 2014-01-29 Jakub Jelinek <jakub@redhat.com>
39819 PR middle-end/59917
39820 PR tree-optimization/59920
39821 * tree.c (build_common_builtin_nodes): Remove
39822 __builtin_setjmp_dispatcher initialization.
39823 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
39824 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
39825 instead of gsi_after_labels + manually skipping debug stmts.
39826 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
39827 ignore bbs with IFN_ABNORMAL_DISPATCHER.
39828 * tree-inline.c (copy_edges_for_bb): Remove
39829 can_make_abnormal_goto argument, instead add abnormal_goto_dest
39830 argument. Ignore computed_goto_p stmts. Don't call
39831 make_abnormal_goto_edges. If a call might need abnormal edges
39832 for non-local gotos, see if it already has an edge to
39833 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
39834 with true argument, don't do anything then, otherwise add
39835 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
39836 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
39838 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
39839 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
39840 (lower_stmt): Don't set data->calls_builtin_setjmp.
39841 (lower_builtin_setjmp): Adjust comment.
39842 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
39843 * tree-cfg.c (found_computed_goto): Remove.
39844 (factor_computed_gotos): Remove.
39845 (make_goto_expr_edges): Return bool, true for computed gotos.
39846 Don't call make_abnormal_goto_edges.
39847 (build_gimple_cfg): Don't set found_computed_goto, don't call
39848 factor_computed_gotos.
39849 (computed_goto_p): No longer static.
39850 (make_blocks): Don't set found_computed_goto.
39851 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
39852 (make_edges): If make_goto_expr_edges returns true, push bb
39853 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
39854 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
39855 vector. Record mapping between bbs and OpenMP regions if there
39856 are any, adjust make_gimple_omp_edges caller. Call
39857 handle_abnormal_edges.
39858 (make_abnormal_goto_edges): Remove.
39859 * tree-cfg.h (make_abnormal_goto_edges): Remove.
39860 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
39861 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
39862 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
39863 * internal-fn.def (ABNORMAL_DISPATCHER): New.
39864 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
39865 filling *region also set *region_idx to (*region)->entry->index.
39868 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
39869 For REGs set ORIGINAL_REGNO.
39871 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
39873 * doc/md.texi: Mention that a target shouldn't implement
39874 vec_widen_(s|u)mul_even/odd pair if it is less efficient
39877 2014-01-29 Jakub Jelinek <jakub@redhat.com>
39879 PR tree-optimization/59594
39880 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
39881 a copy of the datarefs vector rather than the vector itself.
39883 2014-01-28 Jason Merrill <jason@redhat.com>
39886 * dwarf2out.c (auto_die): New static.
39887 (gen_type_die_with_usage): Handle C++1y 'auto'.
39888 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
39891 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
39894 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
39895 (SPEC_X32): Likewise.
39896 (SPEC_64): Likewise.
39897 * config/i386/i386.c (ix86_option_override_internal): Turn off
39898 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
39900 (x86_file_start): Output .code16gcc for TARGET_16BIT.
39901 * config/i386/i386.h (TARGET_16BIT): New macro.
39902 (TARGET_16BIT_P): Likewise.
39903 * config/i386/i386.opt: Add m16.
39904 * doc/invoke.texi: Document -m16.
39906 2014-01-28 Jakub Jelinek <jakub@redhat.com>
39908 PR preprocessor/59935
39909 * input.c (location_get_source_line): Bail out on when line number
39910 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
39912 2014-01-28 Richard Biener <rguenther@suse.de>
39914 PR tree-optimization/58742
39915 * tree-ssa-forwprop.c (associate_plusminus): Handle
39916 pointer subtraction of the form (T)(P + A) - (T)P.
39918 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39920 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
39923 2014-01-28 Richard Biener <rguenther@suse.de>
39926 2014-01-28 Richard Biener <rguenther@suse.de>
39928 PR rtl-optimization/45364
39929 PR rtl-optimization/59890
39930 * var-tracking.c (local_get_addr_clear_given_value): Handle
39931 already cleared slot.
39932 (val_reset): Handle not allocated local_get_addr_cache.
39933 (vt_find_locations): Use post-order on the inverted CFG.
39935 2014-01-28 Richard Biener <rguenther@suse.de>
39937 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
39939 2014-01-28 Richard Biener <rguenther@suse.de>
39941 PR rtl-optimization/45364
39942 PR rtl-optimization/59890
39943 * var-tracking.c (local_get_addr_clear_given_value): Handle
39944 already cleared slot.
39945 (val_reset): Handle not allocated local_get_addr_cache.
39946 (vt_find_locations): Use post-order on the inverted CFG.
39948 2014-01-28 Alan Modra <amodra@gmail.com>
39950 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
39951 * configure.ac <recursive call for build != host>: Define
39952 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
39953 and LD_FOR_BUILD too.
39954 * configure: Regenerate.
39956 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
39958 * config/i386/i386.c (get_builtin_code_for_version): Separate
39959 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
39960 Broadwell from Haswell.
39962 2014-01-27 Steve Ellcey <sellcey@mips.com>
39964 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39965 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
39966 * config/mips/mips.c (mips_option_override): Change setting
39968 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
39969 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
39970 Change from Mask to Var.
39972 2014-01-27 Jeff Law <law@redhat.com>
39974 * ipa-inline.c (inline_small_functions): Fix typo.
39976 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
39978 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
39979 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
39980 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
39981 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
39982 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
39983 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
39984 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
39985 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
39986 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
39987 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
39988 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
39989 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
39990 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
39991 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
39992 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
39993 (_mm512_storeu_epi64): Ditto.
39994 (_mm512_cmpge_epi32_mask): Ditto.
39995 (_mm512_cmpge_epu32_mask): Ditto.
39996 (_mm512_cmpge_epi64_mask): Ditto.
39997 (_mm512_cmpge_epu64_mask): Ditto.
39998 (_mm512_cmple_epi32_mask): Ditto.
39999 (_mm512_cmple_epu32_mask): Ditto.
40000 (_mm512_cmple_epi64_mask): Ditto.
40001 (_mm512_cmple_epu64_mask): Ditto.
40002 (_mm512_cmplt_epi32_mask): Ditto.
40003 (_mm512_cmplt_epu32_mask): Ditto.
40004 (_mm512_cmplt_epi64_mask): Ditto.
40005 (_mm512_cmplt_epu64_mask): Ditto.
40006 (_mm512_cmpneq_epi32_mask): Ditto.
40007 (_mm512_cmpneq_epu32_mask): Ditto.
40008 (_mm512_cmpneq_epi64_mask): Ditto.
40009 (_mm512_cmpneq_epu64_mask): Ditto.
40010 (_mm512_expand_pd): Ditto.
40011 (_mm512_expand_ps): Ditto.
40012 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
40013 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
40014 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
40015 * config/i386/i386.c (ix86_builtins): Add
40016 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
40017 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
40018 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
40019 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
40020 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
40021 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
40022 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
40023 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
40024 IX86_BUILTIN_PMOVUSQW512_MEM.
40025 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
40026 __builtin_ia32_pmovsqd512mem_mask,
40027 __builtin_ia32_pmovqd512mem_mask,
40028 __builtin_ia32_pmovusqw512mem_mask,
40029 __builtin_ia32_pmovsqw512mem_mask,
40030 __builtin_ia32_pmovqw512mem_mask,
40031 __builtin_ia32_pmovusdw512mem_mask,
40032 __builtin_ia32_pmovsdw512mem_mask,
40033 __builtin_ia32_pmovdw512mem_mask,
40034 __builtin_ia32_pmovqb512mem_mask,
40035 __builtin_ia32_pmovusqb512mem_mask,
40036 __builtin_ia32_pmovsqb512mem_mask,
40037 __builtin_ia32_pmovusdb512mem_mask,
40038 __builtin_ia32_pmovsdb512mem_mask,
40039 __builtin_ia32_pmovdb512mem_mask.
40040 (bdesc_args): Add __builtin_ia32_expanddf512,
40041 __builtin_ia32_expandsf512.
40042 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
40043 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
40044 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
40045 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
40046 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
40047 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
40048 (avx512f_<code>v8div16qi2_mask_store): This.
40049 (avx512f_expand<mode>): New.
40051 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
40053 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
40055 (_mm512_mask_prefetch_i64gather_pd): Ditto.
40056 (_mm512_prefetch_i32scatter_pd): Ditto.
40057 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
40058 (_mm512_prefetch_i64scatter_pd): Ditto.
40059 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
40060 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
40061 (_mm512_mask_prefetch_i64gather_ps): Ditto.
40062 (_mm512_prefetch_i32scatter_ps): Ditto.
40063 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
40064 (_mm512_prefetch_i64scatter_ps): Ditto.
40065 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
40066 * config/i386/i386-builtin-types.def: Define
40067 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
40068 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
40069 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
40070 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
40071 IX86_BUILTIN_SCATTERPFQPD.
40072 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
40073 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
40074 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
40075 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
40076 __builtin_ia32_scatterpfqps.
40077 (ix86_expand_builtin): Expand new built-ins.
40078 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
40079 fix memory access data type.
40080 (*avx512pf_gatherpf<mode>_mask): Ditto.
40081 (*avx512pf_gatherpf<mode>): Ditto.
40082 (avx512pf_scatterpf<mode>): Ditto.
40083 (*avx512pf_scatterpf<mode>_mask): Ditto.
40084 (*avx512pf_scatterpf<mode>): Ditto.
40085 (GATHER_SCATTER_SF_MEM_MODE): New.
40086 (avx512pf_gatherpf<mode>df): Ditto.
40087 (*avx512pf_gatherpf<mode>df_mask): Ditto.
40088 (*avx512pf_scatterpf<mode>df): Ditto.
40090 2014-01-27 Jakub Jelinek <jakub@redhat.com>
40093 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
40094 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
40097 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
40099 * common/config/arm/arm-common.c
40100 (arm_rewrite_mcpu): Handle multiple names.
40102 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
40104 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
40106 * gimple-builder.h (create_gimple_tmp): Delete.
40108 2014-01-27 Christian Bruel <christian.bruel@st.com>
40110 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
40113 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
40115 * config/pa/pa.md (call): Generate indirect long calls to non-local
40116 functions when outputing 32-bit code.
40117 (call_value): Likewise except for special call to buggy powf function.
40119 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
40120 portable runtime and PIC indirect calls.
40121 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
40122 and PIC call sequences. Use ldo instead of blr to set return register
40123 in PIC call sequence.
40125 2014-01-25 Walter Lee <walt@tilera.com>
40127 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
40128 avoid clobbering a live register.
40130 2014-01-25 Walter Lee <walt@tilera.com>
40132 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
40133 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
40134 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
40135 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
40137 2014-01-25 Walter Lee <walt@tilera.com>
40139 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
40140 arguments on even registers.
40141 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
40143 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
40144 (BIGGEST_ALIGNMENT): Ditto.
40145 (BIGGEST_FIELD_ALIGNMENT): Ditto.
40147 2014-01-25 Walter Lee <walt@tilera.com>
40149 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
40150 insns before bundling.
40151 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
40153 2014-01-25 Walter Lee <walt@tilera.com>
40155 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
40156 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
40157 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
40159 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
40161 * config/mips/constraints.md (kl): Delete.
40162 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
40163 define expands, using...
40164 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
40165 instructions for MIPS16.
40166 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
40167 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
40169 2014-01-25 Walter Lee <walt@tilera.com>
40171 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
40175 2014-01-25 Walter Lee <walt@tilera.com>
40177 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
40178 (TARGET_EXPAND_TO_RTL_HOOK): Define.
40180 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
40182 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
40185 2014-01-25 Jakub Jelinek <jakub@redhat.com>
40187 * print-rtl.c (in_call_function_usage): New var.
40188 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
40189 EXPR_LIST mode as mode and not as reg note name.
40191 PR middle-end/59561
40192 * cfgloopmanip.c (copy_loop_info): If
40193 loop->warned_aggressive_loop_optimizations, make sure
40194 the flag is set in target loop too.
40196 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
40198 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
40200 * builtins.def: Likewise.
40201 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
40202 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
40203 * ira.c (ira_setup_eliminable_regset): Likewise.
40204 * omp-low.c (gate_expand_omp): Likewise.
40205 (execute_lower_omp): Likewise.
40206 (diagnose_sb_0): Likewise.
40207 (gate_diagnose_omp_blocks): Likewise.
40208 (simd_clone_clauses_extract): Likewise.
40211 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40213 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
40214 correction for little endian...
40215 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
40218 2014-01-24 Jeff Law <law@redhat.com>
40220 PR tree-optimization/59919
40221 * tree-vrp.c (find_assert_locations_1): Do not register asserts
40222 for non-returning calls.
40224 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
40226 * common/config/aarch64/aarch64-common.c
40227 (aarch64_rewrite_mcpu): Handle multiple names.
40228 * config/aarch64/aarch64.h
40229 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
40231 2014-01-24 Dodji Seketeli <dodji@redhat.com>
40233 * input.c (add_file_to_cache_tab): Handle the case where fopen
40236 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
40239 * config/i386/i386.md (pushsf splitter): Get stack adjustment
40240 from push operand if code of push isn't PRE_DEC.
40242 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
40245 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
40246 -mquad-memory-atomic. Update -mquad-memory documentation to say
40247 it is only used for non-atomic loads/stores.
40249 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
40250 -mquad-memory or -mquad-memory-atomic switches.
40252 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
40253 -mquad-memory-atomic to ISA 2.07 support.
40255 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
40256 to separate support of normal quad word memory operations (ldq, stq)
40257 from the atomic quad word memory operations.
40259 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
40260 support to separate non-atomic quad word operations from atomic
40261 quad word operations. Disable non-atomic quad word operations in
40262 little endian mode so that we don't have to swap words after the
40263 load and before the store.
40264 (quad_load_store_p): Add comment about atomic quad word support.
40265 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
40266 options printed with -mdebug=reg.
40268 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
40269 -mquad-memory-atomic as the test for whether we have quad word
40270 atomic instructions.
40271 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
40272 or -mp8-vector are used, allow byte/half-word atomic operations.
40274 * config/rs6000/sync.md (load_lockedti): Insure that the address
40275 is a proper indexed or indirect address for the lqarx instruction.
40276 On little endian systems, swap the hi/lo registers after the lqarx
40278 (load_lockedpti): Use indexed_or_indirect_operand predicate to
40279 insure the address is valid for the lqarx instruction.
40280 (store_conditionalti): Insure that the address is a proper indexed
40281 or indirect address for the stqcrx. instruction. On little endian
40282 systems, swap the hi/lo registers before doing the stqcrx.
40284 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
40285 insure the address is valid for the stqcrx. instruction.
40287 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
40288 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
40289 type of quad memory support is available.
40291 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
40293 PR regression/59915
40294 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
40295 there is a danger of looping.
40297 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
40299 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
40300 force flag_ira_loop_pressure if set via command line.
40302 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
40304 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
40305 (ashr_simd): New builtin handling DI mode.
40306 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
40307 (aarch64_sshr_simddi): New match pattern.
40308 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
40309 (vshrd_n_s64): Likewise.
40310 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
40312 2014-01-23 Nick Clifton <nickc@redhat.com>
40314 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
40315 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
40316 favour of mcu specific scripts.
40317 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
40320 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
40321 Alex Velenko <Alex.Velenko@arm.com>
40323 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
40324 (vaddv_s16): Likewise.
40325 (vaddv_s32): Likewise.
40326 (vaddv_u8): Likewise.
40327 (vaddv_u16): Likewise.
40328 (vaddv_u32): Likewise.
40329 (vaddvq_s8): Likewise.
40330 (vaddvq_s16): Likewise.
40331 (vaddvq_s32): Likewise.
40332 (vaddvq_s64): Likewise.
40333 (vaddvq_u8): Likewise.
40334 (vaddvq_u16): Likewise.
40335 (vaddvq_u32): Likewise.
40336 (vaddvq_u64): Likewise.
40337 (vaddv_f32): Likewise.
40338 (vaddvq_f32): Likewise.
40339 (vaddvq_f64): Likewise.
40340 (vmaxv_f32): Likewise.
40341 (vmaxv_s8): Likewise.
40342 (vmaxv_s16): Likewise.
40343 (vmaxv_s32): Likewise.
40344 (vmaxv_u8): Likewise.
40345 (vmaxv_u16): Likewise.
40346 (vmaxv_u32): Likewise.
40347 (vmaxvq_f32): Likewise.
40348 (vmaxvq_f64): Likewise.
40349 (vmaxvq_s8): Likewise.
40350 (vmaxvq_s16): Likewise.
40351 (vmaxvq_s32): Likewise.
40352 (vmaxvq_u8): Likewise.
40353 (vmaxvq_u16): Likewise.
40354 (vmaxvq_u32): Likewise.
40355 (vmaxnmv_f32): Likewise.
40356 (vmaxnmvq_f32): Likewise.
40357 (vmaxnmvq_f64): Likewise.
40358 (vminv_f32): Likewise.
40359 (vminv_s8): Likewise.
40360 (vminv_s16): Likewise.
40361 (vminv_s32): Likewise.
40362 (vminv_u8): Likewise.
40363 (vminv_u16): Likewise.
40364 (vminv_u32): Likewise.
40365 (vminvq_f32): Likewise.
40366 (vminvq_f64): Likewise.
40367 (vminvq_s8): Likewise.
40368 (vminvq_s16): Likewise.
40369 (vminvq_s32): Likewise.
40370 (vminvq_u8): Likewise.
40371 (vminvq_u16): Likewise.
40372 (vminvq_u32): Likewise.
40373 (vminnmv_f32): Likewise.
40374 (vminnmvq_f32): Likewise.
40375 (vminnmvq_f64): Likewise.
40377 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
40379 * config/aarch64/aarch64-simd.md
40380 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
40381 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
40382 (*aarch64_mul3_elt<mode>): Likewise.
40383 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
40384 (*aarch64_mul3_elt_to_64v2df): Likewise.
40385 (*aarch64_mla_elt<mode>): Likewise.
40386 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
40387 (*aarch64_mls_elt<mode>): Likewise.
40388 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
40389 (*aarch64_fma4_elt<mode>): Likewise.
40390 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
40391 (*aarch64_fma4_elt_to_64v2df): Likewise.
40392 (*aarch64_fnma4_elt<mode>): Likewise.
40393 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
40394 (*aarch64_fnma4_elt_to_64v2df): Likewise.
40395 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
40396 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
40397 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
40398 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
40399 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
40400 (aarch64_sqdmull_lane<mode>_internal): Likewise.
40401 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
40403 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
40405 * config/aarch64/aarch64-simd.md
40406 (aarch64_be_checked_get_lane<mode>): New define_expand.
40407 * config/aarch64/aarch64-simd-builtins.def
40408 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
40409 New builtin definition.
40410 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
40411 Use new safe be builtin.
40413 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
40415 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
40417 (aarch64_be_st1<mode>): Likewise.
40418 (aarch_ld1<VALL:mode>): Define_expand modified.
40419 (aarch_st1<VALL:mode>): Likewise.
40420 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
40421 (UNSPEC_ST1): Likewise.
40423 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
40425 * config/microblaze/microblaze.md: Add trap insn and attribute
40427 2014-01-23 Dodji Seketeli <dodji@redhat.com>
40429 PR preprocessor/58580
40430 * input.h (location_get_source_line): Take an additional line_size
40432 (void diagnostics_file_cache_fini): Declare new function.
40433 * input.c (struct fcache): New type.
40434 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
40435 New static constants.
40436 (diagnostic_file_cache_init, total_lines_num)
40437 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
40438 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
40439 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
40440 (get_next_line, read_next_line, goto_next_line, read_line_num):
40441 New static function definitions.
40442 (diagnostic_file_cache_fini): New function.
40443 (location_get_source_line): Take an additional output line_len
40444 parameter. Re-write using lookup_or_add_file_to_cache_tab and
40446 * diagnostic.c (diagnostic_finish): Call
40447 diagnostic_file_cache_fini.
40448 (adjust_line): Take an additional input parameter for the length
40449 of the line, rather than calculating it with strlen.
40450 (diagnostic_show_locus): Adjust the use of
40451 location_get_source_line and adjust_line with respect to their new
40452 signature. While displaying a line now, do not stop at the first
40453 null byte. Rather, display the zero byte as a space and keep
40454 going until we reach the size of the line.
40455 * Makefile.in: Add vec.o to OBJS-libcommon
40457 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
40458 Ilya Tocar <ilya.tocar@intel.com>
40460 * config/i386/avx512fintrin.h (_mm512_kmov): New.
40461 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
40462 (__builtin_ia32_kmov16): Ditto.
40463 * config/i386/i386.md (UNSPEC_KMOV): New.
40466 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
40468 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
40469 (_mm512_storeu_si512): Ditto.
40471 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
40474 * rtl.h (get_referenced_operands): Declare.
40475 * recog.c (get_referenced_operands): New function.
40476 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
40477 operands have been referenced when recording LO_SUM references.
40479 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
40481 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
40483 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
40485 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
40486 Enable for generic and recent AMD targets.
40488 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
40490 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
40491 ARG_SIZE note when adjustment was eliminated.
40493 2014-01-22 Jeff Law <law@redhat.com>
40495 PR tree-optimization/59597
40496 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
40497 in file. Accept new argument REGISTERING and use it to modify
40498 dump output appropriately.
40499 (register_jump_thread): Corresponding changes.
40500 (mark_threaded_blocks): Reinstate code to cancel unprofitable
40501 thread paths involving joiner blocks. Add code to dump cancelled
40502 jump threading paths.
40504 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
40506 PR rtl-optimization/59477
40507 * lra-constraints.c (inherit_in_ebb): Process call for living hard
40508 regs. Update reloads_num and potential_reload_hard_regs for all insns.
40510 2014-01-22 Tom Tromey <tromey@redhat.com>
40512 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
40514 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
40516 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
40518 PR rtl-optimization/59896
40519 * lra-constraints.c (process_alt_operands): Check unused note for
40520 matched operands of insn with no output reloads.
40522 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
40524 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
40525 (mips_move_from_gpr_cost): Likewise.
40527 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
40529 PR rtl-optimization/59858
40530 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
40531 ira_class_hard_regs_num.
40532 (process_alt_operands): Increase reject for dying matched operand.
40534 2014-01-21 Jakub Jelinek <jakub@redhat.com>
40537 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
40538 smaller than size, perform several stores or loads and stores
40539 at dst + count - size to store or copy all of size bytes, rather
40540 than just last modesize bytes.
40542 2014-01-20 DJ Delorie <dj@redhat.com>
40544 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
40545 that CLOBBERs are REGs before propogating their values.
40547 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
40549 PR middle-end/59789
40550 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
40551 (cgraph_inline_failed_type): New function.
40552 * cgraph.h (DEFCIFCODE): Add type.
40553 (cgraph_inline_failed_type_t): New enum.
40554 (cgraph_inline_failed_type): New prototype.
40555 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
40556 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
40557 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
40558 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
40559 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
40560 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
40561 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
40562 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
40563 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
40564 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
40565 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
40566 OPTIMIZATION_MISMATCH.
40567 * tree-inline.c (expand_call_inline): Emit errors during
40568 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
40570 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
40573 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
40574 mode attribute in insn output.
40576 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
40578 * output.h (output_constant): Delete.
40579 * varasm.c (output_constant): Make private.
40581 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
40583 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
40585 2014-01-20 Jakub Jelinek <jakub@redhat.com>
40587 PR middle-end/59860
40588 * tree.h (fold_builtin_strcat): New prototype.
40589 * builtins.c (fold_builtin_strcat): No longer static. Add len
40590 argument, if non-NULL, don't call c_strlen. Optimize
40591 directly into __builtin_memcpy instead of __builtin_strcpy.
40592 (fold_builtin_2): Adjust fold_builtin_strcat caller.
40593 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
40595 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
40597 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
40598 for SImode_address_operand operands, having only a REG argument.
40600 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
40602 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
40603 loader name using mbig-endian.
40604 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
40606 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
40608 * doc/invoke.texi (-march): Clarify documentation for AArch64.
40609 (-mtune): Likewise.
40612 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
40614 * config/aarch64/aarch64-protos.h
40615 (aarch64_cannot_change_mode_class_ptr): Declare.
40616 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
40617 aarch64_cannot_change_mode_class_ptr): New.
40618 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
40619 backend hook aarch64_cannot_change_mode_class.
40621 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
40623 * common/config/aarch64/aarch64-common.c
40624 (aarch64_handle_option): Don't handle any option order logic here.
40625 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
40626 selected_cpu, warn on architecture version mismatch.
40627 (aarch64_override_options): Fix parsing order for option strings.
40629 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40630 Iain Sandoe <iain@codesourcery.com>
40633 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
40634 warning. Amend comment to reflect current functionality.
40636 2014-01-20 Richard Biener <rguenther@suse.de>
40638 PR middle-end/59860
40639 * builtins.c (fold_builtin_strcat): Remove case better handled
40640 by tree-ssa-strlen.c.
40642 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
40644 * config/aarch64/aarch64.opt
40645 (mcpu, march, mtune): Make case-insensitive.
40647 2014-01-20 Jakub Jelinek <jakub@redhat.com>
40650 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
40651 if operands[1] is a REG or ZERO_EXTEND of a REG.
40653 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
40655 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
40657 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
40659 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
40660 long non-pic millicode calls.
40662 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40664 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
40666 2014-01-19 Kito Cheng <kito@0xlab.org>
40668 * builtins.c (expand_movstr): Check movstr expand done or fail.
40670 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
40671 H.J. Lu <hongjiu.lu@intel.com>
40674 * config/i386/i386.md (*lea<mode>): Zero-extend return register
40675 to DImode for zero-extended addresses.
40677 2014-01-19 Jakub Jelinek <jakub@redhat.com>
40679 PR rtl-optimization/57763
40680 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
40681 on the new indirect jump_insn and increment LABEL_NUSES (label).
40683 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
40687 * config.gcc (x86_archs): New variable.
40688 (x86_64_archs): Likewise.
40689 (x86_cpus): Likewise.
40690 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
40691 --with-arch/--with-cpu= options.
40692 Support --with-arch=/--with-cpu={nehalem,westmere,
40693 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
40695 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
40697 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
40698 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
40700 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
40702 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
40704 2014-01-18 Jakub Jelinek <jakub@redhat.com>
40707 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
40708 clear cpp_get_options (parse_in)->warn_unused_macros for
40709 ix86_target_macros_internal with cpp_define.
40711 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
40713 * jump.c (delete_related_insns): Keep (use (insn))s.
40714 * reorg.c (redundant_insn): Check for barriers too.
40716 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
40718 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
40720 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
40722 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
40723 call to $$dyncall when TARGET_LONG_CALLS is true.
40725 2014-01-17 Jeff Law <law@redhat.com>
40727 * ree.c (combine_set_extension): Temporarily disable test for
40728 changing number of hard registers.
40730 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
40732 PR middle-end/58125
40733 * ipa-inline-analysis.c (inline_free_summary):
40734 Do not free summary of aliases.
40736 2014-01-17 Jakub Jelinek <jakub@redhat.com>
40738 PR middle-end/59706
40739 * gimplify.c (gimplify_expr): Use create_tmp_var
40740 instead of create_tmp_var_raw. If cond doesn't have
40741 integral type, don't add the IFN_ANNOTATE builtin at all.
40743 2014-01-17 Martin Jambor <mjambor@suse.cz>
40746 * ipa-cp.c (prev_edge_clone): New variable.
40747 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
40748 Also resize prev_edge_clone vector.
40749 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
40750 (ipcp_edge_removal_hook): New function.
40751 (ipcp_driver): Register ipcp_edge_removal_hook.
40753 2014-01-17 Andrew Pinski <apinski@cavium.com>
40754 Steve Ellcey <sellcey@mips.com>
40757 * config/mips/mips.c (mips_print_operand): Check operand mode instead
40760 2014-01-17 Jeff Law <law@redhat.com>
40762 PR middle-end/57904
40763 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
40764 so that pass_ccp runs first.
40766 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
40768 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
40769 (ix86_adjust_cost): Use !TARGET_XXX.
40770 (do_reorder_for_imul): Likewise.
40771 (swap_top_of_ready_list): Likewise.
40772 (ix86_sched_reorder): Likewise.
40774 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
40776 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
40777 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
40778 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
40779 (intel_memset): New. Duplicate slm_memset.
40780 (intel_cost): New. Duplicate slm_cost.
40781 (m_INTEL): New macro.
40782 (processor_target_table): Add "intel".
40783 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
40784 with PROCESSOR_INTEL for "intel".
40785 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
40786 PROCESSOR_SILVERMONT.
40787 (ix86_issue_rate): Likewise.
40788 (ix86_adjust_cost): Likewise.
40789 (ia32_multipass_dfa_lookahead): Likewise.
40790 (swap_top_of_ready_list): Likewise.
40791 (ix86_sched_reorder): Likewise.
40792 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
40793 instead of TARGET_OPT_AGU.
40794 * config/i386/i386.h (TARGET_INTEL): New.
40795 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
40796 (processor_type): Add PROCESSOR_INTEL.
40797 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
40798 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
40800 2014-01-17 Marek Polacek <polacek@redhat.com>
40803 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
40806 2014-01-17 Richard Biener <rguenther@suse.de>
40808 PR tree-optimization/46590
40809 * opts.c (default_options_table): Add entries for
40810 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
40811 all enabled at -O1 but not for -Og.
40812 * common.opt (fbranch-count-reg): Remove Init(1).
40813 (fmove-loop-invariants): Likewise.
40814 (ftree-pta): Likewise.
40816 2014-01-17 Jakub Jelinek <jakub@redhat.com>
40818 * config/i386/i386.c (ix86_data_alignment): For compatibility with
40819 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
40820 decls to at least the GCC 4.8 used alignments.
40823 * tree-nested.c (convert_nonlocal_reference_stmt,
40824 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
40825 of GIMPLE_BIND stmts, adjust associated decls.
40827 2014-01-17 Richard Biener <rguenther@suse.de>
40829 PR tree-optimization/46590
40830 * vec.h (vec<>::bseach): New member function implementing
40831 binary search according to C89 bsearch.
40832 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
40833 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
40834 bitmap pointer again. Make accesses_in_loop a flat array.
40835 (mem_ref_obstack): New global.
40836 (outermost_indep_loop): Adjust for mem_ref->stored changes.
40837 (mark_ref_stored): Likewise.
40838 (ref_indep_loop_p_2): Likewise.
40839 (set_ref_stored_in_loop): New helper function.
40840 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
40841 (memref_free): Adjust.
40842 (record_mem_ref_loc): Simplify.
40843 (gather_mem_refs_stmt): Adjust.
40844 (sort_locs_in_loop_postorder_cmp): New function.
40845 (analyze_memory_references): Sort accesses_in_loop after
40846 loop postorder number.
40847 (find_ref_loc_in_loop_cmp): New function.
40848 (for_all_locs_in_loop): Find relevant cluster of locs in
40849 accesses_in_loop and iterate without recursion.
40850 (execute_sm): Avoid uninit warning.
40851 (struct ref_always_accessed): Simplify.
40852 (ref_always_accessed::operator ()): Likewise.
40853 (ref_always_accessed_p): Likewise.
40854 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
40855 loop postorder numbers here.
40856 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
40859 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
40862 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
40863 on decls for which assemble_alias has been called.
40865 2014-01-17 Nick Clifton <nickc@redhat.com>
40867 * config/msp430/msp430.opt: (mcpu): New option.
40868 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
40869 (msp430_option_override): Parse target_cpu. If the MCU name
40870 matches a generic string, clear target_mcu.
40871 (msp430_attr): Allow numeric interrupt values up to 63.
40872 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
40873 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
40875 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
40877 * config/msp430/msp430.md (popm): Use %J rather than %I.
40878 (addsi3): Use msp430_nonimmediate_operand for operand 2.
40879 (addhi_cy_i): Use immediate_operand for operand 2.
40880 * doc/invoke.texi: Document -mcpu option.
40882 2014-01-17 Richard Biener <rguenther@suse.de>
40884 PR rtl-optimization/38518
40885 * df.h (df_analyze_loop): Declare.
40886 * df-core.c: Include cfgloop.h.
40887 (df_analyze_1): Split out main part of df_analyze.
40888 (df_analyze): Adjust.
40889 (loop_inverted_post_order_compute): New function.
40890 (loop_post_order_compute): Likewise.
40891 (df_analyze_loop): New function avoiding whole-function
40892 postorder computes.
40893 * loop-invariant.c (find_defs): Use df_analyze_loop.
40894 (find_invariants): Adjust.
40895 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
40897 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
40899 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
40900 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
40902 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40904 * ipa-ref.c (ipa_remove_stmt_references): Fix references
40905 traversal when removing references.
40907 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
40910 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
40912 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
40914 PR middle-end/56791
40915 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
40916 pushing a reload for an autoinc when we had previously reloaded an
40917 inner part of the address.
40919 2014-01-16 Jakub Jelinek <jakub@redhat.com>
40921 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
40923 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
40924 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
40925 when not giving up or versioning for alias only because of
40927 (vect_analyze_data_ref_dependences): Set to true.
40928 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
40930 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
40931 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
40934 PR middle-end/58344
40935 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
40938 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
40939 operand 0 predicate for gathers, use a new pseudo as subtarget.
40941 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
40943 PR middle-end/59609
40944 * lra-constraints.c (process_alt_operands): Add printing debug info.
40945 Check absence of input/output reloads for matched operands too.
40947 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
40949 PR rtl-optimization/59835
40950 * ira.c (ira_init_register_move_cost): Increase cost for
40953 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
40955 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
40957 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
40960 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
40961 non-register objects. Use gen_(high/low)part more consistently.
40964 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
40967 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
40968 endian support, remove tests for WORDS_BIG_ENDIAN.
40969 (p8_mfvsrd_3_<mode>): Likewise.
40970 (reload_gpr_from_vsx<mode>): Likewise.
40971 (reload_gpr_from_vsxsf): Likewise.
40972 (p8_mfvsrd_4_disf): Likewise.
40974 2014-01-16 Richard Biener <rguenther@suse.de>
40976 PR rtl-optimization/46590
40977 * lcm.c (compute_antinout_edge): Use postorder iteration.
40978 (compute_laterin): Use inverted postorder iteration.
40980 2014-01-16 Nick Clifton <nickc@redhat.com>
40982 PR middle-end/28865
40983 * varasm.c (output_constant): Return the number of bytes actually
40985 (output_constructor_array_range): Update the field size with the
40986 number of bytes emitted by output_constant.
40987 (output_constructor_regular_field): Likewise. Also do not
40988 complain if the total number of bytes emitted is now greater
40989 than the expected fieldpos.
40990 * output.h (output_constant): Update prototype and descriptive comment.
40992 2014-01-16 Marek Polacek <polacek@redhat.com>
40994 PR middle-end/59827
40995 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
40996 it is error_mark_node.
40998 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
41000 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
41001 VALID_AVX256_REG_OR_OI_MODE.
41003 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
41005 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
41006 current procedure should be profiled.
41008 2014-01-15 Andrew Pinski <apinski@cavium.com>
41010 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
41011 of moving from/to the STACK_REG register class.
41013 2014-01-15 Richard Henderson <rth@redhat.com>
41016 * reginfo.c (global_regs_decl): Globalize.
41017 * rtl.h (global_regs_decl): Declare.
41018 * ira.c (do_reload): Diagnose frame_pointer_needed and it
41019 reserved via global_regs.
41021 2014-01-15 Teresa Johnson <tejohnson@google.com>
41023 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
41025 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
41027 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
41028 and vmulosh rather than call gen_vec_widen_smult_*.
41029 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
41030 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
41031 (vec_widen_smult_even_v16qi): Likewise.
41032 (vec_widen_umult_even_v8hi): Likewise.
41033 (vec_widen_smult_even_v8hi): Likewise.
41034 (vec_widen_umult_odd_v16qi): Likewise.
41035 (vec_widen_smult_odd_v16qi): Likewise.
41036 (vec_widen_umult_odd_v8hi): Likewise.
41037 (vec_widen_smult_odd_v8hi): Likewise.
41038 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
41039 vmuloub rather than call gen_vec_widen_umult_*.
41040 (vec_widen_umult_lo_v16qi): Likewise.
41041 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
41042 vmulosb rather than call gen_vec_widen_smult_*.
41043 (vec_widen_smult_lo_v16qi): Likewise.
41044 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
41045 rather than call gen_vec_widen_umult_*.
41046 (vec_widen_umult_lo_v8hi): Likewise.
41047 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
41048 rather than call gen_vec_widen_smult_*.
41049 (vec_widen_smult_lo_v8hi): Likewise.
41051 2014-01-15 Jeff Law <law@redhat.com>
41053 PR tree-optimization/59747
41054 * ree.c (find_and_remove_re): Properly handle case where a second
41055 eliminated extension requires widening a copy created for elimination
41056 of a prior extension.
41057 (combine_set_extension): Ensure that the number of hard regs needed
41058 for a destination register does not change when we widen it.
41060 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
41062 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
41063 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
41064 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
41065 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
41066 (avr-*-rtems*): Likewise.
41067 (bfin*-rtems*): Likewise.
41068 (moxie-*-rtems*): Likewise.
41069 (h8300-*-rtems*): Likewise.
41070 (i[34567]86-*-rtems*): Likewise.
41071 (lm32-*-rtems*): Likewise.
41072 (m32r-*-rtems*): Likewise.
41073 (m68k-*-rtems*): Likewise.
41074 (microblaze*-*-rtems*): Likewise.
41075 (mips*-*-rtems*): Likewise.
41076 (powerpc-*-rtems*): Likewise.
41077 (sh-*-rtems*): Likewise.
41078 (sparc-*-rtems*): Likewise.
41079 (sparc64-*-rtems*): Likewise.
41080 (v850-*-rtems*): Likewise.
41081 (m32c-*-rtems*): Likewise.
41083 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
41085 PR rtl-optimization/59511
41086 * ira.c (ira_init_register_move_cost): Use memory costs for some
41087 cases of register move cost calculations.
41088 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
41089 instead of BB frequency.
41090 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
41091 * lra-assigns.c (find_hard_regno_for): Ditto.
41093 2014-01-15 Richard Biener <rguenther@suse.de>
41095 PR tree-optimization/59822
41096 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
41097 (vectorizable_load): Use it to hoist defs of uses of invariant
41098 loads out of the loop.
41100 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
41101 Kugan Vivekanandarajah <kuganv@linaro.org>
41104 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
41107 2014-01-15 Richard Biener <rguenther@suse.de>
41109 PR rtl-optimization/59802
41110 * lcm.c (compute_available): Use inverted postorder to seed
41111 the initial worklist.
41113 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41116 * config/s390/s390.c (s390_preferred_reload_class): Don't return
41117 ADDR_REGS for invalid symrefs in non-PIC code.
41119 2014-01-15 Jakub Jelinek <jakub@redhat.com>
41122 * builtins.c (determine_block_size): Initialize *probable_max_size
41123 even if len_rtx is CONST_INT.
41125 2014-01-14 Andrew Pinski <apinski@cavium.com>
41127 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
41128 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
41129 (cortexa53_tunings): Likewise.
41130 (aarch64_sched_issue_rate): New function.
41131 (TARGET_SCHED_ISSUE_RATE): Define.
41133 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
41135 * ira-costs.c (find_costs_and_classes): Add missed
41136 ira_init_register_move_cost_if_necessary.
41138 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
41141 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
41143 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
41146 * config/i386/i386.c (type_natural_mode): Add a bool parameter
41147 to indicate if type is used for function return value. Warn ABI
41148 change if the vector mode isn't available for function return value.
41149 (ix86_function_arg_advance): Pass false to type_natural_mode.
41150 (ix86_function_arg): Likewise.
41151 (ix86_gimplify_va_arg): Likewise.
41152 (function_arg_32): Don't warn ABI change.
41153 (ix86_function_value): Pass true to type_natural_mode.
41154 (ix86_return_in_memory): Likewise.
41155 (ix86_struct_value_rtx): Removed.
41156 (TARGET_STRUCT_VALUE_RTX): Likewise.
41158 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
41160 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
41161 converting a conditional jump into a conditional return.
41163 2014-01-14 Richard Biener <rguenther@suse.de>
41165 PR tree-optimization/58921
41166 PR tree-optimization/59006
41167 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
41168 hoisting invariant stmts.
41169 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
41170 invariant loads on the preheader edge if possible.
41172 2014-01-14 Joey Ye <joey.ye@arm.com>
41174 * doc/plugin.texi (Building GCC plugins): Update to C++.
41176 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
41178 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
41179 (_mm_rcp28_round_ss): Ditto.
41180 (_mm_rsqrt28_round_sd): Ditto.
41181 (_mm_rsqrt28_round_ss): Ditto.
41182 (_mm_rcp28_sd): Ditto.
41183 (_mm_rcp28_ss): Ditto.
41184 (_mm_rsqrt28_sd): Ditto.
41185 (_mm_rsqrt28_ss): Ditto.
41186 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
41187 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
41188 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
41189 (IX86_BUILTIN_RCP28SD): Ditto.
41190 (IX86_BUILTIN_RCP28SS): Ditto.
41191 (IX86_BUILTIN_RSQRT28SD): Ditto.
41192 (IX86_BUILTIN_RSQRT28SS): Ditto.
41193 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
41194 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
41195 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
41196 (ix86_expand_special_args_builtin): Expand new FTYPE.
41197 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
41198 (srcp14<mode>): Make insn unary.
41199 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
41200 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
41201 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
41202 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
41203 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
41204 Fix rounding: make it SAE only.
41205 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
41207 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
41209 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
41210 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
41211 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
41212 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
41213 (round_saeonly_mask_scalar_operand4): Ditto.
41214 (round_saeonly_mask_scalar_op3): Ditto.
41215 (round_saeonly_mask_scalar_op4): Ditto.
41217 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41219 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
41220 Implement -maltivec=be for vec_insert and vec_extract.
41222 2014-01-10 DJ Delorie <dj@redhat.com>
41224 * config/msp430/msp430.md (call_internal): Don't allow memory
41225 references with SP as the base register.
41226 (call_value_internal): Likewise.
41227 * config/msp430/constraints.md (Yc): New. For memory references
41228 that don't use SP as a base register.
41230 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
41231 "an integer without a # prefix"
41232 * config/msp430/msp430.md (epilogue_helper): Use it.
41234 2014-01-13 Jakub Jelinek <jakub@redhat.com>
41237 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
41238 AVX512F gather builtins.
41239 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
41240 on gather decls with INTEGER_TYPE masktype.
41241 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
41242 directly into the builtin rather than hoisting it before loop.
41244 PR tree-optimization/59387
41245 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
41246 (scev_const_prop): If folded_casts and type has undefined overflow,
41247 use force_gimple_operand instead of force_gimple_operand_gsi and
41248 for each added stmt if it is assign with
41249 arith_code_with_undefined_signed_overflow, call
41250 rewrite_to_defined_overflow.
41251 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
41252 gimple-fold.h instead.
41253 (arith_code_with_undefined_signed_overflow,
41254 rewrite_to_defined_overflow): Moved to ...
41255 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
41256 rewrite_to_defined_overflow): ... here. No longer static.
41257 Include gimplify-me.h.
41258 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
41259 rewrite_to_defined_overflow): New prototypes.
41261 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41263 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
41265 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
41267 * builtins.c (get_object_alignment_2): Minor tweak.
41268 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
41270 2014-01-13 Christian Bruel <christian.bruel@st.com>
41272 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
41273 optimized non constant lengths.
41275 2014-01-13 Jakub Jelinek <jakub@redhat.com>
41278 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
41279 load as __atomic_load_N if possible.
41281 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
41283 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
41285 (rs6000_expand_builtin): Adjust call.
41287 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
41290 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
41291 * config/rs6000/rs6000.c: Include target-globals.h.
41292 (rs6000_set_current_function): Instead of doing target_reinit
41293 unconditionally, use save_target_globals_default_opts and
41294 restore_target_globals.
41296 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
41298 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
41299 (rs6000_expand_builtin): Handle mffs and mtfsf.
41300 (rs6000_init_builtins): Define mffs and mtfsf.
41301 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
41302 (rs6000_mffs): New pattern.
41303 (rs6000_mtfsf): New pattern.
41305 2014-01-11 Bin Cheng <bin.cheng@arm.com>
41307 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
41308 Start narrowing with START. Apply candidate-use pair
41309 and check overall cost in narrowing.
41310 (iv_ca_prune): Pass new argument.
41312 2014-01-10 Jeff Law <law@redhat.com>
41314 PR middle-end/59743
41315 * ree.c (combine_reaching_defs): Ensure the defining statement
41316 occurs before the extension when optimizing extensions with
41317 different source and destination hard registers.
41319 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
41322 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
41323 vtables into the type inheritance graph.
41325 2014-01-10 Jakub Jelinek <jakub@redhat.com>
41327 PR rtl-optimization/59754
41328 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
41329 modes in the REGNO != REGNO case.
41331 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41333 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
41335 2014-01-10 Jakub Jelinek <jakub@redhat.com>
41337 PR tree-optimization/59745
41338 * tree-predcom.c (tree_predictive_commoning_loop): Call
41339 free_affine_expand_cache if giving up because components is NULL.
41341 * target-globals.c (save_target_globals): Allocate < 4KB structs using
41342 GC in payload of target_globals struct instead of allocating them on
41343 the heap and the larger structs separately using GC.
41344 * target-globals.h (struct target_globals): Make regs, hard_regs,
41345 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
41346 of GTY((skip)) and change type to void *.
41347 (reset_target_globals): Cast loads from those fields to corresponding
41350 2014-01-10 Steve Ellcey <sellcey@mips.com>
41353 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
41354 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
41355 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
41357 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
41360 * aarch64-modes.def (CC_Zmode): New flags mode.
41361 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
41362 represents an equality.
41363 (aarch64_get_condition_code): Handle CC_Zmode.
41364 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
41366 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41368 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
41369 extraction in good case.
41371 2014-01-10 Richard Biener <rguenther@suse.de>
41373 PR tree-optimization/59374
41374 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
41375 checking after SLP discovery. Mark stmts not participating
41376 in any SLP instance properly.
41378 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41380 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
41381 when handling a SET rtx.
41383 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41385 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
41386 (cortex-a57): Likewise.
41387 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
41389 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41391 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
41392 non-iwmmxt builtins.
41394 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
41398 * ipa-devirt.c record_target_from_binfo): Take as argument
41399 stack of binfos and lookup matching one for virtual inheritance.
41400 (possible_polymorphic_call_targets_1): Update.
41402 2014-01-10 Huacai Chen <chenhc@lemote.com>
41404 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
41405 kernel strings for Loongson-2E/2F/3A.
41407 2014-01-10 Jakub Jelinek <jakub@redhat.com>
41409 PR middle-end/59670
41410 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
41411 is_gimple_call before calling gimple_call_internal_p.
41413 2014-01-09 Steve Ellcey <sellcey@mips.com>
41415 * Makefile.in (TREE_FLOW_H): Remove.
41416 (TREE_SSA_H): Add file names from tree-flow.h.
41417 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
41418 * tree.h: Remove tree-flow.h reference.
41419 * hash-table.h: Remove tree-flow.h reference.
41420 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
41421 reference with tree-ssa-loop.h.
41423 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41425 * doc/invoke.texi: Add -maltivec={be,le} options, and document
41426 default element-order behavior for -maltivec.
41427 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
41428 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
41429 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
41430 when targeting big endian, at least for now.
41431 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
41433 2014-01-09 Jakub Jelinek <jakub@redhat.com>
41435 PR middle-end/47735
41436 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
41437 var satisfies use_register_for_decl, just take into account type
41438 alignment, rather than decl alignment.
41440 PR tree-optimization/59622
41441 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
41442 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
41443 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
41444 Don't devirtualize for inplace at all. For targets.length () == 1,
41445 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
41447 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
41449 * config/i386/i386.md (cpu): Remove the unused btver1.
41451 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
41453 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
41455 2014-01-09 Jakub Jelinek <jakub@redhat.com>
41458 * tree-core.h (struct target_globals): New forward declaration.
41459 (struct tree_target_option): Add globals field.
41460 * tree.h (TREE_TARGET_GLOBALS): Define.
41461 (prepare_target_option_nodes_for_pch): New prototype.
41462 * target-globals.h (struct target_globals): Define even if
41463 !SWITCHABLE_TARGET.
41464 * tree.c (prepare_target_option_node_for_pch,
41465 prepare_target_option_nodes_for_pch): New functions.
41466 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
41467 * config/i386/i386.c: Include target-globals.h.
41468 (ix86_set_current_function): Instead of doing target_reinit
41469 unconditionally, use save_target_globals_default_opts and
41470 restore_target_globals.
41472 2014-01-09 Richard Biener <rguenther@suse.de>
41474 PR tree-optimization/59715
41475 * tree-cfg.h (split_critical_edges): Declare.
41476 * tree-cfg.c (split_critical_edges): Export.
41477 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
41479 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
41481 * cfgexpand.c (expand_stack_vars): Optionally disable
41482 asan stack protection.
41483 (expand_used_vars): Likewise.
41484 (partition_stack_vars): Likewise.
41485 * asan.c (asan_emit_stack_protection): Optionally disable
41486 after return stack usage.
41487 (instrument_derefs): Optionally disable memory access instrumentation.
41488 (instrument_builtin_call): Likewise.
41489 (instrument_strlen_call): Likewise.
41490 (asan_protect_global): Optionally disable global variables protection.
41491 * doc/invoke.texi: Added doc for new options.
41492 * params.def: Added new options.
41493 * params.h: Likewise.
41495 2014-01-09 Jakub Jelinek <jakub@redhat.com>
41497 PR rtl-optimization/59724
41498 * ifcvt.c (cond_exec_process_if_block): Don't call
41499 flow_find_head_matching_sequence with 0 longest_match.
41500 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
41501 non-active insns if !stop_after.
41502 (try_head_merge_bb): Revert 2014-01-07 changes.
41504 2014-01-08 Jeff Law <law@redhat.com>
41506 * ree.c (get_sub_rtx): New function, extracted from...
41507 (merge_def_and_ext): Here.
41508 (combine_reaching_defs): Use get_sub_rtx.
41510 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
41512 * cgraph.h (varpool_variable_node): Do not choke on null node.
41514 2014-01-08 Catherine Moore <clm@codesourcery.com>
41516 * config/mips/mips.md (simple_return): Attempt to use JRC
41518 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
41520 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
41522 PR rtl-optimization/59137
41523 * reorg.c (steal_delay_list_from_target): Call update_block for
41525 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
41527 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41529 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
41530 two duplicate entries.
41532 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
41535 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
41537 * config/mips/mips.c (mips_truncated_op_cost): New function.
41538 (mips_rtx_costs): Adjust test for BADDU.
41539 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
41541 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
41543 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
41544 (*baddu_si): ...this new pattern.
41546 2014-01-08 Jakub Jelinek <jakub@redhat.com>
41549 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
41551 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
41553 PR middle-end/57748
41554 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
41556 (expand_expr, expand_normal): Adjust.
41557 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
41558 inner_reference_p. Use inner_reference_p to expand inner references.
41559 (store_expr): Adjust.
41560 * cfgexpand.c (expand_call_stmt): Adjust.
41562 2014-01-08 Rong Xu <xur@google.com>
41564 * gcov-io.c (gcov_var): Move from gcov-io.h.
41565 (gcov_position): Ditto.
41566 (gcov_is_error): Ditto.
41567 (gcov_rewrite): Ditto.
41568 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
41569 only part to libgcc/libgcov.h.
41571 2014-01-08 Marek Polacek <polacek@redhat.com>
41573 PR middle-end/59669
41574 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
41576 2014-01-08 Marek Polacek <polacek@redhat.com>
41579 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
41581 2014-01-08 Jakub Jelinek <jakub@redhat.com>
41583 PR rtl-optimization/59649
41584 * stor-layout.c (get_mode_bounds): For BImode return
41585 0 and STORE_FLAG_VALUE.
41587 2014-01-08 Richard Biener <rguenther@suse.de>
41589 PR middle-end/59630
41590 * gimple.h (is_gimple_builtin_call): Remove.
41591 (gimple_builtin_call_types_compatible_p): New.
41592 (gimple_call_builtin_p): New overload.
41593 * gimple.c (is_gimple_builtin_call): Remove.
41594 (validate_call): Rename to ...
41595 (gimple_builtin_call_types_compatible_p): ... this and export. Also
41596 check return types.
41597 (validate_type): New static function.
41598 (gimple_call_builtin_p): New overload and adjust.
41599 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
41600 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
41601 (gimple_fold_stmt_to_constant_1): Likewise.
41602 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
41604 2014-01-08 Richard Biener <rguenther@suse.de>
41606 PR middle-end/59471
41607 * gimplify.c (gimplify_expr): Gimplify register-register type
41608 VIEW_CONVERT_EXPRs to separate stmts.
41610 2014-01-07 Jeff Law <law@redhat.com>
41612 PR middle-end/53623
41613 * ree.c (combine_set_extension): Handle case where source
41614 and destination registers in an extension insn are different.
41615 (combine_reaching_defs): Allow source and destination registers
41616 in extension to be different under limited circumstances.
41617 (add_removable_extension): Remove restriction that the
41618 source and destination registers in the extension are the same.
41619 (find_and_remove_re): Emit a copy from the extension's
41620 destination to its source after the defining insn if
41621 the source and destination registers are different.
41623 PR middle-end/59285
41624 * ifcvt.c (merge_if_block): If we are merging a block with more than
41625 one successor with a block with no successors, remove any BARRIER
41626 after the second block.
41628 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
41630 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
41632 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
41635 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
41636 for 14-bit register offsets when INT14_OK_STRICT is false.
41638 2014-01-07 Roland Stigge <stigge@antcom.de>
41639 Michael Meissner <meissner@linux.vnet.ibm.com>
41642 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
41643 Only check TFmode for SPE constants. Don't check TImode or TDmode.
41645 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
41647 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
41650 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
41652 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
41653 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
41654 rtx is const0_rtx or not.
41656 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
41659 * target-globals.c (save_target_globals): Remove this_fn_optab
41661 * toplev.c: Include optabs.h.
41662 (target_reinit): Temporarily restore the global options if another
41663 set of options are in force.
41665 2014-01-07 Jakub Jelinek <jakub@redhat.com>
41667 PR rtl-optimization/58668
41668 * cfgcleanup.c (flow_find_cross_jump): Don't count
41669 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
41670 to determine what is counted.
41671 (flow_find_head_matching_sequence): Use active_insn_p to determine
41673 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
41675 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
41676 determine what is counted.
41678 PR tree-optimization/59643
41679 * tree-predcom.c (split_data_refs_to_components): If one dr is
41680 read and one write, determine_offset fails and the write isn't
41681 in the bad component, just put the read into the bad component.
41683 2014-01-07 Mike Stump <mikestump@comcast.net>
41684 Jakub Jelinek <jakub@redhat.com>
41687 * tree-core.h (struct tree_optimization_option): Change optabs
41688 type from unsigned char * to void *.
41689 * optabs.c (init_tree_optimization_optabs): Adjust
41690 TREE_OPTIMIZATION_OPTABS initialization.
41692 2014-01-06 Jakub Jelinek <jakub@redhat.com>
41695 * config/i386/i386.h (struct machine_function): Add
41696 no_drap_save_restore field.
41697 * config/i386/i386.c (ix86_save_reg): Use
41698 !cfun->machine->no_drap_save_restore instead of
41699 crtl->stack_realign_needed.
41700 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
41701 this function clears frame_pointer_needed. Set
41702 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
41703 and DRAP reg is needed.
41705 2014-01-06 Marek Polacek <polacek@redhat.com>
41708 * doc/implement-c.texi: Mention that other integer types are
41709 permitted as bit-field types in strictly conforming mode.
41711 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
41713 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
41714 is newly allocated.
41716 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
41718 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
41720 2014-01-06 Martin Jambor <mjambor@suse.cz>
41723 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
41725 * ipa-prop.c (ipa_print_node_params): Fix indentation.
41727 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
41731 * var-tracking.c (add_stores): Preserve the value of the source even if
41732 we don't record the store.
41734 2014-01-06 Terry Guo <terry.guo@arm.com>
41736 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
41738 2014-01-05 Iain Sandoe <iain@codesourcery.com>
41741 * config/darwin.c (darwin_function_section): Adjust return values to
41742 correspond to optimisation changes made in r206070.
41744 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
41746 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
41747 from prefetch_block tune setting.
41748 (nocona_cost): Correct size of prefetch block to 64.
41750 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
41752 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
41753 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
41754 used to save the static chain register in the computation of the offset
41755 from which the FP registers need to be restored.
41757 2014-01-04 Jakub Jelinek <jakub@redhat.com>
41759 PR tree-optimization/59519
41760 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
41761 ICE if get_current_def (current_new_name) is already non-NULL, as long
41762 as it is a phi result of some other phi in *new_exit_bb that has
41765 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
41766 or vmovdqu* for misaligned_operand.
41767 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
41768 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
41769 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
41770 aligned_mem for AVX512F masked aligned load and store builtins and for
41771 non-temporal moves.
41773 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
41775 PR tree-optimization/59651
41776 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
41777 Address range for negative step should be added by TYPE_SIZE_UNIT.
41779 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
41781 * config/m68k/m68k.c (handle_move_double): Handle pushes with
41782 overlapping registers also for registers other than the stack pointer.
41784 2014-01-03 Marek Polacek <polacek@redhat.com>
41787 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
41790 2014-01-03 Jakub Jelinek <jakub@redhat.com>
41793 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
41796 * config/i386/i386.md (MODE_SIZE): New mode attribute.
41797 (push splitter): Use <P:MODE_SIZE> instead of
41798 GET_MODE_SIZE (<P:MODE>mode).
41799 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
41800 (mov -1, reg peephole2): Likewise.
41801 * config/i386/sse.md (*mov<mode>_internal,
41802 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
41803 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
41804 *<code><mode>3, *andnot<mode>3<mask_name>,
41805 <mask_codefor><code><mode>3<mask_name>): Likewise.
41806 * config/i386/subst.md (mask_mode512bit_condition,
41807 sd_mask_mode512bit_condition): Likewise.
41809 2014-01-02 Xinliang David Li <davidxl@google.com>
41811 PR tree-optimization/59303
41812 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
41813 (dump_predicates): Better output format.
41814 (pred_equal_p): New function.
41815 (is_neq_relop_p): Ditto.
41816 (is_neq_zero_form_p): Ditto.
41817 (pred_expr_equal_p): Ditto.
41818 (pred_neg_p): Ditto.
41819 (simplify_pred): Ditto.
41820 (simplify_preds_2): Ditto.
41821 (simplify_preds_3): Ditto.
41822 (simplify_preds_4): Ditto.
41823 (simplify_preds): Ditto.
41824 (push_pred): Ditto.
41825 (push_to_worklist): Ditto.
41826 (get_pred_info_from_cmp): Ditto.
41827 (is_degenerated_phi): Ditto.
41828 (normalize_one_pred_1): Ditto.
41829 (normalize_one_pred): Ditto.
41830 (normalize_one_pred_chain): Ditto.
41831 (normalize_preds): Ditto.
41832 (normalize_cond_1): Remove function.
41833 (normalize_cond): Ditto.
41834 (is_gcond_subset_of): Ditto.
41835 (is_subset_of_any): Ditto.
41836 (is_or_set_subset_of): Ditto.
41837 (is_and_set_subset_of): Ditto.
41838 (is_norm_cond_subset_of): Ditto.
41839 (pred_chain_length_cmp): Ditto.
41840 (convert_control_dep_chain_into_preds): Type change.
41841 (find_predicates): Ditto.
41842 (find_def_preds): Ditto.
41843 (destroy_predicates_vecs): Ditto.
41844 (find_matching_predicates_in_rest_chains): Ditto.
41845 (use_pred_not_overlap_with_undef_path_pred): Ditto.
41846 (is_pred_expr_subset): Ditto.
41847 (is_pred_chain_subset_of): Ditto.
41848 (is_included_in): Ditto.
41849 (is_superset_of): Ditto.
41851 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
41853 Update copyright years.
41855 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
41857 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
41858 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
41859 config/arc/arc.md, config/arc/arc.opt,
41860 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
41861 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
41862 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
41863 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
41864 config/linux-protos.h, config/linux.c, config/winnt-c.c,
41865 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
41866 vtable-verify.c, vtable-verify.h: Use the standard form for the
41869 2014-01-02 Tobias Burnus <burnus@net-b.de>
41871 * gcc.c (process_command): Update copyright notice dates.
41872 * gcov-dump.c: Ditto.
41874 * doc/cpp.texi: Bump @copying's copyright year.
41875 * doc/cppinternals.texi: Ditto.
41876 * doc/gcc.texi: Ditto.
41877 * doc/gccint.texi: Ditto.
41878 * doc/gcov.texi: Ditto.
41879 * doc/install.texi: Ditto.
41880 * doc/invoke.texi: Ditto.
41882 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
41884 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
41886 2014-01-01 Jakub Jelinek <jakub@redhat.com>
41888 * config/i386/sse.md (*mov<mode>_internal): Guard
41889 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
41891 PR rtl-optimization/59647
41892 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
41893 new_rtx into UNSIGNED_FLOAT rtxes.
41895 Copyright (C) 2014 Free Software Foundation, Inc.
41897 Copying and distribution of this file, with or without modification,
41898 are permitted in any medium without royalty provided the copyright
41899 notice and this notice are preserved.