1 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
3 * config/sh/predicates.md (general_movsrc_operand): Allow only
4 valid plus address expressions.
5 (general_movdst_operand): Likewise.
6 (t_reg_operand): Allow (zero_extend (reg t)).
7 * config/sh/sh-protos.h (sh_hard_regno_caller_save_mode): Declare.
8 * config/sh/sh.c (sh_hard_regno_caller_save_mode): New function.
9 (sh_secondary_reload): Return NO_REGS instead of FPUL_REGS in one
11 * config/sh/sh.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12 * config/sh/sh.md (untyped_call): Clobber function value
13 registers before call.
15 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
17 * config/sh/sh.c (sh_lra_p): New function.
18 (TARGET_LRA_P): Define.
19 (sh_legitimize_reload_address): Return false if sh_lra_p is true.
20 * config/sh/sh.opt (mlra): New option.
22 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
24 * lra-constraints.c (process_address_1): Try if target can split
25 displacement with targetm.legitimize_address_displacement.
26 * target.def (legitimize_address_displacement): New hook.
27 * targhooks.c (default_legitimize_address_displacement): New function.
28 * targhooks.h (default_legitimize_address_displacement): Declare.
29 * config/sh/sh.c (sh_legitimize_address_displacement): New function.
30 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
31 * doc/tm.texi.in (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): New hook.
32 * doc/tm.texi: Regenerate.
34 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
36 * lra-constraints.c (get_equiv): Don't return memory equivalence
37 when targetm.cannot_substitute_mem_equiv_p is true.
38 * target.def (cannot_substitute_mem_equiv_p): New hook.
39 * config/sh/sh.c (sh_cannot_substitute_mem_equiv_p): New function.
40 (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
41 * doc/tm.texi.in (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): New hook.
42 * doc/tm.texi: Regenerate.
44 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
46 * lra-constraints.c (process_address_1): Swap base_term and
47 index_term if INDEX_REG_CLASS is assigned to base_term already
48 when INDEX_REG_CLASS is a single register class.
50 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
52 * lra-constraints.c (lra-constraints.c): Exchange places of sclass
55 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
57 PR rtl-optimization/64291
58 * lra-remat.c (bad_for_rematerialization_p): Add UNPSEC_VLOATILE.
59 (create_cands): Process only output reload insn with potential
62 2014-12-18 H.J. Lu <hongjiu.lu@intel.com>
64 * config/i386/i386.c (ix86_expand_call): Skip setting up RAX
65 register for -mskip-rax-setup when there are no parameters
66 passed in vector registers.
67 * config/i386/i386.opt (mskip-rax-setup): New option.
68 * doc/invoke.texi: Document -mskip-rax-setup.
70 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
72 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): Handle shift
73 by 64 by moving const0_rtx.
74 (aarch64_ushr_simddi): Delete.
76 * config/aarch64/aarch64.md (enum unspec): Delete UNSPEC_USHR64.
78 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
80 * config/aarch64/aarch64.md (enum "unspec"): Remove UNSPEC_SSHR64.
82 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): Change shift
83 amount to 63 if was 64.
84 (aarch64_sshr_simddi): Remove.
86 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
88 * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
90 (aarch64_min_divisions_for_recip_mul): New function.
92 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
94 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
96 * gcc/config/aarch64/aarch64.c (generic_tunings): Add code alignment
98 (cortexa53_tunings): Likewise.
99 (cortexa57_tunings): Likewise.
100 (thunderx_tunings): Likewise.
101 (aarch64_override_options): Use new alignment tunings.
103 2014-12-18 Martin Liska <mliska@suse.cz>
105 PR tree-optimization/64330
106 * ipa-icf.c (sem_variable::parse): Add checking
107 for externally visible symbols and do not introduce
108 an alias for an external declaration.
110 2014-12-18 Jan Hubicka <hubicka@ucw.cz>
113 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
116 2014-12-18 Martin Liska <mliska@suse.cz>
119 * ipa-icf.c (sem_function::merge): Check for
120 decl_binds_to_current_def_p is newly added to merge operation.
122 2014-12-18 Bin Cheng <bin.cheng@arm.com>
124 PR tree-optimization/62178
125 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function.
126 (iv_ca_replace): New function.
127 (try_improve_iv_set): New parameter try_replace_p.
128 Break local optimal fixed-point by calling iv_ca_replace.
129 (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set.
131 2014-12-17 Dehao Chen <dehao@google.com>
133 * auto-profile.c (afdo_annotate_cfg): Invoke update_ssa in the right
135 (auto_profile): Recompute inline summary after processing cgraph node.
137 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
140 * config/sh/sh_treg_combine.cc (is_conditional_insn): New function.
141 (cbranch_trace): Add member rtx* condition_rtx_in_insn, initialize it
142 accordingly in constructor.
143 (cbranch_trace::branch_condition_rtx_ref): New function.
144 (cbranch_trace::branch_condition_rtx): Use branch_condition_rtx_ref.
145 (sh_treg_combine::try_invert_branch_condition): Invert condition rtx
146 in insn using reversed_comparison_code and validate_change instead of
148 (sh_treg_combine::execute): Look for conditional insns in basic blocks
149 in addition to conditional branches.
150 * config/sh/sh.md (*movsicc_div0s): Remove combine patterns.
152 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
155 * config/sh/sh_treg_combine.cc (sh_treg_combine::try_optimize_cbranch):
156 Combine ccreg inversion and cbranch into inverted cbranch.
158 2014-12-17 Vladimir Makarov <vmakarov@redhat.com>
160 * lra-constraints.c (process_alt_operands): Remove non
161 allocatable hard regs when considering
162 ira_prohibited_class_mode_regs.
164 2014-12-17 Jan Hubicka <hubicka@ucw.cz>
166 * sreal.h (sreal::normalize): Implement inline.
167 (sreal::normalize_up): New function.
168 (sreal::normalize_down): New function.
169 * sreal.c (sreal::normalize): Remove.
171 2014-12-17 James Greenhalgh <james.greenhalgh@arm.com>
173 * config/aarch64/aarch64.md (generic_sched): Delete it.
175 2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
177 * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
178 unused argument warning.
180 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
182 * dwarf2out.h (struct array_descr_info): Remove the base_decl field.
183 * dwarf2out.c (enum dw_scalar_form): New.
184 (struct loc_descr_context): New.
185 (add_scalar_info): New.
186 (add_bound_info): Add a context parameter. Use add_scalar_info.
187 (loc_list_from_tree): Add a context parameter. Handle PLACEHOLDER_EXPR
188 nodes for type-related expressions. Likewise for base declarations.
189 (loc_descriptor_from_tree): Add a context parameter.
190 (subrange_type_die): Update calls to add_bound_info.
191 (tls_mem_loc_descriptor): Likewise.
192 (loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
193 parameter. Update calls to loc_list_from_tree.
194 (add_subscript_info): Update calls to add_bound_info.
195 (gen_array_type_die): Update calls to loc_list_from_tree and to
197 (descr_info_loc): Remove.
198 (add_descr_info_field): Remove.
199 (gen_descr_array_type_die): Switch add_descr_info_field calls into
200 add_scalar_info/add_bound_info ones.
201 (gen_subprogram_die): Update calls to loc_list_from_tree.
202 (gen_variable_die): Likewise.
204 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
206 * dwarf2out.c (print_loc_descr): New.
208 (print_attribute): New.
209 (print_loc_descr): New.
210 (print_die): Use print_dw_val.
211 (debug_dwarf_loc_descr): New.
212 * dwarf2out.h (debug_dwarf_loc_descr): New declaration.
214 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
216 * dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
217 even when (dwarf_version < 3 && dwarf_strict).
218 (gen_descr_array_die): Do not output DW_AT_data_locationn,
219 DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
220 attributes when (dwarf_version < 3 && dwarf_strict).
222 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
224 * dwarf2out.h (enum array_descr_ordering): New.
225 (array_descr_dimen): Add a bounds_type structure field.
226 (struct array_descr_info): Add a field to hold index type information
227 and another one to hold ordering information.
228 * dwarf2out.c (gen_type_die_with_usage): Get the main variant before
229 invoking the array descriptor language hook. Initialize the
230 array_descr_info structure before calling the lang-hook.
231 (gen_descr_array_type_die): Use gen_type_die if not processing the main
232 type variant. Replace Fortran-specific code with generic one using
233 this new field. Add a GNAT descriptive type, if any. Output type
234 information for the array bound subrange, if any.
236 2014-12-17 H.J. Lu <hongjiu.lu@intel.com>
237 Jakub Jelinek <jakub@redhat.com>
238 Uros Bizjak <ubizjak@gmail.com>
241 * config/i386/i386-opts.h (ix86_align_data): New enum.
242 * config/i386/i386.c (ix86_data_alignment): Return the ABI
243 alignment value for -malign-data=abi, the cachine line size
244 for -malign-data=cacheline and the older GCC compatible
245 alignment value for for -malign-data=compat.
246 * config/i386/i386.opt (malign-data=): New.
247 * doc/invoke.texi: Document -malign-data=.
249 2014-12-17 Marek Polacek <polacek@redhat.com>
252 * match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
254 2014-12-17 Jakub Jelinek <jakub@redhat.com>
256 PR tree-optimization/64322
257 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
258 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
260 2014-12-17 Tobias Burnus <burnus@net-b.de>
263 * flag-types.h (gfc_init_local_real, gfc_fcoarray,
264 gfc_convert): New enums; moved from fortran/.
266 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
268 * fibonacci_heap.h (min): Return m_data instead of non-existing data.
270 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
272 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
273 return values of const calls as constants.
274 (estimate_function_body_sizes): Expect calls to have false predicates.
276 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
278 * hwint.c (abs_hwi, absu_hwi): Move to ...
279 * hwint.h (abs_hwi, absu_hwi): ... here; make inline.
281 2014-12-16 Marek Polacek <polacek@redhat.com>
284 * match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
285 ((1 << A) & 1) == 0 -> A != 0.
287 2014-12-16 Richard Biener <rguenther@suse.de>
289 * genmatch.c (parser::parser): Initialize capture_ids.
290 (parser::parse_pattern): Properly allocate capture_ids before
291 using them. Set capture_ids to zero when its lifetime is
293 (parser::parse_simplify): Allocate capture_ids only if
296 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
298 * sreal.c: Include math.h later.
300 2014-12-16 Felix Yang <felix.yang@huawei.com>
302 PR rtl-optimization/64240
303 * ddg.c (mark_mem_use): Check *iter instead of *x.
305 2014-12-16 Martin Liska <mliska@suse.cz>
308 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
310 2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
312 * config/i386/i386.c (ix86_address_cost): Add explicit restriction
313 to RTL level for the check for PIC register.
315 2014-12-16 Uros Bizjak <ubizjak@gmail.com>
317 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ...
318 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ...
319 * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here.
321 2014-12-16 Chung-Ju Wu <jasonwucj@gmail.com>
324 * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber
327 2014-12-15 DJ Delorie <dj@redhat.com>
329 * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND.
331 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
334 * tree-streamer.c (preload_common_nodes): Skip preloading
335 of main_identifier_node, pid_type and optimization/option nodes.
337 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
339 PR rtl-optimization/63397
340 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
342 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
343 * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
344 (ira_reg_cost, ira_mem_cost): Ditto.
345 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
346 (calculate_allocation_cost, do_reload): Use the right
347 format for int64_t values.
349 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
351 * sreal.h (to_double): New method.
352 (shift): Do not ICE on 0.
353 * sreal.c: Include math.h
354 (sreal::to_double): New.
356 2014-12-15 Jakub Jelinek <jakub@redhat.com>
358 PR rtl-optimization/64316
359 * simplify-rtx.c (simplify_relational_operation_1): For
360 (eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
361 CONST0_RTX instead of const0_rtx.
363 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
366 * ira.c (rtx_moveable_p): Prevent UNSPEC_VOLATILE moves.
368 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
370 * ira-int.h (ira_prohibited_class_mode_regs): Remove.
371 (struct target_ira_int): Move x_ira_prohibited_class_mode_regs to
373 * ira.h (struct target_ira): ... here.
374 (ira_prohibited_class_mode_regs): Define.
375 * lra-constraints.c (process_alt_operands): Add one more condition
376 to refuse alternative when reload pseudo of given class can not
377 hold value of given mode.
379 2014-12-15 Richard Biener <rguenther@suse.de>
381 PR tree-optimization/64312
382 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
383 vuse_ssa_val as callback to walk_non_aliased_vuses.
384 (vn_reference_lookup): Likewise.
386 2014-12-15 Segher Boessenkool <segher@kernel.crashing.org>
388 * gcc/config/rs6000/rs6000.md (*add>mode>3_imm_dot,
389 *add<mode>3_imm_dot2): Change the constraint for the second
390 alternative for operand 1 from "r" to "b".
392 2014-12-15 Richard Biener <rguenther@suse.de>
394 * vec.h (vec::safe_grow): Guard against a grow to zero size.
396 2014-12-15 Richard Biener <rguenther@suse.de>
399 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
400 fold_binary to compute the constant to multiply with.
402 2014-12-15 Richard Biener <rguenther@suse.de>
405 * cfgloop.c (mark_loop_for_removal): Make safe against multiple
406 invocations on the same loop.
408 2014-12-15 Marek Polacek <polacek@redhat.com>
411 * fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
413 2014-12-15 Renlin Li <renlin.li@arm.com>
415 * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
416 (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes.
418 2014-12-15 Jakub Jelinek <jakub@redhat.com>
421 * tsan.c (instrument_func_entry): Insert __tsan_func_entry
422 call on edge from entry block to single succ instead
423 of after labels of single succ of entry block.
425 2014-12-15 Richard Biener <rguenther@suse.de>
427 PR tree-optimization/64284
428 * tree-ssa-threadupdate.c (duplicate_seme_region): Mark
429 the loop for removal if we copied the loop header.
431 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
434 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
435 * ipa.c (set_writeonly_bit): Track if reference was removed.
436 (ipa_discover_readonly_nonaddressable_vars): Return true if any
437 references was removed.
438 * ipa-reference.c (propagate): Return TODO_remove_functions if
439 reference was removed.
441 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
443 * ipa.c (process_references): Fix conditoinal on flag_optimize
445 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
448 * symtab.c (symbol_table::insert_to_assembler_name_hash
449 symbol_table::unlink_from_assembler_name_hash): Do not ICE when
450 DECL_ASSEMBLER_NAME is NULL.
452 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
454 * cgraphunit.c (analyze_functions): Always analyze targets of aliases.
456 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
459 * tree.c (virtual_method_call_p): Return false when OTR type has
462 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
464 * cgraphunit.c (analyze_functions): Do not analyze extern inline
465 funtions when not optimizing; skip comdat locals.
467 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
469 PR rtl-optimization/64037
470 * combine.c (setup_incoming_promotions): Pass the argument
471 before any promotions happen to promote_function_mode.
473 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
475 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGN): Define as a C statment.
477 2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
480 * lra-constraints.c (process_alt_operands): Refuse alternative
481 when reload pseudo of given class can not hold value of given
484 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
486 * gimple-walk.c (walk_gimple_op) <GIMPLE_OMP_FOR>: Also check
487 intermediate walk_tree results for for_incr.
488 <GIMPLE_OMP_TARGET>: Walk child_fn and data_arg, too.
489 <GIMPLE_OMP_CRITICAL, GIMPLE_OMP_ATOMIC_STORE>: Pretty printing.
491 2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
494 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
496 * double-int.c (div_and_round_double): Fix handling of unsigned
497 cases. Use same rounding approach as wide-int.h.
499 2014-12-12 Marek Polacek <polacek@redhat.com>
502 * fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
504 2014-12-12 Jakub Jelinek <jakub@redhat.com>
506 PR tree-optimization/64269
507 * tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
508 len2 or diff are too large.
510 2014-12-12 Richard Biener <rguenther@suse.de>
513 * tree-cfg.c (replace_uses_by): Guard assert properly.
515 2014-12-12 Anthony Green <green@moxielogic.com>
517 * config/moxie/moxie.md: Add use of zex instruction.
519 2014-12-12 Marc Glisse <marc.glisse@inria.fr>
521 * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
522 HONOR_SIGN_DEPENDENT_ROUNDING): Replace macros with 3 overloaded
524 * real.c (HONOR_NANS): Fix indentation.
525 (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
526 HONOR_SIGN_DEPENDENT_ROUNDING): Define three overloads.
527 * builtins.c (fold_builtin_cproj, fold_builtin_signbit,
528 fold_builtin_fmin_fmax, fold_builtin_classify): Simplify argument
530 * fold-const.c (operand_equal_p, fold_comparison, fold_binary_loc):
532 * gimple-fold.c (gimple_val_nonnegative_real_p): Likewise.
533 * ifcvt.c (noce_try_move, noce_try_minmax, noce_try_abs): Likewise.
534 * omp-low.c (omp_reduction_init): Likewise.
535 * rtlanal.c (may_trap_p_1): Likewise.
536 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
537 * tree-ssa-dom.c (record_equality, record_edge_info): Likewise.
538 * tree-ssa-phiopt.c (value_replacement, abs_replacement): Likewise.
539 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
540 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
542 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
544 * ipa-inline.c (ipa_inline): Fix condition on when
545 TODO_remove_unreachable_functions is needed.
547 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
549 * ipa-devirt.c (possible_polymorphic_call_targets): Return early
550 if otr_type has no BINFO.
552 2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
554 PR rtl-optimization/63917
555 * ifcvt.c (cc_in_cond): New function.
556 (end_ifcvt_sequence): Make sure new generated insns do not clobber CC.
557 (noce_process_if_block, check_cond_move_block): Check CC references.
559 2014-12-11 Andrew Pinski <apinski@cavium.com>
561 * config/aarch64/aarch64-protos.h (tune_params): Add align field.
562 * config/aarch64/aarch64.c (generic_tunings): Specify align.
563 (cortexa53_tunings): Likewise.
564 (cortexa57_tunings): Likewise.
565 (thunderx_tunings): Likewise.
566 (aarch64_override_options): Set align_loops, align_jumps,
567 align_functions based on what the tuning struct.
569 2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
571 * doc/md.texi (Insn Lengths): Fix description of (pc).
573 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
576 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
577 * ipa-chkp.c (chkp_produce_thunks): Use TODO_remove_functions.
578 * cgraphunit.c (symbol_table::process_new_functions): Add
579 IPA_SSA_AFTER_INLINING.
580 (ipa_passes): Update call of remove_unreachable_nodes.
581 (symbol_table::compile): Remove call of remove_unreachable_nodes.
582 * ipa-inline.c (inline_small_functions): Do not ICE with
584 (ipa_inline): Update symtab->state; fix formatting
585 update call of remove_unreachable_nodes.
586 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
587 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
588 * cgraph.h (enum symtab_state): Add IPA_SSA_AFTER_INLINING.
589 (remove_unreachable_nodes): Update.
590 * ipa.c (process_references): Keep external references only
592 (walk_polymorphic_call_targets): Keep possible polymorphic call
593 target only when devirtualizing.
594 (symbol_table::remove_unreachable_nodes): Remove BEFORE_INLINING_P
596 (ipa_single_use): Update comment.
597 * ipa-pure-const.c (cdtor_p): New function.
598 (propagate_pure_const): Track if some cdtor was turned pure/const.
599 (execute): Return TODO_remove_functions if needed.
600 * ipa-comdats.c (ipa_comdats): Update comment.
602 2014-12-11 Aldy Hernandez <aldyh@redhat.com>
604 * dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
606 (gen_inlined_subroutine_die): Same.
607 (gen_block_die): Same.
608 (decls_for_scope): Same.
610 2014-12-11 Renlin Li <renlin.li@arm.com>
612 * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
613 AARCH64_FL_FOR_ARCH8.
614 * config/aarch64/aarch64.c (all_cores): Use FLAGS from
615 aarch64-cores.def file only.
617 2014-12-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
620 * diagnostic.c (diagnostic_action_after_output): Make it extern.
621 Take diagnostic_t argument instead of diagnostic_info. Count also
622 DK_WERROR towards max_errors.
623 (diagnostic_report_diagnostic): Update call according to the above.
624 (error_recursion): Likewise.
625 * diagnostic.h (diagnostic_action_after_output): Declare.
626 * pretty-print.c (pp_formatted_text_data): Delete.
627 (pp_append_r): Call output_buffer_append_r.
628 (pp_formatted_text): Call output_buffer_formatted_text.
629 (pp_last_position_in_text): Call output_buffer_last_position_in_text.
630 * pretty-print.h (output_buffer_formatted_text): New.
631 (output_buffer_append_r): New.
632 (output_buffer_last_position_in_text): New.
634 2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com
636 * config/aarch64/aarch64.c (aarch64_parse_extension): Update error
637 message to say +no only when removing extension.
639 2014-12-11 Andrew MacLeod <amacleod@redhat.com>
641 * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list
642 for generator file. Add comment indicating it is a generated file.
643 * config/tilepro/mul-tables.c: Update generated file.
644 * config/tilegx/mul-tables.c: Likewise.
646 2014-12-11 Segher Boessenkool <segher@kernel.crashing.org>
648 * combine.c (try_combine): Do not allow combining a PARALLEL I2
649 with a register move I3 if that I2 is an asm.
651 2014-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
653 * config/arm/arm_neon.h (vrndqn_f32): Rename to...
654 (vrndnq_f32): ... this.
655 (vrndqa_f32): Rename to...
656 (vrndaq_f32): ... this.
657 (vrndqp_f32): Rename to...
658 (vrndpq_f32): ... this.
659 (vrndqm_f32): Rename to...
660 (vrndmq_f32): ... this.
661 (vrndx_f32): New intrinsic.
662 (vrndxq_f32): Likewise.
664 2014-12-11 Marek Polacek <polacek@redhat.com>
666 * fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
667 (extract_muldiv_1): Likewise.
668 (maybe_canonicalize_comparison_1): Likewise.
669 (fold_comparison): Likewise.
670 (tree_binary_nonnegative_warnv_p): Likewise.
671 (tree_binary_nonzero_warnv_p): Likewise.
672 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
673 * tree-scalar-evolution.c (simple_iv): Likewise.
674 (scev_const_prop): Likewise.
675 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
676 * tree-vect-generic.c (expand_vector_operation): Likewise.
677 * tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
678 (ANY_INTEGRAL_TYPE_P): Define.
679 (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
680 Add ANY_INTEGRAL_TYPE_CHECK.
681 (any_integral_type_check): New function.
683 2014-12-11 Tobias Burnus <burnus@net-b.de>
684 Manuel López-Ibáñez <manu@gcc.gnu.org>
686 * error.c (gfc_get_terminal_width): Renamed from
687 get_terminal_width and use same-named common function.
688 (gfc_error_init_1): Update call.
690 2014-12-10 Aldy Hernandez <aldyh@redhat.com>
692 * gdbhooks.py (class DWDieRefPrinter): New class.
693 (build_pretty_printer): Register dw_die_ref's.
695 2014-12-10 Ilya Tocar <ilya.tocar@intel.com>
697 * config.gcc: Support "knl".
698 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knl".
699 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
701 * config/i386/i386.c (m_KNL): Define.
702 (processor_target_table): Add "knl".
704 (ix86_issue_rate): Add PROCESSOR_KNL.
705 (ix86_adjust_cost): Ditto.
706 (ia32_multipass_dfa_lookahead): Ditto.
707 (get_builtin_code_for_version): Handle "knl".
708 (fold_builtin_cpu): Ditto.
709 * config/i386/i386.h (TARGET_KNL): Define.
710 (processor_type): Add PROCESSOR_KNL.
711 * config/i386/i386.md (attr "cpu"): Add knl.
712 * config/i386/x86-tune.def: Add m_KNL.
714 2014-12-10 Jan Hubicka <hubicka@ucw.cz>
716 * doc/invoke.texi: (-devirtualize-at-ltrans): Document.
717 * lto-cgraph.c (lto_output_varpool_node): Mark initializer as removed
718 when it is not streamed to the given ltrans.
719 (compute_ltrans_boundary): Make code adding all polymorphic
720 call targets conditional with !flag_wpa || flag_ltrans_devirtualize.
721 * common.opt (fdevirtualize-at-ltrans): New flag.
723 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
725 * varpool.c (varpool_node::get_create): Force output of vars with
726 "omp declare target" attribute.
728 2014-12-10 Marc Glisse <marc.glisse@inria.fr>
730 * real.h (HONOR_NANS): Replace macro with 3 overloaded declarations.
731 * real.c: Include rtl.h and options.h.
732 (HONOR_NANS): Define three overloads.
733 * builtins.c (fold_builtin_classify, fold_builtin_unordered_cmp):
734 Simplify argument of HONOR_NANS.
735 * fold-const.c (combine_comparisons, fold_truth_not_expr,
736 fold_cond_expr_with_comparison, merge_truthop_with_opposite_arm,
737 fold_comparison, fold_binary_loc): Likewise.
738 * ifcvt.c (noce_try_move, noce_try_minmax): Likewise.
739 * ipa-inline-analysis.c (add_clause,
740 set_cond_stmt_execution_predicate): Likewise.
741 * match.pd: Likewise.
742 * rtlanal.c (may_trap_p_1): Likewise.
743 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
744 * tree-if-conv.c (parse_predicate): Likewise.
745 * tree-ssa-ccp.c (valid_lattice_transition): Likewise.
746 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
747 * tree-ssa-phiopt.c (minmax_replacement, neg_replacement): Likewise.
748 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
749 * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
751 2014-12-10 Jakub Jelinek <jakub@redhat.com>
753 PR tree-optimization/62021
754 * omp-low.c (simd_clone_adjust_return_type): Use
755 vector of pointer_sized_int_node types instead vector of pointer
757 (simd_clone_adjust_argument_types): Likewise.
759 2014-12-10 Jakub Jelinek <jakub@redhat.com>
760 Evgeny Stupachenko <evstupac@gmail.com>
763 * config/i386/i386.c (expand_vec_perm_pblendv): If not testing_p,
764 set dcopy.target to a new pseudo.
766 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
768 * config/rs6000/rs6000.md (*add<mode>3): Remove condition.
770 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
772 * config/rs6000/40x.md (ppc403-compare): Remove "compare".
773 config/rs6000/440.md (ppc440-compare): Remove "compare".
774 config/rs6000/476.md (ppc476-compare): Remove "compare".
775 config/rs6000/601.md (ppc601-compare): Remove "compare".
776 config/rs6000/603.md (ppc603-compare): Remove "compare".
777 config/rs6000/6xx.md (ppc604-compare): Remove "compare".
778 config/rs6000/7450.md (ppc7450-compare): Remove "compare".
779 config/rs6000/7xx.md (ppc750-compare): Remove "compare".
780 config/rs6000/8540.md (ppc8540_su): Remove "compare".
781 config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove
783 config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare".
784 config/rs6000/e500mc.md (e500mc_su): Remove "compare".
785 config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare".
786 config/rs6000/e5500.md (e5500_sfx2): Remove "compare".
787 config/rs6000/e6500.md (e6500_sfx2): Remove "compare".
788 config/rs6000/mpc.md (mpccore-compare): Remove "compare".
789 config/rs6000/power4.md (power4-compare): Remove "compare".
790 config/rs6000/power5.md (power5-compare): Remove "compare".
791 config/rs6000/power6.md (power6-compare): Remove "compare".
792 config/rs6000/power7.md (power7-compare): Remove "compare".
793 config/rs6000/power8.md (power8-compare): Remove "compare". Update
795 config/rs6000/rs6000.c (rs6000_adjust_cost) <TYPE_COMPARE>: Remove
797 (is_cracked_insn): Remove TYPE_COMPARE case.
798 (insn_must_be_first_in_group) <TYPE_COMPARE>: Remove (twice).
799 config/rs6000/rs6000.md (type): Remove "compare".
800 (cell_micro): Remove "compare".
801 config/rs6000/rs64.md (rs64a-compare): Remove "compare".
803 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
805 * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2):
806 Change type from "compare" to "two".
808 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
811 * config/rs6000/predicates.md (unsigned_comparison_operator): New.
812 (signed_comparison_operator): New.
813 * config/rs6000/rs6000-protos.h (rs6000_emit_eqne): Declare.
814 * config/rs6000/rs6000.c (rs6000_emit_eqne): New function.
815 (rs6000_emit_sCOND): Remove ISEL test (move it to the expander).
816 * config/rs6000/rs6000.md (add<mode>3 for SDI): Expand DImode
817 add to addc,adde directly, if !TARGET_POWERPC64.
818 (sub<mode>3 for SDI): Expand DImode sub to subfc,subfe directly,
819 if !TARGET_POWERPC64.
820 (neg<mode>2): Delete expander.
821 (*neg<mode>2): Rename to "neg<mode>2".
822 (addti3, subti3): Delete.
823 (addti3, subti3): New expanders.
824 (*adddi3_noppc64, *subdi3_noppc64, *negdi2_noppc64): Delete.
825 (cstore<mode>4_unsigned): New expander.
826 (cstore<mode>4): Allow GPR as output (not just SI). Rewrite.
827 (cstore<mode>4 for FP): Remove superfluous quotes.
828 (*eq<mode>, *eq<mode>_compare, *plus_eqsi and splitter,
829 *compare_plus_eqsi and splitter, *plus_eqsi_compare and splitter,
830 *neg_eq0<mode>, *neg_eq<mode>, *ne0_<mode>, plus_ne0_<mode>,
831 compare_plus_ne0_<mode> and splitter, *compare_plus_ne0_<mode>_1 and
832 splitter, *plus_ne0_<mode>_compare and splitter, *leu<mode>,
833 *leu<mode>_compare and splitter, *plus_leu<mode>, *neg_leu<mode>,
834 *and_neg_leu<mode>, *ltu<mode>, *ltu<mode>_compare, *plus_ltu<mode>,
835 *plus_ltu<mode>_1, *plus_ltu<mode>compare, *neg_ltu<mode>, *geu<mode>,
836 *geu<mode>_compare and splitter, *plus_geu<mode>, *neg_geu<mode>,
837 *and_neg_geu<mode>, *plus_gt0<mode>, *gtu<mode>, *gtu<mode>_compare,
838 *plus_gtu<mode>, *plus_gtu<mode>_1, *plus_gtu<mode>_compare,
839 *neg_gtu<mode>, 12 anonymous insns, and 12 anonymous splitters):
841 (eq<mode>3, ne<mode>3): New.
842 (*neg_eq_<mode>, *neg_ne_<mode>): New.
843 (*plus_eq_<mode>, *plus_ne_<mode>): New.
844 (*minus_eq_<mode>, *minus_ne_<mode>): New.
846 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
849 * config/rs6000/predicates.md (adde_operand): New.
850 * config/rs6000/rs6000.md (add<mode>3_carry): New.
851 (*add<mode>3_imm_carry_pos): New.
852 (*add<mode>3_imm_carry_0): New.
853 (*add<mode>3_imm_carry_m1): New.
854 (*add<mode>3_imm_carry_neg): New.
855 (add<mode>3_carry_in): New.
856 (*add<mode>3_carry_in_internal): New.
857 (add<mode>3_carry_in_0): New.
858 (add<mode>3_carry_in_m1): New.
859 (subf<mode>3_carry): New.
860 (*subf<mode>3_imm_carry_0): New.
861 (*subf<mode>3_imm_carry_m1): New.
862 (subf<mode>3_carry_in): New.
863 (*subf<mode>3_carry_in_internal): New.
864 (subf<mode>3_carry_in_0): New.
865 (subf<mode>3_carry_in_m1): New.
866 (subf<mode>3_carry_in_xx): New.
868 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
871 * config/rs6000/rs6000.md (*add<mode>3_internal1): Rename to
873 (*add<mode>3_internal2, *add<mode>3_internal3, and (their splitters):
875 (*add<mode>3_dot, *add<mode>3_dot2): New.
876 (*add<mode>3_imm_dot, *add<mode>3_imm_dot2): New.
878 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
881 * config/rs6000/rs6000.md (*add<mode>3_internal1): Remove addic
884 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
887 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
888 *ctr<mode>_internal5, *ctr<mode>_internal6): Change "r" alternatives
889 to "b". Increase length.
890 (splitters for these): Split to cmp+addi instead of addic.
892 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
895 * config/rs6000/darwin.md (macho_low_si): Remove "r" alternative.
896 (macho_low_di): Ditto.
897 * config/rs6000/rs6000.md (*largetoc_low): Ditto.
898 (tocref<mode>): Ditto.
900 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0_elf_low_be): Ditto.
901 (mov_si<mode>_e500_subreg0_elf_low_le): Ditto.
902 (mov_si<mode>_e500_subreg4_elf_low_be): Ditto. Reformat condition.
903 (mov_si<mode>_e500_subreg4_elf_low_le): Ditto.
905 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
908 * config/rs6000/rs6000.c (TARGET_MD_ASM_CLOBBERS): Define.
909 (rs6000_md_asm_clobbers): New function.
911 2014-12-10 Felix Yang <felix.yang@huawei.com>
913 * config/aarch64/aarch64-protos.h (aarch64_function_profiler): Remove
914 declaration of removed function.
916 2014-12-10 Richard Biener <rguenther@suse.de>
919 (move_computations_dom_walker::before_dom_children): Clear
920 SSA_NAME_RANGE_INFO on moved stmts.
922 2014-12-10 Martin Liska <mliska@suse.cz>
924 * sreal.c (sreal::shift_right): New implementation
925 for int64_t as m_sig.
926 (sreal::normalize): Likewise.
927 (sreal::to_int): Likewise.
928 (sreal::operator+): Likewise.
929 (sreal::operator-): Likewise.
930 (sreal::operator*): Likewise.
931 (sreal::operator/): Likewise.
932 (sreal::signedless_minus): Removed.
933 (sreal::signedless_plus): Removed.
934 (sreal::debug): const keyword is added.
935 * sreal.h (sreal::operator<): New implementation
936 for int64_t as m_sig.
937 * ipa-inline.c (recursive_inlining): LONG_MIN is replaced
940 2014-12-10 Martin Liska <mliska@suse.cz>
942 * gimple-iterator.h (gsi_start_bb_nondebug): New function.
943 * ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
944 replaces loop based on precomputed number of non-debug statements.
946 2014-12-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
948 * config/linux.c (linux_has_ifunc_p): Remove.
949 * config/linux.h (TARGET_HAS_IFUNC_P): Use default version.
951 2014-12-10 Mantas Mikaitis <mantas.mikaitis@arm.com>
953 * contrib/check_GNU_style.sh (col): Got rid of cut operation
954 from the pipe chain and instead added cut inside awk command.
956 2014-12-10 Richard Biener <rguenther@suse.de>
958 PR tree-optimization/64191
959 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
960 mark clobbers as necessary.
961 (eliminate_unnecessary_stmts): Keep clobbers live if we can.
963 2014-12-10 Jakub Jelinek <jakub@redhat.com>
966 * config/i386/sse.md (vec_dupv4sf): Move after
967 <mask_codefor><avx512>_vec_dup_gpr<mode><mask_name> pattern.
968 (*vec_dupv4si, *vec_dupv2di): Likewise.
969 (<mask_codefor><avx512>_vec_dup_mem<mode><mask_name>): Merge into ...
970 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>): ... this
972 (*vec_dup<mode> AVX2_VEC_DUP_MODE splitter): Disable for
973 TARGET_AVX512VL (for QI/HI scalar modes only if TARGET_AVX512BW
975 * config/i386/i386.c (enum ix86_builtins): Remove
976 IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
977 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK and
978 IX86_BUILTIN_PBROADCASTQ512_MEM.
979 (bdesc_args): Use __builtin_ia32_pbroadcastq512_gpr_mask,
980 __builtin_ia32_pbroadcastq256_gpr_mask and
981 __builtin_ia32_pbroadcastq128_gpr_mask instead of *_mem_mask
982 regardless of OPTION_MASK_ISA_64BIT.
983 * config/i386/avx512fintrin.h (_mm512_set1_epi64,
984 _mm512_mask_set1_epi64, _mm512_maskz_set1_epi64): Use *_gpr_mask
985 builtins regardless of whether TARGET_64BIT is defined or not.
986 * config/i386/avx512vlintrin.h (_mm256_mask_set1_epi64,
987 _mm256_maskz_set1_epi64, _mm_mask_set1_epi64, _mm_maskz_set1_epi64):
990 * config/i386/sse.md (*mov<mode>_internal, *avx512f_gatherdi<mode>_2):
991 Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
993 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
996 * doc/extend.texi (__builtin_sh_set_fpscr): Fix typo.
998 2014-12-10 Marek Polacek <polacek@redhat.com>
1000 PR tree-optimization/61686
1001 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
1004 2014-12-10 Kito Cheng <kito@0xlab.org>
1006 * doc/libgcc.texi: Update text to match implementation in
1009 2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
1011 * plugin.c, plugin.def, ggc.h, ggc-common.c, gengtype.h, gengtype.c,
1012 gengtype-state.c, gengtype-parse.c, gentype-lex.l, gcc-plugin.h,
1013 doc/plugins.texi, doc/gty.texi: Remove support for if_marked and
1016 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1019 * doc/extend.texi (__builtin_sh_get_fpscr, __builtin_sh_get_fpscr):
1022 2014-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1025 * tree-ssa-reassoc.c (acceptable_pow_call): Disable transformation
1026 for BUILT_IN_POW when flag_errno_math is present.
1028 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
1030 * lto-wrapper.c (compile_offload_image): Start processing in_argv
1031 from 0 instead of 1.
1032 (run_gcc): Put offload objects into offload_argv, put LTO objects and
1033 possible preceding arguments into lto_argv.
1034 Pass offload_argv to compile_images_for_offload_targets instead of argv.
1035 Use lto_argv for LTO recompilation instead of argv.
1037 2014-12-09 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1039 * doc/install.texi: Describe --with-aix-soname option.
1041 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1043 * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
1045 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1048 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
1050 * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
1052 * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
1053 vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
1054 (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
1055 __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
1056 __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
1057 __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
1058 __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
1059 __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
1060 __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
1061 __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
1062 __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
1063 __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
1064 __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
1065 __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
1066 (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
1068 (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
1069 __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
1070 __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
1071 __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
1072 __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
1073 __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
1074 __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
1075 __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
1076 __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
1077 __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
1078 __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
1079 __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
1080 to __aarch64_vdup_lane_any.
1081 (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
1082 vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
1083 vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
1084 vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
1085 vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
1086 vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
1087 vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
1088 vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
1089 vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
1090 vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
1091 vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
1092 vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
1093 vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
1094 vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
1095 vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
1096 vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
1097 vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
1098 vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
1099 vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
1100 vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
1101 vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
1102 vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
1103 vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
1104 vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
1105 vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
1106 vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
1107 vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
1108 vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
1109 vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
1110 vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
1111 __aarch64_vget_lane_any.
1113 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1116 * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
1117 message for SIMD_ARG_CONSTANT.
1119 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1122 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
1123 TYPES_BINOPV): Delete.
1124 (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
1125 AARCH64_SIMD_PATTERN_START.
1126 (aarch64_init_simd_builtins): Register
1127 __builtin_aarch64_im_lane_boundsi; use AARCH64_SIMD_PATTERN_START.
1128 (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
1129 AARCH64_SIMD_PATTERN_START.
1131 * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
1132 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
1134 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
1135 (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
1136 __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
1137 vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
1138 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
1139 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
1140 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
1141 vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
1143 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1146 * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
1148 (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
1149 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1150 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1151 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
1153 (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
1154 vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
1155 vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
1156 __aarch64_vset_lane_any rather than vset_lane_xxx.
1158 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1160 * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
1161 earlyclobbering result operand.
1163 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1164 Remove final qualifier_internal.
1165 (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
1167 2014-12-09 Wilco Dijkstra <wilco.dijkstra@arm.com>
1169 * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
1171 * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
1173 (aarch64_reassociation_width): New function.
1174 (generic_tunings): Add reassociation tuning parameters.
1175 (cortexa53_tunings): Likewise.
1176 (cortexa57_tunings): Likewise.
1177 (thunderx_tunings): Likewise.
1179 2014-12-09 Andrew Pinski <apinski@cavium.com>
1180 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1182 * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
1183 (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
1184 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
1186 2014-12-09 David Malcolm <dmalcolm@redhat.com>
1189 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
1191 (gcc::dump_manager::get_dump_file_name): Split out bulk of
1192 implementation into a new overloaded variant taking a
1194 * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
1196 (gcc::dump_manager::get_dump_file_name): New overloaded variant of
1197 this function, taking a dump_file_info *.
1199 2014-12-09 Uros Bizjak <ubizjak@gmail.com>
1203 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
1205 PR rtl-optimization/64037
1206 * combine.c (setup_incoming_promotions): Pass the argument
1207 before any promotions happen to promote_function_mode.
1209 2014-12-09 Richard Biener <rguenther@suse.de>
1211 PR tree-optimization/64193
1212 * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
1213 and valueize the VUSE before looking up the def stmt.
1214 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1215 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
1216 to walk_non_aliased_vuses.
1217 (vn_reference_lookup): Likewise.
1218 * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
1219 callback to walk_non_aliased_vuses.
1221 2014-12-09 Richard Biener <rguenther@suse.de>
1224 * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
1226 2014-12-09 Richard Biener <rguenther@suse.de>
1228 PR tree-optimization/64191
1229 * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
1230 not relevant (nor are their uses).
1232 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1234 * lto/lto-partition.c (privatize_symbol_name): Correctly
1235 privatize instrumentation clones.
1237 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1239 * lto-cgraph.c (input_cgraph_1): Don't break existing
1240 instrumentation clone references.
1241 * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
1242 instrumented_version references appropriately.
1244 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1247 * tree-chkp.c (chkp_make_static_bounds): Share bounds var
1248 between nodes sharing assembler name.
1250 2014-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1253 * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
1254 constant moves if -mupper-regs-df.
1256 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
1258 (movtd_64bit_nodm): Likewise.
1259 (mov<mode>_32bit, FMOVE128 case): Likewise.
1261 2014-12-08 Sandra Loosemore <sandra@codesourcery.com>
1263 * simplify-rtx.c (simplify_relational_operation_1): Handle
1264 simplification identities for BICS patterns.
1266 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1268 * config/nvptx/nvptx.c: Convert htabs to hash_table.
1270 2014-12-08 David Edelsohn <dje.gcc@gmail.com>
1273 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
1274 [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
1275 TARGET_TOC. Always use rs6000_emit_move.
1277 2014-12-08 Mark Wielaard <mjw@redhat.com>
1280 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
1282 2014-11-15 David Wohlferd <dw@LimeGreenSocks.com>
1285 * cfgexpand.c (expand_asm_operands): Count all inline asm params.
1287 2014-12-08 David Malcolm <dmalcolm@redhat.com>
1290 * cgraph.h (xstrdup_for_dump): New function.
1291 * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
1292 within fprintf with xstrdup_for_dump.
1293 (cgraph_edge::make_speculative): Likewise.
1294 (cgraph_edge::resolve_speculation): Likewise.
1295 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1296 (cgraph_node::dump): Likewise.
1297 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1298 * ipa-cp.c (perhaps_add_new_callers): Likewise.
1299 * ipa-inline.c (report_inline_failed_reason): Likewise.
1300 (want_early_inline_function_p): Likewise.
1301 (edge_badness): Likewise.
1302 (update_edge_key): Likewise.
1303 (flatten_function): Likewise.
1304 (inline_always_inline_functions): Likewise.
1305 * ipa-profile.c (ipa_profile): Likewise.
1306 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1307 (ipa_make_edge_direct_to_target): Likewise.
1308 (remove_described_reference): Likewise.
1309 (propagate_controlled_uses): Likewise.
1310 * ipa-utils.c (ipa_merge_profiles): Likewise.
1312 2014-12-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1315 * ipa-polymorphic-call.c
1316 (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
1318 2014-12-08 Alex Velenko <Alex.Velenko@arm.com>
1320 * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
1322 * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
1325 2014-12-08 Felix Yang <felix.yang@huawei.com>
1326 Haijian Zhang <z.zhanghaijian@huawei.com>
1327 Jiji Jiang <jiangjiji@huawei.com>
1328 Pengfei Sui <suipengfei@huawei.com>
1330 * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
1332 (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
1333 vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
1334 (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
1335 vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
1336 vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
1337 vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
1338 vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
1339 vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
1340 vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
1341 vrsubhn_high_u64): Likewise.
1342 * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
1343 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
1344 * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
1345 * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
1346 subhn2, rsubhn2, urecpe): New builtins.
1348 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1350 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
1351 * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
1353 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1355 * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
1356 (expand_vec_perm_vpermi2_vpshub2): New.
1357 (ix86_expand_vec_perm_const_1): Use it.
1358 (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
1359 * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
1361 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1363 * tree-chkp.c (chkp_build_returned_bound): Don't predict
1364 return bounds for strchr calls.
1366 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1368 * tree-chkp.c (chkp_call_returns_bounds_p): New.
1369 (chkp_build_returned_bound): Use zero bounds as
1370 returned by calls not returning bounds.
1372 2014-12-08 Richard Biener <rguenther@suse.de>
1374 * builtins.c (fold_builtin_0): Remove unused ignore parameter.
1375 (fold_builtin_1): Likewise.
1376 (fold_builtin_3): Likewise.
1377 (fold_builtin_varargs): Likewise.
1378 (fold_builtin_2): Likewise. Do not fold stpcpy here.
1379 (fold_builtin_n): Adjust.
1380 (fold_builtin_stpcpy): Move to gimple-fold.c.
1381 (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
1382 (gimple_fold_builtin): Fold stpcpy here.
1384 2014-12-07 Trevor Saunders <tsaunders@mozilla.com>
1386 * symtab.c (symtab_node::verify): Check for section attribute before
1387 asserting something isn't in a section and a comdat group.
1389 2014-12-07 Oleg Endo <olegendo@gcc.gnu.org>
1392 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
1394 2014-12-07 Eric Botcazou <ebotcazou@adacore.com>
1396 * compare-elim.c: Fix head comment.
1397 (conforming_compare): Remove redundant test.
1398 (can_eliminate_compare): New function extracted from...
1399 (before_dom_children): ...here. Use it, replace direct uses of
1400 flag_non_call_exceptions and tidy up.
1401 (maybe_select_cc_mode): Tidy up.
1403 2014-12-07 Felix Yang <felix.yang@huawei.com>
1404 Shanyao Chen <chenshanyao@huawei.com>
1406 * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
1408 * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
1410 * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
1411 vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
1412 vcntq_u8): Rewrite using builtin functions.
1414 2014-12-07 Jan Hubicka <hubicka@ucw.cz>
1416 * symtab.c (symtab_node::equal_address_to): New function.
1417 * cgraph.h (symtab_node::equal_address_to): Declare.
1418 * fold-const.c (fold_comparison, fold_binary_loc): Use it.
1419 * c-family/c-common.c: Refuse weaks for symbols that can not change
1422 2014-12-07 Jonathan Wakely <jwakely@redhat.com>
1424 * doc/invoke.texi (Warning Options): Fix spelling and grammar.
1426 2014-12-06 James Greenhalgh <james.greenhalgh@arm.com>
1427 Sebastian Pop <s.pop@samsung.com>
1428 Brian Rzycki <b.rzycki@samsung.com>
1430 PR tree-optimization/54742
1431 * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
1432 max-fsm-thread-paths): New.
1434 * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
1435 max-fsm-thread-paths): Documented.
1437 * tree-cfg.c (split_edge_bb_loc): Export.
1438 * tree-cfg.h (split_edge_bb_loc): Declared extern.
1440 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
1441 original value of cond when simplification fails.
1442 (fsm_find_thread_path): New.
1443 (fsm_find_control_statement_thread_paths): New.
1444 (thread_through_normal_block): Call find_control_statement_thread_paths.
1446 * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
1449 (duplicate_seme_region): New.
1450 (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
1451 calling duplicate_seme_region.
1453 * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
1455 2014-12-06 H.J. Lu <hongjiu.lu@intel.com>
1458 * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
1459 for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
1461 2014-12-05 Jakub Jelinek <jakub@redhat.com>
1464 * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
1465 non-NULL, call maybe_get_dominating_check on it even if g is
1468 2014-12-05 Jeff Law <law@redhat.com>
1470 * doc/md.texi: Note problems using function calls to determine
1471 insn lengths and point readers to a potential workaround.
1473 2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
1475 * combine.c (is_parallel_of_n_reg_sets)
1476 (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
1478 2014-12-05 Andrew Pinski <apinski@cavium.com>
1480 * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
1481 than CF10 so 2 is appended on the code.
1482 * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
1483 (bswap<mode>2): This so it matches for the optabs.
1485 2014-12-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1487 * regrename.c (find_best_rename_reg): Rename to ...
1488 (find_rename_reg): This. Also add a parameter to skip tick check.
1489 * regrename.h: Likewise.
1490 * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
1492 2014-12-05 Martin Jambor <mjambor@suse.cz>
1495 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
1496 from bits to bytes after checking they are byte-aligned.
1498 2014-12-05 Renlin Li <renlin.li@arm.com>
1500 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
1501 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1502 * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
1505 2014-12-05 Bin Cheng <bin.cheng@arm.com>
1507 * config/aarch64/aarch64.md (load_pair<mode>): Split to
1508 load_pairsi, load_pairdi, load_pairsf and load_pairdf.
1509 (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
1510 from load_pair<mode>. New alternative to support int/fp
1511 registers in fp/int mode patterns.
1512 (store_pair<mode>:): Split to store_pairsi, store_pairdi,
1513 store_pairsf and store_pairdi.
1514 (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
1515 from store_pair<mode>. New alternative to support int/fp
1516 registers in fp/int mode patterns.
1517 (*load_pair_extendsidi2_aarch64): New pattern.
1518 (*load_pair_zero_extendsidi2_aarch64): New pattern.
1519 (aarch64-ldpstp.md): Include.
1520 * config/aarch64/aarch64-ldpstp.md: New file.
1521 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
1523 (extract_base_offset_in_addr): New.
1524 (aarch64_operands_ok_for_ldpstp): New.
1525 (aarch64_operands_adjust_ok_for_ldpstp): New.
1526 * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
1527 (TARGET_SCHED_FUSION_PRIORITY): New hook.
1528 (fusion_load_store): New functon.
1529 (extract_base_offset_in_addr): New function.
1530 (aarch64_gen_adjusted_ldpstp): New function.
1531 (aarch64_sched_fusion_priority): New function.
1532 (aarch64_operands_ok_for_ldpstp): New function.
1533 (aarch64_operands_adjust_ok_for_ldpstp): New function.
1535 2014-12-05 Olivier Hainque <hainque@adacore.com>
1537 * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
1538 * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
1539 DWARF_REG_TO_UNWIND_COLUMN.
1541 2014-12-05 Olivier Hainque <hainque@adacore.com>
1543 * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
1544 one particular reg for expand_builtin_init_dwarf_reg_sizes.
1545 (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
1546 account for dwarf register spans.
1548 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1551 * config/i386/i386.md (*jcc_1_bnd): New.
1554 (*jcc_1): Remove bnd prefix.
1558 2014-12-05 Renlin Li <renlin.li@arm.com>
1560 * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
1562 (aarch64_override_options): Use selected_cpu's tuning.
1564 2014-12-05 David Edelsohn <dje.gcc@gmail.com>
1566 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
1567 alignment to section name. Increase default alignment to word.
1569 2014-12-05 Martin Jambor <mjambor@suse.cz>
1571 * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
1572 (cgraph_edge): New method redirect_callee_duplicating_thunks.
1573 * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
1575 (redirect_edge_duplicating_thunks): Turned into edge method
1576 redirect_callee_duplicating_thunks.
1577 (cgraph_node::expand_all_artificial_thunks): New method.
1578 (create_clone): Call expand_all_artificial_thunks.
1579 * ipa-cp.c (perhaps_add_new_callers): Call
1580 redirect_callee_duplicating_thunks instead of redirect_callee.
1581 Also call expand_all_artificial_thunks.
1583 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1586 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target
1589 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1591 * diagnostic.h (diagnostic_expand_location): New inline function.
1592 * diagnostic.c (diagnostic_build_prefix): Use it.
1593 (diagnostic_show_locus): Likewise.
1595 2014-12-04 H.J. Lu <hongjiu.lu@intel.com>
1598 * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
1599 * configure: Regenerated.
1601 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1603 * diagnostic.c (diagnostic_color_init): New.
1604 * diagnostic.h: Declare.
1605 * gcc.c (driver::global_initializations): Use it.
1606 (driver_handle_option): Handle -fdiagnostics-color_.
1607 * toplev.c: Do not include diagnostic-color.h.
1608 (process_options): Do not initialize color diagnostics here.
1609 * common.opt (fdiagnostics-color=): Add Driver.
1610 * opts-global.c (init_options_once): Initialize color here.
1611 * opts.c (common_handle_option): Use diagnostics_color_init.
1612 * diagnostic-color.h: Fix comment.
1614 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1616 * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
1618 (buffer): Rename this variable to...
1621 (do_niy): Rename param from "buffer" to "pp".
1622 (dump_decl_name): Likewise.
1623 (dump_function_name): Likewise.
1624 (dump_function_declaration): Likewise.
1625 (dump_array_domain): Likewise.
1626 (dump_omp_clause): Likewise.
1627 (dump_omp_clauses): Likewise.
1628 (dump_location): Likewise.
1629 (dump_block_node): Likewise.
1630 (dump_generic_node): Likewise.
1631 (print_declaration): Likewise.
1632 (print_struct_decl): Likewise.
1633 (print_call_name): Likewise.
1634 (pretty_print_string): Likewise.
1635 (newline_and_indent): Likewise.
1637 (print_generic_decl): Update for renaming of "buffer" to
1639 (print_generic_stmt): Likewise.
1640 (print_generic_stmt_indented): Likewise.
1641 (print_generic_expr): Likewise.
1642 (maybe_init_pretty_print): Likewise.
1644 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1647 * tree-pretty-print.c: Eliminate include of <new>.
1648 (buffer): Convert this variable from a pretty_printer to a
1650 (initialized): Eliminate this variable in favor of the NULL-ness
1652 (print_generic_decl): Update for "buffer" becoming a pointer.
1653 (print_generic_stmt): Likewise.
1654 (print_generic_stmt_indented): Likewise.
1655 (print_generic_expr): Likewise.
1656 (maybe_init_pretty_print): Likewise, allocating "buffer" on the
1657 heap and using its non-NULL-ness to ensure idempotency.
1659 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1662 * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
1663 ipa_add_new_function on function_insertion_hook_holder being
1665 * ipa-reference.c (ipa_reference_c_finalize): Remove
1666 node_removal_hook_holder and node_duplication_hook_holder if
1667 they've been added to symtab.
1668 * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
1669 before cgraph_c_finalize so that the former can access "symtab".
1671 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1673 * doc/cfg.texi (GIMPLE statement iterators): Add note about
1674 gphi_iterator, and use one in the example.
1675 * doc/gimple.texi (Tuple specific accessors): Add missing
1676 GIMPLE_GOTO section and menu item.
1677 (gimple_build_asm, gimple gimple_build_assign_with_ops)
1678 gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
1679 description of removed functions.
1680 (gimple_build_assign, gimple_build_bind, gimple_build_call,
1681 gimple_build_call_from_tree, gimple_build_call_vec,
1682 gimple_build_catch, gimple_build_cond,
1683 gimple_build_cond_from_tree, gimple_build_debug_bind,
1684 gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
1685 gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
1686 gimple_build_omp_continue, gimple_build_omp_critical,
1687 gimple_build_omp_for, gimple_build_omp_parallel,
1688 gimple_build_omp_sections, gimple_build_omp_single,
1689 gimple_build_return, gimple_build_resx, gimple_build_switch,
1690 gimple_build_try): Update return type within description to
1691 reflect changes in gimple.h to using gimple subclasses.
1692 (gimple_build_asm_vec): Update return type, params and
1694 (gimple_asm_ninputs): Update param.
1695 (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
1696 gimple_asm_set_input_op, gimple_asm_output_op
1697 gimple_asm_set_output_op, gimple_asm_clobber_op,
1698 gimple_asm_set_clobber_op, gimple_asm_string,
1699 gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
1700 gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
1701 gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
1702 gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
1703 gimple_call_return_type, gimple_call_set_chain,
1704 gimple_call_set_tail, gimple_call_tail_p,
1705 gimple_call_copy_skip_args, gimple_catch_types,
1706 gimple_catch_types_ptr, gimple_catch_handler,
1707 gimple_catch_set_types, gimple_catch_set_handler,
1708 gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
1709 gimple_cond_true_label, gimple_cond_set_true_label,
1710 gimple_cond_set_false_label, gimple_cond_false_label,
1711 gimple_cond_make_false, gimple_cond_make_true,
1712 gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
1713 gimple_eh_must_not_throw_fndecl,
1714 gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
1715 gimple_label_set_label, gimple_goto_set_dest,
1716 gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
1717 gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
1718 gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
1719 gimple_omp_continue_control_def,
1720 gimple_omp_continue_control_def_ptr,
1721 gimple_omp_continue_set_control_def,
1722 gimple_omp_continue_control_use,
1723 gimple_omp_continue_control_use_ptr,
1724 gimple_omp_continue_set_control_use, gimple_omp_critical_name,
1725 gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
1726 gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
1727 gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
1728 gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
1729 gimple_omp_parallel_data_arg_ptr,
1730 gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
1731 gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
1732 gimple_resx_set_region, gimple_return_retval,
1733 gimple_return_set_retval, gimple_switch_num_labels,
1734 gimple_switch_set_num_labels, gimple_switch_index,
1735 gimple_switch_set_index, gimple_switch_label,
1736 gimple_switch_set_label, gimple_switch_default_label,
1737 gimple_switch_set_default_label, gimple_try_set_eval,
1738 gimple_try_set_cleanup): Update initial param within description
1739 to reflect changes in gimple.h to using gimple subclasses.
1740 (Adding a new GIMPLE statement code): Update to reflect gimple
1741 statement subclassing.
1743 2014-12-04 Sriraman Tallam <tmsriram@google.com>
1744 H.J. Lu <hongjiu.lu@intel.com>
1746 * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
1747 Linux/x86-64 linker supports PIE with copy reloc.
1748 * config.in: Regenerated.
1749 * configure: Likewise.
1751 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1752 pc-relative address for undefined, non-weak, non-function
1753 symbol reference in 64-bit PIE if linker supports PIE with
1756 * doc/sourcebuild.texi: Document pie_copyreloc target.
1758 2014-12-04 Marek Polacek <polacek@redhat.com>
1761 * fold-const.c (fold_unary_loc): Perform the negation in A's type
1762 when transforming ~ (A - 1) or ~ (A + -1) to -A.
1764 2014-12-04 Tobias Burnus <burnus@net-b.de>
1766 * Makefile.in: Remove CLOOGLIB and CLOOGINC.
1768 2014-12-04 Richard Biener <rguenther@suse.de>
1770 * doc/match-and-simplify.texi: Update for recent changes.
1772 2014-12-04 Martin Jambor <mjambor@suse.cz>
1774 * ipa-prop.h (ipa_alignment): New type.
1775 (ipa_jump_func): New field alignment.
1776 (ipcp_transformation_summary) New type.
1777 (ipcp_grow_transformations_if_necessary): Declare.
1778 (ipa_node_agg_replacements): Removed.
1779 (ipcp_transformations): Declare.
1780 (ipcp_get_transformation_summary): New function.
1781 (ipa_get_agg_replacements_for_node): Use it.
1782 * ipa-cp.c (ipcp_param_lattices): New field alignment.
1783 (print_all_lattices): Also print alignment.
1784 (alignment_bottom_p): New function.
1785 (set_alignment_to_bottom): Likewise.
1786 (set_all_contains_variable): Also set alignment to bottom.
1787 (initialize_node_lattices): Likewise.
1788 (propagate_alignment_accross_jump_function): New function.
1789 (propagate_constants_accross_call): Call it.
1790 (ipcp_store_alignment_results): New function.
1791 (ipcp_driver): Call it.
1792 * ipa-prop.c (ipa_node_agg_replacements): Removed.
1793 (ipcp_transformations): New.
1794 (ipa_print_node_jump_functions_for_edge): Also print alignment.
1795 (ipa_set_jf_unknown): New function.
1796 (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
1797 (ipa_compute_jump_functions_for_edge): Also calculate alignment.
1798 (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
1799 (ipcp_grow_transformations_if_necessary): New function.
1800 (ipa_set_node_agg_value_chain): Use ipcp_transformations.
1801 (ipa_node_removal_hook): Likewise.
1802 (ipa_node_duplication_hook): Also duplicate alignment results.
1803 (ipa_write_jump_function): Also stream alignments.
1804 (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
1806 (write_agg_replacement_chain): Renamed to
1807 write_ipcp_transformation_info, also stream alignments.
1808 (read_agg_replacement_chain): Renamed to
1809 read_ipcp_transformation_info, also stream alignments.
1810 (ipa_prop_write_all_agg_replacement): Renamed to
1811 ipcp_write_transformation_summaries. Stream always.
1812 (ipa_prop_read_all_agg_replacement): Renamed to
1813 ipcp_read_transformation_summaries.
1814 (ipcp_update_alignments): New function.
1815 (ipcp_transform_function): Call it, free also alignments.
1817 2014-12-04 Richard Biener <rguenther@suse.de>
1819 * gimple-fold.c (replace_stmt_with_simplification): Properly
1820 fail when maybe_push_res_to_seq fails.
1822 2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1824 * config/aarch64/aarch64.md (define_insn "prefetch"): New.
1826 2014-12-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1828 * doc/install.texi: Remove mentions of cloog and ppl.
1829 * doc/invoke.texi: Likewise
1831 2014-12-04 Jakub Jelinek <jakub@redhat.com>
1834 * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
1835 Handle COMPOUND_EXPR.
1837 2014-12-04 Richard Biener <rguenther@suse.de>
1839 * builtins.c (target_newline): Export.
1840 (target_percent_s_newline): Likewise.
1841 (fold_builtin_1): Do not fold printf functions here.
1842 (fold_builtin_2): Likewise.
1843 (fold_builtin_3): Likewise, do not fold strncat.
1844 (fold_builtin_strncat): Move to gimple-fold.c.
1845 (fold_builtin_printf): Likewise.
1846 * builtins.h (target_newline): Declare.
1847 (target_percent_s_newline): Likewise.
1848 * gimple-fold.c (gimple_fold_builtin_strncat): Move from
1849 builtins.c and gimplify.
1850 (gimple_fold_builtin_printf): Likewise.
1851 (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
1852 vprintf, printf_chk and vprintf_chk here.
1854 2014-12-03 David Edelsohn <dje.gcc@gmail.com>
1856 * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
1857 (floatunssidf2_internal): Same.
1858 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
1859 (rs6000_emit_int_cmove): Same.
1860 (rs6000_sched_reorder): Same.
1861 (altivec_expand_vec_perm_const): Same.
1862 (rs6000_expand_vec_perm_const_1): Same.
1864 2014-12-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1866 PR rtl-optimization/64010
1867 * reload.c (push_reload): Before reusing a register contained
1868 in an operand as input reload register, ensure that it is not
1869 used in CALL_INSN_FUNCTION_USAGE.
1871 2014-12-03 Ulrich Drepper <drepper@gmail.com>
1873 * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
1876 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1878 * expmed.c (expand_mult): Use std::swap.
1881 * expmed.c (expand_widening_mult): Return const0_rtx if
1884 * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
1885 (gimple_build_assign): Document the new overloads.
1887 2014-12-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1890 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1891 not create LO_SUM address for constant addresses if the type can
1892 go in Altivec registers.
1894 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1897 * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
1898 (pp_flush): Flush only if flush_p.
1899 (pp_really_flush): New.
1900 * pretty-print.h (struct output_buffer): Add flush_p.
1901 (pp_really_flush): Declare.
1903 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1905 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
1906 gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
1907 (GENGTYPE_OBJS): New.
1908 (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
1909 Remove explicit dependencies.
1910 (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
1911 CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
1912 instead of -DGENERATOR_FILE.
1913 (CFLAGS-errors.o): New.
1914 * gengtype.c: Instead of testing GENERATOR_FILE define, test
1915 HOST_GENERATOR_FILE. If defined, include config.h and define
1916 GENERATOR_FILE afterwards, otherwise include bconfig.h.
1917 * gengtype-parse.c: Likewise.
1918 * gengtype-state.c: Likewise.
1919 * gengtype-lex.l: Likewise.
1920 * errors.c: Likewise.
1922 2014-12-03 Joern Rennecke <joern.rennecke@embecosm.com>
1924 * config/epiphany/epiphany.c (epiphany_override_options):
1925 If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
1926 * config/epiphany/epiphany.md (mov<mode>cc): Don't use
1927 reverse_condition_maybe_unordered if flag_finite_math_only is set.
1929 2014-12-03 Andrew Stubbs <ams@codesourcery.com>
1933 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1934 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1935 when architecture is older than ARMv7.
1937 2014-12-03 Richard Biener <rguenther@suse.de>
1939 * builtins.c (target_percent_c): Export.
1940 (fold_builtin_fprintf): Move to gimple-fold.c.
1941 (fold_builtin_2): Do not fold fprintf functions.
1942 (fold_builtin_3): Likewise.
1943 (fold_builtin_4): Remove.
1944 (fold_builtin_n): Do not call fold_builtin_4.
1945 * builtins.h (target_percent_c): Declare.
1946 * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
1947 builtins.c and gimplify.
1948 (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
1949 fprintf_chk and vfprintf_chk here.
1951 2014-12-03 Martin Jambor <mjambor@suse.cz>
1954 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
1955 type sizes before view_converting.
1957 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
1959 PR rtl-optimization/64151
1960 PR rtl-optimization/64156
1961 * ira-costs.c (scan_one_insn): Revert r218266.
1963 2014-12-03 Richard Biener <rguenther@suse.de>
1965 * builtins.c (fold_builtin_fpclassify): Change to take
1966 array of arguments instead of CALL_EXPR tree.
1967 (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
1968 (fold_builtin_n): Dispatch to fold_builtin_varargs.
1969 (fold_call_expr): Always use fold_builtin_n.
1970 (fold_builtin_call_array): Change to not build the unfolded call,
1971 always use fold_builtin_n.
1972 (fold_builtin_varargs): Change to take array of arguments instead
1974 (fold_call_stmt): Always use fold_builtin_n.
1975 * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
1976 * fold-const.c (fold_build_call_array_loc): Build the call
1977 if fold_builtin_call_array returned NULL_TREE.
1978 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
1979 a CALL_EXPR and use fold_builtin_call_array instead of
1982 2014-12-03 Alan Lawrence <alan.lawrence@arm.com>
1984 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
1985 bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
1986 ior<mode>3, xor<mode>3, one_cmpl<mode>2,
1987 aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
1988 aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
1989 aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
1990 ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
1991 reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
1992 vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
1993 Change VDQ to VDQ_I.
1995 (mul<mode>3): Change VDQM to VDQ_BHSI.
1996 (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
1997 aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
1998 aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
2000 (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
2001 aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
2002 aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
2003 Change VDW to VD_BHSI.
2004 (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
2005 Change VDIC to VD_BHSI.
2007 * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
2008 saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
2009 ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
2011 * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
2012 VDIC, VDQQHS): Remove.
2013 (Vwtype): Update comment (changing VDW to VD_BHSI).
2015 2014-12-03 Richard Biener <rguenther@suse.de>
2018 * builtins.c (fold_builtin_logarithm): Implement simplifications ...
2019 * match.pd: ... here as patterns.
2021 2014-12-03 Prachi Godbole <prachi.godbole@imgtec.com>
2023 * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
2024 p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
2025 (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
2028 2014-12-03 Tom de Vries <tom@codesourcery.com>
2030 PR rtl-optimization/63957
2031 * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
2032 * final.c (rest_of_handle_final): Replace flag_use_caller_save with
2034 (get_call_reg_set_usage): Same.
2035 * lra-assigns.c (lra_assign): Same.
2036 * lra-constraints.c (need_for_call_save_p): Same.
2037 * lra-lives.c (process_bb_lives): Same.
2038 * lra.c (lra): Same.
2039 * calls.c (expand_call): Same.
2040 (emit_library_call_value_1): Same.
2041 * config/arm/arm.c (arm_option_override): Same.
2042 * opts.c (default_options_table): Replace OPT_fuse_caller_save with
2044 * target.def (call_fusage_contains_non_callee_clobbers): Replace
2045 fuse-caller-save with fipa-ra.
2046 * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
2049 2014-12-03 Yury Gribov <y.gribov@samsung.com>
2051 * sanopt.c (maybe_get_single_definition): New function.
2052 (maybe_get_dominating_check): Ditto.
2053 (can_remove_asan_check): Ditto.
2054 (struct tree_map_traits): New struct.
2055 (struct sanopt_ctx): Use custom traits for asan_check_map.
2056 (maybe_optimize_ubsan_null_ifn): Move code to
2057 maybe_get_dominating_check.
2058 (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
2059 into account when optimizing.
2060 (sanopt_optimize_walker): Optimize ASan checks even when
2063 2014-12-03 Ilya Enkovich <ilya.enkovich@intel.com>
2065 * config/i386/constraints.md (Yr): New.
2066 * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
2067 (REG_CLASS_NAMES): Likewise.
2068 (REG_CLASS_CONTENTS): Likewise.
2069 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
2070 which use only NO_REX_SSE_REGS.
2071 (vec_set<mode>_0): Likewise.
2072 (*vec_setv4sf_sse4_1): Likewise.
2073 (sse4_1_insertps): Likewise.
2074 (*sse4_1_extractps): Likewise.
2075 (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
2076 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
2077 (*sse4_1_<code><mode>3<mask_name>): Likewise.
2078 (*sse4_1_<code><mode>3): Likewise.
2079 (*sse4_1_eqv2di3): Likewise.
2080 (sse4_2_gtv2di3): Likewise.
2081 (*vec_extractv4si): Likewise.
2082 (*vec_concatv2si_sse4_1): Likewise.
2083 (vec_concatv2di): Likewise.
2084 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
2085 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
2086 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
2087 (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
2088 (<sse4_1_avx2>_mpsadbw): Likewise.
2089 (<sse4_1_avx2>packusdw<mask_name>): Likewise.
2090 (<sse4_1_avx2>_pblendvb): Likewise.
2091 (sse4_1_pblendw): Likewise.
2092 (sse4_1_phminposuw): Likewise.
2093 (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
2094 (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
2095 (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
2096 (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
2097 (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
2098 (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2099 (sse4_1_ptest): Likewise.
2100 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
2101 (sse4_1_round<ssescalarmodesuffix>): Likewise.
2102 * config/i386/subst.md (mask_prefix4): New.
2103 * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
2105 2014-12-03 Segher Boessenkool <segher@kernel.crashing.org>
2107 PR rtl-optimization/52714
2108 * combine.c (try_combine): Allow combining two insns into two
2109 new insns if at least one of those is a noop.
2111 2014-12-03 Bin Cheng <bin.cheng@arm.com>
2113 * target.def (fusion_priority): Wrap code with @smallexample.
2114 * doc/tm.texi: Regenerated.
2116 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2118 * diagnostic.c (diagnostic_show_locus): Honor override_column when
2121 2014-12-02 Dmitry Vyukov <dvyukov@google.com>
2123 * asan.c: (asan_finish_file): Use default priority for constructors
2126 2014-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2129 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
2130 invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
2132 2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
2135 * config/i386/i386.c (decide_alg): Stop only if there aren't
2136 any usable algorithms.
2138 2014-12-02 Tom de Vries <tom@codesourcery.com>
2140 PR rtl-optimization/63718
2141 * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
2144 2014-12-02 Richard Biener <rguenther@suse.de>
2146 * match.pd: When combining divisions exclude the degenerate
2147 case involving INT_MIN from overflow handling.
2149 2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
2151 * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2153 2014-12-02 Martin Jambor <mjambor@suse.cz>
2156 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
2157 (cgraph_edge_brings_value_p): New parameter dest, use
2158 same_node_or_its_all_contexts_clone_p and check availability.
2159 (cgraph_edge_brings_value_p): Likewise.
2160 (get_info_about_necessary_edges): New parameter dest, pass it to
2161 cgraph_edge_brings_value_p. Update caller.
2162 (gather_edges_for_value): Likewise.
2163 (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
2164 both the destination and availability.
2166 2014-12-02 Uros Bizjak <ubizjak@gmail.com>
2169 * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
2170 using post-reload splitter. Use peephole2 pass instead.
2171 (call_value_osf_tlsldm): Ditto.
2172 (TLS_CALL): New int iterator.
2173 (tls): New int attribute.
2174 (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
2175 and call_value_tlsldm using TLS_CALL int iterator.
2177 2014-12-02 Richard Biener <rguenther@suse.de>
2178 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2180 * genmatch.c: Include hash-set.h.
2181 (fatal_at): Add source_location overload.
2182 (parser::record_operlist): New method.
2183 (parser::push_simplify): Likewise.
2184 (parser::oper_lists_set): New member.
2185 (parser::oper_lists): Likewise.
2186 (parser::parse_operation): Record seen operator list references.
2187 (parser::parse_c_expr): Likewise.
2188 (parser::parse_simplify): Init oper_lists_set and oper_lists
2189 and use push_simplify.
2190 (parser::parser): Init oper_lists_set and oper_lists.
2192 2014-12-02 Richard Biener <rguenther@suse.de>
2194 * match.pd: Restrict division combining to trunc_div and
2197 2014-12-02 Jakub Jelinek <jakub@redhat.com>
2199 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
2200 Remove NULL last argument from create_tmp_var calls.
2201 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
2202 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
2203 * config/i386/i386.c (add_condition_to_bb,
2204 ix86_atomic_assign_expand_fenv): Likewise.
2205 * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
2206 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2207 * config/aarch64/aarch64-builtins.c
2208 (aarch64_atomic_assign_expand_fenv): Likewise.
2209 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2211 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
2212 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
2213 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2215 * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
2216 gimple_build_assign instead of gimple_build_assign_with_ops and swap
2217 the order of first two arguments.
2218 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2219 Likewise. Remove last NULL_TREE argument.
2221 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2223 PR rtl-optimization/59278
2224 * combine (reg_dead_at_p): Consider REG_UNUSED notes.
2226 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2228 * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2230 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2232 * combine.c (is_parallel_of_n_reg_sets): New function.
2233 (can_split_parallel_of_n_reg_sets): New function.
2234 (try_combine): If I2 is a PARALLEL of two SETs, split it into
2235 two insns if possible.
2237 2014-12-01 Tobias Burnus <burnus@net-b.de>
2238 Jack Howarth <howarth@bromo.med.uc.edu>
2241 * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
2243 * doc/install.texi (ISL): Permit ISL 0.14.
2244 * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
2245 Conditionally use ISL 0.13+ functions.
2246 * graphite-interchange.c: Make 'extern "C"' conditional.
2247 * graphite-isl-ast-to-gimple.c: Ditto.
2248 * graphite-poly.c: Ditto.
2249 * graphite-sese-to-poly.c: Ditto.
2250 * config.in: Regenerate.
2251 * gcc/configure: Regenerate.
2253 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2255 * combine.c (distribute_links): Handle multiple SETs.
2257 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2259 * combine.c (struct insn_link): New field `regno'.
2260 (alloc_insn_link): New parameter `regno'. Use it.
2261 (find_single_use): Check the new field.
2262 (can_combine_def_p, can_combine_use_p): New functions. Split
2264 (create_log_links): ... here. Correct data type of `regno'.
2265 Adjust call to alloc_insn_link.
2266 (adjust_for_new_dest): Find regno, use it in call to
2268 (try_combine): Check reg_used_between_p when combining a PARALLEL
2269 as earlier insn. Adjust call to alloc_insn_link.
2270 (distribute_links): Check the new field.
2272 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2275 * real.c (real_from_string): Add missing mpfr_clear.
2277 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2280 * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
2281 release of stmts by converting it to an auto_vec.
2283 2014-12-01 Richard Biener <rguenther@suse.de>
2285 * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
2286 -Wno-unused-variable and -Wno-unused-but-set-variable to restore
2287 bootstrap with old GCC.
2288 (generic-match.o-warn): Likewise.
2290 2014-12-01 Richard Biener <rguenther@suse.de>
2292 * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
2293 Properly handle FIXED_CST shifts by INTEGER_CST.
2294 (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
2295 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
2296 VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
2297 VEC_WIDEN_MULT_ODD_EXPR handling here from ...
2298 (fold_binary_loc): ... here. Call const_binop overload
2301 2014-12-01 Marek Polacek <polacek@redhat.com>
2302 Jakub Jelinek <jakub@redhat.com>
2305 * ubsan.c (instrument_object_size): Stop searching if the base
2306 occurs in abnormal phi.
2308 2014-12-01 Marek Polacek <polacek@redhat.com>
2311 * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
2313 2014-12-01 Jakub Jelinek <jakub@redhat.com>
2315 * gimple.h (gimple_build_assign_stat): Remove prototype.
2316 (gimple_build_assign): Remove define. Add overload prototypes
2317 with tree lhs and either a tree rhs, or enum tree_code and
2318 1, 2 or 3 tree operands.
2319 * gimple.c (gimple_build_assign_stat): Renamed to...
2320 (gimple_build_assign): ... this. Add overloads with
2321 enum tree_code and 1, 2 or 3 tree operands.
2322 (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
2323 Rename the 3 operand overload to ...
2324 (gimple_build_assign_1): ... this. Make it static inline.
2325 * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
2326 instead of gimple_build_assign_with_ops, swap the order of first
2327 two arguments and adjust formatting where necessary.
2328 * tree-vect-slp.c (vect_get_constant_vectors,
2329 vect_create_mask_and_perm): Likewise.
2330 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2331 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2332 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2333 * tsan.c (instrument_builtin_call): Likewise.
2334 * tree-chkp.c (chkp_compute_bounds_for_assignment,
2335 chkp_generate_extern_var_bounds): Likewise.
2336 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2337 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2338 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2339 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2340 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
2341 gimple_mod_subtract): Likewise.
2342 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2343 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2344 vect_recog_sad_pattern, vect_handle_widen_op_by_const,
2345 vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
2346 vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
2347 vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
2348 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2349 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2350 adjust_bool_pattern_cast, adjust_bool_pattern,
2351 vect_recog_bool_pattern): Likewise.
2352 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
2353 insert_initializers, introduce_cast_before_cand,
2354 replace_one_candidate): Likewise.
2355 * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
2356 powi_as_mults, build_and_insert_binop, build_and_insert_cast,
2357 pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
2359 * tree-tailcall.c (adjust_return_value_with_ops,
2360 update_accumulator_with_ops): Likewise.
2361 * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
2362 * tree-ssa-reassoc.c (build_and_add_sum,
2363 optimize_range_tests_to_bit_test, update_ops,
2364 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2365 negate_value, repropagate_negates, attempt_builtin_powi,
2366 reassociate_bb): Likewise.
2367 * tree-vect-loop.c (vect_is_simple_reduction_1,
2368 get_initial_def_for_induction, vect_create_epilog_for_reduction):
2370 * ipa-split.c (split_function): Likewise.
2371 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2372 abs_replacement, neg_replacement): Likewise.
2373 * tree-profile.c (gimple_gen_edge_profiler): Likewise.
2374 * tree-vrp.c (simplify_truth_ops_using_ranges,
2375 simplify_float_conversion_using_ranges,
2376 simplify_internal_call_using_ranges): Likewise.
2377 * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
2378 * tree-vect-generic.c (expand_vector_divmod,
2379 optimize_vector_constructor): Likewise.
2380 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
2381 instrument_bool_enum_load): Likewise.
2382 * tree-ssa-loop-manip.c (create_iv): Likewise.
2383 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2384 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2385 expand_cilk_for, simd_clone_adjust): Likewise.
2386 * trans-mem.c (expand_transaction): Likewise.
2387 * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
2388 vect_setup_realignment, vect_permute_load_chain,
2389 vect_shift_permute_load_chain): Likewise.
2390 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2391 vectorizable_simd_clone_call, vect_gen_widened_results_half,
2392 vect_create_vectorized_demotion_stmts, vectorizable_conversion,
2393 vectorizable_shift, vectorizable_operation, vectorizable_store,
2394 permute_vec_elements, vectorizable_load): Likewise.
2396 2014-12-01 Richard Biener <rguenther@suse.de>
2399 * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
2400 htab_hash_pointer to not break PCH.
2402 2014-12-01 Richard Biener <rguenther@suse.de>
2404 PR tree-optimization/15346
2405 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
2406 add -Wno-unused-but-set-variable.
2407 * match.pd: Combine two successive divisions.
2409 2014-12-01 Richard Biener <rguenther@suse.de>
2412 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
2414 * fold-const.c (fold_binary_loc): Remove transforms here.
2416 2014-12-01 Maciej W. Rozycki <macro@codesourcery.com>
2418 * config/mips/mips.c (mips16_build_call_stub): Move the save of
2419 the return address in $18 ahead of passing arguments to FPRs.
2421 2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
2424 * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
2425 values in array domain.
2427 2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2429 PR tree-optimization/63941
2430 * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
2431 DOM_BB has non-true predicate, conditionally set non-true predicate
2434 2014-12-01 Martin Jambor <mjambor@suse.cz>
2437 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
2438 value of the argument to the type of the value in the condition.
2440 2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
2444 * config/sh/sh.c (sh_unspec_insn_p,
2445 sh_insn_operands_modified_between_p): New functions.
2446 (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
2447 are modified or if it has side effects, may trap or is volatile.
2449 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2451 * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
2452 create_tmp_reg): Add default NULL value to last argument.
2453 * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
2454 * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
2455 last argument from create_tmp_var_raw, create_tmp_var,
2456 create_tmp_reg, make_ssa_name and copy_ssa_name calls.
2457 * tree-ssa-strlen.c (get_string_length): Likewise.
2458 * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
2459 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2460 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2461 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2462 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2463 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2464 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2465 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2466 * tsan.c (instrument_expr, instrument_builtin_call,
2467 instrument_func_entry): Likewise.
2468 * varpool.c (add_new_static_var): Likewise.
2469 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2470 * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
2471 gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
2472 gimplify_init_ctor_eval_range, gimplify_init_constructor,
2473 gimplify_omp_atomic, gimplify_expr): Likewise.
2474 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2475 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
2476 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
2477 vect_loop_versioning): Likewise.
2478 * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
2479 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2480 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2481 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2482 vect_recog_over_widening_pattern): Likewise.
2483 * tree-sra.c (build_ref_for_offset, create_access_replacement):
2485 * tree-cfg.c (make_blocks): Likewise.
2486 * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
2488 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2489 * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
2491 * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
2492 * tree-tailcall.c (update_accumulator_with_ops): Likewise.
2493 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
2494 execute_load_motion, reassociate_to_the_same_stmt): Likewise.
2495 * tree-ssa-reassoc.c (build_and_add_sum,
2496 optimize_range_tests_to_bit_test, update_ops,
2497 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2498 negate_value, repropagate_negates): Likewise.
2499 * tree-vect-loop.c (vect_is_simple_reduction_1,
2500 vect_create_epilog_for_reduction): Likewise.
2501 * ipa-split.c (split_function): Likewise.
2502 * tree-inline.c (remap_ssa_name, setup_one_parameter,
2503 declare_return_variable, tree_function_versioning): Likewise.
2504 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2505 * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
2507 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2508 neg_replacement): Likewise.
2509 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2511 * tree-vrp.c (simplify_truth_ops_using_ranges,
2512 simplify_float_conversion_using_ranges,
2513 simplify_internal_call_using_ranges): Likewise.
2514 * tree-switch-conversion.c (emit_case_bit_tests,
2515 build_one_array, build_arrays, gen_def_assigns): Likewise.
2516 * gimple-fold.c (gimple_fold_builtin_memory_op,
2517 gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
2518 * tree-vect-generic.c (expand_vector_divmod,
2519 optimize_vector_constructor): Likewise.
2520 * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
2521 ubsan_expand_objsize_ifn, instrument_si_overflow,
2522 instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
2523 * tree-outof-ssa.c (insert_backedge_copies): Likewise.
2524 * tree-ssa-loop-manip.c (create_iv,
2525 tree_transform_and_unroll_loop): Likewise.
2526 * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
2527 lower_rec_input_clauses, lower_lastprivate_clauses,
2528 expand_parallel_call, expand_omp_for_static_chunk,
2529 expand_omp_atomic_pipeline, expand_omp_target,
2530 maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
2531 lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
2532 lower_depend_clauses, lower_omp_target, lower_omp_1,
2533 ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
2534 * tree-parloops.c (take_address_of, create_phi_for_local_result,
2535 create_call_for_reduction_1, separate_decls_in_region,
2536 create_parallel_loop): Likewise.
2537 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
2538 handle_scalar_deps_crossing_scop_limits): Likewise.
2539 * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
2540 expand_assign_tm, expand_call_tm, expand_transaction,
2541 ipa_tm_insert_gettmclone_call): Likewise.
2542 * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
2544 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2545 vectorizable_call, vectorizable_simd_clone_call,
2546 vectorizable_conversion, vectorizable_store, permute_vec_elements,
2547 vectorizable_load): Likewise.
2549 2014-11-29 Tobias Burnus <burnus@net-b.de>
2550 Manuel López-Ibáñez <manu@gcc.gnu.org>
2552 * opt-functions.awk (lang_enabled_by): Support || for
2554 * optc-gen.awk: Ditto.
2555 * doc/options.texi (LangEnabledBy, EnabledBy): Document the
2558 2014-11-28 Mike Stump <mikestump@comcast.net>
2560 * bitmap.c (bitmap_ior): Zap current as it could be deleted.
2561 (bitmap_ior_and_compl): Likewise.
2563 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2566 * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
2569 2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2572 * config/rs6000/rs6000.md (and<mode>3): Don't generate
2573 and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2575 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2577 PR rtl-optimization/64087
2578 * lra-lives.c (process_bb_lives): Add debug output.
2579 (lra_create_live_ranges): Don't remove dead insn on the second
2580 call of lra_create_live_ranges_1.
2582 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
2584 PR rtl-optimization/64037
2585 * combine.c (setup_incoming_promotions): Pass the argument
2586 before any promotions happen to promote_function_mode.
2588 2014-11-28 Evgeny Stupachenko <evstupac@gmail.com>
2590 * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
2591 permutations to loads group of size 3.
2593 2014-11-28 Jiong Wang <jiong.wang@arm.com>
2595 * config/arm/arm.md (copysignsf3): New pattern.
2596 (copysigndf3): Likewise.
2598 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2599 Ilya Verbin <ilya.verbin@intel.com>
2601 * omp-low.c (lower_omp_critical): Mark critical sections
2602 inside target functions as offloadable.
2604 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2606 * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
2607 file contains sections with LTO and offload IR, respectively.
2609 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2611 * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
2612 (symbol_table::compile): Set flag_generate_offload if there is something
2614 * common.opt (flag_generate_offload): New Variable declaration.
2615 * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
2616 * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
2617 flag_generate_offload is set.
2618 * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
2619 * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
2621 * toplev.c (compile_file): Emit LTO marker if offload info has been
2622 previously emitted. Do not emit lto_slim marker if
2623 flag_generate_offload is without flag_generate_lto.
2624 * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
2626 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2628 * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
2629 * config/arm/arm-tables.opt: Regenerate.
2630 * config/arm/arm-tune.md: Regenerate.
2631 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
2632 * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
2635 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2637 * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
2638 Include cortex-a17.md.
2639 * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
2640 * config/arm/arm-cores.def (cortex-a17): New entry.
2641 * config/arm/arm-tables.opt: Regenerate.
2642 * config/arm/arm-tune.md: Regenerate.
2643 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
2644 * config/arm/cortex-a17.md: New file.
2645 * config/arm/cortex-a17-neon.md: New file.
2646 * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
2647 * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
2649 2014-11-28 Richard Biener <rguenther@suse.de>
2652 * genmatch.c (dt_node::gen_kids_1): New function, split out
2653 from dt_node::gen_kids.
2654 (decision_tree::cmp_node): DT_TRUE are generally not equal.
2655 (decision_tree::find_node): Treat DT_TRUE as barrier for
2656 node CSE on the same level.
2657 (dt_node::append_node): Do not keep DT_TRUE last.
2658 (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
2660 2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2662 * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
2665 2014-11-27 Uros Bizjak <ubizjak@gmail.com>
2667 * config/i386/i386.md (preferred_for_size): New attribute
2668 (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size
2669 attribute to conditionally disable alternative 1.
2670 (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size
2671 and prefered_for_speed attributes to conditionally disable
2673 (*movxf_internal): Split Yx*r constraints to r,*r. Use
2674 preferred_for_size attribute to conditionally disable
2675 alternatives 3 and 4.
2676 (*movdf_internal): Split Yd*r constraints to r,*r. Use
2677 preferred_for_size and prefered_for_speed attributes to conditionally
2678 disable alternatives 3 and 4.
2679 * config/i386/constraints.md (Yd, Yx): Remove register constraints.
2681 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2683 * dwarf2out.c (set_block_origin_self): Skip nested functions.
2685 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
2688 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
2690 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
2692 2014-11-27 Martin Liska <mliska@suse.cz>
2693 David Malcolm <dmalcolm@redhat.com>
2695 * ipa-icf.c (sem_function::equals_private): int* is replaced with
2697 (sem_function::bb_dict_test): Likewise.
2698 * ipa-icf.h: Likewise.
2700 2014-11-27 Richard Biener <rguenther@suse.de>
2703 * fold-const.c (const_unop): Re-instantiate missing condition
2704 before calling fold_abs_const.
2706 PR tree-optimization/64088
2707 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
2708 the stmt break from the loop over use operands.
2710 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
2712 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
2714 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
2715 (fold_builtin_cpu): Ditto.
2716 * doc/extend.texi: Documment it.
2718 2014-11-27 Jakub Jelinek <jakub@redhat.com>
2721 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
2722 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
2723 not only if modifier is EXPAND_INITIALIZER, but whenever
2724 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
2726 PR tree-optimization/64024
2727 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
2728 field. Add simd_clone_info field.
2729 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
2730 (STMT_VINFO_SIMD_CLONE_INFO): Define.
2731 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
2732 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
2733 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
2734 base and linear_step from analysis phase and use it during transform
2735 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
2736 multiplied by linear_step.
2737 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
2740 * alias.c (find_base_term): Use std::swap. Prefer tmp2
2741 if it is CONSTANT_P other than CONST_INT.
2743 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2746 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
2748 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
2749 make it TARGET_EITHER.
2750 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
2751 and move HFmode handling from consttable_4 to it.
2752 (consttable_4): Move HFmode handling to consttable_2 pattern.
2753 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
2754 (consttable_2): Ditto.
2756 2014-11-27 Richard Biener <rguenther@suse.de>
2758 * tree-ssa-sccvn.c (try_to_simplify): Allow
2759 gimple_fold_stmt_to_constant_1 to follow SSA edges.
2761 2014-11-27 Richard Biener <rguenther@suse.de>
2763 PR tree-optimization/64083
2764 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2765 forcibly mark loop for removal the wrong way.
2767 2014-11-27 Richard Biener <rguenther@suse.de>
2770 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
2771 and instead return false when !fstrict-aliasing.
2773 2014-11-27 Richard Biener <rguenther@suse.de>
2775 PR tree-optimization/61634
2776 * tree-vect-slp.c: Include gimple-walk.h.
2777 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
2778 down the SLP tree for one scalar statement.
2779 (vect_detect_hybrid_slp_1): New walker function.
2780 (vect_detect_hybrid_slp_2): Likewise.
2781 (vect_detect_hybrid_slp): Properly handle pattern statements
2782 in a pre-scan over all loop stmts.
2784 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2787 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2788 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2789 aarch64_convert_mode, aarch64_gen_ccmp_first,
2790 aarch64_gen_ccmp_next): New functions.
2791 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
2793 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2795 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
2796 without -pie or -shared, error on -fsanitize=thread -static instead.
2798 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
2801 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
2802 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2803 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
2804 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
2805 Add new optional parameter exclude_virtual_thunks.
2806 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
2807 optional parameter exclude_virtual_thunks.
2808 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
2809 (cgraph_node::set_pure_flag): Likewise.
2810 (cgraph_node::function_symbol): Simplified.
2811 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2812 * ipa-pure-const.c (analyze_function): For virtual thunks set
2813 pure_const_state to IPA_NEITHER.
2814 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
2816 2014-11-26 Richard Biener <rguenther@suse.de>
2819 * tree-data-ref.c (split_constant_offset_1): Do not follow
2820 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2822 2014-11-26 Richard Biener <rguenther@suse.de>
2824 * fold-const.h (const_unop): Declare.
2825 (const_binop): Likewise.
2826 * fold-const.c (const_binop): Export overload that expects
2827 a type parameter and dispatches to fold_relational_const as well.
2828 Check both operand kinds for guarding the transforms.
2829 (const_unop): New function, with constant folding from fold_unary_loc.
2830 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
2831 Remove constant folding done there from the simplifications.
2832 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
2833 (fold_negate_expr): Remove dead code from the REAL_CST case.
2834 Avoid building garbage in the COMPLEX_CST case.
2835 * gimple-match-head.c (gimple_resimplify1): Dispatch to
2837 (gimple_resimplify2): Dispatch to const_binop.
2838 (gimple_simplify): Likewise.
2840 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2843 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
2844 debug statement when searching for a new position for
2845 bounds load/creation statement.
2847 2014-11-26 Marek Polacek <polacek@redhat.com>
2850 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
2851 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
2852 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
2854 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2857 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
2858 proper size for function_code bitfield.
2859 (pack_ts_function_decl_value_fields): Likewise.
2861 2014-11-21 Mark Wielaard <mjw@redhat.com>
2863 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
2864 * opts.c (common_handle_option): Accept -gdwarf-5.
2865 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
2866 DW_LANG_C_plus_plus_14.
2867 (lower_bound_default): Likewise. Plus DW_LANG_C11.
2868 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
2869 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
2870 (output_compilation_unit_header): Output at most a DWARFv4 header.
2871 (output_skeleton_debug_sections): Likewise.
2872 (output_line_info): Likewise.
2873 (output_aranges): Document header version number.
2875 2014-11-26 Richard Biener <rguenther@suse.de>
2877 * gimple-fold.c (get_symbol_constant_value): Allow all
2878 GIMPLE register type zero-constants.
2880 2014-11-26 Mark Wielaard <mjw@redhat.com>
2882 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
2883 function decl has TREE_THIS_VOLATILE.
2885 2014-11-26 Richard Biener <rguenther@suse.de>
2887 PR tree-optimization/62238
2888 * tree-predcom.c (ref_at_iteration): Unshare the expression
2889 before gimplifying it.
2890 (prepare_initializers_chain): Discard unused seq.
2892 2014-11-26 Prachi Godbole <prachi.godbole@imgtec.com>
2894 * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
2897 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2899 * ira-lives.c (process_bb_node_lives): Make code with conditional
2900 REAL_PIC_OFFSET_TABLE_REGNUM.
2902 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2905 * ira-lives.c (process_bb_node_lives): Check and remove conflict
2906 of pic pseudo with pic hard reg.
2908 2014-11-25 Rohit <rohitarulraj@freescale.com>
2911 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
2912 added GCC hard register numbers for SPE high registers.
2914 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2916 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
2917 before removing it, not after.
2919 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2921 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
2924 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2926 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
2929 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2931 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
2932 (rest of file): Replace those with code resp. CODE.
2934 2014-11-25 Tom de Vries <tom@codesourcery.com>
2936 * tree-cfg.c (verify_sese): New function.
2937 (move_sese_region_to_fn): Call verify_sese.
2938 * tree-cfg.h (verify_sese): Declare.
2940 2014-11-25 Richard Biener <rguenther@suse.de>
2943 * lto-streamer-out.c (output_struct_function_base): Stream
2945 * lto-streamer-in.c (input_struct_function_base): Likewise.
2947 2014-11-25 Martin Liska <mliska@suse.cz>
2951 * sreal.c (sreal::operator+): Addition fixed.
2952 (sreal::signedless_plus): Negative numbers are
2954 (sreal::operator-): Subtraction is fixed.
2955 (sreal::signedless_minus): Negative numbers are
2957 * sreal.h (sreal::operator<): Equal negative numbers
2958 are compared correctly.
2959 (sreal::shift): New checking asserts are introduced.
2962 2014-11-25 Richard Biener <rguenther@suse.de>
2964 PR tree-optimization/61927
2965 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
2966 of group and pattern analysis to the one in GCC 4.8.
2968 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
2969 Jakub Jelinek <jakub@redhat.com>
2971 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
2973 * lto-wrapper.c (append_offload_options): Likewise.
2975 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
2977 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
2978 load the static chain if the call was originally direct.
2980 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
2983 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
2984 devirtualization is disabled.
2986 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2989 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
2990 Altivec & -16 mask if the type is not valid for Altivec registers.
2991 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
2992 reg) that occurs during push_reload processing.
2994 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
2995 alternative for moving constant vectors which are easy altivec
2996 constants to GPRs. Set the length attribute each of the
2999 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
3000 work in progress patch was committed instead of the fixes for
3002 * config/rs6000/rs6000.c: Likewise.
3004 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3007 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
3008 and -fno-devirtualize more carefully.
3009 (can_remove_node_now_p): Update.
3011 2014-11-24 Andrew Pinski <apinski@cavium.com>
3014 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
3016 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3018 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
3020 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3022 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
3023 Refactor by combining switch statements and make arrays into scalars.
3025 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
3028 * dbxout.c: Include stringpool.h
3029 (dbxout_type) [default]: Ignore auto type.
3031 2014-11-24 Richard Biener <rguenther@suse.de>
3033 PR tree-optimization/63679
3034 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
3035 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
3036 to properly leave off at -1.
3037 (fully_constant_vn_reference_p): Generalize folding from
3038 constant initializers.
3039 (vn_reference_lookup_3): When looking through aggregate copies
3040 handle offsetted reads and try simplifying the result to
3042 * gimple-fold.h (fold_ctor_reference): Export.
3043 * gimple-fold.c (fold_ctor_reference): Likewise.
3045 2014-11-24 Petr Murzin <petr.murzin@intel.com>
3047 * simplify-rtx.c (simplify_ternary_operation): Simplify
3048 vec_merge (vec_duplicate (vec_select)).
3050 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3052 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
3053 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
3054 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
3056 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3058 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
3059 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
3060 (cortexa57_tunings): Likewise.
3061 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
3063 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3065 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
3066 in the not conditional jump case.
3067 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3068 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3070 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3072 * config/aarch64/aarch64.c: Include tm-constrs.h
3073 (AARCH64_FUSE_ADRP_ADD): Define.
3074 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
3075 (cortexa53_tunings): Likewise.
3076 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
3078 2014-11-24 Martin Liska <mliska@suse.cz>
3080 * ipa-inline.c (edge_badness): long is replaced by sreal
3081 as fibonacci_heap template type.
3082 (update_edge_key): Likewise.
3083 (inline_small_functions): Likewise.
3085 2014-11-24 Martin Liska <mliska@suse.cz>
3087 * predict.c (propagate_freq): More elegant sreal API is used.
3088 (estimate_bb_frequencies): Precomputed constants replaced by integer
3090 * sreal.c (sreal::normalize): New function.
3091 (sreal::to_int): Likewise.
3092 (sreal::operator+): Likewise.
3093 (sreal::operator-): Likewise.
3094 (sreal::signedless_plus): Likewise.
3095 (sreal::signedless_minus): Likewise.
3096 (sreal::operator/): Negative number support is added.
3097 * sreal.h: Definition of new functions added.
3098 (inline sreal operator<<): New function.
3099 (inline sreal operator>>): Likewise.
3101 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3103 * config/aarch64/aarch64-protos.h (struct tune_params): Add
3105 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
3106 (cortexa53_tunings): Likewise.
3107 (cortexa57_tunings): Likewise.
3108 (thunderx_tunings): Likewise.
3109 (aarch64_macro_fusion_p): New function.
3110 (aarch_macro_fusion_pair_p): Likewise.
3111 (TARGET_SCHED_MACRO_FUSION_P): Define.
3112 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3113 (AARCH64_FUSE_MOV_MOVK): Likewise.
3114 (AARCH64_FUSE_NOTHING): Likewise.
3116 2014-11-24 Martin Liska <mliska@suse.cz>
3119 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
3120 with replace_key method.
3121 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
3122 (fibonacci_heap::replace_key_data): Likewise.
3123 (fibonacci_heap::replace_key): New method that can even increment key,
3124 this operation costs O(log N).
3125 (fibonacci_heap::extract_min): New argument.
3126 (fibonacci_heap::delete_node): Likewise.
3128 2014-11-24 Richard Biener <rguenther@suse.de>
3130 PR tree-optimization/55334
3131 * function.h (struct function): Add last_clique member.
3132 * tree-inline.c (remap_dependence_clique): New function.
3133 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
3134 (copy_tree_body_r): Likewise.
3135 (copy_cfg_body): Free dependence map.
3136 (copy_gimple_seq_and_replace_locals): Likewise.
3137 * tree-pretty-print.c (dump_generic_node): Dump
3139 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
3140 to answer alias query.
3141 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
3142 tree-pretty-print.h and gimple-walk.h.
3143 (struct variable_info): Add is_restrict_var flag and ruid
3145 (new_var_info): Initialize is_restrict_var.
3146 (make_constraint_from_restrict): Likewise.
3147 (create_variable_info_for): Exclude restricts from global vars
3149 (intra_create_variable_infos): But not those from parameters.
3150 (visit_loadstore): New function.
3151 (maybe_set_dependence_info): Likewise.
3152 (compute_dependence_clique): Likewise.
3153 (compute_may_aliases): Call compute_dependence_clique.
3154 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
3156 (dr_may_alias_p): Use recorded dependence info to answer
3158 * tree-core.h (struct tree_base): Add clique, base struct in
3160 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
3161 (MR_DEPENDENCE_BASE): Likewise.
3162 * tree-inline.h (dependence_hasher): New hash-map kind.
3163 (struct copy_body_data): Add dependence_map pointer.
3164 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
3165 throwing away dependence info.
3166 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
3167 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
3169 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
3172 * config/sh/sh_optimize_sett_clrt.cc
3173 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
3174 of void. Abort at complex edges.
3175 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
3178 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
3181 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
3183 * configure: Regenerated.
3184 * config.in: Regenerated.
3186 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3188 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
3189 clones as having abstract origin used.
3190 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
3192 (clone_inlined_nodes): Copy abstract originflag.
3193 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
3194 abstract origin node.
3196 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
3198 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
3199 * config/i386/i386.c (ix86_option_override_internal): Do not increase
3200 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3202 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3206 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
3207 Do not emit bitwise not insn. Emit logical not insn sequence instead.
3208 Adjust related comments throughout the file.
3210 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3214 * config/sh/sh.c (sh_is_logical_t_store_expr,
3215 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
3216 (sh_split_movrt_negc_to_movt_xor): New function.
3217 (sh_find_set_of_reg): Move to ...
3218 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
3219 to template function.
3220 (set_of_reg): Use rtx_insn* for insn member.
3221 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
3222 rtx_insn* for insn argument.
3223 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
3224 sequence using new sh_split_movrt_negc_to_movt_xor function.
3225 (movrt_xor): Allow also for SH2A.
3226 (*movt_movrt): Delete insns and splits.
3228 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
3230 PR tree-optimization/60770
3231 * tree-sra.c (clobber_subtree): New function.
3232 (sra_modify_constructor_assign): Call it.
3234 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
3237 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
3239 (process_bb_lives): Rename dead_insn_p on remove_p
3240 and global_live_info_p on dead_insn_p. Calculate local live info
3241 unconditionally. Remove last argument in calls mark_regno_live and
3242 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
3243 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
3244 Return bool. Rename global_live_info_p on dead_insn_p. Return
3245 flag of live info change.
3246 (lra_create_live_ranges): New.
3248 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3252 * internal-fn.c (expand_arith_overflow_result_store,
3253 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
3254 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
3255 adjust arguments to those functions. Use unsignedp = true for
3256 EQ, NE, GEU, LEU, LTU and GTU comparisons.
3258 PR tree-optimization/64006
3259 * tree-vrp.c (stmt_interesting_for_vrp): Return true
3260 for {ADD,SUB,MUL}_OVERFLOW internal calls.
3261 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
3262 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
3263 immediate uses would change their value ranges and return
3264 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
3265 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
3266 interesting for vrp.
3268 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3271 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3272 Altivec & -16 mask if the type is not valid for Altivec registers.
3273 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3274 reg) that occurs during push_reload processing.
3276 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3277 alternative for moving constant vectors which are easy altivec
3278 constants to GPRs. Set the length attribute each of the
3281 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
3283 * configure.ac: When checking for MIPS .module support ensure that
3284 o32 FPXX is supported to avoid a second configure check.
3285 * configure: Regenerate.
3287 2014-11-21 Jiong Wang <jiong.wang@arm.com>
3289 * config/aarch64/iterators.md (VS): New mode iterator.
3290 (vsi2qi): New mode attribute.
3292 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
3293 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
3294 * config/aarch64/aarch64-builtins.c
3295 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
3297 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3300 * configure: Regenerated.
3302 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3304 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
3306 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3308 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3309 OPTION_MASK_ISA_PCOMMIT_SET): New.
3310 (ix86_handle_option): Handle OPT_mpcommit.
3311 * config.gcc: Add pcommitintrin.h
3312 * config/i386/pcommitintrin.h: New file.
3313 * config/i386/cpuid.h (bit_PCOMMIT): Define.
3314 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
3315 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3317 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
3318 (PTA_PCOMMIT): Define.
3319 (ix86_option_override_internal): Handle new option.
3320 (ix86_valid_target_attribute_inner_p): Add pcommit.
3321 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
3322 (bdesc_special_args): Add __builtin_ia32_pcommit.
3323 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
3324 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
3325 (pcommit): New instruction.
3326 * config/i386/i386.opt: Add mpcommit.
3327 * config/i386/x86intrin.h: Include pcommitintrin.h.
3329 2014-11-20 Mark Wielaard <mjw@redhat.com>
3332 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
3333 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
3334 (darwin_override_options): Likewise.
3335 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3337 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3339 * dbxout.c (get_lang_number): Likewise.
3340 (dbxout_type): Likewise.
3341 (dbxout_symbol_location): Likewise.
3342 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
3343 also for DW_LANG_{C,C99,ObjC}.
3344 (highest_c_language): New function.
3345 (gen_compile_unit_die): Call highest_c_language to merge LTO
3346 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
3347 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
3348 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
3349 * langhooks.h (struct lang_hooks): Add version comment to name.
3350 (lang_GNU_C): New function declaration.
3351 (lang_GNU_CXX): Likewise.
3352 * langhooks.c (lang_GNU_C): New function.
3353 (lang_GNU_CXX): Likewise.
3354 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
3356 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3358 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
3359 OPTION_MASK_ISA_CLWB_SET): New.
3360 (ix86_handle_option): Handle OPT_mclwb.
3361 * config.gcc: Add clwbintrin.h.
3362 * config/i386/clwbintrin.h: New file.
3363 * config/i386/cpuid.h (bit_CLWB): Define.
3364 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
3365 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3367 * config/i386/i386.c (ix86_target_string): Add -mclwb.
3369 (ix86_option_override_internal): Handle new option.
3370 (ix86_valid_target_attribute_inner_p): Add clwb.
3371 (ix86_builtins): Add IX86_BUILTIN_CLWB.
3372 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
3373 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
3374 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
3375 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
3376 (clwb): New instruction.
3377 * config/i386/i386.opt: Add mclwb.
3378 * config/i386/x86intrin.h: Include clwbintrin.h.
3380 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3382 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
3383 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
3384 (ix86_handle_option): Handle OPT_mavx512vbmi.
3385 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
3386 * config/i386/avx512vbmiintrin.h: New file.
3387 * config/i386/avx512vbmivlintrin.h: Ditto.
3388 * config/i386/cpuid.h (bit_AVX512VBMI): New.
3389 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
3390 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3392 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
3393 (PTA_AVX512VBMI): Define.
3394 (ix86_option_override_internal): Handle new options.
3395 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
3396 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
3397 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
3398 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
3399 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
3400 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
3401 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
3402 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
3403 IX86_BUILTIN_VPERMI2VARQI128.
3404 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
3405 __builtin_ia32_vpmultishiftqb256_mask,
3406 __builtin_ia32_vpmultishiftqb128_mask,
3407 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
3408 __builtin_ia32_vpermt2varqi512_maskz,
3409 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
3410 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
3411 __builtin_ia32_vpermt2varqi256_maskz,
3412 __builtin_ia32_vpermt2varqi128_mask,
3413 __builtin_ia32_vpermt2varqi128_maskz,
3414 __builtin_ia32_vpermi2varqi256_mask,
3415 __builtin_ia32_vpermi2varqi128_mask.
3416 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
3417 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
3418 * config/i386/i386.opt: Add mavx512vbmi.
3419 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
3420 avx512vbmivlintrin.h.
3421 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
3422 (VI1_AVX512VL): New iterator.
3423 (<avx512>_permvar<mode><mask_name>): Use it.
3424 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
3425 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
3426 (<avx512>_vpermi2var<mode>3_mask): Ditto.
3427 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
3428 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
3429 (<avx512>_vpermt2var<mode>3_mask): Ditto.
3430 (vpmultishiftqb<mode><mask_name>): Ditto.
3432 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3434 PR rtl-optimization/63952
3435 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
3436 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
3437 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
3439 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3441 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
3442 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
3443 (ix86_handle_option): Handle OPT_mavx512ifma.
3444 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
3445 * config/i386/avx512ifmaintrin.h: New file.
3446 * config/i386/avx512ifmaivlntrin.h: Ditto.
3447 * config/i386/cpuid.h (bit_AVX512IFMA): New.
3448 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3450 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3452 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
3453 (PTA_AVX512IFMA): Define.
3454 (ix86_option_override_internal): Handle new options.
3455 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
3456 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
3457 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
3458 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
3459 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
3460 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
3461 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
3462 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
3463 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
3464 __builtin_ia32_vpmadd52luq512_maskz,
3465 __builtin_ia32_vpmadd52huq512_mask,
3466 __builtin_ia32_vpmadd52huq512_maskx,
3467 __builtin_ia32_vpmadd52luq256_mask,
3468 __builtin_ia32_vpmadd52luq256_maskz,
3469 __builtin_ia32_vpmadd52huq256_mask,
3470 __builtin_ia32_vpmadd52huq256_maskz,
3471 __builtin_ia32_vpmadd52luq128_mask,
3472 __builtin_ia32_vpmadd52luq128_maskz,
3473 __builtin_ia32_vpmadd52huq128_mask,
3474 __builtin_ia32_vpmadd52huq128_maskz,
3475 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
3476 * config/i386/i386.opt: Add mavx512ifma.
3477 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
3478 avx512ifmavlintrin.h.
3479 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
3481 (VPMADD52): New iterator.
3482 (vpmadd52type): New attribute.
3483 (vpamdd52huq<mode>_maskz): New.
3484 (vpamdd52luq<mode>_maskz): Ditto.
3485 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
3486 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
3488 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
3491 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3492 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3494 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
3496 * config/mips/mips.c (mips_process_sync_loop): Place a
3497 nop in the delay slot of the branch likely instruction.
3498 (mips_output_sync_loop): Ensure mips_branch_likely is
3499 set before calling mips_output_sync_loop.
3500 (mips_sync_loop_insns): Likewise.
3502 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3505 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
3506 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
3509 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
3511 Forward-port from 2014-10-30 4_9-branch r216934
3514 * config/avr/avr-protos.h (regmask): New inline function.
3515 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
3516 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
3517 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
3518 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
3519 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
3520 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
3521 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
3522 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
3523 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
3524 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
3525 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
3526 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
3527 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
3530 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3533 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
3534 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
3536 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
3538 * config/aarch64/aarch64-simd.md
3539 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
3540 output mnemonic and operands.
3541 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
3542 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
3544 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3546 * config/i386/i386.c (ix86_option_override_internal): Increase
3547 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3549 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3552 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
3553 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
3554 replace for V16QI, V16HI and V32QI modes.
3555 (ix86_expand_vec_perm_const_1): Add new expand.
3557 2014-11-21 Nick Clifton <nickc@redhat.com>
3559 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
3560 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
3561 (rl78_expand_prologue): Save the ES register in interrupt handlers
3563 (rl78_expand_epilogue): Restore the ES register if necessary.
3564 (rl78_start_function): Mention if the function uses the ES
3566 (rl78_lo16): Record the use of the ES register.
3567 (transcode_memory_rtx): Likewise.
3569 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3571 PR tree-optimization/61773
3572 * tree-ssa-strlen.c (get_string_length): Don't assert
3573 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
3576 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
3577 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
3578 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
3580 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3582 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
3583 HOST_WIDE_INT_M1U instead of ~0.
3584 (includes_rldicr_lshift_p): Likewise.
3586 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3588 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
3589 we need to look into its operand to determine if it is a valid
3592 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3594 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
3595 vaarg_p argument and create correct CFI info.
3596 (nds32_expand_prologue): Pass true or false to
3597 nds32_emit_stack_push_multiple function.
3599 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3601 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
3602 as RTX_FRAME_RELATED_P rtx.
3604 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3606 * config/nds32/nds32.opt (march): Add help message.
3608 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
3610 * tree-vrp.c (test_for_singularity): New parameter
3611 strict_overflow_p. Set *strict_overflow_p to true if signed
3612 overflow must be undefined for the return value to satisfy the
3614 (simplify_cond_using_ranges): Don't perform the simplification
3615 if it violates overflow rules.
3617 2014-11-20 Marek Polacek <polacek@redhat.com>
3619 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
3621 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3623 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3624 condition would be removed due to undefined behaviour.
3626 2014-11-20 Andrew Pinski <apinski@cavium.com>
3630 * ipa-polymorphic-call.c (possible_placement_new):
3631 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
3632 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3633 (extr_type_from_vtbl_ptr_store): Likewise.
3635 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
3637 * config/rs6000/constraints.md: Avoid signed integer overflows.
3638 * config/rs6000/predicates.md: Likewise.
3639 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
3640 (includes_rldic_lshift_p): Likewise.
3641 (includes_rldicr_lshift_p): Likewise.
3642 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
3643 * loop-iv.c (determine_max_iter): Likewise.
3644 (iv_number_of_iterations): Likewise.
3645 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
3646 * varasm.c (get_section_anchor): Likewise.
3648 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
3651 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
3652 expression to aarch64_simd_lane_bounds.
3653 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
3655 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
3656 call to aarch64_simd_lane_bounds.
3657 (aarch64_get_lanedi): Likewise.
3658 (aarch64_ld2_lane<mode>): Likewise.
3659 (aarch64_ld3_lane<mode>): Likewise.
3660 (aarch64_ld4_lane<mode>): Likewise.
3661 (aarch64_im_lane_boundsi): Likewise.
3662 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
3663 parameter. Report calling function in error message if exp is non-NULL.
3665 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3668 * config/sh/sh.c: Use signed char for signed field.
3670 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3672 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
3675 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3677 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
3678 tree-scalar-evolution.c: Replace htab with hash_table.
3680 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3682 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
3683 (lto_free_function_in_decl_state): Likewise.
3684 * lto-streamer-out.c (copy_function_or_variable): Likewise.
3685 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
3686 (lto_file_decl_data_num_ ## name ## s): Likewise.
3687 (struct lto_tree_ref_table): Remove.
3688 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
3690 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3692 * hash-map.h (hash_map::iterator): New class.
3693 (hash_map::begin): New method.
3694 (hash_map::end): Likewise.
3695 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
3696 replace splay_tree with hash_map.
3698 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3700 * hash-table.h (hash_table::hash_table): Call alloc_entries.
3701 (hash_table::alloc_entries): new method.
3702 (hash_table::expand): Call alloc_entries.
3703 (hash_table::empty): Likewise.
3705 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3707 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
3708 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
3710 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3712 * doc/gty.texi: Document the new cache gty attribute.
3713 * gengtype.c (finish_cache_funcs): New function.
3714 (write_roots): Call gt_clear_cache on global variables with the cache
3716 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
3717 * ggc.h (gt_clear_caches): New declaration.
3718 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
3720 (gt_cleare_cache): New function.
3721 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
3723 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3725 * combine.c (try_combine): Prefer to delete dead SETs inside
3726 a PARALLEL over keeping them.
3728 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3730 * combine.c (combine_validate_cost): Always print the insn costs
3733 2014-11-20 Richard Henderson <rth@redhat.com>
3736 * config/i386/i386.c (ix86_static_chain): Reinstate the check
3737 for DECL_STATIC_CHAIN.
3739 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
3741 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
3743 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
3744 aarch64_cannot_force_const_mem, aarch64_classify_address,
3745 aarch64_classify_symbolic_expression): Fixup call to
3746 aarch64_classify_symbol.
3747 (aarch64_classify_symbol): Add range-checking for
3748 symbol + offset addressing for tiny and small models.
3750 2014-11-20 Richard Biener <rguenther@suse.de>
3753 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
3754 Guard with single-use operand 0.
3756 2014-11-20 Richard Biener <rguenther@suse.de>
3758 PR tree-optimization/63677
3759 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
3760 (avail_exprs_stack): Make a vector of pairs.
3761 (struct hash_expr_elt): Replace stmt member with vop member.
3762 (expr_elt_hasher::equal): Simplify.
3763 (initialize_hash_element): Adjust.
3764 (initialize_hash_element_from_expr): Likewise.
3765 (dom_opt_dom_walker::thread_across_edge): Likewise.
3766 (record_cond): Likewise.
3767 (dom_opt_dom_walker::before_dom_children): Likewise.
3768 (print_expr_hash_elt): Likewise.
3769 (remove_local_expressions_from_table): Restore previous state
3771 (record_equivalences_from_stmt): Record &x + CST as constant
3772 &MEM[&x, CST] for further propagation.
3773 (vuse_eq): New function.
3774 (lookup_avail_expr): For loads use the alias oracle to see
3775 whether a candidate from the expr hash is usable.
3776 (avail_expr_hash): Do not hash VUSEs.
3778 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3781 * config/arm/arm.md (*movhi_insn): Use right formatting
3784 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
3787 * function.c (assign_parms): Move init of pic_offset_table_rtx
3789 * cfgexpand.c (expand_used_vars): ...here.
3791 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3793 * tree.c (free_lang_data_in_type): If BINFO has no important
3794 information in it, set it to NULL.
3795 (get_binfo_at_offset): Do not walk fields, only bases.
3796 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
3798 * ipa-polymorphic-call.c (record_known_type): Likewise.
3800 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3803 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
3804 congruence_class_group *.
3806 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3809 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
3810 Output "b" and "nb" suffix for FP mode.
3812 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3815 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream
3816 out DECL_FUNCTION_SPECIFIC_TARGET
3817 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream
3818 in DECL_FUNCTION_SPECIFIC_TARGET.
3820 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3823 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
3825 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3828 * lra.c (lra): After creating live ranges in preparation for call
3829 to lra_inheritance, set live_p to true.
3831 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3834 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
3836 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
3838 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3841 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
3842 vec<> to auto_vec<> to fix a leak.
3844 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3847 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
3849 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3852 * ira-costs.c (ira_costs_c_finalize): New function.
3853 * ira.h (ira_costs_c_finalize): New prototype.
3854 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
3856 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3859 * ipa-reference.c (ipa_reference_c_finalize): Release
3860 optimization_summary_obstack.
3862 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3865 * toplev.c (toplev::finalize): Free opts_obstack.
3867 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3870 * toplev.c (toplev::finalize): Clean up save_decoded_options.
3872 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3876 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
3877 local bbs_in_hot_partition from vec<> to auto_vec<>.
3879 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3882 * config/alpha/alpha.c (alpha_option_override): Remove static from
3883 "handle_trap_shadows_info" and "align_insns_info".
3884 * config/i386/i386.c (ix86_option_override): Likewise for
3885 "insert_vzeroupper_info".
3886 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
3887 "rl78_devirt_info" and "rl78_move_elim_info".
3888 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
3889 "analyze_swaps_info".
3890 * context.c (gcc::context::~context): New.
3891 * context.h (gcc::context::~context): New.
3892 * dumpfile.c (dump_files): Add "false" initializers for new field
3894 (gcc::dump_manager::~dump_manager): New.
3895 (gcc::dump_manager::dump_register): Add param "take_ownership".
3896 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
3897 (gcc::dump_manager::~dump_manager): New.
3898 (gcc::dump_manager::dump_register): Add param "take_ownership".
3899 * pass_manager.h (gcc::pass_manager::operator delete): New.
3900 (gcc::pass_manager::~pass_manager): New.
3901 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
3902 new "owns_strings" argument to dump_register.
3903 (pass_manager::operator delete): New.
3904 (delete_pass_tree): New function.
3905 (pass_manager::~pass_manager): New.
3906 * statistics.c (statistics_early_init): Pass "false" to
3907 new "owns_strings" argument to dump_register.
3908 * toplev.c (toplev::finalize): Clean up the context and thus the
3911 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3914 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
3915 obstack_free when cleaning up valid_mode_changes_obstack.
3917 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3920 * opts.c (finalize_options_struct): New.
3921 * opts.h (finalize_options_struct): New.
3922 * toplev.c (toplev::finalize): Call finalize_options_struct
3923 on global_options and global_options_set.
3925 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3926 Jakub Jelinek <jakub@redhat.com>
3930 * gcc.c (process_command): Don't check for input/output
3931 filename equality if output is HOST_BIT_BUCKET.
3932 * toplev.c (init_asm_output): Likewise.
3934 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3936 Merger of git branch "gimple-classes-v2-option-3".
3938 * ChangeLog.gimple-classes: New.
3940 * coretypes.h (struct gcond): Add forward decl.
3941 (struct gdebug): Likewise.
3942 (struct ggoto): Likewise.
3943 (struct glabel): Likewise.
3944 (struct gswitch): Likewise.
3945 (struct gassign): Likewise.
3946 (struct gasm): Likewise.
3947 (struct gcall): Likewise.
3948 (struct gtransaction): Likewise.
3949 (struct greturn): Likewise.
3950 (struct gbind): Likewise.
3951 (struct gcatch): Likewise.
3952 (struct geh_filter): Likewise.
3953 (struct geh_mnt): Likewise.
3954 (struct geh_else): Likewise.
3955 (struct gresx): Likewise.
3956 (struct geh_dispatch): Likewise.
3957 (struct gphi): Likewise.
3958 (struct gtry): Likewise.
3959 (struct gomp_atomic_load): Likewise.
3960 (struct gomp_atomic_store): Likewise.
3961 (struct gomp_continue): Likewise.
3962 (struct gomp_critical): Likewise.
3963 (struct gomp_for): Likewise.
3964 (struct gomp_parallel): Likewise.
3965 (struct gomp_task): Likewise.
3966 (struct gomp_sections): Likewise.
3967 (struct gomp_single): Likewise.
3968 (struct gomp_target): Likewise.
3969 (struct gomp_teams): Likewise.
3971 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
3972 for renaming of gimple subclasses.
3974 * gdbhooks.py: Update.
3976 * gimple-iterator.c (gsi_for_phi): New.
3977 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
3979 * gimple-iterator.h (struct gphi_iterator): New subclass of
3980 gimple_stmt_iterator.
3981 (gsi_for_phi): New prototype.
3982 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
3984 (gsi_next_nonvirtual_phi): Strengthen param from
3985 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
3988 * gsstruct.def: Update for renamings of classes.
3990 * gimple.c (gimple_build_return): Strengthen return type from
3991 gimple to greturn *.
3992 (gimple_call_reset_alias_info): Strengthen param to gcall *.
3993 (gimple_build_call_1): Strengthen return type from gimple to
3995 (gimple_build_call_vec): Likewise.
3996 (gimple_build_call): Likewise.
3997 (gimple_build_call_valist): Likewise.
3998 (gimple_build_call_internal_1): Likewise.
3999 (gimple_build_call_internal): Likewise.
4000 (gimple_build_call_internal_vec): Likewise.
4001 (gimple_build_call_from_tree): Likewise.
4002 (gimple_build_assign_stat): Strengthen return type from gimple to
4004 (gimple_build_assign_with_ops): Likewise.
4005 (gimple_build_assign_with_ops): Likewise.
4006 (gimple_build_cond): Strengthen return type from gimple to
4008 (gimple_build_cond_from_tree): Likewise.
4009 (gimple_cond_set_condition_from_tree): Require a gcond *.
4010 (gimple_build_label): Strengthen return type from gimple to
4012 (gimple_build_goto): Strengthen return type from gimple to
4014 (gimple_build_bind): Strengthen return type from gimple to
4016 (gimple_build_asm_1): Strengthen return type from gimple to
4018 (gimple_build_asm_vec): Likewise.
4019 (gimple_build_catch): Strengthen return type from gimple to
4021 (gimple_build_eh_filter): Strengthen return type from gimple to
4023 (gimple_build_eh_must_not_throw): Strengthen return type from
4024 gimple to geh_mnt *.
4025 (gimple_build_eh_else): Strengthen return type from gimple to
4027 (gimple_build_try): Update for renaming of gimple_statement_try to
4029 (gimple_build_resx): Strengthen return type from gimple to
4031 (gimple_build_switch_nlabels): Strengthen return type from gimple
4033 (gimple_build_switch): Likewise.
4034 (gimple_build_eh_dispatch): Strengthen return type from gimple to
4036 (gimple_build_debug_bind_stat): Strengthen return type from gimple
4038 (gimple_build_debug_source_bind_stat): Strengthen return type from
4040 (gimple_build_omp_critical): Strengthen return type from gimple to
4042 (gimple_build_omp_for): Strengthen return type from gimple to
4044 (gimple_build_omp_parallel): Strengthen return type from gimple to
4046 (gimple_build_omp_task): Strengthen return type from gimple to
4048 (gimple_build_omp_continue): Strengthen return type from gimple to
4050 (gimple_build_omp_sections): Strengthen return type from gimple to
4052 (gimple_build_omp_single): Strengthen return type from gimple to
4054 (gimple_build_omp_target): Strengthen return type from gimple to
4056 (gimple_build_omp_teams): Strengthen return type from gimple to
4058 (gimple_build_omp_atomic_load): Strengthen return type from gimple
4059 to gomp_atomic_load *.
4060 (gimple_build_omp_atomic_store): Strengthen return type from gimple
4061 to gomp_atomic_store *.
4062 (gimple_build_transaction): Strengthen return type from gimple
4064 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
4065 (gimple_call_fnspec): Require a const gcall *.
4066 (gimple_call_arg_flags): Likewise.
4067 (gimple_call_return_flags): Likewise.
4068 (gimple_set_bb): Add a checked cast.
4069 (gimple_copy): Within the cases, add locals of the appropriate
4070 subclass and use in place of "stmt" and "copy" for typesafety.
4071 (gimple_has_side_effects): Add a checked cast.
4072 (gimple_could_trap_p_1): Likewise.
4073 (gimple_call_copy_skip_args): Require a gcall *, and return one.
4074 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4075 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
4076 dyn_cast, introducing local "return_stmt" and using ti in place
4079 * gimple.h (gimple_vec): Eliminate this typedef.
4080 (struct gimple_statement_call): Rename to...
4081 (struct gcall): ...this.
4082 (struct gimple_statement_bind): Rename to...
4083 (struct gbind): ...this.
4084 (struct gimple_statement_catch): Rename to...
4085 (struct gcatch): ...this.
4086 (struct gimple_statement_eh_filter): Rename to...
4087 (struct geh_filter): ...this.
4088 (struct gimple_statement_eh_else): Rename to...
4089 (struct geh_else): ...this.
4090 (struct gimple_statement_eh_mnt): Rename to...
4091 (struct geh_mnt): ...this.
4092 (struct gimple_statement_phi): Rename to...
4093 (struct gphi): ...this.
4094 (struct gimple_statement_resx): Rename to...
4095 (struct gresx): ...this.
4096 (struct gimple_statement_eh_dispatch): Rename to...
4097 (struct geh_dispatch): ...this.
4098 (struct gimple_statement_try): Rename to...
4099 (struct gtry): ...this.
4100 (struct gimple_statement_asm): Rename to...
4101 (struct gasm): ...this.
4102 (struct gimple_statement_omp_critical): Rename to...
4103 (struct gomp_critical): ...this.
4104 (struct gimple_statement_omp_for): Rename to...
4105 (struct gomp_for): ...this.
4106 (struct gimple_statement_omp_parallel): Rename to...
4107 (struct gomp_parallel): ...this.
4108 (struct gimple_statement_omp_target): Rename to...
4109 (struct gomp_target): ...this.
4110 (struct gimple_statement_omp_task): Rename to...
4111 (struct gomp_task): ...this.
4112 (struct gimple_statement_omp_sections): Rename to...
4113 (struct gomp_sections): ...this.
4114 (struct gimple_statement_omp_continue): Rename to...
4115 (struct gomp_continue): ...this.
4116 (struct gimple_statement_omp_single): Rename to...
4117 (struct gomp_single): ...this.
4118 (struct gimple_statement_omp_teams): Rename to...
4119 (struct gomp_teams): ...this.
4120 (struct gimple_statement_omp_atomic_load): Rename to...
4121 (struct gomp_atomic_load): ...this.
4122 (struct gimple_statement_omp_atomic_store :): Rename to...
4123 (struct gomp_atomic_store :): ...this.
4124 (struct gimple_statement_transaction): Rename to...
4125 (struct gtransaction): ...this.
4126 (struct gcond): New subclass.
4127 (struct gdebug): New subclass.
4128 (struct ggoto): New subclass.
4129 (struct glabel): New subclass.
4130 (struct gswitch): New subclass.
4131 (struct gassign): New subclass.
4132 (struct greturn): New subclass.
4133 (is_a_helper <gimple_statement_asm *>::test): Rename to...
4134 (is_a_helper <gasm *>::test): ...this.
4135 (is_a_helper <gimple_statement_bind *>::test): Rename to...
4136 (is_a_helper <gbind *>::test): ...this.
4137 (is_a_helper <gassign *>::test): New.
4138 (is_a_helper <gimple_statement_call *>::test): Rename to...
4139 (is_a_helper <gcall *>::test): ...this.
4140 (is_a_helper <gimple_statement_catch *>::test): Rename to...
4141 (is_a_helper <gcatch *>::test): ...this.
4142 (is_a_helper <gimple_statement_resx *>::test): Rename to...
4143 (is_a_helper <gresx *>::test): ...this.
4144 (is_a_helper <gcond *>::test): New.
4145 (is_a_helper <gdebug *>::test): New.
4146 (is_a_helper <ggoto *>::test): New.
4147 (is_a_helper <glabel *>::test): New.
4148 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
4149 (is_a_helper <geh_dispatch *>::test): ...this.
4150 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
4151 (is_a_helper <geh_else *>::test): ...this.
4152 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
4153 (is_a_helper <geh_filter *>::test): ...this.
4154 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
4155 (is_a_helper <geh_mnt *>::test): ...this.
4156 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
4157 (is_a_helper <gomp_atomic_load *>::test): ...this.
4158 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
4159 (is_a_helper <gomp_atomic_store *>::test): ...this.
4160 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
4161 (is_a_helper <gomp_continue *>::test): ...this.
4162 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
4163 (is_a_helper <gomp_critical *>::test): ...this.
4164 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
4165 (is_a_helper <gomp_for *>::test): ...this.
4166 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
4167 (is_a_helper <gomp_parallel *>::test): ...this.
4168 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
4169 (is_a_helper <gomp_target *>::test): ...this.
4170 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
4171 (is_a_helper <gomp_sections *>::test): ...this.
4172 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
4173 (is_a_helper <gomp_single *>::test): ...this.
4174 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
4175 (is_a_helper <gomp_teams *>::test): ...this.
4176 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
4177 (is_a_helper <gomp_task *>::test): ...this.
4178 (is_a_helper <gimple_statement_phi *>::test): Rename to...
4179 (is_a_helper <gphi *>::test): ...this.
4180 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
4181 (is_a_helper <gtransaction *>::test): ...this.
4182 (is_a_helper <greturn *>::test): New.
4183 (is_a_helper <gswitch *>::test): New.
4184 (is_a_helper <gimple_statement_try *>::test): Rename to...
4185 (is_a_helper <gtry *>::test): ...this.
4186 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
4187 (is_a_helper <const gasm *>::test): ...this.
4188 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
4189 (is_a_helper <const gbind *>::test): ...this.
4190 (is_a_helper <const gimple_statement_call *>::test): Rename to...
4191 (is_a_helper <const gcall *>::test): ...this.
4192 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
4193 (is_a_helper <const gcatch *>::test): ...this.
4194 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
4195 (is_a_helper <const gresx *>::test): ...this.
4196 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
4197 (is_a_helper <const geh_dispatch *>::test): ...this.
4198 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
4199 (is_a_helper <const geh_filter *>::test): ...this.
4200 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
4202 (is_a_helper <const gomp_atomic_load *>::test): ...this.
4203 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
4205 (is_a_helper <const gomp_atomic_store *>::test): ...this.
4206 (is_a_helper <const gimple_statement_omp_continue *>::test):
4208 (is_a_helper <const gomp_continue *>::test): ...this.
4209 (is_a_helper <const gimple_statement_omp_critical *>::test):
4211 (is_a_helper <const gomp_critical *>::test): ...this.
4212 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
4213 (is_a_helper <const gomp_for *>::test): ...this.
4214 (is_a_helper <const gimple_statement_omp_parallel *>::test):
4216 (is_a_helper <const gomp_parallel *>::test): ...this.
4217 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
4218 (is_a_helper <const gomp_target *>::test): ...this.
4219 (is_a_helper <const gimple_statement_omp_sections *>::test):
4221 (is_a_helper <const gomp_sections *>::test): ...this.
4222 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
4223 (is_a_helper <const gomp_single *>::test): ...this.
4224 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
4225 (is_a_helper <const gomp_teams *>::test): ...this.
4226 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
4227 (is_a_helper <const gomp_task *>::test): ...this.
4228 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
4229 (is_a_helper <const gphi *>::test): ...this.
4230 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
4231 (is_a_helper <const gtransaction *>::test): ...this.
4232 (gimple_build_return): Strengthen return type to greturn *.
4233 (gimple_call_reset_alias_info): Require a gcall *.
4234 (gimple_build_call_vec): Return a gcall *.
4235 (gimple_build_call): Likewise.
4236 (gimple_build_call_valist): Likewise.
4237 (gimple_build_call_internal): Likewise.
4238 (gimple_build_call_internal_vec): Likewise.
4239 (gimple_build_call_from_tree): Likewise.
4240 (gimple_build_assign_stat): Return a gassign *.
4241 (gimple_build_assign_with_ops): Likewise.
4242 (gimple_build_cond): Return a gcond *.
4243 (gimple_build_cond_from_tree): Likewise.
4244 (gimple_cond_set_condition_from_tree): Require a gcond *.
4245 (gimple_build_label): Return a glabel *.
4246 (gimple_build_goto): Return a ggoto *.
4247 (gimple_build_bind): Return a gbind *.
4248 (gimple_build_asm_vec): Return a gasm *.
4249 (gimple_build_catch): Return a gcatch *.
4250 (gimple_build_eh_filter): Return a geh_filter *.
4251 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
4252 (gimple_build_eh_else): Return a geh_else *.
4253 (gimple_build_try): Return a gtry *.
4254 (gimple_build_resx): Return a gresx *.
4255 (gimple_build_switch_nlabels): Return a gswitch *.
4256 (gimple_build_switch): Return a gswitch *.
4257 (gimple_build_eh_dispatch): Return a geh_dispatch *.
4258 (gimple_build_debug_bind_stat): Return a gdebug *.
4259 (gimple_build_debug_source_bind_stat): Return a gdebug *.
4260 (gimple_build_omp_critical): Return a gomp_critical *.
4261 (gimple_build_omp_for): Return a gomp_for *.
4262 (gimple_build_omp_parallel): Return a gomp_parallel *.
4263 (gimple_build_omp_task): Return a gomp_task *.
4264 (gimple_build_omp_continue): Return a gomp_continue *.
4265 (gimple_build_omp_sections): Return a gomp_sections *.
4266 (gimple_build_omp_single): Return a gomp_single *.
4267 (gimple_build_omp_target): Return a gomp_target *.
4268 (gimple_build_omp_teams): Return a gomp_teams *.
4269 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
4270 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
4271 (gimple_build_transaction): Return a gtransaction *.
4272 (gimple_call_arg_flags): Require a const gcall *.
4273 (gimple_call_return_flags): Likewise.
4274 (gimple_call_copy_skip_args): Require and return a gcall *.
4275 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4276 (gimple_seq_first_stmt_as_a_bind): New.
4277 (gimple_assign_nontemporal_move_p): Require a const gassign *
4278 rather than a const_gimple.
4279 (gimple_call_internal_fn): Update for renaming to gcall.
4280 (gimple_call_fntype): Likewise.
4281 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
4282 (gimple_call_set_fn): Likewise.
4283 (gimple_call_set_internal_fn): Likewise.
4284 (gimple_call_set_chain): Likewise.
4285 (gimple_call_set_tail): Likewise.
4286 (gimple_call_tail_p): Likewise.
4287 (gimple_call_set_return_slot_opt): Likewise.
4288 (gimple_call_return_slot_opt_p): Likewise.
4289 (gimple_call_set_from_thunk): Likewise.
4290 (gimple_call_from_thunk_p): Likewise.
4291 (gimple_call_set_va_arg_pack): Likewise.
4292 (gimple_call_va_arg_pack_p): Likewise.
4293 (gimple_call_set_nothrow): Likewise.
4294 (gimple_call_nothrow_p): Likewise.
4295 (gimple_call_set_alloca_for_var): Likewise.
4296 (gimple_call_alloca_for_var_p): Likewise.
4297 (gimple_call_use_set): Likewise.
4298 (gimple_call_clobber_set): Likewise.
4299 (gimple_call_return_type): Require a const gcall * rather than a
4301 (gimple_call_chain_ptr): Likewise.
4302 (gimple_call_copy_flags): Require a pair of gcall *.
4303 (gimple_cond_set_code): Require a gcond * rather than a gimple
4304 (gimple_cond_set_lhs): Likewise.
4305 (gimple_cond_set_rhs): Likewise.
4306 (gimple_cond_set_true_label): Likewise.
4307 (gimple_cond_set_false_label): Likewise.
4308 (gimple_cond_make_false): Likewise.
4309 (gimple_cond_make_true): Likewise.
4310 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
4312 (gimple_cond_rhs_ptr): Likewise.
4313 (gimple_cond_true_label): Likewise.
4314 (gimple_cond_false_label): Likewise.
4315 (gimple_cond_true_p): Likewise.
4316 (gimple_cond_false_p): Likewise.
4317 (gimple_cond_set_condition): Likewise.
4318 (gimple_label_label): Require a const glabel *.
4319 (gimple_label_set_label): Require a glabel *.
4320 (gimple_goto_set_dest): Require a ggoto *.
4321 (gimple_bind_vars): Require a const gbind *.
4322 (gimple_bind_block): Likewise.
4323 (gimple_bind_set_vars): Require a gbind *.
4324 (gimple_bind_append_vars): Likewise.
4325 (gimple_bind_body_ptr): Likewise.
4326 (gimple_bind_body): Likewise.
4327 (gimple_bind_set_body): Likewise.
4328 (gimple_bind_add_stmt): Likewise.
4329 (gimple_bind_add_seq): Likewise.
4330 (gimple_bind_set_block): Likewise.
4331 (gimple_asm_ninputs): Require a const gasm *.
4332 (gimple_asm_noutputs): Likewise.
4333 (gimple_asm_nclobbers): Likewise.
4334 (gimple_asm_nlabels): Likewise.
4335 (gimple_asm_input_op): Likewise.
4336 (gimple_asm_input_op_ptr): Likewise.
4337 (gimple_asm_output_op): Likewise.
4338 (gimple_asm_output_op_ptr): Likewise.
4339 (gimple_asm_clobber_op): Likewise.
4340 (gimple_asm_label_op): Likewise.
4341 (gimple_asm_string): Likewise.
4342 (gimple_asm_volatile_p): Likewise.
4343 (gimple_asm_input_p): Likewise.
4344 (gimple_asm_set_input_op): Require a gasm *.
4345 (gimple_asm_set_output_op): Likewise.
4346 (gimple_asm_set_clobber_op): Likewise.
4347 (gimple_asm_set_label_op): Likewise.
4348 (gimple_asm_set_volatile): Likewise.
4349 (gimple_asm_set_input): Likewise.
4350 (gimple_catch_types): Require a const gcatch *.
4351 (gimple_catch_types_ptr): Require a gcatch *.
4352 (gimple_catch_handler_ptr): Likewise.
4353 (gimple_catch_handler): Likewise.
4354 (gimple_catch_set_types): Likewise.
4355 (gimple_catch_set_handler): Likewise.
4356 (gimple_eh_filter_types): Update for renaming of subclass to
4358 (gimple_eh_filter_types_ptr): Likewise.
4359 (gimple_eh_filter_failure_ptr): Likewise.
4360 (gimple_eh_filter_set_types): Require a geh_filter *.
4361 (gimple_eh_filter_set_failure): Likewise.
4362 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
4363 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4364 (gimple_eh_else_n_body_ptr): Require a geh_else *.
4365 (gimple_eh_else_n_body): Likewise.
4366 (gimple_eh_else_e_body_ptr): Likewise.
4367 (gimple_eh_else_e_body): Likewise.
4368 (gimple_eh_else_set_n_body): Likewise.
4369 (gimple_eh_else_set_e_body): Likewise.
4370 (gimple_try_set_kind): Require a gtry *.
4371 (gimple_try_set_catch_is_cleanup): Likewise.
4372 (gimple_try_set_eval): Likewise.
4373 (gimple_try_set_cleanup): Likewise.
4374 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
4375 (gimple_try_cleanup_ptr): Likewise.
4376 (gimple_phi_capacity): Update for renaming of subclass to gphi.
4377 (gimple_phi_num_args): Likewise.
4378 (gimple_phi_result): Likewise.
4379 (gimple_phi_result_ptr): Likewise.
4380 (gimple_phi_arg): Likewise.
4381 (gimple_phi_set_result): Require a gphi *.
4382 (gimple_phi_set_arg): Likewise.
4383 (gimple_phi_arg_def_ptr): Likewise.
4384 (gimple_phi_arg_edge): Likewise.
4385 (gimple_phi_arg_location): Likewise.
4386 (gimple_phi_arg_location_from_edge): Likewise.
4387 (gimple_phi_arg_set_location): Likewise.
4388 (gimple_phi_arg_has_location): Likewise.
4389 (gimple_resx_region): Require a const gresx *.
4390 (gimple_resx_set_region): Require a gresx *.
4391 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
4392 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
4393 (gimple_switch_num_labels): Require a const gswitch *.
4394 (gimple_switch_set_num_labels): Likewise.
4395 (gimple_switch_index): Likewise.
4396 (gimple_switch_index_ptr): Likewise.
4397 (gimple_switch_label): Likewise.
4398 (gimple_switch_default_label): Likewise.
4399 (gimple_switch_set_index): Require a gswitch *.
4400 (gimple_switch_set_label): Likewise.
4401 (gimple_switch_set_default_label): Likewise.
4402 (gimple_omp_critical_name): Require a const gomp_critical *.
4403 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
4404 (gimple_omp_critical_set_name): Likewise.
4405 (gimple_omp_for_set_kind): Require a gomp_for *.
4406 (gimple_omp_for_set_combined_p): Likewise.
4407 (gimple_omp_for_set_combined_into_p): Likewise.
4408 (gimple_omp_for_clauses): Update for renaming of subclass to
4410 (gimple_omp_for_clauses_ptr): Likewise.
4411 (gimple_omp_for_set_clauses): Likewise.
4412 (gimple_omp_for_collapse): Likewise.
4413 (gimple_omp_for_index): Likewise.
4414 (gimple_omp_for_index_ptr): Likewise.
4415 (gimple_omp_for_set_index): Likewise.
4416 (gimple_omp_for_initial): Likewise.
4417 (gimple_omp_for_initial_ptr): Likewise.
4418 (gimple_omp_for_set_initial): Likewise.
4419 (gimple_omp_for_final): Likewise.
4420 (gimple_omp_for_final_ptr): Likewise.
4421 (gimple_omp_for_set_final): Likewise.
4422 (gimple_omp_for_incr): Likewise.
4423 (gimple_omp_for_incr_ptr): Likewise.
4424 (gimple_omp_for_set_incr): Likewise.
4425 (gimple_omp_for_pre_body): Likewise.
4426 (gimple_omp_for_set_pre_body): Likewise.
4427 (gimple_omp_parallel_clauses): Update for renaming of subclass to
4429 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
4430 (gimple_omp_parallel_set_clauses): Likewise.
4431 (gimple_omp_parallel_child_fn_ptr): Likewise.
4432 (gimple_omp_parallel_set_child_fn): Likewise.
4433 (gimple_omp_parallel_data_arg_ptr): Likewise.
4434 (gimple_omp_parallel_set_data_arg): Likewise.
4435 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
4436 (gimple_omp_parallel_data_arg): Likewise.
4437 (gimple_omp_task_clauses): Update for renaming of subclass to
4439 (gimple_omp_task_clauses_ptr): Likewise.
4440 (gimple_omp_task_set_clauses): Likewise.
4441 (gimple_omp_task_child_fn): Likewise.
4442 (gimple_omp_task_child_fn_ptr): Likewise.
4443 (gimple_omp_task_set_child_fn): Likewise.
4444 (gimple_omp_task_data_arg): Likewise.
4445 (gimple_omp_task_data_arg_ptr): Likewise.
4446 (gimple_omp_task_set_data_arg): Likewise.
4447 (gimple_omp_taskreg_clauses): Whitespace fixes.
4448 (gimple_omp_taskreg_clauses_ptr): Likewise.
4449 (gimple_omp_taskreg_set_clauses): Likewise.
4450 (gimple_omp_taskreg_child_fn): Likewise.
4451 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4452 (gimple_omp_taskreg_set_child_fn): Likewise.
4453 (gimple_omp_taskreg_data_arg): Likewise.
4454 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4455 (gimple_omp_taskreg_set_data_arg): Likewise.
4456 (gimple_omp_task_copy_fn): Update for renaming of subclass to
4458 (gimple_omp_task_copy_fn_ptr): Likewise.
4459 (gimple_omp_task_set_copy_fn): Likewise.
4460 (gimple_omp_task_arg_size): Likewise.
4461 (gimple_omp_task_arg_size_ptr): Likewise.
4462 (gimple_omp_task_set_arg_size): Likewise.
4463 (gimple_omp_task_arg_align): Likewise.
4464 (gimple_omp_task_arg_align_ptr): Likewise.
4465 (gimple_omp_task_set_arg_align): Likewise.
4466 (gimple_omp_single_clauses): Update for renaming of subclass to
4468 (gimple_omp_single_clauses_ptr): Likewise.
4469 (gimple_omp_single_set_clauses): Likewise.
4470 (gimple_omp_target_clauses): Update for renaming of subclass to
4472 (gimple_omp_target_clauses_ptr): Likewise.
4473 (gimple_omp_target_set_clauses): Require a gomp_target *.
4474 (gimple_omp_target_set_kind): Likewise.
4475 (gimple_omp_target_child_fn_ptr): Likewise.
4476 (gimple_omp_target_set_child_fn): Likewise.
4477 (gimple_omp_target_data_arg_ptr): Likewise.
4478 (gimple_omp_target_set_data_arg): Likewise.
4479 (gimple_omp_target_child_fn): Require a const gomp_target *.
4480 (gimple_omp_target_data_arg): Likewise.
4481 (gimple_omp_teams_clauses): Update for renaming of subclass to
4483 (gimple_omp_teams_clauses_ptr): Likewise.
4484 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
4485 (gimple_omp_sections_clauses): Update for renaming of subclass to
4487 (gimple_omp_sections_clauses_ptr): Likewise.
4488 (gimple_omp_sections_set_clauses): Likewise.
4489 (gimple_omp_sections_control): Likewise.
4490 (gimple_omp_sections_control_ptr): Likewise.
4491 (gimple_omp_sections_set_control): Likewise.
4492 (gimple_omp_for_set_cond): Likewise.
4493 (gimple_omp_for_cond): Likewise.
4494 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
4495 (gimple_omp_atomic_store_val_ptr): Likewise.
4496 (gimple_omp_atomic_load_set_lhs): Likewise.
4497 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
4498 (gimple_omp_atomic_load_lhs): Likewise.
4499 (gimple_omp_atomic_load_rhs): Likewise.
4500 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
4501 (gimple_omp_atomic_load_set_rhs): Likewise.
4502 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4503 (gimple_omp_continue_control_def): Require a const gomp_continue *.
4504 (gimple_omp_continue_control_use): Likewise.
4505 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
4506 (gimple_omp_continue_set_control_def): Likewise.
4507 (gimple_omp_continue_control_use_ptr): Likewise.
4508 (gimple_omp_continue_set_control_use): Likewise.
4509 (gimple_transaction_body_ptr): Require a gtransaction *.
4510 (gimple_transaction_body): Likewise.
4511 (gimple_transaction_label_ptr): Likewise.
4512 (gimple_transaction_label): Require a const gtransaction *.
4513 (gimple_transaction_subcode): Likewise.
4514 (gimple_transaction_set_body): Require a gtransaction *.
4515 (gimple_transaction_set_label): Likewise.
4516 (gimple_transaction_set_subcode): Likewise.
4517 (gimple_return_retval_ptr): Require a const greturn *.
4518 (gimple_return_retval): Likewise.
4519 (gimple_return_set_retval): Require a greturn *.
4520 (gimple_expr_type): Introduce local "call_stmt" and use in place of
4521 "stmt" for typesafety.
4523 * asan.c: Use gimple subclasses.
4524 * auto-profile.c: Likewise.
4525 * builtins.c: Likewise.
4526 * builtins.h: Likewise.
4527 * cfgexpand.c: Likewise.
4528 * cfgloop.c: Likewise.
4529 * cfgloopmanip.c: Likewise.
4530 * cgraph.c: Likewise.
4531 * cgraph.h: Likewise.
4532 * cgraphbuild.c: Likewise.
4533 * cgraphclones.c: Likewise.
4534 * cgraphunit.c: Likewise.
4536 * gimple-builder.c: Likewise.
4537 * gimple-builder.h: Likewise.
4538 * gimple-fold.c: Likewise.
4539 * gimple-low.c: Likewise.
4540 * gimple-pretty-print.c: Likewise.
4541 * gimple-ssa-isolate-paths.c: Likewise.
4542 * gimple-ssa-strength-reduction.c: Likewise.
4543 * gimple-streamer-in.c: Likewise.
4544 * gimple-streamer-out.c: Likewise.
4545 * gimple-walk.c: Likewise.
4546 * gimplify-me.c: Likewise.
4547 * gimplify.c: Likewise.
4548 * gimplify.h: Likewise.
4549 * graphite-scop-detection.c: Likewise.
4550 * graphite-sese-to-poly.c: Likewise.
4551 * internal-fn.c: Likewise.
4552 * internal-fn.def:: Likewise.
4553 * internal-fn.h: Likewise.
4554 * ipa-icf-gimple.c: Likewise.
4555 * ipa-icf-gimple.h: Likewise.
4556 * ipa-icf.c: Likewise.
4557 * ipa-inline-analysis.c: Likewise.
4558 * ipa-prop.c: Likewise.
4559 * ipa-prop.h: Likewise.
4560 * ipa-pure-const.c: Likewise.
4561 * ipa-split.c: Likewise.
4562 * lto-streamer-in.c: Likewise.
4563 * lto-streamer-out.c: Likewise.
4564 * omp-low.c: Likewise.
4565 * predict.c: Likewise.
4566 * sanopt.c: Likewise.
4568 * ssa-iterators.h: Likewise.
4570 * trans-mem.c: Likewise.
4571 * tree-call-cdce.c: Likewise.
4572 * tree-cfg.c: Likewise.
4573 * tree-cfg.h: Likewise.
4574 * tree-cfgcleanup.c: Likewise.
4575 * tree-chkp.c: Likewise.
4576 * tree-chkp.h: Likewise.
4577 * tree-complex.c: Likewise.
4578 * tree-data-ref.c: Likewise.
4579 * tree-dfa.c: Likewise.
4580 * tree-eh.c: Likewise.
4581 * tree-eh.h: Likewise.
4582 * tree-emutls.c: Likewise.
4583 * tree-if-conv.c: Likewise.
4584 * tree-inline.c: Likewise.
4585 * tree-inline.h: Likewise.
4586 * tree-into-ssa.c: Likewise.
4587 * tree-into-ssa.h: Likewise.
4588 * tree-loop-distribution.c: Likewise.
4589 * tree-nrv.c: Likewise.
4590 * tree-object-size.c: Likewise.
4591 * tree-outof-ssa.c: Likewise.
4592 * tree-parloops.c: Likewise.
4593 * tree-phinodes.c: Likewise.
4594 * tree-phinodes.h: Likewise.
4595 * tree-predcom.c: Likewise.
4596 * tree-profile.c: Likewise.
4597 * tree-scalar-evolution.c: Likewise.
4598 * tree-scalar-evolution.h
4599 * tree-sra.cn_function):
4600 * tree-ssa-alias.c: Likewise.
4601 * tree-ssa-alias.h: Likewise.
4602 * tree-ssa-ccp.c: Likewise.
4603 * tree-ssa-coalesce.c: Likewise.
4604 * tree-ssa-copy.c: Likewise.
4605 * tree-ssa-copyrename.c: Likewise.
4606 * tree-ssa-dce.c: Likewise.
4607 * tree-ssa-dom.c: Likewise.
4608 * tree-ssa-forwprop.c: Likewise.
4609 * tree-ssa-ifcombine.c: Likewise.
4610 * tree-ssa-live.c: Likewise.
4611 * tree-ssa-loop-im.c: Likewise.
4612 * tree-ssa-loop-ivcanon.c: Likewise.
4613 * tree-ssa-loop-ivopts.c: Likewise.
4614 * tree-ssa-loop-manip.c: Likewise.
4615 * tree-ssa-loop-niter.c: Likewise.
4616 * tree-ssa-loop-prefetch.c: Likewise.
4617 * tree-ssa-loop-unswitch.c: Likewise.
4618 * tree-ssa-math-opts.c: Likewise.
4619 * tree-ssa-operands.c: Likewise.
4620 * tree-ssa-phiopt.c: Likewise.
4621 * tree-ssa-phiprop.c: Likewise.
4622 * tree-ssa-pre.c: Likewise.
4623 * tree-ssa-propagate.c: Likewise.
4624 * tree-ssa-propagate.h: Likewise.
4625 * tree-ssa-reassoc.c: Likewise.
4626 * tree-ssa-sccvn.c: Likewise.
4627 * tree-ssa-sccvn.h: Likewise.
4628 * tree-ssa-sink.c: Likewise.
4630 * tree-ssa-structalias.c
4631 * tree-ssa-tail-merge.c: Likewise.
4632 * tree-ssa-ter.c: Likewise.
4633 * tree-ssa-threadedge.c: Likewise.
4634 * tree-ssa-threadedge.h: Likewise.
4635 * tree-ssa-threadupdate.c: Likewise.
4636 * tree-ssa-uncprop.c: Likewise.
4637 * tree-ssa-uninit.c: Likewise.
4638 * tree-ssa.c: Likewise.
4639 * tree-stdarg.c: Likewise.
4640 * tree-switch-conversion.c: Likewise.
4641 * tree-tailcall.c: Likewise.
4642 * tree-vect-data-refs.c: Likewise.
4643 * tree-vect-generic.c: Likewise.
4644 * tree-vect-loop-manip.c: Likewise.
4645 * tree-vect-loop.c: Likewise.
4646 * tree-vect-patterns.c: Likewise.
4647 * tree-vect-slp.c: Likewise.
4648 * tree-vect-stmts.c: Likewise.
4649 * tree-vectorizer.h: Likewise.
4650 * tree-vrp.c: Likewise.
4652 * ubsan.c: Likewise.
4653 * value-prof.c: Likewise.
4654 * value-prof.h: Likewise.
4655 * vtable-verify.c: Likewise.
4657 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4659 * config/rs6000/constraints.md: Avoid signed integer overflows.
4660 * config/rs6000/predicates.md: Likewise.
4662 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4665 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
4667 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4670 * ira.c (ira): Update preferred class.
4672 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4674 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
4675 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4676 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
4677 inline overload to use it. Add unary arg overload.
4678 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
4679 (gimple_assign_set_rhs_from_tree): Use
4680 gimple_assign_set_rhs_with_ops instead of
4681 gimple_assign_set_rhs_with_ops_1.
4682 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4683 (gimple_assign_set_rhs_with_ops): ... this.
4684 * ipa-split.c (split_function): Remove last NULL argument
4685 from gimple_build_assign_with_ops call.
4686 * tree-ssa-loop-im.c
4687 (move_computations_dom_walker::before_dom_children): Likewise.
4688 * tsan.c (instrument_builtin_call): Likewise.
4689 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
4690 vectorizable_conversion, vectorizable_load): Likewise.
4691 * tree-vect-loop.c (vect_is_simple_reduction_1,
4692 get_initial_def_for_induction): Likewise.
4693 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4694 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
4695 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
4696 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
4697 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
4698 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
4699 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
4700 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
4701 neg_replacement): Likewise.
4702 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
4703 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
4704 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4705 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
4706 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4707 simd_clone_adjust): Likewise.
4708 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4709 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
4710 replace_one_candidate): Likewise.
4711 * gimple-builder.c (build_type_cast): Likewise.
4712 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
4713 (forward_propagate_addr_expr_1): Remove last NULL argument
4714 from gimple_assign_set_rhs_with_ops call.
4715 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
4716 instead of gimple_assign_set_rhs_with_ops_1.
4717 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
4718 argument from gimple_build_assign_with_ops call.
4719 (repropagate_negates): Remove last NULL argument from
4720 gimple_assign_set_rhs_with_ops call.
4721 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
4722 last NULL argument from gimple_build_assign_with_ops call.
4723 (instrument_bool_enum_load): Likewise. Remove last NULL argument
4724 from gimple_assign_set_rhs_with_ops call.
4725 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
4726 Remove last NULL argument from gimple_build_assign_with_ops call.
4727 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
4728 of gimple_assign_set_rhs_with_ops_1.
4729 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
4730 instead of gimple_assign_set_rhs_with_ops_1.
4731 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
4732 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
4733 from gimple_build_assign_with_ops call.
4734 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
4735 from gimple_assign_set_rhs_with_ops call.
4736 * tree-vrp.c (simplify_truth_ops_using_ranges,
4737 simplify_bit_ops_using_ranges): Remove last NULL argument from
4738 gimple_assign_set_rhs_with_ops call.
4739 (simplify_float_conversion_using_ranges,
4740 simplify_internal_call_using_ranges): Remove last NULL argument from
4741 gimple_build_assign_with_ops call.
4743 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
4746 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
4749 2014-11-19 Marek Polacek <polacek@redhat.com>
4752 * ubsan.c (instrument_object_size): Check for MEM_REF.
4754 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
4757 * cgraph.c (cgraph_node::create): Guard g->have_offload with
4758 ifdef ENABLE_OFFLOADING.
4759 * omp-low.c (create_omp_child_function): Likewise.
4760 (expand_omp_target): Guard node->mark_force_output and offload_funcs
4761 with ifdef ENABLE_OFFLOADING.
4762 * varpool.c (varpool_node::get_create): Guard g->have_offload and
4763 offload_vars with ifdef ENABLE_OFFLOADING.
4765 2014-11-19 Felix Yang <felix.yang@huawei.com>
4766 Shanyao Chen <chenshanyao@huawei.com>
4769 * config/arm/arm.md (define_attr "arch"): Add v6t2.
4770 (define_attr "arch_enabled"): Add test for the above.
4771 (*movhi_insn_arch4): Add new alternative.
4773 2014-11-19 Richard Henderson <rth@redhat.com>
4775 * c-family/c-common.c (c_common_reswords): Add
4776 __builtin_call_with_static_chain.
4777 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
4778 * c/c-parser.c (c_parser_postfix_expression): Handle it.
4779 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
4781 * calls.c (prepare_call_address): Allow decl or type for first arg.
4782 (expand_call): Pass type to prepare_call_address if no decl.
4783 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
4784 the function doesn't use it; fold it otherwise.
4785 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
4786 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
4789 * targhooks.c (default_static_chain): Remove check for
4791 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4792 * config/i386/i386.c (ix86_static_chain): Allow decl or type
4793 as the first argument.
4794 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
4795 of the unused first parameter.
4796 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
4798 * target.def (static_chain): Likewise.
4800 2014-11-19 Renlin Li <renlin.li@arm.com>
4802 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4803 __ARM_FP_FAST, __ARM_FEATURE_FMA, __ARM_FP,
4804 __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
4806 2014-11-19 Marek Polacek <polacek@redhat.com>
4809 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
4810 !TYPE_OVERFLOW_SANITIZED.
4811 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
4812 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
4815 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
4817 * collect2.c (main): Don't call fatal_error before
4818 diagnostic_initialize.
4819 * lto-wrapper.c (main): Likewise.
4821 2014-11-19 Tom de Vries <tom@codesourcery.com>
4823 PR tree-optimization/62167
4824 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
4826 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
4829 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4831 PR tree-optimization/63915
4832 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
4833 true instead of false as last argument to gsi_replace.
4836 * internal-fn.c (expand_ubsan_result_store): New function.
4837 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
4838 Use it instead of just emit_move_insn.
4840 2014-11-19 Richard Biener <rguenther@suse.de>
4842 PR tree-optimization/63844
4843 * omp-low.c (fixup_child_record_type): Use a restrict qualified
4844 referece type for the receiver parameter.
4846 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4849 * ubsan.c: Include tree-eh.h.
4850 (instrument_bool_enum_load): Handle loads that can throw.
4852 PR rtl-optimization/63843
4853 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
4854 optimization of ashiftrt of subreg of lshiftrt, check that code
4857 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
4859 * attribs.c (decl_attributes): Remove always true condition,
4860 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
4862 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4865 * target.def (use_by_pieces_infrastructure_p): Take unsigned
4866 HOST_WIDE_INT as the size parameter.
4867 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
4868 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
4869 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
4870 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
4871 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
4872 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
4873 * config/aarch64/aarch64.c
4874 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
4875 * doc/tm.texi: Regenerate.
4877 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
4879 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
4880 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
4881 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
4882 (good_cloning_opportunity_p): Likewise.
4883 (ipa-cp gate): Enable ipa-cp with LTO.
4884 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
4885 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
4887 * ipa-inline-transform.c (inline_transform): Check if there are inlines
4888 to apply even at -O0.
4889 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
4890 (analyze_functions): Build type inheritance graph.
4891 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
4892 (want_early_inline_function_p, want_inline_small_function_p):
4894 (check_callers): Likewise.
4895 (edge_badness): Likewise.
4896 (inline_small_functions): Always be ready for indirect inlining
4898 (ipa_inline): Always use want_inline_function_to_all_callers_p.
4899 (early_inline_small_functions): Use opt_for_fn.
4900 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
4901 (estimate_function_body_sizes): Likewise.
4902 (compute_inline_parameters): Likewise.
4903 (estimate_edge_devirt_benefit): Likewise.
4904 (inline_analyze_function): Likewise.
4905 * ipa-devirt.c (ipa_devirt): Likewise.
4906 (gate): Use in_lto_p.
4907 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
4908 (try_make_edge_direct_virtual_call): Likewise.
4909 (update_indirect_edges_after_inlining): Likewise.
4910 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
4911 * common.opt (findirect-inlining): Turn into optimization.
4912 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
4913 (pure_const_generate_summary): Likewise.
4914 (gate_pure_const): Always enable with in_lto_p.
4916 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4918 * config/mips/mips.md (compression): Add `micromips32' setting.
4919 (enabled, length): Handle it.
4920 (shift_compression): Replace `micromips' with `micromips32' in
4921 the `compression' attribute.
4922 (*add<mode>3, sub<mode>3): Likewise.
4924 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4926 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
4927 range, a jump otherwise.
4929 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4931 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
4933 (cortex_a15_gp_to_vfp): ...This.
4934 (cortex_a15_fp_to_gp): ...And this.
4935 Define and comment bypass from vfp operations to fp->gp moves.
4937 2014-11-18 Martin Liska <mliska@suse.cz>
4939 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
4941 2014-11-18 Martin Liska <mliska@suse.cz>
4943 * bt-load.c (add_btr_def): New fibonacci_heap is used.
4944 (migrate_btr_defs): Likewise.
4946 2014-11-18 Martin Liska <mliska@suse.cz>
4948 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
4950 2014-11-18 Martin Liska <mliska@suse.cz>
4952 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
4953 (find_traces): Likewise.
4954 (find_traces_1_round): Likewise.
4956 2014-11-18 Martin Liska <mliska@suse.cz>
4958 * fibonacci_heap.h: New file.
4959 (fibonacci_heap::insert): Created from fibheap_insert.
4960 (fibonacci_heap::empty): Created from fibheap_empty.
4961 (fibonacci_heap::nodes): Created from fibheap_nodes.
4962 (fibonacci_heap::min_key): Created from fibheap_min_key.
4963 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
4964 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
4965 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
4966 (fibonacci_heap::min): Created from fibheap_min.
4967 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
4968 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
4969 (fibonacci_heap::union_with): Created from fibheap_union.
4970 * ipa-inline.c (update_edge_key): New heap API is used.
4971 (update_caller_keys): Likewise.
4972 (update_callee_keys): Likewise.
4973 (lookup_recursive_calls): Likewise.
4974 (recursive_inlining): Likewise.
4975 (add_new_edges_to_heap): Likewise.
4976 (heap_edge_removal_hook): Likewise.
4977 (inline_small_functions): Likewise.
4979 2014-11-18 Marek Polacek <polacek@redhat.com>
4982 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
4983 put it into TYPE_NAME and TYPE_STUB_DECL.
4984 * ubsan.c (ubsan_type_descriptor_type): New variable.
4985 Function renamed to ...
4986 (ubsan_get_type_descriptor_type): ... this. Cache
4987 return value in ubsan_type_descriptor_type variable.
4988 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
4989 TYPE_NAME and TYPE_STUB_DECL.
4990 (ubsan_get_source_location_type): Create a TYPE_DECL for
4991 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
4992 (ubsan_type_descriptor, ubsan_create_data): Call
4993 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
4994 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
4996 2014-11-18 Felix Yang <felix.yang@huawei.com>
4998 * config/aarch64/aarch64.c (doloop_end): New pattern.
4999 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
5001 2014-11-18 Jason Merrill <jason@redhat.com>
5003 * tree.c (warn_deprecated_use): Show declaration with inform.
5005 2014-11-18 Richard Biener <rguenther@suse.de>
5007 PR tree-optimization/63914
5008 * tree-ssa-ccp.c (canonicalize_value): Remove float value
5010 (valid_lattice_transition): Allow (partial) transition
5011 from NaN to non-NaN if !HONOR_NANS.
5012 (set_lattice_value): Check for valid lattice transitions
5013 only when checking is enabled.
5015 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
5017 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
5019 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
5021 * config/arm/neon-testgen.ml (emit_prologue): Handle new
5022 compile_test_optim argument.
5023 (emit_automatics): Rename to emit_variables. Support variable
5024 indentation of its output.
5025 (compile_test_optim): New function.
5026 (test_intrinsic): Call compile_test_optim.
5027 * config/arm/neon.ml (features): Add Compiler_optim.
5028 (ops): Add Compiler_optim feature to Vbic and Vorn.
5029 (type_in_crypto_only): Replace 'or' by '||'.
5030 (reinterp): Likewise.
5031 (reinterpq): Likewise.
5033 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
5035 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
5036 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
5037 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
5038 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
5039 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
5040 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
5041 pointer dereference.
5043 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
5045 * tree.c (element_mode, integer_truep): New functions.
5046 * tree.h (element_mode, integer_truep): Declare them.
5047 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
5048 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
5049 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
5050 fold_strip_sign_ops): Use element_mode.
5051 (fold_binary_loc): Use element_mode and element_precision.
5052 * match.pd: Use integer_truep, element_mode, element_precision,
5053 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
5054 vectors. Simplify A/-A.
5056 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5058 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
5059 manual swapping implementation.
5060 (movcond_addsi): Likewise.
5061 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
5062 (arm_select_dominance_cc_mode): Likewise.
5063 (arm_reload_out_hi): Likewise.
5064 (gen_operands_ldrd_strd): Likewise.
5065 (output_move_double): Likewise.
5066 (arm_print_operand_address): Likewise.
5067 (thumb_output_move_mem_multiple): Likewise.
5070 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5072 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
5073 (COPYSIGNF_QUALIFIERS): Likewise.
5074 (CREATE_QUALIFIERS): Likewise.
5075 (DUP_QUALIFIERS): Likewise.
5076 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5077 (FLOAT_NARROW_QUALIFIERS): Likewise.
5078 (REINTERP_QUALIFIERS): Likewise.
5079 (RINT_QUALIFIERS): Likewise.
5080 (SPLIT_QUALIFIERS): Likewise.
5081 (FIXCONV_QUALIFIERS): Likewise.
5082 (SCALARMUL_QUALIFIERS): Likewise.
5083 (SCALARMULL_QUALIFIERS): Likewise.
5084 (SCALARMULH_QUALIFIERS): Likewise.
5085 (SELECT_QUALIFIERS): Likewise.
5086 (VTBX_QUALIFIERS): Likewise.
5087 (SHIFTIMM_QUALIFIERS): Likewise.
5088 (SCALARMAC_QUALIFIERS): Likewise.
5089 (LANEMUL_QUALIFIERS): Likewise.
5090 (LANEMULH_QUALIFIERS): Likewise.
5091 (LANEMULL_QUALIFIERS): Likewise.
5092 (SHIFTACC_QUALIFIERS): Likewise.
5093 (SHIFTINSERT_QUALIFIERS): Likewise.
5094 (VTBL_QUALIFIERS): Likewise.
5095 (LOADSTRUCT_QUALIFIERS): Likewise.
5096 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5097 (STORESTRUCT_QUALIFIERS): Likewise.
5098 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5099 (neon_builtin_type_mode): Delete.
5100 (v8qi_UP): Map to V8QImode.
5101 (v8qi_UP): Map to V8QImode.
5102 (v4hi_UP): Map to V4HImode.
5103 (v4hf_UP): Map to V4HFmode.
5104 (v2si_UP): Map to V2SImode.
5105 (v2sf_UP): Map to V2SFmode.
5106 (di_UP): Map to DImode.
5107 (v16qi_UP): Map to V16QImode.
5108 (v8hi_UP): Map to V8HImode.
5109 (v4si_UP): Map to V4SImode.
5110 (v4sf_UP): Map to V4SFmode.
5111 (v2di_UP): Map to V2DImode.
5112 (ti_UP): Map to TImode.
5113 (ei_UP): Map to EImode.
5114 (oi_UP): Map to OImode.
5115 (neon_itype): Delete.
5116 (neon_builtin_datum): Remove itype, make mode a machine_mode.
5117 (VAR1): Update accordingly.
5118 (arm_init_neon_builtins): Use machine_mode directly.
5119 (neon_dereference_pointer): Likewise.
5120 (arm_expand_neon_args): Use qualifiers to decide operand types.
5121 (arm_expand_neon_builtin): Likewise.
5122 * config/arm/arm_neon_builtins.def: Remap operation type for
5125 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5127 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
5128 (enum arm_simd_type): Likewise.
5129 (struct arm_simd_type_info): Likewise
5130 (arm_mangle_builtin_scalar_type): Likewise.
5131 (arm_mangle_builtin_vector_type): Likewise.
5132 (arm_mangle_builtin_type): Likewise.
5133 (arm_simd_builtin_std_type): Likewise.
5134 (arm_lookup_simd_builtin_type): Likewise.
5135 (arm_simd_builtin_type): Likewise.
5136 (arm_init_simd_builtin_types): Likewise.
5137 (arm_init_simd_builtin_scalar_types): Likewise.
5138 (arm_init_neon_builtins): Rewrite using qualifiers.
5139 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
5140 * config/arm/arm-simd-builtin-types.def: New file.
5141 * config/arm/t-arm (arm-builtins.o): Depend on it.
5142 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
5143 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
5144 (int16x4_t): Likewise.
5145 (int32x2_t): Likewise.
5146 (float16x4_t): Likewise.
5147 (float32x2_t): Likewise.
5148 (poly8x8_t): Likewise.
5149 (poly16x4_t): Likewise.
5150 (uint8x8_t): Likewise.
5151 (uint16x4_t): Likewise.
5152 (uint32x2_t): Likewise.
5153 (int8x16_t): Likewise.
5154 (int16x8_t): Likewise.
5155 (int32x4_t): Likewise.
5156 (int64x2_t): Likewise.
5157 (float32x4_t): Likewise.
5158 (poly8x16_t): Likewise.
5159 (poly16x8_t): Likewise.
5160 (uint8x16_t): Likewise.
5161 (uint16x8_t): Likewise.
5162 (uint32x4_t): Likewise.
5163 (uint64x2_t): Likewise.
5165 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5167 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
5168 (neon_itype): Add new types corresponding to the types used in
5170 (arm_unop_qualifiers): New.
5171 (arm_bswap_qualifiers): Likewise.
5172 (arm_binop_qualifiers): Likewise.
5173 (arm_ternop_qualifiers): Likewise.
5174 (arm_getlane_qualifiers): Likewise.
5175 (arm_lanemac_qualifiers): Likewise.
5176 (arm_setlane_qualifiers): Likewise.
5177 (arm_combine_qualifiers): Likewise.
5178 (arm_load1_qualifiers): Likewise.
5179 (arm_load1_lane_qualifiers): Likewise.
5180 (arm_store1_qualifiers): Likewise.
5181 (arm_storestruct_lane_qualifiers): Likewise.
5182 (UNOP_QUALIFIERS): Likewise.
5183 (DUP_QUALIFIERS): Likewise.
5184 (SPLIT_QUALIFIERS): Likewise.
5185 (CONVERT_QUALIFIERS): Likewise.
5186 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5187 (FLOAT_NARROW_QUALIFIERS): Likewise.
5188 (RINT_QUALIFIERS): Likewise.
5189 (COPYSIGNF_QUALIFIERS): Likewise.
5190 (CREATE_QUALIFIERS): Likewise.
5191 (REINTERP_QUALIFIERS): Likewise.
5192 (BSWAP_QUALIFIERS): Likewise.
5193 (BINOP_QUALIFIERS): Likewise.
5194 (FIXCONV_QUALIFIERS): Likewise.
5195 (SCALARMUL_QUALIFIERS): Likewise.
5196 (SCALARMULL_QUALIFIERS): Likewise.
5197 (SCALARMULH_QUALIFIERS): Likewise.
5198 (TERNOP_QUALIFIERS): Likewise.
5199 (SELECT_QUALIFIERS): Likewise.
5200 (VTBX_QUALIFIERS): Likewise.
5201 (GETLANE_QUALIFIERS): Likewise.
5202 (SHIFTIMM_QUALIFIERS): Likewise.
5203 (LANEMAC_QUALIFIERS): Likewise.
5204 (SCALARMAC_QUALIFIERS): Likewise.
5205 (SETLANE_QUALIFIERS): Likewise.
5206 (SHIFTINSERT_QUALIFIERS): Likewise.
5207 (SHIFTACC_QUALIFIERS): Likewise.
5208 (LANEMUL_QUALIFIERS): Likewise.
5209 (LANEMULL_QUALIFIERS): Likewise.
5210 (LANEMULH_QUALIFIERS): Likewise.
5211 (COMBINE_QUALIFIERS): Likewise.
5212 (VTBL_QUALIFIERS): Likewise.
5213 (LOAD1_QUALIFIERS): Likewise.
5214 (LOADSTRUCT_QUALIFIERS): Likewise.
5215 (LOAD1LANE_QUALIFIERS): Likewise.
5216 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5217 (STORE1_QUALIFIERS): Likewise.
5218 (STORESTRUCT_QUALIFIERS): Likewise.
5219 (STORE1LANE_QUALIFIERS): Likewise.
5220 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5221 (neon_builtin_datum): Keep track of qualifiers.
5224 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5226 * config/arm/arm-builtins.c (VAR1): Add a comma.
5227 (VAR2): Rewrite in terms of VAR1.
5228 (VAR3-10): Likewise.
5229 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
5230 * config/arm/arm_neon_builtins.def: Remove trailing commas.
5232 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5234 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
5235 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
5236 * config/arm/arm-builtins.c: New.
5237 * config/arm/t-arm (arm_builtins.o): New.
5238 * config/arm/arm-protos.h (arm_expand_builtin): New.
5239 (arm_builtin_decl): Likewise.
5240 (arm_init_builtins): Likewise.
5241 (arm_atomic_assign_expand_fenv): Likewise.
5242 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
5243 (arm_init_builtins): Likewise.
5244 (arm_init_iwmmxt_builtins): Likewise
5245 (safe_vector_operand): Likewise
5246 (arm_expand_binop_builtin): Likewise
5247 (arm_expand_unop_builtin): Likewise
5248 (arm_expand_builtin): Likewise
5249 (arm_builtin_decl): Likewise
5250 (insn_flags): Remove static.
5251 (tune_flags): Likewise.
5252 (enum arm_builtins): Move to config/arm/arm-builtins.c.
5253 (arm_init_neon_builtins): Likewise.
5254 (struct builtin_description): Likewise.
5255 (arm_init_iwmmxt_builtins): Likewise.
5256 (arm_init_fp16_builtins): Likewise.
5257 (arm_init_crc32_builtins): Likewise.
5258 (arm_init_builtins): Likewise.
5259 (arm_builtin_decl): Likewise.
5260 (safe_vector_operand): Likewise.
5261 (arm_expand_ternop_builtin): Likewise.
5262 (arm_expand_binop_builtin): Likewise.
5263 (arm_expand_unop_builtin): Likewise.
5264 (neon_dereference_pointer): Likewise.
5265 (arm_expand_neon_args): Likewise.
5266 (arm_expand_neon_builtin): Likewise.
5267 (neon_split_vcombine): Likewise.
5268 (arm_expand_builtin): Likewise.
5269 (arm_builtin_vectorized_function): Likewise.
5270 (arm_atomic_assign_expand_fenv): Likewise.
5272 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5274 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
5275 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
5276 (FL_ARCH3M): Likewise.
5277 (FL_MODE26): Likewise.
5278 (FL_MODE32): Likewise.
5279 (FL_ARCH4): Likewise.
5280 (FL_ARCH5): Likewise.
5281 (FL_THUMB): Likewise.
5282 (FL_LDSCHED): Likewise.
5283 (FL_STRONG): Likewise.
5284 (FL_ARCH5E): Likewise.
5285 (FL_XSCALE): Likewise.
5286 (FL_ARCH6): Likewise.
5287 (FL_VFPV2): Likewise.
5288 (FL_WBUF): Likewise.
5289 (FL_ARCH6K): Likewise.
5290 (FL_THUMB2): Likewise.
5291 (FL_NOTM): Likewise.
5292 (FL_THUMB_DIV): Likewise.
5293 (FL_VFPV3): Likewise.
5294 (FL_NEON): Likewise.
5295 (FL_ARCH7EM): Likewise.
5296 (FL_ARCH7): Likewise.
5297 (FL_ARM_DIV): Likewise.
5298 (FL_ARCH8): Likewise.
5299 (FL_CRC32): Likewise.
5300 (FL_SMALLMUL): Likewise.
5301 (FL_IWMMXT): Likewise.
5302 (FL_IWMMXT2): Likewise.
5303 (FL_TUNE): Likewise.
5304 (FL_FOR_ARCH2): Likewise.
5305 (FL_FOR_ARCH3): Likewise.
5306 (FL_FOR_ARCH3M): Likewise.
5307 (FL_FOR_ARCH4): Likewise.
5308 (FL_FOR_ARCH4T): Likewise.
5309 (FL_FOR_ARCH5): Likewise.
5310 (FL_FOR_ARCH5T): Likewise.
5311 (FL_FOR_ARCH5E): Likewise.
5312 (FL_FOR_ARCH5TE): Likewise.
5313 (FL_FOR_ARCH5TEJ): Likewise.
5314 (FL_FOR_ARCH6): Likewise.
5315 (FL_FOR_ARCH6J): Likewise.
5316 (FL_FOR_ARCH6K): Likewise.
5317 (FL_FOR_ARCH6Z): Likewise.
5318 (FL_FOR_ARCH6ZK): Likewise.
5319 (FL_FOR_ARCH6T2): Likewise.
5320 (FL_FOR_ARCH6M): Likewise.
5321 (FL_FOR_ARCH7): Likewise.
5322 (FL_FOR_ARCH7A): Likewise.
5323 (FL_FOR_ARCH7VE): Likewise.
5324 (FL_FOR_ARCH7R): Likewise.
5325 (FL_FOR_ARCH7M): Likewise.
5326 (FL_FOR_ARCH7EM): Likewise.
5327 (FL_FOR_ARCH8A): Likewise.
5328 * config/arm/arm-protos.h: Take definitions moved from arm.c.
5330 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5332 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
5333 parameter, rearrange switch statement accordingly.
5334 (arm_evpc_neon_vrev): Remove "Magic Word".
5335 * config/arm/unspecs.md (unspec): Split many UNSPECs to
5336 rounding, or signed/unsigned variants.
5337 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
5338 (vcondu<mode><mode>): Likewise.
5339 (neon_vadd): Remove "Magic Word" operand.
5340 (neon_vaddl): Remove "Magic Word" operand, convert to use
5341 signed/unsigned iterator.
5342 (neon_vaddw): Likewise.
5343 (neon_vhadd): Likewise, also iterate over "rounding" forms.
5344 (neon_vqadd): Remove "Magic Word" operand, convert to use
5345 signed/unsigned iterator.
5346 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
5347 over "rounding" forms.
5348 (neon_vmul): Remove "Magic Word" operand, iterate over
5349 polynomial/float instruction forms.
5350 (neon_vmla): Remove "Magic Word" operand.
5351 (neon_vfma): Likewise.
5352 (neon_vfms): Likewise.
5353 (neon_vmls): Likewise.
5354 (neon_vmlal): Remove "Magic Word" operand, iterate over
5355 signed/unsigned forms.
5356 (neon_vmlsl): Likewise.
5357 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
5359 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
5360 signed/unsigned forms.
5361 (neon_vqdmlsl): Likewise.
5362 (neon_vmull): Likewise.
5363 (neon_vqdmull): Remove "Magic Word" operand.
5364 (neon_vsub): Remove "Magic Word" operand.
5365 (neon_vsubl): Remove "Magic Word" operand, convert to use
5366 signed/unsigned iterator.
5367 (neon_vsubw): Likewise.
5368 (neon_vhsub): Likewise.
5369 (neon_vqsub): Likewise.
5370 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
5371 over "rounding" forms.
5372 (neon_vceq): Remove "Magic Word" operand.
5373 (neon_vcge): Likewise.
5374 (neon_vcgeu): Likewise.
5375 (neon_vcgt): Likewise.
5376 (neon_vcgtu): Likewise.
5377 (neon_vcle): Likewise.
5378 (neon_vclt): Likewise.
5379 (neon_vcage): Likewise.
5380 (neon_vcagt): Likewise.
5381 (neon_vabd): Remove "Magic Word" operand, iterate over
5382 signed/unsigned forms, and split out...
5383 (neon_vabdf): ...this as new.
5384 (neon_vabdl): Remove "Magic Word" operand, iterate over
5385 signed/unsigned forms.
5386 (neon_vaba): Likewise.
5387 (neon_vmax): Remove "Magic Word" operand, iterate over
5388 signed/unsigned and max/min forms, and split out...
5389 (neon_v<maxmin>f): ...this as new.
5390 (neon_vmin): Delete.
5391 (neon_vpadd): Remove "Magic Word" operand.
5392 (neon_vpaddl): Remove "Magic Word" operand, iterate over
5393 signed/unsigned variants.
5394 (neon_vpadal): Likewise.
5395 (neon_vpmax): Remove "Magic Word" operand, iterate over
5396 signed/unsigned and max/min forms, and split out...
5397 (neon_vp<maxmin>f): ...this as new.
5398 (neon_vpmin): Delete.
5399 (neon_vrecps): Remove "Magic Word" operand.
5400 (neon_vrsqrts): Likewise.
5401 (neon_vabs): Likewise.
5402 (neon_vqabs): Likewise.
5403 (neon_vneg): Likewise.
5404 (neon_vqneg): Likewise.
5405 (neon_vcls): Likewise.
5406 (neon_vcnt): Likewise.
5407 (neon_vrecpe): Likewise.
5408 (neon_vrsqrte): Likewise.
5409 (neon_vmvn): Likewise.
5410 (neon_vget_lane): Likewise.
5411 (neon_vget_laneu): New.
5412 (neon_vget_lanedi): Remove "Magic Word" operand.
5413 (neon_vget_lanev2di): Likewise.
5414 (neon_vcvt): Remove "Magic Word" operand, iterate over
5415 signed/unsigned variants.
5416 (neon_vcvt_n): Likewise.
5417 (neon_vmovn): Remove "Magic Word" operand.
5418 (neon_vqmovn): Remove "Magic Word" operand, iterate over
5419 signed/unsigned variants.
5420 (neon_vmovun): Remove "Magic Word" operand.
5421 (neon_vmovl): Remove "Magic Word" operand, iterate over
5422 signed/unsigned variants.
5423 (neon_vmul_lane): Remove "Magic Word" operand.
5424 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
5425 signed/unsigned variants.
5426 (neon_vqdmull_lane): Remove "Magic Word" operand.
5427 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
5429 (neon_vmla_lane): Remove "Magic Word" operand.
5430 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
5431 signed/unsigned variants.
5432 (neon_vqdmlal_lane): Remove "Magic Word" operand.
5433 (neon_vmls_lane): Likewise.
5434 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
5435 signed/unsigned variants.
5436 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
5437 (neon_vmul_n): Remove "Magic Word" operand.
5438 (neon_vmull_n): Rename to...
5439 (neon_vmulls_n): ...this, remove "Magic Word" operand.
5440 (neon_vmullu_n): New.
5441 (neon_vqdmull_n): Remove "Magic Word" operand.
5442 (neon_vqdmulh_n): Likewise.
5443 (neon_vqrdmulh_n): New.
5444 (neon_vmla_n): Remove "Magic Word" operand.
5445 (neon_vmls_n): Likewise.
5446 (neon_vmlal_n): Rename to...
5447 (neon_vmlals_n): ...this, remove "Magic Word" operand.
5448 (neon_vmlalu_n): New.
5449 (neon_vqdmlal_n): Remove "Magic Word" operand.
5450 (neon_vmlsl_n): Rename to...
5451 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
5452 (neon_vmlslu_n): New.
5453 (neon_vqdmlsl_n): Remove "Magic Word" operand.
5454 (neon_vrev64): Remove "Magic Word" operand.
5455 (neon_vrev32): Likewise.
5456 (neon_vrev16): Likewise.
5457 (neon_vshl): Remove "Magic Word" operand, iterate over
5458 signed/unsigned and "rounding" forms.
5459 (neon_vqshl): Likewise.
5460 (neon_vshr_n): Likewise.
5461 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
5463 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
5464 signed/unsigned and "rounding" forms.
5465 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
5467 (neon_vshl_n): Remove "Magic Word" operand.
5468 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
5469 signed/unsigned variants.
5470 (neon_vqshlu_n): Remove "Magic Word" operand.
5471 (neon_vshll_n): Remove "Magic Word" operand, iterate over
5472 signed/unsigned variants.
5473 (neon_vsra_n): Remove "Magic Word" operand, iterate over
5474 signed/unsigned and "rounding" forms.
5475 * config/arm/iterators.md (VPF): New.
5482 (VMLAL_LANE): Likewise.
5484 (VMLSL_LANE): Likewise.
5485 (VQDMULH): Likewise,
5486 (VQDMULH_LANE): Likewise.
5488 (VMULL_LANE): Likewise.
5496 (VMAXMIN): Likewise.
5497 (VMAXMINF): Likewise.
5500 (VPMAXMIN): Likewise.
5501 (VPMAXMINF): Likewise.
5502 (VCVT_US): Likewise.
5503 (VCVT_US_N): Likewise.
5509 (VSHRN_N): Likewise.
5510 (VQSHRN_N): Likewise.
5511 (VQSHRUN_N): Likewise.
5512 (VQSHL_N): Likewise.
5513 (VSHLL_N): Likewise.
5519 (shift_op): Likewise.
5520 * config/arm/arm_neon_builtins.def (vaddl): Split to...
5521 (vaddls): ...this and...
5523 (vaddw): Split to...
5524 (vaddws): ...this and...
5526 (vhadd): Split to...
5527 (vhadds): ...this and...
5528 (vhaddu): ...this and...
5529 (vrhadds): ...this and...
5531 (vqadd): Split to...
5532 (vqadds): ...this and...
5534 (vaddhn): Split to itself and...
5537 (vmulf): ...this and...
5539 (vmlal): Split to...
5540 (vmlals): ...this and...
5542 (vmlsl): Split to...
5543 (vmlsls): ...this and...
5545 (vqdmulh): Split to itself and...
5546 (vqrdmulh): ...this.
5547 (vmull): Split to...
5548 (vmullp): ...this and...
5549 (vmulls): ...this and...
5551 (vmull_n): Split to...
5552 (vmulls_n): ...this and...
5553 (vmullu_n): ...this.
5554 (vmull_lane): Split to...
5555 (vmulls_lane): ...this and...
5556 (vmullu_lane): ...this.
5557 (vqdmulh_n): Split to itself and...
5558 (vqrdmulh_n): ...this.
5559 (vqdmulh_lane): Split to itself and...
5560 (vqrdmulh_lane): ...this.
5562 (vshls): ...this and...
5563 (vshlu): ...this and...
5564 (vrshls): ...this and...
5566 (vqshl): Split to...
5567 (vqshls): ...this and...
5568 (vqrshlu): ...this and...
5569 (vqrshls): ...this and...
5571 (vshr_n): Split to...
5572 (vshrs_n): ...this and...
5573 (vshru_n): ...this and...
5574 (vrshrs_n): ...this and...
5575 (vrshru_n): ...this.
5576 (vshrn_n): Split to itself and...
5577 (vrshrn_n): ...this.
5578 (vqshrn_n): Split to...
5579 (vqshrns_n): ...this and...
5580 (vqshrnu_n): ...this and...
5581 (vqrshrns_n): ...this and...
5582 (vqrshrnu_n): ...this.
5583 (vqshrun_n): Split to itself and...
5584 (vqrshrun_n): ...this.
5585 (vqshl_n): Split to...
5586 (vqshl_s_n): ...this and...
5587 (vqshl_u_n): ...this.
5588 (vshll_n): Split to...
5589 (vshlls_n): ...this and...
5590 (vshllu_n): ...this.
5591 (vsra_n): Split to...
5592 (vsras_n): ...this and...
5593 (vsrau_n): ...this and.
5594 (vrsras_n): ...this and...
5595 (vrsrau_n): ...this and.
5596 (vsubl): Split to...
5597 (vsubls): ...this and...
5599 (vsubw): Split to...
5600 (vsubws): ...this and...
5602 (vqsub): Split to...
5603 (vqsubs): ...this and...
5605 (vhsub): Split to...
5606 (vhsubs): ...this and...
5608 (vsubhn): Split to itself and...
5611 (vabds): ...this and...
5612 (vabdu): ...this and...
5614 (vabdl): Split to...
5615 (vabdls): ...this and...
5618 (vabas): ...this and...
5619 (vabau): ...this and...
5620 (vabal): Split to...
5621 (vabals): ...this and...
5624 (vmaxs): ...this and...
5625 (vmaxu): ...this and...
5628 (vmins): ...this and...
5629 (vminu): ...this and...
5631 (vpmax): Split to...
5632 (vpmaxs): ...this and...
5633 (vpmaxu): ...this and...
5635 (vpmin): Split to...
5636 (vpmins): ...this and...
5637 (vpminu): ...this and...
5639 (vpaddl): Split to...
5640 (vpaddls): ...this and...
5642 (vpadal): Split to...
5643 (vpadals): ...this and...
5646 (vqmovn): Split to...
5647 (vqmovns): ...this and...
5649 (vmovl): Split to...
5650 (vmovls): ...this and...
5652 (vmlal_lane): Split to...
5653 (vmlals_lane): ...this and...
5654 (vmlalu_lane): ...this.
5655 (vmlsl_lane): Split to...
5656 (vmlsls_lane): ...this and...
5657 (vmlslu_lane): ...this.
5658 (vmlal_n): Split to...
5659 (vmlals_n): ...this and...
5660 (vmlalu_n): ...this.
5661 (vmlsl_n): Split to...
5662 (vmlsls_n): ...this and...
5663 (vmlslu_n): ...this.
5664 (vext): Make type "SHIFTINSERT".
5666 (vcvts): ...this and...
5668 (vcvt_n): Split to...
5669 (vcvts_n): ...this and...
5671 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
5672 (vaddl_s16): Likewise.
5673 (vaddl_s32): Likewise.
5674 (vaddl_u8): Likewise.
5675 (vaddl_u16): Likewise.
5676 (vaddl_u32): Likewise.
5677 (vaddw_s8): Likewise.
5678 (vaddw_s16): Likewise.
5679 (vaddw_s32): Likewise.
5680 (vaddw_u8): Likewise.
5681 (vaddw_u16): Likewise.
5682 (vaddw_u32): Likewise.
5683 (vhadd_s8): Likewise.
5684 (vhadd_s16): Likewise.
5685 (vhadd_s32): Likewise.
5686 (vhadd_u8): Likewise.
5687 (vhadd_u16): Likewise.
5688 (vhadd_u32): Likewise.
5689 (vhaddq_s8): Likewise.
5690 (vhaddq_s16): Likewise.
5691 (vhaddq_s32): Likewise.
5692 (vhaddq_u8): Likewise.
5693 (vhaddq_u16): Likewise.
5694 (vrhadd_s8): Likewise.
5695 (vrhadd_s16): Likewise.
5696 (vrhadd_s32): Likewise.
5697 (vrhadd_u8): Likewise.
5698 (vrhadd_u16): Likewise.
5699 (vrhadd_u32): Likewise.
5700 (vrhaddq_s8): Likewise.
5701 (vrhaddq_s16): Likewise.
5702 (vrhaddq_s32): Likewise.
5703 (vrhaddq_u8): Likewise.
5704 (vrhaddq_u16): Likewise.
5705 (vrhaddq_u32): Likewise.
5706 (vqadd_s8): Likewise.
5707 (vqadd_s16): Likewise.
5708 (vqadd_s32): Likewise.
5709 (vqadd_s64): Likewise.
5710 (vqadd_u8): Likewise.
5711 (vqadd_u16): Likewise.
5712 (vqadd_u32): Likewise.
5713 (vqadd_u64): Likewise.
5714 (vqaddq_s8): Likewise.
5715 (vqaddq_s16): Likewise.
5716 (vqaddq_s32): Likewise.
5717 (vqaddq_s64): Likewise.
5718 (vqaddq_u8): Likewise.
5719 (vqaddq_u16): Likewise.
5720 (vqaddq_u32): Likewise.
5721 (vqaddq_u64): Likewise.
5722 (vaddhn_s16): Likewise.
5723 (vaddhn_s32): Likewise.
5724 (vaddhn_s64): Likewise.
5725 (vaddhn_u16): Likewise.
5726 (vaddhn_u32): Likewise.
5727 (vaddhn_u64): Likewise.
5728 (vraddhn_s16): Likewise.
5729 (vraddhn_s32): Likewise.
5730 (vraddhn_s64): Likewise.
5731 (vraddhn_u16): Likewise.
5732 (vraddhn_u32): Likewise.
5733 (vraddhn_u64): Likewise.
5734 (vmul_p8): Likewise.
5735 (vmulq_p8): Likewise.
5736 (vqdmulh_s16): Likewise.
5737 (vqdmulh_s32): Likewise.
5738 (vqdmulhq_s16): Likewise.
5739 (vqdmulhq_s32): Likewise.
5740 (vqrdmulh_s16): Likewise.
5741 (vqrdmulh_s32): Likewise.
5742 (vqrdmulhq_s16): Likewise.
5743 (vqrdmulhq_s32): Likewise.
5744 (vmull_s8): Likewise.
5745 (vmull_s16): Likewise.
5746 (vmull_s32): Likewise.
5747 (vmull_u8): Likewise.
5748 (vmull_u16): Likewise.
5749 (vmull_u32): Likewise.
5750 (vmull_p8): Likewise.
5751 (vqdmull_s16): Likewise.
5752 (vqdmull_s32): Likewise.
5753 (vmla_s8): Likewise.
5754 (vmla_s16): Likewise.
5755 (vmla_s32): Likewise.
5756 (vmla_f32): Likewise.
5757 (vmla_u8): Likewise.
5758 (vmla_u16): Likewise.
5759 (vmla_u32): Likewise.
5760 (vmlaq_s8): Likewise.
5761 (vmlaq_s16): Likewise.
5762 (vmlaq_s32): Likewise.
5763 (vmlaq_f32): Likewise.
5764 (vmlaq_u8): Likewise.
5765 (vmlaq_u16): Likewise.
5766 (vmlaq_u32): Likewise.
5767 (vmlal_s8): Likewise.
5768 (vmlal_s16): Likewise.
5769 (vmlal_s32): Likewise.
5770 (vmlal_u8): Likewise.
5771 (vmlal_u16): Likewise.
5772 (vmlal_u32): Likewise.
5773 (vqdmlal_s16): Likewise.
5774 (vqdmlal_s32): Likewise.
5775 (vmls_s8): Likewise.
5776 (vmls_s16): Likewise.
5777 (vmls_s32): Likewise.
5778 (vmls_f32): Likewise.
5779 (vmls_u8): Likewise.
5780 (vmls_u16): Likewise.
5781 (vmls_u32): Likewise.
5782 (vmlsq_s8): Likewise.
5783 (vmlsq_s16): Likewise.
5784 (vmlsq_s32): Likewise.
5785 (vmlsq_f32): Likewise.
5786 (vmlsq_u8): Likewise.
5787 (vmlsq_u16): Likewise.
5788 (vmlsq_u32): Likewise.
5789 (vmlsl_s8): Likewise.
5790 (vmlsl_s16): Likewise.
5791 (vmlsl_s32): Likewise.
5792 (vmlsl_u8): Likewise.
5793 (vmlsl_u16): Likewise.
5794 (vmlsl_u32): Likewise.
5795 (vqdmlsl_s16): Likewise.
5796 (vqdmlsl_s32): Likewise.
5797 (vfma_f32): Likewise.
5798 (vfmaq_f32): Likewise.
5799 (vfms_f32): Likewise.
5800 (vfmsq_f32): Likewise.
5801 (vsubl_s8): Likewise.
5802 (vsubl_s16): Likewise.
5803 (vsubl_s32): Likewise.
5804 (vsubl_u8): Likewise.
5805 (vsubl_u16): Likewise.
5806 (vsubl_u32): Likewise.
5807 (vsubw_s8): Likewise.
5808 (vsubw_s16): Likewise.
5809 (vsubw_s32): Likewise.
5810 (vsubw_u8): Likewise.
5811 (vsubw_u16): Likewise.
5812 (vsubw_u32): Likewise.
5813 (vhsub_s8): Likewise.
5814 (vhsub_s16): Likewise.
5815 (vhsub_s32): Likewise.
5816 (vhsub_u8): Likewise.
5817 (vhsub_u16): Likewise.
5818 (vhsub_u32): Likewise.
5819 (vhsubq_s8): Likewise.
5820 (vhsubq_s16): Likewise.
5821 (vhsubq_s32): Likewise.
5822 (vhsubq_u8): Likewise.
5823 (vhsubq_u16): Likewise.
5824 (vhsubq_u32): Likewise.
5825 (vqsub_s8): Likewise.
5826 (vqsub_s16): Likewise.
5827 (vqsub_s32): Likewise.
5828 (vqsub_s64): Likewise.
5829 (vqsub_u8): Likewise.
5830 (vqsub_u16): Likewise.
5831 (vqsub_u32): Likewise.
5832 (vqsub_u64): Likewise.
5833 (vqsubq_s8): Likewise.
5834 (vqsubq_s16): Likewise.
5835 (vqsubq_s32): Likewise.
5836 (vqsubq_s64): Likewise.
5837 (vqsubq_u8): Likewise.
5838 (vqsubq_u16): Likewise.
5839 (vqsubq_u32): Likewise.
5840 (vqsubq_u64): Likewise.
5841 (vsubhn_s16): Likewise.
5842 (vsubhn_s32): Likewise.
5843 (vsubhn_s64): Likewise.
5844 (vsubhn_u16): Likewise.
5845 (vsubhn_u32): Likewise.
5846 (vsubhn_u64): Likewise.
5847 (vrsubhn_s16): Likewise.
5848 (vrsubhn_s32): Likewise.
5849 (vrsubhn_s64): Likewise.
5850 (vrsubhn_u16): Likewise.
5851 (vrsubhn_u32): Likewise.
5852 (vrsubhn_u64): Likewise.
5853 (vceq_s8): Likewise.
5854 (vceq_s16): Likewise.
5855 (vceq_s32): Likewise.
5856 (vceq_f32): Likewise.
5857 (vceq_u8): Likewise.
5858 (vceq_u16): Likewise.
5859 (vceq_u32): Likewise.
5860 (vceq_p8): Likewise.
5861 (vceqq_s8): Likewise.
5862 (vceqq_s16): Likewise.
5863 (vceqq_s32): Likewise.
5864 (vceqq_f32): Likewise.
5865 (vceqq_u8): Likewise.
5866 (vceqq_u16): Likewise.
5867 (vceqq_u32): Likewise.
5868 (vceqq_p8): Likewise.
5869 (vcge_s8): Likewise.
5870 (vcge_s16): Likewise.
5871 (vcge_s32): Likewise.
5872 (vcge_f32): Likewise.
5873 (vcge_u8): Likewise.
5874 (vcge_u16): Likewise.
5875 (vcge_u32): Likewise.
5876 (vcgeq_s8): Likewise.
5877 (vcgeq_s16): Likewise.
5878 (vcgeq_s32): Likewise.
5879 (vcgeq_f32): Likewise.
5880 (vcgeq_u8): Likewise.
5881 (vcgeq_u16): Likewise.
5882 (vcgeq_u32): Likewise.
5883 (vcle_s8): Likewise.
5884 (vcle_s16): Likewise.
5885 (vcle_s32): Likewise.
5886 (vcle_f32): Likewise.
5887 (vcle_u8): Likewise.
5888 (vcle_u16): Likewise.
5889 (vcle_u32): Likewise.
5890 (vcleq_s8): Likewise.
5891 (vcleq_s16): Likewise.
5892 (vcleq_s32): Likewise.
5893 (vcleq_f32): Likewise.
5894 (vcleq_u8): Likewise.
5895 (vcleq_u16): Likewise.
5896 (vcleq_u32): Likewise.
5897 (vcgt_s8): Likewise.
5898 (vcgt_s16): Likewise.
5899 (vcgt_s32): Likewise.
5900 (vcgt_f32): Likewise.
5901 (vcgt_u8): Likewise.
5902 (vcgt_u16): Likewise.
5903 (vcgt_u32): Likewise.
5904 (vcgtq_s8): Likewise.
5905 (vcgtq_s16): Likewise.
5906 (vcgtq_s32): Likewise.
5907 (vcgtq_f32): Likewise.
5908 (vcgtq_u8): Likewise.
5909 (vcgtq_u16): Likewise.
5910 (vcgtq_u32): Likewise.
5911 (vclt_s8): Likewise.
5912 (vclt_s16): Likewise.
5913 (vclt_s32): Likewise.
5914 (vclt_f32): Likewise.
5915 (vclt_u8): Likewise.
5916 (vclt_u16): Likewise.
5917 (vclt_u32): Likewise.
5918 (vcltq_s8): Likewise.
5919 (vcltq_s16): Likewise.
5920 (vcltq_s32): Likewise.
5921 (vcltq_f32): Likewise.
5922 (vcltq_u8): Likewise.
5923 (vcltq_u16): Likewise.
5924 (vcltq_u32): Likewise.
5925 (vcage_f32): Likewise.
5926 (vcageq_f32): Likewise.
5927 (vcale_f32): Likewise.
5928 (vcaleq_f32): Likewise.
5929 (vcagt_f32): Likewise.
5930 (vcagtq_f32): Likewise.
5931 (vcalt_f32): Likewise.
5932 (vcaltq_f32): Likewise.
5933 (vtst_s8): Likewise.
5934 (vtst_s16): Likewise.
5935 (vtst_s32): Likewise.
5936 (vtst_u8): Likewise.
5937 (vtst_u16): Likewise.
5938 (vtst_u32): Likewise.
5939 (vtst_p8): Likewise.
5940 (vtstq_s8): Likewise.
5941 (vtstq_s16): Likewise.
5942 (vtstq_s32): Likewise.
5943 (vtstq_u8): Likewise.
5944 (vtstq_u16): Likewise.
5945 (vtstq_u32): Likewise.
5946 (vtstq_p8): Likewise.
5947 (vabd_s8): Likewise.
5948 (vabd_s16): Likewise.
5949 (vabd_s32): Likewise.
5950 (vabd_f32): Likewise.
5951 (vabd_u8): Likewise.
5952 (vabd_u16): Likewise.
5953 (vabd_u32): Likewise.
5954 (vabdq_s8): Likewise.
5955 (vabdq_s16): Likewise.
5956 (vabdq_s32): Likewise.
5957 (vabdq_f32): Likewise.
5958 (vabdq_u8): Likewise.
5959 (vabdq_u16): Likewise.
5960 (vabdq_u32): Likewise.
5961 (vabdl_s8): Likewise.
5962 (vabdl_s16): Likewise.
5963 (vabdl_s32): Likewise.
5964 (vabdl_u8): Likewise.
5965 (vabdl_u16): Likewise.
5966 (vabdl_u32): Likewise.
5967 (vaba_s8): Likewise.
5968 (vaba_s16): Likewise.
5969 (vaba_s32): Likewise.
5970 (vaba_u8): Likewise.
5971 (vaba_u16): Likewise.
5972 (vaba_u32): Likewise.
5973 (vabaq_s8): Likewise.
5974 (vabaq_s16): Likewise.
5975 (vabaq_s32): Likewise.
5976 (vabaq_u8): Likewise.
5977 (vabaq_u16): Likewise.
5978 (vabaq_u32): Likewise.
5979 (vabal_s8): Likewise.
5980 (vabal_s16): Likewise.
5981 (vabal_s32): Likewise.
5982 (vabal_u8): Likewise.
5983 (vabal_u16): Likewise.
5984 (vabal_u32): Likewise.
5985 (vmax_s8): Likewise.
5986 (vmax_s16): Likewise.
5987 (vmax_s32): Likewise.
5988 (vmax_f32): Likewise.
5989 (vmax_u8): Likewise.
5990 (vmax_u16): Likewise.
5991 (vmax_u32): Likewise.
5992 (vmaxq_s8): Likewise.
5993 (vmaxq_s16): Likewise.
5994 (vmaxq_s32): Likewise.
5995 (vmaxq_f32): Likewise.
5996 (vmaxq_u8): Likewise.
5997 (vmaxq_u16): Likewise.
5998 (vmaxq_u32): Likewise.
5999 (vmin_s8): Likewise.
6000 (vmin_s16): Likewise.
6001 (vmin_s32): Likewise.
6002 (vmin_f32): Likewise.
6003 (vmin_u8): Likewise.
6004 (vmin_u16): Likewise.
6005 (vmin_u32): Likewise.
6006 (vminq_s8): Likewise.
6007 (vminq_s16): Likewise.
6008 (vminq_s32): Likewise.
6009 (vminq_f32): Likewise.
6010 (vminq_u8): Likewise.
6011 (vminq_u16): Likewise.
6012 (vminq_u32): Likewise.
6013 (vpadd_s8): Likewise.
6014 (vpadd_s16): Likewise.
6015 (vpadd_s32): Likewise.
6016 (vpadd_f32): Likewise.
6017 (vpadd_u8): Likewise.
6018 (vpadd_u16): Likewise.
6019 (vpadd_u32): Likewise.
6020 (vpaddl_s8): Likewise.
6021 (vpaddl_s16): Likewise.
6022 (vpaddl_s32): Likewise.
6023 (vpaddl_u8): Likewise.
6024 (vpaddl_u16): Likewise.
6025 (vpaddl_u32): Likewise.
6026 (vpaddlq_s8): Likewise.
6027 (vpaddlq_s16): Likewise.
6028 (vpaddlq_s32): Likewise.
6029 (vpaddlq_u8): Likewise.
6030 (vpaddlq_u16): Likewise.
6031 (vpaddlq_u32): Likewise.
6032 (vpadal_s8): Likewise.
6033 (vpadal_s16): Likewise.
6034 (vpadal_s32): Likewise.
6035 (vpadal_u8): Likewise.
6036 (vpadal_u16): Likewise.
6037 (vpadal_u32): Likewise.
6038 (vpadalq_s8): Likewise.
6039 (vpadalq_s16): Likewise.
6040 (vpadalq_s32): Likewise.
6041 (vpadalq_u8): Likewise.
6042 (vpadalq_u16): Likewise.
6043 (vpadalq_u32): Likewise.
6044 (vpmax_s8): Likewise.
6045 (vpmax_s16): Likewise.
6046 (vpmax_s32): Likewise.
6047 (vpmax_f32): Likewise.
6048 (vpmax_u8): Likewise.
6049 (vpmax_u16): Likewise.
6050 (vpmax_u32): Likewise.
6051 (vpmin_s8): Likewise.
6052 (vpmin_s16): Likewise.
6053 (vpmin_s32): Likewise.
6054 (vpmin_f32): Likewise.
6055 (vpmin_u8): Likewise.
6056 (vpmin_u16): Likewise.
6057 (vpmin_u32): Likewise.
6058 (vrecps_f32): Likewise.
6059 (vrecpsq_f32): Likewise.
6060 (vrsqrts_f32): Likewise.
6061 (vrsqrtsq_f32): Likewise.
6062 (vshl_s8): Likewise.
6063 (vshl_s16): Likewise.
6064 (vshl_s32): Likewise.
6065 (vshl_s64): Likewise.
6066 (vshl_u8): Likewise.
6067 (vshl_u16): Likewise.
6068 (vshl_u32): Likewise.
6069 (vshl_u64): Likewise.
6070 (vshlq_s8): Likewise.
6071 (vshlq_s16): Likewise.
6072 (vshlq_s32): Likewise.
6073 (vshlq_s64): Likewise.
6074 (vshlq_u8): Likewise.
6075 (vshlq_u16): Likewise.
6076 (vshlq_u32): Likewise.
6077 (vshlq_u64): Likewise.
6078 (vrshl_s8): Likewise.
6079 (vrshl_s16): Likewise.
6080 (vrshl_s32): Likewise.
6081 (vrshl_s64): Likewise.
6082 (vrshl_u8): Likewise.
6083 (vrshl_u16): Likewise.
6084 (vrshl_u32): Likewise.
6085 (vrshl_u64): Likewise.
6086 (vrshlq_s8): Likewise.
6087 (vrshlq_s16): Likewise.
6088 (vrshlq_s32): Likewise.
6089 (vrshlq_s64): Likewise.
6090 (vrshlq_u8): Likewise.
6091 (vrshlq_u16): Likewise.
6092 (vrshlq_u32): Likewise.
6093 (vrshlq_u64): Likewise.
6094 (vqshl_s8): Likewise.
6095 (vqshl_s16): Likewise.
6096 (vqshl_s32): Likewise.
6097 (vqshl_s64): Likewise.
6098 (vqshl_u8): Likewise.
6099 (vqshl_u16): Likewise.
6100 (vqshl_u32): Likewise.
6101 (vqshl_u64): Likewise.
6102 (vqshlq_s8): Likewise.
6103 (vqshlq_s16): Likewise.
6104 (vqshlq_s32): Likewise.
6105 (vqshlq_s64): Likewise.
6106 (vqshlq_u8): Likewise.
6107 (vqshlq_u16): Likewise.
6108 (vqshlq_u32): Likewise.
6109 (vqshlq_u64): Likewise.
6110 (vqrshl_s8): Likewise.
6111 (vqrshl_s16): Likewise.
6112 (vqrshl_s32): Likewise.
6113 (vqrshl_s64): Likewise.
6114 (vqrshl_u8): Likewise.
6115 (vqrshl_u16): Likewise.
6116 (vqrshl_u32): Likewise.
6117 (vqrshl_u64): Likewise.
6118 (vqrshlq_s8): Likewise.
6119 (vqrshlq_s16): Likewise.
6120 (vqrshlq_s32): Likewise.
6121 (vqrshlq_s64): Likewise.
6122 (vqrshlq_u8): Likewise.
6123 (vqrshlq_u16): Likewise.
6124 (vqrshlq_u32): Likewise.
6125 (vqrshlq_u64): Likewise.
6126 (vshr_n_s8): Likewise.
6127 (vshr_n_s16): Likewise.
6128 (vshr_n_s32): Likewise.
6129 (vshr_n_s64): Likewise.
6130 (vshr_n_u8): Likewise.
6131 (vshr_n_u16): Likewise.
6132 (vshr_n_u32): Likewise.
6133 (vshr_n_u64): Likewise.
6134 (vshrq_n_s8): Likewise.
6135 (vshrq_n_s16): Likewise.
6136 (vshrq_n_s32): Likewise.
6137 (vshrq_n_s64): Likewise.
6138 (vshrq_n_u8): Likewise.
6139 (vshrq_n_u16): Likewise.
6140 (vshrq_n_u32): Likewise.
6141 (vshrq_n_u64): Likewise.
6142 (vrshr_n_s8): Likewise.
6143 (vrshr_n_s16): Likewise.
6144 (vrshr_n_s32): Likewise.
6145 (vrshr_n_s64): Likewise.
6146 (vrshr_n_u8): Likewise.
6147 (vrshr_n_u16): Likewise.
6148 (vrshr_n_u32): Likewise.
6149 (vrshr_n_u64): Likewise.
6150 (vrshrq_n_s8): Likewise.
6151 (vrshrq_n_s16): Likewise.
6152 (vrshrq_n_s32): Likewise.
6153 (vrshrq_n_s64): Likewise.
6154 (vrshrq_n_u8): Likewise.
6155 (vrshrq_n_u16): Likewise.
6156 (vrshrq_n_u32): Likewise.
6157 (vrshrq_n_u64): Likewise.
6158 (vshrn_n_s16): Likewise.
6159 (vshrn_n_s32): Likewise.
6160 (vshrn_n_s64): Likewise.
6161 (vshrn_n_u16): Likewise.
6162 (vshrn_n_u32): Likewise.
6163 (vshrn_n_u64): Likewise.
6164 (vrshrn_n_s16): Likewise.
6165 (vrshrn_n_s32): Likewise.
6166 (vrshrn_n_s64): Likewise.
6167 (vrshrn_n_u16): Likewise.
6168 (vrshrn_n_u32): Likewise.
6169 (vrshrn_n_u64): Likewise.
6170 (vqshrn_n_s16): Likewise.
6171 (vqshrn_n_s32): Likewise.
6172 (vqshrn_n_s64): Likewise.
6173 (vqshrn_n_u16): Likewise.
6174 (vqshrn_n_u32): Likewise.
6175 (vqshrn_n_u64): Likewise.
6176 (vqrshrn_n_s16): Likewise.
6177 (vqrshrn_n_s32): Likewise.
6178 (vqrshrn_n_s64): Likewise.
6179 (vqrshrn_n_u16): Likewise.
6180 (vqrshrn_n_u32): Likewise.
6181 (vqrshrn_n_u64): Likewise.
6182 (vqshrun_n_s16): Likewise.
6183 (vqshrun_n_s32): Likewise.
6184 (vqshrun_n_s64): Likewise.
6185 (vqrshrun_n_s16): Likewise.
6186 (vqrshrun_n_s32): Likewise.
6187 (vqrshrun_n_s64): Likewise.
6188 (vshl_n_s8): Likewise.
6189 (vshl_n_s16): Likewise.
6190 (vshl_n_s32): Likewise.
6191 (vshl_n_s64): Likewise.
6192 (vshl_n_u8): Likewise.
6193 (vshl_n_u16): Likewise.
6194 (vshl_n_u32): Likewise.
6195 (vshl_n_u64): Likewise.
6196 (vshlq_n_s8): Likewise.
6197 (vshlq_n_s16): Likewise.
6198 (vshlq_n_s32): Likewise.
6199 (vshlq_n_s64): Likewise.
6200 (vshlq_n_u8): Likewise.
6201 (vshlq_n_u16): Likewise.
6202 (vshlq_n_u32): Likewise.
6203 (vshlq_n_u64): Likewise.
6204 (vqshl_n_s8): Likewise.
6205 (vqshl_n_s16): Likewise.
6206 (vqshl_n_s32): Likewise.
6207 (vqshl_n_s64): Likewise.
6208 (vqshl_n_u8): Likewise.
6209 (vqshl_n_u16): Likewise.
6210 (vqshl_n_u32): Likewise.
6211 (vqshl_n_u64): Likewise.
6212 (vqshlq_n_s8): Likewise.
6213 (vqshlq_n_s16): Likewise.
6214 (vqshlq_n_s32): Likewise.
6215 (vqshlq_n_s64): Likewise.
6216 (vqshlq_n_u8): Likewise.
6217 (vqshlq_n_u16): Likewise.
6218 (vqshlq_n_u32): Likewise.
6219 (vqshlq_n_u64): Likewise.
6220 (vqshlu_n_s8): Likewise.
6221 (vqshlu_n_s16): Likewise.
6222 (vqshlu_n_s32): Likewise.
6223 (vqshlu_n_s64): Likewise.
6224 (vqshluq_n_s8): Likewise.
6225 (vqshluq_n_s16): Likewise.
6226 (vqshluq_n_s32): Likewise.
6227 (vqshluq_n_s64): Likewise.
6228 (vshll_n_s8): Likewise.
6229 (vshll_n_s16): Likewise.
6230 (vshll_n_s32): Likewise.
6231 (vshll_n_u8): Likewise.
6232 (vshll_n_u16): Likewise.
6233 (vshll_n_u32): Likewise.
6234 (vsra_n_s8): Likewise.
6235 (vsra_n_s16): Likewise.
6236 (vsra_n_s32): Likewise.
6237 (vsra_n_s64): Likewise.
6238 (vsra_n_u8): Likewise.
6239 (vsra_n_u16): Likewise.
6240 (vsra_n_u32): Likewise.
6241 (vsra_n_u64): Likewise.
6242 (vsraq_n_s8): Likewise.
6243 (vsraq_n_s16): Likewise.
6244 (vsraq_n_s32): Likewise.
6245 (vsraq_n_s64): Likewise.
6246 (vsraq_n_u8): Likewise.
6247 (vsraq_n_u16): Likewise.
6248 (vsraq_n_u32): Likewise.
6249 (vsraq_n_u64): Likewise.
6250 (vrsra_n_s8): Likewise.
6251 (vrsra_n_s16): Likewise.
6252 (vrsra_n_s32): Likewise.
6253 (vrsra_n_s64): Likewise.
6254 (vrsra_n_u8): Likewise.
6255 (vrsra_n_u16): Likewise.
6256 (vrsra_n_u32): Likewise.
6257 (vrsra_n_u64): Likewise.
6258 (vrsraq_n_s8): Likewise.
6259 (vrsraq_n_s16): Likewise.
6260 (vrsraq_n_s32): Likewise.
6261 (vrsraq_n_s64): Likewise.
6262 (vrsraq_n_u8): Likewise.
6263 (vrsraq_n_u16): Likewise.
6264 (vrsraq_n_u32): Likewise.
6265 (vrsraq_n_u64): Likewise.
6266 (vabs_s8): Likewise.
6267 (vabs_s16): Likewise.
6268 (vabs_s32): Likewise.
6269 (vabs_f32): Likewise.
6270 (vabsq_s8): Likewise.
6271 (vabsq_s16): Likewise.
6272 (vabsq_s32): Likewise.
6273 (vabsq_f32): Likewise.
6274 (vqabs_s8): Likewise.
6275 (vqabs_s16): Likewise.
6276 (vqabs_s32): Likewise.
6277 (vqabsq_s8): Likewise.
6278 (vqabsq_s16): Likewise.
6279 (vqabsq_s32): Likewise.
6280 (vneg_s8): Likewise.
6281 (vneg_s16): Likewise.
6282 (vneg_s32): Likewise.
6283 (vneg_f32): Likewise.
6284 (vnegq_s8): Likewise.
6285 (vnegq_s16): Likewise.
6286 (vnegq_s32): Likewise.
6287 (vnegq_f32): Likewise.
6288 (vqneg_s8): Likewise.
6289 (vqneg_s16): Likewise.
6290 (vqneg_s32): Likewise.
6291 (vqnegq_s8): Likewise.
6292 (vqnegq_s16): Likewise.
6293 (vqnegq_s32): Likewise.
6294 (vmvn_s8): Likewise.
6295 (vmvn_s16): Likewise.
6296 (vmvn_s32): Likewise.
6297 (vmvn_u8): Likewise.
6298 (vmvn_u16): Likewise.
6299 (vmvn_u32): Likewise.
6300 (vmvn_p8): Likewise.
6301 (vmvnq_s8): Likewise.
6302 (vmvnq_s16): Likewise.
6303 (vmvnq_s32): Likewise.
6304 (vmvnq_u8): Likewise.
6305 (vmvnq_u16): Likewise.
6306 (vmvnq_u32): Likewise.
6307 (vmvnq_p8): Likewise.
6308 (vcls_s8): Likewise.
6309 (vcls_s16): Likewise.
6310 (vcls_s32): Likewise.
6311 (vclsq_s8): Likewise.
6312 (vclsq_s16): Likewise.
6313 (vclsq_s32): Likewise.
6314 (vclz_s8): Likewise.
6315 (vclz_s16): Likewise.
6316 (vclz_s32): Likewise.
6317 (vclz_u8): Likewise.
6318 (vclz_u16): Likewise.
6319 (vclz_u32): Likewise.
6320 (vclzq_s8): Likewise.
6321 (vclzq_s16): Likewise.
6322 (vclzq_s32): Likewise.
6323 (vclzq_u8): Likewise.
6324 (vclzq_u16): Likewise.
6325 (vclzq_u32): Likewise.
6326 (vcnt_s8): Likewise.
6327 (vcnt_u8): Likewise.
6328 (vcnt_p8): Likewise.
6329 (vcntq_s8): Likewise.
6330 (vcntq_u8): Likewise.
6331 (vcntq_p8): Likewise.
6332 (vrecpe_f32): Likewise.
6333 (vrecpe_u32): Likewise.
6334 (vrecpeq_f32): Likewise.
6335 (vrecpeq_u32): Likewise.
6336 (vrsqrte_f32): Likewise.
6337 (vrsqrte_u32): Likewise.
6338 (vrsqrteq_f32): Likewise.
6339 (vrsqrteq_u32): Likewise.
6340 (vget_lane_s8): Likewise.
6341 (vget_lane_s16): Likewise.
6342 (vget_lane_s32): Likewise.
6343 (vget_lane_f32): Likewise.
6344 (vget_lane_u8): Likewise.
6345 (vget_lane_u16): Likewise.
6346 (vget_lane_u32): Likewise.
6347 (vget_lane_p8): Likewise.
6348 (vget_lane_p16): Likewise.
6349 (vget_lane_s64): Likewise.
6350 (vget_lane_u64): Likewise.
6351 (vgetq_lane_s8): Likewise.
6352 (vgetq_lane_s16): Likewise.
6353 (vgetq_lane_s32): Likewise.
6354 (vgetq_lane_f32): Likewise.
6355 (vgetq_lane_u8): Likewise.
6356 (vgetq_lane_u16): Likewise.
6357 (vgetq_lane_u32): Likewise.
6358 (vgetq_lane_p8): Likewise.
6359 (vgetq_lane_p16): Likewise.
6360 (vgetq_lane_s64): Likewise.
6361 (vgetq_lane_u64): Likewise.
6362 (vcvt_s32_f32): Likewise.
6363 (vcvt_f32_s32): Likewise.
6364 (vcvt_f32_u32): Likewise.
6365 (vcvt_u32_f32): Likewise.
6366 (vcvtq_s32_f32): Likewise.
6367 (vcvtq_f32_s32): Likewise.
6368 (vcvtq_f32_u32): Likewise.
6369 (vcvtq_u32_f32): Likewise.
6370 (vcvt_n_s32_f32): Likewise.
6371 (vcvt_n_f32_s32): Likewise.
6372 (vcvt_n_f32_u32): Likewise.
6373 (vcvt_n_u32_f32): Likewise.
6374 (vcvtq_n_s32_f32): Likewise.
6375 (vcvtq_n_f32_s32): Likewise.
6376 (vcvtq_n_f32_u32): Likewise.
6377 (vcvtq_n_u32_f32): Likewise.
6378 (vmovn_s16): Likewise.
6379 (vmovn_s32): Likewise.
6380 (vmovn_s64): Likewise.
6381 (vmovn_u16): Likewise.
6382 (vmovn_u32): Likewise.
6383 (vmovn_u64): Likewise.
6384 (vqmovn_s16): Likewise.
6385 (vqmovn_s32): Likewise.
6386 (vqmovn_s64): Likewise.
6387 (vqmovn_u16): Likewise.
6388 (vqmovn_u32): Likewise.
6389 (vqmovn_u64): Likewise.
6390 (vqmovun_s16): Likewise.
6391 (vqmovun_s32): Likewise.
6392 (vqmovun_s64): Likewise.
6393 (vmovl_s8): Likewise.
6394 (vmovl_s16): Likewise.
6395 (vmovl_s32): Likewise.
6396 (vmovl_u8): Likewise.
6397 (vmovl_u16): Likewise.
6398 (vmovl_u32): Likewise.
6399 (vmul_lane_s16): Likewise.
6400 (vmul_lane_s32): Likewise.
6401 (vmul_lane_f32): Likewise.
6402 (vmul_lane_u16): Likewise.
6403 (vmul_lane_u32): Likewise.
6404 (vmulq_lane_s16): Likewise.
6405 (vmulq_lane_s32): Likewise.
6406 (vmulq_lane_f32): Likewise.
6407 (vmulq_lane_u16): Likewise.
6408 (vmulq_lane_u32): Likewise.
6409 (vmla_lane_s16): Likewise.
6410 (vmla_lane_s32): Likewise.
6411 (vmla_lane_f32): Likewise.
6412 (vmla_lane_u16): Likewise.
6413 (vmla_lane_u32): Likewise.
6414 (vmlaq_lane_s16): Likewise.
6415 (vmlaq_lane_s32): Likewise.
6416 (vmlaq_lane_f32): Likewise.
6417 (vmlaq_lane_u16): Likewise.
6418 (vmlaq_lane_u32): Likewise.
6419 (vmlal_lane_s16): Likewise.
6420 (vmlal_lane_s32): Likewise.
6421 (vmlal_lane_u16): Likewise.
6422 (vmlal_lane_u32): Likewise.
6423 (vqdmlal_lane_s16): Likewise.
6424 (vqdmlal_lane_s32): Likewise.
6425 (vmls_lane_s16): Likewise.
6426 (vmls_lane_s32): Likewise.
6427 (vmls_lane_f32): Likewise.
6428 (vmls_lane_u16): Likewise.
6429 (vmls_lane_u32): Likewise.
6430 (vmlsq_lane_s16): Likewise.
6431 (vmlsq_lane_s32): Likewise.
6432 (vmlsq_lane_f32): Likewise.
6433 (vmlsq_lane_u16): Likewise.
6434 (vmlsq_lane_u32): Likewise.
6435 (vmlsl_lane_s16): Likewise.
6436 (vmlsl_lane_s32): Likewise.
6437 (vmlsl_lane_u16): Likewise.
6438 (vmlsl_lane_u32): Likewise.
6439 (vqdmlsl_lane_s16): Likewise.
6440 (vqdmlsl_lane_s32): Likewise.
6441 (vmull_lane_s16): Likewise.
6442 (vmull_lane_s32): Likewise.
6443 (vmull_lane_u16): Likewise.
6444 (vmull_lane_u32): Likewise.
6445 (vqdmull_lane_s16): Likewise.
6446 (vqdmull_lane_s32): Likewise.
6447 (vqdmulhq_lane_s16): Likewise.
6448 (vqdmulhq_lane_s32): Likewise.
6449 (vqdmulh_lane_s16): Likewise.
6450 (vqdmulh_lane_s32): Likewise.
6451 (vqrdmulhq_lane_s16): Likewise.
6452 (vqrdmulhq_lane_s32): Likewise.
6453 (vqrdmulh_lane_s16): Likewise.
6454 (vqrdmulh_lane_s32): Likewise.
6455 (vmul_n_s16): Likewise.
6456 (vmul_n_s32): Likewise.
6457 (vmul_n_f32): Likewise.
6458 (vmul_n_u16): Likewise.
6459 (vmul_n_u32): Likewise.
6460 (vmulq_n_s16): Likewise.
6461 (vmulq_n_s32): Likewise.
6462 (vmulq_n_f32): Likewise.
6463 (vmulq_n_u16): Likewise.
6464 (vmulq_n_u32): Likewise.
6465 (vmull_n_s16): Likewise.
6466 (vmull_n_s32): Likewise.
6467 (vmull_n_u16): Likewise.
6468 (vmull_n_u32): Likewise.
6469 (vqdmull_n_s16): Likewise.
6470 (vqdmull_n_s32): Likewise.
6471 (vqdmulhq_n_s16): Likewise.
6472 (vqdmulhq_n_s32): Likewise.
6473 (vqdmulh_n_s16): Likewise.
6474 (vqdmulh_n_s32): Likewise.
6475 (vqrdmulhq_n_s16): Likewise.
6476 (vqrdmulhq_n_s32): Likewise.
6477 (vqrdmulh_n_s16): Likewise.
6478 (vqrdmulh_n_s32): Likewise.
6479 (vmla_n_s16): Likewise.
6480 (vmla_n_s32): Likewise.
6481 (vmla_n_f32): Likewise.
6482 (vmla_n_u16): Likewise.
6483 (vmla_n_u32): Likewise.
6484 (vmlaq_n_s16): Likewise.
6485 (vmlaq_n_s32): Likewise.
6486 (vmlaq_n_f32): Likewise.
6487 (vmlaq_n_u16): Likewise.
6488 (vmlaq_n_u32): Likewise.
6489 (vmlal_n_s16): Likewise.
6490 (vmlal_n_s32): Likewise.
6491 (vmlal_n_u16): Likewise.
6492 (vmlal_n_u32): Likewise.
6493 (vqdmlal_n_s16): Likewise.
6494 (vqdmlal_n_s32): Likewise.
6495 (vmls_n_s16): Likewise.
6496 (vmls_n_s32): Likewise.
6497 (vmls_n_f32): Likewise.
6498 (vmls_n_u16): Likewise.
6499 (vmls_n_u32): Likewise.
6500 (vmlsq_n_s16): Likewise.
6501 (vmlsq_n_s32): Likewise.
6502 (vmlsq_n_f32): Likewise.
6503 (vmlsq_n_u16): Likewise.
6504 (vmlsq_n_u32): Likewise.
6505 (vmlsl_n_s16): Likewise.
6506 (vmlsl_n_s32): Likewise.
6507 (vmlsl_n_u16): Likewise.
6508 (vmlsl_n_u32): Likewise.
6509 (vqdmlsl_n_s16): Likewise.
6510 (vqdmlsl_n_s32): Likewise.
6512 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6514 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
6515 Add cost of alu.arith in simple SImode case.
6517 2014-11-18 Jiong Wang <jiong.wang@arm.com>
6519 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
6522 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
6524 * opts.c (finish_options): Disable aggressive opts for sanitizer.
6525 (common_handle_option): Move code to finish_options.
6527 2014-11-18 Yury Gribov <y.gribov@samsung.com>
6530 * stor-layout.c (min_align_of_type): Respect user alignment
6533 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6535 * passes.c (remove_cgraph_node_from_order): New.
6536 (do_per_function_toporder): Register cgraph removal
6539 2014-11-17 Terry Guo <terry.guo@arm.com>
6541 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
6542 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
6543 (generic_vfp): Likewise.
6544 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
6546 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
6548 PR rtl-optimization/63906
6549 * lra-remat.c (operand_to_remat): Check SP and
6550 frame_pointer_required.
6552 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
6554 * doc/invoke.texi (floop-unroll-and-jam): Document
6555 (loop-unroll-jam-size): Likewise.
6556 (loop-unroll-jam-depth): Likewise.
6557 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
6558 (getScheduleForBandList): Replaced unsafe union_map reuse.
6560 2014-11-17 Andrew Pinski <apinski@cavium.com>
6562 * config/aarch64/thunderx.md: Remove copyright which should not
6565 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6566 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6568 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
6569 Altivec style vector loads that ignore the bottom 3 bits of the
6571 (rs6000_debug_addr_mask): New function to print the addr_mask
6572 values if debugging.
6573 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
6575 (rs6000_setup_reg_addr_masks): Add support for Altivec style
6576 vector loads that ignore the bottom 3 bits of the address. Allow
6577 pre-increment and pre-decrement on floating point, even if the
6578 -mupper-regs-{sf,df} options were used.
6579 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
6580 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
6581 placement for direct move support.
6582 (rs6000_option_override_internal): Add checks for -mupper-regs-df
6583 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
6584 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
6585 depending on the underlying cpu.
6586 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
6587 (rs6000_secondary_reload_toc_costs): Helper function to identify
6588 costs of a TOC load for secondary reload support.
6589 (rs6000_secondary_reload_memory): Helper function for secondary
6590 reload, to determine if a particular memory operation is directly
6591 handled by the hardware, or if it needs support from secondary
6592 reload to create a valid address.
6593 (rs6000_secondary_reload): Rework code, to be clearer. If the
6594 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
6595 reload scalar values, since the FPR registers have D-form
6596 addressing. Move most of the code handling memory to the function
6597 rs6000_secondary_reload_memory, and use the reg_addr structure to
6598 determine what type of address modes are supported. Print more
6599 debug information if -mdebug=addr.
6600 (rs6000_secondary_reload_inner): Rework entire function to be more
6601 general. Use the reg_addr bits to determine what type of
6602 addressing is supported.
6603 (rs6000_preferred_reload_class): Rework. Move constant handling
6604 into a single place. Prefer using FLOAT_REGS for scalar floating
6606 (rs6000_secondary_reload_class): Use a FPR register to move a
6607 value from an Altivec register to a GPR, and vice versa. Move VSX
6608 handling above traditional floating point.
6610 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
6611 Delete some spaces in the constraints.
6612 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
6613 allow using FPR registers to load/store an Altivec register for
6614 scalar floating point types.
6615 (SF->SF move peephole2): Likewise.
6616 (DFmode splitter): Add a define_split to move floating point
6617 constants to the constant pool before register allocation.
6618 Normally constants are put into the pool immediately, but
6619 -ffast-math delays putting them into the constant pool for the
6620 reciprocal approximation support.
6621 (SFmode splitter): Likewise.
6623 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
6624 (-mupper-regs-sf): Likewise.
6626 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6627 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
6629 (-mupper-regs): New combination option that sets -mupper-regs-sf
6630 and -mupper-regs-df by default if the cpu supports the instructions.
6632 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6633 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
6635 * config/rs6000/predicates.md (memory_fp_constant): New predicate
6636 to return true if the operand is a floating point constant that
6637 must be put into the constant pool, before register allocation
6640 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
6641 -mupper-regs-df by default.
6642 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
6643 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
6644 various -mcpu=... options.
6645 (power7 cpu): Enable -mupper-regs-df by default.
6647 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6650 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6652 * ira-conflicts.c (build_conflict_bit_table): Add the current
6653 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
6655 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6657 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
6658 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
6659 (devirtualization_time_bonus): Use it.
6660 (ipcp_discover_new_direct_edges): Likewise.
6661 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
6662 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
6664 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6666 * tree.c (free_lang_data_in_decl): Set
6667 DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.
6669 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6671 * cgraphunit.c (analyze_functions): Use opt_for_fn.
6672 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
6674 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6676 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
6677 (cgraph_node::cannot_return_p): Likewise.
6678 (cgraph_edge::cannot_lead_to_return_p): Likewise.
6679 (cgraph_edge::maybe_hot_p): Likewise.
6681 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6683 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
6684 (optimize_function_for_size_p): Likewise.
6685 (probably_never_executed): Likewise; replace cfun by fun.
6687 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6689 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
6690 variant reading from memory and assembling to ld1.
6692 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
6693 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
6694 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
6695 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
6696 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
6697 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
6698 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
6700 2014-11-17 Jason Merrill <jason@redhat.com>
6702 * tree-inline.c (copy_fn): New.
6703 * tree-inline.h: Declare it.
6705 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6707 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
6708 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
6709 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
6710 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
6711 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
6712 * config/aarch64/iterators.md (VD1): Remove.
6714 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6716 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
6717 AARCH64_FL_CRYPTO from feature flags.
6718 (cortex-a57): Likewise.
6719 (cortex-a57.cortex-a53): Likewise.
6721 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6723 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
6724 DECL_FUNCTION_SPECIFIC_TARGET.
6725 * i386.c (ix86_set_current_function): Handle explicit default options.
6727 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6729 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
6731 (expand_builtin_mempcpy_with_bounds): Likewise.
6732 (expand_builtin_memset_with_bounds): Likewise.
6734 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6736 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
6737 ipa-ref.h, plugin-api.h.
6738 (get_string_length): Handle calls with bounds.
6739 (adjust_last_stmt): Likewise.
6740 (handle_builtin_strchr): Likewise.
6741 (handle_builtin_strcpy): Likewise.
6742 (handle_builtin_memcpy): Likewise.
6743 (handle_builtin_strcat): Likewise.
6745 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6747 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
6748 (chkp_get_nochk_fndecl): New.
6749 (chkp_optimize_string_function_calls): New.
6750 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
6751 * tree-cfg.h (insert_cond_bb): New.
6752 * tree-cfg.c (insert_cond_bb): New.
6754 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6756 * tree-core.h (built_in_class): Add builtin codes to be used
6757 by Pointer Bounds Checker for instrumented builtin functions.
6758 * tree-streamer-in.c: Include ipa-chkp.h.
6759 (streamer_get_builtin_tree): Created instrumented decl if
6761 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
6762 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
6764 (chkp_maybe_clone_builtin_fndecl): New.
6765 (chkp_maybe_create_clone): Support builtin function decls.
6766 (chkp_versioning): Clone builtin functions.
6767 * tree-chkp.c (chkp_instrument_normal_builtin): New.
6768 (chkp_add_bounds_to_call_stmt): Support builtin functions.
6769 (chkp_replace_function_pointer): Likewise.
6770 * builtins.c (expand_builtin_memcpy_args): New.
6771 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
6772 (expand_builtin_memcpy_with_bounds): New.
6773 (expand_builtin_mempcpy_with_bounds): New.
6774 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
6775 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
6776 (expand_builtin_memset_with_bounds): New.
6777 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
6778 (expand_builtin_with_bounds): New.
6779 * builtins.h (expand_builtin_with_bounds): New.
6780 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
6782 2014-11-17 Dodji Seketeli <dodji@redhat.com>
6784 * gimple.h (gimple_set_visited, gimple_visited_p)
6785 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
6786 comments to these accessors.
6788 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
6790 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
6791 Set avr_log_details to "all".
6793 2014-11-17 Richard Biener <rguenther@suse.de>
6796 * match.pd: Guard X / CST -> X * CST' transform against
6799 2014-11-17 Terry Guo <terry.guo@arm.com>
6801 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
6804 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
6806 * ifcvt.c (HAVE_cbranchcc4): Define.
6807 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6808 Use HAVE_cbranchcc4.
6810 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6812 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
6813 aarch64_convert_mode, aarch64_gen_ccmp_first,
6814 aarch64_gen_ccmp_next): New functions.
6815 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
6817 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6819 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
6820 * aarch64.c (aarch64_nzcv_codes): New data.
6821 (aarch64_ccmp_mode_to_code): New.
6822 (aarch64_print_operand): Output nzcv.
6823 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
6825 (cstore<mode>4): Handle ccmp_cc_register.
6826 * config/aarch64/predicates.md (const0_operand): New.
6828 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6830 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
6831 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
6832 extacted from aarch64_get_condition_code.
6833 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
6834 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
6836 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6838 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
6839 aarch64_ccmp_operand): New constraints.
6841 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6843 * Makefile.in: Add ccmp.o.
6846 * expr.c: include "ccmp.h"
6847 (expand_cond_expr_using_cmove): Handle VOIDmode.
6848 (expand_expr_real_1): Try to expand ccmp.
6850 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6852 * cfgexpand.c (expand_gimple_cond): Check ccmp.
6853 * expmed.c (emit_cstore): Make it global.
6854 * expmed.h: #include "insn-codes.h"
6855 (emit_cstore): New prototype.
6856 * expr.c (expand_operands): Make it global.
6857 * expr.h (expand_operands): New prototype.
6858 * optabs.c (get_rtx_code): Make it global.
6859 * optabs.h (get_rtx_code): New prototype.
6861 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6863 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
6864 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6865 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6867 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
6870 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
6871 Always combine comparisons or conversions from booleans.
6873 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6875 * ipa-polymorphic-call.c
6876 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
6877 (ipa_polymorphic_call_context::meet_speculation_with): New function.
6878 (ipa_polymorphic_call_context::combine_with): Handle types in
6879 construction better.
6880 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
6882 (ipa_polymorphic_call_context::meet_with): New function.
6883 * cgraph.h (class ipa_polymorphic_call_context): Add
6884 meet_width, meet_speculation_with; constify speculation_consistent_p.
6885 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine
6886 with incomming context.
6887 (propagate_context_accross_jump_function): Likewise; be more cureful.
6888 about set_contains_variable.
6889 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
6890 (find_more_scalar_values_for_callers_subset): Fix.
6891 (find_more_contexts_for_caller_subset): Perform meet operation.
6893 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6895 * passes.c (execute_one_pass): Do not apply all transforms prior
6896 every simple IPA pass.
6897 * cgraphunit.c: Do not include fibheap.h
6898 (expand_thunk): Use get_untransformed_body.
6899 (cgraph_node::expand): Likewise.
6900 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
6901 * cgraph.c (release_function_body): Do not push cfun when CFG
6903 (cgraph_node::get_untransformed_body): Break out from ...
6904 (cgraph_node::get_body): ... here; add code to apply all transforms.
6905 * cgraph.h (cgraph_node): Add get_untransformed_body.
6906 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
6907 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6908 * tree-inline.c (expand_call_inline): LIkewise.
6909 * i386.c (ix86_reset_to_default_globals): Break out from ...
6910 (ix86_set_current_function): ... here;
6911 (ix86_reset_previous_fndecl): Use it.
6912 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
6914 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
6916 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
6917 * doc/tm.texi: Regenerate.
6919 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
6921 * config/sh/sh.c: Do not include algorithm.
6922 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
6924 (sh_emit_compare_and_branch): Ditto.
6925 (sh_emit_compare_and_set): Ditto.
6926 * config/sh/sh.md (replacement peephole2): Ditto.
6927 (cstore4_media): Ditto.
6930 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6932 * lra-remat.c (cand_transf_func): Process regno for
6933 rematerialization too.
6934 * lra.c (lra): Switch on rematerialization pass.
6936 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6938 * lra.c (lra): Switch off rematerialization pass.
6940 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
6942 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
6943 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
6944 instead of builtins.
6945 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
6947 (_mm_sqrt_sd): Fix comment.
6948 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6949 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6950 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6951 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
6952 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
6953 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
6954 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
6955 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
6956 Use vector extensions instead of builtins.
6957 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
6958 _mm_mullo_epi32): Likewise.
6959 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
6961 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
6962 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
6963 Use vector extensions instead of builtins.
6964 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
6965 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
6966 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
6967 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
6968 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
6969 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
6970 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
6971 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
6973 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
6974 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
6975 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
6976 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
6977 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
6978 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
6979 _mm512_div_ps): Use vector extensions instead of builtins.
6980 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
6981 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
6982 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
6983 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
6986 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
6988 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
6989 * lto-streamer.h (cl_optimization_stream_out,
6990 cl_optimization_stream_in): Declare.
6991 * optc-save-gen.awk: Generate cl_optimization LTO streaming
6992 and hashing routines.
6993 * opth-gen.awk: Add prototype of cl_optimization_hash.
6994 * tree-streamer-in.c (unpack_ts_optimization): Remove.
6995 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
6996 * tree-streamer-out.c (pack_ts_optimization): Remove.
6997 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
6999 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
7001 * common.opt (flag_loop_unroll_and_jam): New flag.
7002 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
7004 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
7005 * graphite-poly.h (struct poly_bb:map_sepclass): New field
7006 * graphite-poly.c (new_poly_bb): Initialization for new field.
7007 (apply_poly_transforms): Support for unroll and jam flag.
7008 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
7010 (generate_luj_sepclass_opt): Build the separation class option.
7011 (generate_luj_options): Set unroll and jam options.
7012 (set_options): Support for unroll and jam options.
7013 (scop_to_isl_ast): Likewise
7014 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
7015 computing the separating class map.
7016 (optimize_isl): Support for the separating class map.
7017 (apply_schedule_map_to_scop): Likewise.
7018 (getScheduleMap): Likewise.
7019 (getScheduleForBand): Likewise.
7020 (getScheduleForBandList): Likewise.
7021 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
7022 * toplev.c (process_options) Likewise.
7024 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7026 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
7028 (replace_loop_annotate): ...here. Call it on the header and on the
7029 latch block, if any. Restore proper behavior of final cleanup.
7031 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7033 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
7034 for max-completely-peeled-insns limit.
7036 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7038 * ipa-prop.h (ipa_known_type_data): Remove.
7039 (ipa_binfo_from_known_type_jfunc): Remove.
7041 2014-11-14 Andrew Pinski <apinski@cavium.com>
7043 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
7045 * config/aarch64/aarch64.md: Include thunderx.md.
7046 (generic_sched): Set to no for thunderx.
7047 * config/aarch64/thunderx.md: New file.
7049 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7051 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
7054 * config/rs6000/vector.md (VEC_R): Move secondary reload support
7055 insns to rs6000.md from vector.md.
7056 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
7057 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
7058 (vec_reload_and_plus_<mptrsize>): Likewise.
7060 * config/rs6000/rs6000.md (Fa): New mode attribute to give
7061 constraint for the Altivec registers for a type.
7062 (RELOAD): New mode iterator for all of the types that have
7063 secondary reload address support to load up a base register.
7064 (extendsfdf2_fpr): Use correct constraint.
7065 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
7067 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
7068 Generate the non-VSX instruction if all registers were FPRs. Do
7069 not use the patterns in vsx.md for scalar operations.
7070 (floatsi<mode>2_lfiwax_mem): Likewise.
7071 (floatunssi<mode>2_lfiwzx): Likewise.
7072 (floatunssi<mode>2_lfiwzx_mem): Likewise.
7073 (fix_trunc<mode>di2_fctidz): Likewise.
7074 (fixuns_trunc<mode>di2_fctiduz): Likewise.
7075 (fctiwz_<mode>): Likewise.
7076 (fctiwuz_<mode>): Likewise.
7078 (floatdidf2_fpr): Likewise.
7079 (floatdidf2_mem): Likewise.
7080 (floatunsdidf2): Likewise.
7081 (floatunsdidf2_fcfidu): Likewise.
7082 (floatunsdidf2_mem): Likewise.
7083 (floatdisf2_fcfids): Likewise.
7084 (floatdisf2_mem): Likewise.
7085 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
7086 it more obvious that the code is for pre-ISA 2.06 machines.
7087 (floatdisf2_internal2): Likewise.
7088 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
7089 Generate the non-VSX instruction if all registers were FPRs. Do
7090 not use the patterns in vsx.md for scalar operations.
7091 (floatunsdisf2_mem): Likewise.
7092 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
7093 handlers here from vector.md, and expand the types we generate
7094 reload handlers for.
7095 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
7096 (vec_reload_and_plus_<mptrsize>): Likewise.
7098 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
7099 vector forms of the instructions. Move VSX scalar forms to
7100 rs6000.md, and add support for -mupper-regs-sf.
7101 (vsx_floatuns<VSi><mode>2): Likewise.
7102 (vsx_fix_trunc<mode><VSi>2): Likewise.
7103 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7104 (vsx_float_fix_<mode>2): Delete DF version, rename to
7105 vsx_float_fix_v2df2.
7106 (vsx_float_fix_v2df2): Likewise.
7108 2014-11-14 Martin Jambor <mjambor@suse.cz>
7110 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
7111 (ipa_pass_through_data): Removed field type_preserved.
7112 (ipa_ancestor_jf_data): removed fields type and type_preserved.
7113 (ipa_jump_func): Removed field known_type.
7114 (ipa_get_jf_known_type_offset): Removed.
7115 (ipa_get_jf_known_type_base_type): Likewise.
7116 (ipa_get_jf_known_type_component_type): Likewise.
7117 (ipa_get_jf_ancestor_type): Likewise.
7118 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
7119 (ipa_get_jf_pass_through_result): Likewise.
7120 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
7121 (values_equal_for_ipcp_p): Removed BINFO handling.
7122 (ipa_get_indirect_edge_target_1): Updated comment.
7123 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
7124 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
7125 (ipa_set_jf_known_type): Removed.
7126 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
7128 (ipa_set_jf_arith_pass_through): Likewise.
7129 (ipa_set_ancestor_jf): Likewise.
7130 (ipa_binfo_from_known_type_jfunc): Removed.
7131 (prop_type_change_info): Removed fields known_current_type and
7132 multiple_types_encountered.
7133 (extr_type_from_vtbl_ptr_store): Removed.
7134 (check_stmt_for_type_change): Do not attempt to identify changed type.
7135 (detect_type_change_from_memory_writes): Do not set the removed fields,
7136 always set jfunc to unknown.
7137 (compute_complex_assign_jump_func): Do not detect dynamic type change.
7138 (compute_complex_ancestor_jump_func): Likewise.
7139 (compute_known_type_jump_func): Removed.
7140 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
7141 change. Do not comute known type jump functions.
7142 (combine_known_type_and_ancestor_jfs): Removed.
7143 (update_jump_functions_after_inlining): Removed handling of
7144 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
7145 (ipa_write_jump_function): Do not stream removed fields or known type
7147 (ipa_read_jump_function): Likewise.
7149 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
7151 * lra-int.h (lra_create_live_ranges): Add parameter.
7152 * lra-lives.c (temp_bitmap): Move higher.
7153 (initiate_live_solver): Move temp_bitmap initialization into
7154 lra_live_ranges_init.
7155 (finish_live_solver): Move temp_bitmap clearing into
7157 (process_bb_lives): Add parameter. Use it to control live info
7158 update and dead insn elimination. Pass it to mark_regno_live and
7160 (lra_create_live_ranges): Add parameter. Pass it to
7162 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
7163 initiate_live_solver and finish_live_solver.
7164 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
7165 Use temp_bitmap to update avail_cands.
7166 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
7167 check with lra_need_for_spill_p after live range pass. Switch on
7168 rematerialization pass.
7170 2014-11-14 Martin Jambor <mjambor@suse.cz>
7172 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
7173 agg_preserved flag instead.
7174 (ipa_get_jf_ancestor_type_preserved): Likewise.
7175 (ipa_node_params): Rename known_vals to known_csts, update all users.
7176 New field known_contexts.
7177 (ipa_get_indirect_edge_target): Update prototype.
7178 (ipcp_poly_ctx_values_pool): Declare.
7179 (ipa_context_from_jfunc): Likewise.
7180 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
7181 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
7182 parameter newline of method dump.
7183 * ipa-cp.c (ctxlat): New field.
7184 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
7185 (ipcp_poly_ctx_values_pool):New variable.
7186 (ipa_get_poly_ctx_lat): New function.
7187 (print_ipcp_constant_value): New overloaded function for contexts.
7188 (print_all_lattices): Also print contexts.
7189 (ipa_topo_info): New field contexts;
7190 (set_all_contains_variable): Also set the flag in the context lattice.
7191 (initialize_node_lattices): Likewise for flag bottom.
7192 (ipa_get_jf_ancestor_result): Removed BINFO handling.
7193 (ipa_value_from_jfunc): Likewise.
7194 (ipa_context_from_jfunc): New function.
7195 (values_equal_for_ipcp_p): New overloaded function for contexts.
7196 (allocate_and_init_ipcp_value): Construct the value.
7197 (allocate_and_init_ipcp_value): New overloaded function for contexts.
7198 (propagate_scalar_accross_jump_function): Removed handling of
7199 KNOWN_TYPE jump functions.
7200 (propagate_context_accross_jump_function): New function.
7201 (propagate_constants_accross_call): Also propagate contexts.
7202 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
7203 (ipa_get_indirect_edge_target): Likewise.
7204 (devirtualization_time_bonus): Likewise.
7205 (gather_context_independent_values): Create and populate known_contexts
7206 vector rather than known_binfos.
7207 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
7208 (estimate_local_effects): Likewise.
7209 (add_all_node_vals_to_toposort): Also add contexts to teir topological
7211 (ipcp_propagate_stage): Also propagate effects of contexts.
7212 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
7213 ipa_get_indirect_edge_target_1.
7214 (cgraph_edge_brings_value_p): New overloaded function for contexts.
7215 (create_specialized_node): Work on contexts rather than BINFOs.
7216 (find_more_contexts_for_caller_subset): New function.
7217 (known_contexts_useful_p): New function.
7218 (copy_useful_known_contexts): Likewise.
7219 (modify_known_vectors_with_val): Likewise.
7220 (ipcp_val_in_agg_replacements_p): Renamed to
7221 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
7223 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
7224 (decide_about_value): Work on contexts rather than BINFOs.
7225 (decide_whether_version_node): Likewise.
7226 (ipcp_driver): Initialize the new alloc pool.
7227 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
7228 printing of edge contexts.
7229 (ipa_set_ancestor_jf): Replace assert with conditional setting of
7230 type_preserved to false.
7231 (update_jump_functions_after_inlining): Use access function instead of
7232 reading agg_preserved directly. Store combined context in the ancestor
7234 (try_make_edge_direct_virtual_call): Work on contexts rather than
7236 (update_indirect_edges_after_inlining): Get context from
7237 ipa_context_from_jfunc.
7238 (ipa_free_node_params_substructures): Free also known_contexts.
7239 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
7240 (ipa_free_all_structures_after_iinln): Likewise.
7241 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
7242 contexts rather than BINFOs.
7243 (estimate_edge_devirt_benefit): Likewise.
7244 (estimate_edge_size_and_time): Likewise.
7245 (estimate_calls_size_and_time): Likewise.
7246 (estimate_node_size_and_time): Likewise.
7247 (estimate_ipcp_clone_size_and_time): Likewise.
7248 (do_estimate_edge_time): Likewise.
7249 (do_estimate_edge_size): Likewise.
7250 (do_estimate_edge_hints): Likewise.
7251 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
7252 parameter newline, ouput newline only when it is set.
7253 (ipa_polymorphic_call_context::equal_to): New method.
7255 2014-11-14 Martin Jambor <mjambor@suse.cz>
7257 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
7258 users converted to the same specialization as the using class/function
7259 or specialization on tree.
7260 (ipcp_value): Likewise.
7261 (ipcp_lattice): Likewise.
7262 (ipcp_agg_lattice): Now derived from tree specialization of
7264 (values_topo): Moved to new class value_topo_info.
7265 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
7266 Updated all callers.
7267 (print_lattice): Turned into ipcp_lattice::print. Updated all
7269 (value_topo_info): New class template.
7270 (ipa_topo_info): New field constants. New constructor.
7271 (build_toporder_info): Do not clear stack_top, only checkign assert
7273 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
7274 Updated all callers.
7275 (set_lattice_contains_variable): Turned into
7276 ipcp_lattice::set_contains_variable. Updated all callers.
7277 (add_value_source): Turned into ipcp_value::add_source. Updated all
7279 (allocate_and_init_ipcp_value): New function.
7280 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
7281 parameter got default a value. Updated all callers.
7282 (add_scalar_value_to_lattice): Removed, users converted to using
7283 ipcp_lattice::add_value with default value of the last parameter.
7284 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
7286 (propagate_effects): Made method of value_topo_info.
7287 (cgraph_edge_brings_value_p): Now a template function.
7288 (get_info_about_necessary_edges): Likewise.
7289 (gather_edges_for_value): Likewise.
7290 (perhaps_add_new_callers): Likewise.
7291 (decide_about_value): Likewise.
7292 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
7294 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7296 * doc/install.texi (--with-diagnostics-color=): Document.
7298 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
7299 IFN_GOMP_SIMD_LANE without lhs as useless.
7301 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
7302 (varying_state): Add true for can_free.
7303 (check_call): For builtin or internal !nonfreeing_call_p set
7305 (check_stmt): For asm volatile and asm with "memory" set
7307 (analyze_function): Clear local->can_free initially, continue
7308 calling check_stmt until all flags are computed, dump can_free
7310 (pure_const_write_summary): Write can_free flag.
7311 (pure_const_read_summary): Read it back.
7312 (propagate_pure_const): Propagate also can_free flag, set
7313 w->nonfreeing_fn if it is false after propagation.
7314 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
7315 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
7316 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
7317 Also return true for IFN_ABNORMAL_DISPATCHER.
7318 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
7319 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
7320 (input_overwrite_node): Read it back.
7322 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7323 Marek Polacek <polacek@redhat.com>
7325 * sanopt.c: Include tree-ssa-operands.h.
7326 (struct sanopt_info): Add has_freeing_call_p,
7327 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
7328 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
7329 being_visited_p fields.
7330 (struct sanopt_ctx): Add asan_check_map field.
7331 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
7332 maybe_optimize_asan_check_ifn): New functions.
7333 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
7335 (pass_sanopt::execute): Call sanopt_optimize even for
7337 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
7340 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7342 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
7343 'if (extract_scalar_result)' to the only place that it is true.
7345 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
7347 * config.gcc (default_gnu_indirect_function): Set to yes
7348 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
7351 2014-11-14 Felix Yang <felix.yang@huawei.com>
7352 Jiji Jiang <jiangjiji@huawei.com>
7354 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
7355 VALL mode iterator instead of VALLDI.
7357 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7359 * optc-save-gen.awk: Output cl_target_option_eq,
7360 cl_target_option_hash, cl_target_option_stream_out,
7361 cl_target_option_stream_in functions.
7362 * opth-gen.awk: Output prototypes for
7363 cl_target_option_eq and cl_target_option_hash.
7364 * lto-streamer.h (cl_target_option_stream_out,
7365 cl_target_option_stream_in): Declare.
7366 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
7367 (cl_option_hash_eq): Use cl_target_option_eq.
7368 * tree-streamer-in.c (unpack_value_fields): Stream in
7370 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
7371 DECL_FUNCTION_SPECIFIC_TARGET.
7372 (hash_tree): Hash TREE_TARGET_OPTION; visit
7373 DECL_FUNCTION_SPECIFIC_TARGET.
7374 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
7376 (streamer_write_tree_body): Output TS_TARGET_OPTION.
7378 2014-11-14 Richard Biener <rguenther@suse.de>
7380 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
7381 valueization hook defaulted to no_follow_ssa_edges.
7382 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
7383 2nd valueization hook to gimple_simplify.
7384 * tree-ssa-ccp.c (valueize_op_1): New function to be
7385 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7387 * tree-vrp.c (vrp_valueize_1): New function to be
7388 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7389 (vrp_visit_assignment_or_call): Adjust.
7391 2014-11-14 Marek Polacek <polacek@redhat.com>
7393 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
7394 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
7395 folding with TYPE_OVERFLOW_SANITIZED.
7397 2014-11-14 Marek Polacek <polacek@redhat.com>
7400 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
7401 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7402 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
7404 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
7405 instrument BUILT_IN_UNREACHABLE here.
7406 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
7408 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
7409 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
7410 SANITIZE_UNREACHABLE.
7411 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
7412 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
7414 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7416 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
7417 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
7419 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7421 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
7423 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
7424 vect_create_epilog_for_reduction): Likewise.
7425 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
7427 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7430 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
7431 numerical immediate handling to...
7432 (aarch64_internal_mov_immediate): ...this. New.
7433 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
7434 (aarch64_mov_operand_p): Relax predicate.
7435 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
7436 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
7438 (*movdi_aarch64): Likewise.
7440 2014-11-14 Richard Biener <rguenther@suse.de>
7442 * match.pd: Implement more binary patterns exercised by
7444 * fold-const.c (sing_bit_p): Export.
7445 (exact_inverse): Likewise.
7446 (fold_binary_loc): Remove patterns here.
7447 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7448 * fold-const.h (sing_bit_p): Declare.
7449 (exact_inverse): Likewise.
7451 2014-11-14 Marek Polacek <polacek@redhat.com>
7453 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
7455 2014-11-14 Richard Biener <rguenther@suse.de>
7457 * genmatch.c (add_operator): Allow CONSTRUCTOR.
7458 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
7459 (parser::parse_op): Allow to iterate over predicates.
7461 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7463 * configure.ac (--with-diagnostics-color): New configure
7464 option, default to --with-diagnostics-color=auto.
7465 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
7466 to determine -fdiagnostics-color= option default.
7467 * doc/invoke.texi (-fdiagnostics-color=): Document new
7469 * configure: Regenerated.
7470 * config.in: Regenerated.
7472 2014-11-13 Teresa Johnson <tejohnson@google.com>
7474 PR tree-optimization/63841
7475 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7477 2014-11-14 Bin Cheng <bin.cheng@arm.com>
7479 * timevar.def (TV_SCHED_FUSION): New time var.
7480 * passes.def (pass_sched_fusion): New pass.
7481 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
7482 (extract_base_offset_in_addr, fusion_load_store): New.
7483 (arm_sched_fusion_priority): New.
7484 (arm_option_override): Disable scheduling fusion by default
7485 on non-armv7 processors or ldrd/strd isn't preferred.
7486 * sched-int.h (struct _haifa_insn_data): New field.
7487 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
7488 * sched-rgn.c (rest_of_handle_sched_fusion): New.
7489 (pass_data_sched_fusion, pass_sched_fusion): New.
7490 (make_pass_sched_fusion): New.
7491 * haifa-sched.c (sched_fusion): New.
7492 (insn_cost): Handle sched_fusion.
7493 (priority): Handle sched_fusion by calling target hook.
7494 (enum rfs_decision): New enum value.
7495 (rfs_str): New element for RFS_FUSION.
7496 (rank_for_schedule): Support sched_fusion.
7497 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
7498 (schedule_block, fix_tick_ready): Handle sched_fusion.
7499 * common.opt (flag_schedule_fusion): New.
7500 * tree-pass.h (make_pass_sched_fusion): New.
7501 * target.def (fusion_priority): New.
7502 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
7503 * doc/tm.texi: Regenerated.
7504 * doc/invoke.texi (-fschedule-fusion): New.
7506 2014-11-13 Rong Xu <xur@google.com>
7509 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
7510 footer, instead of unconditionally overwritten.
7512 2014-11-14 Martin Jambor <mjambor@suse.cz>
7514 * cgraph.h (clear_outer_type): Make public. Fix comment.
7515 * ipa-devirt.c (possible_polymorphic_call_targets): Use
7516 clear_outer_type when resetting the context.
7518 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
7521 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
7522 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
7524 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7526 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
7527 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7528 * tree-inline.c (estimate_operator_cost): Likewise.
7529 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
7532 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
7533 against VEC_RSHIFT_EXPR.
7535 * optabs.h (expand_vec_shift_expr): Remove.
7536 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
7537 (expand_vec_shift_expr): Remove.
7538 * tree.def (VEC_RSHIFT_EXPR): Remove
7540 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7542 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
7543 (shift_amt_for_vec_perm_mask): New.
7544 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
7545 and mask appropriate.
7547 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
7548 (have_whole_vector_shift): New.
7549 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
7550 looking for vec_shr_optab.
7551 (vect_create_epilog_for_reduction): Likewise; also rename local variable
7552 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
7553 instead of VEC_RSHIFT_EXPRs.
7555 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
7557 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7559 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
7560 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
7562 * tree_vec_data_refs.c (vect_permute_load_chain,
7563 vec_permute_store_chain, vec_shift_permute_load_chain): Replace
7564 vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
7566 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
7568 (vect_gen_perm_mask_checked): New.
7569 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
7570 (vect_gen_perm_mask_any): ...this.
7571 (perm_mask_for_reverse): Call can_vec_perm_p and
7572 vect_gen_perm_mask_checked.
7574 2014-11-13 Felix Yang <felix.yang@huawei.com>
7576 * ipa-utils.h: Fix typo in comments.
7577 * ipa-profile.c: Likewise.
7578 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
7580 2014-11-13 Teresa Johnson <tejohnson@google.com>
7582 PR tree-optimization/63841
7583 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7585 2014-11-13 Teresa Johnson <tejohnson@google.com>
7587 PR tree-optimization/63841
7588 * tree.c (initializer_zerop): A clobber does not zero initialize.
7590 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7592 * optabs.c (prepare_operand): Gracefully fail if the mode of X
7593 does not match the operand mode expected by the insn pattern.
7595 2014-11-13 Richard Biener <rguenther@suse.de>
7597 * match.pd: Add tcc_comparison, inverted_tcc_comparison
7598 and inverted_tcc_comparison_with_nans operator lists.
7599 Use tcc_comparison in the truth_valued_p predicate definition.
7600 Restrict logical_inverted_value with bit_xor to integral types.
7601 Build a boolean true for simplifying x |^ !x because of
7602 vector types. Implement patterns from forward_propagate_comparison
7603 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
7604 (get_prop_dest_stmt): Likewise.
7605 (pass_forwprop::execute): Do not call it.
7606 * fold-const.c (fold_unary_loc): Remove the pattern here.
7608 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7609 Andrey Turetskiy <andrey.turetskiy@intel.com>
7611 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
7613 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
7614 accelerator compiler.
7615 * config/i386/intelmic-mkoffload.c: New file.
7616 * config/i386/t-intelmic: Ditto.
7618 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7619 Andrey Turetskiy <andrey.turetskiy@intel.com>
7620 Ilya Verbin <ilya.verbin@intel.com>
7622 * common.opt (foffload, foffload-abi): New options.
7623 * config/i386/i386.c (ix86_offload_options): New static function.
7624 (TARGET_OFFLOAD_OPTIONS): Define.
7625 * coretypes.h (enum offload_abi): New enum.
7626 * doc/tm.texi: Regenerate.
7627 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
7628 * gcc.c (offload_targets): New static variable.
7629 (handle_foffload_option): New static function.
7630 (driver_handle_option): Handle OPT_foffload_.
7631 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
7632 according to offload_targets.
7633 * hooks.c (hook_charptr_void_null): New hook.
7634 * hooks.h (hook_charptr_void_null): Declare.
7635 * lto-opts.c: Include lto-section-names.h.
7636 (lto_write_options): Append options from target offload_options hook and
7637 store them to offload_lto section. Do not store target-specific,
7638 driver and diagnostic options in offload_lto section.
7639 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
7641 (append_compiler_options, append_linker_options)
7642 (append_offload_options): New static functions.
7643 (compile_offload_image): Add new arguments with options.
7644 Call append_compiler_options and append_offload_options.
7645 (compile_images_for_offload_targets): Add new arguments with options.
7646 (find_and_merge_options): New static function.
7647 (run_gcc): Outline options handling into the new functions:
7648 find_and_merge_options, append_compiler_options, append_linker_options.
7649 * opts.c (common_handle_option): Don't handle OPT_foffload_.
7650 Forbid OPT_foffload_abi_ for non-offload compiler.
7651 * target.def (offload_options): New target hook.
7653 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7654 Bernd Schmidt <bernds@codesourcery.com>
7655 Andrey Turetskiy <andrey.turetskiy@intel.com>
7656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7658 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
7659 (process_command): Tweak path construction for the possibility
7660 of being configured as an offload compiler.
7661 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
7662 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
7663 (driver::set_up_specs): Tweak path construction for the possibility of
7664 being configured as an offload compiler.
7665 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
7666 (offload_names, offloadbegin, offloadend): New static variables.
7667 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
7668 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
7669 New static functions.
7670 (run_gcc): Determine whether offload sections are present. If so, run
7671 compile_images_for_offload_targets and return the names of new generated
7672 objects to linker. If there are offload sections, but no LTO sections,
7673 then return the copies of input objects without link-time recompilation.
7675 2014-11-13 Richard Biener <rguenther@suse.de>
7677 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
7679 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7680 Bernd Schmidt <bernds@codesourcery.com>
7681 Andrey Turetskiy <andrey.turetskiy@intel.com>
7682 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7684 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
7685 * cgraphunit.c: Include omp-low.h.
7686 * doc/tm.texi: Regenerate.
7687 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
7688 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
7689 * lto-cgraph.c (output_offload_tables): New function.
7690 (input_offload_tables): Likewise.
7691 * lto-section-in.c (lto_section_name): Add "offload_table".
7692 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
7693 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
7694 * lto-streamer-out.c (lto_output): Call output_offload_tables.
7695 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
7696 (output_offload_tables, input_offload_tables): Declare.
7697 * omp-low.c: Include common/common-target.h and lto-section-names.h.
7698 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
7699 (expand_omp_target): Add child_fn into offload_funcs vector.
7700 (add_decls_addresses_to_decl_constructor): New function.
7701 (omp_finish_file): Likewise.
7702 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
7703 * target.def (record_offload_symbol): New DEFHOOK.
7704 * toplev.c: Include omp-low.h.
7705 (compile_file): Call omp_finish_file.
7706 * varpool.c: Include omp-low.h.
7707 (varpool_node::get_create): Add decl into offload_vars vector.
7709 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7710 Ilya Tocar <ilya.tocar@intel.com>
7711 Andrey Turetskiy <andrey.turetskiy@intel.com>
7712 Bernd Schmidt <bernds@codesourcery.com>
7714 * cgraph.c: Include context.h.
7715 (cgraph_node::create): Set node->offloadable and g->have_offload if
7716 decl have "omp declare target" attribute.
7717 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
7718 * cgraphunit.c: Include lto-section-names.h.
7719 (ipa_passes): Call ipa_write_summaries if there is something to write to
7720 OFFLOAD_SECTION_NAME_PREFIX sections.
7721 (symbol_table::compile): Set flag_generate_lto if there is something to
7723 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
7724 * context.c (gcc::context::context): Initialize have_offload with false.
7725 * context.h (class context): Add have_offload flag.
7726 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
7728 (inline_free_summary): Always remove hooks.
7729 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
7730 from non-offloadable nodes while streaming a node into offload section.
7731 (reachable_from_other_partition_p): Likewise.
7732 (select_what_to_stream): New function.
7733 (compute_ltrans_boundary): Do not call
7734 lto_set_symtab_encoder_in_partition if the node should not be streamed.
7735 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
7736 (section_name_prefix): Declare.
7737 * lto-streamer.c (section_name_prefix): New variable.
7738 (lto_get_section_name): Use section_name_prefix instead of
7739 LTO_SECTION_NAME_PREFIX.
7740 * lto-streamer.h (select_what_to_stream): Declare.
7741 * omp-low.c: Include context.h.
7742 (is_targetreg_ctx): New function.
7743 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
7744 (create_omp_child_function, check_omp_nesting_restrictions): Use new
7745 is_targetreg_ctx function. Replace usage of "omp declare target"
7746 attribute with a cgraph_node flag offloadable.
7747 (expand_omp_target): Set mark_force_output for offloadable functions.
7748 (lower_omp_critical): Set offloadable flag for omp critical symbol.
7749 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
7750 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
7751 if the node should not be streamed out.
7752 * tree-pass.h (ipa_write_summaries): New bool argument.
7753 * varpool.c: Include context.h.
7754 (varpool_node::get_create): Set node->offloadable and g->have_offload if
7755 decl have "omp declare target" attribute.
7757 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7758 Thomas Schwinge <thomas@codesourcery.com>
7759 Ilya Verbin <ilya.verbin@intel.com>
7760 Andrey Turetskiy <andrey.turetskiy@intel.com>
7762 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
7763 (enable_as_accelerator): New variables substituted by configure.
7764 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
7765 being configured as an offload compiler.
7766 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
7768 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
7769 install for the offload compiler.
7770 * config.in: Regenerate.
7771 * configure: Regenerate.
7772 * configure.ac (real_target_noncanonical, accel_dir_suffix)
7773 (enable_as_accelerator): Compute new variables.
7774 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
7775 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7776 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
7777 * doc/install.texi (Options specification): Document
7778 --enable-as-accelerator-for and --enable-offload-targets.
7780 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
7782 PR tree-optimization/63828
7783 * ipa-polymorphic-call.c (possible_placement_new): Check
7784 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
7786 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
7788 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
7789 (REVERSIBLE_CC_MODE): Fix example.
7790 (REVERSE_CONDITION): Fix typo.
7791 * doc/tm.texi: Regenerate.
7793 2014-11-13 Tom de Vries <tom@codesourcery.com>
7795 * omp-low.c (pass_data_expand_omp): Set properties_provided to
7797 (pass_expand_omp::gate): Remove function. Move gate expression to ...
7798 (pass_expand_omp::execute): ... here, as new variable gate. Add early
7799 exit if gate is false.
7800 (pass_data pass_data_expand_omp_ssa): New pass_data.
7801 (class pass_expand_omp_ssa): New pass.
7802 (make_pass_expand_omp_ssa): New function.
7803 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
7804 instead of NEXT_PASS.
7805 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
7806 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
7807 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
7808 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
7809 cfun->omp_expand_needed.
7810 * tree-pass.h: Add define PROP_gimple_eomp.
7811 (make_pass_expand_omp_ssa): Declare.
7813 2014-11-13 Marek Polacek <polacek@redhat.com>
7815 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
7816 * fold-const.c (fold_binary_loc): Use it.
7817 * match.pd: Likewise.
7819 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7821 * lra-lives.c (struct bb_data): Rename to ...
7822 (struct bb_data_pseudos): ... this.
7823 (initiate_live_solver): Update struct name.
7825 2014-11-13 Richard Biener <rguenther@suse.de>
7827 * match.pd: Implement conditional expression patterns.
7828 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
7830 (combine_cond_exprs): Remove.
7831 (pass_forwprop::execute): Do not call combine_cond_exprs.
7832 * fold-const.c (fold_ternary_loc): Remove patterns here.
7833 (pedantic_omit_one_operand_loc): Remove.
7835 2014-12-13 Richard Biener <rguenther@suse.de>
7838 * match.pd: Implement bswap patterns for transforms checked by
7839 gcc.dg/builtin-bswap-8.c.
7841 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
7843 * lra.c (lra): Switch off rematerialization pass.
7845 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
7847 * common.opt (flra-remat): New.
7848 * opts.c (default_options_table): Add entry for flra_remat.
7849 * timevar_def (TV_LRA_REMAT): New.
7850 * doc/invoke.texi (-flra-remat): Add description of the new
7852 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
7853 lra-saves.c. Add lra-remat.c.
7854 * Makefile.in (OBJS): Add lra-remat.o.
7855 * lra-remat.c: New file.
7856 * lra.c: Add info about the rematerialization pass in the top
7858 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
7859 Process unallocatable regs too.
7860 (lra_constraint_new_insn_uid_start): Remove.
7861 (lra): Add code for calling rematerialization sub-pass.
7862 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
7863 (lra_constrain_insn, lra_remat): New prototypes.
7864 (lra_eliminate_regs_1): Add parameter.
7865 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
7866 Process unallocatable hard regs too.
7867 (process_bb_lives): Ditto.
7868 * lra-spills.c (remove_pseudos): Add argument to
7869 lra_eliminate_regs_1 call.
7870 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
7871 for sp offset calculation.
7872 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
7873 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
7875 (process_insn_for_elimination): Add argument for
7876 eliminate_regs_in_insn call.
7877 * lra-constraints.c (get_equiv_with_elimination): Add argument
7878 for lra_eliminate_regs_1 call.
7879 (process_addr_reg): Add parameter. Use it.
7880 (process_address_1): Ditto. Add argument for process_addr_reg
7882 (process_address): Ditto.
7883 (curr_insn_transform): Add parameter. Use it. Add argument for
7884 process_address calls.
7885 (lra_constrain_insn): New function.
7886 (lra_constraints): Add argument for curr_insn_transform call.
7888 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7890 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
7891 (print_ignored_options): Fix quoting.
7892 * opts.c (common_handle_option): Likewise.
7893 (set_debug_level): Likewise.
7894 * toplev.c (process_options): Likewise.
7896 2014-11-12 Jakub Jelinek <jakub@redhat.com>
7899 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
7900 chain instead of node->indirect_calls. Put !can_throw into
7901 conditions of all the loops.
7903 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7905 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
7906 set pic_offset_table_rtx.
7908 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
7910 * common/config/mips/mips-common.c (mips_handle_option): Ensure
7911 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
7912 * config.gcc (--with-fp-32): New option.
7913 (--with-odd-spreg-32): Likewise.
7914 * config.in (HAVE_AS_DOT_MODULE): New config define.
7915 * config/mips/mips-protos.h
7916 (mips_secondary_memory_needed): New prototype.
7917 (mips_hard_regno_caller_save_mode): Likewise.
7918 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
7919 (mips_get_arg_info): Assert that V2SFmode is only handled specially
7920 with TARGET_PAIRED_SINGLE_FLOAT.
7921 (mips_return_mode_in_fpr_p): Likewise.
7922 (mips16_call_stub_mode_suffix): Likewise.
7923 (mips_get_reg_raw_mode): New static function.
7924 (mips_return_fpr_pair): O32 return values span two registers.
7925 (mips16_build_call_stub): Likewise.
7926 (mips_function_value_regno_p): Support both FP return registers.
7927 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
7928 specific cases for TARGET_FPXX to move via memory.
7929 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
7930 than UNITS_PER_FPREG 'span' one register.
7931 (mips_dwarf_frame_reg_mode): New static function.
7932 (mips_file_start): Switch to using .module instead of .gnu_attribute.
7933 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
7934 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
7935 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
7936 slots with two CFI directives even for O32 FP64.
7937 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
7938 saving/restoring callee-saved registers.
7939 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
7940 (mips_secondary_memory_needed): New function.
7941 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
7942 odd-numbered single-precision registers when using TARGET_FLOATXX.
7943 Implement -modd-spreg and defaults.
7944 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
7945 callee-saved behaviour.
7946 (mips_hard_regno_caller_save_mode): Implement.
7947 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
7948 (TARGET_GET_RAW_ARG_MODE): Define target hook.
7949 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
7950 * config/mips/mips.h (TARGET_FLOAT32): New macro.
7951 (TARGET_O32_FP64A_ABI): Likewise.
7952 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
7953 _MIPS_SPFPSET builtin define.
7954 (MIPS_FPXX_OPTION_SPEC): New macro.
7955 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
7956 --with-odd-spreg-32=* to -m[no-]odd-spreg.
7957 (ISA_HAS_ODD_SPREG): New macro.
7958 (ISA_HAS_MXHC1): True for anything other than -mfp32.
7959 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
7960 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
7961 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
7962 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7963 (SECONDARY_MEMORY_NEEDED): Likewise.
7964 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
7965 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
7966 FP64A ABI extensions.
7967 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
7969 * config/mips/mips.opt (mfpxx): New target option.
7970 (modd-spreg): Likewise.
7971 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
7972 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
7974 * config/mips/t-mti-elf: Remove fp64 multilib.
7975 * config/mips/t-mti-linux: Likewise.
7976 * configure.ac: Detect .module support.
7977 * configure: Regenerate.
7978 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
7979 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
7982 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7985 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
7987 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
7988 (x86_output_mi_thunk): Set PIC register to %r11. Call
7989 ix86_init_large_pic_reg to initialize PIC register.
7991 2014-11-12 Kai Tietz <ktietz@redhat.com>
7993 * sdbout.c (sdbout_symbol): Eliminate register only
7994 if decl isn't a global variable.
7996 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
7998 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
8000 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
8001 qualifier_lane_index.
8002 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
8003 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
8004 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
8006 (aarch64_types_getlane_qualifiers): Rename to...
8007 (aarch64_types_binop_imm_qualifiers): ...this.
8008 (TYPES_SHIFTIMM): Follow renaming.
8009 (TYPES_GETLANE): Rename to...
8010 (TYPE_GETREG): ...this.
8012 (aarch64_types_setlane_qualifiers): Rename to...
8013 (aarch64_type_ternop_imm_qualifiers): ...this.
8014 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
8015 (TYPES_SETLANE): Follow renaming above, and rename self to...
8016 (TYPE_SETREG): ...this.
8018 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
8019 (aarch64_simd_expand_args): Add range check and endianness-flip.
8021 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
8023 * config/aarch64/aarch64-simd.md
8024 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
8025 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
8026 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
8028 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
8029 (aarch64_sq<r>dmulh_lane<mode>): ...this.
8031 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
8032 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
8034 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
8035 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
8037 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
8038 (aarch64_sqdmull_lane<mode>): ...this.
8040 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
8041 (aarch64_sqdmull_laneq<mode>): ...this.
8043 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
8044 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
8045 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
8046 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
8048 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
8049 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
8050 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
8051 bounds check and lane flip.
8053 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
8054 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
8055 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
8057 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
8058 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
8059 renaming of TERNOP_LANE to QUADOP_LANE.
8061 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
8062 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
8063 qualifiers to TERNOP_LANE.
8065 2014-11-12 Tobias Burnus <burnus@net-b.de>
8067 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
8068 * configure.ac: Ditto.
8069 * graphite-interchange.c: Remove HAVE_CLOOG block.
8070 * config.in: Regenerate.
8071 * configure: Regenerate.
8073 2014-11-12 Jiong Wang <jiong.wang@arm.com>
8075 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
8077 (EPILOGUE_USES): Guard the check by epilogue_completed.
8078 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
8080 (aarch64_can_eliminate): Check LR_REGNUM liveness.
8082 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8084 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
8086 2014-11-12 Marek Polacek <polacek@redhat.com>
8088 * fold-const.c (fold_binary_loc): Don't fold if the result
8090 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
8091 -(-A) -> A): Likewise.
8093 2014-11-12 Richard Biener <rguenther@suse.de>
8095 Merge from match-and-simplify branch
8096 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8098 * genmatch.c (user_id): Add new member is_oper_list.
8099 (user_id::user_id): Add new default argument.
8100 (parser::parse_operator_list): New function.
8101 (parser::parse_for): Allow operator-list.
8102 (parser::parse_pattern): Call parser::parse_operator_list.
8103 (parser::parse_operation): Reject operator-list.
8104 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
8106 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8108 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
8110 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8112 * genmatch.c (parser::parse_op): Check if predicate is used in
8115 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8117 * genmatch.c (parser::parse_for): Make sure to have a valid
8118 token to report errors at.
8120 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8122 * genmatch.c (parser): Add new member parsing_match_operand.
8123 (parser::parse_operation): Check for conditional convert in result
8125 (parser::parse_expr): Check for commutative operator in result operand.
8126 Check for :type in match operand.
8127 (parser::parse_simplify): Set/unset parsing_match_operand.
8128 (parser::parser): Initialize parsing_match_operand.
8130 2014-10-28 Richard Biener <rguenther@suse.de>
8132 * genmatch.c (parser::parse_for): Properly check for already
8135 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8137 * genmatch.c (error_cb): Adjust for printing warnings.
8138 (warning_at): New function.
8139 (user_id): Add new member used.
8140 (get_operator): Mark user_id as used.
8141 (parse_for): Warn for unused operators.
8143 2014-11-12 Richard Biener <rguenther@suse.de>
8145 * match.pd: Implement simple complex operations cancelling.
8146 * fold-const.c (fold_unary_loc): Remove them here.
8148 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8150 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
8151 Define __NO_MATH_ERRNO__ if -fno-math-errno.
8152 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
8154 2014-11-12 Richard Biener <rguenther@suse.de>
8156 * genmatch.c (::gen_transform): Add capture_info and
8157 expand_compares arguments.
8158 (struct expr): Add is_generic flag.
8159 (lower_cond): New functions lowering [VEC_]COND_EXPR
8160 conditions to a GENERIC and a GIMPLE variant.
8161 (lower): Call lower_cond.
8162 (cmp_operand): Also compare the is_generic flag.
8163 (capture_info::cinfo): Add cond_expr_cond_p flag.
8164 (capture_info::capture_info): Pass down whether the
8165 expression argument is a COND_EXPR condition.
8166 (capture_info::walk_match): Likewise, mark captures
8167 capturing COND_EXPR conditions with cond_expr_cond_p.
8168 (expr::gen_transform): Pass down whether we need to
8169 expand compares from COND_EXPR conditions.
8170 (capture::gen_transform): Expand compares substituted
8171 from COND_EXPR conditions into non-COND_EXPR conditions.
8172 (dt_operand::gen_gimple_expr): Handle explicitely marked
8173 GENERIC expressions as generic.
8174 (dt_simplify::gen): Pass whether we need to expand
8175 conditions to gen_transform. Handle capture results
8176 which are from COND_EXPR conditions.
8177 (main): Pass gimple flag down to lower.
8179 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8182 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
8183 * builtins.c (fold_builtin_arith_overflow): New function.
8184 (fold_builtin_3): Use it.
8185 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
8186 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
8187 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
8188 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
8189 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
8190 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
8191 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
8192 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
8193 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
8194 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
8195 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
8196 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
8197 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
8198 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
8199 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
8200 * expr.c (write_complex_part): Remove prototype, no longer static.
8201 * expr.h (write_complex_part): New prototype.
8202 * function.c (aggregate_value_p): For internal functions return 0.
8203 * gimple-fold.c (arith_overflowed_p): New functions.
8204 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
8205 * gimple-fold.h (arith_overflowed_p): New prototype.
8206 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
8207 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
8209 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
8210 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
8212 * gimplify.c (gimplify_call_expr): Handle gimplification of
8213 internal calls with lhs.
8214 * internal-fn.c (get_range_pos_neg, get_min_precision,
8215 expand_arith_overflow_result_store): New functions.
8216 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
8217 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8218 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8219 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
8220 (ubsan_expand_si_overflow_neg_check): Renamed to ...
8221 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
8222 arguments, remove STMT argument. Handle SUB_OVERFLOW with
8223 0 as first argument expansion.
8224 (ubsan_expand_si_overflow_mul_check): Renamed to ...
8225 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8226 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8227 Handle MUL_OVERFLOW expansion.
8228 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
8230 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
8231 expand_neg_overflow, prepare arguments for it.
8232 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
8234 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
8235 expand_MUL_OVERFLOW): New functions.
8236 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
8238 * tree-vrp.c (check_for_binary_op_overflow): New function.
8239 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
8240 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
8241 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
8243 * optabs.def (umulv4_optab): New optab.
8244 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
8245 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
8246 * doc/extend.texi (Integer Overflow Builtins): Document
8247 __builtin_*_overflow.
8249 2014-11-12 Richard Biener <rguenther@suse.de>
8251 * genmatch.c (capture_info::capture_info): Add missing
8253 (capture_info::walk_match): Fix COND_EXPR handling.
8254 (capture_info::walk_result): Likewise.
8256 2014-11-12 Richard Biener <rguenther@suse.de>
8259 * match.pd: Add missing conversion to the -(T)-X pattern.
8261 2014-11-12 Richard Biener <rguenther@suse.de>
8264 * hash-table.h: Include ggc.h also for generator programs.
8265 * genmatch.c (ggc_internal_cleared_alloc): Properly define
8266 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
8268 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8270 PR tree-optimization/63761
8271 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
8272 rather than taking it as a parameter. Add some comments to explain the
8273 gsi_move_before in case of load and why canonicalization of bswap into
8274 a rotation is only done for 16bit values.
8275 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
8276 refer to the statement just before cur_stmt. Ignore 16bit bswap that
8277 are already in canonical form. Adapt bswap_replace to removal of its
8280 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
8282 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
8283 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
8284 (for_each_rtx_in_insn): Delete.
8285 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
8286 * df-core.c: Remove reference to for_each_rtx in comment.
8288 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
8290 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
8291 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
8292 * doc/aarch64-acle-intrinsics.texi: Remove.
8293 * doc/arm-acle-intrinsics.texi: Remove.
8294 * doc/arm-neon-intrinsics.texi: Remove.
8295 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
8296 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
8297 Extension section. Add references to public ACLE specification.
8299 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
8301 * tree-vrp.c (register_edge_assert_for_2): Change return type to
8302 void and adjust accordingly.
8303 (register_edge_assert_for_1): Likewise.
8304 (register_edge_assert_for): Likewise.
8305 (find_conditional_asserts): Likewise.
8306 (find_switch_asserts): Likewise.
8307 (find_assert_locations_1): Likewise.
8308 (find_assert_locations): Likewise.
8309 (insert_range_insertions): Inspect the need_assert_for bitmap.
8311 2014-11-11 Andrew Pinski <apinski@cavium.com>
8314 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
8316 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
8317 at the end of the file.
8319 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
8320 Manuel López-Ibáñez <manu@gcc.gnu.org>
8323 * diagnostic-core.h: Add prototype for fatal_error.
8324 * diagnostic.c (fatal_error): New function fatal_error.
8325 * gcc.c (store_arg): Remove have_o_argbuf_index.
8326 (process_command): Check if input and output files are the same.
8327 * toplev.c (init_asm_output): Check if input and output files are
8330 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8332 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
8334 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8337 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
8338 smaller than 8 bytes.
8339 (sparc_function_arg_1): Tweak.
8340 (sparc_function_value_1): Tweak.
8342 2014-11-11 David Malcolm <dmalcolm@redhat.com>
8344 * ChangeLog.jit: New.
8345 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
8346 sphinx is installed, falling back to "texinfo" otherwise.
8347 (FULL_DRIVER_NAME): New variable, adapted from the
8348 install-driver target. New target, a symlink within the builddir,
8349 linked to "xgcc", for use when running the JIT library from the
8351 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
8352 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
8354 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
8355 sphinx is installed, falling back to "texinfo" otherwise.
8356 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
8357 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
8358 * configure: Regenerate.
8359 * doc/install.texi (--enable-host-shared): Specify that this is
8360 required when building libgccjit.
8361 (Tools/packages necessary for modifying GCC): Add Sphinx.
8362 * timevar.def (TV_JIT_REPLAY): New.
8367 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8370 * configure: Regenerate.
8372 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
8374 * config/aarch64/aarch64-simd.md
8375 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
8376 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
8377 are punning between float vectors and integer vectors.
8379 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8381 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
8382 open-coded swap with std::swap to swap values.
8383 (alpha_emit_setcc): Ditto.
8384 (alpha_emit_conditional_move): Ditto.
8385 (alpha_split_tmode_pair): Ditto.
8387 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
8389 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
8390 permutations on power of 2 cases.
8392 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8394 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
8395 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
8397 2014-11-11 Richard Biener <rguenther@suse.de>
8399 * tree-core.h (pedantic_lvalues): Remove.
8400 * fold-const.c (pedantic_lvalues): Likewise.
8401 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
8403 2014-11-11 Martin Liska <mliska@suse.cz>
8407 * ipa-icf.c (sem_function::merge): Add new target symbol alias
8409 (sem_variable::merge): Likewise.
8410 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
8412 2014-11-11 Richard Biener <rguenther@suse.de>
8414 * match.pd: Implement patterns from associate_plusminus
8415 and factor in differences from the fold-const.c implementation.
8416 * fold-const.c (fold_binary_loc): Remove patterns here.
8417 * tree-ssa-forwprop.c (associate_plusminus): Remove.
8418 (pass_forwprop::execute): Don't call it.
8419 * tree.c (tree_nop_conversion_p): New function, factored
8420 from tree_nop_conversion.
8421 * tree.h (tree_nop_conversion_p): Declare.
8423 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8425 * system.h: Include algorithm and utility.
8426 * rtl.h: Do not include utility here.
8427 * wide-int.h: Ditto.
8428 * tree-vect-data-refs.c (swap): Remove template.
8429 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
8431 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8435 * system.h: Include <string> before "safe-ctype.h"
8436 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
8437 calls to min/max with wi namespace.
8438 * ipa-chkp.c: Don't include <string>.
8440 2014-11-11 Terry Guo <terry.guo@arm.com>
8442 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
8443 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
8445 (*thumb1_movhf): Likewise.
8447 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8449 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
8450 instead of INT64_MAX.
8452 2014-11-11 Tobias Burnus <burnus@net-b.de>
8454 * doc/install.texi (Prerequisites): Remove CLooG.
8456 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
8458 * ipa-inline.c (edge_badness): Adjust.
8459 (inline_small_functions): Likewise.
8460 * predict.c (propagate_freq): Likewise.
8461 (estimate_bb_frequencies): Likewise.
8462 * sreal.c (sreal::dump): Rename from dump_sreal.
8464 (copy): Remove function.
8465 (sreal::shift_right): Rename from sreal_sift_right.
8466 (sreal::normalize): Rename from normalize.
8467 (sreal_init): Remove function.
8468 (sreal::to_int): Rename from sreal_to_int.
8469 (sreal_compare): Remove function.
8470 (sreal::operator+): Rename from sreal_add.
8471 (sreal::operator-): Rename from sreal_sub.
8472 (sreal::operator*): Rename from sreal_mul.
8473 (sreal::operator/): Rename from sreal_div.
8474 * sreal.h (class sreal): Adjust.
8475 (inline sreal &operator+=): New operator.
8476 (inline sreal &operator-=): Likewise.
8477 (inline sreal &operator/=): Likewise.
8478 (inline sreal &operator*=): Likewise.
8479 (inline bool operator!=): Likewise.
8480 (inline bool operator>): Likewise.
8481 (inline bool operator<=): Likewise.
8482 (inline bool operator>=): Likewise.
8484 2014-11-11 Bin Cheng <bin.cheng@arm.com>
8486 * sched-deps.c (sched_analyze_1): Check pending list if it is not
8487 less than MAX_PENDING_LIST_LENGTH.
8488 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
8490 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8492 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
8493 swap with std::swap to swap values.
8494 (ix86_fixup_binary_operands): Ditto.
8495 (ix86_binary_operator_ok): Ditto.
8496 (ix86_prepare_fp_compare_args): Ditto.
8497 (ix86_expand_branch): Ditto.
8498 (ix86_expand_carry_flag_compare): Ditto.
8499 (ix86_expand_int_movcc): Ditto.
8500 (ix86_prepare_sse_fp_compare_args): Ditto.
8501 (ix86_expand_sse_fp_minmax): Ditto.
8502 (ix86_expand_int_vcond): Ditto.
8503 (ix86_split_long_move): Ditto.
8504 (ix86_expand_sse_comi): Ditto.
8505 (ix86_expand_sse_compare_and_jump): Ditto.
8506 (ix86_expand_sse_compare_mask): Ditto.
8507 * config/i386/i386.md (*add<mode>_1): Ditto.
8508 (addsi_1_zext): Ditto.
8511 (*add<mode>_2): Ditto.
8512 (*addsi_2_zext): Ditto.
8513 (*add<mode>_3): Ditto.
8514 (*addsi_3_zext): Ditto.
8515 (*add<mode>_5): Ditto.
8516 (absneg splitter): Ditto.
8518 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8521 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
8524 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8525 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8526 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8527 be reloaded through memory.
8531 2014-11-11 Jakub Jelinek <jakub@redhat.com>
8532 Martin Liska <mliska@suse.cz>
8534 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
8535 (func_checker::compare_gimple_call): Compare gimple_call_fn,
8536 gimple_call_chain, gimple_call_fntype and call flags.
8538 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
8540 PR rtl-optimization/63620
8541 PR rtl-optimization/63799
8542 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
8543 and setting PIC pseudo insns.
8544 (lra_create_live_ranges): Fix the typo.
8546 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
8549 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
8550 SSA copies whose source and destination names both occur in
8553 2014-11-10 Roman Gareev <gareevroman@gmail.com>
8555 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
8556 * common.opt: Remove using of fgraphite-code-generator flag.
8557 * flag-types.h: Likewise.
8558 * graphite.c: Remove using of CLooG.
8559 * graphite-blocking.c: Likewise.
8560 * graphite-dependences.c: Likewise.
8561 * graphite-poly.c: Likewise.
8562 * graphite-poly.h: Likewise.
8563 * graphite-scop-detection.c: Likewise.
8564 * graphite-sese-to-poly.c: Likewise.
8565 * graphite-clast-to-gimple.c: Removed.
8566 * graphite-clast-to-gimple.h: Likewise.
8567 * graphite-htab.h: Likewise.
8569 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8571 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
8574 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8576 * config/frv/frv.c (frv_io_handle_use_1): Delete.
8577 (frv_io_handle_use): Use find_all_hard_regs.
8579 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8581 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
8582 than an rtx *. Take the regstate_t directly rather than via a void *.
8583 Return a bool rather than an int. Iterate over all subrtxes here.
8584 (frv_registers_conflict_p): Update accordingly.
8586 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8588 * config/frv/frv.c: Include rtl-iter.h.
8589 (frv_acc_group_1): Delete.
8590 (frv_acc_group): Use FOR_EACH_SUBRTX.
8592 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8594 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
8595 (frv_clear_registers_used): Delete.
8596 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
8598 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
8601 * calls.c (initialize_argument_information): When emitting thunk call
8602 use original memory placement of the argument.
8604 2014-11-10 Renlin Li <renlin.li@arm.com>
8607 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
8609 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
8611 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
8612 bswaphi if available.
8614 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
8616 * config/nvptx/nvptx.c: New file.
8617 * config/nvptx/nvptx.h: New file.
8618 * config/nvptx/nvptx-protos.h: New file.
8619 * config/nvptx/nvptx.md: New file.
8620 * config/nvptx/t-nvptx: New file.
8621 * config/nvptx/nvptx.opt: New file.
8622 * common/config/nvptx/nvptx-common.c: New file.
8623 * config.gcc: Handle nvptx-*-*.
8625 2014-11-10 Richard Biener <rguenther@suse.de>
8627 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
8628 released operands on the free list.
8630 2014-11-10 Richard Biener <rguenther@suse.de>
8632 * match.pd: Implement pattern from simplify_mult.
8633 * tree-ssa-forwprop.c (simplify_mult): Remove.
8634 (pass_forwprop::execute): Do not call simplify_mult.
8636 2014-11-10 Richard Biener <rguenther@suse.de>
8638 PR tree-optimization/63800
8639 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
8640 we can restore the previous availability in after_dom_children.
8641 (eliminate_dom_walker::after_dom_children): Restore
8642 previous availability.
8644 2014-11-10 Richard Biener <rguenther@suse.de>
8647 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
8648 properly treat the embedded multiplication as commutative
8649 when looking for feeding negates.
8651 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
8653 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
8655 2014-11-10 Martin Liska <mliska@suse.cz>
8657 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
8658 for the test because of default char signedness
8659 on powerpc64 target.
8661 2014-11-10 Richard Biener <rguenther@suse.de>
8663 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
8664 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
8665 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
8667 2014-11-10 Richard Biener <rguenther@suse.de>
8669 * match.pd: Move rest of the conversion combining patterns
8670 from tree-ssa-forwprop.c.
8671 * tree-ssa-forwprop.c (combine_conversions): Remove.
8672 (pass_forwprop::execute): Do not call it.
8674 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
8676 * gimple-low.c (lower_function_body): Clear the location of the first
8677 inserted representative return if it also fills in for the fallthru.
8679 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8681 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
8682 that bb is always executed to early exit. Use predicate of
8683 cd-equivalent block for join blocks if it exists.
8684 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
8685 (tree_if_conversion): Free post-dominance information.
8687 2014-11-09 Jason Merrill <jason@redhat.com>
8689 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
8690 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
8691 (_mm_mask_cvtusepi32_storeu_epi16)
8692 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
8694 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
8696 * config/avr/predicates.md (low_io_address_operand): Fix typo.
8698 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
8700 PR rtl-optimization/63620
8701 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
8702 name. Move to lra.c. Make it external.
8703 (substitute_pseudo_within_insn): Ditto.
8704 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
8706 (undo_optional_reloads): Ditto.
8707 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
8709 (lra_substitute_pseudo_within_insn): Ditto.
8710 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
8711 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
8712 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
8714 (struct bb_data, bb_data_t, bb_data): New.
8715 (get_bb_data, get_bb_data_by_index): Ditto.
8716 (all_hard_regs_bitmap): New.
8717 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
8718 (initiate_live_solver, finish_live_solver): New.
8719 (process_bb_lives): Change return type. Add code updating local
8720 live data and removing dead insns. Pass new argument to
8721 mark_regno_live and mark_regno_dead. Check changing bb pseudo
8722 life info. Return the result.
8723 (lra_create_live_ranges): Add code to do global pseudo live
8725 (lra_live_ranges_init): Call initiate_live_solver.
8726 (lra_live_ranges_finish): Call finish_live_solver.
8727 * lra.c (lra_dump_bitmap_with_title): New.
8728 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
8729 from lra-constraints.c.
8731 2014-11-09 Richard Biener <rguenther@suse.de>
8733 * match.pd: Add patterns convering two conversions in a row
8735 * fold-const.c (fold_unary_loc): Remove them here.
8736 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8737 * genmatch.c (dt_node::gen_kids): Check whether we may
8738 follow SSA use-def chains.
8740 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8742 * config/aarch64/aarch64.c: Include rtl-iter.h.
8743 (aarch64_tls_operand_p_1): Delete.
8744 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
8746 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8748 * config/arm/arm.c (arm_note_pic_base): Delete.
8749 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
8751 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8753 * config/arm/arm.c: Include rtl-iter.h.
8754 (arm_tls_referenced_p_1): Delete.
8755 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
8757 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8759 * config/arm/aarch-common.c: Include rtl-iter.h.
8760 (search_term, arm_find_sub_rtx_with_search_term): Delete.
8761 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
8762 (arm_get_set_operands): Pass the insn pattern rather than the
8764 (arm_no_early_store_addr_dep): Likewise.
8766 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
8768 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
8770 (thumb_set_return_address): Likewise.
8772 2014-11-07 Jeff Law <law@redhat.com>
8774 PR tree-optimization/61515
8775 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
8776 stack rather than looking at every SSA_NAME's value.
8778 2014-11-07 Richard Biener <rguenther@suse.de>
8780 PR tree-optimization/63605
8781 * fold-const.c (fold_binary_loc): Properly use element_precision
8782 for types that may not be scalar.
8784 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
8787 * config/i386/i386.md (builtin_setjmp_receiver): Use
8788 pic_offset_table_rtx for PIC register.
8789 (nonlocal_goto_receiver): Delete.
8791 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
8793 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
8794 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
8796 2014-11-07 Martin Liska <mliska@suse.cz>
8799 * cgraphunit.c (cgraph_node::create_wrapper):
8800 TREE_ADDRESSABLE is set to false for a newly created thunk.
8802 2014-11-07 Martin Liska <mliska@suse.cz>
8805 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
8806 Missing checking for CASE_LOW and CASE_HIGH added.
8808 2014-11-07 Martin Liska <mliska@suse.cz>
8811 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
8812 is correctly handled for thunks created by IPA ICF.
8814 2014-11-07 Jiong Wang <jiong.wang@arm.com>
8815 2014-11-07 Richard Biener <rguenther@suse.de>
8817 PR tree-optimization/63676
8818 * gimple-fold.c (fold_gimple_assign): Do not fold node when
8819 TREE_CLOBBER_P be true.
8821 2014-11-07 Richard Biener <rguenther@suse.de>
8824 * match.pd: Guard conflicting GENERIC pattern properly.
8826 2014-11-07 Richard Biener <rguenther@suse.de>
8828 * match.pd: Add patterns for POINTER_PLUS_EXPR association
8829 and special patterns from tree-ssa-forwprop.c
8830 * fold-const.c (fold_binary_loc): Remove them here.
8831 * tree-ssa-forwprop.c (to_purge): New global bitmap.
8832 (fwprop_set_lattice_val): New function.
8833 (fwprop_invalidate_lattice): Likewise.
8834 (remove_prop_source_from_use): Instead of purging dead EH
8835 edges record blocks to do that in to_purge.
8836 (tidy_after_forward_propagate_addr): Likewise.
8837 (forward_propagate_addr_expr): Invalidate the lattice for
8838 SSA names we release.
8839 (simplify_conversion_from_bitmask): Likewise.
8840 (simplify_builtin_call): Likewise.
8841 (associate_pointerplus_align): Remove.
8842 (associate_pointerplus_diff): Likewise.
8843 (associate_pointerplus): Likewise.
8844 (fold_all_stmts): Merge with ...
8845 (pass_forwprop::execute): ... the original loop over all
8846 basic-blocks. Delay purging dead EH edges and invalidate
8847 the lattice for SSA names we release.
8849 2014-11-07 Terry Guo <terry.guo@arm.com>
8851 * config/arm/arm.opt (masm-syntax-unified): New option.
8852 * doc/invoke.texi (-masm-syntax-unified): Document new option.
8853 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
8854 (ASM_APP_ON): Redefined.
8855 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
8856 code always use UAL syntax.
8857 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
8858 * config/arm/thumb1.md: Likewise.
8860 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
8862 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
8863 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
8866 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
8868 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
8869 Set default_mips_arch and default_mips_abi instead of tm_defines.
8870 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
8872 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
8873 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
8874 based on MIPS_ABI_DEFAULT.
8875 (STANDARD_STARTFILE_PREFIX_2): Ditto.
8877 2014-11-06 Joseph Myers <joseph@codesourcery.com>
8879 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
8880 cases of extended identifiers.
8882 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
8884 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
8886 2014-11-06 DJ Delorie <dj@redhat.com>
8888 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
8890 (movhicc_<code>_<mode>): Likewise.
8891 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
8893 (m32c_eh_return_data_regno): Change to using memregs to avoid
8894 tying up all the compute regs.
8895 (m32c_legitimate_address_p) Subregs are not valid addresses.
8897 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
8899 * function.c (thread_prologue_and_epilogue_insns): No longer static.
8900 * function.h (thread_prologue_and_epilogue_insns): Declare.
8902 * target.def (assemble_undefined_decl): New hooks.
8903 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
8904 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
8905 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
8906 * doc/tm.texi: Regenerate.
8907 * output.h (assemble_undefined_decl): Declare.
8908 (get_fnname_from_decl): Declare.
8909 * varasm.c (assemble_undefined_decl): New function.
8910 (get_fnname_from_decl): New function.
8911 * final.c (rest_of_handle_final): Use it.
8912 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
8913 for nodes without a definition.
8915 * target.def (call_args, end_call_args): New hooks.
8916 * hooks.c (hook_void_rtx_tree): New empty function.
8917 * hooks.h (hook_void_rtx_tree): Declare.
8918 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
8919 * doc/tm.texi: Regenerate.
8920 * calls.c (expand_call): Slightly rearrange the code. Use the two new
8922 (expand_library_call_value_1): Use the two new hooks.
8924 * expr.c (use_reg_mode): Just return for pseudo registers.
8926 * combine.c (try_combine): Don't allow a call as one of the source
8929 * target.def (decl_end): New hook.
8930 * varasm.c (assemble_variable_contents, assemble_constant_contents):
8932 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
8933 * doc/tm.texi: Regenerate.
8935 2014-11-06 Renlin Li <renlin.li@arm.com>
8937 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
8938 (processor): New architecture_version field.
8939 (aarch64_override_options): Initialize aarch64_architecture_version.
8940 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
8941 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
8943 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8945 * params.def (sra-max-scalarization-size-Ospeed): New.
8946 (sra-max-scalarization-size-Osize): Likewise.
8947 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
8948 (sra-max-scalarization-size-Osize): Likewise.
8949 * toplev.c (process_options): Set default values for new
8951 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
8952 * targhooks.c (get_move_ratio): Remove static designator.
8953 * target.h (get_move_ratio): Declare.
8955 2014-11-06 Marek Polacek <polacek@redhat.com>
8957 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
8958 Remove vector limit.
8960 2014-11-06 Richard Biener <rguenther@suse.de>
8962 * match.pd: Implement bitwise binary and unary simplifications
8963 from tree-ssa-forwprop.c.
8964 * fold-const.c (fold_unary_loc): Remove them here.
8965 (fold_binary_loc): Likewise.
8966 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
8967 (truth_valued_ssa_name): Likewise.
8968 (lookup_logical_inverted_value): Likewise.
8969 (simplify_bitwise_binary_1): Likewise.
8970 (hoist_conversion_for_bitop_p): Likewise.
8971 (simplify_bitwise_binary_boolean): Likewise.
8972 (simplify_bitwise_binary): Likewise.
8973 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
8974 and simplify_bitwise_binary.
8975 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
8976 (decision_tree::insert): Also insert non-expressions.
8978 2014-11-06 Hale Wang <hale.wang@arm.com>
8980 * config/arm/arm-cores.def: Add support for
8981 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8982 cortex-m1.small-multiply.
8983 * config/arm/arm-tables.opt: Regenerate.
8984 * config/arm/arm-tune.md: Regenerate.
8985 * config/arm/arm.c: Update the rtx-costs for MUL.
8986 * config/arm/bpabi.h: Handle
8987 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8988 cortex-m1.small-multiply.
8989 * doc/invoke.texi: Document
8990 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
8991 cortex-m1.small-multiply.
8993 2014-11-06 Hale Wang <hale.wang@arm.com>
8995 * config/arm/arm.c: Add cortex-m7 tune.
8996 * config/arm/arm-cores.def: Use cortex-m7 tune.
8998 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
9001 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
9002 (ix86_encode_section_info): Do not check for non-automatic varibles
9003 when setting SYMBOL_FLAG_FAR_ADDR flag.
9004 (x86_64_elf_select_section): Do not check ix86_cmodel here.
9005 (x86_64_elf_unique_section): Ditto.
9006 (x86_elf_aligned_common): Emit tab before .largecomm.
9008 2014-11-05 Joseph Myers <joseph@codesourcery.com>
9010 PR preprocessor/9449
9011 * doc/cpp.texi (Character sets, Tokenization)
9012 (Implementation-defined behavior): Don't refer to UCNs in
9013 identifiers requiring -fextended-identifiers.
9014 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
9015 by default for C99 and later and C++.
9016 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
9017 identifiers needing -fextended-identifiers.
9019 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
9021 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
9022 for 512-bit wide modes.
9023 (expand_vec_perm_1): Use correct versions of patterns.
9024 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
9025 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
9027 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
9033 * tree-chkp-opt.c: New.
9036 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
9038 (GTFILES): Add tree-chkp.c.
9039 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9040 * tree.def (POINTER_BOUNDS_TYPE): New.
9041 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9042 (POINTER_BOUNDS_MODE): New.
9043 (make_pointer_bounds_mode): New.
9044 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9045 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9046 (layout_type): Support POINTER_BOUNDS_TYPE.
9047 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9048 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9049 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9050 (type_contains_placeholder_1): Likewise.
9051 (build_common_tree_nodes): Initialize
9052 pointer_bounds_type_node.
9053 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9054 (pointer_bounds_type_node): New.
9055 (POINTER_BOUNDS_P): New.
9056 (BOUNDED_TYPE_P): New.
9058 (CALL_WITH_BOUNDS_P): New.
9059 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
9060 (gimple_call_with_bounds_p): New.
9061 (gimple_call_set_with_bounds): New.
9062 (gimple_return_retbnd): New.
9063 (gimple_return_set_retbnd): New
9064 * gimple.c (gimple_build_return): Increase number of ops
9065 for return statement.
9066 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
9068 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9069 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
9070 * gimplify.c (gimplify_init_constructor): Avoid infinite
9071 loop during gimplification of bounds initializer.
9072 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
9073 (special_function_p): Use original decl name when analyzing
9074 instrumentation clone.
9075 (arg_data): Add fields special_slot, pointer_arg and
9077 (store_bounds): New.
9078 (emit_call_1): Propagate instrumentation flag for CALL.
9079 (initialize_argument_information): Compute pointer_arg,
9080 pointer_offset and special_slot for pointer bounds arguments.
9081 (finalize_must_preallocate): Preallocate when storing bounds
9083 (compute_argument_addresses): Skip pointer bounds.
9084 (expand_call): Store bounds into tables separately. Return
9085 result joined with resulting bounds.
9086 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
9087 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
9088 (expand_return): Add returned bounds arg. Handle returned bounds.
9089 (expand_gimple_stmt_1): Adjust to new expand_return signature.
9090 (gimple_expand_cfg): Reset rtx bounds map.
9091 * expr.c: Include tree-chkp.h, rtl-chkp.h.
9092 (expand_assignment): Handle returned bounds.
9093 (store_expr_with_bounds): New. Replaces store_expr with new bounds
9094 target argument. Handle bounds returned by calls.
9095 (store_expr): Now wraps store_expr_with_bounds.
9096 * expr.h (store_expr_with_bounds): New.
9097 * function.c: Include tree-chkp.h, rtl-chkp.h.
9098 (bounds_parm_data): New.
9099 (use_register_for_decl): Do not registerize decls used for bounds
9101 (assign_parms_augmented_arg_list): Add bounds of the result
9102 structure pointer as the second argument.
9103 (assign_parm_find_entry_rtl): Mark bounds are never passed on
9105 (assign_parm_is_stack_parm): Likewise.
9106 (assign_parm_load_bounds): New.
9107 (assign_bounds): New.
9108 (assign_parms): Load bounds and determine a location for
9110 (diddle_return_value_1): New.
9111 (diddle_return_value): Handle returned bounds.
9112 * function.h (rtl_data): Add field for returned bounds.
9113 * varasm.c: Include tree-chkp.h.
9114 (output_constant): Support POINTER_BOUNDS_TYPE.
9115 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
9116 (ultimate_transparent_alias_target): Move up.
9117 (make_decl_rtl): For instrumented function use
9118 name of the original decl.
9119 (assemble_start_function): Mark function as global
9120 in case it is instrumentation clone of the global
9122 (do_assemble_alias): Follow transparent alias chain
9123 for identifier. Check if original alias is public.
9124 (maybe_assemble_visibility): Use visibility of the
9125 original function for instrumented version.
9126 (default_unique_section): Likewise.
9127 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
9128 (init_emit_once): Build pointer bounds zero constants.
9129 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
9130 * target.def (builtin_chkp_function): New.
9131 (chkp_bound_type): New.
9132 (chkp_bound_mode): New.
9133 (chkp_make_bounds_constant): New.
9134 (chkp_initialize_bounds): New.
9135 (load_bounds_for_arg): New.
9136 (store_bounds_for_arg): New.
9137 (load_returned_bounds): New.
9138 (store_returned_bounds): New.
9139 (chkp_function_value_bounds): New.
9140 (setup_incoming_vararg_bounds): New.
9141 (function_arg): Update hook description with new possible return
9143 * targhooks.h (default_load_bounds_for_arg): New.
9144 (default_store_bounds_for_arg): New.
9145 (default_load_returned_bounds): New.
9146 (default_store_returned_bounds): New.
9147 (default_chkp_bound_type): New.
9148 (default_chkp_bound_mode): New.
9149 (default_builtin_chkp_function): New.
9150 (default_chkp_function_value_bounds): New.
9151 (default_chkp_make_bounds_constant): New.
9152 (default_chkp_initialize_bounds): New.
9153 (default_setup_incoming_vararg_bounds): New.
9154 * targhooks.c (default_load_bounds_for_arg): New.
9155 (default_store_bounds_for_arg): New.
9156 (default_load_returned_bounds): New.
9157 (default_store_returned_bounds): New.
9158 (default_chkp_bound_type): New.
9159 (default_chkp_bound_mode); New.
9160 (default_builtin_chkp_function): New.
9161 (default_chkp_function_value_bounds): New.
9162 (default_chkp_make_bounds_constant): New.
9163 (default_chkp_initialize_bounds): New.
9164 (default_setup_incoming_vararg_bounds): New.
9165 * builtin-types.def (BT_BND): New.
9166 (BT_FN_PTR_CONST_PTR): New.
9167 (BT_FN_CONST_PTR_CONST_PTR): New.
9168 (BT_FN_BND_CONST_PTR): New.
9169 (BT_FN_CONST_PTR_BND): New.
9170 (BT_FN_PTR_CONST_PTR_SIZE): New.
9171 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9172 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9173 (BT_FN_VOID_CONST_PTR_SIZE): New.
9174 (BT_FN_VOID_PTR_BND): New.
9175 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
9176 (BT_FN_BND_CONST_PTR_SIZE): New.
9177 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9178 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
9179 * chkp-builtins.def: New.
9180 * builtins.def: include chkp-builtins.def.
9181 (DEF_CHKP_BUILTIN): New.
9182 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
9183 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9184 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9185 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9186 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9187 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9188 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9189 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9190 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9191 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
9192 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9193 (std_expand_builtin_va_start): Init bounds for va_list.
9194 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
9195 __CHKP__ macro when Pointer Bounds Checker is on.
9196 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
9197 * passes.def (pass_ipa_chkp_versioning): New.
9198 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
9199 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
9200 (pass_chkp_instrumentation_passes): New.
9201 (pass_ipa_chkp_produce_thunks): New.
9202 (pass_local_optimization_passes): New.
9203 (pass_chkp_opt): New.
9204 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
9205 (make_pass_ipa_chkp_produce_thunks): New.
9206 (make_pass_chkp): New.
9207 (make_pass_chkp_opt): New.
9208 (make_pass_early_local_passes): Renamed to ...
9209 (make_pass_build_ssa_passes): This.
9210 (make_pass_chkp_instrumentation_passes): New.
9211 (make_pass_local_optimization_passes): New.
9212 * passes.c (pass_manager::execute_early_local_passes): Execute
9213 early passes in three steps.
9214 (execute_all_early_local_passes): Renamed to ...
9215 (execute_build_ssa_passes): This.
9216 (pass_data_early_local_passes): Renamed to ...
9217 (pass_data_build_ssa_passes): This.
9218 (pass_early_local_passes): Renamed to ...
9219 (pass_build_ssa_passes): This.
9220 (pass_data_chkp_instrumentation_passes): New.
9221 (pass_chkp_instrumentation_passes): New.
9222 (pass_data_local_optimization_passes): New.
9223 (pass_local_optimization_passes): New.
9224 (make_pass_early_local_passes): Renamed to ...
9225 (make_pass_build_ssa_passes): This.
9226 (make_pass_chkp_instrumentation_passes): New.
9227 (make_pass_local_optimization_passes): New.
9228 * c-family/c.opt (fcheck-pointer-bounds): New.
9229 (fchkp-check-incomplete-type): New.
9230 (fchkp-zero-input-bounds-for-main): New.
9231 (fchkp-first-field-has-own-bounds): New.
9232 (fchkp-narrow-bounds): New.
9233 (fchkp-narrow-to-innermost-array): New.
9234 (fchkp-optimize): New.
9235 (fchkp-use-fast-string-functions): New.
9236 (fchkp-use-nochk-string-functions): New.
9237 (fchkp-use-static-bounds): New.
9238 (fchkp-use-static-const-bounds): New.
9239 (fchkp-treat-zero-dynamic-size-as-infinite): New.
9240 (fchkp-check-read): New.
9241 (fchkp-check-write): New.
9242 (fchkp-store-bounds): New.
9243 (fchkp-instrument-calls): New.
9244 (fchkp-instrument-marked-only): New.
9246 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9247 (handle_bnd_legacy): New.
9248 (handle_bnd_instrument): New.
9249 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
9250 and bnd_instrument. Fix documentation.
9251 (c_common_format_attribute_table): Likewsie.
9252 * toplev.c: include tree-chkp.h.
9253 (process_options): Check Pointer Bounds Checker is supported.
9254 (compile_file): Add chkp_finish_file call.
9255 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
9256 to handle instrumentation clones properly.
9257 (propagate_constants_accross_call): Do not propagate
9258 through instrumentation thunks.
9259 * ipa-pure-const.c (propagate_pure_const): Support
9261 * ipa-inline.c (early_inliner): Check edge has summary allocated.
9262 * ipa-split.c: Include tree-chkp.h.
9264 (split_part_set_ssa_name_p): New.
9265 (consider_split): Do not split retbnd and retval
9267 (insert_bndret_call_after): new.
9268 (split_function): Propagate Pointer Bounds Checker
9269 instrumentation marks and handle returned bounds.
9270 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
9271 into bit field and add with_bounds field.
9272 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
9273 with_bounds field for instrumented calls.
9274 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
9275 CALL_WITH_BOUNDS_P flag for calls.
9276 * tree-ssa-ccp.c: Include tree-chkp.h.
9277 (insert_clobber_before_stack_restore): Handle
9278 BUILT_IN_CHKP_BNDRET calls.
9279 * tree-ssa-dce.c: Include tree-chkp.h.
9280 (propagate_necessity): For free call fed by alloc check
9281 bounds are also provided by the same alloc.
9282 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
9284 * tree-inline.c: Include tree-chkp.h.
9285 (declare_return_variable): Add arg holding
9286 returned bounds slot. Create and initialize returned bounds var.
9287 (remap_gimple_stmt): Handle returned bounds.
9288 Return sequence of statements instead of a single statement.
9289 (insert_init_stmt): Add declaration.
9290 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
9291 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
9292 Properly handle bounds in va_arg_pack and va_arg_pack_len.
9293 (expand_call_inline): Handle returned bounds. Add bounds copy
9294 for generated mem to mem assignments.
9295 * tree-inline.h (copy_body_data): Add fields retbnd and
9297 * value-prof.c: Include tree-chkp.h.
9298 (gimple_ic): Support returned bounds.
9299 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9300 with "chkp ctor" and "bnd_legacy" attributes.
9301 (symtab_remove_unreachable_nodes): Keep initial values for
9302 pointer bounds to be used for checks eliminations.
9303 (process_references): Handle IPA_REF_CHKP.
9304 (walk_polymorphic_call_targets): Likewise.
9305 * ipa-visibility.c (cgraph_externally_visible_p): Mark
9306 instrumented 'main' as externally visible.
9307 (function_and_variable_visibility): Filter instrumentation
9309 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
9311 (cgraph_node): Add instrumented_version, orig_decl and
9312 instrumentation_clone fields.
9313 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
9314 (varpool_node): Add need_bounds_init field.
9315 (cgraph_local_p): New.
9316 * cgraph.c: Include tree-chkp.h.
9317 (cgraph_node::remove): Fix instrumented_version
9318 of the referenced node if any.
9319 (cgraph_node::dump): Dump instrumentation_clone and
9320 instrumented_version fields.
9321 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
9322 references and instrumentation thunks.
9323 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
9324 all not instrumented instrumentation clones alive.
9325 (cgraph_redirect_edge_call_stmt_to_callee): Support
9327 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
9329 (cgraph_rebuild_references): Likewise.
9330 * cgraphunit.c: Include tree-chkp.h.
9331 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
9333 (varpool_finalize_decl): Register statically initialized decls
9334 in Pointer Bounds Checker.
9335 (walk_polymorphic_call_targets): Do not mark generated call to
9336 __builtin_unreachable as with_bounds.
9337 (output_weakrefs): If there are both instrumented and original
9338 versions, output only one of them.
9339 (cgraph_node::expand_thunk): Set with_bounds flag
9340 for created call statement.
9341 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
9342 (ipa_ref): increase size of use field.
9343 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
9344 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
9345 (ctor_for_folding): Do not fold constant bounds vars.
9346 * lto-streamer.h (LTO_minor_version): Change minor version from
9348 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
9350 (lto_output_node): Output instrumentation_clone,
9351 thunk.add_pointer_bounds_args and orig_decl field.
9352 (lto_output_ref): Adjust to new ipa_ref::use field size.
9353 (input_overwrite_node): Read instrumentation_clone field.
9354 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
9356 (input_ref): Adjust to new ipa_ref::use field size.
9357 (input_cgraph_1): Compute instrumented_version fields and restore
9358 IDENTIFIER_TRANSPARENT_ALIAS chains.
9359 (lto_output_varpool_node): Output
9360 need_bounds_init value.
9361 (input_varpool_node): Read need_bounds_init value.
9362 * lto-partition.c (add_symbol_to_partition_1): Keep original
9363 and instrumented versions together.
9364 (privatize_symbol_name): Restore transparent alias chain if required.
9365 (add_references_to_partition): Add references to pointer bounds vars.
9366 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
9367 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
9368 (gen_type_die_with_usage): Skip pointer bounds.
9369 (dwarf2out_global_decl): Likewise.
9370 (is_base_type): Support POINTER_BOUNDS_TYPE.
9371 (gen_formal_types_die): Skip pointer bounds.
9372 (gen_decl_die): Likewise.
9373 * var-tracking.c (vt_add_function_parameters): Skip
9375 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
9377 (sem_variable::merge): Reset need_bounds_init flag.
9378 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
9380 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9381 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9382 (TARGET_LOAD_RETURNED_BOUNDS): New.
9383 (TARGET_STORE_RETURNED_BOUNDS): New.
9384 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9385 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9386 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9387 (TARGET_CHKP_BOUND_TYPE): New.
9388 (TARGET_CHKP_BOUND_MODE): New.
9389 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9390 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9391 * doc/tm.texi: Regenerated.
9392 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9395 * doc/invoke.texi (-mmpx): New.
9397 (chkp-max-ctor-size): New.
9398 * config/i386/constraints.md (w): New.
9401 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9402 * config/i386/i386-modes.def (BND32): New.
9404 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9405 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
9406 (regclass_map): Add bound registers.
9407 (dbx_register_map): Likewise.
9408 (dbx64_register_map): Likewise.
9409 (svr4_dbx_register_map): Likewise.
9410 (isa_opts): Add -mmpx.
9412 (ix86_option_override_internal): Support MPX ISA.
9413 (ix86_conditional_register_usage): Support bound registers.
9414 (ix86_code_end): Add MPX bnd prefix.
9415 (output_set_got): Likewise.
9416 (print_reg): Avoid prefixes for bound registers.
9417 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9418 (ix86_print_operand_punct_valid_p): Likewise.
9419 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9421 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
9422 (ix86_class_likely_spilled_p): Add bound regs support.
9423 (ix86_hard_regno_mode_ok): Likewise.
9424 (x86_order_regs_for_local_alloc): Likewise.
9425 (ix86_bnd_prefixed_insn_p): New.
9426 (ix86_builtins): Add
9427 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
9428 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
9429 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
9430 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
9431 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
9432 IX86_BUILTIN_BNDUPPER.
9433 (builtin_isa): Add leaf_p and nothrow_p fields.
9434 (def_builtin): Initialize leaf_p and nothrow_p.
9435 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
9438 (bdesc_mpx_const): New.
9439 (ix86_init_mpx_builtins): New.
9440 (ix86_init_builtins): Call ix86_init_mpx_builtins.
9441 (ix86_emit_cmove): New.
9442 (ix86_emit_move_max): New.
9443 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
9444 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
9445 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
9446 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
9447 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
9448 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
9449 (ix86_function_value_bounds): New.
9450 (ix86_builtin_mpx_function): New.
9451 (ix86_get_arg_address_for_bt): New.
9452 (ix86_load_bounds): New.
9453 (ix86_store_bounds): New.
9454 (ix86_load_returned_bounds): New.
9455 (ix86_store_returned_bounds): New.
9456 (ix86_mpx_bound_mode): New.
9457 (ix86_make_bounds_constant): New.
9458 (ix86_initialize_bounds):
9459 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9460 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9461 (TARGET_LOAD_RETURNED_BOUNDS): New.
9462 (TARGET_STORE_RETURNED_BOUNDS): New.
9463 (TARGET_CHKP_BOUND_MODE): New.
9464 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9465 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9466 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9467 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9468 (ix86_option_override_internal): Do not
9469 support x32 with MPX.
9470 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
9472 (function_arg_advance_32): Return number of used integer
9474 (function_arg_advance_64): Likewise.
9475 (function_arg_advance_ms_64): Likewise.
9476 (ix86_function_arg_advance): Handle pointer bounds.
9477 (ix86_function_arg): Likewise.
9478 (ix86_function_value_regno_p): Mark fisrt bounds registers as
9479 possible function value.
9480 (ix86_function_value_1): Handle pointer bounds type/mode
9481 (ix86_return_in_memory): Likewise.
9482 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
9483 (ix86_expand_call): Generate returned bounds.
9484 (ix86_setup_incoming_vararg_bounds): New.
9485 (ix86_va_start): Initialize bounds for pointers in va_list.
9486 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9487 * config/i386/i386.h (TARGET_MPX): New.
9488 (TARGET_MPX_P): New.
9489 (FIRST_PSEUDO_REGISTER): Fix to new value.
9490 (FIXED_REGISTERS): Add bound registers.
9491 (CALL_USED_REGISTERS): Likewise.
9492 (REG_ALLOC_ORDER): Likewise.
9493 (HARD_REGNO_NREGS): Likewise.
9494 (VALID_BND_REG_MODE): New.
9495 (FIRST_BND_REG): New.
9496 (LAST_BND_REG): New.
9497 (reg_class): Add BND_REGS.
9498 (REG_CLASS_NAMES): Likewise.
9499 (REG_CLASS_CONTENTS): Likewise.
9501 (ANY_BND_REG_P): New.
9503 (HI_REGISTER_NAMES): Add bound registers.
9504 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
9506 * config/i386/i386.md (UNSPEC_BNDMK): New.
9507 (UNSPEC_BNDMK_ADDR): New.
9508 (UNSPEC_BNDSTX): New.
9509 (UNSPEC_BNDLDX): New.
9510 (UNSPEC_BNDLDX_ADDR): New.
9511 (UNSPEC_BNDCL): New.
9512 (UNSPEC_BNDCU): New.
9513 (UNSPEC_BNDCN): New.
9514 (UNSPEC_MPX_FENCE): New.
9515 (UNSPEC_SIZEOF): New.
9518 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9519 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9520 (prefix_rep): Check for bnd prefix.
9521 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9522 (length_nobnd): New.
9523 (length): Use length_nobnd when specified.
9524 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9529 (*jcc_1): Add MPX bnd prefix.
9532 (*indirect_jump): Likewise.
9533 (*tablejump_1): Likewise.
9534 (simple_return_internal): Likewise.
9535 (simple_return_internal_long): Likewise.
9536 (simple_return_pop_internal): Likewise.
9537 (simple_return_indirect_internal): Likewise.
9541 (*mov<mode>_internal_mpx): New.
9542 (<mode>_<bndcheck>): New.
9543 (*<mode>_<bndcheck>): New.
9548 move_size_reloc_<mode>): New.
9549 * config/i386/predicates.md (address_mpx_no_base_operand): New.
9550 (address_mpx_no_index_operand): New.
9551 (bnd_mem_operator): New.
9552 (symbol_operand): New.
9553 (x86_64_immediate_size_operand): New.
9554 * config/i386/i386.opt (mmpx): New.
9555 * config/i386/i386-builtin-types.def (BND): New.
9557 (BND_FTYPE_PCVOID_ULONG): New.
9558 (VOID_FTYPE_BND_PCVOID): New.
9559 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
9560 (BND_FTYPE_PCVOID_PCVOID): New.
9561 (BND_FTYPE_PCVOID): New.
9562 (BND_FTYPE_BND_BND): New.
9563 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
9564 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
9565 (ULONG_FTYPE_VOID): New.
9566 (PVOID_FTYPE_BND): New.
9568 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
9570 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
9571 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
9572 pass_cleanup_barriers, pass_delay_slots,
9573 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
9574 pass_shorten_branches, pass_est_nothrow_function_flags,
9575 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
9576 into pass_late_compilation.
9577 (pass_late_compilation): Add.
9578 * passes.c (pass_data_late_compilation, pass_late_compilation,
9579 make_pass_late_compilation): New.
9580 * timevar.def (TV_LATE_COMPILATION): New.
9582 * target.def (omit_struct_return_reg): New data hook.
9583 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
9584 * doc/tm.texi: Regenerate.
9585 * function.c (expand_function_end): Use it.
9587 * target.def (no_register_allocation): New data hook.
9588 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
9589 * doc/tm.texi: Regenerate.
9590 * ira.c (gate_ira): New function.
9591 (pass_data_ira): Set has_gate.
9592 (pass_ira): Add a gate function.
9593 (pass_data_reload): Likewise.
9594 (pass_reload): Add a gate function.
9596 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
9597 no register allocation happens on the target and return.
9598 * final.c (alter_subreg): Ensure register is not a pseudo before
9599 calling simplify_subreg.
9600 (output_operand): Assert that x isn't a pseudo only if doing
9601 register allocation.
9603 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
9606 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
9609 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
9611 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
9612 * rtl.h (SUBREG_P): New macro added.
9614 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
9616 * config/aarch64/aarch64-builtins.c
9617 (aarch64_build_scalar_type): Remove.
9618 (aarch64_scalar_builtin_types, aarch64_simd_type,
9619 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
9620 aarch64_mangle_builtin_vector_type,
9621 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
9622 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
9623 aarch64_init_simd_builtin_types,
9624 aarch64_init_simd_builtin_scalar_types): New.
9625 (aarch64_init_simd_builtins): Refactor.
9626 (aarch64_init_crc32_builtins): Fixup with qualifier.
9627 * config/aarch64/aarch64-protos.h
9628 (aarch64_mangle_builtin_type): Export.
9629 * config/aarch64/aarch64-simd-builtin-types.def: New.
9630 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
9631 (aarch64_mangle_type): Refactor.
9632 * config/aarch64/arm_neon.h: Declare vector types based on
9634 * config/aarch64/t-aarch64: Update dependency.
9636 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
9638 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
9639 atomic_update_decl): Guard declaration with #ifdef.
9641 2014-11-04 Marek Polacek <polacek@redhat.com>
9643 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
9645 2014-11-04 Marek Polacek <polacek@redhat.com>
9647 * Makefile.in (OBJS): Add sanopt.o.
9648 (GTFILES): Add sanopt.c.
9649 * asan.h (asan_expand_check_ifn): Declare.
9650 * asan.c (asan_expand_check_ifn): No longer static.
9651 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
9652 * sanopt.c: ...here. New file.
9654 2014-11-04 Jiong Wang <jiong.wang@arm.com>
9655 Wilco Dijkstra <wilco.dijkstra@arm.com>
9658 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
9661 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
9663 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
9664 also verify that mode is equal to the mode of op0.
9666 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
9667 emit into a sequence instead.
9669 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9671 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
9673 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9675 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
9676 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
9677 (reduc_smax_<mode> *2): Rename to...
9678 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
9679 (reduc_umin_<mode> *2): Rename to...
9680 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
9681 (reduc_umax_<mode> *2): Rename to...
9682 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
9684 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9686 config/arm/neon.md (reduc_plus_*): Rename to...
9687 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
9689 2014-11-04 Michael Collison <michael.collison@linaro.org>
9691 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
9692 to support constraints for CONST_INT in atomic operations.
9693 * config/aarch64/atomics.md
9694 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
9695 (atomic_nand<mode>): Likewise.
9696 (atomic_fetch_<atomic_optab><mode>): Likewise.
9697 (atomic_fetch_nand<mode>): Likewise.
9698 (atomic_<atomic_optab>_fetch<mode>): Likewise.
9699 (atomic_nand_fetch<mode>): Likewise.
9701 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9703 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
9704 of __ARM_FEATURE_IDIV.
9706 2014-11-04 Marek Polacek <polacek@redhat.com>
9708 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
9710 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9712 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
9714 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
9717 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9718 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9719 Allow CC mode if HAVE_cbranchcc4.
9721 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9723 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
9724 with -fdump-go-spec. Anonymous substructures are now flattened and
9725 replaced by their fields (record) or the first named, non-bitfield
9728 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9730 * input.c (expand_location_to_spelling_point): Fix typo.
9731 (expansion_point_location_if_in_system_header): Fix comment.
9733 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9735 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
9737 2014-11-03 Richard Biener <rguenther@suse.de>
9739 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
9740 like ordinary operations.
9741 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
9744 2014-11-03 Joseph Myers <joseph@codesourcery.com>
9746 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
9748 * configure, config.h.in: Regenerate.
9749 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
9750 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9751 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9752 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
9753 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9754 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9755 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
9756 (atomic_update_decl): New static variables.
9757 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
9758 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
9759 and __atomic_feupdateenv for soft-float and no-FPRs.
9761 2014-11-03 Richard Biener <rguenther@suse.de>
9763 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
9764 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
9765 * fold-const.c (fold_unary_loc): Remove them here.
9766 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9767 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
9768 GIMPLE_UNARY_RHS case.
9769 (gimple_fold_stmt_to_constant_1): Likewise.
9770 (replace_stmt_with_simplification): Fix inverted comparison.
9772 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9774 PR tree-optimization/60770
9775 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
9776 statement should be removed.
9777 (maybe_register_def): Likewise. Replace clobbers with default
9779 (rewrite_dom_walker::before_dom_children): Remove statement if
9780 rewrite_update_stmt says so.
9781 * tree-ssa-live.c: Include tree-ssa.h.
9782 (set_var_live_on_entry): Do not mark undefined variables as live.
9783 (verify_live_on_entry): Do not check undefined variables.
9784 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
9785 of partially undefined variables.
9786 * tree-ssa.c (ssa_undefined_value_p): Likewise.
9787 (execute_update_addresses_taken): Do not drop clobbers.
9789 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9791 PR tree-optimization/63666
9792 * fold-const.c: Include "optabs.h".
9793 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
9794 can_vec_perm_p permutation to one that is not.
9796 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9798 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
9800 2014-11-03 Andrew Pinski <apinski@cavium.com>
9802 * config/mips/mips-cpus.def (octeon3): New cpu.
9803 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
9804 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
9805 of the comparison no longer matches mode of the operands.
9806 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
9807 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
9808 (TARGET_OCTEON2): Likewise.
9809 (TUNE_OCTEON): Add Octeon3.
9810 * config/mips/mips.md (processor): Add octeon3.
9811 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
9812 (octeon_arith): Add octeon3.
9813 (octeon_condmove): Remove.
9814 (octeon_condmove_o1): New reservation.
9815 (octeon_condmove_o2): New reservation.
9816 (octeon_condmove_o3_int_on_cc): New reservation.
9817 (octeon_load_o2): Add octeon3.
9818 (octeon_cop_o2): Likewise.
9819 (octeon_store): Likewise.
9820 (octeon_brj_o2): Likewise.
9821 (octeon_imul3_o2): Likewise.
9822 (octeon_imul_o2): Likewise.
9823 (octeon_mfhilo_o2): Likewise.
9824 (octeon_imadd_o2): Likewise.
9825 (octeon_idiv_o2_si): Likewise.
9826 (octeon_idiv_o2_di): Likewise.
9827 (octeon_fpu): Add to the automaton.
9828 (octeon_fpu): New cpu unit.
9829 (octeon_condmove_o2): Check for non floating point modes.
9830 (octeon_load_o2): Add prefetchx.
9831 (octeon_cop_o2): Don't check for octeon3.
9832 (octeon3_faddsubcvt): New reservation.
9833 (octeon3_fmul): Likewise.
9834 (octeon3_fmadd): Likewise.
9835 (octeon3_div_sf): Likewise.
9836 (octeon3_div_df): Likewise.
9837 (octeon3_sqrt_sf): Likewise.
9838 (octeon3_sqrt_df): Likewise.
9839 (octeon3_rsqrt_sf): Likewise.
9840 (octeon3_rsqrt_df): Likewise.
9841 (octeon3_fabsnegmov): Likewise.
9842 (octeon_fcond): Likewise.
9843 (octeon_fcondmov): Likewise.
9844 (octeon_fpmtc1): Likewise.
9845 (octeon_fpmfc1): Likewise.
9846 (octeon_fpload): Likewise.
9847 (octeon_fpstore): Likewise.
9848 * config/mips/mips-tables.opt: Regenerate.
9849 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
9851 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9853 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9854 Allow CC mode if HAVE_cbranchcc4.
9856 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9858 * config/arc/arc.c (write_ext_corereg_1): Delete.
9859 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
9861 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9863 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
9864 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
9866 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9868 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
9869 (small_data_pattern_1): Delete.
9870 (small_data_pattern): Use FOR_EACH_SUBRTX.
9872 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9874 * config/arc/arc.c: Include rtl-iter.h.
9875 (arc_rewrite_small_data_1): Delete.
9876 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
9878 2014-11-02 Michael Collison <michael.collison@linaro.org>
9880 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
9881 to support vector modes.
9882 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9884 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
9886 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
9887 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
9888 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
9889 * optabs.c: (gen_move_insn): Move to expr.c.
9890 * expr.h: Move protypes and enums to optabs.h.
9891 * expr.c: (gen_move_insn): Relocate from optabs.c.
9892 * genemit.c (main): Include insn-codes.h.
9893 * gengtype.c (open_base_files): Include insn-codes.h.
9894 * asan.c: Include insn-codes.h.
9895 * bb-reorder.c: Ditto.
9896 * builtins.c: Ditto.
9898 * cfgexpand.c: Ditto.
9899 * cilk-common.c: Ditto.
9906 * function.c: Ditto.
9908 * internal-fn.c: Ditto.
9909 * loop-unroll.c: Ditto.
9911 * modulo-sched.c: Ditto.
9913 * postreload.c: Ditto.
9917 * shrink-wrap.c: Ditto.
9918 * simplify-rtx.c: Ditto.
9920 * target-globals.c: Ditto.
9921 * targhooks.c: Ditto.
9923 * tree-if-conv.c: Ditto.
9924 * tree-ssa-forwprop.c: Ditto.
9925 * tree-ssa-loop-prefetch.c: Ditto.
9926 * tree-ssa-math-opts.c: Ditto.
9927 * tree-ssa-phiopt.c: Ditto.
9928 * tree-ssa-reassoc.c: Ditto.
9929 * tree-switch-conversion.c: Ditto.
9930 * tree-vect-data-refs.c: Ditto.
9931 * tree-vect-generic.c: Ditto.
9932 * tree-vect-loop.c: Ditto.
9933 * tree-vect-patterns.c: Ditto.
9934 * tree-vect-slp.c: Ditto.
9935 * tree-vect-stmts.c: Ditto.
9936 * tree-vrp.c: Ditto.
9937 * value-prof.c: Ditto.
9938 * config/aarch64/aarch64-builtins.c: Ditto.
9939 * config/alpha/alpha.c: Ditto.
9940 * config/arm/arm.c: Ditto.
9941 * config/cris/cris.c: Ditto.
9942 * config/epiphany/epiphany.c: Ditto.
9943 * config/frv/frv.c: Ditto.
9944 * config/h8300/h8300.c: Ditto.
9945 * config/ia64/ia64.c: Ditto.
9946 * config/iq2000/iq2000.c: Ditto.
9947 * config/m32c/m32c.c: Ditto.
9948 * config/mep/mep.c: Ditto.
9949 * config/microblaze/microblaze.c: Ditto.
9950 * config/mips/mips.c: Ditto.
9951 * config/mn10300/mn10300.c: Ditto.
9952 * config/moxie/moxie.c: Ditto.
9953 * config/msp430/msp430.c: Ditto.
9954 * config/nios2/nios2.c: Ditto.
9955 * config/pa/pa.c: Ditto.
9956 * config/rl78/rl78.c: Ditto.
9957 * config/rs6000/rs6000.c: Ditto.
9958 * config/rx/rx.c: Ditto.
9959 * config/s390/s390.c: Ditto.
9960 * config/sh/sh.c: Ditto.
9961 * config/sh/sh_treg_combine.cc: Ditto.
9962 * config/spu/spu.c: Ditto.
9963 * config/stormy16/stormy16.c: Ditto.
9964 * config/tilegx/mul-tables.c: Ditto.
9965 * config/tilegx/tilegx.c: Ditto.
9966 * config/tilepro/mul-tables.c: Ditto.
9967 * config/tilepro/tilepro.c: Ditto.
9968 * config/vax/vax.c: Ditto.
9970 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9972 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
9973 (CLEAR_BY_PIECES_P): Likewise.
9974 (SET_BY_PIECES_P): Likewise.
9975 (STORE_BY_PIECES_P): Likewise.
9976 * doc/tm.texi: Regenerate.
9977 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
9978 SET_BY_PIECES_P, STORE_BY_PIECES_P.
9979 * expr.c (MOVE_BY_PIECES_P): Remove.
9980 (CLEAR_BY_PIECES_P): Likewise.
9981 (SET_BY_PIECES_P): Likewise.
9982 (STORE_BY_PIECES_P): Likewise.
9983 (can_move_by_pieces): Rewrite in terms of
9984 targetm.use_by_pieces_infrastructure_p.
9985 (emit_block_move_hints): Likewise.
9986 (can_store_by_pieces): Likewise.
9987 (store_by_pieces): Likewise.
9988 (clear_storage_hints): Likewise.
9989 (emit_push_insn): Likewise.
9990 (expand_constructor): Likewise.
9992 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
9994 * config/aarch64/aarch64.c
9995 (aarch64_use_by_pieces_infrastructre_p): New.
9996 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
9997 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
9999 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10001 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
10002 (STORE_BY_PIECES_P): Likewise.
10003 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10004 (mips_move_by_pieces_p): Rename to...
10005 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
10006 parameters, use the default hook implementation as a
10009 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10011 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10012 (sh_use_by_pieces_infrastructure_p): Likewise.
10013 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
10014 (STORE_BY_PIECES_P): Likewise.
10015 (SET_BY_PIECES_P): Likewise.
10017 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10019 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10020 (arc_use_by_pieces_infrastructure_p): Likewise.
10021 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
10022 (CAN_MOVE_BY_PIECES): Likewise.
10024 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10026 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
10027 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
10028 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
10029 (CLEAR_BY_PIECES): Likewise.
10030 (SET_BY_PIECES): Likewise.
10031 (STORE_BY_PIECES): Likewise.
10033 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10035 * target.def (use_by_pieces_infrastructure_p): New.
10036 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
10038 (STORE_BY_PIECES_P): Likewise.
10039 (CLEAR_BY_PIECES_P): Likewise.
10040 (SET_BY_PIECES_P): Likewise.
10041 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
10042 * doc/tm.texi: Regenerate.
10043 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
10044 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
10045 (STORE_BY_PIECES_P): Likewise.
10046 (CLEAR_BY_PIECES_P): Likewise.
10047 (SET_BY_PIECES_P): Likewise.
10048 (STORE_MAX_PIECES): Move to...
10049 * defaults.h (STORE_MAX_PIECES): ...here.
10050 * targhooks.c (get_move_ratio): New.
10051 (default_use_by_pieces_infrastructure_p): Likewise.
10052 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
10053 * target.h (by_pieces_operation): New.
10055 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10058 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
10059 assignment to 'nargs' variable.
10061 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10064 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
10065 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
10066 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
10067 be reloaded through memory.
10071 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10073 PR rtl-optimization/63659
10074 * ree.c (update_reg_equal_equiv_notes): New function.
10075 (combine_set_extension, transform_ifelse): Use it.
10077 2014-10-31 Jeff Law <law@redhat.com>
10079 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
10080 and Jonny Grant (collect2).
10082 2014-10-31 Richard Biener <rguenther@suse.de>
10084 * builtins.c (fold_builtin_atomic_always_lock_free): Use
10085 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
10087 (fold_builtin_expect): Likewise.
10088 (integer_valued_real_p): Likewise.
10089 * cfgexpand.c (expand_debug_expr): Likewise.
10090 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
10091 (find_foldable_builtin_expect): Likewise.
10092 * trans-mem.c (thread_private_new_memory): Likewise.
10093 * tree-affine.c (aff_combination_expand): Likewise.
10094 * tree-data-ref.c (initialize_matrix_A): Likewise.
10095 * tree-inline.c (copy_bb): Likewise.
10096 * tree-pretty-print.c (dump_function_name): Likewise.
10097 (print_call_name): Likewise.
10098 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
10099 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
10100 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10101 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
10102 (vect_recog_widen_mult_pattern): Likewise.
10103 (vect_operation_fits_smaller_type): Likewise.
10104 * tree-vrp.c (find_assert_locations_1): Likewise.
10105 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10106 converts to NOP_EXPR.
10108 2014-10-31 Richard Biener <rguenther@suse.de>
10110 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
10111 CONVERT_EXPRs in generated code.
10112 (dt_simplify::gen): Likewise.
10114 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
10117 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
10118 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
10119 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
10120 using mcount in 32bit PIC mode.
10121 (ix86_elim_entry_set_got): New.
10122 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
10123 in PROLOGUE, delete initial if possible.
10125 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
10127 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
10128 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
10130 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10132 PR tree-optimization/63259
10133 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
10134 rotation left if it is a 16 bit byte swap.
10135 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
10136 and RROTATE_EXPR statements if it is a byte rotation.
10138 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10141 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
10142 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
10143 instead of vr0.min - vr1.min and vr0.max - vr1.max.
10145 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
10148 * ipa-icf.c (sem_function::~sem_function): Change free to delete
10149 to avoid alloc-dealloc mismatch with new, called in
10150 ipa_icf::sem_function::init.
10152 2014-10-30 Felix Yang <felix.yang@huawei.com>
10154 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
10155 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
10156 (xtensa_reorg, xtensa_reorg_loops): New.
10157 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
10158 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
10159 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
10160 (xtensa_doloop_hooks): Define.
10161 * config/xtensa/xtensa.md (doloop_end, loop_end): New
10162 (zero_cost_loop_start): Rewritten.
10163 (zero_cost_loop_end): Likewise.
10165 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
10167 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
10169 2014-10-30 Richard Biener <rguenther@suse.de>
10171 * genmatch.c: Remove <map>, <utility> and <string> includes.
10172 Include ggc.h and hash-map.h.
10173 (ggc_internal_cleared_alloc): Provide stub definition.
10174 (ggc_free): Likewise.
10175 (struct capture_id_map_hasher): New traits for hash_map.
10176 (cid_map_t): New typedef.
10177 (everywhere else): Replace std::map use with cid_map_t.
10178 * hash-map.h (hash_map::elements): New member function.
10179 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
10180 hash-map.h and $(GGC_H) as dependency.
10182 2014-10-30 Richard Biener <rguenther@suse.de>
10184 * genmatch.c (capture_info::walk_c_expr): Ignore capture
10185 uses inside TREE_TYPE ().
10186 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
10187 (find_candidates_dom_walker::before_dom_children): Likewise.
10188 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
10189 (replace_profitable_candidates): Likewise.
10190 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10191 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
10192 * convert.c (convert_to_integer): Use CASE_CONVERT.
10194 2014-10-30 Richard Biener <rguenther@suse.de>
10196 * match.pd: Implement more patterns that simplify to a single value.
10197 * fold-const.c (fold_binary_loc): Remove them here.
10198 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
10199 (fwprop_ssa_val): Remove restriction on single uses.
10201 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10203 * config/avr/driver-avr.c (avr_set_current_device): Remove.
10205 2014-10-30 Martin Liska <mliska@suse.cz>
10209 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
10210 (func_checker::compare_gimple_label): Simlified comparison introduced.
10211 * ipa-icf-gimple.h: Missing comment added.
10213 2014-10-30 Jeff Law <law@redhat.com>
10215 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
10216 argument from rtx to rtx_insn *.
10217 (compute_movmem_length, compute_clrmem_length): Likewise.
10218 (copy_fp_args, length_fp_args): Likewise.
10219 * config/pa/pa.c (legitimize_pic_address): Promote local variable
10220 "insn" from rtx to rtx_insn *.
10221 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
10222 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
10223 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
10224 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
10225 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
10226 (compute_movmem_length, compute_clrmem_length): Likewise.
10227 (copy_fp-args, length_fp_args): Likewise.
10229 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10231 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
10233 (CUMULATIVE_ARGS): Guard against target includes.
10234 (machine_function): Likewise.
10236 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10238 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
10239 recog state after aarch64_prev_real_insn call.
10241 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10243 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
10245 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10247 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
10248 (struct machine_function): Gate definition on
10249 !defined(USED_FOR_TARGET).
10251 2014-10-29 DJ Delorie <dj@redhat.com>
10253 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
10255 2014-10-29 Martin Liska <mliska@suse.cz>
10258 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
10259 to local declarations.
10260 * function.c (add_local_decl): Implementation moved from header
10261 file, assert introduced for tree type.
10262 * function.h: Likewise.
10264 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10266 * godump.c (go_format_type): Represent "float _Complex" and
10267 "double _Complex" as complex64 or complex128 in Go, as appropriate.
10269 2014-10-29 Richard Biener <rguenther@suse.de>
10271 * match.pd: Implement a first set of conversion patterns.
10272 * fold-const.c (fold_unary_loc): Remove them here.
10273 * tree-ssa-forwprop.c (simplify_vce): Remove.
10274 (pass_forwprop::execute): Do not call simplify_vce.
10276 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10278 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
10279 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
10280 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
10281 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
10282 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
10283 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
10284 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
10285 config/arc/arc.h, config/arc/predicates.md,
10286 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
10287 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10288 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
10289 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
10290 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
10291 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
10292 config/cr16/cr16-protos.h, config/cr16/cr16.c,
10293 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
10294 config/darwin-protos.h, config/darwin.c,
10295 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
10296 config/epiphany/epiphany.md, config/fr30/fr30.c,
10297 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
10298 config/h8300/h8300-protos.h, config/h8300/h8300.c,
10299 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
10300 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
10301 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
10302 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
10303 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
10304 config/lm32/lm32-protos.h, config/lm32/lm32.c,
10305 config/m32c/m32c-protos.h, config/m32c/m32c.c,
10306 config/m32r/m32r-protos.h, config/m32r/m32r.c,
10307 config/m68k/m68k-protos.h, config/m68k/m68k.c,
10308 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10309 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
10310 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
10311 config/mips/mips-protos.h, config/mips/mips.c,
10312 config/mmix/mmix-protos.h, config/mmix/mmix.c,
10313 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
10314 config/moxie/moxie.c, config/msp430/msp430-protos.h,
10315 config/msp430/msp430.c, config/nds32/nds32-cost.c,
10316 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
10317 config/nds32/nds32-protos.h, config/nds32/nds32.c,
10318 config/nios2/nios2-protos.h, config/nios2/nios2.c,
10319 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
10320 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
10321 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
10322 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10323 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
10324 config/s390/predicates.md, config/s390/s390-protos.h,
10325 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
10326 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
10327 config/sh/sh.md, config/sparc/predicates.md,
10328 config/sparc/sparc-protos.h, config/sparc/sparc.c,
10329 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
10330 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10331 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
10332 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
10333 config/tilepro/tilepro.c, config/v850/v850-protos.h,
10334 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
10335 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
10336 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
10337 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
10338 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
10339 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
10340 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
10341 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
10342 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
10343 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
10344 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
10345 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
10346 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
10347 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
10348 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
10349 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
10350 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
10351 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
10352 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
10353 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
10354 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
10355 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
10356 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
10357 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
10358 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
10359 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
10360 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
10361 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
10362 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
10363 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
10364 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
10365 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
10366 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
10367 var-tracking.c, varasm.c: Remove redundant enum from
10369 * gengtype.c (main): Treat machine_mode as a scalar typedef.
10370 * genmodes.c (emit_insn_modes_h): Hide inline functions if
10373 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10375 PR rtl-optimization/63340 (part 2)
10376 * rtl.h (invalid_mode_change_p): Delete.
10377 (valid_mode_changes_for_regno): New function.
10378 * reginfo.c (invalid_mode_change_p): Delete.
10379 (valid_mode_changes_for_regno): New function.
10380 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
10381 classes to registers that are allowed by valid_mode_changes_for_regno.
10382 (setup_regno_cost_classes_by_mode): Likewise.
10383 (print_allocno_costs): Remove invalid_mode_change_p test.
10384 (print_pseudo_costs, find_costs_and_classes): Likewise.
10386 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10388 PR rtl-optimization/63340 (part 1)
10389 * ira-costs.c (all_cost_classes): New variable.
10390 (complete_cost_classes): New function, split out from...
10391 (setup_cost_classes): ...here.
10392 (initiate_regno_cost_classes): Set up all_cost_classes.
10393 (restrict_cost_classes): New function.
10394 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
10395 registers that are valid for the register's mode.
10396 (setup_regno_cost_classes_by_mode): Model the mode cache as a
10397 restriction of all_cost_classes to a particular mode.
10398 (print_allocno_costs): Remove contains_reg_of_mode check.
10399 (print_pseudo_costs, find_costs_and_classes): Likewise.
10401 2014-10-29 Richard Biener <rguenther@suse.de>
10403 PR tree-optimization/63666
10404 * tree-vect-slp.c (vect_get_mask_element): Properly handle
10405 accessing out-of-bound elements.
10407 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10408 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10409 Anna Tikhonova <anna.tikhonova@intel.com>
10410 Ilya Tocar <ilya.tocar@intel.com>
10411 Andrey Turetskiy <andrey.turetskiy@intel.com>
10412 Ilya Verbin <ilya.verbin@intel.com>
10413 Kirill Yukhin <kirill.yukhin@intel.com>
10414 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10416 * config/i386/i386.md
10417 (movhi_internal): Always detect maskmov.
10418 (movqi_internal): Fix target check.
10420 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10421 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10422 Anna Tikhonova <anna.tikhonova@intel.com>
10423 Ilya Tocar <ilya.tocar@intel.com>
10424 Andrey Turetskiy <andrey.turetskiy@intel.com>
10425 Ilya Verbin <ilya.verbin@intel.com>
10426 Kirill Yukhin <kirill.yukhin@intel.com>
10427 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10429 * config/i386/avx512bwintrin.h: Add new intrinsics.
10430 * config/i386/avx512vlbwintrin.h: Ditto.
10431 * config/i386/avx512vlintrin.h: Ditto.
10433 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10435 * godump.c (precision_to_units): New helper function.
10436 (go_append_artificial_name): Ditto.
10437 (go_append_decl_name): Ditto.
10438 (go_append_bitfield): Ditto.
10439 (go_get_uinttype_for_precision): Ditto.
10440 (go_append_padding): Ditto.
10441 (go_force_record_alignment): Ditto.
10442 (go_format_type): Represent unions with an array of uints of the size
10443 of the alignment in go. This fixes the 'random' size of the union's
10444 representation using just the first field.
10445 (go_format_type): Add argument that indicates whether a record is
10446 nested (used for generation of artificial go names).
10447 (go_output_fndecl): Adapt to new go_format_type signature.
10448 (go_output_typedef): Ditto.
10449 (go_output_var): Ditto.
10450 (go_output_var): Prefer to output type as alias (typedef).
10451 (go_format_type): Bitfields in records are simulated as arrays of bytes
10454 * godump.c (go_format_type): Fix handling of arrays with zero elements.
10456 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
10458 * cgraph.h: Flatten. Remove all include files.
10459 (symbol_table::initialize): Move to cgraph.c.
10460 * cgraph.c: Adjust include files.
10461 (symbol_table::initialize): Relocate from cgraph.h.
10462 * gengtype.c (open_base_files): Adjust include files.
10463 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
10465 * ipa-inline.h: Remove all include files.
10466 * ipa-prop.h: Ditto.
10467 * ipa-reference.h: Ditto.
10468 * ipa-utils.h: Ditto:
10469 * lto-streamer.h: Remove cgraph.h from include list.
10470 * asan.c: Adjust include files.
10471 * auto-profile.c: Ditto.
10472 * bb-reorder.c: Ditto.
10474 * cfgexpand.c: Ditto.
10475 * cgraphbuild.c: Ditto.
10476 * cgraphclones.c: Ditto.
10477 * cgraphunit.c: Ditto.
10478 * combine.c: Ditto.
10479 * coverage.c: Ditto.
10480 * data-streamer.c: Ditto.
10481 * data-streamer-in.c: Ditto.
10482 * data-streamer-out.c: Ditto.
10484 * dwarf2out.c: Ditto.
10488 * fold-const.c: Ditto.
10489 * ggc-page.c: Ditto.
10490 * gimple-fold.c: Ditto.
10491 * gimple-iterator.c: Ditto.
10492 * gimple-pretty-print.c: Ditto.
10493 * gimple-streamer-in.c: Ditto.
10494 * gimple-streamer-out.c: Ditto.
10495 * gimplify.c: Ditto.
10497 * ipa-comdats.c: Ditto.
10499 * ipa-devirt.c: Ditto.
10500 * ipa-icf.c: Ditto.
10501 * ipa-icf-gimple.c: Ditto.
10502 * ipa-inline-analysis.c: Ditto.
10503 * ipa-inline.c: Ditto.
10504 * ipa-inline-transform.c: Ditto.
10505 * ipa-polymorphic-call.c: Ditto.
10506 * ipa-profile.c: Ditto.
10507 * ipa-prop.c: Ditto.
10508 * ipa-pure-const.c: Ditto.
10509 * ipa-ref.c: Ditto.
10510 * ipa-reference.c: Ditto.
10511 * ipa-split.c: Ditto.
10512 * ipa-utils.c: Ditto.
10513 * ipa-visibility.c: Ditto.
10514 * langhooks.c: Ditto.
10515 * lto-cgraph.c: Ditto.
10516 * lto-compress.c: Ditto.
10517 * lto-opts.c: Ditto.
10518 * lto-section-in.c: Ditto.
10519 * lto-section-out.c: Ditto.
10520 * lto-streamer.c: Ditto.
10521 * lto-streamer-in.c: Ditto.
10522 * lto-streamer-out.c: Ditto.
10523 * omp-low.c: Ditto.
10524 * opts-global.c: Ditto.
10526 * predict.c: Ditto.
10527 * print-tree.c: Ditto.
10528 * profile.c: Ditto.
10530 * stor-layout.c: Ditto.
10533 * trans-mem.c: Ditto.
10535 * tree-cfg.c: Ditto.
10536 * tree-eh.c: Ditto.
10537 * tree-emutls.c: Ditto.
10538 * tree-inline.c: Ditto.
10539 * tree-nested.c: Ditto.
10540 * tree-pretty-print.c: Ditto.
10541 * tree-profile.c: Ditto.
10542 * tree-sra.c: Ditto.
10543 * tree-ssa-alias.c: Ditto.
10544 * tree-ssa-loop-ivcanon.c: Ditto.
10545 * tree-ssa-loop-ivopts.c: Ditto.
10546 * tree-ssa-pre.c: Ditto.
10547 * tree-ssa-structalias.c: Ditto.
10548 * tree-streamer.c: Ditto.
10549 * tree-streamer-in.c: Ditto.
10550 * tree-streamer-out.c: Ditto.
10551 * tree-switch-conversion.c: Ditto.
10552 * tree-tailcall.c: Ditto.
10553 * tree-vect-data-refs.c: Ditto.
10554 * tree-vectorizer.c: Ditto.
10555 * tree-vect-stmts.c: Ditto.
10558 * value-prof.c: Ditto.
10560 * varpool.c: Ditto.
10561 * config/arm/arm.c: Ditto.
10562 * config/bfin/bfin.c: Ditto.
10563 * config/c6x/c6x.c: Ditto.
10564 * config/cris/cris.c: Ditto.
10565 * config/darwin.c: Ditto.
10566 * config/darwin-c.c: Ditto.
10567 * config/i386/i386.c: Ditto.
10568 * config/i386/winnt.c: Ditto.
10569 * config/microblaze/microblaze.c: Ditto.
10570 * config/mips/mips.c: Ditto.
10571 * config/rs6000/rs6000.c: Ditto.
10572 * config/rx/rx.c: Ditto.
10574 2014-10-28 Richard Biener <rguenther@suse.de>
10576 * gimple-fold.h (follow_single_use_edges): Declare.
10577 * gimple-fold.c (follow_single_use_edges): New function.
10578 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
10579 * tree-ssa-propagate.c
10580 (substitute_and_fold_dom_walker::before_dom_children): Allow
10581 following single-use edges when folding stmts we propagated into.
10583 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10584 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10585 Anna Tikhonova <anna.tikhonova@intel.com>
10586 Ilya Tocar <ilya.tocar@intel.com>
10587 Andrey Turetskiy <andrey.turetskiy@intel.com>
10588 Ilya Verbin <ilya.verbin@intel.com>
10589 Kirill Yukhin <kirill.yukhin@intel.com>
10590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10592 * config/i386/avx512bwintrin.h: New.
10593 * config/i386/avx512dqintrin.h: Ditto.
10594 * config/i386/avx512vlbwintrin.h: Ditto.
10595 * config/i386/avx512vldqintrin.h: Ditto.
10596 * config/i386/avx512vlintrin.h: Ditto.
10597 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
10598 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
10600 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10601 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10602 Anna Tikhonova <anna.tikhonova@intel.com>
10603 Ilya Tocar <ilya.tocar@intel.com>
10604 Andrey Turetskiy <andrey.turetskiy@intel.com>
10605 Ilya Verbin <ilya.verbin@intel.com>
10606 Kirill Yukhin <kirill.yukhin@intel.com>
10607 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10609 * config/i386/i386.c
10610 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
10611 avx_shufpd256_mask, avx_vpermilv2df_mask.
10613 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10614 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10615 Anna Tikhonova <anna.tikhonova@intel.com>
10616 Ilya Tocar <ilya.tocar@intel.com>
10617 Andrey Turetskiy <andrey.turetskiy@intel.com>
10618 Ilya Verbin <ilya.verbin@intel.com>
10619 Kirill Yukhin <kirill.yukhin@intel.com>
10620 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10622 * config/i386/i386.c
10623 (ix86_init_mmx_sse_builtins):
10624 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
10625 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
10626 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
10627 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
10628 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
10629 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
10630 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
10631 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
10632 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
10633 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
10634 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
10635 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
10636 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
10637 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
10638 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
10639 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
10640 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
10641 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
10643 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10644 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10645 Anna Tikhonova <anna.tikhonova@intel.com>
10646 Ilya Tocar <ilya.tocar@intel.com>
10647 Andrey Turetskiy <andrey.turetskiy@intel.com>
10648 Ilya Verbin <ilya.verbin@intel.com>
10649 Kirill Yukhin <kirill.yukhin@intel.com>
10650 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10652 * config/i386/i386.c
10653 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
10654 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
10655 IX86_BUILTIN_GATHER3ALTDIV8SI.
10656 (ix86_expand_builtin):
10657 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
10658 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
10659 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
10660 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
10661 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10662 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
10663 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
10664 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
10665 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10666 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
10667 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
10668 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
10669 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
10670 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
10671 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
10672 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10673 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
10674 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
10675 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
10676 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
10678 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10680 Anna Tikhonova <anna.tikhonova@intel.com>
10681 Ilya Tocar <ilya.tocar@intel.com>
10682 Andrey Turetskiy <andrey.turetskiy@intel.com>
10683 Ilya Verbin <ilya.verbin@intel.com>
10684 Kirill Yukhin <kirill.yukhin@intel.com>
10685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10687 * config/i386/i386-builtin-types.def
10706 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
10707 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10708 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10709 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10710 (V16SF_FTYPE_V16HI): Ditto.
10711 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10712 (V16SF_FTYPE_V16SI): Ditto.
10713 (V4DI_FTYPE_V4DI): Ditto.
10714 (V16SI_FTYPE_V16SF): Ditto.
10715 (V8DI_FTYPE_PV2DI): Ditto.
10716 (V8DF_FTYPE_PV2DF): Ditto.
10717 (V4DI_FTYPE_PV2DI): Ditto.
10718 (V4DF_FTYPE_PV2DF): Ditto.
10719 (V16SI_FTYPE_PV2SI): Ditto.
10720 (V16SF_FTYPE_PV2SF): Ditto.
10721 (V8SF_FTYPE_FLOAT): Ditto.
10722 (V4SF_FTYPE_FLOAT): Ditto.
10723 (V4DF_FTYPE_DOUBLE): Ditto.
10724 (V8SF_FTYPE_PV4SF): Ditto.
10725 (V8SI_FTYPE_PV4SI): Ditto.
10726 (V4SI_FTYPE_PV2SI): Ditto.
10727 (V8SF_FTYPE_PV2SF): Ditto.
10728 (V8SI_FTYPE_PV2SI): Ditto.
10729 (V16SF_FTYPE_PV8SF): Ditto.
10730 (V16SI_FTYPE_PV8SI): Ditto.
10731 (V8DI_FTYPE_V8SF): Ditto.
10732 (V4DI_FTYPE_V4SF): Ditto.
10733 (V2DI_FTYPE_V4SF): Ditto.
10734 (V64QI_FTYPE_QI): Ditto.
10735 (V32HI_FTYPE_HI): Ditto.
10736 (V16UHI_FTYPE_V16UHI): Ditto.
10737 (V32UHI_FTYPE_V32UHI): Ditto.
10738 (V2UDI_FTYPE_V2UDI): Ditto.
10739 (V4UDI_FTYPE_V4UDI): Ditto.
10740 (V8UDI_FTYPE_V8UDI): Ditto.
10741 (V4USI_FTYPE_V4USI): Ditto.
10742 (V16USI_FTYPE_V16USI): Ditto.
10743 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10744 (V2DF_FTYPE_V8DF_INT): Ditto.
10745 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10746 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10747 (V8DF_FTYPE_V8DF_INT): Ditto.
10748 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10749 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10750 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10751 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10752 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10753 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10754 (V8DI_FTYPE_V8DI_INT): Ditto.
10755 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10756 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10757 (V8SF_FTYPE_V16SF_INT): Ditto.
10758 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10759 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10760 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10761 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
10762 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10763 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
10764 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
10765 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
10766 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10767 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10768 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10769 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
10770 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10771 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10772 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10773 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10774 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10775 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10776 (V32HI_FTYPE_V32HI_INT): Ditto.
10777 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10778 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10779 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10780 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10781 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10782 (V8SI_FTYPE_V16SI_INT): Ditto.
10783 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10784 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10785 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10786 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10787 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
10788 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
10789 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10790 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10791 (V8DI_FTYPE_V64QI_V64QI): Ditto.
10792 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10793 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10794 (V2DI_FTYPE_V8DI_INT): Ditto.
10795 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10796 (QI_FTYPE_QI): Ditto.
10797 (SI_FTYPE_SI): Ditto.
10798 (DI_FTYPE_DI): Ditto.
10799 (HI_FTYPE_V16QI): Ditto.
10800 (SI_FTYPE_V32QI): Ditto.
10801 (DI_FTYPE_V64QI): Ditto.
10802 (QI_FTYPE_V8HI): Ditto.
10803 (HI_FTYPE_V16HI): Ditto.
10804 (SI_FTYPE_V32HI): Ditto.
10805 (QI_FTYPE_V4SI): Ditto.
10806 (QI_FTYPE_V8SI): Ditto.
10807 (HI_FTYPE_V16SI): Ditto.
10808 (QI_FTYPE_V2DI): Ditto.
10809 (QI_FTYPE_V4DI): Ditto.
10810 (QI_FTYPE_V8DI): Ditto.
10811 (V16QI_FTYPE_HI): Ditto.
10812 (V32QI_FTYPE_SI): Ditto.
10813 (V64QI_FTYPE_DI): Ditto.
10814 (V8HI_FTYPE_QI): Ditto.
10815 (V16HI_FTYPE_HI): Ditto.
10816 (V32HI_FTYPE_SI): Ditto.
10817 (V4SI_FTYPE_QI): Ditto.
10818 (V4SI_FTYPE_HI): Ditto.
10819 (V8SI_FTYPE_QI): Ditto.
10820 (V8SI_FTYPE_HI): Ditto.
10821 (V2DI_FTYPE_QI): Ditto.
10822 (V4DI_FTYPE_QI): Ditto.
10823 (QI_FTYPE_QI_QI): Ditto.
10824 (SI_FTYPE_SI_SI): Ditto.
10825 (DI_FTYPE_DI_DI): Ditto.
10826 (QI_FTYPE_QI_INT): Ditto.
10827 (SI_FTYPE_SI_INT): Ditto.
10828 (DI_FTYPE_DI_INT): Ditto.
10829 (HI_FTYPE_V16QI_V16QI): Ditto.
10830 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10831 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10832 (SI_FTYPE_V32QI_V32QI): Ditto.
10833 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10834 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10835 (DI_FTYPE_V64QI_V64QI): Ditto.
10836 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10837 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10838 (QI_FTYPE_V8HI_V8HI): Ditto.
10839 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10840 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10841 (HI_FTYPE_V16HI_V16HI): Ditto.
10842 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10843 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10844 (SI_FTYPE_V32HI_V32HI): Ditto.
10845 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10846 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10847 (QI_FTYPE_V4SI_V4SI): Ditto.
10848 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10849 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10850 (QI_FTYPE_V8SI_V8SI): Ditto.
10851 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10852 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10853 (QI_FTYPE_V2DI_V2DI): Ditto.
10854 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10855 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10856 (QI_FTYPE_V4DI_V4DI): Ditto.
10857 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10858 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10859 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10860 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
10861 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10862 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10863 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10864 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
10865 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10866 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10867 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10868 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10869 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10870 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10871 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10872 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10873 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10874 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10875 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10876 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10877 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10878 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10879 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10880 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10881 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10882 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10883 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10884 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10885 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10886 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10887 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10888 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10889 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10890 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10891 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10892 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10893 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10894 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10895 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10896 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10897 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10898 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10899 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10900 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10901 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10902 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10903 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10904 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10905 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10906 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10907 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10908 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10909 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10910 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10911 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10912 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10913 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10914 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10915 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10916 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10917 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10918 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10919 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10920 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10921 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10922 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10923 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10924 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10925 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10926 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10927 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10928 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10929 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10930 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10931 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10932 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
10933 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10934 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10935 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
10936 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10937 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10938 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
10939 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10940 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10941 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10942 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10943 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10944 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10945 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10946 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10947 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10948 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10949 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10950 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10951 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10952 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10953 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10954 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10955 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10956 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10957 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10958 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10959 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10960 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10961 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10962 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10963 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10964 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10965 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10966 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10967 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10968 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10969 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10970 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
10971 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10972 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
10973 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
10974 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10975 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
10976 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10977 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
10978 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10979 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10980 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10981 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
10982 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10983 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10984 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10985 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10986 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10987 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10988 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10989 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10990 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10991 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10992 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10993 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10994 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10995 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10996 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10997 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10998 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10999 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11000 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11001 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11002 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11003 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11004 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11005 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11006 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11007 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11008 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11009 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11010 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11011 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11012 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11013 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11014 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11015 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11016 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11017 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11018 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11019 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11020 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11021 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11022 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11023 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11024 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11025 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11026 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11027 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11028 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11029 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11030 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11031 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11032 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11033 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11034 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11035 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11036 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11037 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11038 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11039 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11040 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11041 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11042 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11043 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11044 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11045 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11046 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11047 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11048 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11049 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11050 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11051 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11052 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11053 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11054 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11055 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11056 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11057 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11058 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11059 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11060 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11061 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11062 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11063 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11064 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11065 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11066 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11067 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11068 (QI_FTYPE_V8DF_INT): Ditto.
11069 (QI_FTYPE_V4DF_INT): Ditto.
11070 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11071 (QI_FTYPE_V2DF_INT): Ditto.
11072 (HI_FTYPE_V16SF_INT): Ditto.
11073 (QI_FTYPE_V8SF_INT): Ditto.
11074 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11075 (QI_FTYPE_V4SF_INT): Ditto.
11076 (QI_FTYPE_V8DF_INT_QI): Ditto.
11077 (QI_FTYPE_V4DF_INT_QI): Ditto.
11078 (QI_FTYPE_V2DF_INT_QI): Ditto.
11079 (HI_FTYPE_V16SF_INT_HI): Ditto.
11080 (QI_FTYPE_V8SF_INT_QI): Ditto.
11081 (QI_FTYPE_V4SF_INT_QI): Ditto.
11082 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
11083 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
11084 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
11085 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
11086 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11087 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11088 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
11089 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
11090 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
11091 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
11092 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
11093 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
11094 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
11095 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
11096 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
11097 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
11098 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
11099 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
11100 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
11101 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
11102 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
11103 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
11104 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
11105 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
11106 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
11107 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
11108 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
11109 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
11110 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
11111 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
11112 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
11113 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
11114 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
11115 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
11116 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
11117 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
11118 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
11119 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
11120 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
11121 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
11122 (V8DI_FTYPE_V8DI_INT): Ditto.
11123 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11124 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11125 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11126 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11127 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
11128 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
11129 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
11130 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
11131 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
11132 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
11133 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
11134 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
11135 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
11136 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
11137 * config/i386/i386.c (ix86_builtins):
11138 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
11139 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
11140 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
11141 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
11142 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
11143 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
11144 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
11145 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
11146 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
11147 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
11148 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
11149 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
11150 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
11151 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
11152 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
11153 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
11154 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
11155 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
11156 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
11157 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
11158 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
11159 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
11160 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
11161 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
11162 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
11163 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
11164 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
11165 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
11166 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
11167 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
11168 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
11169 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
11170 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
11171 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
11172 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
11173 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
11174 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
11175 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
11176 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
11177 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
11178 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
11179 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
11180 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
11181 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
11182 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
11183 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
11184 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
11185 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
11186 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
11187 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
11188 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
11189 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
11190 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
11191 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
11192 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
11193 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
11194 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
11195 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
11196 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
11197 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
11198 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
11199 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
11200 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
11201 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
11202 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
11203 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
11204 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
11205 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
11206 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
11207 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
11208 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
11209 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
11210 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
11211 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
11212 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
11213 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
11214 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
11215 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
11216 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
11217 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
11218 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
11219 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
11220 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
11221 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
11222 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
11223 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
11224 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
11225 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
11226 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
11227 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
11228 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
11229 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
11230 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
11231 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
11232 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
11233 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
11234 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
11235 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
11236 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
11237 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
11238 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
11239 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
11240 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
11241 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
11242 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
11243 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
11244 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
11245 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
11246 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
11247 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
11248 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
11249 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
11250 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
11251 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
11252 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
11253 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
11254 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
11255 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
11256 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
11257 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
11258 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
11259 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
11260 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
11261 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
11262 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
11263 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
11264 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
11265 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
11266 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
11267 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
11268 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
11269 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
11270 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
11271 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
11272 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
11273 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
11274 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
11275 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
11276 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
11277 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
11278 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
11279 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
11280 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
11281 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
11282 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
11283 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
11284 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
11285 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
11286 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
11287 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
11288 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
11289 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
11290 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
11291 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
11292 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
11293 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
11294 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
11295 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
11296 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
11297 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
11298 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
11299 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
11300 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
11301 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
11302 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
11303 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
11304 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
11305 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
11306 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
11307 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
11308 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
11309 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
11310 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
11311 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
11312 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
11313 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
11314 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
11315 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
11316 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
11317 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
11318 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
11319 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
11320 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
11321 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
11322 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
11323 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
11324 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
11325 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
11326 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
11327 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
11328 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
11329 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
11330 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
11331 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
11332 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
11333 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
11334 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
11335 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
11336 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
11337 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
11338 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
11339 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
11340 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
11341 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
11342 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
11343 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
11344 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
11345 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
11346 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
11347 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
11348 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
11349 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
11350 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
11351 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
11352 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
11353 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
11354 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
11355 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
11356 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
11357 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
11358 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
11359 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
11360 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
11361 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
11362 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
11363 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
11364 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
11365 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
11366 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
11367 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
11368 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
11369 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
11370 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
11371 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
11372 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
11373 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
11374 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
11375 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
11376 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
11377 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
11378 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
11379 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
11380 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
11381 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
11382 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
11383 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
11384 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
11385 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
11386 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
11387 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
11388 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
11389 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
11390 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
11391 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
11392 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
11393 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
11394 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
11395 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
11396 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
11397 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
11398 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
11399 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
11400 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
11401 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
11402 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
11403 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
11404 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
11405 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
11406 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
11407 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
11408 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
11409 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
11410 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
11411 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
11412 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
11413 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
11414 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
11415 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
11416 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
11417 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
11418 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
11419 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
11420 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
11421 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
11422 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
11423 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
11424 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
11425 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
11426 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
11427 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
11428 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
11429 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
11430 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
11431 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
11432 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
11433 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
11434 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
11435 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
11436 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
11437 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
11438 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
11439 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
11440 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
11441 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
11442 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
11443 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
11444 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
11445 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
11446 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
11447 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
11448 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
11449 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
11450 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
11451 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
11452 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
11453 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
11454 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
11455 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
11456 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
11457 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
11458 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
11459 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
11460 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
11461 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
11462 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
11463 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
11464 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
11465 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
11466 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
11467 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
11468 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
11469 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
11470 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
11471 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
11472 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
11473 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
11474 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
11475 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
11476 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
11477 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
11478 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
11479 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
11480 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
11481 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
11482 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
11483 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
11484 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
11485 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
11486 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
11487 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
11488 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
11489 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
11490 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
11491 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
11492 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
11493 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
11494 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
11495 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
11496 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
11497 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
11498 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
11499 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
11500 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
11501 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
11502 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
11503 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
11504 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
11505 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
11506 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
11507 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
11508 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
11509 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
11510 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
11511 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
11512 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
11513 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
11514 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
11515 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
11516 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
11517 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
11518 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
11519 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
11520 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
11521 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
11522 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
11523 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
11524 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
11525 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
11526 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
11527 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
11528 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
11529 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
11530 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
11531 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
11532 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
11533 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
11534 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
11535 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
11536 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
11537 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
11538 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
11539 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
11540 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
11541 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
11542 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
11543 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
11544 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
11545 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
11546 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
11547 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
11548 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
11549 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
11550 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
11551 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
11552 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
11553 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
11554 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
11555 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
11556 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
11557 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
11558 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
11559 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
11560 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
11561 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
11562 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
11563 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
11564 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
11565 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
11566 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
11567 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
11568 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
11569 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
11570 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
11571 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
11572 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
11573 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
11574 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
11575 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
11576 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
11577 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
11578 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
11579 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
11580 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
11581 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
11582 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
11583 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
11584 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
11585 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
11586 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
11587 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
11588 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
11589 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
11590 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
11591 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
11592 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
11593 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
11594 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
11595 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
11596 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
11597 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
11598 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
11599 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
11600 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
11601 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
11602 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
11603 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
11604 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
11605 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
11606 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
11607 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
11608 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
11609 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
11610 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
11611 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
11612 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
11613 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
11614 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
11615 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
11616 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
11617 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
11618 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
11619 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
11620 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
11621 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
11622 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
11623 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
11624 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
11625 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
11626 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
11627 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
11628 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
11629 (bdesc_special_args):
11630 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
11631 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
11632 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
11633 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
11634 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
11635 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
11636 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
11637 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
11638 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
11639 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
11640 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
11641 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
11642 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
11643 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
11644 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
11645 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
11646 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
11647 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
11648 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
11649 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
11650 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
11651 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
11652 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
11653 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
11654 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
11655 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
11656 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
11657 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
11658 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
11659 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
11660 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
11661 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
11662 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
11663 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
11664 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
11665 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
11666 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
11667 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
11668 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
11669 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
11670 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
11671 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
11672 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
11673 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
11674 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
11675 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
11676 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
11677 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
11678 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
11679 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
11680 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
11681 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
11682 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
11683 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
11684 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
11685 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
11686 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
11687 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
11688 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
11689 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
11690 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
11691 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
11692 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
11693 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
11694 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
11695 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
11696 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
11697 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
11698 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
11699 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
11700 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
11701 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
11702 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
11703 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
11704 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
11705 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
11706 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
11707 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
11708 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
11709 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
11710 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
11711 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
11712 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
11713 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
11714 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
11715 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
11716 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
11717 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
11718 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
11719 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
11720 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
11721 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
11722 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
11723 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
11724 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
11725 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
11726 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
11727 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
11728 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
11729 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
11730 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
11731 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
11732 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
11733 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
11734 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
11735 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
11736 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
11737 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
11738 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
11739 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
11740 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
11741 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
11742 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
11743 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
11744 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
11745 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
11746 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
11747 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
11748 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
11749 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
11750 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
11751 __builtin_ia32_reducesd, __builtin_ia32_reducess,
11752 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
11753 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
11754 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
11755 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
11756 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
11757 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
11758 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
11759 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
11760 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
11761 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
11762 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
11763 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
11764 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
11765 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
11766 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
11767 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
11768 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
11769 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
11770 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
11771 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
11772 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
11773 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
11774 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
11775 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
11776 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
11777 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
11778 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
11779 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
11780 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
11781 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
11782 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
11783 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
11784 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
11785 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
11786 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
11787 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
11788 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
11789 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
11790 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
11791 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
11792 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
11793 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
11794 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
11795 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
11796 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
11797 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
11798 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
11799 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
11800 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
11801 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
11802 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
11803 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
11804 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
11805 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
11806 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
11807 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
11808 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
11809 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
11810 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
11811 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
11812 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
11813 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
11814 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
11815 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
11816 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
11817 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
11818 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
11819 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
11820 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
11821 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
11822 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
11823 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
11824 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
11825 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
11826 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
11827 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
11828 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
11829 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
11830 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
11831 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
11832 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
11833 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
11834 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
11835 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
11836 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
11837 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
11838 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
11839 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
11840 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
11841 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
11842 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
11843 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
11844 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
11845 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
11846 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
11847 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
11848 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
11849 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
11850 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
11851 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
11852 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
11853 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
11854 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
11855 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
11856 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
11857 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
11858 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
11859 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
11860 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
11861 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
11862 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
11863 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
11864 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
11865 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
11866 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
11867 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
11868 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
11869 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
11870 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
11871 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
11872 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
11873 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
11874 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
11875 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
11876 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
11877 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
11878 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
11879 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
11880 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
11881 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
11882 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
11883 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
11884 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
11885 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
11886 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
11887 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
11888 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
11889 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
11890 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
11891 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
11892 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
11893 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
11894 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
11895 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
11896 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
11897 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
11898 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
11899 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
11900 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
11901 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
11902 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
11903 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
11904 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
11905 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
11906 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
11907 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
11908 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
11909 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
11910 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
11911 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
11912 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
11913 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
11914 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
11915 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
11916 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
11917 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
11918 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
11919 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
11920 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
11921 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
11922 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
11923 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
11924 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
11925 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
11926 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
11927 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
11928 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
11929 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
11930 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
11931 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
11932 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
11933 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
11934 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
11935 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
11936 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
11937 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
11938 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
11939 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
11940 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
11941 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
11942 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
11943 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
11944 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
11945 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
11946 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
11947 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
11948 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
11949 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
11950 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
11951 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
11952 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
11953 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
11954 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
11955 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
11956 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
11957 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
11958 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
11959 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
11960 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
11961 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
11962 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
11963 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
11964 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
11965 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
11966 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
11967 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
11968 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
11969 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
11970 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
11971 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
11972 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
11973 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
11974 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
11975 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
11976 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
11977 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
11978 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
11979 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
11980 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
11981 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
11982 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
11983 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
11984 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
11985 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
11986 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
11987 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
11988 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
11989 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
11990 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
11991 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
11992 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
11993 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
11994 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
11995 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
11996 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
11997 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
11998 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
11999 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
12000 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
12001 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
12002 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
12003 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
12004 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
12005 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
12006 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
12007 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
12008 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
12009 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
12010 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
12011 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
12012 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
12013 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
12014 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
12015 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
12016 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
12017 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
12018 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
12019 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
12020 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
12021 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
12022 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
12023 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
12024 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
12025 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
12026 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
12027 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
12028 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
12029 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
12030 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
12031 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
12032 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
12033 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
12034 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
12035 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
12036 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
12037 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
12038 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
12039 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
12040 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
12041 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
12042 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
12043 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
12044 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
12045 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
12046 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
12047 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
12048 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
12049 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
12050 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
12051 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
12052 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
12053 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
12054 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
12055 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
12056 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
12057 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
12058 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
12059 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
12060 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
12061 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
12062 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
12063 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
12064 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
12065 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
12066 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
12067 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
12068 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
12069 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
12070 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
12071 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
12072 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
12073 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
12074 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
12075 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
12076 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
12077 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
12078 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
12079 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
12080 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
12081 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
12082 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
12083 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
12084 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
12085 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
12086 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
12087 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
12088 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
12089 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
12090 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
12091 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
12092 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
12093 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
12094 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
12095 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
12096 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
12097 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
12098 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
12099 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
12100 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
12101 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
12102 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
12103 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
12104 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
12105 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
12106 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
12107 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
12108 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
12109 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
12110 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
12111 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
12112 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
12113 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
12114 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
12115 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
12116 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
12117 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
12118 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
12119 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
12120 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
12121 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
12122 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
12123 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
12124 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
12125 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
12126 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
12127 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
12128 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
12129 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
12130 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
12131 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
12132 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
12133 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
12134 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
12135 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
12136 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
12137 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
12138 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
12139 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
12140 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
12141 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
12142 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
12143 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
12144 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
12145 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
12146 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
12147 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
12148 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
12149 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
12150 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
12151 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
12152 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
12153 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
12154 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
12155 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
12156 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
12157 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
12158 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
12159 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
12160 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
12161 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
12162 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
12163 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
12164 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
12165 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
12166 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
12167 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
12168 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
12169 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
12170 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
12171 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
12172 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
12173 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
12174 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
12175 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
12176 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
12177 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
12178 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
12179 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
12180 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
12181 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
12182 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
12183 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
12184 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
12185 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
12186 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
12187 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
12188 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
12189 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
12190 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
12191 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
12192 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
12193 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
12194 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
12195 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
12196 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
12197 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
12198 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
12199 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
12200 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
12201 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
12202 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
12203 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
12204 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
12205 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
12206 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
12207 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
12208 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
12209 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
12210 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
12211 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
12212 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
12213 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
12214 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
12215 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
12216 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
12217 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
12218 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
12219 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
12220 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
12221 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
12222 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
12223 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
12224 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
12225 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
12226 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
12227 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
12228 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
12229 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
12230 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
12231 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
12232 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
12233 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
12234 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
12235 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
12236 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
12237 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
12238 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
12240 2014-10-28 Jakub Jelinek <jakub@redhat.com>
12242 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
12243 type for the left shift in CASE_CONVERT case.
12245 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
12247 * asan.h (asan_intercepted_p): New function.
12248 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
12249 hash value construction. Call iterative_hash_expr instead of explicit
12251 (asan_mem_ref_hasher::equal): Change condition.
12252 (has_mem_ref_been_instrumented): Likewise.
12253 (update_mem_ref_hash_table): Likewise.
12254 (maybe_update_mem_ref_hash_table): New function.
12255 (instrument_strlen_call): Removed.
12256 (get_mem_refs_of_builtin_call): Handle new parameter.
12257 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
12258 of instrument_mem_region_access if intercepted_p is true.
12259 (instrument_mem_region_access): Instrument only base with len instead of
12260 base and end with 1.
12261 (build_check_stmt): Remove start_instrumented and end_instrumented
12263 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
12264 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
12265 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
12266 * builtins.c (expand_builtin): Include asan.h. Don't expand
12267 string/memory builtin functions that have interceptors if ASan is
12270 2014-10-28 Richard Biener <rguenther@suse.de>
12272 PR middle-end/63665
12273 * fold-const.c (fold_comparison): Properly guard simplifying
12274 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
12276 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
12278 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
12279 * fold-const.c (const_binop): Likewise.
12280 * cfgexpand.c (expand_debug_expr): Likewise.
12281 * tree-inline.c (estimate_operator_cost): Likewise.
12282 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12283 * optabs.c (optab_for_tree_code): Likewise.
12284 (expand_vec_shift_expr): Likewise, update comment.
12285 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
12286 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12287 * optabs.def: Remove vec_shl_optab.
12288 * doc/md.texi: Remove references to vec_shr_m.
12290 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12292 * asan.c (report_error_func): Add noabort path.
12293 (check_func): Ditto. Formatting.
12294 (asan_expand_check_ifn): Handle noabort path.
12295 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
12297 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
12298 * opts.c (finish_options): Reword comment.
12299 * sanitizer.def: Add noabort ASan builtins.
12301 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12303 * asan.c (set_asan_shadow_offset): New function.
12304 (asan_shadow_offset): Likewise.
12305 (asan_emit_stack_protection): Call asan_shadow_offset.
12306 (build_shadow_mem_access): Likewise.
12307 * asan.h (set_asan_shadow_offset): Declare.
12308 * common.opt (fasan-shadow-offset): New option.
12309 (frandom-seed): Fixed parameter name.
12310 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
12311 (frandom-seed): Fixed parameter name.
12312 * opts-global.c (handle_common_deferred_options): Handle
12313 -fasan-shadow-offset.
12314 * opts.c (common_handle_option): Likewise.
12316 2014-10-27 Jiong Wang <jiong.wang@arm.com>
12319 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
12321 2014-10-27 DJ Delorie <dj@redhat.com>
12323 * tree.c (build_common_tree_nodes): Don't even store the
12324 __int128 types if they're not supported.
12326 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12328 * config/i386/i386.c (ix86_loop_memcount): Delete.
12329 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
12331 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12333 * config/i386/i386.c (find_constant_1): Delete.
12334 (find_constant): Use FOR_EACH_SUBRTX.
12336 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12338 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
12339 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
12341 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12343 * config/i386/i386.c: Include rtl-iter.h
12344 (ix86_check_avx256_register): Take a const_rtx and return a bool.
12345 (ix86_check_avx256_stores): Update call accordingly.
12346 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12347 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
12349 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12351 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
12352 Take an rtx and return a bool.
12353 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
12354 Use FOR_EACH_SUBRTX_VAR.
12355 * config/alpha/predicates.md (some_small_symbolic_operand): Update
12358 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12360 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
12362 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
12363 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
12365 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12367 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
12368 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
12370 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12372 * config/alpha/alpha.c: Include rtl-iter.h.
12373 (split_small_symbolic_operand_1): Delete.
12374 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
12376 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12378 * config/s390/s390.c: Include rtl-iter.h.
12379 (check_dpu): Delete.
12380 (s390_loop_unroll_adjust): Only iterate over patterns.
12381 Use FOR_EACH_SUBRTX.
12383 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12385 * config/spu/spu.c: Include rtl-iter.h
12386 (ea_symbol_ref): Replace with...
12387 (ea_symbol_ref_p): ...this new function.
12388 (spu_legitimate_address_p): Update call accordingly.
12389 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
12391 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
12392 Tom Tromey <tromey@redhat.com>
12394 * aclocal.m4, configure: Rebuild.
12395 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
12396 * configure.ac: Use GCC_ENABLE_PLUGINS.
12397 * stor-layout.c (finish_bitfield_layout): Now public. Change
12398 argument type to 'tree'.
12399 (finish_record_layout): Update.
12400 * stor-layout.h (finish_bitfield_layout): Declare.
12402 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12404 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
12405 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12406 Restore, enable for bigendian, update to use __builtin..._scal...
12408 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12410 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
12411 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
12412 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
12413 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
12415 * config/aarch64/aarch64-simd.md
12416 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
12417 (reduc_<maxmin_uns>_internal<mode>): ...this.
12418 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
12419 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
12421 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
12422 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
12423 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
12425 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
12426 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
12427 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
12428 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
12429 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
12430 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
12431 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
12432 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
12434 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12436 * config/aarch64/aarch64-simd-builtins.def
12437 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
12439 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
12441 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
12442 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
12444 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
12445 (aarch64_reduc_plus_internal<mode>): ...this.
12447 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
12448 (aarch64_reduc_plus_internalv2si): ...this.
12450 (reduc_splus_<mode>/V2F): Rename to...
12451 (aarch64_reduc_plus_internal<mode>): ...this.
12453 * config/aarch64/iterators.md
12454 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
12455 (UNSPEC_ADDV): New.
12456 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
12458 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
12459 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
12460 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
12461 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
12462 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
12464 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12466 PR tree-optimization/61114
12467 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
12468 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
12470 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
12471 back to old reduc_... + BIT_FIELD_REF only if not.
12473 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
12474 return the reduce-to-scalar (reduc_..._scal) optab.
12475 (scalar_reduc_to_vector): New.
12477 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
12478 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
12481 * optabs.h (scalar_reduc_to_vector): Declare.
12483 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
12484 to either scalar or vector.
12486 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12488 PR tree-optimization/61114
12489 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
12490 extract_bit_field around optab result.
12492 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
12495 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
12496 for REDUC_{MIN,MAX,PLUS}_EXPR.
12498 * tree-vect-loop.c (vect_analyze_loop): Update comment.
12499 (vect_create_epilog_for_reduction): For direct vector reduction, use
12500 result of tree code directly without extract_bit_field.
12502 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
12505 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
12507 * basic-block.h: Remove all includes.
12508 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
12509 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
12510 * Makefile.in (GTFILES): Add cfg.h to list.
12511 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
12512 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
12513 * genconditions.c (write_header): Add predict.h and basic-block.h to
12515 * genemit.c (main): Ditto.
12516 * genpreds.c (write_insn_preds_c): Ditto.
12517 * genrecog.c (write_header): Ditto.
12518 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
12519 to list of includes.
12520 * alias.c: Adjust include files.
12522 * auto-inc-dec.c: Ditto.
12523 * auto-profile.c: Ditto.
12524 * bb-reorder.c: Ditto.
12525 * bt-load.c: Ditto.
12526 * builtins.c: Ditto.
12527 * caller-save.c: Ditto.
12530 * cfganal.c: Ditto.
12531 * cfgbuild.c: Ditto.
12532 * cfgcleanup.c: Ditto.
12533 * cfgexpand.c: Ditto.
12534 * cfghooks.c: Ditto.
12535 * cfgloop.c: Ditto.
12536 * cfgloopanal.c: Ditto.
12537 * cfgloopmanip.c: Ditto.
12539 * cgraphbuild.c: Ditto.
12540 * cgraphclones.c: Ditto.
12541 * cgraphunit.c: Ditto.
12542 * combine-stack-adj.c: Ditto.
12543 * combine.c: Ditto.
12544 * compare-elim.c: Ditto.
12545 * coverage.c: Ditto.
12549 * data-streamer-in.c: Ditto.
12550 * data-streamer-out.c: Ditto.
12551 * data-streamer.c: Ditto.
12555 * df-core.c: Ditto.
12556 * df-problems.c: Ditto.
12557 * df-scan.c: Ditto.
12560 * dominance.c: Ditto.
12561 * domwalk.c: Ditto.
12563 * dwarf2cfi.c: Ditto.
12564 * emit-rtl.c: Ditto.
12565 * et-forest.c: Ditto.
12570 * fold-const.c: Ditto.
12571 * function.c: Ditto.
12573 * gcc-plugin.h: Ditto.
12575 * generic-match-head.c: Ditto.
12576 * ggc-page.c: Ditto.
12577 * gimple-builder.c: Ditto.
12578 * gimple-expr.c: Ditto.
12579 * gimple-fold.c: Ditto.
12580 * gimple-iterator.c: Ditto.
12581 * gimple-low.c: Ditto.
12582 * gimple-match-head.c: Ditto.
12583 * gimple-pretty-print.c: Ditto.
12584 * gimple-ssa-isolate-paths.c: Ditto.
12585 * gimple-ssa-strength-reduction.c: Ditto.
12586 * gimple-streamer-in.c: Ditto.
12587 * gimple-streamer-out.c: Ditto.
12588 * gimple-streamer.h: Ditto.
12589 * gimple-walk.c: Ditto.
12591 * gimplify-me.c: Ditto.
12592 * gimplify.c: Ditto.
12594 * graphite-blocking.c: Ditto.
12595 * graphite-clast-to-gimple.c: Ditto.
12596 * graphite-dependences.c: Ditto.
12597 * graphite-interchange.c: Ditto.
12598 * graphite-isl-ast-to-gimple.c: Ditto.
12599 * graphite-optimize-isl.c: Ditto.
12600 * graphite-poly.c: Ditto.
12601 * graphite-scop-detection.c: Ditto.
12602 * graphite-sese-to-poly.c: Ditto.
12603 * graphite.c: Ditto.
12604 * haifa-sched.c: Ditto.
12605 * hw-doloop.c: Ditto.
12607 * init-regs.c: Ditto.
12608 * internal-fn.c: Ditto.
12610 * ipa-devirt.c: Ditto.
12611 * ipa-icf-gimple.c: Ditto.
12612 * ipa-icf.c: Ditto.
12613 * ipa-inline-analysis.c: Ditto.
12614 * ipa-inline.c: Ditto.
12615 * ipa-polymorphic-call.c: Ditto.
12616 * ipa-profile.c: Ditto.
12617 * ipa-prop.c: Ditto.
12618 * ipa-pure-const.c: Ditto.
12619 * ipa-reference.c: Ditto.
12620 * ipa-split.c: Ditto.
12621 * ipa-utils.c: Ditto.
12623 * ira-build.c: Ditto.
12624 * ira-color.c: Ditto.
12625 * ira-conflicts.c: Ditto.
12626 * ira-costs.c: Ditto.
12627 * ira-emit.c: Ditto.
12628 * ira-lives.c: Ditto.
12632 * loop-doloop.c: Ditto.
12633 * loop-init.c: Ditto.
12634 * loop-invariant.c: Ditto.
12635 * loop-iv.c: Ditto.
12636 * loop-unroll.c: Ditto.
12637 * lower-subreg.c: Ditto.
12638 * lra-assigns.c: Ditto.
12639 * lra-coalesce.c: Ditto.
12640 * lra-constraints.c: Ditto.
12641 * lra-eliminations.c: Ditto.
12642 * lra-lives.c: Ditto.
12643 * lra-spills.c: Ditto.
12645 * lto-cgraph.c: Ditto.
12646 * lto-compress.c: Ditto.
12647 * lto-opts.c: Ditto.
12648 * lto-section-in.c: Ditto.
12649 * lto-section-out.c: Ditto.
12650 * lto-streamer-in.c: Ditto.
12651 * lto-streamer-out.c: Ditto.
12652 * lto-streamer.c: Ditto.
12654 * mode-switching.c: Ditto.
12655 * modulo-sched.c: Ditto.
12656 * omp-low.c: Ditto.
12658 * opts-global.c: Ditto.
12660 * postreload-gcse.c: Ditto.
12661 * postreload.c: Ditto.
12662 * predict.c: Ditto.
12663 * print-rtl.c: Ditto.
12664 * profile.c: Ditto.
12667 * reg-stack.c: Ditto.
12668 * regcprop.c: Ditto.
12669 * regcprop.h: Ditto.
12670 * reginfo.c: Ditto.
12671 * regrename.c: Ditto.
12672 * regstat.c: Ditto.
12674 * reload1.c: Ditto.
12676 * resource.c: Ditto.
12677 * rtlanal.c: Ditto.
12678 * sched-deps.c: Ditto.
12679 * sched-ebb.c: Ditto.
12680 * sched-int.h: Ditto.
12681 * sched-rgn.c: Ditto.
12682 * sched-vis.c: Ditto.
12683 * sel-sched-dump.c: Ditto.
12684 * sel-sched-ir.c: Ditto.
12685 * sel-sched-ir.h: Ditto.
12686 * sel-sched.c: Ditto.
12688 * shrink-wrap.c: Ditto.
12689 * stack-ptr-mod.c: Ditto.
12691 * store-motion.c: Ditto.
12695 * trans-mem.c: Ditto.
12696 * tree-affine.c: Ditto.
12697 * tree-call-cdce.c: Ditto.
12698 * tree-cfg.c: Ditto.
12699 * tree-cfgcleanup.c: Ditto.
12700 * tree-chrec.c: Ditto.
12701 * tree-complex.c: Ditto.
12702 * tree-data-ref.c: Ditto.
12703 * tree-dfa.c: Ditto.
12704 * tree-eh.c: Ditto.
12705 * tree-emutls.c: Ditto.
12706 * tree-if-conv.c: Ditto.
12707 * tree-inline.c: Ditto.
12708 * tree-into-ssa.c: Ditto.
12709 * tree-loop-distribution.c: Ditto.
12710 * tree-nested.c: Ditto.
12711 * tree-nrv.c: Ditto.
12712 * tree-object-size.c: Ditto.
12713 * tree-outof-ssa.c: Ditto.
12714 * tree-parloops.c: Ditto.
12715 * tree-phinodes.c: Ditto.
12716 * tree-predcom.c: Ditto.
12717 * tree-pretty-print.c: Ditto.
12718 * tree-profile.c: Ditto.
12719 * tree-scalar-evolution.c: Ditto.
12720 * tree-sra.c: Ditto.
12721 * tree-ssa-address.c: Ditto.
12722 * tree-ssa-alias.c: Ditto.
12723 * tree-ssa-ccp.c: Ditto.
12724 * tree-ssa-coalesce.c: Ditto.
12725 * tree-ssa-copy.c: Ditto.
12726 * tree-ssa-copyrename.c: Ditto.
12727 * tree-ssa-dce.c: Ditto.
12728 * tree-ssa-dom.c: Ditto.
12729 * tree-ssa-dse.c: Ditto.
12730 * tree-ssa-forwprop.c: Ditto.
12731 * tree-ssa-ifcombine.c: Ditto.
12732 * tree-ssa-live.c: Ditto.
12733 * tree-ssa-loop-ch.c: Ditto.
12734 * tree-ssa-loop-im.c: Ditto.
12735 * tree-ssa-loop-ivcanon.c: Ditto.
12736 * tree-ssa-loop-ivopts.c: Ditto.
12737 * tree-ssa-loop-manip.c: Ditto.
12738 * tree-ssa-loop-niter.c: Ditto.
12739 * tree-ssa-loop-prefetch.c: Ditto.
12740 * tree-ssa-loop-unswitch.c: Ditto.
12741 * tree-ssa-loop.c: Ditto.
12742 * tree-ssa-math-opts.c: Ditto.
12743 * tree-ssa-operands.c: Ditto.
12744 * tree-ssa-phiopt.c: Ditto.
12745 * tree-ssa-phiprop.c: Ditto.
12746 * tree-ssa-pre.c: Ditto.
12747 * tree-ssa-propagate.c: Ditto.
12748 * tree-ssa-reassoc.c: Ditto.
12749 * tree-ssa-sccvn.c: Ditto.
12750 * tree-ssa-sink.c: Ditto.
12751 * tree-ssa-strlen.c: Ditto.
12752 * tree-ssa-structalias.c: Ditto.
12753 * tree-ssa-tail-merge.c: Ditto.
12754 * tree-ssa-ter.c: Ditto.
12755 * tree-ssa-threadedge.c: Ditto.
12756 * tree-ssa-threadupdate.c: Ditto.
12757 * tree-ssa-uncprop.c: Ditto.
12758 * tree-ssa-uninit.c: Ditto.
12759 * tree-ssa.c: Ditto.
12760 * tree-ssanames.c: Ditto.
12761 * tree-stdarg.c: Ditto.
12762 * tree-streamer-in.c: Ditto.
12763 * tree-streamer-out.c: Ditto.
12764 * tree-streamer.c: Ditto.
12765 * tree-switch-conversion.c: Ditto.
12766 * tree-tailcall.c: Ditto.
12767 * tree-vect-data-refs.c: Ditto.
12768 * tree-vect-generic.c: Ditto.
12769 * tree-vect-loop-manip.c: Ditto.
12770 * tree-vect-loop.c: Ditto.
12771 * tree-vect-patterns.c: Ditto.
12772 * tree-vect-slp.c: Ditto.
12773 * tree-vect-stmts.c: Ditto.
12774 * tree-vectorizer.c: Ditto.
12775 * tree-vrp.c: Ditto.
12779 * valtrack.c: Ditto.
12780 * valtrack.h: Ditto.
12781 * value-prof.c: Ditto.
12782 * var-tracking.c: Ditto.
12784 * varpool.c: Ditto.
12785 * vtable-verify.c: Ditto.
12787 * config/aarch64/aarch64-builtins.c: Ditto.
12788 * config/aarch64/aarch64.c: Ditto.
12789 * config/alpha/alpha.c: Ditto.
12790 * config/arc/arc.c: Ditto.
12791 * config/arm/arm.c: Ditto.
12792 * config/avr/avr.c: Ditto.
12793 * config/bfin/bfin.c: Ditto.
12794 * config/c6x/c6x.c: Ditto.
12795 * config/cr16/cr16.c: Ditto.
12796 * config/cris/cris.c: Ditto.
12797 * config/darwin-c.c: Ditto.
12798 * config/darwin.c: Ditto.
12799 * config/epiphany/epiphany.c: Ditto.
12800 * config/epiphany/mode-switch-use.c: Ditto.
12801 * config/epiphany/resolve-sw-modes.c: Ditto.
12802 * config/fr30/fr30.c: Ditto.
12803 * config/frv/frv.c: Ditto.
12804 * config/h8300/h8300.c: Ditto.
12805 * config/i386/i386.c: Ditto.
12806 * config/i386/winnt.c: Ditto.
12807 * config/ia64/ia64.c: Ditto.
12808 * config/iq2000/iq2000.c: Ditto.
12809 * config/lm32/lm32.c: Ditto.
12810 * config/m32c/m32c.c: Ditto.
12811 * config/m32r/m32r.c: Ditto.
12812 * config/m68k/m68k.c: Ditto.
12813 * config/mcore/mcore.c: Ditto.
12814 * config/mep/mep.c: Ditto.
12815 * config/microblaze/microblaze.c: Ditto.
12816 * config/mips/mips.c: Ditto.
12817 * config/mmix/mmix.c: Ditto.
12818 * config/mn10300/mn10300.c: Ditto.
12819 * config/moxie/moxie.c: Ditto.
12820 * config/msp430/msp430.c: Ditto.
12821 * config/nds32/nds32-cost.c: Ditto.
12822 * config/nds32/nds32-fp-as-gp.c: Ditto.
12823 * config/nds32/nds32-intrinsic.c: Ditto.
12824 * config/nds32/nds32-isr.c: Ditto.
12825 * config/nds32/nds32-md-auxiliary.c: Ditto.
12826 * config/nds32/nds32-memory-manipulation.c: Ditto.
12827 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
12828 * config/nds32/nds32-predicates.c: Ditto.
12829 * config/nds32/nds32.c: Ditto.
12830 * config/nios2/nios2.c: Ditto.
12831 * config/pa/pa.c: Ditto.
12832 * config/pdp11/pdp11.c: Ditto.
12833 * config/rl78/rl78.c: Ditto.
12834 * config/rs6000/rs6000.c: Ditto.
12835 * config/rx/rx.c: Ditto.
12836 * config/s390/s390.c: Ditto.
12837 * config/sh/sh-mem.cc: Ditto.
12838 * config/sh/sh.c: Ditto.
12839 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
12840 * config/sh/sh_treg_combine.cc: Ditto.
12841 * config/sparc/sparc.c: Ditto.
12842 * config/spu/spu.c: Ditto.
12843 * config/stormy16/stormy16.c: Ditto.
12844 * config/tilegx/tilegx.c: Ditto.
12845 * config/tilepro/tilepro.c: Ditto.
12846 * config/v850/v850.c: Ditto.
12847 * config/vax/vax.c: Ditto.
12848 * config/xtensa/xtensa.c: Ditto.
12850 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12852 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
12853 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12854 Remove using preprocessor directives.
12856 2014-10-27 Richard Biener <rguenther@suse.de>
12858 * match.pd (0 % X): Properly use the iterator iterating over
12859 all modulo operators.
12862 2014-10-27 Richard Biener <rguenther@suse.de>
12864 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
12865 (lattice): New global.
12866 (fwprop_ssa_val): New function.
12867 (fold_all_stmts): Likewise.
12868 (pass_forwprop::execute): Finally fold all stmts.
12870 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12873 * doc/invoke.texi (fmessage-length): Update text to match reality.
12875 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12877 * config/microblaze/microblaze.c: Include rtl-iter.h.
12878 (microblaze_tls_referenced_p_1): Delete.
12879 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
12881 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12883 * config/mips/mips.c (mips_at_reg_p): Delete.
12884 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
12886 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12888 * config/mips/mips.c (mips_record_lo_sum): Replace with...
12889 (mips_record_lo_sums): ...this new function.
12890 (mips_reorg_process_insns): Update accordingly.
12892 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12894 * config/mips/mips.c (mips_sim_insn): Update comment.
12895 (mips_sim_wait_regs_2): Delete.
12896 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
12898 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12900 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
12901 and return a bool. Iterate over all subrtxes here.
12902 (r10k_needs_protection_p): Update accordingly.
12904 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12906 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
12907 rather than an rtx pointer. Change type of insn from "void *"
12908 to its real type. Return bool rather than int. Iterate over
12910 (r10k_needs_protection_p_store): Update accordingly.
12911 (r10k_needs_protection_p): Likewise.
12913 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12915 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
12916 (mips16_rewrite_pool_refs): Take the insn and constant pool as
12917 parameters. Iterate over the instruction's pattern and return void.
12918 (mips16_lay_out_constants): Update accordingly.
12920 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12922 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
12923 (mips_refers_to_kernel_reg_p): ...this new function.
12924 (mips_expand_prologue): Update accordingly.
12926 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12928 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
12929 as a parameter instead of the containing MEM. Iterate over all
12930 subrtxes. Don't return a value.
12931 (mips_rewrite_small_data): Update call accordingly.
12933 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12935 * config/mips/mips.c: Include rtl-iter.h.
12936 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
12937 Take the context as a parameter instead of the containing MEM.
12938 Iterate over all subrtxes.
12939 (mips_small_data_pattern_p): Update call accordingly.
12941 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12943 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
12944 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
12946 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12948 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
12949 return a bool. Replace "void *" with specific type. Iterate
12951 (mep_store_data_bypass_1): Update calls accordingly.
12953 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12955 * config/mep/mep.c: Include rtl-iter.h.
12956 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
12957 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
12959 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12961 * config/xtensa/xtensa.c: Include rtl-iter.h.
12962 (xtensa_tls_referenced_p_1): Delete.
12963 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
12965 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12967 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
12968 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
12970 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12972 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
12973 rtx as argument and return the number of changes.
12974 * config/sh/sh.c: Include rtl-iter.h.
12975 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
12976 over all subrtxes. Return the number of changes made.
12977 * config/sh/sh.md: Update caller accordingly.
12979 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12981 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
12982 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
12984 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12986 * config/m68k/m68k.c: Include rtl-iter.h.
12987 (m68k_final_prescan_insn_1): Delete.
12988 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
12990 2014-10-25 Jakub Jelinek <jakub@redhat.com>
12992 PR tree-optimization/63641
12993 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
12994 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
12996 2014-10-25 Alan Modra <amodra@gmail.com>
12998 PR rtl-optimization/63615
12999 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
13000 decomposing PLUS or MINUS if operands are not placed adjacent
13001 in the "ops" array.
13003 2014-10-25 Joseph Myers <joseph@codesourcery.com>
13005 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
13006 not allow e500 double in registers not satisyfing
13009 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
13011 * dwarf2out.c (declare_in_namespace): Only emit external
13012 declarations in the local scope once.
13014 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
13016 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
13018 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13020 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
13021 update uses to use new macro arguments.
13022 (__LD3_LANE_FUNC): Likewise.
13023 (__LD4_LANE_FUNC): Likewise.
13025 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13027 * config/aarch64/aarch64-builtins.c
13028 (aarch64_types_loadstruct_lane_qualifiers): Define.
13029 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
13030 ld4_lane): New builtins.
13031 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
13033 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13034 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13035 (aarch64_ld2_lane<mode>): New expand.
13036 (aarch64_ld3_lane<mode>): Likewise.
13037 (aarch64_ld4_lane<mode>): Likewise.
13038 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13039 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
13041 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
13043 * avr-protos.h (avr_out_sign_extend): New.
13044 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
13045 (avr_out_sign_extend): New function.
13046 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
13047 (extendhisi2, extendpsisi2): Use it.
13048 (adjust_len) [sext]: New.
13050 2014-10-24 Martin Liska <mliska@suse.cz>
13052 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
13055 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13057 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
13058 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13059 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
13060 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13062 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13064 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
13066 * config/aarch64/aarch64.c (is_mem_p): Delete.
13067 (is_memory_op): Rename to...
13068 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
13069 (dep_between_memop_and_curr): Assert that the input is a SET.
13070 (aarch64_madd_needs_nop): Add comment. Do not call
13071 dep_between_memop_and_curr on NULL body.
13072 (aarch64_final_prescan_insn): Add comment.
13073 Include rtl-iter.h.
13075 2014-10-24 Richard Biener <rguenther@suse.de>
13077 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
13078 to genmatch BUILD_LIBS instead.
13080 2014-10-24 Richard Biener <rguenther@suse.de>
13082 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
13083 and build_call_expr_loc.
13084 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
13085 non_lvalue_loc to build it for GENERIC.
13086 (decision_tree::gen_generic): Add location argument to
13087 generic_simplify prototype.
13088 (capture_info): New class.
13089 (capture_info::capture_info): New constructor.
13090 (capture_info::walk_match): New method.
13091 (capture_info::walk_result): New method.
13092 (capture_info::walk_c_expr): New method.
13093 (dt_simplify::gen): Handle preserving side-effects for
13094 GENERIC code generation.
13095 (decision_tree::gen_generic): Do not reject operands
13096 with TREE_SIDE_EFFECTS.
13097 * generic-match.h: New file.
13098 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
13099 * match.pd: Add some constant folding patterns from fold-const.c.
13100 * fold-const.c: Include generic-match.h.
13101 (fold_unary_loc): Dispatch to generic_simplify.
13102 (fold_ternary_loc): Likewise.
13103 (fold_binary_loc): Likewise. Remove patterns now implemented
13104 by generic_simplify.
13105 * gimple-fold.c (replace_stmt_with_simplification): New function.
13106 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
13107 (no_follow_ssa_edges): New function.
13108 (fold_stmt): New overload with valueization hook. Use
13109 no_follow_ssa_edges for the overload without hook.
13110 (fold_stmt_inplace): Likewise.
13111 * gimple-fold.h (no_follow_ssa_edges): Declare.
13113 2014-10-24 Felix Yang <felix.yang@huawei.com>
13114 Jiji Jiang <jiangjiji@huawei.com>
13117 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
13118 (__LD3R_FUNC): Ditto.
13119 (__LD4R_FUNC): Ditto.
13120 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
13121 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
13122 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
13123 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
13124 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
13125 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
13126 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
13127 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
13128 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
13129 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
13130 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
13131 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
13132 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
13133 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
13134 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
13135 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
13136 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
13137 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
13138 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13139 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
13140 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
13142 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
13143 (aarch64_simd_ld3r<mode>): Likewise.
13144 (aarch64_simd_ld4r<mode>): Likewise.
13145 (aarch64_ld2r<mode>): New expand.
13146 (aarch64_ld3r<mode>): Likewise.
13147 (aarch64_ld4r<mode>): Likewise.
13149 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13151 * rtlanal.c (get_base_term): Handle SCRATCH.
13153 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13155 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
13158 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13160 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
13161 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
13162 (max_issue, choose_ready, sched_init): Update.
13164 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13166 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
13167 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
13168 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
13169 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
13170 (print_rank_for_schedule_stats): Print out elements of ready list that
13171 ended up on their respective places due to each of the sorting
13173 (ready_sort): Update.
13174 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
13175 (schedule_block): Update.
13177 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13179 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
13180 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
13181 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
13182 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
13183 (model_start_schedule): Update.
13184 (sched_pressure_start_bb): New static function. Calculate
13185 sched_class_regs_num.
13186 (schedule_block): Use it.
13187 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
13189 2014-10-24 Richard Biener <rguenther@suse.de>
13191 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
13192 host library and make sure to pull in the required libintl
13193 and libiconv dependencies.
13195 2014-10-24 Richard Biener <rguenther@suse.de>
13197 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
13199 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13202 * collect2.c (main): Filter out -fno-lto.
13204 2014-10-24 Martin Liska <mliska@suse.cz>
13206 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13207 division by zero in dumps.
13208 (sem_item_optimizer::merge_classes): Ditto.
13210 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
13212 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
13214 2014-10-23 Ian Lance Taylor <iant@google.com>
13216 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
13218 2014-10-23 Ian Lance Taylor <iant@google.com>
13220 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
13222 2014-10-23 Jakub Jelinek <jakub@redhat.com>
13225 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
13226 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
13227 instead of only handling autoinc in dest if it is a MEM.
13228 (vt_stack_adjustments): Fix up formatting.
13230 2014-10-23 DJ Delorie <dj@redhat.com>
13232 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
13233 independend of -mlarge.
13234 * config/msp430/constraints.md (Ys): Update comment.
13236 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
13240 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
13241 while it is pseudo.
13242 * dse.c (deletable_insn_p): Likewise.
13244 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
13246 * config/avr/avr.c: Fix GNU coding rules and typos.
13247 * config/avr/avr.h: Dito.
13248 * config/avr/avr-c.c: Dito.
13249 * config/avr/avr.md: Dito.
13251 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13253 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
13255 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
13257 (define_expand "abs<mode>2"): Ditto.
13259 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13261 * tree-core.h (tree_var_decl): Extend `function_code' field
13262 by one bit, move `regdecl_flag' field to ...
13263 (tree_decl_with_vis): Here.
13264 * tree.h (DECL_STATIC_CHAIN): Update struct name.
13266 2014-10-23 Richard Biener <rguenther@suse.de>
13268 * Makefile.in (BUILD_CPPLIB): Add.
13269 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
13272 2014-10-23 Richard Biener <rguenther@suse.de>
13274 * fold-const.c (fold_binary_loc): Preserve side-effects of
13275 X - X when simplifying to 0.
13276 * stor-layout.c (finish_bitfield_representative): Strip
13277 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
13279 2014-10-22 Richard Biener <rguenther@suse.de>
13280 Tobias Burnus <burnus@net-b.de>
13283 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
13285 2014-10-22 Dehao Chen <dehao@google.com>
13287 * auto-profile.c: Change order of header files.
13289 2014-10-22 Guozhi Wei <carrot@google.com>
13291 PR tree-optimization/63530
13292 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
13293 pointer alignment according to DR_MISALIGNMENT.
13295 2014-10-22 David Malcolm <dmalcolm@redhat.com>
13297 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
13299 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
13301 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
13302 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
13303 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
13304 * dominance.h: New. Add prototypes for dominance.c.
13305 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
13306 * cfghooks.h: (struct profile_record) Relocate here.
13307 Relocate 2 prototypes from basic-block.h.
13308 * basic-block.h: Move prototypes and struct to new header files.
13309 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
13310 * rtl.h: Move a few prototypes to new header files.
13311 * cfgcleanup.c (merge_memattrs): Make static.
13312 * genopinit.c (main): Add predict.h to list of includes.
13313 * predict.h: Update prototype list to match predict.c.
13314 * predict.c (maybe_hot_count_p): Export.
13315 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
13316 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
13317 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
13318 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
13319 * profile.h: Adjust prototypes.
13320 * ifcvt.h: New. Relocate struct ce_if_block here.
13321 * ifcvt.c: Include ifcvt.h.
13322 * config/frv/frv.c: Include ifcvt.h.
13323 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
13325 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13327 * lra.c (lra): Remove call to recog_init.
13328 * config/i386/i386.md (preferred_for_speed): New attribute
13329 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
13330 "enabled". Remove check for sched1.
13332 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13334 * recog.h (recog_data_d): Remove enabled_alternatives.
13335 * recog.c (extract_insn): Don't set it.
13336 * reload.c (find_reloads): Call get_enabled_alternatives.
13338 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13340 * recog.h (constrain_operands): Add an alternative_mask parameter.
13341 (constrain_operands_cached): Likewise.
13342 (get_preferred_alternatives): Declare new form.
13343 * recog.c (get_preferred_alternatives): New bb-taking instance.
13344 (constrain_operands): Take the set of available alternatives as
13346 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
13347 (extract_constrain_insn_cached): Update calls to constrain_operands.
13348 * caller-save.c (reg_save_code): Likewise.
13349 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13350 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13351 * ree.c (combine_reaching_defs): Likewise.
13352 * reload.c (can_reload_into): Likewise.
13353 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
13354 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
13355 (emit_insn_if_valid_for_reload): Likewise.
13356 * reorg.c (fill_slots_from_thread): Likewise.
13357 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
13358 * config/pa/pa.c (pa_can_combine_p): Likewise.
13359 * config/rl78/rl78.c (insn_ok_now): Likewise.
13360 * config/sh/sh.md (define_peephole2): Likewise.
13361 * final.c (final_scan_insn): Update call to constrain_operands_cached.
13363 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13365 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
13367 * genattr.c (main): Handle "preferred_for_size" and
13368 "preferred_for_speed" in the same way as "enabled".
13369 * recog.h (bool_attr): New enum.
13370 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
13371 (get_preferred_alternatives, check_bool_attrs): Declare.
13372 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
13373 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
13375 (get_enabled_alternatives): Use get_bool_attr_mask.
13376 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
13377 instead of recog_data.enabled_alternatives.
13378 * ira.c (ira_setup_alts): Likewise.
13379 * postreload.c (reload_cse_simplify_operands): Likewise.
13380 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13381 * ira-lives.c (preferred_alternatives): New variable.
13382 (process_bb_node_lives): Set it.
13383 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
13384 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
13385 of recog_data.enabled_alternatives.
13386 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
13387 to preferred_alternatives.
13388 * lra-constraints.c (process_alt_operands): Update accordingly.
13389 * lra.c (lra_set_insn_recog_data): Likewise.
13390 (lra_update_insn_recog_data): Assert check_bool_attrs.
13392 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13394 * recog.h (extract_constrain_insn): Declare.
13395 * recog.c (extract_constrain_insn): New function.
13396 * lra.c (check_rtl): Use it.
13397 * postreload.c (reload_cse_simplify_operands): Likewise.
13398 * reg-stack.c (check_asm_stack_operands): Likewise.
13399 (subst_asm_stack_regs): Likewise.
13400 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13401 * regrename.c (build_def_use): Likewise.
13402 * sel-sched.c (get_reg_class): Likewise.
13403 * config/arm/arm.c (note_invalid_constants): Likewise.
13404 * config/s390/predicates.md (execute_operation): Likewise.
13406 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13407 Yury Gribov <y.gribov@samsung.com>
13409 * common.opt (flag_sanitize_recover): New variable.
13410 (fsanitize-recover): Remove Var/Init, deprecate.
13411 (fsanitize-recover=): New option.
13412 * doc/invoke.texi (fsanitize-recover): Update docs.
13413 * opts.c (finish_options): Use opts->x_flag_sanitize
13414 instead of flag_sanitize. Prohibit -fsanitize-recover
13415 for anything besides UBSan. Formatting.
13416 (common_handle_option): Handle OPT_fsanitize_recover_
13417 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13418 instead of flag_sanitize.
13419 * asan.c (pass_sanopt::execute): Fix up formatting.
13420 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
13421 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
13422 instrument_bool_enum_load, ubsan_instrument_float_cast,
13423 instrument_nonnull_arg, instrument_nonnull_return): Check
13424 bits in flag_sanitize_recover bitmask instead of
13425 flag_sanitize_recover as bool flag.
13427 2014-10-22 Jiong Wang <jiong.wang@arm.com>
13429 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
13431 2014-10-22 Renlin Li <renlin.li@arm.com>
13433 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
13434 __ARM_FEATURE_IDIV__.
13436 2014-10-22 Richard Biener <rguenther@suse.de>
13438 * Makefile.in (s-match): Adjust dependencies to only catch
13441 2014-10-22 Richard Biener <rguenther@suse.de>
13442 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
13444 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
13445 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
13446 (gimple-match.c): Generate by triggering s-match.
13447 (generic-match.c): Likewise.
13448 (s-match): Rule to build gimple-match.c and generic-match.c
13449 by running the genmatch generator program.
13450 (build/hash-table.o): Dependencies to build hash-table.c for the host.
13451 (build/genmatch.o): Dependencies to build genmatch.
13452 (genprog): Add match.
13453 (build/genmatch): Likewise.
13454 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
13455 * generic-match-head.c: New file.
13456 * gimple-match-head.c: Likewise.
13457 * gimple-match.h: Likewise.
13458 * genmatch.c: Likewise.
13459 * match.pd: Likewise.
13460 * builtins.h (fold_builtin_n): Export.
13461 * builtins.c (fold_builtin_n): Likewise.
13462 * gimple-fold.h (gimple_build): Declare various overloads.
13463 (gimple_simplify): Likewise.
13464 (gimple_convert): Re-implement in terms of gimple_build.
13465 * gimple-fold.c (gimple_convert): Remove.
13466 (gimple_build): New functions.
13467 * doc/match-and-simplify.texi: New file.
13468 * doc/gccint.texi: Add menu item Match and Simplify and include
13469 match-and-simplify.texi.
13471 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13474 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
13475 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
13476 even for just TARGET_AVX2, not only for
13477 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
13478 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
13479 otherwise build it using concatenation of 256-bit
13481 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
13482 avx512 broadcast patterns.
13483 (vec_dup<mode>): Likewise. For avx2 use
13484 v<sseintprefix>broadcast<bcstscalarsuff> instead of
13485 vbroadcast<ssescalarmodesuffix>.
13486 (AVX2_VEC_DUP_MODE): New mode iterator.
13487 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
13488 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
13491 * config/i386/i386.c (ix86_pic_register_p): Also return
13492 true if x is a hard register with ORIGINAL_REGNO equal to
13493 pic_offset_table_rtx pseudo REGNO.
13494 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
13495 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
13497 2014-10-22 Alan Modra <amodra@gmail.com>
13499 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
13500 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
13501 (gcc_obstack_init): Use obstack_specify_allocation in place of
13503 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
13504 (regexp_representation): Likewise.
13505 * godump.c (go_output_type): Likewise.
13507 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
13509 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
13510 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
13511 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
13513 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13515 * doc/invoke.texi (pedantic-errors): Explain better.
13517 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
13518 Vidya Praveen <vidya.praveen@atmel.com>
13519 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
13520 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
13521 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
13523 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
13524 __MEMX for avrtiny.
13525 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
13526 (avr_nonconst_pointer_addrspace): Likewise.
13527 * config/avr/avr.h (AVR_HAVE_LPM): Define.
13529 Added AVRTINY architecture to avr target.
13530 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
13531 (base_arch_s): member added for AVRTINY architecture.
13532 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
13533 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
13534 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
13535 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
13536 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
13537 in callee saved register list.
13538 (avr_option_override): CCP address updated for AVRTINY.
13539 (avr_init_expanders): tmp and zero rtx initialized as per arch.
13540 Reset avr_have_dimode if AVRTINY.
13541 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
13542 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
13543 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
13544 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
13545 (expand_epilogue): Likewise.
13546 (avr_print_operand): Print CCP address in case of AVRTINY also.
13548 (function_arg_regno_p): Check different register list for arguments
13550 (init_cumulative_args): Check for AVRTINY to update number of argument
13552 (tiny_valid_direct_memory_access_range): New function. Return false if
13553 direct memory access range is not in accepted range for AVRTINY.
13554 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
13555 indirect load (with displacement) for AVRTINY.
13556 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
13557 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
13558 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
13559 indirect load (no displacement) for AVRTINY.
13560 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
13561 indirect load (with displacement) for AVRTINY.
13562 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
13563 indirect load for pre-decrement address.
13564 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
13565 functions. Update instruction length for AVRTINY.
13566 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
13568 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
13569 (out_movsi_r_mr): Likewise, for SImode.
13570 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
13571 indirect store (no displacement) for AVRTINY.
13572 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
13573 indirect store (with displacement) for AVRTINY.
13574 (out_movsi_mr_r): Emit out insn for IO address store. Update store
13575 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
13577 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
13578 indirect load (no displacement) for PSImode in AVRTINY.
13579 (avr_out_load_psi_reg_disp_tiny): New function to handle register
13580 indirect load (with displacement) for PSImode in AVRTINY.
13581 (avr_out_load_psi): Call PSImode register indirect load functions for
13582 AVRTINY. Update instruction length for AVRTINY.
13583 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
13584 indirect store (no displacement) for PSImode in AVRTINY.
13585 (avr_out_store_psi_reg_disp_tiny): New function to handle register
13586 indirect store (with displacement) for PSImode in AVRTINY.
13587 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
13588 register indirect store functions for AVRTINY.
13589 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
13590 register indirect store (with displacement) for AVRTINY.
13591 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
13592 register indirect store function for QImode in AVRTINY.
13593 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
13594 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
13595 indirect store (no displacement) for HImode in AVRTINY.
13596 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
13597 indirect store (with displacement) for HImode in AVRTINY.
13598 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
13599 indirect store for post-increment address in HImode.
13600 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
13601 register indirect store function for HImode in AVRTINY.
13602 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
13603 in case of AVRTINY.
13604 (order_regs_for_local_alloc): Updated register allocation order for
13606 (avr_conditional_register_usage): New function. It is a target hook
13607 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
13608 used registers list and register allocation order for AVRTINY.
13609 (avr_return_in_memory): Update return value size for AVRTINY.
13610 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
13611 for AVRTINY arch and tiny program memory base address.
13612 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
13613 (avr_texinfo): Added description for AVRTINY arch.
13614 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
13615 STATIC_CHAIN_REGNUM for AVRTINY.
13616 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
13617 * config/avr/avr.md: Added constants for tmp/ zero registers in
13618 AVRTINY. Attributes for AVRTINY added.
13619 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
13620 memory access range.
13621 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
13622 in AVRTINY memory access range.
13623 (*mov<mode>): Likewise for HImode and SImode.
13624 (*movsf): Likewise for SFmode.
13625 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
13627 * config/avr/avr-protos.h: Added function prototype for
13628 tiny_valid_direct_memory_access_range.
13629 * config/avr/avr-tables.opt: Regenerate.
13630 * gcc/config/avr/t-multilib: Regenerate.
13631 * doc/avr-mmcu.texi: Regenerate.
13633 2014-10-21 Andrew Pinski <apinski@cavium.com>
13635 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
13636 available option also.
13637 * config/aarch64/aarch64-cost-tables.h: New file.
13638 * config/aarch64/aarch64-cores.def (thunderx): New core.
13639 * config/aarch64/aarch64-tune.md: Regenerate.
13640 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
13641 of config/arm/aarch-cost-tables.h.
13642 (thunderx_regmove_cost): New variable.
13643 (thunderx_tunings): New variable.
13645 2014-10-21 Dehao Chen <dehao@google.com>
13647 * auto-profile.c: New file.
13648 * auto-profile.h: New file.
13649 * basic-block.h (maybe_hot_count_p): New export func.
13650 (add_working_set): New export func.
13651 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
13652 (GCOV_TAG_AFDO_FUNCTION): Likewise.
13653 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
13654 * opts.c (enable_fdo_optimizations): New func.
13655 (common_handle_option): Handle -fauto-profile flag.
13656 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
13657 (class pass_early_inline): Export early_inliner.
13658 (early_inliner): Likewise.
13659 (pass_early_inline::execute): Likewise.
13660 * ipa-inline.h (early_inliner): Likewise.
13661 * predict.c (maybe_hot_count_p): New export func.
13662 (counts_to_freqs): AutoFDO logic.
13663 (rebuild_frequencies): Likewise.
13664 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
13665 * profile.c (add_working_set): New func.
13666 * Makefile.in (auto-profile.o): New object file.
13667 * passes.def (pass_ipa_auto_profile): New pass.
13668 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
13669 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
13670 * toplev.c (compile_file): AutoFDO logic.
13671 * doc/invoke.texi (-fauto-profile): New doc.
13672 * coverage.c (coverage_init): AutoFDO logic.
13673 * common.opt (-fauto-profile): New flag.
13674 * timevar.def (TV_IPA_AUTOFDO): New tag.
13675 * value-prof.c (gimple_alloc_histogram_value): New export func.
13676 (check_ic_target): Likewise.
13677 * value-prof.h (gimple_alloc_histogram_value): Likewise.
13678 (check_ic_target): Likewise.
13680 2014-10-21 David Malcolm <dmalcolm@redhat.com>
13682 * cgraph.c (cgraph_c_finalize): New function.
13683 * cgraph.h (cgraph_c_finalize): New prototype.
13684 (cgraphunit_c_finalize): New prototype.
13685 * cgraphunit.c (first_analyzed): Move from analyze_functions
13687 (first_analyzed_var): Likewise.
13688 (analyze_functions): Move static variables into file-scope.
13689 (cgraphunit_c_finalize): New function.
13690 * diagnostic.c (diagnostic_finish): Free the memory for
13691 context->classify_diagnostic and context->printer, running the
13692 destructor for the latter.
13693 (bt_stop): Use toplev::main.
13694 * dwarf2out.c (dwarf2out_finalize): New function.
13695 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
13696 * gcse.c (gcse_c_finalize): New function.
13697 * gcse.h (gcse_c_finalize): New prototype.
13698 * ggc-page.c (init_ggc): Make idempotent.
13699 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
13700 * ipa-cp.c (ipa_cp_c_finalize): New function.
13701 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
13702 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
13703 a field of class pass_ipa_pure_const.
13704 (node_duplication_hook_holder): Likewise.
13705 (node_removal_hook_holder): Likewise.
13706 (register_hooks): Convert to method...
13707 (pass_ipa_pure_const::register_hooks): ...here, converting
13708 static variable init_p into...
13709 (pass_ipa_pure_const::init_p): ...new field.
13710 (pure_const_generate_summary): Update invocation of
13711 register_hooks to invoke as a method of current_pass.
13712 (pure_const_read_summary): Likewise.
13713 (propagate): Convert to...
13714 (pass_ipa_pure_const::execute): ...method.
13715 * ipa-reference.c (ipa_init): Move static bool init_p from here
13717 (ipa_init_p): New file-scope variable, so that it can be reset
13718 when repeatedly invoking the compiler within one process by...
13719 (ipa_reference_c_finalize): New function.
13720 * ipa-reference.h (ipa_reference_c_finalize): New.
13721 * main.c (main): Replace invocation of toplev_main with
13722 construction of a toplev instance, and call its "main" method.
13723 * params.c (global_init_params): Add an assert that
13724 params_finished is false.
13725 (params_c_finalize): New.
13726 * params.h (params_c_finalize): New.
13727 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
13728 invoking generate_summary, for the benefit of pass_ipa_pure_const.
13729 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
13730 before calling write_summary hook.
13731 (ipa_write_optimization_summaries_1): Likewise when calling
13732 write_optimization_summary hook.
13733 (ipa_read_summaries_1): Likewise for read_summary hook.
13734 (ipa_read_optimization_summaries_1): Likewise for
13735 read_optimization_summary hook.
13736 (execute_ipa_stmt_fixups): Likewise.
13737 * stringpool.c (init_stringpool): Clean up if we're called more
13739 * timevar.c (timevar_init): Ignore repeated calls.
13740 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
13742 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
13743 (initialize_rtl): Move static local "initialized_once"
13744 into file scope, and rename to...
13745 (rtl_initialized): New variable.
13746 (do_compile): Move timevar initialization from here to
13747 toplev::start_timevars.
13748 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
13749 toplev::finalize): New functions.
13750 (toplev_main): Rename to...
13751 (toplev::main): ...this.
13752 * toplev.h (class toplev): New class.
13754 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13756 * loop-doloop.c: Include loop-unroll.h.
13758 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13760 * cfg.h: New. Header file for cfg.c.
13761 * cfganal.h: New. Header file for cfganal.c.
13762 * lcm.h: New. Header file for lcm.c.
13763 * loop-unroll.h: New. Header file for loop-unroll.h.
13764 * cfgloop.h: (unroll_loops): Remove prototype.
13765 * basic-block.h: Move prototypes and structs to new header files.
13766 Include cfg.h, cfganal.h, and lcm.h.
13767 * loop-init.c: Include loop-unroll.h.
13768 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
13769 * modulo-sched.c: Include loop-unroll.h.
13771 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13773 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
13774 MARKER_BYTE_UNKNOWN markers when handling casts.
13776 2014-10-21 Richard Biener <rguenther@suse.de>
13778 * tree-ssa-phiopt.c (value_replacement): Properly verify we
13779 are the non-singleton PHI.
13781 2014-10-21 Jakub Jelinek <jakub@redhat.com>
13783 PR tree-optimization/63563
13784 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
13785 if either dra or drb stmts are not normal loads/stores.
13787 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
13789 * config/i386/i386.c (expand_vec_perm_1): Fix
13790 expand_vec_perm_palignr case.
13791 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
13794 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
13796 * cfgloopanal.c (seq_cost): Delete.
13797 * rtl.h (seq_cost): New prototype.
13798 * rtlanal.c (seq_cost): New function.
13799 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
13801 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
13803 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
13804 * basic-block.h: Remove prototypes for cfgrtl.c.
13805 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
13806 prototypes to cfgrtl.h.
13807 * profile.h (profile_info): Add extern export declaration.
13808 * rtl.h: Remove prototypes for cfgrtl.h.
13809 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
13810 * ipa-inline.c: Include profile.h.
13811 * loop-unroll.c: Ditto.
13812 * modulo-sched.c: Ditto.
13813 * postreload-gcse.c: Ditto.
13814 * predict.c: Ditto.
13815 * sched-ebb.c: Ditto.
13816 * sched-rgn.c: Ditto.
13818 * tree-ssa-loop-ivcanon.c: Ditto.
13820 2014-10-20 Richard Biener <rguenther@suse.de>
13822 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
13823 operands to get a def operand kind match. Signal mismatches
13824 to the parent so we can try swapping its operands.
13825 (vect_build_slp_tree): Try swapping operands if they have
13826 a mismatched operand kind.
13828 2014-10-20 Alan Modra <amodra@gmail.com>
13831 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
13832 Increase "ops" array size. Correct array size tests. Init
13833 n_constants in loop. Break out of innermost loop when finding
13834 a trivial CONST expression.
13836 2014-10-20 Martin Liska <mliska@suse.cz>
13839 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
13840 Gimple tempate string is compared.
13842 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
13844 * varasm.c (const_alias_set): Remove.
13845 (init_varasm_once): Remove initialization of const_alias_set.
13846 (build_constant_desc): Do not set alias set to const_alias_set.
13848 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
13850 * configure: Regenerate.
13851 * configure.ac: Move the test for section attribute specifier "e" in GAS
13852 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
13853 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
13854 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
13855 ifdef HAVE_GAS_SECTION_EXCLUDE.
13857 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
13859 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
13860 match_operand expression.
13862 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13863 David Edelsohn <dje.gcc@gmail.com>
13865 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
13867 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13869 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13871 * doc/invoke.texi (Options to Request or Suppress Warnings):
13872 Explain options precedence.
13873 (Wtrampolines): Do not indent paragraph.
13875 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
13877 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
13878 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
13879 (pa_jump_in_call_delay): Likewise.
13880 * config/pa/pa.c (pa_option_override): Remove jump in call delay
13882 (pa_output_millicode_call): Remove support for jump in call delay.
13883 (pa_output_call): Likewise.
13884 (pa_jump_in_call_delay): Delete.
13885 (pa_following_call): Likewise.
13886 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
13887 (uncond_branch): Remove following call check from attribute length.
13889 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
13892 * config/sh/sh-modes.def (PSI): Remove.
13893 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
13894 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
13895 (sh_reorg): Remove commented out FPSCR code.
13896 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
13897 insn instead of move insn.
13898 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
13899 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
13901 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
13902 (sh1_builtin_p): Uncomment.
13903 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
13904 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
13905 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
13906 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
13907 (general_movsrc_operand, general_movdst_operand): Disallow
13909 * config/sh/sh.md (FPSCR_FR): New constant.
13910 (push_fpscr): Emit sts_fpscr insn.
13911 (pop_fpscr): Emit lds_fpscr_insn.
13912 (movsi_ie): Disallow FPSCR operands.
13913 (fpu_switch, unnamed related split, extend_psi_si,
13914 truncate_si_psi): Remove insns.
13915 (lds_fpscr, sts_fpscr): New insns.
13916 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
13918 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
13920 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
13921 (clone_inlined_nodes): Do not overwrite the clone if above predicate
13924 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
13926 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
13927 (expand_vec_perm_d): Ditto.
13928 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
13929 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
13931 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
13932 (ix86_expand_sse_unpack): Handle V64QImode.
13933 (expand_vec_perm_blend): Update conditions for TARGET, handle
13934 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
13935 (expand_vec_perm_pshufb): Handle V64QImode.
13936 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
13937 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
13938 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
13939 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
13940 (ix86_expand_vecop_qihi): Handle V64QImode.
13941 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
13942 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
13943 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
13944 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
13945 (mul<mode>3): Use VI1_AVX512.
13946 (<sse2_avx2>_packsswb): Ditto.
13947 (<sse2_avx2>_packuswb): Ditto.
13948 (<ssse3_avx2>_pshufb<mode>3): Ditto.
13949 (<shift_insn><mode>3): Ditto.
13951 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
13953 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
13954 conditions to fix bootstrap.
13956 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
13958 gcc-plugin.h: Add tm.h and flattened includes from function.h.
13960 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13961 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13962 Anna Tikhonova <anna.tikhonova@intel.com>
13963 Ilya Tocar <ilya.tocar@intel.com>
13964 Andrey Turetskiy <andrey.turetskiy@intel.com>
13965 Ilya Verbin <ilya.verbin@intel.com>
13966 Kirill Yukhin <kirill.yukhin@intel.com>
13967 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13969 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
13970 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
13971 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
13972 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
13973 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
13974 (define_expand "vec_init<mode>"): Use VF48_I1248.
13976 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13978 Anna Tikhonova <anna.tikhonova@intel.com>
13979 Ilya Tocar <ilya.tocar@intel.com>
13980 Andrey Turetskiy <andrey.turetskiy@intel.com>
13981 Ilya Verbin <ilya.verbin@intel.com>
13982 Kirill Yukhin <kirill.yukhin@intel.com>
13983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13985 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
13986 expand_sse2_mulvxdi3.
13988 2014-10-17 Richard Biener <rguenther@suse.de>
13990 * fold-const.c (fold_comparison): Remove redundant constant
13991 folding and operand swapping.
13992 (fold_binary_loc): Do comparison operand swapping here.
13993 (fold_ternary_loc): Canonicalize operand order for
13994 commutative ternary operations.
13995 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
13998 2014-10-17 Jakub Jelinek <jakub@redhat.com>
14000 PR tree-optimization/63464
14001 * gimple.h (gimple_seq_discard): New prototype.
14002 * gimple.c: Include stringpool.h and tree-ssanames.h.
14003 (gimple_seq_discard): New function.
14004 * optabs.h (lshift_cheap_p): New prototype.
14005 * optabs.c (lshift_cheap_p): New function, moved from...
14006 * tree-switch-conversion.c (lshift_cheap_p): ... here.
14007 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
14008 (reassoc_branch_fixups): New variable.
14009 (update_range_test): Add otherrangep and seq arguments.
14010 Unshare exp. If otherrange is NULL, use for other ranges
14011 array of pointers pointed by otherrangep instead.
14012 Emit seq before gimplified statements for tem.
14013 (optimize_range_tests_diff): Adjust update_range_test
14015 (optimize_range_tests_xor): Likewise. Fix up comment.
14016 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
14018 (optimize_range_tests): Adjust update_range_test caller.
14019 Call optimize_range_tests_to_bit_test.
14020 (branch_fixup): New function.
14021 (execute_reassoc): Call branch_fixup.
14023 PR tree-optimization/63302
14024 * tree-ssa-reassoc.c (optimize_range_tests_xor,
14025 optimize_range_tests_diff): Use !integer_pow2p () instead of
14028 2014-10-17 Martin Liska <mliska@suse.cz>
14030 * ipa-icf.c (sem_function::merge): Local flags are set to false
14031 to enforce equal calling convention to be used.
14032 * opts.c (common_handle_option): Indentation fix.
14034 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
14036 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
14038 2014-10-17 Tom de Vries <tom@codesourcery.com>
14040 PR rtl-optimization/61605
14041 * regcprop.c (copyprop_hardreg_forward_1): Use
14042 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
14044 2014-10-17 Tom de Vries <tom@codesourcery.com>
14046 PR rtl-optimization/61605
14047 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.
14048 Don't notice stores for noops. Don't regard noops as copies.
14050 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
14052 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
14053 register in a special way.
14054 (__cpuid_count): Ditto.
14055 * config/i386/driver-i386.h: Protect with
14056 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
14057 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
14058 is required to compile the function.
14060 2014-10-16 DJ Delorie <dj@redhat.com>
14062 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
14065 * config/rs6000/rs6000-c.c (rid_int128): New.
14066 (rs6000_macro_to_expand): Use instead of RID_INT128.
14068 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
14070 * function.h: Flatten file. Remove includes, adjust prototypes to
14071 reflect only what is in function.h.
14072 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14073 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
14075 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
14076 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
14077 prototypes to predict.h.
14078 (init_varasm_status): Move prototype to varasm.h.
14079 * expr.h: Adjust include files.
14080 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14081 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
14083 (locate_and_pad_parm): Move prototype to function.h.
14084 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
14085 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
14086 assign_temp, reposition_prologue_and_epilogue_notes,
14087 prologue_epilogue_contains, sibcall_epilogue_contains,
14088 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
14089 set_return_jump_label): Move prototypes to function.h.
14090 * predict.h (optimize_function_for_size_p,
14091 optimize_function_for_speed_p): Relocate prototypes from function.h.
14092 * shrink-wrap.h (emit_return_into_block, active_insn_between,
14093 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
14095 * varasm.h (init_varasm_status): Relocate prototype from function.h.
14096 * genattrtab.c (write_header): Add predict.h to include list.
14097 * genconditions.c (write_header): Add predict.h to include list.
14098 * genemit.c (main): Adjust header file includes.
14099 * gengtype.c (ifiles): Add flattened function.h header files.
14100 * genoutput.c (output_prologue): Add predict.h to include list.
14101 * genpreds.c (write_insn_preds_c): Adjust header file includes.
14102 * genrecog.c (write_header): Add flattened function.h header files.
14103 * alias.c: Adjust include files.
14104 * auto-inc-dec.c: Likewise.
14105 * basic-block.h: Likewise.
14106 * bb-reorder.c: Likewise.
14107 * bt-load.c: Likewise.
14108 * builtins.c: Likewise.
14109 * caller-save.c: Likewise.
14110 * calls.c: Likewise.
14111 * cfgbuild.c: Likewise.
14112 * cfgcleanup.c: Likewise.
14113 * cfgexpand.c: Likewise.
14114 * cfgloop.c: Likewise.
14115 * cfgloop.h: Likewise.
14116 * cfgrtl.c: Likewise.
14117 * cgraph.h: Likewise.
14118 * cgraphclones.c: Likewise.
14119 * cgraphunit.c: Likewise.
14120 * combine-stack-adj.c: Likewise.
14121 * combine.c: Likewise.
14122 * coverage.c: Likewise.
14123 * cprop.c: Likewise.
14125 * cselib.c: Likewise.
14126 * dbxout.c: Likewise.
14128 * df-core.c: Likewise.
14129 * df-problems.c: Likewise.
14130 * df-scan.c: Likewise.
14131 * dojump.c: Likewise.
14132 * dwarf2cfi.c: Likewise.
14133 * dwarf2out.c: Likewise.
14134 * emit-rtl.c: Likewise.
14135 * except.c: Likewise.
14136 * explow.c: Likewise.
14137 * expr.c: Likewise.
14138 * final.c: Likewise.
14139 * function.c: Likewise.
14140 * gcse.c: Likewise.
14141 * gimple-fold.c: Likewise.
14142 * gimple-low.c: Likewise.
14143 * gimple-streamer.h: Likewise.
14144 * haifa-sched.c: Likewise.
14145 * ifcvt.c: Likewise.
14147 * jump.c: Likewise.
14149 * loop-invariant.c: Likewise.
14150 * lra-assigns.c: Likewise.
14151 * lra-coalesce.c: Likewise.
14152 * lra-constraints.c: Likewise.
14153 * lra-eliminations.c: Likewise.
14154 * lra-lives.c: Likewise.
14155 * lra-spills.c: Likewise.
14157 * lto-cgraph.c: Likewise.
14158 * lto-section-in.c: Likewise.
14159 * lto-section-out.c: Likewise.
14160 * lto-streamer-in.c: Likewise.
14161 * lto-streamer-out.c: Likewise.
14162 * mode-switching.c: Likewise.
14163 * modulo-sched.c: Likewise.
14164 * omp-low.c: Likewise.
14165 * optabs.c: Likewise.
14166 * passes.c: Likewise.
14167 * postreload-gcse.c: Likewise.
14168 * postreload.c: Likewise.
14169 * predict.c: Likewise.
14170 * profile.c: Likewise.
14171 * recog.c: Likewise.
14173 * reg-stack.c: Likewise.
14174 * regcprop.c: Likewise.
14175 * reginfo.c: Likewise.
14176 * regrename.c: Likewise.
14177 * reload.c: Likewise.
14178 * reload1.c: Likewise.
14179 * reorg.c: Likewise.
14180 * resource.c: Likewise.
14181 * rtlanal.c: Likewise.
14182 * sched-deps.c: Likewise.
14183 * sched-ebb.c: Likewise.
14184 * sched-rgn.c: Likewise.
14185 * sel-sched-dump.c: Likewise.
14186 * sel-sched-ir.c: Likewise.
14187 * sel-sched.c: Likewise.
14188 * shrink-wrap.c: Likewise.
14189 * simplify-rtx.c: Likewise.
14190 * statistics.c: Likewise.
14191 * stmt.c: Likewise.
14192 * stor-layout.c: Likewise.
14193 * store-motion.c: Likewise.
14194 * symtab.c: Likewise.
14195 * targhooks.c: Likewise.
14196 * toplev.c: Likewise.
14197 * trans-mem.c: Likewise.
14198 * tree-cfg.c: Likewise.
14199 * tree-cfgcleanup.c: Likewise.
14200 * tree-dfa.c: Likewise.
14201 * tree-eh.c: Likewise.
14202 * tree-inline.c: Likewise.
14203 * tree-into-ssa.c: Likewise.
14204 * tree-nested.c: Likewise.
14205 * tree-nrv.c: Likewise.
14206 * tree-profile.c: Likewise.
14207 * tree-ssa-alias.c: Likewise.
14208 * tree-ssa-ccp.c: Likewise.
14209 * tree-ssa-copy.c: Likewise.
14210 * tree-ssa-copyrename.c: Likewise.
14211 * tree-ssa-dom.c: Likewise.
14212 * tree-ssa-operands.c: Likewise.
14213 * tree-ssa-propagate.c: Likewise.
14214 * tree-ssa-structalias.c: Likewise.
14215 * tree-ssa-tail-merge.c: Likewise.
14216 * tree-ssa-threadedge.c: Likewise.
14217 * tree-ssa-threadupdate.c: Likewise.
14218 * tree-ssa-uncprop.c: Likewise.
14219 * tree-ssa-uninit.c: Likewise.
14220 * tree-ssa.c: Likewise.
14221 * tree-stdarg.c: Likewise.
14222 * tree-tailcall.c: Likewise.
14223 * tree.c: Likewise.
14224 * tsan.c: Likewise.
14225 * valtrack.c: Likewise.
14226 * varasm.c: Likewise.
14227 * vmsdbgout.c: Likewise.
14229 * config/aarch64/aarch64.c: Add flattened includes from function.h.
14230 * config/alpha/alpha.c: Likewise.
14231 * config/arc/arc.c: Likewise.
14232 * config/arm/arm.c: Likewise.
14233 * config/avr/avr-log.c: Likewise.
14234 * config/avr/avr.c: Likewise.
14235 * config/bfin/bfin.c: Likewise.
14236 * config/c6x/c6x.c: Likewise.
14237 * config/cr16/cr16.c: Likewise.
14238 * config/cris/cris.c: Likewise.
14239 * config/darwin.c: Likewise.
14240 * config/epiphany/epiphany.c: Likewise.
14241 * config/epiphany/mode-switch-use.c: Likewise.
14242 * config/epiphany/resolve-sw-modes.c: Likewise.
14243 * config/fr30/fr30.c: Likewise.
14244 * config/frv/frv.c: Likewise.
14245 * config/h8300/h8300.c: Likewise.
14246 * config/i386/i386.c: Likewise.
14247 * config/ia64/ia64.c: Likewise.
14248 * config/iq2000/iq2000.c: Likewise.
14249 * config/lm32/lm32.c: Likewise.
14250 * config/m32c/m32c.c: Likewise.
14251 * config/m32r/m32r.c: Likewise.
14252 * config/m68k/m68k.c: Likewise.
14253 * config/mcore/mcore.c: Likewise.
14254 * config/mep/mep-pragma.c: Likewise.
14255 * config/mep/mep.c: Likewise.
14256 * config/microblaze/microblaze.c: Likewise.
14257 * config/mips/mips.c: Likewise.
14258 * config/mmix/mmix.c: Likewise.
14259 * config/mn10300/mn10300.c: Likewise.
14260 * config/moxie/moxie.c: Likewise.
14261 * config/msp430/msp430.c: Likewise.
14262 * config/nds32/nds32-cost.c: Likewise.
14263 * config/nds32/nds32-fp-as-gp.c: Likewise.
14264 * config/nds32/nds32-intrinsic.c: Likewise.
14265 * config/nds32/nds32-isr.c: Likewise.
14266 * config/nds32/nds32-md-auxiliary.c: Likewise.
14267 * config/nds32/nds32-memory-manipulation.c: Likewise.
14268 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14269 * config/nds32/nds32-predicates.c: Likewise.
14270 * config/nds32/nds32.c: Likewise.
14271 * config/nios2/nios2.c: Likewise.
14272 * config/pa/pa.c: Likewise.
14273 * config/pdp11/pdp11.c: Likewise.
14274 * config/rl78/rl78.c: Likewise.
14275 * config/rs6000/rs6000.c: Likewise.
14276 * config/rx/rx.c: Likewise.
14277 * config/s390/s390.c: Likewise.
14278 * config/score/score.c: Likewise.
14279 * config/sh/sh.c: Likewise.
14280 * config/sparc/sparc.c: Likewise.
14281 * config/spu/spu.c: Likewise.
14282 * config/stormy16/stormy16.c: Likewise.
14283 * config/tilegx/tilegx.c: Likewise.
14284 * config/tilepro/tilepro.c: Likewise.
14285 * config/v850/v850.c: Likewise.
14286 * config/vax/vax.c: Likewise.
14287 * config/xtensa/xtensa.c: Likewise.
14289 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
14291 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
14292 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
14294 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14296 * config/sh/sh-protos.h (fldi_ok): Remove.
14297 * config/sh/sh.c (fldi_ok): Likewise.
14298 (sh_secondary_reload): Don't use fldi_ok.
14299 * config/sh/constraints.md (G constraint, H constraint): Don't use
14302 2014-10-16 Martin Liska <mliska@suse.cz>
14304 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
14305 Cast to unsigned long.
14306 (sem_item_optimizer::dump_cong_classes): Likewise.
14308 2014-10-16 Tom de Vries <tom@codesourcery.com>
14310 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
14311 with SSA_NAME_IN_FREELIST.
14313 2014-10-16 Richard Biener <rguenther@suse.de>
14315 PR middle-end/63554
14316 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
14317 (fold_builtin_strncat_chk): Move ...
14318 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
14319 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
14321 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14324 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
14327 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14328 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14329 Anna Tikhonova <anna.tikhonova@intel.com>
14330 Ilya Tocar <ilya.tocar@intel.com>
14331 Andrey Turetskiy <andrey.turetskiy@intel.com>
14332 Ilya Verbin <ilya.verbin@intel.com>
14333 Kirill Yukhin <kirill.yukhin@intel.com>
14334 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14336 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
14339 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14340 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14341 Anna Tikhonova <anna.tikhonova@intel.com>
14342 Ilya Tocar <ilya.tocar@intel.com>
14343 Andrey Turetskiy <andrey.turetskiy@intel.com>
14344 Ilya Verbin <ilya.verbin@intel.com>
14345 Kirill Yukhin <kirill.yukhin@intel.com>
14346 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14348 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
14349 V16SI, V32HI, V64QI modes.
14351 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14354 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
14355 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
14357 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
14358 to match fp insn patterns.
14359 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
14361 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
14362 expand_df_unop, expand_df_binop): Remove.
14363 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
14364 FPSCR_STAT_REG as not call clobbered.
14365 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
14366 invoking fpscr_set_from_mem.
14368 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
14369 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
14371 (REGISTER_NAMES): Adjust.
14372 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14373 (FIRST_PSEUDO_REGISTER): Increase to 156.
14374 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
14375 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
14377 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
14378 FPSCR_MODES_REG and FPSCR_STAT_REG.
14379 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14381 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
14382 FPSCR_SZ): Add new constants.
14383 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
14385 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
14386 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
14387 Use TARGET_FPU_ANY condition.
14388 (fpu_switch peephole2): Remove.
14389 (fpu_switch split): Use simple_mem_operand to capture the mem and
14390 adjust split implementation.
14391 (extend_psi_si, truncate_si_psi): New insns.
14392 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
14393 set of FPSCR_MODES_REG.
14395 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
14396 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
14397 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
14398 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
14399 call_value_compact, call_value_compact_rettramp, call,
14400 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
14401 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
14402 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
14403 sibcall_value_compact, sibcall_value, call_value_pop_compact,
14404 call_value_pop_compact_rettramp, various unnamed splits):
14405 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
14408 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
14409 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
14410 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
14411 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
14412 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
14414 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
14415 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
14416 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
14417 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
14418 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
14419 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
14420 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
14422 2014-10-16 Martin Liska <mliska@suse.cz>
14423 Jan Hubicka <hubicka@ucw.cz>
14425 * Makefile.in: New object files included.
14426 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
14428 (verify_edge_corresponds_to_fndecl): More sensitive verification
14429 of nodes that are merged by IPA ICF.
14430 * cgraph.h (cgraph_node::num_references): New function.
14431 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
14432 * common.opt: New options ipa-icf, ipa-icf-functions and
14433 ipa-icf-variables introduced.
14434 * doc/invoke.texi: Documentation of new options introduced.
14435 * ipa-icf-gimple.c: New file.
14436 * ipa-icf-gimple.h: New file.
14437 * ipa-icf.c: New file.
14438 * ipa-icf.h: New file.
14439 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
14440 (input_overwrite_node): Likewise.
14441 * lto-section-in.c: New icf section added.
14442 * lto-streamer.h (enum lto_section_type): Likewise.
14443 * opts.c (common_handle_option): New option added.
14444 * passes.def: New pass included.
14445 * timevar.def: Time variable for IPA ICF added.
14446 * tree-pass.h: New IPA ICF pass entry point added.
14448 2014-10-16 Richard Biener <rguenther@suse.de>
14450 PR tree-optimization/63168
14451 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
14452 latches if after merging they are no longer simple.
14453 * cfghooks.c (merge_blocks): Handle merging a latch block
14454 into another block.
14456 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14457 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14458 Anna Tikhonova <anna.tikhonova@intel.com>
14459 Ilya Tocar <ilya.tocar@intel.com>
14460 Andrey Turetskiy <andrey.turetskiy@intel.com>
14461 Ilya Verbin <ilya.verbin@intel.com>
14462 Kirill Yukhin <kirill.yukhin@intel.com>
14463 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14465 * config/i386/sse.md
14466 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
14467 support AVX-512VL instructions.
14469 2014-10-16 DJ Delorie <dj@redhat.com>
14471 * tree-core.h: Fix comment to not assume pointers are multiples of
14474 2014-10-15 Tom Tromey <tromey@redhat.com>
14476 * timevar.h (class auto_timevar): New class.
14478 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
14481 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14482 Remove the second alternative.
14483 (regprefix): Remove mode attribute.
14484 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
14485 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
14488 2013-11-05 Ian Lance Taylor <iant@google.com>
14490 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14491 If possible, add .cfi directives to record change to bx.
14492 * config/i386/i386.c (ix86_emit_cfi): New function.
14493 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
14495 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
14498 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
14500 * lto-streamer-out.c (lto_output): Handle correctly thunks that was
14503 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
14505 PR rtl-optimization/63448
14506 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
14507 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
14508 (LRA_MAX_INHERITANCE_PASSES): Use it.
14509 (lra_constraint_iter_after_spill): Remove.
14510 (lra_assignment_iter): New.
14511 (lra_assignment_iter_after_spill): New.
14512 * lra-assigns.c (lra_assignment_iter): New.
14513 (lra_assignment_iter_after_spill): New.
14514 (former_reload_pseudo_spill_p): New.
14515 (spill_for): Set up former_reload_pseudo_spill_p.
14516 (setup_live_pseudos_and_spill_after_risky): Ditto.
14517 (assign_by_spills): Ditto.
14518 (lra_assign): Increment lra_assignment_iter. Print the iteration
14519 number. Reset former_reload_pseudo_spill_p. Check
14520 lra_assignment_iter_after_spill.
14521 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
14522 lra_assignment_iter and lra_assignment_iter_after_spill.
14523 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
14524 (lra_constraints): Remove code with
14525 lra_assignment_iter_after_spill.
14527 2014-10-15 Teresa Johnson <tejohnson@google.com>
14530 * tree-ssa-threadupdate.c (recompute_probabilities): Better
14533 2014-10-15 Renlin Li <renlin.li@arm.com>
14535 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14536 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
14537 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
14538 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
14540 2014-10-15 Richard Biener <rguenther@suse.de>
14542 * gimple-fold.c (gimple_fold_call): Properly keep virtual
14543 SSA form up-to-date when devirtualizing a call to
14544 __builtin_unreachable and avoid fixing up EH info here.
14546 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14547 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14548 Anna Tikhonova <anna.tikhonova@intel.com>
14549 Ilya Tocar <ilya.tocar@intel.com>
14550 Andrey Turetskiy <andrey.turetskiy@intel.com>
14551 Ilya Verbin <ilya.verbin@intel.com>
14552 Kirill Yukhin <kirill.yukhin@intel.com>
14553 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14555 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
14556 to support AVX-512BW.
14557 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
14558 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
14559 (define_insn "*<plusminus_insn><mode>3"): Ditto.
14560 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
14561 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14562 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
14563 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14564 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
14565 (define_insn "*andnot<mode>3"): Ditto.
14566 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
14567 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
14568 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14569 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
14570 (define_insn "*abs<mode>2"): Remove masking support.
14571 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
14572 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
14573 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
14575 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14576 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14577 Anna Tikhonova <anna.tikhonova@intel.com>
14578 Ilya Tocar <ilya.tocar@intel.com>
14579 Andrey Turetskiy <andrey.turetskiy@intel.com>
14580 Ilya Verbin <ilya.verbin@intel.com>
14581 Kirill Yukhin <kirill.yukhin@intel.com>
14582 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14584 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
14585 * config/i386/sse.md
14586 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
14587 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
14588 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
14589 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14590 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14591 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14592 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14594 2014-10-15 Renlin Li <renlin.li@arm.com>
14596 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
14598 2014-10-15 Jakub Jelinek <jakub@redhat.com>
14600 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
14601 MINUS_EXPR in unsigned type to avoid undefined behavior.
14603 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
14605 * stor-layout.c (self_referential_size): Do not promote arguments.
14607 2014-10-15 Marek Polacek <polacek@redhat.com>
14609 * doc/invoke.texi: Update to reflect that GNU11 is the default
14611 * c-common.h (c_language_kind): Update comment.
14613 2014-10-15 Richard Biener <rguenther@suse.de>
14615 * hash-table.c: Include bconfig.h if building for the host.
14616 * hash-table.h: Do not include ggc.h on the host but just declare
14617 a few ggc allocation templates.
14619 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
14620 Jeff Law <law@redhat.com>
14622 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
14623 multiple hard registers, use smaller mode derived from MODE.
14625 2014-10-15 Andreas Schwab <schwab@suse.de>
14627 * explow.c (convert_memory_address_addr_space_1): Mark in_const
14628 as ATTRIBUTE_UNUSED.
14630 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
14632 * loop-unroll.c (decide_unrolling_and_peeling): Rename to
14633 (decide_unrolling): ... this one.
14634 (peel_loops_completely): Remove.
14635 (decide_peel_simple): Remove.
14636 (decide_peel_once_rolling): Remove.
14637 (decide_peel_completely): Remove.
14638 (peel_loop_simple): Remove.
14639 (peel_loop_completely): Remove.
14640 (unroll_and_peel_loops): Rename to ...
14641 (unroll_loops): ... this one; handle only unrolling.
14642 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and LPT_PEEL_SIMPLE.
14643 (UAP_PEEL): Remove.
14644 (unroll_and_peel_loops): Remove.
14645 (unroll_loops): New.
14646 * passes.def: Replace pass_rtl_unroll_and_peel_loops
14647 by pass_rtl_unroll_loops.
14648 * loop-init.c (gate_rtl_unroll_and_peel_loops,
14649 rtl_unroll_and_peel_loops): Rename to ...
14650 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
14651 (pass_rtl_unroll_and_peel_loops): Rename to ...
14652 (pass_rtl_unroll_loops): ... this one.
14653 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
14654 (make_pass_rtl_unroll_loops): New.
14655 * tree-ssa-loop-ivcanon.c (estimated_peeled_sequence_size,
14656 try_peel_loop): New.
14657 (canonicalize_loop_induction_variables): Update.
14659 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14661 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
14662 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
14663 !TARGET_HARD_FLOAT_POSTINC.
14664 (*lsip, *ssip): new instructions.
14666 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14668 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
14671 2014-10-14 Andrew Pinski <apinski@cavium.com>
14673 * explow.c (convert_memory_address_addr_space): Rename to ...
14674 (convert_memory_address_addr_space_1): This. Add in_const argument.
14675 Inside a CONST RTL, permute the conversion and addition of constant
14676 for zero and sign extended pointers.
14677 (convert_memory_address_addr_space): New function.
14679 2014-10-14 Andrew Pinski <apinski@cavium.com>
14682 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14684 PR middle-end/49721
14685 * explow.c (convert_memory_address_addr_space): Also permute the
14686 conversion and addition of constant for zero-extend.
14688 2014-10-14 DJ Delorie <dj@redhat.com>
14690 * config/msp430/msp430-modes.def (PSI): Add.
14692 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding):
14694 (msp430_hard_regno_nregs_with_padding): New.
14695 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
14696 (msp430_hard_regno_nregs_has_padding): New.
14697 (msp430_hard_regno_nregs_with_padding): New.
14698 (msp430_unwind_word_mode): Use PSImode instead of SImode.
14699 (msp430_addr_space_legitimate_address_p): New.
14700 (msp430_asm_integer): New.
14701 (msp430_init_dwarf_reg_sizes_extra): New.
14702 (msp430_print_operand): Use X suffix for PSImode even in small model.
14703 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
14704 (PTR_SIZE): ...but 4 bytes for EH.
14705 (SIZE_TYPE): Use __int20.
14706 (PTRDIFF_TYPE): Likewise.
14707 (INCOMING_FRAME_SP_OFFSET): Adjust.
14708 * config/msp430/msp430.md (movqi_topbyte): New.
14709 (movpsi): Use fixed suffixes.
14710 (movsipsi2): Enable for 430X, not large model.
14711 (extendhipsi2): Likewise.
14712 (zero_extendhisi2): Likewise.
14713 (zero_extendhisipsi2): Likewise.
14714 (extend_and_shift1_hipsi2): Likewise.
14715 (extendpsisi2): Likewise.
14716 (*bitbranch<mode>4_z): Fix suffix logic.
14718 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
14721 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
14722 do not choke on null node.
14723 <VAR_DECL>: Likewise.
14725 2014-10-14 DJ Delorie <dj@redhat.com>
14727 * machmode.h (int_n_data_t): New.
14728 (int_n_enabled_p): New.
14730 * tree.c (int_n_enabled_p): New.
14731 (int_n_trees): New.
14732 (make_or_reuse_type): Check for all __intN types, not just __int128.
14733 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
14735 * tree.h (int128_integer_type_node): Remove.
14736 (int128_unsigned_type_node): Remove.
14737 (int_n_trees_t): New.
14738 (int_n_enabled_p): New.
14739 (int_n_trees): New.
14740 * toplev.c (standard_type_bitsize): New.
14741 (do_compile): Check which __intN types are enabled for the current run.
14742 * builtin-types.def (BT_INT128): Remove.
14743 (BT_UINT128): Remove.
14744 * machmode.def: Add macro to create __int128 for all targets.
14745 * stor-layout.c (mode_for_size): Support __intN types.
14746 (smallest_mode_for_size): Likewise.
14747 (initialize_sizetypes): Support __intN types.
14748 * genmodes.c (struct mode_data): Add int_n field.
14749 (blank_mode): Likewise.
14752 (emit_insn_modes_h): Count __intN entries and define NUM_INT_N_ENTS.
14753 (emit_mode_int_n): New.
14754 (emit_insn_modes_c): Call it.
14755 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
14756 types, not just __int128.
14757 * tree-core.h (integer_type_kind): Remove __int128-specific
14758 entries, reserve spots for __intN entries.
14760 * config/msp430/msp430-modes.def (PSI): Add.
14762 2014-10-14 Kito Cheng <kito@0xlab.org>
14764 * ira.c: Fix typo in comment.
14766 * ira-build.c: Ditto.
14767 * ira-color.c: Ditto.
14768 * ira-emit.c: Ditto.
14769 * ira-int.h: Ditto.
14770 * ira-lives.c: Ditto.
14772 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
14774 PR rtl-optimization/63475
14775 * alias.c (true_dependence_1): Always use get_addr to extract
14776 true address operands from x_addr and mem_addr. Use extracted
14777 address operands to check for references with alignment ANDs.
14778 Use extracted address operands with find_base_term and
14779 base_alias_check. For noncanonicalized operands call canon_rtx with
14780 extracted address operand.
14781 (write_dependence_1): Ditto.
14782 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
14784 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
14787 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
14790 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14791 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14792 Anna Tikhonova <anna.tikhonova@intel.com>
14793 Ilya Tocar <ilya.tocar@intel.com>
14794 Andrey Turetskiy <andrey.turetskiy@intel.com>
14795 Ilya Verbin <ilya.verbin@intel.com>
14796 Kirill Yukhin <kirill.yukhin@intel.com>
14797 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14799 * config/i386/i386.c
14800 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
14801 (ix86_expand_int_vcond): Ditto.
14803 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14805 Anna Tikhonova <anna.tikhonova@intel.com>
14806 Ilya Tocar <ilya.tocar@intel.com>
14807 Andrey Turetskiy <andrey.turetskiy@intel.com>
14808 Ilya Verbin <ilya.verbin@intel.com>
14809 Kirill Yukhin <kirill.yukhin@intel.com>
14810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14812 * config/i386/i386.c
14813 (emit_reduc_half): Handle V64QI and V32HI mode.
14814 * config/i386/sse.md
14815 (define_mode_iterator VI_AVX512BW): New.
14816 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
14818 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14820 Anna Tikhonova <anna.tikhonova@intel.com>
14821 Ilya Tocar <ilya.tocar@intel.com>
14822 Andrey Turetskiy <andrey.turetskiy@intel.com>
14823 Ilya Verbin <ilya.verbin@intel.com>
14824 Kirill Yukhin <kirill.yukhin@intel.com>
14825 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14827 * config/i386/sse.md
14828 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
14830 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14832 Anna Tikhonova <anna.tikhonova@intel.com>
14833 Ilya Tocar <ilya.tocar@intel.com>
14834 Andrey Turetskiy <andrey.turetskiy@intel.com>
14835 Ilya Verbin <ilya.verbin@intel.com>
14836 Kirill Yukhin <kirill.yukhin@intel.com>
14837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14839 * config/i386/i386.c
14840 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
14841 * config/i386/sse.md
14842 (define_mode_iterator VI): Add V64QI and V32HI modes.
14844 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14845 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14846 Anna Tikhonova <anna.tikhonova@intel.com>
14847 Ilya Tocar <ilya.tocar@intel.com>
14848 Andrey Turetskiy <andrey.turetskiy@intel.com>
14849 Ilya Verbin <ilya.verbin@intel.com>
14850 Kirill Yukhin <kirill.yukhin@intel.com>
14851 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14853 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
14855 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14857 Anna Tikhonova <anna.tikhonova@intel.com>
14858 Ilya Tocar <ilya.tocar@intel.com>
14859 Andrey Turetskiy <andrey.turetskiy@intel.com>
14860 Ilya Verbin <ilya.verbin@intel.com>
14861 Kirill Yukhin <kirill.yukhin@intel.com>
14862 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14864 * config/i386/sse.md
14865 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
14866 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
14868 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14870 Anna Tikhonova <anna.tikhonova@intel.com>
14871 Ilya Tocar <ilya.tocar@intel.com>
14872 Andrey Turetskiy <andrey.turetskiy@intel.com>
14873 Ilya Verbin <ilya.verbin@intel.com>
14874 Kirill Yukhin <kirill.yukhin@intel.com>
14875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14877 * config/i386/sse.md
14878 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
14879 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
14881 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14882 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14883 Anna Tikhonova <anna.tikhonova@intel.com>
14884 Ilya Tocar <ilya.tocar@intel.com>
14885 Andrey Turetskiy <andrey.turetskiy@intel.com>
14886 Ilya Verbin <ilya.verbin@intel.com>
14887 Kirill Yukhin <kirill.yukhin@intel.com>
14888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14890 * config/i386/sse.md
14891 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
14892 (define_mode_iterator VI2_AVX2): Add V32HI mode.
14893 (define_expand "mul<mode>3<mask_name>"): Add masking.
14894 (define_insn "*mul<mode>3<mask_name>"): Ditto.
14895 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
14896 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
14897 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
14898 (define_mode_attr SDOT_PMADD_SUF): Ditto.
14899 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
14900 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
14901 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
14902 (define_insn "avx2_packusdw"): Delete.
14903 (define_insn "sse4_1_packusdw"): Ditto.
14904 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
14906 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14908 Anna Tikhonova <anna.tikhonova@intel.com>
14909 Ilya Tocar <ilya.tocar@intel.com>
14910 Andrey Turetskiy <andrey.turetskiy@intel.com>
14911 Ilya Verbin <ilya.verbin@intel.com>
14912 Kirill Yukhin <kirill.yukhin@intel.com>
14913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14915 * config/i386/sse.md
14916 (define_insn "vec_dup<mode>"): Update constraints.
14918 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14920 Anna Tikhonova <anna.tikhonova@intel.com>
14921 Ilya Tocar <ilya.tocar@intel.com>
14922 Andrey Turetskiy <andrey.turetskiy@intel.com>
14923 Ilya Verbin <ilya.verbin@intel.com>
14924 Kirill Yukhin <kirill.yukhin@intel.com>
14925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14927 * config/i386/sse.md
14928 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
14929 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
14930 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
14932 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14933 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14934 Anna Tikhonova <anna.tikhonova@intel.com>
14935 Ilya Tocar <ilya.tocar@intel.com>
14936 Andrey Turetskiy <andrey.turetskiy@intel.com>
14937 Ilya Verbin <ilya.verbin@intel.com>
14938 Kirill Yukhin <kirill.yukhin@intel.com>
14939 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14941 * config/i386/sse.md
14942 (define_expand "mul<mode>3<mask_name>"): Add masking.
14944 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14945 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14946 Anna Tikhonova <anna.tikhonova@intel.com>
14947 Ilya Tocar <ilya.tocar@intel.com>
14948 Andrey Turetskiy <andrey.turetskiy@intel.com>
14949 Ilya Verbin <ilya.verbin@intel.com>
14950 Kirill Yukhin <kirill.yukhin@intel.com>
14951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14953 * config/i386/sse.md
14954 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
14955 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
14957 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14958 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14959 Anna Tikhonova <anna.tikhonova@intel.com>
14960 Ilya Tocar <ilya.tocar@intel.com>
14961 Andrey Turetskiy <andrey.turetskiy@intel.com>
14962 Ilya Verbin <ilya.verbin@intel.com>
14963 Kirill Yukhin <kirill.yukhin@intel.com>
14964 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14966 * config/i386/sse.md
14967 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
14968 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
14969 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
14972 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14974 Anna Tikhonova <anna.tikhonova@intel.com>
14975 Ilya Tocar <ilya.tocar@intel.com>
14976 Andrey Turetskiy <andrey.turetskiy@intel.com>
14977 Ilya Verbin <ilya.verbin@intel.com>
14978 Kirill Yukhin <kirill.yukhin@intel.com>
14979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14981 * config/i386/sse.md
14982 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
14983 use VF_128_256 mode iterator and update assembler emit code.
14984 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
14985 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
14986 Add masking, use VF_128_256 mode iterator.
14987 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
14988 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
14989 Add masking, use VF_128_256 mode iterator and update assembler emit
14991 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
14992 (define_mode_attr avx512flogicsuff): Delete.
14993 (define_insn "avx512f_<logic><mode>"): Ditto.
14994 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
14996 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
14998 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14999 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15000 Anna Tikhonova <anna.tikhonova@intel.com>
15001 Ilya Tocar <ilya.tocar@intel.com>
15002 Andrey Turetskiy <andrey.turetskiy@intel.com>
15003 Ilya Verbin <ilya.verbin@intel.com>
15004 Kirill Yukhin <kirill.yukhin@intel.com>
15005 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15007 * config/i386/sse.md
15008 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
15009 (define_expand "vashr<mode>3<mask_name>"): Add masking,
15010 use VI12_128 mode iterator.
15011 (define_expand "ashrv2di3<mask_name>"): New.
15013 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15015 Anna Tikhonova <anna.tikhonova@intel.com>
15016 Ilya Tocar <ilya.tocar@intel.com>
15017 Andrey Turetskiy <andrey.turetskiy@intel.com>
15018 Ilya Verbin <ilya.verbin@intel.com>
15019 Kirill Yukhin <kirill.yukhin@intel.com>
15020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15022 * config/i386/i386.c
15023 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
15024 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
15025 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
15026 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
15027 CODE_FOR_avx512vl_ucmpv4si3_mask.
15028 * config/i386/sse.md
15029 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
15030 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
15032 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
15033 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
15034 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
15035 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
15036 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
15037 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
15039 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15041 Anna Tikhonova <anna.tikhonova@intel.com>
15042 Ilya Tocar <ilya.tocar@intel.com>
15043 Andrey Turetskiy <andrey.turetskiy@intel.com>
15044 Ilya Verbin <ilya.verbin@intel.com>
15045 Kirill Yukhin <kirill.yukhin@intel.com>
15046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15048 * config/i386/sse.md
15049 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
15050 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
15051 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
15052 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
15053 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
15054 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
15055 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15056 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15057 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
15059 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15060 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15061 Anna Tikhonova <anna.tikhonova@intel.com>
15062 Ilya Tocar <ilya.tocar@intel.com>
15063 Andrey Turetskiy <andrey.turetskiy@intel.com>
15064 Ilya Verbin <ilya.verbin@intel.com>
15065 Kirill Yukhin <kirill.yukhin@intel.com>
15066 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15068 * config/i386/sse.md
15069 (define_insn "avx512f_blendm<mode>"): Delete.
15070 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
15071 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
15072 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
15073 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
15075 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15078 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15081 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15083 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
15084 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
15085 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
15086 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
15089 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
15092 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
15094 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
15097 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
15100 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
15103 2014-10-14 Richard Biener <rguenther@suse.de>
15105 PR tree-optimization/63512
15106 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
15109 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
15112 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
15113 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
15115 (negsf2_i): Rename to *negsf2_i.
15116 (abssf2_i): Rename to *abssf2_i.
15117 (negdf2_i): Rename to *negdf2_i.
15118 (absdf2_i): Rename to *absdf2_i.
15120 2014-10-14 Felix Yang <felix.yang@huawei.com>
15121 Jeff Law <law@redhat.com>
15123 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
15124 "replace" into boolean bitfields; turn member "loop_depth" into a short
15125 integer; add new member "no_equiv" and "reserved".
15126 (no_equiv): Set no_equiv of struct equivalence if register is marked
15127 as having no known equivalence.
15128 (update_equiv_regs): Check all definitions for a multiple-set
15129 register to make sure that the RHS have the same value.
15131 2014-10-13 Richard Henderson <rth@redhat.com>
15133 * combine-stack-adj.c (no_unhandled_cfa): New.
15134 (maybe_merge_cfa_adjust): New.
15135 (combine_stack_adjustments_for_block): Use them.
15137 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
15139 * Makefile.in (TAGS): Tag ../include files.
15141 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15143 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
15144 to rs6000_dbx_register_number.
15145 (DWARF_FRAME_REGNUM): Redefine as identity map.
15146 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
15147 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
15148 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
15149 argument to handle .debug_frame and .eh_frame directly. Always
15150 translate SPE high register numbers. Add special treatment for CR,
15151 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
15153 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
15154 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
15155 (RS6000_USE_DWARF_NUMBERING): Define.
15156 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
15157 (RS6000_USE_DWARF_NUMBERING): Define.
15158 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
15159 (RS6000_USE_DWARF_NUMBERING): Define.
15160 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
15161 (RS6000_USE_DWARF_NUMBERING): Define.
15162 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
15163 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
15165 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15167 * config/i386/i386.c (ix86_address_cost): Lower cost for
15168 when address contains GOT register.
15170 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
15171 Vladimir Makarov <vmakarov@redhat.com>
15174 PR middle-end/47602
15175 PR rtl-optimization/55458
15176 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
15177 (ix86_init_pic_reg): New.
15178 (ix86_select_alt_pic_regnum): Add check on pseudo register.
15179 (ix86_save_reg): Likewise.
15180 (ix86_expand_prologue): Remove PIC register initialization
15181 now performed in ix86_init_pic_reg.
15182 (ix86_output_function_epilogue): Add check on pseudo register.
15183 (set_pic_reg_ever_alive): New.
15184 (legitimize_pic_address): Replace df_set_regs_ever_live with new
15185 set_pic_reg_ever_alive.
15186 (legitimize_tls_address): Likewise.
15187 (ix86_pic_register_p): New check.
15188 (ix86_delegitimize_address): Add check on pseudo register.
15189 (ix86_expand_call): Insert move from pseudo PIC register to ABI
15190 defined REAL_PIC_OFFSET_TABLE_REGNUM.
15191 (TARGET_INIT_PIC_REG): New.
15192 (TARGET_USE_PSEUDO_PIC_REG): New.
15193 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
15194 if pic_offset_table_rtx exists.
15195 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
15197 * doc/tm.texi: Regenerate.
15198 * function.c (assign_parms): Generate pseudo register for PIC.
15199 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
15201 * ira-color.c (color_pass): Add check on pseudo register.
15202 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
15204 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
15206 (ira): Add target specific PIC register initialization.
15207 (do_reload): Keep PIC pseudo register.
15208 * lra-assigns.c (spill_for): Add checks on pseudo register.
15209 * lra-constraints.c (contains_symbol_ref_p): New.
15210 (lra_constraints): Enable lra risky transformations when PIC is pseudo
15212 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
15213 * target.def (use_pseudo_pic_reg): New.
15214 (init_pic_reg): New.
15216 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15218 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
15219 Remove m_SILVERMONT and m_INTEL from the tune.
15221 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15223 PR libfortran/63471
15224 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15225 when _HPUX_SOURCE is defined.
15227 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15229 PR tree-optimization/62127
15230 * tree.c (remap_type_1): When remapping array, remap
15233 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
15235 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
15236 longer impact parallelization.
15238 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15241 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
15243 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
15245 * asan.c (instrument_derefs): BIT_FIELD_REF added.
15247 2014-10-13 Richard Biener <rguenther@suse.de>
15249 PR tree-optimization/63419
15250 * gimple-fold.h (gimple_convert): New function.
15251 * gimple-fold.c (gimple_convert): Likewise.
15252 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
15253 to split out required conversions early.
15255 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
15257 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
15258 Add the parts of an insn in reverse order, with the pattern at
15259 the top of the queue. Detect when we're iterating over a SEQUENCE
15260 pattern and in that case just consider patterns of subinstructions.
15262 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15265 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
15267 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
15269 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
15270 address. Use def chains to handle GBR clobbering call insns.
15272 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
15274 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
15275 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
15276 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
15277 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
15278 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
15279 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
15280 * doc/gty.texi (for_user): Document new option.
15281 * gengtype.c (create_user_defined_type): Don't try to get a struct for
15283 (walk_type): Don't error out on for_user option.
15284 (write_func_for_structure): Emit user marking routines if requested by
15286 (write_local_func_for_structure): Likewise.
15287 (main): Mark types with for_user option as used.
15288 * ggc.h (gt_pch_nx): Add overload for unsigned int.
15289 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
15290 * hash-table.h (ggc_hasher): New struct.
15291 (hash_table::create_ggc): New function.
15292 (gt_pch_nx): New overload for hash_table.
15294 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
15296 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
15297 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
15298 * config/sh/sh.c: Likewise.
15299 * config/sh/sh-mem.cc: Likewise.
15300 * config/sh/sh.md: Likewise.
15301 * config/sh/predicates.md: Likewise.
15302 * config/sh/sync.md: Likewise.
15304 2014-10-11 Martin Liska <mliska@suse.cz>
15306 PR middle-end/63376
15307 * cgraphunit.c (symbol_table::process_new_functions): Missing call
15308 for call_cgraph_insertion_hooks added.
15310 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15313 * stor-layout.c (min_align_of_type): Don't decrease alignment
15314 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
15315 TYPE_USER_ALIGN is set.
15317 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
15319 PR rtl-optimization/63483
15320 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
15321 references when alignment ANDs are involved.
15322 (write_dependence_p): Ditto.
15323 (may_alias_p): Ditto.
15325 2014-10-10 Marek Polacek <polacek@redhat.com>
15327 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
15328 * doc/invoke.texi: Document -fsanitize=object-size.
15329 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
15330 or it into SANITIZE_UNDEFINED.
15331 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
15332 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
15333 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
15334 * opts.c (common_handle_option): Handle -fsanitize=object-size.
15335 * ubsan.c: Include tree-object-size.h.
15336 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
15337 (ubsan_expand_bounds_ifn): Use false instead of 0.
15338 (ubsan_expand_objsize_ifn): New function.
15339 (instrument_object_size): New function.
15340 (pass_ubsan::execute): Add object size instrumentation.
15341 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
15343 2014-10-10 Richard Henderson <rth@redhat.com>
15346 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
15347 Restrict the set of expressions we're willing to move.
15349 2014-10-10 Jeff Law <law@redhat.com>
15351 * ira.c (struct equivalence): Promote INIT_INSNs field to
15352 an rtx_insn_list. Add comments.
15353 (no_equiv): Promote LIST to an rtx_insn_list. Update
15354 testing for and creating the special marker. Use methods
15355 to extract the insn and next pointers. Promote INSN to an
15357 (update_equiv_regs): Update test for special marker in the
15360 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15362 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
15363 * configure: Regenerate.
15364 * config/aarch64/aarch64.c (aarch64_override_options): Handle
15365 TARGET_FIX_ERR_A53_835769_DEFAULT.
15366 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
15368 * doc/install.texi (aarch64*-*-*): Document
15369 new --enable-fix-cortex-a53-835769 option.
15371 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15372 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15374 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
15375 (ADJUST_INSN_LENGTH): Define.
15376 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
15377 * config/aarch64/aarch64.c (is_mem_p): New function.
15378 (is_memory_op): Likewise.
15379 (aarch64_prev_real_insn): Likewise.
15380 (is_madd_op): Likewise.
15381 (dep_between_memop_and_curr): Likewise.
15382 (aarch64_madd_needs_nop): Likewise.
15383 (aarch64_final_prescan_insn): Likewise.
15384 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
15385 and -mno-fix-cortex-a53-835769 options.
15387 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15389 PR tree-optimization/63464
15390 * tree-switch-conversion.c (struct case_bit_test): Remove
15391 hi and lo fields, add wide_int mask field.
15392 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
15393 hi/lo fields into wide_int mask operations, optimize by pretending
15394 minval to be 0 if maxval is small enough.
15395 (process_switch): Adjust caller.
15397 2014-10-10 Richard Biener <rguenther@suse.de>
15399 PR tree-optimization/63379
15400 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
15401 a neutral operand for min/max when it is not a reduction chain.
15403 2014-10-10 Richard Biener <rguenther@suse.de>
15405 PR tree-optimization/63476
15406 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
15407 (BB_LIVE_VOP_ON_EXIT): New define.
15408 (create_expression_by_pieces): Assign VUSEs to stmts.
15409 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
15410 (pass_pre::execute): Assert virtual SSA form is up-to-date
15413 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
15415 * lra-assigns.c (assign_by_spills): Error out on spill failure.
15417 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
15419 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
15422 2014-10-09 Richard Biener <rguenther@suse.de>
15424 PR tree-optimization/63380
15425 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
15428 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
15430 * config/avr/avr.opt (mmcu=): Change to have a string value.
15431 (mn-flash=, mskip-bug, march=, mrmw): New options.
15432 (HeaderInclude): New.
15433 (mmcu=): Remove Var / Init clauses.
15434 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
15436 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
15437 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
15438 (SYMBOL_FLAG_IO_LOW): Define.
15439 (avr_device_to_as, avr_device_to_ld): Don't declare.
15440 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
15441 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
15442 (EXTRA_SPEC_FUNCTIONS): Don't define.
15443 (ASM_SPEC): Translate -arch= option to -mmcu= option.
15444 (LINK_SPEC): Translate -arch= option to -m= option.
15445 Don't use device_to_ld / device_to_data_start.
15446 (STARTFILE_SPEC): Now empty.
15447 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
15448 * config/avr/gen-avr-mmcu-specs.c: New file.
15449 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
15450 (s-device-specs): Likewise.
15451 (GCC_PASSES): Add s-device-specs.
15452 (install-driver): Depend on install-device-specs.
15453 (install-device-specs): New rule.
15454 * config/avr/avr.c (avr_option_override): Look up mcu arch by
15455 avr_arch_index and provide fallback initialization for avr_n_flash.
15456 (varasm.h): #include.
15457 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
15458 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
15459 (avr_attribute_table): Add "io", "address" and "io_low".
15460 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
15461 Add special handling for symbols with "io" and/or "address" attributes.
15462 (avr_asm_asm_output_aligned_bss): New function.
15463 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
15464 as appropriate. Handle io_low attribute.
15465 (avr_out_sbxx_branch): Handle symbolic io addresses.
15466 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
15467 avr_n_flash instead of avr_current_device->n_flash.
15468 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
15469 (avr_emit_movmemhi): Likewise.
15470 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
15471 Use TARGET_RMW instead of avr_current_device->dev_attributes.
15472 Don't define avr_current_device->macro (that's the specfile's job).
15473 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
15474 * config/avr/avr.c (avr_2word_insn_p): Likewise.
15475 * config/avr/avr.md (*cpse.ne): Likewise.
15476 (mov<mode>): Use avr_eval_addr_attrib.
15477 (cbi): Change constraint for low_io_address_operand operand to "i".
15478 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
15479 * config/avr/predicates.md (io_address_operand):
15480 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
15481 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
15482 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
15484 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
15485 * config/avr/genmultilib.awk: Use -march=.
15486 Remove Multilib matches processing.
15487 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
15488 * config/avr/avr-arch.h: Add double include guard.
15489 (avr_mcu_t) <library_name>: Update comment.
15490 * config/avr/driver-avr.c (avr_device_to_as): Delete.
15491 (avr_device_to_ld, avr_device_to_data_start): Likewise.
15492 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
15493 (avr_device_to_sp8): Likewise.
15494 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
15496 * doc/extend.texi (io, address): Document new AVR variable attributes.
15497 (io_low): Likewise.
15499 2014-10-09 Marek Polacek <polacek@redhat.com>
15501 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
15503 2014-10-08 Richard Biener <rguenther@suse.de>
15505 PR tree-optimization/61969
15506 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
15509 2014-10-09 Richard Biener <rguenther@suse.de>
15511 PR tree-optimization/63445
15512 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
15513 overflow for non-equality compares.
15515 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
15517 PR rtl-optimization/57003
15518 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15519 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
15520 killing regs_invalidated_by_call.
15522 2014-10-08 Teresa Johnson <tejohnson@google.com>
15524 PR bootstrap/63432.
15525 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
15526 (ssa_fix_duplicate_block_edges): Invoke it.
15527 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
15529 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
15532 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15533 atomic_fetch_<fetchop_name>si_hard,
15534 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
15535 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
15536 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
15537 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
15539 2014-10-08 Rong Xu <xur@google.com>
15541 * gcov-tool.c (profile_overlap): New driver function
15542 to compute profile overlap.
15543 (print_overlap_usage_message): New.
15544 (overlap_usage): New.
15546 (print_usage): Add calls to overlap function.
15548 * doc/gcov-tool.texi: Add documentation.
15550 2014-10-08 Steve Ellcey <sellcey@mips.com>
15552 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
15553 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
15555 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
15557 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
15558 pattern matching of MEM_REF.
15559 (check_stmt_for_type_change): Update.
15561 2014-10-08 Steve Ellcey <sellcey@mips.com>
15563 * config/mips/linux64.h: Remove.
15564 * config/mips/gnu-user64.h: Remove.
15565 * gcc.config (mips*-*-*): Remove references to linux64.h and
15567 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
15568 with modified version from gnu-user64.h.
15569 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
15570 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
15571 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
15573 (GNU_USER_LINK_EMULATION64): Ditto.
15574 (GNU_USER_LINK_EMULATIONN32): Ditto.
15575 (GLIBC_DYNAMIC_LINKER32): Ditto.
15576 (GLIBC_DYNAMIC_LINKER64): Ditto.
15577 (GLIBC_DYNAMIC_LINKERN32): Ditto.
15578 (UCLIBC_DYNAMIC_LINKER32): Ditto.
15579 (UCLIBC_DYNAMIC_LINKER64): Ditto.
15580 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
15581 (BIONIC_DYNAMIC_LINKERN32): Ditto.
15582 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
15583 (GLIBC_DYNAMIC_LINKER): Delete.
15584 (UCLIBC_DYNAMIC_LINKER): Delete.
15586 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
15587 Richard Biener <rguenther@suse.de>
15589 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
15590 Get address space from operand 0 (BASE).
15592 2014-10-07 Iain Sandoe <iain@codesourcery.com>
15595 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
15597 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
15599 * dwarf2out.c: Remove current_function_has_inlines.
15600 (gen_subprogram_die): Same.
15601 (gen_inlined_subroutine_die): Same.
15603 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
15605 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
15607 (_addcarry_u64): Ditto.
15608 (_addcarryx_u64): Ditto.
15610 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15612 * cgraph.h (cgraph_node::get_fun): Declare.
15613 * cgraph.c (cgraph_node::get_fun): New method.
15614 * ipa-inline.c (can_inline_edge_p): Use it.
15616 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15618 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
15619 and -ftrapping-math.
15620 * lto-wrapper.c (merge_and_complain): Likewise.
15621 (run_gcc): Likewise.
15623 2014-10-06 Rong Xu <xur@google.com>
15625 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
15626 * tree-profile.c: (params.h): New include.
15627 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
15628 and __gcov_indirect_call_topn_counters for
15629 indirect_call_topn_profile.
15630 (gimple_init_edge_profiler): New decls for
15631 __gcov_indirect_call_topn_profiler.
15632 (gimple_gen_ic_profiler): Generate the correct profiler call.
15633 (gimple_gen_ic_func_profiler): Fix format.
15634 * value-prof.c (params.h): New include.
15635 (dump_histogram_value): Hanlde indirect_call_topn counters.
15636 (stream_in_histogram_value): Ditto.
15637 (gimple_indirect_call_to_profile): Use indirect_call_topn
15638 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
15639 (gimple_find_values_to_profile): Hanlde indirect_call_topn
15641 * value-prof.h (enum hist_type): Histrogram type for
15642 indirect_call_topn counters.
15643 * profile.c (instrument_values): Instrument
15644 indirect_call_topn counters.
15646 2014-10-06 Rong Xu <xur@google.com>
15648 * Makefile.in: Fix dependence.
15649 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
15650 indirect call topn profiler.
15651 * gcov-io.h: Ditto.
15653 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15655 * calls.c (expand_call): Do not use the target as the return slot if
15656 it is not sufficiently aligned.
15658 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15660 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
15661 discussion of permutes and why we don't handle them.
15663 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15665 * config/sparc/predicates.md (int_register_operand): Delete.
15667 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15669 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
15671 2014-10-06 Jakub Jelinek <jakub@redhat.com>
15673 * ubsan.h (ubsan_get_source_location): New prototype.
15674 * ubsan.c (ubsan_source_location_type): New variable.
15675 Function renamed to ...
15676 (ubsan_get_source_location_type): ... this. Cache
15677 return value in ubsan_source_location_type variable.
15678 (ubsan_source_location, ubsan_create_data): Use
15679 ubsan_get_source_location_type instead of
15680 ubsan_source_location_type.
15681 * asan.c (asan_protect_global): Don't protect globals
15682 with ubsan_get_source_location_type () type.
15683 (asan_add_global): Provide global decl location info
15686 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15688 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
15691 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15693 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
15695 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
15697 (ipa_polymorphic_call_context::dump): Fix formating.
15698 (walk_ssa_copies): Add logic avoiding loops; update uses.
15699 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
15701 2014-10-02 Mark Wielaard <mjw@redhat.com>
15704 * dwarf2out.c (gen_subprogram_die): When a member function is
15705 explicitly deleted then add a DW_AT_GNU_deleted attribute.
15706 * langhooks.h (struct lang_hooks_for_decls): Add
15707 function_decl_deleted_p langhook.
15708 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
15709 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
15711 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15713 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
15714 NULL pointer checks.
15715 (ipa_polymorphic_call_context::get_dynamic_type): Return true
15716 if type doesn't change.
15717 * cgraph.h (cgraph_indirect_call_info): New flag.
15718 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
15719 (cgraph_node::dump): Dump it.
15720 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
15721 of context.get_dynamic_type.
15722 (ipa_make_edge_direct_to_target): Do not speculate
15723 edge that is already speuclative.
15724 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15725 speculate to __builtin_unreachable
15726 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
15728 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
15730 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15732 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
15733 get_dynamic_type; drop TODO.
15734 * ipa-polymorphic-call.c
15735 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
15736 for otr_type to be unknown.
15738 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15740 * common/config/score/score-common.c: Remove.
15741 * config.gcc: Remove support for score-*.
15742 * config/score/constraints.md: Remove.
15743 * config/score/elf.h: Remove.
15744 * config/score/predicates.md: Remove.
15745 * config/score/score-conv.h: Remove.
15746 * config/score/score-generic.md: Remove.
15747 * config/score/score-modes.def: Remove.
15748 * config/score/score-protos.h: Remove.
15749 * config/score/score.c: Remove.
15750 * config/score/score.h: Remove.
15751 * config/score/score.md: Remove.
15752 * config/score/score.opt: Remove.
15753 * doc/md.texi: Don't document score-*.
15755 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15758 * genconditions.c: Directly include ggc.h before rtl.h.
15760 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15762 * ipa-polymorphic-call.c
15763 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
15764 code determining speculative type.
15765 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
15767 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15769 * altivec.md (altivec_lvsl): New define_expand.
15770 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
15771 (altivec_lvsr): New define_expand.
15772 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
15773 * rs6000.c (rs6000_expand_builtin): Change to use
15774 altivec_lvs[lr]_direct; remove commented-out code.
15776 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15778 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15779 Issue a warning message when vec_lvsl or vec_lvsr is used with a
15780 little endian target.
15782 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15784 * tree-pretty-print.c (dump_location): Make it extern. Dump also
15786 * tree-pretty-print.h (dump_location): Declare.
15787 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
15788 (pp_gimple_stmt_1): Likewise.
15789 (dump_implicit_edges): Likewise.
15790 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
15794 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15796 * gcc.c (driver::global_initializations): Remove "const" so
15797 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
15798 and decoded_options_count.
15800 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
15802 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
15804 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
15805 TARGET_E500_DOUBLE case here.
15807 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
15812 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
15814 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15816 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
15817 * lto-cgraph.c (lto_output_edge, input_edge): Stream
15818 in_polymorphic_cdtor
15819 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
15820 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
15821 * cgraphclones.c (cgraph_edge::clone): Likewise.
15822 * ipa-prop.c (update_jump_functions_after_inlining,
15823 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
15824 to possible_dynamic_type_change.
15825 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
15826 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15827 IN_POLY_CDOTR argument.
15829 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
15830 for BASE and OUTER_TYPE being NULL.
15831 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15832 in_poly_cdtor parameter.
15834 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15836 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
15837 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
15839 (expand_vec_perm_1): Likewise.
15841 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15842 Uros Bizjak <ubizjak@gmail.com>
15844 PR tree-optimization/61403
15845 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
15846 error in comment. Also optimize 256-bit vectors for AVX2
15847 or AVX (floating vectors only), provided the first permutation
15848 can be performed in one insn.
15850 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15852 * gcc.c (class driver): New class.
15853 (main): Reimplement in terms of driver::main, moving most of the
15854 locals to be locals within individual methods of class driver.
15855 The remaining locals "explicit_link_files", "decoded_options" and
15856 "decoded_options_count" are used by multiple driver:: methods, and
15857 so become member data. Doing so isolates the argc/argv reads and
15858 writes. Replace "goto out" with a special exit code from
15859 new method driver::prepare_infiles. Split out the old
15860 implementation of main into the following...
15861 (driver::main): New function, corresponding to the old "main"
15863 (driver::set_progname): New function, taken from the old
15864 "main" implementation.
15865 (driver::expand_at_files): Likewise.
15866 (driver::decode_argv): Likewise.
15867 (driver::global_initializations): Likewise.
15868 (driver::build_multilib_strings): Likewise.
15869 (driver::set_up_specs): Likewise.
15870 (driver::putenv_COLLECT_GCC): Likewise.
15871 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
15872 (driver::handle_unrecognized_options): Likewise.
15873 (driver::maybe_print_and_exit): Likewise.
15874 (driver::prepare_infiles): Likewise.
15875 (driver::do_spec_on_infiles): Likewise.
15876 (driver::maybe_run_linker): Likewise.
15877 (driver::final_actions): Likewise.
15878 (driver::get_exit_code): Likewise.
15880 2014-10-03 Yury Gribov <y.gribov@samsung.com>
15882 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
15883 don't emit empty ctors.
15885 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
15887 * convert.c (convert_to_integer): Do not introduce useless conversions
15888 between integral types.
15890 2014-10-03 David Sherwood <david.sherwood@arm.com>
15892 * ira-int.h (ira_allocno): Mark hard_regno as signed.
15894 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
15896 * lra-constraints.c (inherit_in_ebb): Handle calls with
15897 multiple return values.
15898 * caller-save.c (save_call_clobbered_regs): Likewise.
15900 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15902 * tree-vect-data-refs.c (vect_permute_load_chain,
15903 vect_shift_permute_load_chain): Fix a typo in temporary var names,
15904 suffle3 to shuffle3.
15907 * omp-low.c (taskreg_contexts): New variable.
15908 (scan_omp_parallel): Push newly created context into taskreg_contexts
15909 vector and move record layout code to finish_taskreg_scan.
15910 (scan_omp_task): Likewise.
15911 (finish_taskreg_scan): New function.
15912 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
15913 vector elements and release it.
15916 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
15917 of palignr arguments can't be used due to min 0 or max - min
15918 too high, try also op0, op1 order of palignr arguments.
15920 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
15922 * cgraph.h (ipa_polymorphic_call_context):
15923 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
15924 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
15925 * ipa-polymorphic-call.c
15926 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
15927 past end of dynamic types.
15928 (ipa_polymorphic_call_context::stream_out,
15929 speculative_outer_type): Stream dynamic flag.
15930 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
15931 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
15933 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
15935 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
15936 * ipa-prop.c (update_jump_functions_after_inlining,
15937 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
15939 2014-10-02 Teresa Johnson <tejohnson@google.com>
15941 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
15942 up when synthesizing counts to avoid rounding errors.
15944 2014-10-02 Teresa Johnson <tejohnson@google.com>
15946 PR middle-end/63422
15947 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
15948 asserts to handle incoming insanities.
15950 2014-10-02 Martin Jambor <mjambor@suse.cz>
15952 PR tree-optimization/63375
15953 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
15956 2014-10-02 Olivier Hainque <hainque@adacore.com>
15958 * Makefile.in (CROSS): Define, to @CROSS.
15960 2014-10-02 Jakub Jelinek <jakub@redhat.com>
15963 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
15964 if it expands to a single insn only.
15965 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
15966 fail unless in_order is true. Add forward declaration.
15967 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
15968 is useful for one_operand_p.
15969 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
15971 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15973 * cgraphclones.c (build_function_type_skip_args): Do not make new
15974 type variant of old.
15976 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
15978 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
15979 when speculation is added.
15980 (ipa_edge_args): Add polymorphic_call_contexts.
15981 (ipa_get_ith_polymorhic_call_context): New accesor.
15982 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
15983 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
15984 (ipa_compute_jump_functions_for_edge): Compute contexts.
15985 (update_jump_functions_after_inlining): Update contexts.
15986 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
15987 update dumping; add speculative edge creation.
15988 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
15990 (update_indirect_edges_after_inlining): Pass down context.
15991 (ipa_edge_duplication_hook): Duplicate contexts.
15992 (ipa_write_node_info): Stream out contexts.
15993 (ipa_read_node_info): Stream in contexts.
15994 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
15996 (try_speculative_devirtualization): New function.
15997 * ipa-utils.h (try_speculative_devirtualization): Declare.
15999 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16001 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
16002 dumping during WPA.
16004 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16006 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
16009 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16011 * ipa-polymorphic-call.c
16012 (ipa_polymorphic_call_context::restrict_to_inner_class):
16013 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
16014 use speculation_consistent_p to do so; Add CONSDER_BASES
16015 and CONSIDER_PLACEMENT_NEW parameters.
16016 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
16017 short circuit obvious cases.
16018 (ipa_polymorphic_call_context::dump): Improve formatting.
16019 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
16020 combine_speculation_with to record speculations; Do not ICE when
16021 object is located in pointer type decl; do not ICE for methods
16022 of UNION_TYPE; do not record nonpolymorphic types.
16023 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
16024 (ipa_polymorphic_call_context::combine_speculation_with): New method.
16025 (ipa_polymorphic_call_context::combine_with): New method.
16026 (ipa_polymorphic_call_context::make_speculative): Move here; use
16027 combine speculation.
16028 * cgraph.h (ipa_polymorphic_call_context): Update
16029 restrict_to_inner_class prototype; add offset_by, make_speculative,
16030 combine_with, useless_p, combine_speculation_with and
16031 speculation_consistent_p methods.
16032 (ipa_polymorphic_call_context::offset_by): New method.
16033 (ipa_polymorphic_call_context::useless_p): New method.
16035 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
16037 PR rtl-optimization/62151
16038 * combine.c (can_combine_p): Allow the destination register of INSN
16039 to be clobbered in I3.
16040 (subst): Do not substitute into clobbers of registers.
16042 2014-10-01 Jakub Jelinek <jakub@redhat.com>
16045 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
16046 offset, TARGET_MEM_REF and SSA_NAME.
16048 * config/i386/i386.c (expand_vec_perm_palignr): Handle
16049 256-bit vectors for TARGET_AVX2.
16051 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
16052 dfirst permutation.
16055 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
16056 argument to avx2_permv2ti.
16058 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16060 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
16062 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
16064 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
16065 (fmod<mode>3): Ditto.
16066 (fpremxf4_i387): Ditto.
16067 (reminderxf3): Ditto.
16068 (reminder<mode>3): Ditto.
16069 (fprem1xf4_i387): Ditto.
16071 2014-09-30 Teresa Johnson <tejohnson@google.com>
16073 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
16074 duplicate_blocks bitmap.
16075 (remove_ctrl_stmt_and_useless_edges): Ditto.
16076 (create_block_for_threading): Ditto.
16077 (compute_path_counts): New function.
16078 (update_profile): Ditto.
16079 (recompute_probabilities): Ditto.
16080 (update_joiner_offpath_counts): Ditto.
16081 (freqs_to_counts_path): Ditto.
16082 (clear_counts_path): Ditto.
16083 (ssa_fix_duplicate_block_edges): Update profile info.
16084 (ssa_create_duplicates): Pass new parameter.
16085 (ssa_redirect_edges): Remove old profile update.
16086 (thread_block_1): New duplicate_blocks bitmap,
16087 remove old profile update.
16088 (thread_single_edge): Pass new parameter.
16090 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
16092 PR middle-end/62120
16093 * varasm.c (decode_reg_name_and_count): Check availability for
16094 registers from ADDITIONAL_REGISTER_NAMES.
16096 2014-09-30 David Malcolm <dmalcolm@redhat.com>
16099 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
16100 (PLUGIN_HEADERS): Add pass-instances.def.
16102 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
16104 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
16106 * config/aarch64/aarch64-simd.md
16107 (aarch64_sqdmull_laneq<mode>): Expand iterator.
16108 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
16109 (vqdmulls_lane_s32): Fix return type.
16110 (vqdmulls_laneq_s32): New.
16112 2014-09-30 Jakub Jelinek <jakub@redhat.com>
16114 PR inline-asm/63282
16115 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
16116 or invert_jump_1 if jump isn't any_condjump_p.
16118 2014-09-30 Terry Guo <terry.guo@arm.com>
16120 * config/arm/arm-cores.def (cortex-m7): New core name.
16121 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
16123 * config/arm/arm-tables.opt: Regenerated.
16124 * config/arm/arm-tune.md: Regenerated.
16125 * config/arm/arm.h (TARGET_VFP5): New macro.
16126 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
16127 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
16128 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
16129 * doc/invoke.texi: Document new cpu and fpu names.
16131 2014-09-30 Jiong Wang <jiong.wang@arm.com>
16133 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
16134 before sinking insn.
16136 2014-09-30 David Sherwood <david.sherwood@arm.com>
16138 * ira-int.h (ira_allocno): Add "wmode" field.
16139 * ira-build.c (create_insn_allocnos): Add new "parent" function
16141 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
16142 that cannot be accessed in wmode.
16144 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
16146 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
16149 2014-09-29 Andi Kleen <ak@linux.intel.com>
16151 * opts.c (print_filtered_help): Print --param min/max/default
16154 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
16156 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
16158 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
16160 * tree-vrp.c (get_single_symbol): New function.
16161 (build_symbolic_expr): Likewise.
16162 (symbolic_range_based_on_p): New predicate.
16163 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
16164 for PLUS and MINUS. Do not drop symbolic ranges at the end.
16165 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
16166 operand is symbolic and based on the other operand.
16168 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
16170 * config/microblaze/microblaze.md (call_internal1): Use VOID
16171 instead of SI to fix "((void (*)(void)) 0)()" issue
16173 2014-09-29 Nick Clifton <nickc@redhat.com>
16175 * config/msp430/msp430.c (msp430_expand_prologue): Return a
16176 CLOBBER rtx for naked functions.
16177 (msp430_expand_epilogue): Likewise.
16178 (msp430_use_f5_series_hwmult): Cache result.
16179 (use_32bit_hwmult): Cache result.
16180 (msp430_no_hwmult): New function.
16181 (msp430_output_labelref): Use it.
16183 2014-09-29 Jakub Jelinek <jakub@redhat.com>
16185 PR middle-end/63247
16186 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
16187 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
16188 use the alignment of avar rather than ovar.
16190 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
16192 * config/pa/pa.c (pa_output_function_epilogue): Only update
16193 last_address when a nonnote insn is found.
16195 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16198 * ipa-devirt.c (possible_polymorphic_call_targets): Silence
16201 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16204 * ipa-polymorphic-call.c
16205 (ipa_polymorphic_call_context::restrict_to_inner_class): Fix pasto
16206 in checking array size.
16208 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16210 PR middle-end/35545
16211 * passes.def (pass_tracer): Move before last dominator pass.
16213 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
16215 * gcc.c (try_generate_repro): Remove argument "prog". Change all
16217 (run_attempt): Handle errors of "pex_run" invocation.
16219 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
16221 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
16222 (CC1_SPEC): Define.
16223 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
16224 (TARGET_ASAN_SHADOW_OFFSET): Define.
16226 2014-09-26 Martin Liska <mliska@suse.cz>
16228 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
16230 * cgraph.h: Likewise.
16231 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new
16232 argument introduced.
16233 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos
16235 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function
16236 transformed to global.
16237 * tree-ssa-alias.h: Likewise.
16239 2014-09-26 Jakub Jelinek <jakub@redhat.com>
16240 Max Ostapenko <m.ostapenko@partner.samsung.com>
16242 * common.opt: New option.
16243 * doc/invoke.texi: Describe new option.
16244 * gcc.c (execute): Don't free first string early, but at the end
16245 of the function. Call retry_ice if compiler exited with
16247 (main): Factor out common code.
16248 (print_configuration): New function.
16249 (files_equal_p): Likewise.
16250 (check_repro): Likewise.
16251 (run_attempt): Likewise.
16252 (do_report_bug): Likewise.
16253 (append_text): Likewise.
16254 (try_generate_repro): Likewise
16256 2014-09-25 Andi Kleen <ak@linux.intel.com>
16258 * config/i386/i386.c (x86_print_call_or_nop): New function.
16259 (x86_function_profiler): Support -mnop-mcount and
16261 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
16262 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
16264 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16266 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
16267 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
16268 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
16271 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16273 * ipa-utils.h (subbinfo_with_vtable_at_offset,
16274 type_all_derivations_known_p, type_known_to_have_no_deriavations_p,
16275 types_must_be_same_for_odr, types_odr_comparable): Declare.
16276 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
16277 * ipa-polymorphic-call.c: New file.
16278 (contains_polymorphic_type_p, possible_placement_new,
16279 ipa_polymorphic_call_context::restrict_to_inner_class,
16280 contains_type_p, decl_maybe_in_construction_p,
16281 ipa_polymorphic_call_context::stream_out,
16282 ipa_polymorphic_call_context::debug,
16283 ipa_polymorphic_call_context::stream_in,
16284 ipa_polymorphic_call_context::set_by_decl,
16285 ipa_polymorphic_call_context::set_by_invariant,
16287 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16288 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16289 extr_type_from_vtbl_ptr_store, record_known_type
16290 check_stmt_for_type_change,
16291 ipa_polymorphic_call_context::get_dynamic_type): Move here from
16293 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
16294 and streamer-hooks.h
16295 (contains_polymorphic_type_p, possible_placement_new,
16296 ipa_polymorphic_call_context::restrict_to_inner_class,
16297 contains_type_p, decl_maybe_in_construction_p,
16298 ipa_polymorphic_call_context::stream_out,
16299 ipa_polymorphic_call_context::debug,
16300 ipa_polymorphic_call_context::stream_in,
16301 ipa_polymorphic_call_context::set_by_decl,
16302 ipa_polymorphic_call_context::set_by_invariant,
16304 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16305 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16306 extr_type_from_vtbl_ptr_store, record_known_type
16307 check_stmt_for_type_change,
16308 ipa_polymorphic_call_context::get_dynamic_type): Move to
16309 ipa-polymorphic-call.c
16310 (type_all_derivations_known_p, types_odr_comparable,
16311 types_must_be_same_for_odr): Export.
16312 (type_known_to_have_no_deriavations_p): New function.
16313 * Makefile.in: Add ipa-polymorphic-call.c
16315 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16317 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
16318 for better storage.
16319 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
16320 (possible_polymorphic_call_targets): Instead of computing both
16321 speculative and non-speculative answers, do just one at a time.
16322 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
16323 (dump_targets): Break out from ...
16324 (dump_possible_polymorphic_call_targets): ... here; dump both
16325 speculative and non-speculative lists.
16326 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
16327 * ipa-utils.h (possible_polymorphic_call_targets): Update.
16329 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
16331 PR rtl-optimization/63348
16332 * emit-rtl.c (try_split): Do not emit extra barrier.
16334 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
16336 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
16337 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
16339 (aarch64_<sur>shll2_n<mode>): Likewise.
16340 (aarch64_<sur>shr_n<mode>): Likewise.
16341 (aarch64_<sur>sra_n<mode>: Likewise.
16342 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
16343 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
16344 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
16345 * config/aarch64/iterators.md (ve_mode): New.
16346 (offsetlr): Remap to infix text for use in new predicates.
16347 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
16348 (aarch64_simd_shift_imm_hi): Likewise.
16349 (aarch64_simd_shift_imm_si): Likewise.
16350 (aarch64_simd_shift_imm_di): Likewise.
16351 (aarch64_simd_shift_imm_offset_qi): Likewise.
16352 (aarch64_simd_shift_imm_offset_hi): Likewise.
16353 (aarch64_simd_shift_imm_offset_si): Likewise.
16354 (aarch64_simd_shift_imm_offset_di): Likewise.
16355 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
16356 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
16357 (aarch64_simd_shift_imm_bitsize_si): Likewise.
16358 (aarch64_simd_shift_imm_bitsize_di): Likewise.
16360 2014-09-25 Jiong Wang <jiong.wang@arm.com>
16362 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
16363 new created BB as the intersection of live-in from "old_dest" and
16364 live-out from "bb".
16366 2014-09-25 Felix Yang <felix.yang@huawei.com>
16368 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
16369 * genautomata.c (merge_states): Ditto.
16371 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
16374 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
16375 in instruction sequence.
16377 2014-09-25 Nick Clifton <nickc@redhat.com>
16380 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
16381 in instruction sequence.
16383 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16386 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
16387 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
16389 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16391 Anna Tikhonova <anna.tikhonova@intel.com>
16392 Ilya Tocar <ilya.tocar@intel.com>
16393 Andrey Turetskiy <andrey.turetskiy@intel.com>
16394 Ilya Verbin <ilya.verbin@intel.com>
16395 Kirill Yukhin <kirill.yukhin@intel.com>
16396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16398 * config/i386/sse.md
16399 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
16400 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
16401 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
16402 (define_expand "<avx512>_perm<mode>_mask"): ... this.
16403 Use VI8F_256_512 mode iterator.
16404 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
16405 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
16407 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16408 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16409 Anna Tikhonova <anna.tikhonova@intel.com>
16410 Ilya Tocar <ilya.tocar@intel.com>
16411 Andrey Turetskiy <andrey.turetskiy@intel.com>
16412 Ilya Verbin <ilya.verbin@intel.com>
16413 Kirill Yukhin <kirill.yukhin@intel.com>
16414 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16416 * config/i386/sse.md
16417 (define_insn "avx_movshdup256<mask_name>"): Add masking.
16418 (define_insn "sse3_movshdup<mask_name>"): Ditto.
16419 (define_insn "avx_movsldup256<mask_name>"): Ditto.
16420 (define_insn "sse3_movsldup<mask_name>"): Ditto.
16421 (define_insn "vec_dupv2df<mask_name>"): Ditto.
16422 (define_insn "*vec_concatv2df"): Add EVEX version.
16424 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16425 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16426 Anna Tikhonova <anna.tikhonova@intel.com>
16427 Ilya Tocar <ilya.tocar@intel.com>
16428 Andrey Turetskiy <andrey.turetskiy@intel.com>
16429 Ilya Verbin <ilya.verbin@intel.com>
16430 Kirill Yukhin <kirill.yukhin@intel.com>
16431 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16433 * config/i386/sse.md
16434 (define_insn "vec_set<mode>_0"): Add EVEX version.
16436 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16438 Anna Tikhonova <anna.tikhonova@intel.com>
16439 Ilya Tocar <ilya.tocar@intel.com>
16440 Andrey Turetskiy <andrey.turetskiy@intel.com>
16441 Ilya Verbin <ilya.verbin@intel.com>
16442 Kirill Yukhin <kirill.yukhin@intel.com>
16443 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16445 * config/i386/sse.md
16447 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
16449 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16450 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
16451 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
16452 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
16453 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
16454 (define_expand "sse2_cvtpd2ps_mask): New.
16455 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
16456 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
16458 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16460 Anna Tikhonova <anna.tikhonova@intel.com>
16461 Ilya Tocar <ilya.tocar@intel.com>
16462 Andrey Turetskiy <andrey.turetskiy@intel.com>
16463 Ilya Verbin <ilya.verbin@intel.com>
16464 Kirill Yukhin <kirill.yukhin@intel.com>
16465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16467 * config/i386/i386.c
16468 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
16469 (ufix_notruncv8dfv8si2_mask_round): ... this.
16470 * config/i386/sse.md
16471 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
16472 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
16473 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
16474 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
16475 (define_expand "sse2_cvtpd2dq"): Delete.
16476 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
16477 make 2nd operand const0 vector.
16478 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
16480 (define_mode_attr pd2udqsuff): New.
16482 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
16483 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
16484 (define_insn "*avx_cvttpd2dq256_2"): Delete.
16485 (define_expand "sse2_cvttpd2dq"): Ditto.
16486 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
16487 make 2nd operand const0 vector.
16489 2014-09-25 Jakub Jelinek <jakub@redhat.com>
16491 PR tree-optimization/63341
16492 * tree-vectorizer.h (vect_create_data_ref_ptr,
16493 vect_create_addr_base_for_vector_ref): Add another tree argument
16494 defaulting to NULL_TREE.
16495 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
16496 argument, pass it down to vect_create_addr_base_for_vector_ref.
16497 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
16498 add that to base_offset too if non-NULL.
16499 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
16500 for dr_explicit_realign_optimized set it to vector byte size
16501 - 1 instead of setting offset, pass byte_offset down to
16502 vect_create_data_ref_ptr.
16504 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16506 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
16507 forgotten debug output; canonicalize querries more wtih LTO.
16509 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16511 * cgraph.h (class ipa_polymorphic_call_context): Move here from
16512 ipa-utils.h; add stream_int and stream_out methods.
16513 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
16514 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
16515 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
16517 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16518 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16519 ipa_polymorphic_call_context::clear_speculation,
16520 ipa_polymorphic_call_context::clear_outer_type): Move here from
16522 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
16523 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16524 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16525 ipa_polymorphic_call_context::clear_speculation,
16526 ipa_polymorphic_call_context::clear_outer_type): Likewise.
16527 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
16529 (ipa_polymorphic_call_context::stream_out): New method.
16530 (ipa_polymorphic_call_context::stream_in): New method.
16531 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
16532 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
16534 (ipa_analyze_call_uses): Simplify.
16535 (update_indirect_edges_after_inlining): Do not care about outer_type.
16536 (ipa_write_indirect_edge_info): Update.
16537 (ipa_write_indirect_edge_info): Likewise.
16538 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
16539 (dump_edge_flags): Break out from ...
16540 (cgraph_node::dump): ... here; dump indirect edges.
16542 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16544 * ipa-utils.h (polymorphic_call_context): Add
16545 metdhos dump, debug and clear_outer_type.
16546 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16547 (ipa_polymorphic_call_context::clear_outer_type): New method.
16548 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
16549 * ipa-devirt.c (types_odr_comparable): New function.
16550 (types_must_be_same_for_odr): New function.
16551 (odr_subtypes_equivalent_p): Simplify.
16552 (possible_placement_new): Break out from ...
16553 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
16554 be more cuatious about returning false in cases the context may be
16555 valid in derived type or via placement new.
16556 (contains_type_p): Clear maybe_derived_type
16557 (ipa_polymorphic_call_context::dump): New method.
16558 (ipa_polymorphic_call_context::debug): New method.
16559 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
16560 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
16561 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16562 (possible_polymorphic_call_targets): Trust
16563 context.restrict_to_inner_class to suceed on all valid cases;
16564 remove confused sanity check.
16565 (dump_possible_polymorphic_call_targets): Simplify.
16567 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
16569 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
16570 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
16571 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
16572 varpool.c: Rename all instances of DECL_ABSTRACT to
16575 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16577 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
16578 special handling for stores whose SET_SRC is an UNSPEC (such as
16581 2014-09-24 Jiong Wang <jiong.wang@arm.com>
16583 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
16584 !REG_P (src) to release more instruction sink opportunities.
16586 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
16588 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
16589 move costs for 128-bit types.
16591 2014-09-24 Martin Jambor <mjambor@suse.cz>
16593 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
16594 when duplicating a PASS_THROUGH jump function when creating a
16597 2014-09-24 Marek Polacek <polacek@redhat.com>
16601 * asan.c (maybe_instrument_call): Add default case.
16602 * ipa-pure-const.c (special_builtin_state): Likewise.
16603 * predict.c (expr_expected_value_1): Likewise.
16604 * lto-streamer-out.c (write_symbol): Initialize variable.
16606 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16608 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
16610 (vmuld_laneq_f64): Likewise.
16611 (vmuls_lane_f32): Likewise.
16612 (vmuls_laneq_f32): Likewise.
16614 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
16617 * varpool.c (varpool_node::add): Pass decl attributes
16618 to lookup_attribute.
16620 2014-09-24 Jakub Jelinek <jakub@redhat.com>
16623 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
16625 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16627 PR tree-optimization/63266
16628 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
16629 marker for unknown byte value.
16630 (MARKER_MASK): New macro.
16631 (MARKER_BYTE_UNKNOWN): New macro.
16632 (HEAD_MARKER): New macro.
16633 (do_shift_rotate): Mark bytes with unknown values due to sign
16634 extension when doing an arithmetic right shift. Replace hardcoded
16635 mask for marker by new MARKER_MASK macro.
16636 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
16637 numbers accordingly.
16639 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16641 Anna Tikhonova <anna.tikhonova@intel.com>
16642 Ilya Tocar <ilya.tocar@intel.com>
16643 Andrey Turetskiy <andrey.turetskiy@intel.com>
16644 Ilya Verbin <ilya.verbin@intel.com>
16645 Kirill Yukhin <kirill.yukhin@intel.com>
16646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16648 * config/i386/sse.md
16650 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
16652 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
16653 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
16655 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16656 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16657 Anna Tikhonova <anna.tikhonova@intel.com>
16658 Ilya Tocar <ilya.tocar@intel.com>
16659 Andrey Turetskiy <andrey.turetskiy@intel.com>
16660 Ilya Verbin <ilya.verbin@intel.com>
16661 Kirill Yukhin <kirill.yukhin@intel.com>
16662 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16664 * config/i386/sse.md
16665 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
16666 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
16667 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
16668 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
16669 (define_expand "avx512vl_pshuflw_mask"): New.
16670 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
16671 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
16672 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
16673 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
16674 (define_expand "avx512vl_pshufhw_mask"): New.
16675 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
16677 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16678 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16679 Anna Tikhonova <anna.tikhonova@intel.com>
16680 Ilya Tocar <ilya.tocar@intel.com>
16681 Andrey Turetskiy <andrey.turetskiy@intel.com>
16682 Ilya Verbin <ilya.verbin@intel.com>
16683 Kirill Yukhin <kirill.yukhin@intel.com>
16684 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16686 * config/i386/i386.c
16687 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
16688 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
16689 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
16690 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
16691 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
16692 * config/i386/sse.md
16693 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
16695 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
16696 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
16698 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
16699 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
16700 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
16701 (define_expand "avx512vl_pshufd_mask"): New.
16702 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
16704 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16706 Anna Tikhonova <anna.tikhonova@intel.com>
16707 Ilya Tocar <ilya.tocar@intel.com>
16708 Andrey Turetskiy <andrey.turetskiy@intel.com>
16709 Ilya Verbin <ilya.verbin@intel.com>
16710 Kirill Yukhin <kirill.yukhin@intel.com>
16711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16713 * config/i386/i386.c
16714 (CODE_FOR_avx2_extracti128): Rename to ...
16715 (CODE_FOR_avx_vextractf128v4di): this.
16716 (CODE_FOR_avx2_inserti128): Rename to ...
16717 (CODE_FOR_avx_vinsertf128v4di): this.
16718 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
16719 CODE_FOR_avx_vextractf128v4di.
16720 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
16721 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
16722 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
16723 CODE_FOR_avx512vl_vinsertv8si.
16724 * config/i386/sse.md
16726 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
16727 AVX512_VEC mode iterator.
16729 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
16732 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
16733 AVX512_VEC_2 mode iterator.
16734 (define_insn "vec_set_lo_<mode><mask_name>"): New.
16735 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16736 (define_expand "avx512vl_vinsert<mode>"): Ditto.
16737 (define_insn "avx2_vec_set_lo_v4di"): Delete.
16738 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
16739 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
16740 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16741 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
16742 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16743 (define_expand "avx2_extracti128"): Delete.
16744 (define_expand "avx2_inserti128"): Ditto.
16746 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16748 Anna Tikhonova <anna.tikhonova@intel.com>
16749 Ilya Tocar <ilya.tocar@intel.com>
16750 Andrey Turetskiy <andrey.turetskiy@intel.com>
16751 Ilya Verbin <ilya.verbin@intel.com>
16752 Kirill Yukhin <kirill.yukhin@intel.com>
16753 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16755 * config/i386/sse.md
16756 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
16757 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
16758 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
16759 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
16760 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
16761 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
16762 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
16763 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
16764 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
16765 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
16766 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
16767 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
16768 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
16770 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
16772 PR rtl-optimization/63210
16773 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
16774 HARD_REGNO is not available for CONFLICT_A.
16776 2014-09-23 Andi Kleen <ak@linux.intel.com>
16778 * cgraph.h (symtab_node): Add no_reorder attribute.
16779 (symbol_table::output_asm_statements): Remove.
16780 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
16781 (cgraph_node::create_version_clone): Dito.
16782 (symbol_table::output_asm_statements): Remove.
16783 * trans-mem.c (ipa_tm_create_version_alias): Dito.
16784 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
16785 (output_in_order): Add no_reorder flag. Only handle no_reorder
16787 (symbol_table::compile): Add separate pass for no_reorder nodes.
16788 (process_common_attributes): Set no_reorder flag in symtab node.
16790 (process_function_and_variable_attributes): Pass symtab nodes to
16791 process_common_attributes.
16792 * doc/extend.texi (no_reorder): Document no_reorder attribute.
16793 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
16794 (lto_output_varpool_node): Dito.
16795 (input_overwrite_node): Dito.
16796 (input_varpool_node): Dito.
16797 * varpool.c (varpool_node::add): Set no_reorder attribute.
16798 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
16799 (symbol_table::output_variables): Dito.
16800 * symtab.c (symtab_node::dump_base): Print no_reorder.
16802 2014-09-23 Jiong Wang <jiong.wang@arm.com>
16804 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM
16805 not be INVALID_REGNUM.
16807 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
16809 * configure: Regenerate.
16811 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
16813 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
16814 when result_mode == shift_mode.
16816 2014-09-23 Kostya Serebryany <kcc@google.com>
16818 Update to match the changed asan API.
16819 * asan.c (asan_global_struct): Update the __asan_global definition
16820 to match the new API.
16821 (asan_add_global): Ditto.
16822 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
16825 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16827 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
16828 refine the constraints used on 32/64-bit floating point moves.
16829 (f32_av): Likewise.
16830 (f64_vsx): Likewise.
16831 (f64_dm): Likewise.
16832 (f64_av): Likewise.
16833 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
16834 (BOOL_REGS_OP1): Likewise.
16835 (BOOL_REGS_OP2): Likewise.
16836 (BOOL_REGS_UNARY): Likewise.
16837 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
16838 32/64-bit floating point moves. Do not use wa, instead use ww/ws
16839 for moves involving VSX registers. Do not use constraints that
16840 target VSX registers for decimal types.
16841 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
16842 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
16844 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
16846 * tree.h (int_bit_position): Turn into inline function;
16847 implement using wide int.
16848 * tree.c (int_bit_position): Remove.
16850 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
16853 * target-globals.c (target_globals::~target_globals): Fix location
16854 of ira_int destruction.
16856 2014-09-23 Renlin Li <renlin.li@arm.com>
16858 * config/aarch64/aarch64.md (return): New.
16859 (simple_return): Likewise.
16860 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
16861 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
16863 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
16865 * common/config/aarch64/aarch64-common.c:
16866 (default_options aarch_option_optimization_table):
16867 Default to -fsched-pressure.
16869 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
16871 * cfgcleanup.c (try_optimize_cfg): Do not remove label
16872 with LABEL_PRESERVE_P flag set.
16874 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16875 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16876 Anna Tikhonova <anna.tikhonova@intel.com>
16877 Ilya Tocar <ilya.tocar@intel.com>
16878 Andrey Turetskiy <andrey.turetskiy@intel.com>
16879 Ilya Verbin <ilya.verbin@intel.com>
16880 Kirill Yukhin <kirill.yukhin@intel.com>
16881 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16883 * config/i386/sse.md
16884 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
16885 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
16886 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
16887 (define_insn "sse2_shufpd_v2df_mask"): New.
16889 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16891 Anna Tikhonova <anna.tikhonova@intel.com>
16892 Ilya Tocar <ilya.tocar@intel.com>
16893 Andrey Turetskiy <andrey.turetskiy@intel.com>
16894 Ilya Verbin <ilya.verbin@intel.com>
16895 Kirill Yukhin <kirill.yukhin@intel.com>
16896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16898 * config/i386/sse.md
16899 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
16900 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
16901 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
16902 (define_insn "sse_shufps_v4sf_mask"): New.
16904 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16906 Anna Tikhonova <anna.tikhonova@intel.com>
16907 Ilya Tocar <ilya.tocar@intel.com>
16908 Andrey Turetskiy <andrey.turetskiy@intel.com>
16909 Ilya Verbin <ilya.verbin@intel.com>
16910 Kirill Yukhin <kirill.yukhin@intel.com>
16911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16913 * config/i386/sse.md
16914 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
16915 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
16916 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
16917 (define_insn "unpcklps128_mask"): New.
16919 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16920 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16921 Anna Tikhonova <anna.tikhonova@intel.com>
16922 Ilya Tocar <ilya.tocar@intel.com>
16923 Andrey Turetskiy <andrey.turetskiy@intel.com>
16924 Ilya Verbin <ilya.verbin@intel.com>
16925 Kirill Yukhin <kirill.yukhin@intel.com>
16926 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16928 * config/i386/sse.md
16929 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
16930 (define_insn "avx512vl_unpckhpd128_mask"): New.
16931 (define_expand "avx_movddup256<mask_name>"): Add masking.
16932 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
16933 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
16934 (define_insn "avx512vl_unpcklpd128_mask"): New.
16936 2014-09-22 Joseph Myers <joseph@codesourcery.com>
16938 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16939 * doc/tm.texi: Regenerate.
16940 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
16941 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16942 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16944 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16945 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16946 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16947 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16948 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16950 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16951 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16952 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16953 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16954 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16955 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16956 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16957 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16958 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16959 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16960 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16963 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
16965 * tree-ssa-ccp.c (prop_value_d): Rename to ...
16966 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
16967 * ipa-prop.c (struct type_change_info): Rename to ...
16968 (prop_type_change_info): ... this; update uses.
16969 * ggc-page.c (globals): Rename to ...
16970 (static struct ggc_globals): ... this; update uses.
16971 * tree-ssa-loop-im.c (mem_ref): Rename to ...
16972 (im_mem_ref): ... this; update uses.
16973 * ggc-common.c (loc_descriptor): Rename to ...
16974 (ggc_loc_descriptor): ... this; update uses.
16975 * lra-eliminations.c (elim_table): Rename to ...
16976 (lra_elim_table): ... this; update uses.
16977 * bitmap.c (output_info): Rename to ...
16978 (bitmap_output_info): ... this; update uses.
16979 * gcse.c (expr): Rename to ...
16980 (gcse_expr) ... this; update uses.
16981 (occr): Rename to ...
16982 (gcse_occr): .. this; update uses.
16983 * tree-ssa-copy.c (prop_value_d): Rename to ...
16984 (prop_value_t): ... this.
16985 * predict.c (block_info_def): Rename to ...
16986 (block_info): ... this; update uses.
16987 (edge_info_def): Rename to ...
16988 (edge_info): ... this; update uses.
16989 * profile.c (bb_info): Rename to ...
16990 (bb_profile_info): ... this; update uses.
16991 * alloc-pool.c (output_info): Rename to ...
16992 (pool_output_info): ... this; update uses.
16993 * ipa-cp.c (topo_info): Rename to ..
16994 (ipa_topo_info): ... this; update uses.
16995 * tree-nrv.c (nrv_data): Rename to ...
16996 (nrv_data_t): ... this; update uses.
16997 * ipa-split.c (bb_info): Rename to ...
16998 (split_bb_info): ... this one.
16999 * profile.h (edge_info): Rename to ...
17000 (edge_profile_info): ... this one; update uses.
17001 * dse.c (bb_info): Rename to ...
17002 (dse_bb_info): ... this one; update uses.
17003 * cprop.c (occr): Rename to ...
17004 (cprop_occr): ... this one; update uses.
17005 (expr): Rename to ...
17006 (cprop_expr): ... this one; update uses.
17008 2014-09-22 Jason Merrill <jason@redhat.com>
17010 * Makefile.in (check-parallel-%): Add @.
17012 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17014 * config/aarch64/geniterators.sh: New.
17015 * config/aarch64/iterators.md (VDQF_DF): New.
17016 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
17017 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
17019 2014-09-22 Peter A. Bigot <pab@pabigot.com>
17021 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
17022 -lnosys when -msim absent.
17024 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
17026 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
17028 2014-09-22 Richard Biener <rguenther@suse.de>
17030 * gimplify.c (gimplify_init_constructor): Do not leave
17031 non-GIMPLE vector constructors around.
17032 * tree-cfg.c (verify_gimple_assign_single): Verify that
17033 CONSTRUCTORs have gimple elements.
17035 2014-09-22 Jakub Jelinek <jakub@redhat.com>
17038 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
17039 insert a debug source bind stmt setting DEBUG_EXPR_DECL
17040 instead of a normal gimple assignment stmt.
17042 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17044 * config/bfin/bfin.md: Fix use of constraints in define_split.
17046 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17048 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
17049 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
17051 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17053 * hard-reg-set.h: Include hash-table.h.
17054 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
17056 * target-globals.c (target_globals::~target_globals): Call
17057 hard_regs->finalize.
17058 * rtl.h (subreg_shape): New structure.
17059 (shape_of_subreg): New function.
17060 (simplifiable_subregs): Declare.
17061 * reginfo.c (simplifiable_subreg): New structure.
17062 (simplifiable_subregs_hasher): Likewise.
17063 (simplifiable_subregs): New function.
17064 (invalid_mode_changes): Delete.
17065 (alid_mode_changes, valid_mode_changes_obstack): New variables.
17066 (record_subregs_of_mode): Remove subregs_of_mode parameter.
17067 Record valid mode changes in valid_mode_changes.
17068 (find_subregs_of_mode): Remove subregs_of_mode parameter.
17069 Update calls to record_subregs_of_mode.
17070 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
17071 handling. Initialize new variables. Update call to
17072 find_subregs_of_mode.
17073 (invalid_mode_change_p): Check new variables instead of
17074 invalid_mode_changes.
17075 (finish_subregs_of_mode): Finalize new variables instead of
17076 invalid_mode_changes.
17077 (target_hard_regs::finalize): New function.
17078 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
17079 even when CLASS_CANNOT_CHANGE_MODE is undefined.
17081 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17083 * combine.c (subst): Use simplify_subreg_regno rather than
17084 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
17086 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17088 * rtl.h (subreg_info): Expand commentary
17089 * rtlanal.c (subreg_get_info): Likewise.
17091 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17093 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
17094 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
17095 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
17097 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
17099 * config/arm/arm.c: #include "tm-constrs.h"
17100 (thumb1_size_rtx_costs): Adjust rtx costs.
17102 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
17104 * configure.ac (target_header_dir): Move block defining
17105 this to before the block setting inhibit_libc.
17106 (inhibit_libc): When considering $with_headers, just
17107 check it it's explicitly "no". If not, also check if
17108 $target_header_dir/stdio.h is present. If not, set
17110 * configure: Regenerate.
17112 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
17114 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
17116 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17118 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
17119 insn for divides by integer powers of two.
17120 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
17121 (mod<mode>3): Fix formatting.
17122 (three anonymous define_insn and two define_split): Delete.
17124 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17126 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
17127 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
17128 (floatdisf2_internal2): Ditto.
17129 (ashrdi3_no_power): Ditto. Fix formatting.
17131 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17133 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
17134 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
17137 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17139 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
17140 constant, use addsi3 directly.
17141 (three anonymous define_insn, two define_split): Delete.
17142 (sub<mode>3): Move. Do not allow constant second operand.
17143 Generate different insn for constant first operand.
17144 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
17145 (subf<mode>3_imm): New.
17146 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
17147 (*plus_ltu<mode>): Only handle registers.
17148 (*plus_ltu<mode>_1): New. Handle integer third operand.
17149 (*plus_gtu<mode>): Only handle registers.
17150 (*plus_gtu<mode>_1): New. Handle integer third operand.
17152 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17154 * config/rs6000/rs6000.md (iorxor): New code_iterator.
17155 (iorxor): New code_attr.
17156 (IORXOR): New code_attr.
17157 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
17158 (ior<mode>3, xor<mode>3): Delete.
17159 (<iorxor><mode>3): New.
17160 (splitter for "big" integer ior, xor): New.
17161 (*bool<mode>3): Move. Also handle AND.
17162 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
17163 (splitter for "big" integer ior, xor): Delete.
17165 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17167 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
17168 (two anonymous define_insn and two define_split): Delete.
17169 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
17171 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17173 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
17174 (two anonymous define_insn and two define_split): Delete.
17175 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
17177 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17179 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
17181 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17183 * config/rs6000/predicates.md (ca_operand): Allow subregs.
17184 (input_operand): Do not allow ca_operand.
17185 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
17186 carry bit, allow SImode and Pmode.
17187 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
17189 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
17191 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
17192 clobbered registers using clobber_reg. Remove UNSPEC decoration.
17193 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
17194 (*call_rex64_ms_sysv): Remove.
17195 (*call_value_rex64_ms_sysv): Ditto.
17196 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
17198 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
17200 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
17201 operand 3 to "CnL".
17203 2014-09-20 Andreas Schwab <schwab@suse.de>
17205 * config/ia64/ia64.md: Remove constraints from define_split
17208 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17210 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class;
17212 (possible_polymorphic_call_targets,
17213 dump_possible_polymorphic_call_targets,
17214 possible_polymorphic_call_target_p,
17215 possible_polymorphic_call_target_p): Simplify.
17216 (get_dynamic_type): Remove.
17217 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17218 (clear_speculation): Bring to ipa-deivrt.h
17219 (get_class_context): Rename to ...
17220 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17221 (contains_type_p): Update.
17222 (get_dynamic_type): Rename to ...
17223 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17224 (possible_polymorphic_call_targets): UPdate.
17225 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17226 * ipa-prop.c (ipa_analyze_call_uses): Update.
17228 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17230 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
17231 privatize dynamic TLS variables.
17233 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17235 * diagnostic.c (warning_n): New function.
17236 * diagnostic-core.h (warning_n): Declare.
17237 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
17238 output dynamic counts when available.
17240 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17242 PR tree-optimization/63255
17243 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
17244 issue in setting body_removed flag.
17246 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17249 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
17250 that visibility change is possible
17251 (handle_weakref_attribute): Likewise.
17252 * cgraph.h (symtab_node): Add method get_create and
17253 field refuse_visibility_changes.
17254 (symtab_node::get_create): New method.
17255 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17256 * varasm.c (mark_weak): Verify that visibility change is possible.
17258 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17260 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
17261 for base_reg_operand to be common between LO_SUM and PLUS.
17262 (fusion_gpr_mem_combo): New predicate to match a fused address
17263 that combines the addis and memory offset address.
17265 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
17267 (emit_fusion_gpr_load): Likewise.
17269 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
17270 signature to pass each argument separately, rather than
17271 using an operands array. Rewrite the insns found by peephole2 to
17272 be a single insn, rather than hoping the insns will still be
17273 together when the peephole pass is done. Drop being called via a
17275 (emit_fusion_gpr_load): Change calling signature to be called from
17276 the fusion_gpr_load_<mode> insns with a combined memory address
17277 instead of the peephole pass passing the addis and offset
17280 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
17282 (power8 fusion peephole): Drop support for doing power8 via a
17283 normal peephole that was created by the peephole2 pass.
17284 (power8 fusion peephole2): Create a new insn with the fused
17285 address, so that the fused operation is kept together after
17286 register allocation is done.
17287 (fusion_gpr_load_<mode>): Likewise.
17289 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17292 * tree.c (need_assembler_name_p): Do not mangle variadic types.
17294 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
17296 * recog.c (scratch_operand): Do not simply allow all hard registers:
17297 only allow those that are allocatable.
17299 2014-09-19 Felix Yang <felix.yang@huawei.com>
17301 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
17302 comments and fix spacing to conform to coding style.
17304 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17306 * genrecog.c (validate_pattern): Allow empty constraints in
17309 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
17311 * dwarf2out.c (decl_ultimate_origin): Update comment.
17312 * tree.c (block_ultimate_origin): Same.
17314 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17316 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17317 Update GCC version name to GCC 5.
17318 (rs6000_function_arg_boundary): Likewise.
17319 (rs6000_function_arg): Likewise.
17321 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17323 * config/sh/sh.md: Fix use of constraints in define_split.
17325 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
17328 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
17330 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17332 * doc/md.texi (Modifiers): Consistently use "read/write"
17333 nomenclature rather than "input/output".
17334 * genrecog.c (constraints_supported_in_insn_p): New.
17335 (validate_pattern): If needed, also check constraints on
17336 MATCH_SCRATCH operands.
17337 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
17338 operands with no '=' or '+' modifier.
17340 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17342 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
17343 scratch register as written.
17345 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17347 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
17350 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17352 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
17355 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17358 * config/s390/s390.c (s390_emit_epilogue): When doing the return
17359 address load optimization force s390_optimize_prologue to leave it
17360 that way. Only do the optimization if we already decided to push
17361 r14 into a stack slot.
17363 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
17365 * asan.c (build_check_stmt): Alignment arg was added.
17366 (asan_expand_check_ifn): Optimization for alignment >= 8.
17368 2014-09-19 Olivier Hainque <hainque@adacore.com>
17370 * config/i386/vxworksae.h: Remove obsolete definitions.
17371 (STACK_CHECK_PROTECT): Define.
17372 * config/i386/vx-common.h: Remove. Merge contents within
17373 config/i386/vxworks.h.
17374 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
17377 2014-09-19 Olivier Hainque <hainque@adacore.com>
17379 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
17380 * config/rs6000/t-vxworksmils: New file.
17381 * config/rs6000/vxworksmils.h: New file.
17383 2014-09-19 Olivier Hainque <hainque@adacore.com>
17385 * varasm.c (default_section_type_flags): Flag .persistent.bss
17386 sections as SECTION_BSS.
17388 2014-09-19 Nick Clifton <nickc@redhat.com>
17390 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
17391 pop'ed registers so that DCE does not eliminate them.
17393 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
17396 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
17398 2014-09-18 Joseph Myers <joseph@codesourcery.com>
17400 * system.h (LIBGCC2_TF_CEXT): Poison.
17401 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
17402 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
17403 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
17404 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
17405 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
17406 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
17407 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
17408 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
17409 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
17411 2014-09-19 Kito Cheng <kito@0xlab.org>
17413 * except.h: Fix header guard.
17414 * addresses.h: Add missing header guard.
17415 * cfghooks.h: Likewise.
17416 * collect-utils.h: Likewise.
17417 * collect2-aix.h: Likewise.
17418 * conditions.h: Likewise.
17419 * cselib.h: Likewise.
17420 * dwarf2asm.h: Likewise.
17421 * graphds.h: Likewise.
17422 * graphite-scop-detection.h: Likewise.
17423 * gsyms.h: Likewise.
17424 * hw-doloop.h: Likewise.
17425 * incpath.h: Likewise.
17426 * ipa-inline.h: Likewise.
17427 * ipa-ref.h: Likewise.
17428 * ira-int.h: Likewise.
17430 * lra-int.h: Likewise.
17432 * lto-section-names.h: Likewise.
17433 * read-md.h: Likewise.
17434 * reload.h: Likewise.
17435 * rtl-error.h: Likewise.
17436 * sdbout.h: Likewise.
17437 * targhooks.h: Likewise.
17438 * tree-affine.h: Likewise.
17439 * xcoff.h: Likewise.
17440 * xcoffout.h: Likewise.
17442 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17445 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
17448 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17451 * lra.c (lra): Call recog_init.
17453 2014-09-18 Jakub Jelinek <jakub@redhat.com>
17456 * asan.c (transform_statements): Don't instrument clobber statements.
17458 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17460 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
17461 to neon_load1_1reg<q>.
17463 2014-09-17 Jakub Jelinek <jakub@redhat.com>
17466 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
17467 if there are only debug stmts after the noreturn call, instead
17468 remove the debug stmts.
17470 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
17472 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
17473 (odr_types_equivalent_p): Use pair hash.
17474 (odr_subtypes_equivalent_p): Likewise, do structural compare
17475 on ODR types that may be mismatched.
17476 (warn_odr): Support warning when only one field is given.
17477 (odr_types_equivalent_p): Strenghten comparsions made;
17479 (add_type_duplicate): Update VISITED hash set.
17481 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17483 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
17484 Enable selection of 'posix' or no thread model.
17486 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
17488 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
17489 when architecture is older than ARMv7.
17491 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
17494 * config/pa/pa.c (pa_function_value): Directly handle aggregates
17495 that fit exactly in a word or double word.
17497 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
17499 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
17500 zmm/k regs support.
17502 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
17503 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17504 Anna Tikhonova <anna.tikhonova@intel.com>
17505 Ilya Tocar <ilya.tocar@intel.com>
17506 Andrey Turetskiy <andrey.turetskiy@intel.com>
17507 Ilya Verbin <ilya.verbin@intel.com>
17508 Kirill Yukhin <kirill.yukhin@intel.com>
17509 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17511 * config/i386/i386.c
17512 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
17513 * config/i386/sse.md
17514 (define_mode_iterator VI48F_256): New.
17515 (define_mode_attr extract_type): Ditto.
17516 (define_mode_attr extract_suf): Ditto.
17517 (define_mode_iterator AVX512_VEC): Ditto.
17519 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
17521 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
17523 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
17525 (define_mode_attr extract_type_2): Ditto.
17526 (define_mode_attr extract_suf_2): Ditto.
17527 (define_mode_iterator AVX512_VEC_2): Ditto.
17529 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
17530 AVX512_VEC_2 mode iterator.
17531 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17532 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
17533 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17534 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17535 (define_split for V16FI mode): Ditto.
17536 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17537 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17538 (define_split for VI8F_256 mode): Ditto.
17539 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17540 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17541 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17542 (define_split for VI4F_256 mode): Ditto.
17543 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
17544 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17545 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17546 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
17547 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
17548 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
17549 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
17550 Update `type' attribute, remove explicit `memory' attribute calculation.
17552 2014-09-16 Kito Cheng <kito@0xlab.org>
17554 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
17555 ira_spilled_reg_stack_slots_num if using lra.
17556 (do_reload): Remove release ira_spilled_reg_stack_slots part.
17557 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
17558 make sure not using lra.
17559 (ira_reuse_stack_slot): Likewise.
17560 (ira_mark_new_stack_slot): Likewise.
17562 2014-09-15 Andi Kleen <ak@linux.intel.com>
17564 * function.c (allocate_struct_function): Force
17565 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
17566 profiling is disabled.
17568 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17570 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
17571 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
17572 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
17573 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
17574 macro with statically checked member functions.
17575 * rtl.h (rtx_insn::deleted): New method.
17576 (rtx_insn::set_deleted): Likewise.
17577 (rtx_insn::set_undeleted): Likewise.
17578 (INSN_DELETED_P): Remove.
17580 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17582 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
17583 result of emit_jump_insn_before to a new variable.
17584 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
17585 (mark_jump_label_1): Likewise.
17586 (mark_jump_label_asm): Likewise.
17587 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
17588 * rtl.h (mark_jump_label): Adjust.
17590 2014-09-15 Jakub Jelinek <jakub@redhat.com>
17592 * Makefile.in (dg_target_exps): Remove.
17593 (check_gcc_parallelize): Change to just an upper bound number.
17594 (check-%-subtargets): Always print the non-parallelized goals.
17595 (check_p_vars, check_p_comma, check_p_subwork): Remove.
17596 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
17597 check_p_numbers3, check_p_numbers4, check_p_numbers5,
17598 check_p_numbers6): New variables.
17599 (check_p_numbers): Set to sequence from 1 to 9999.
17600 (check_p_subdirs): Set to sequence from 1 to minimum of
17601 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
17603 (check-%, check-parallel-%): Rewritten so that for parallelized
17604 testing each job runs all the *.exp files, with
17605 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
17607 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17609 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
17611 (arc_sets_cc_p): Likewise.
17612 * config/arc/arc.c (arc_print_operand): Use methods of
17613 "final_sequence" for clarity, and to enable strengthening of
17614 locals "jump" and "delay" from rtx to rtx_insn *.
17615 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
17616 rtx_insn *; use method of rtx_sequence for typesafety.
17617 (arc_get_insn_variants): Use insn method of rtx_sequence for
17619 (arc_pad_return): Likewise.
17620 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
17621 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
17622 dyn_cast to rtx_sequence *, using insn method for typesafety.
17623 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
17624 rtx_sequence * and use insn method when invoking get_attr_length.
17625 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
17626 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
17627 rtx_sequence *, introducing a local "seq", using its insn method
17628 from typesafety and clarity.
17629 (add_sched_insns_for_speculation): Strengthen local "next" from
17631 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
17632 (predicate_insn): Likewise.
17633 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
17635 * config/cris/cris.c (cris_notice_update_cc): Likewise.
17636 * config/epiphany/epiphany-protos.h
17637 (extern void epiphany_insert_mode_switch_use): Likewise for param
17639 (get_attr_sched_use_fpu): Likewise for param.
17640 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
17641 Likewise for param "insn".
17642 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
17643 param "insn" of "target_insert_mode_switch_use" callback.
17644 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
17645 (frv_issues_to_branch_unit_p): Likewise.
17646 (frv_pack_insn_p): Likewise.
17647 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
17648 const rtx * (i.e. mutable rtx_def * const *) to
17649 rtx_insn * const *.
17650 * config/i386/i386-protos.h (standard_sse_constant_opcode):
17651 Strengthen first param from rtx to rtx_insn *.
17652 (output_fix_trunc): Likewise.
17653 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
17654 (output_fix_trunc): Likewise.
17655 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
17657 (min_insn_size): Likewise for param "insn".
17658 (get_mem_group): Likewise.
17659 (is_cmp): Likewise.
17660 (get_insn_path): Likewise.
17661 (get_insn_group): Likewise.
17662 (count_num_restricted): Likewise.
17663 (fits_dispatch_window): Likewise.
17664 (add_insn_window): Likewise.
17665 (add_to_dispatch_window): Likewise.
17666 (debug_insn_dispatch_info_file): Likewise.
17667 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
17669 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
17670 "cmp" and local "prev".
17671 (m32c_output_compare): Likewise for param "insn".
17672 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
17673 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
17674 (define_predicate "large_insn_p"): Likewise.
17675 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
17676 param from rtx to rtx_insn *.
17677 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
17678 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
17679 (m68k_sched_attr_size): Likewise.
17680 (sched_get_opxy_mem_type): Likewise for param "insn".
17681 (m68k_sched_attr_op_mem): Likewise.
17682 (sched_mem_operand_p): Likewise.
17683 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
17684 * config/mep/mep.c (mep_multi_slot): Likewise.
17685 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
17687 (mips_sync_loop_insns): Likewise.
17688 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
17689 method of "final_sequence" for typesafety.
17690 (mips_process_sync_loop): Strengthen param "insn" from rtx to
17692 (mips_output_sync_loop): Likewise.
17693 (mips_sync_loop_insns): Likewise.
17694 (mips_74k_agen_init): Likewise.
17695 (mips_sched_init): Use NULL rather than NULL_RTX when working with
17697 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
17698 Strengthen param "insn" from rtx to rtx_insn *.
17699 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
17701 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for param.
17702 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
17703 "insn". Use method of rtx_sequence for typesafety.
17704 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
17706 (branch_needs_nop_p): Likewise.
17707 (use_skip_p): Likewise.
17708 (pa_insn_refs_are_delayed): Likewise.
17709 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
17710 for locals "insn", "ninsn".
17711 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
17713 (is_cracked_insn): Likewise.
17714 (is_branch_slot_insn): Likewise.
17715 (is_nonpipeline_insn): Likewise.
17716 (insn_terminates_group_p): Likewise.
17717 (insn_must_be_first_in_group): Likewise.
17718 (insn_must_be_last_in_group): Likewise.
17719 (force_new_group): Likewise for param "next_insn".
17720 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
17722 (s390_sched_score): Likewise.
17723 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
17724 (rtx sfunc_uses_reg): Likewise for sole param.
17725 * config/sh/sh.c (sh_print_operand): Use insn method of
17726 final_sequence for typesafety.
17727 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
17728 Use insn method of final_sequence for typesafety.
17729 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
17730 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
17732 (eligible_for_return_delay): Likewise.
17733 (eligible_for_sibcall_delay): Likewise.
17734 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
17735 (eligible_for_return_delay): Likewise.
17736 (eligible_for_sibcall_delay): Likewise.
17737 * config/stormy16/stormy16-protos.h
17738 (xstormy16_output_cbranch_hi): Likewise for final param.
17739 (xstormy16_output_cbranch_si): Likewise.
17740 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
17741 (xstormy16_output_cbranch_si): Likewise.
17742 * config/v850/v850-protos.h (notice_update_cc): Likewise.
17743 * config/v850/v850.c (notice_update_cc): Likewise.
17745 * final.c (get_attr_length_1): Strengthen param "insn" and param
17746 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
17747 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
17748 (get_attr_min_length): Likewise.
17749 (shorten_branches): Likewise for signature of locals "length_fun"
17750 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
17751 from a checked cast and use its methods for clarity and to enable
17752 strengthening local "inner_insn" from rtx to rtx_insn *.
17753 * genattr.c (gen_attr): When writing out the prototypes of the
17754 various generated "get_attr_" functions, strengthen the params of
17755 the non-const functions from rtx to rtx_insn *.
17756 Similarly, strengthen the params of insn_default_length,
17757 insn_min_length, insn_variable_length_p, insn_current_length.
17758 (main): Similarly, strengthen the param of num_delay_slots,
17759 internal_dfa_insn_code, insn_default_latency, bypass_p,
17760 insn_latency, min_issue_delay, print_reservation,
17761 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
17762 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
17763 to hook_int_rtx_insn_unreachable.
17764 * genattrtab.c (write_attr_get): When writing out the generated
17765 "get_attr_" functions, strengthen the param "insn" from rtx to
17766 rtx_insn *, eliminating a checked cast.
17767 (make_automaton_attrs): When writing out prototypes of
17768 "internal_dfa_insn_code_", "insn_default_latency_" functions
17769 and the "internal_dfa_insn_code" and "insn_default_latency"
17770 callbacks, strengthen their params from rtx to rtx_insn *
17771 * genautomata.c (output_internal_insn_code_evaluation): When
17772 writing out code, add a checked cast from rtx to rtx_insn * when
17773 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
17774 (output_dfa_insn_code_func): Strengthen param of generated
17775 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
17776 (output_trans_func): Likewise for generated function
17777 "state_transition".
17778 (output_internal_insn_latency_func): When writing out generated
17779 function "internal_insn_latency", rename params from "insn" and
17780 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
17781 locals "insn" and "insn2" as rtx_insn * with checked casts once
17782 we've proven that we're not dealing with const0_rtx.
17783 (output_insn_latency_func): Strengthen param of generated
17784 function "insn_latency" from rtx to rtx_insn *.
17785 (output_print_reservation_func): Likewise for generated function
17786 "print_reservation".
17787 (output_insn_has_dfa_reservation_p): Likewise for generated
17788 function "insn_has_dfa_reservation_p".
17789 * hooks.c (hook_int_rtx_unreachable): Rename to...
17790 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
17791 from rtx to rtx_insn *.
17792 * hooks.h (hook_int_rtx_unreachable): Likewise.
17793 (extern int hook_int_rtx_insn_unreachable): Likewise.
17794 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
17795 (get_attr_min_length): Likewise.
17796 * recog.c (get_enabled_alternatives): Likewise.
17797 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
17798 * reorg.c (find_end_label): Introduce local rtx "pat" and
17799 strengthen local "insn" from rtx to rtx_insn *.
17800 (redundant_insn): Use insn method of "seq" rather than element for
17801 typesafety; strengthen local "control" from rtx to rtx_insn *.
17802 * resource.c (mark_referenced_resources): Add checked cast to
17803 rtx_insn * within INSN/JUMP_INSN case.
17804 (mark_set_resources): Likewise.
17805 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
17808 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17810 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
17811 param "label" from rtx to rtx_insn *.
17812 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
17814 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
17815 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
17816 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
17817 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
17818 * final.c (default_label_align_after_barrier_max_skip): Strengthen
17819 param from rtx to rtx_insn *.
17820 (default_loop_align_max_skip): Likewise.
17821 (default_label_align_max_skip): Likewise.
17822 (default_jump_align_max_skip): Likewise.
17823 * target.def (label_align_after_barrier_max_skip): Likewise.
17824 (loop_align_max_skip): Likewise.
17825 (label_align_max_skip): Likewise.
17826 (jump_align_max_skip): Likewise.
17827 * targhooks.h (default_label_align_after_barrier_max_skip): Likewise.
17828 (default_loop_align_max_skip): Likewise.
17829 (default_label_align_max_skip): Likewise.
17830 (default_jump_align_max_skip): Likewise.
17832 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17834 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
17835 from const_rtx to const rtx_insn *. Update union members from rtx
17837 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
17838 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
17839 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
17840 strengthen both params from const_rtx to const rtx_insn *.
17841 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
17842 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
17843 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
17845 * target.def (can_follow_jump): Strengthen both params from
17846 const_rtx to const rtx_insn *, and update default implementation
17847 from hook_bool_const_rtx_const_rtx_true to
17848 hook_bool_const_rtx_insn_const_rtx_insn_true.
17850 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17852 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
17853 "insn" from rtx to rtx_insn *.
17854 * sched-int.h (deps_start_bb): Likewise for 2nd param.
17856 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17857 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17858 Anna Tikhonova <anna.tikhonova@intel.com>
17859 Ilya Tocar <ilya.tocar@intel.com>
17860 Andrey Turetskiy <andrey.turetskiy@intel.com>
17861 Ilya Verbin <ilya.verbin@intel.com>
17862 Kirill Yukhin <kirill.yukhin@intel.com>
17863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17865 * config/i386/sse.md
17866 (define_insn "vcvtph2ps<mask_name>"): Add masking.
17867 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
17868 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
17869 (define_expand "vcvtps2ph_mask"): New.
17870 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
17871 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
17872 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
17874 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17875 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17876 Anna Tikhonova <anna.tikhonova@intel.com>
17877 Ilya Tocar <ilya.tocar@intel.com>
17878 Andrey Turetskiy <andrey.turetskiy@intel.com>
17879 Ilya Verbin <ilya.verbin@intel.com>
17880 Kirill Yukhin <kirill.yukhin@intel.com>
17881 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17883 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
17885 (define_mode_iterator VI24_AVX512BW_1): Ditto.
17886 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
17887 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
17888 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
17889 also for TARGET_AVX512VL.
17890 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
17892 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
17894 * doc/install.texi (Options specification): add
17895 --disable-libsanitizer item.
17897 2014-09-14 James Clarke <jrtc27@jrtc27.com>
17898 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17901 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
17903 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
17904 kernel version check to avoid incrementing it after every major OS X
17906 (darwin_default_min_version): Avoid static memory buffer.
17908 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
17910 * tree.c (need_assembler_name_p): Store C++ type mangling only
17913 2014-09-13 Marek Polacek <polacek@redhat.com>
17915 * tree.c (protected_set_expr_location): Don't check whether T is
17918 2014-09-12 DJ Delorie <dj@redhat.com>
17920 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
17921 (extend_and_shift1_hipsi2): Likewise.
17922 (extend_and_shift2_hipsi2): Likewise.
17924 2014-09-12 David Malcolm <dmalcolm@redhat.com>
17926 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
17927 with NULL when dealing with an insn.
17928 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
17929 from rtx to rtx_insn *.
17930 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
17931 const_rtx to const rtx_insn *.
17932 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
17934 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
17936 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
17939 2014-09-12 Joseph Myers <joseph@codesourcery.com>
17941 * target.def (libgcc_floating_mode_supported_p): New hook.
17942 * targhooks.c (default_libgcc_floating_mode_supported_p): New
17944 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
17945 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
17946 (LIBGCC2_HAS_TF_MODE): Remove.
17947 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
17948 * doc/tm.texi: Regenerate.
17949 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
17951 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
17952 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
17953 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
17954 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
17955 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17956 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
17957 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
17958 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
17959 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
17960 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
17962 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
17963 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17964 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17965 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17966 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17967 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17968 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17969 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
17970 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
17971 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
17972 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17973 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
17974 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
17975 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
17977 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
17979 (ia64_libgcc_floating_mode_supported_p): New function.
17980 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
17981 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
17982 (IA64_NO_LIBGCC_TFMODE): Define.
17983 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
17984 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
17985 (pdp11_scalar_mode_supported_p): New function.
17986 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
17987 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
17989 2014-09-12 Richard Biener <rguenther@suse.de>
17991 PR middle-end/63237
17992 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
17994 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
17996 * tree.c (integer_each_onep): New function.
17997 * tree.h (integer_each_onep): Declare it.
17998 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
17999 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
18000 (X & 1) == 0 for vector and complex.
18002 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18004 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
18006 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
18007 cost to spilling from integer to FP registers.
18009 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18011 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
18013 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
18014 are now handled correctly.
18016 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18018 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
18019 handling of CALLER_SAVE_REGS and POINTER_REGS.
18021 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18023 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
18024 the number of hard registers.
18026 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18027 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18028 Anna Tikhonova <anna.tikhonova@intel.com>
18029 Ilya Tocar <ilya.tocar@intel.com>
18030 Andrey Turetskiy <andrey.turetskiy@intel.com>
18031 Ilya Verbin <ilya.verbin@intel.com>
18032 Kirill Yukhin <kirill.yukhin@intel.com>
18033 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18035 * config/i386/sse.md
18036 (define_mode_iterator VI48_AVX512VL): New.
18037 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
18038 "avx512f_vternlog<mode>_maskz" and update mode iterator.
18039 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
18040 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
18041 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
18042 "avx512f_vternlog<mode>_mask" and update mode iterator.
18043 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
18044 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
18046 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
18047 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
18048 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
18049 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
18050 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
18051 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
18053 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18054 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18055 Anna Tikhonova <anna.tikhonova@intel.com>
18056 Ilya Tocar <ilya.tocar@intel.com>
18057 Andrey Turetskiy <andrey.turetskiy@intel.com>
18058 Ilya Verbin <ilya.verbin@intel.com>
18059 Kirill Yukhin <kirill.yukhin@intel.com>
18060 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18062 * config/i386/sse.md (VI128_256): Delete.
18063 (define_mode_iterator VI124_256): New.
18064 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
18065 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
18066 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
18067 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
18068 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
18069 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
18070 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
18071 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
18073 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
18074 in presence of AVX-512.
18076 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18077 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18078 Anna Tikhonova <anna.tikhonova@intel.com>
18079 Ilya Tocar <ilya.tocar@intel.com>
18080 Andrey Turetskiy <andrey.turetskiy@intel.com>
18081 Ilya Verbin <ilya.verbin@intel.com>
18082 Kirill Yukhin <kirill.yukhin@intel.com>
18083 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18085 * config/i386/sse.md
18086 (define_expand "<avx512>_gathersi<mode>"): Rename from
18087 "avx512f_gathersi<mode>".
18088 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
18089 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
18090 (define_expand "<avx512>_gatherdi<mode>"): Rename from
18091 "avx512f_gatherdi<mode>".
18092 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
18093 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
18095 (define_expand "<avx512>_scattersi<mode>"): Rename from
18096 "avx512f_scattersi<mode>".
18097 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
18098 (define_expand "<avx512>_scatterdi<mode>"): Rename from
18099 "avx512f_scatterdi<mode>".
18100 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
18102 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
18104 * ira.h (ira_finish_once): Delete.
18105 * ira-int.h (target_ira_int::~target_ira_int): Declare.
18106 (target_ira_int::free_ira_costs): Likewise.
18107 (target_ira_int::free_register_move_costs): Likewise.
18108 (ira_finish_costs_once): Delete.
18109 * ira.c (free_register_move_costs): Replace with...
18110 (target_ira_int::free_register_move_costs): ...this new function.
18111 (target_ira_int::~target_ira_int): Define.
18112 (ira_init): Call free_register_move_costs as a member function rather
18113 than a global function.
18114 (ira_finish_once): Delete.
18115 * ira-costs.c (free_ira_costs): Replace with...
18116 (target_ira_int::free_ira_costs): ...this new function.
18117 (ira_init_costs): Call free_ira_costs as a member function rather
18118 than a global function.
18119 (ira_finish_costs_once): Delete.
18120 * target-globals.c (target_globals::~target_globals): Call the
18121 target_ira_int destructor.
18122 * toplev.c: Include lra.h.
18123 (finalize): Call lra_finish_once rather than ira_finish_once.
18125 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
18127 * common.opt (flto-odr-type-merging): New flag.
18128 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
18129 (types_same_for_odr): Likewise.
18130 (odr_subtypes_equivalent_p): Likewise.
18131 (add_type_duplicate): Do not walk type variants.
18132 (register_odr_type): New function.
18133 * ipa-utils.h (register_odr_type): Declare.
18134 (odr_type_p): New function.
18135 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
18137 * doc/invoke.texi (-flto-odr-type-merging): Document.
18138 * tree.c (need_assembler_name_p): Compute ODR names when asked
18140 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
18142 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
18145 * config/i386/i386.c (ix86_option_override_internal): Also turn
18146 off OPTION_MASK_ABI_X32 for -m16.
18148 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18150 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
18153 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
18156 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18157 Directly forward to __*_DENORM_MIN__.
18159 2014-09-11 David Malcolm <dmalcolm@redhat.com>
18161 * rtl.h (LABEL_REF_LABEL): New macro.
18163 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
18164 of XEXP (, 0), where we know that we have a LABEL_REF.
18165 * cfgbuild.c (make_edges): Likewise.
18166 (purge_dead_tablejump_edges): Likewise.
18167 * cfgexpand.c (convert_debug_memory_address): Likewise.
18168 * cfgrtl.c (patch_jump_insn): Likewise.
18169 * combine.c (distribute_notes): Likewise.
18170 * cse.c (hash_rtx_cb): Likewise.
18171 (exp_equiv_p): Likewise.
18172 (fold_rtx): Likewise.
18173 (check_for_label_ref): Likewise.
18174 * cselib.c (rtx_equal_for_cselib_1): Likewise.
18175 (cselib_hash_rtx): Likewise.
18176 * emit-rtl.c (mark_label_nuses): Likewise.
18177 * explow.c (convert_memory_address_addr_space): Likewise.
18178 * final.c (output_asm_label): Likewise.
18179 (output_addr_const): Likewise.
18180 * gcse.c (add_label_notes): Likewise.
18181 * genconfig.c (walk_insn_part): Likewise.
18182 * genrecog.c (validate_pattern): Likewise.
18183 * ifcvt.c (cond_exec_get_condition): Likewise.
18184 (noce_emit_store_flag): Likewise.
18185 (noce_get_alt_condition): Likewise.
18186 (noce_get_condition): Likewise.
18187 * jump.c (maybe_propagate_label_ref): Likewise.
18188 (mark_jump_label_1): Likewise.
18189 (redirect_exp_1): Likewise.
18190 (rtx_renumbered_equal_p): Likewise.
18191 * lra-constraints.c (operands_match_p): Likewise.
18192 * reload.c (operands_match_p): Likewise.
18193 (find_reloads): Likewise.
18194 * reload1.c (set_label_offsets): Likewise.
18195 * reorg.c (get_branch_condition): Likewise.
18196 * rtl.c (rtx_equal_p_cb): Likewise.
18197 (rtx_equal_p): Likewise.
18198 * rtlanal.c (reg_mentioned_p): Likewise.
18199 (rtx_referenced_p): Likewise.
18200 (get_condition): Likewise.
18201 * sched-vis.c (print_value): Likewise.
18202 * varasm.c (const_hash_1): Likewise.
18203 (compare_constant): Likewise.
18204 (const_rtx_hash_1): Likewise.
18205 (output_constant_pool_1): Likewise.
18207 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18209 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
18210 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
18212 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
18213 cr6_test_for_lt_reverse): Ditto.
18215 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
18218 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
18220 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18222 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
18223 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
18224 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
18225 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
18228 (aarch64_fold_builtin): Remove all reinterpret cases.
18230 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18232 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
18234 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
18235 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
18236 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
18237 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
18238 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
18239 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
18240 aarch64_reinterpretv2df<mode>): Delete.
18242 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
18244 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
18245 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
18246 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
18247 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
18248 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
18249 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
18250 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
18251 vreinterpret_u32_f64): Use cast.
18253 * config/aarch64/iterators.md (VD_RE): Delete.
18255 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18257 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
18258 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
18259 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
18260 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
18261 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
18262 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
18263 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
18264 Replace inline assembler with __aarch64_vset_lane_any.
18266 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
18268 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
18270 (vmull_high_lane_s32): Likewise.
18271 (vmull_high_lane_u16): Likewise.
18272 (vmull_high_lane_u32): Likewise.
18274 2014-09-11 Jason Merrill <jason@redhat.com>
18277 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
18279 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
18282 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
18283 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
18284 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
18286 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18287 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18288 Anna Tikhonova <anna.tikhonova@intel.com>
18289 Ilya Tocar <ilya.tocar@intel.com>
18290 Andrey Turetskiy <andrey.turetskiy@intel.com>
18291 Ilya Verbin <ilya.verbin@intel.com>
18292 Kirill Yukhin <kirill.yukhin@intel.com>
18293 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18295 * config/i386/sse.md
18296 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
18297 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
18298 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
18300 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
18301 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
18303 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18305 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
18306 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
18307 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
18308 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
18309 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
18310 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
18311 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
18312 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
18314 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18316 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
18317 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
18318 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
18320 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18322 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
18323 to access removed nodes.
18325 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18327 PR tree-optimization/63186
18328 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
18329 (mark_nonssa_use): Likewise.
18330 (verify_non_ssa_vars): Verify all header blocks for label
18333 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18335 Anna Tikhonova <anna.tikhonova@intel.com>
18336 Ilya Tocar <ilya.tocar@intel.com>
18337 Andrey Turetskiy <andrey.turetskiy@intel.com>
18338 Ilya Verbin <ilya.verbin@intel.com>
18339 Kirill Yukhin <kirill.yukhin@intel.com>
18340 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18342 * config/i386/sse.md
18343 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
18344 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
18345 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
18346 "<avx2_avx512f>_permvar<mode><mask_name>".
18347 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
18348 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
18349 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
18350 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
18352 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
18353 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18354 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
18355 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18357 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18359 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
18360 V2DF, V4SF, DF, and DI modes.
18361 (vsx_fmav2df2): Likewise.
18362 (vsx_float_fix_<mode>2): Likewise.
18363 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
18365 2014-09-10 Xinliang David Li <davidxl@google.com>
18368 * config/arm/arm.md (movcond_addsi): Handle case where source
18369 and target operands are the same.
18371 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18373 * final.c (this_is_asm_operands): Strengthen this variable from
18374 rtx to const rtx_insn *.
18375 * output.h (this_is_asm_operands): Likewise.
18376 * rtl-error.c (location_for_asm): Strengthen param "insn" from
18377 const_rtx to const rtx_insn *.
18378 (diagnostic_for_asm): Likewise.
18379 * rtl-error.h (error_for_asm): Likewise.
18380 (warning_for_asm): Likewise.
18382 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18384 * genextract.c (print_header): When writing out insn_extract to
18385 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
18386 * recog.h (insn_extract): Strengthen the param from rtx to
18389 2014-09-10 Mike Stump <mikestump@comcast.net>
18391 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
18394 2014-09-10 Martin Jambor <mjambor@suse.cz>
18396 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
18397 (analyze): Do not set analyze flag if expand_thunk returns false;.
18398 (create_wrapper): Likewise.
18399 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
18401 2014-09-10 Martin Jambor <mjambor@suse.cz>
18404 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
18405 new decl properly. Analyze the new thunk if it is expanded.
18407 2014-09-10 Andreas Schwab <schwab@suse.de>
18409 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
18410 [USED_FOR_TARGET]: Define.
18412 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
18414 * config/mips/mips.c (mips_secondary_reload_class): Handle
18417 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
18419 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
18422 2014-09-10 Jakub Jelinek <jakub@redhat.com>
18424 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
18425 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
18426 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
18427 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
18428 flag_delete_null_pointer_checks for them.
18429 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18430 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
18431 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
18432 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
18433 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
18435 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
18436 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
18437 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
18438 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
18439 * doc/invoke.texi (-fsanitize=nonnull-attribute,
18440 -fsanitize=returns-nonnull-attribute): Document.
18442 * ubsan.h (struct ubsan_mismatch_data): Removed.
18443 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18444 * ubsan.c (ubsan_source_location): For unknown locations,
18445 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
18446 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18447 Allow more than one location and arbitrary extra arguments passed
18448 in ... instead of through MISMATCH pointer.
18449 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
18450 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18451 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
18454 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18455 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18456 Anna Tikhonova <anna.tikhonova@intel.com>
18457 Ilya Tocar <ilya.tocar@intel.com>
18458 Andrey Turetskiy <andrey.turetskiy@intel.com>
18459 Ilya Verbin <ilya.verbin@intel.com>
18460 Kirill Yukhin <kirill.yukhin@intel.com>
18461 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18463 * config/i386/sse.md
18464 (define_mode_iterator VI48F): New.
18465 (define_insn "<avx512>_compress<mode>_mask"): Rename from
18466 "avx512f_compress<mode>_mask" and update mode iterator.
18467 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
18468 "avx512f_compressstore<mode>_mask" and update mode iterator.
18469 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
18470 "avx512f_expand<mode>_maskz" and update mode iterator.
18471 (define_insn "<avx512>_expand<mode>_mask"): Rename from
18472 "avx512f_expand<mode>_mask" and update mode iterator.
18474 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18475 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18476 Anna Tikhonova <anna.tikhonova@intel.com>
18477 Ilya Tocar <ilya.tocar@intel.com>
18478 Andrey Turetskiy <andrey.turetskiy@intel.com>
18479 Ilya Verbin <ilya.verbin@intel.com>
18480 Kirill Yukhin <kirill.yukhin@intel.com>
18481 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18483 * config/i386/i386.c
18484 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
18485 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
18486 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
18487 avx512dq_rangepv4sf_mask.
18488 * config/i386/sse.md
18489 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
18491 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
18492 (define_insn "reduces<mode>"): Ditto.
18493 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
18495 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
18496 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
18497 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
18499 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18500 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18501 Anna Tikhonova <anna.tikhonova@intel.com>
18502 Ilya Tocar <ilya.tocar@intel.com>
18503 Andrey Turetskiy <andrey.turetskiy@intel.com>
18504 Ilya Verbin <ilya.verbin@intel.com>
18505 Kirill Yukhin <kirill.yukhin@intel.com>
18506 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18508 * config/i386/i386.c
18509 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
18510 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
18511 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
18512 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
18513 avx512vl_getmantv2df_mask.
18514 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
18515 avx512f_vgetmantv4sf_round.
18516 * config/i386/sse.md
18517 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
18518 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
18520 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
18521 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
18522 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
18523 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
18525 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
18526 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
18527 update mode iterator.
18529 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
18530 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
18533 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
18534 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
18535 update mode iterator.
18536 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
18537 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
18540 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
18541 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
18543 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
18544 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
18545 update mode iterator.
18546 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
18547 "avx512f_getmant<mode><round_saeonly_name>".
18549 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18552 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
18554 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18555 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18556 Anna Tikhonova <anna.tikhonova@intel.com>
18557 Ilya Tocar <ilya.tocar@intel.com>
18558 Andrey Turetskiy <andrey.turetskiy@intel.com>
18559 Ilya Verbin <ilya.verbin@intel.com>
18560 Kirill Yukhin <kirill.yukhin@intel.com>
18561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18563 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
18564 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
18565 (define_mode_iterator FMAMODE_AVX512): New.
18566 (define_mode_iterator FMAMODE): Remove conditions.
18567 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
18568 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
18569 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
18571 (define_mode_iterator FMAMODE_NOVF512): Remove.
18572 (define_insn "*fma_fmadd_<mode>"): Rename from
18573 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
18574 FMAMODE mode iterator.
18575 (define_mode_iterator VF_SF_AVX512VL): New.
18576 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
18577 Use VF_SF_AVX512VL mode iterator.
18578 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
18579 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18581 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
18582 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18584 (define_insn "*fma_fmsub_<mode>"): Rename from
18585 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
18586 FMAMODE mode iterator.
18587 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
18588 Use VF_SF_AVX512VL mode iterator.
18589 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
18590 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18592 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
18593 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18595 (define_insn "*fma_fnmadd_<mode>"): Rename from
18596 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
18597 use FMAMODE mode iterator.
18598 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
18599 Use VF_SF_AVX512VL mode iterator.
18600 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
18601 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18603 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
18604 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18606 (define_insn "*fma_fnmsub_<mode>"): Rename from
18607 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
18608 FMAMODE mode iterator.
18609 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
18610 Use VF_SF_AVX512VL mode iterator.
18611 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
18612 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18614 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
18615 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18617 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
18618 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
18619 use VF_AVX512VL mode iterator.
18620 (define_insn "*fma_fmaddsub_<mode>"): Rename from
18621 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
18622 remove subst usage.
18623 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
18624 Use VF_SF_AVX512VL mode iterator.
18625 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
18626 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18628 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
18629 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18631 (define_insn "*fma_fmsubadd_<mode>"): Rename from
18632 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
18633 remove usage of subst.
18634 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
18635 Use VF_SF_AVX512VL mode iterator.
18636 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
18637 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18639 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
18640 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18643 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
18646 * calls.c (precompute_arguments): Check
18647 promoted_for_signed_and_unsigned_p and set the promoted mode.
18648 (promoted_for_signed_and_unsigned_p): New function.
18649 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18650 and set the promoted mode.
18651 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18652 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18653 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18655 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18657 * opth-gen.awk: Generate mapping from cpp message reasons to the
18658 options that enable them.
18659 * doc/options.texi (CppReason): Document.
18661 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18663 * doc/invoke.texi (Wnormalized=): Update.
18665 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
18668 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
18669 operands. Split off the constant operand alternative to ...
18670 (*bool<mode>3_imm): New.
18672 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18674 * rtl.h (single_set_2): Strengthen first param from const_rtx to
18675 const rtx_insn *, and move prototype to above...
18676 (single_set): ...this. Convert this from a macro to an inline
18677 function, enforcing the requirement that the param is a const
18679 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
18681 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18682 Strengthen both params from rtx to rtx_insn *.
18683 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18684 Likewise; introduce locals "producer_set", "consumer_set", using
18685 them in place of "producer" and "consumer" when dealing with SET
18687 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
18688 when invoking single_set in region guarded by INSN_P.
18689 (avr_out_bitop): Likewise.
18690 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
18691 region guarded by GET_CODE check, using methods to strengthen
18692 local "this_insn" from rtx to rtx_insn *, and for clarity.
18693 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
18694 Strengthen local "insn" from rtx to rtx_insn *.
18695 (define_insn_and_split "xload<mode>_A"): Likewise.
18696 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
18698 (find_load): Likewise for return type.
18699 (workaround_speculation): Likewise for both locals named
18701 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
18703 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
18705 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
18707 * config/h8300/h8300.c (notice_update_cc): Likewise.
18708 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
18709 "insn" and "dep_insn".
18710 (exact_store_load_dependency): Likewise for both params.
18711 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
18712 since this now clashes with inline function. Instead, delay
18713 calling single_set until the point where its needed, and then
18714 assign the result to "compare_set" and rework the conditional that
18716 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
18717 local "last" from rtx to rtx_insn *.
18718 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
18720 (mips_store_data_bypass_p): Likewise for both params.
18721 * config/mips/mips.c (mips_load_store_insns): Likewise for second
18723 (mips_store_data_bypass_p): Likewise for both params.
18724 (mips_orphaned_high_part_p): Likewise for param "insn".
18725 * config/mn10300/mn10300.c (extract_bundle): Likewise.
18726 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
18727 Introduce local rtx "insn2_pat".
18728 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
18730 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
18731 Introduce local rtx "set", using it in place of "insn" for the
18732 result of single_set. This appears to fix a bug, since the call
18733 to find_regno_note on a SET does nothing.
18734 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
18735 params from rtx to rtx_insn *.
18736 (set_to_load_agen): Likewise.
18737 * config/s390/s390.c (s390_label_align): Likewise for local
18738 "prev_insn". Introduce new rtx locals "set" and "src", using
18739 them in place of "prev_insn" for the results of single_set
18740 and SET_SRC respectively.
18741 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
18742 Introduce new rtx local "set" using in place of "jump" for the
18743 result of single_set. Use SET_SRC (set) rather than plain
18745 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
18747 (noncall_uses_reg): Likewise.
18748 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
18749 guarded by GET_CODE check, using its methods for clarity, and to
18750 enable strengthening local "this_insn" from rtx to rtx_insn *.
18751 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
18752 "insn" from rtx to rtx_insn *.
18753 (define_expand "umulhisi3"): Likewise.
18754 (define_expand "smulsi3_highpart"): Likewise.
18755 (define_expand "umulsi3_highpart"): Likewise.
18756 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18757 local "after". Replace GET_CODE check with a dyn_cast,
18758 introducing new local rtx_sequence * "seq", using insn method for
18761 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
18762 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
18763 place of "insn" once we're dealing with patterns rather than the
18765 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
18766 (scan_trace): Likewise for local "elt", updating lookups within
18767 sequence to use insn method rather than element method.
18768 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
18770 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
18771 * ifcvt.c (noce_try_abs): Likewise for local "insn".
18772 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
18773 invoking single_set.
18774 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
18775 "insn" from rtx to rtx_insn *.
18776 (skip_usage_debug_insns): Likewise for return type, adding a
18778 (check_secondary_memory_needed_p): Likewise for local "insn".
18779 (inherit_reload_reg): Likewise.
18780 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
18781 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
18783 (store_data_bypass_p): Likewise for both params.
18784 (if_test_bypass_p): Likewise.
18785 * recog.h (store_data_bypass_p): Likewise for both params.
18786 (if_test_bypass_p): Likewise.
18787 * reload.c (find_equiv_reg): Likewise for local "where".
18788 * reorg.c (delete_jump): Likewise for param "insn".
18789 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
18790 to const rtx_insn *.
18791 * store-motion.c (replace_store_insn): Likewise for param "del".
18792 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
18793 and use its methods for clarity, and to strengthen local "del"
18794 from rtx to rtx_insn *.
18795 (build_store_vectors): Use insn method of "st" when calling
18796 replace_store_insn for typesafety and clarity.
18798 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18800 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
18801 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
18802 on how to make it legal in future.
18804 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18806 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
18808 (restinsn): Likewise.
18809 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18810 Likewise for param.
18811 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
18813 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
18815 (arc_hazard): Likewise for both params.
18816 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
18817 checked casts to rtx_sequence * and uses of the insn method for
18819 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
18820 (arc_adjust_insn_length): Likewise for param "insn".
18821 (struct insn_length_parameters_s): Likewise for first param of
18822 "get_variants" callback field.
18823 (arc_get_insn_variants): Likewise for first param and local
18824 "inner". Replace a check of GET_CODE with a dyn_cast to
18825 rtx_sequence *, using methods for type-safety and clarity.
18826 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
18827 rtx_sequence * and uses of the insn method for type-safety when
18828 invoking arc_adjust_insn_length.
18829 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
18831 (arm_address_offset_is_imm): Likewise.
18832 (struct tune_params): Likewise for params 1 and 3 of the
18833 "sched_adjust_cost" callback field.
18834 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
18835 params 1 and 3 ("insn" and "dep").
18836 (xscale_sched_adjust_cost): Likewise.
18837 (fa726te_sched_adjust_cost): Likewise.
18838 (cortexa7_older_only): Likewise for param "insn".
18839 (cortexa7_younger): Likewise.
18840 (arm_attr_length_move_neon): Likewise.
18841 (arm_address_offset_is_imm): Likewise.
18842 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
18843 * config/avr/avr.c (avr_notice_update_cc): Likewise.
18844 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
18845 (workaround_speculation): Likewise for local "last_condjump".
18846 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
18847 (shadow_or_blockage_p): Likewise.
18848 (get_unit_reqs): Likewise.
18849 (get_unit_operand_masks): Likewise.
18850 (c6x_registers_update): Likewise.
18851 (returning_call_p): Likewise.
18852 (can_use_callp): Likewise.
18853 (convert_to_callp): Likewise.
18854 (find_last_same_clock): Likwise for local "t".
18855 (reorg_split_calls): Likewise for local "shadow".
18856 (hwloop_pattern_reg): Likewise for param "insn".
18857 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
18858 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
18859 (frv_extract_membar): Likewise.
18860 (frv_optimize_membar_local): Strengthen param "last_membar" from
18861 rtx * to rtx_insn **.
18862 (frv_optimize_membar_global): Strengthen param "membar" from rtx
18864 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
18866 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
18867 both params from rtx to rtx_insn *.
18868 (ia64_ld_address_bypass_p): Likewise.
18869 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
18871 (ia64_safe_type): Likewise.
18872 (group_barrier_needed): Likewise.
18873 (safe_group_barrier_needed): Likewise.
18874 (ia64_single_set): Likewise.
18875 (is_load_p): Likewise.
18876 (record_memory_reference): Likewise.
18877 (get_mode_no_for_insn): Likewise.
18878 (important_for_bundling_p): Likewise.
18879 (unknown_for_bundling_p): Likewise.
18880 (ia64_st_address_bypass_p): Likewise for both params.
18881 (ia64_ld_address_bypass_p): Likewise.
18882 (expand_vselect): Introduce new local rtx_insn * "insn", using it
18883 in place of rtx "x" after the emit_insn call.
18884 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
18885 Strengthen param from rtx to rtx_insn *.
18886 (ix86_agi_dependent): Likewise for both params.
18887 (ix86_attr_length_immediate_default): Likewise for param 1.
18888 (ix86_attr_length_address_default): Likewise for param.
18889 (ix86_attr_length_vex_default): Likewise for param 1.
18890 * config/i386/i386.c (ix86_attr_length_immediate_default):
18891 Likewise for param "insn".
18892 (ix86_attr_length_address_default): Likewise.
18893 (ix86_attr_length_vex_default): Likewise.
18894 (ix86_agi_dependent): Likewise for both params.
18895 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
18896 (vselect_insn): Likewise for this variable.
18897 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
18899 (m68k_sched_attr_opy_type): Likewise.
18900 * config/m68k/m68k.c (sched_get_operand): Likewise.
18901 (sched_attr_op_type): Likewise.
18902 (m68k_sched_attr_opx_type): Likewise.
18903 (m68k_sched_attr_opy_type): Likewise.
18904 (sched_get_reg_operand): Likewise.
18905 (sched_get_mem_operand): Likewise.
18906 (m68k_sched_address_bypass_p): Likewise for both params.
18907 (sched_get_indexed_address_scale): Likewise.
18908 (m68k_sched_indexed_address_bypass_p): Likewise.
18909 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
18910 (m68k_sched_indexed_address_bypass_p): Likewise.
18911 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
18912 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
18914 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
18915 params from rtx to rtx_insn *.
18916 (mips_fmadd_bypass): Likewise.
18917 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
18918 (mips_linked_madd_p): Likewise.
18919 (mips_macc_chains_last_hilo): Likewise for this variable.
18920 (mips_macc_chains_record): Likewise for param.
18921 (vr4130_last_insn): Likewise for this variable.
18922 (vr4130_swap_insns_p): Likewise for both params.
18923 (mips_ls2_variable_issue): Likewise for param.
18924 (mips_need_noat_wrapper_p): Likewise for param "insn".
18925 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
18926 in place of "x" after the emit_insn.
18927 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
18928 params from rtx to rtx_insn *.
18929 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
18930 (pa_combine_instructions): Introduce local "par" for result of
18931 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
18933 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
18934 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
18935 (rl78_alloc_physical_registers_op1): Likewise.
18936 (rl78_alloc_physical_registers_op2): Likewise.
18937 (rl78_alloc_physical_registers_ro1): Likewise.
18938 (rl78_alloc_physical_registers_cmp): Likewise.
18939 (rl78_alloc_physical_registers_umul): Likewise.
18940 (rl78_alloc_address_registers_macax): Likewise.
18941 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
18942 * config/s390/predicates.md (execute_operation): Likewise for
18944 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
18946 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
18947 (addr_generation_dependency_p): Likewise for param "insn".
18948 (s390_agen_dep_p): Likewise for both params.
18949 (s390_fpload_toreg): Likewise for param "insn".
18950 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
18951 * config/sh/sh.c (sh_loop_align): Likewise for param and local
18953 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
18954 * config/sh/sh_treg_combine.cc
18955 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
18957 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
18958 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
18959 "and_insn", "load", "shift".
18960 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
18962 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
18963 for XEXP (note, 0) of the REG_CC_SETTER note.
18964 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
18965 rtx_insn *, eliminating a checked cast made redundant by this.
18966 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
18968 * genattr.c (main): When writing out the prototype to
18969 const_num_delay_slots, strengthen the param from rtx to
18971 * genattrtab.c (write_const_num_delay_slots): Likewise when
18972 writing out the implementation of const_num_delay_slots.
18973 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
18974 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
18975 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
18976 favor of new rtx locals "src" and "set" and new local rtx_insn *
18978 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
18980 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
18981 locals "cond", "if_then_else", "set" and new rtx_insn * locals
18983 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
18984 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
18985 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
18986 the top-level scope, replacing with new more tightly-scoped rtx
18987 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
18988 "new_insn", "copy_of_insn_b", and make local rtx "set" more
18990 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
18992 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
18994 (ira_setup_alts): Likewise for param "insn".
18995 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
18996 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
18998 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
18999 new more-tightly scoped rtx locals "add3_insn", "insn",
19000 "add2_insn" and rtx_insn * "move_insn".
19001 * postreload-gcse.c (eliminate_partially_redundant_load): Add
19002 checked cast on result of gen_move_insn when invoking
19004 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
19006 (verify_changes): Add a checked cast on "object" when invoking
19008 (extract_insn_cached): Strengthen param "insn" from rtx to
19010 (extract_constrain_insn_cached): Likewise.
19011 (extract_insn): Likewise.
19012 * recog.h (insn_invalid_p): Likewise for param 1.
19013 (recog_memoized): Likewise for param.
19014 (extract_insn): Likewise.
19015 (extract_constrain_insn_cached): Likewise.
19016 (extract_insn_cached): Likewise.
19017 * reload.c (can_reload_into): Likewise for local "test_insn".
19018 * reload.h (cleanup_subreg_operands): Likewise for param.
19019 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
19020 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
19021 result of emit_insn. Remove a checked cast made redundant by this
19023 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
19025 * sel-sched.c (get_reg_class): Likewise.
19027 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
19028 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19030 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
19031 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
19033 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
19035 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19037 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
19038 const rtx_insn *, and from rtx to rtx_insn * for the other
19039 overloaded variant.
19040 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
19041 INSN_LOCATION, since we know INSN_P holds.
19042 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
19043 (insn_file): Likewise.
19044 (insn_scope): Likewise.
19045 (insn_location): Likewise.
19047 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
19048 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
19049 for the result of gen_load_const_gp.
19050 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
19051 param from rtx to rtx_insn *.
19052 * config/rs6000/rs6000.c (output_call): Likewise.
19053 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
19054 introducing a checked cast to rtx_sequence * and use of the insn
19056 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
19057 from rtx to rtx_insn *.
19058 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
19059 (insn_line): Likewise.
19060 (insn_file): Likewise.
19061 (insn_location): Likewise.
19062 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
19063 from rtx to rtx_insn *.
19064 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
19065 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
19066 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
19067 via a checked cast.
19068 * reorg.c (relax_delay_slots): Strengthen locals named "after"
19069 from rtx to rtx_insn *; use methods of "pat" for type-safety.
19071 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19073 * combine.c (try_combine): Eliminate checked cast on result of
19075 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
19076 autogenerated one by strengthening the return type and params 2 and 3
19077 from rtx to rtx_insn *, and by naming the params.
19078 * gengenrtl.c (special_rtx): Add INSN to those that are
19080 * rtl.h (gen_rtx_INSN): New prototype.
19082 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19084 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
19086 (no_equiv): Likewise.
19087 (update_equiv_regs): Likewise.
19088 (setup_reg_equiv): Likewise. Strengthen locals "elem",
19089 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
19090 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
19092 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
19093 from rtx to rtx_insn_list *.
19094 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
19095 rtx_insn_list * and use methods for clarity and typesafety.
19096 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
19098 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
19099 redundant check on INSN_P (insns): this cannot hold, as "insns" is
19100 an INSN_LIST, not an insn.
19101 (reverse_equiv_p): Strengthen local "insns" from rtx to
19102 rtx_insn_list * and use methods for clarity and typesafety.
19103 (contains_reloaded_insn_p): Likewise for local "list".
19105 2014-09-09 Jiong Wang <jiong.wang@arm.com>
19107 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
19108 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
19109 (arm_builtin_vectorized_function): Likewise.
19110 * config/arm/arm_neon_builtins.def: New macro for copysignf.
19111 * config/arm/neon.md (neon_copysignf<mode>): New pattern for
19114 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
19116 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
19117 * builtins.h (default_target_builtins): Likewise.
19118 * gcse.h (default_target_gcse): Likewise.
19119 * target-globals.h (target_globals): Add a destructor. Convert
19120 void-pointer fields back to their real type and change from
19121 GTY((atomic)) to GTY((skip)).
19122 (restore_target_globals): Remove casts accordingly.
19123 * target-globals.c (save_target_globals): Use XCNEW rather than
19124 ggc_internal_cleared_alloc to allocate non-GC structures.
19125 Use ggc_cleared_alloc to allocate the target_globals structure
19127 (target_globals::~target_globals): Define.
19129 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19131 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
19132 mnemonic instead of fldmfdd.
19133 * config/arm/arm.c (vfp_output_fstmd): Rename to...
19134 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
19135 Output vpush when address register is SP.
19136 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
19137 (vfp_output_vstmd): ... This.
19138 * config/arm/vfp.md (push_multi_vfp): Update call to
19141 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19143 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
19145 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19147 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
19148 (*sqrtdf2_vfp): Likewise.
19149 (*cmpsf_vfp): Likewise.
19150 (*cmpsf_trap_vfp): Likewise.
19151 (*cmpdf_vfp): Likewise.
19152 (*cmpdf_trap_vfp): Likewise.
19154 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19156 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
19157 (*truncdfsf2_vfp): Likewise.
19158 (*truncsisf2_vfp): Likewise.
19159 (*truncsidf2_vfp): Likewise.
19160 (fixuns_truncsfsi2): Likewise.
19161 (fixuns_truncdfsi2): Likewise.
19162 (*floatsisf2_vfp): Likewise.
19163 (*floatsidf2_vfp): Likewise.
19164 (floatunssisf2): Likewise.
19165 (floatunssidf2): Likewise.
19167 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19169 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
19170 (*muldf3_vfp): Likewise.
19171 (*mulsf3negsf_vfp): Likewise.
19172 (*muldf3negdf_vfp): Likewise.
19173 (*mulsf3addsf_vfp): Likewise.
19174 (*muldf3adddf_vfp): Likewise.
19175 (*mulsf3subsf_vfp): Likewise.
19176 (*muldf3subdf_vfp): Likewise.
19177 (*mulsf3negsfaddsf_vfp): Likewise.
19178 (*fmuldf3negdfadddf_vfp): Likewise.
19179 (*mulsf3negsfsubsf_vfp): Likewise.
19180 (*muldf3negdfsubdf_vfp): Likewise.
19182 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19184 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
19185 (*absdf2_vfp): Likewise.
19186 (*negsf2_vfp): Likewise.
19187 (*negdf2_vfp): Likewise.
19188 (*addsf3_vfp): Likewise.
19189 (*adddf3_vfp): Likewise.
19190 (*subsf3_vfp): Likewise.
19191 (*subdf3_vfp): Likewise.
19192 (*divsf3_vfp): Likewise.
19193 (*divdf3_vfp): Likewise.
19195 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19197 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
19199 (arm_print_operand): Don't convert real values to decimal
19200 representation in default case.
19201 (fp_immediate_constant): Delete.
19202 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
19203 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
19205 (*thumb2_movsi_vfp): Likewise.
19206 (*movdi_vfp): Likewise.
19207 (*movdi_vfp_cortexa8): Likewise.
19208 (*movhf_vfp_neon): Likewise.
19209 (*movhf_vfp): Likewise.
19210 (*movsf_vfp): Likewise.
19211 (*thumb2_movsf_vfp): Likewise.
19212 (*movdf_vfp): Likewise.
19213 (*thumb2_movdf_vfp): Likewise.
19214 (*movsfcc_vfp): Likewise.
19215 (*thumb2_movsfcc_vfp): Likewise.
19216 (*movdfcc_vfp): Likewise.
19217 (*thumb2_movdfcc_vfp): Likewise.
19219 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19221 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
19222 (-mtune): Likewise.
19225 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19228 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
19229 Use qualifier_immediate for last operand. Rename to...
19230 (aarch64_types_ternop_lane_qualifiers): ... This.
19231 (TYPES_QUADOP): Rename to...
19232 (TYPES_TERNOP_LANE): ... This.
19233 (aarch64_simd_expand_args): Return const0_rtx when encountering user
19234 error. Change return of 0 to return of NULL_RTX.
19235 (aarch64_crc32_expand_builtin): Likewise.
19236 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
19237 ICE when expanding unknown builtin.
19238 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
19239 TERNOP_LANE qualifiers.
19240 (sqdmlsl_lane): Likewise.
19241 (sqdmlal_laneq): Likewise.
19242 (sqdmlsl_laneq): Likewise.
19243 (sqdmlal2_lane): Likewise.
19244 (sqdmlsl2_lane): Likewise.
19245 (sqdmlal2_laneq): Likewise.
19246 (sqdmlsl2_laneq): Likewise.
19248 2014-09-09 Nick Clifton <nickc@redhat.com>
19250 * doc/invoke.texi (Optimization Options): Add missing @gol to the
19252 (S/390 and zSeries Options): Remove superfluous word from the
19253 description of the -mhotpatch option.
19255 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
19257 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
19258 * ira.c: #include "shrink-wrap.h"
19259 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
19260 * ifcvt.c: #include "shrink-wrap.h"
19261 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
19263 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
19265 * common/config/picochip/picochip-common.c: Remove.
19266 * config.gcc: Remove support for picochip.
19267 * config/picochip/constraints.md: Remove.
19268 * config/picochip/dfa_space.md: Remove.
19269 * config/picochip/dfa_speed.md: Remove.
19270 * config/picochip/picochip-protos.h: Remove.
19271 * config/picochip/picochip.c: Remove.
19272 * config/picochip/picochip.h: Remove.
19273 * config/picochip/picochip.md: Remove.
19274 * config/picochip/picochip.opt: Remove.
19275 * config/picochip/predicates.md: Remove.
19276 * config/picochip/t-picochip: Remove.
19277 * doc/md.texi: Don't document picochi.
19279 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19281 * basic-block.h (control_flow_insn_p): Strengthen param from
19282 const_rtx to const rtx_insn *.
19283 * cfgbuild.c (control_flow_insn_p): Likewise.
19285 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19287 * gcse.c (modify_mem_list): Strengthen this variable from
19288 vec<rtx> * to vec<rtx_insn *> *.
19289 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
19291 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
19292 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
19293 (record_last_mem_set_info): Strengthen param "insn" from rtx to
19295 (record_last_set_info): Likewise for local "last_set_insn".
19297 2014-09-08 DJ Delorie <dj@redhat.com>
19299 * doc/invoke.texi (MSP430 Options): Add -minrt.
19301 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19303 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
19304 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
19305 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
19307 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
19309 (adjust_splat): New function.
19310 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
19311 (dump_swap_insn_table): Add case for SH_SPLAT.
19313 2014-09-08 Richard Biener <rguenther@suse.de>
19316 * tree-inline.c (copy_loops): The source loop header should
19317 always be non-NULL.
19318 (tree_function_versioning): If loops need fixup after removing
19319 unreachable blocks fix them.
19320 * omp-low.c (simd_clone_adjust): Do not add incr block to
19321 loop under construction.
19323 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
19325 * config/aarch64/aarch64-builtins.c
19326 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
19328 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19330 * config/i386/cygming.h (TF_SIZE): Remove.
19331 * config/i386/darwin.h (TF_SIZE): Remove.
19332 * config/i386/dragonfly.h (TF_SIZE): Remove.
19333 * config/i386/freebsd.h (TF_SIZE): Remove.
19334 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
19335 * config/i386/openbsdelf.h (TF_SIZE): Remove.
19336 * config/i386/sol2.h (TF_SIZE): Remove.
19337 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
19338 * config/ia64/linux.h (TF_SIZE): Remove.
19339 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
19340 * doc/tm.texi: Regenerate.
19341 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
19343 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19345 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19347 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
19349 * doc/tm.texi: Regenerate.
19350 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19352 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
19353 * config/cris/cris.h (__make_dp): Remove.
19355 2014-09-08 Richard Biener <rguenther@suse.de>
19358 * cfgloop.c (mark_loop_for_removal): Track former header
19360 * cfgloop.h (struct loop): Add former_header member unconditionally.
19361 * loop-init.c (fix_loop_structure): Enable bogus loop removal
19362 diagnostic unconditionally.
19364 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19367 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
19368 constraint for operand0 and remove write only modifier from operand3.
19370 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
19372 PR rtl-optimization/62208
19373 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
19374 rather than const0_rtx in eq/ne-xor simplifications.
19376 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19378 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
19379 (arc_output_mi_thunk): Likewise.
19381 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
19382 arguments to silence bogus warning.
19384 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
19386 PR middle-end/63171
19387 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
19389 2014-09-06 Tom de Vries <tom@codesourcery.com>
19391 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
19392 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
19393 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19395 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
19398 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
19399 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
19401 2014-09-05 Easwaran Raman <eraman@google.com>
19403 PR rtl-optimization/62146
19404 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
19405 hoisted instruction unconditional.
19407 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
19410 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
19411 Do not allow any_mask_operand for operands[2].
19412 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
19414 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19416 * config/arc/arc.c (arc_print_operand): Use insn method of
19417 final_sequence for type-safety.
19418 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
19419 "insn" from rtx to rtx_insn *.
19420 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
19421 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
19422 Likewise for locals "branch", "label".
19423 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
19424 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
19425 (same_cmp_following_p): Likewise for locals "i2", "i3".
19426 * config/sh/sh_optimize_sett_clrt.cc
19427 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
19428 param "cbranch_insn".
19429 * function.c (convert_jumps_to_returns): Likewis for local "jump".
19430 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
19431 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
19433 (condjump_p): Likewise.
19434 (condjump_in_parallel_p): Likewise.
19435 (pc_set): Likewise.
19436 (any_uncondjump_p): Likewise.
19437 (any_condjump_p): Likewise.
19438 (condjump_label): Likewise.
19439 (returnjump_p): Strengthen param "insn" from rtx to
19441 (onlyjump_p): Strengthen param "insn" from const_rtx to
19443 (jump_to_label_p): Likewise.
19444 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
19445 (invert_jump): Likewise.
19446 * reorg.c (simplejump_or_return_p): Add checked cast when calling
19448 (get_jump_flags): Strengthen param "insn" from rtx to
19450 (get_branch_condition): Likewise.
19451 (condition_dominates_p): Likewise.
19452 (make_return_insns): Move declaration of local "pat" earlier, to
19453 after we've handled NONJUMP_INSN_P and non-sequences, using its
19454 methods to simplify the code and for type-safety.
19455 * rtl.h (find_constant_src): Strengthen param from const_rtx to
19457 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
19458 (condjump_p): Strengthen param from const_rtx to
19460 (any_condjump_p): Likewise.
19461 (any_uncondjump_p): Likewise.
19462 (pc_set): Likewise.
19463 (condjump_label): Likewise.
19464 (simplejump_p): Likewise.
19465 (returnjump_p): Likewise.
19466 (onlyjump_p): Likewise.
19467 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
19468 (invert_jump): Likewise.
19469 (condjump_in_parallel_p): Strengthen param from const_rtx to
19471 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
19472 to const rtx_insn *.
19473 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
19474 to const rtx_insn *.
19475 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
19477 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19479 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
19480 above the conditional, and convert the check on GET_CODE to a
19481 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
19482 the conditional. Simplify the conditional by using methods of
19485 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19487 * haifa-sched.c (check_clobbered_conditions): Strengthen local
19488 "link" from rtx to rtx_insn_list *, and use its methods for
19489 clarity and type-safety.
19490 (toggle_cancelled_flags): Likewise.
19491 (restore_last_backtrack_point): Likewise.
19492 (queue_to_ready): Use insn method of "link" in one place.
19493 (schedule_block): Strengthen local "link" from rtx to
19494 rtx_insn_list *, and use its methods for clarity and type-safety.
19496 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19498 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
19499 param "insn" from const_rtx to const rtx_insn *.
19500 (sched_get_reverse_condition_uncached): Likewise.
19501 (sched_get_condition_with_rev): Likewise.
19502 (sched_has_condition_p): Likewise.
19503 (sched_insns_conditions_mutex_p): Likewise for both params.
19504 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
19505 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
19506 (setup_insn_reg_uses): Move local "list" to be more tightly
19507 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
19508 its methods for clarity and type-safety.
19509 (sched_analyze_1): Strengthen local "pending" from rtx to
19510 rtx_insn_list *, and local "pending_mem" from rtx to
19511 rtx_expr_list *. Use methods of each for clarity and type-safety.
19512 (sched_analyze_2): Likewise.
19513 (sched_analyze_insn): Likewise.
19515 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
19516 param from const_rtx to const rtx_insn *.
19517 (sched_insns_conditions_mutex_p): Likewise for both params.
19518 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
19521 * system.h (CONST_CAST_RTX_INSN): New macro.
19523 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19525 * recog.c (peep2_attempt): Strengthen return type from rtx to
19527 (peep2_update_life): Likewise for params "last", "prev", removing
19528 a checked cast made redundant by this.
19529 (peephole2_optimize): Likewise for local "last".
19531 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19533 * basic-block.h (set_block_for_insn): Eliminate this macro in
19535 * rtl.h (set_block_for_insn): New inline function, imposing the
19536 requirement that the "insn" param is an rtx_insn *.
19538 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19540 * caller-save.c (setup_save_areas): Strengthen local "insn" from
19542 * final.c (get_call_reg_set_usage): Likewise for first param,
19543 eliminating a checked cast.
19544 * regs.h (get_call_reg_set_usage): Likewise for first param.
19545 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
19546 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
19547 cast, replacing references to "x" with "call_insn" where
19549 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
19550 rtx_insn *, adding a checked cast.
19552 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19554 * output.h (final_scan_insn): Strengthen first param from rtx to
19557 * final.c (final_scan_insn): Likewise, renaming it back from
19558 "uncast_insn" to "insn", eliminating the checked cast.
19560 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
19561 "vec" with an rtx_sequence * "seq", taking a copy of
19562 "final_sequence", and using methods of "seq" for clarity, and for
19563 type-safety in the calls to final_scan_insn.
19564 * config/mips/mips.c (mips_output_conditional_branch): Use methods
19565 of "final_sequence" for clarity, and for type-safety in the call to
19567 * config/sh/sh.c (print_slot): Strengthen param from rtx to
19568 rtx_sequence * and rename from "insn" to "seq".
19570 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19572 * jump.c (delete_related_insns): Introduce a new local "table" by
19573 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
19574 get_labels method of "table" to simplify access to the labels in
19577 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19579 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
19580 f_minmaxs, f_minmaxd types.
19582 2014-09-05 Richard Biener <rguenther@suse.de>
19584 * cfgloop.c (mark_loop_for_removal): Record former header
19585 when ENABLE_CHECKING.
19586 * cfgloop.h (strut loop): Add former_header member when
19588 * loop-init.c (fix_loop_structure): Sanity check loops
19589 marked for removal if they re-appeared.
19591 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19593 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
19594 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
19596 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
19597 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
19598 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
19599 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
19600 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
19601 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
19602 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
19603 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
19604 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
19605 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
19606 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
19607 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
19608 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
19609 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
19610 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
19611 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
19612 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
19613 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
19614 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
19615 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
19616 with int{32,16,8}_t.
19618 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19620 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
19621 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
19622 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
19623 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
19624 Remove temporary __asm__ and reimplement.
19626 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19628 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
19629 handling cmge, cmgt, cmeq, cmtst.
19631 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
19632 cmlt, cmgeu, cmgtu, cmtst): Remove.
19634 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
19635 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
19636 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
19637 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
19639 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19641 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
19642 TYPES_TST): Define.
19643 (aarch64_fold_builtin): Update pattern for cmtst.
19645 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
19648 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
19650 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
19651 Switch operands, separate out more cases, refactor.
19653 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
19655 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
19656 argument; rename old version to...
19657 (aarch64_const_vec_all_same_in_range_p): ...this.
19658 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
19660 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
19662 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19664 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19665 Remove qualifier_const_pointer, update comment.
19667 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19669 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
19671 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19673 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
19674 varargs with pointer parameter.
19675 (aarch64_simd_expand_builtin): pass pointer into previous.
19677 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19679 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
19682 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19684 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
19685 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
19686 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
19687 Replace temporary asm with call to builtin.
19688 (vrbit_p8, vrbitq_p8): New functions.
19690 2014-09-05 Richard Biener <rguenther@suse.de>
19692 * cfgloop.c (mark_loop_for_removal): New function.
19693 * cfgloop.h (mark_loop_for_removal): Declare.
19694 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
19695 (merge_blocks): Likewise.
19696 (duplicate_block): Likewise.
19697 * except.c (sjlj_emit_dispatch_table): Likewise.
19698 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
19699 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19700 (thread_through_loop_header): Likewise.
19702 2014-09-05 Richard Biener <rguenther@suse.de>
19704 PR middle-end/63148
19705 * fold-const.c (try_move_mult_to_index): Remove.
19706 (fold_binary_loc): Do not call it.
19707 * tree-data-ref.c (dr_analyze_indices): Strip conversions
19708 from the base object again.
19710 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19712 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
19715 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19718 * config/arm/arm.md (setmem): New pattern.
19719 * config/arm/arm-protos.h (struct tune_params): New fields.
19720 (arm_gen_setmem): New prototype.
19721 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
19722 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19723 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19724 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
19725 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
19726 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
19727 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
19728 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19729 (arm_const_inline_cost): New function.
19730 (arm_block_set_max_insns): New function.
19731 (arm_block_set_non_vect_profit_p): New function.
19732 (arm_block_set_vect_profit_p): New function.
19733 (arm_block_set_unaligned_vect): New function.
19734 (arm_block_set_aligned_vect): New function.
19735 (arm_block_set_unaligned_non_vect): New function.
19736 (arm_block_set_aligned_non_vect): New function.
19737 (arm_block_set_vect, arm_gen_setmem): New functions.
19739 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19741 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
19743 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19745 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
19747 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19749 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
19751 * valtrack.h: Adjust.
19753 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19755 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
19757 (emit_jump_insn_before_noloc): Likewise.
19758 (emit_call_insn_before_noloc): Likewise.
19759 (emit_label_before): Likewise.
19760 (emit_label_after): Likewise.
19761 (emit_insn_before_setloc): Likewise.
19762 (emit_jump_insn_before_setloc): Likewise.
19763 (emit_call_insn_before_setloc): Likewise.
19764 (emit_call_insn_before): Likewise.
19767 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19769 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
19770 rtx_insn *, eliminating a checked cast.
19772 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19774 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
19775 const_rtx to const rtx_insn *.
19776 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
19779 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19781 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
19782 fixup_args_size_notes.
19783 * expr.c (fixup_args_size_notes): Strengthen first two params from
19784 rtx to rtx_insn *, eliminating a checked cast.
19785 * rtl.h (fixup_args_size_notes): Strengthen first two params from
19788 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19790 * haifa-sched.c (get_ready_element): Strengthen return type from
19792 * sched-int.h (get_ready_element): Likewise.
19794 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
19797 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
19798 indexed_or_indirect_operand instead of memory_operand.
19799 (floatsi<mode>2_lfiwzx_mem): Ditto.
19801 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19803 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
19804 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
19805 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
19807 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19809 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
19811 (get_last_nonnote_insn): Likewise.
19812 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
19813 * resource.c (find_basic_block): Likewise.
19815 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
19818 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19820 * genattr.c (main): Within the prototype of insn_latency written
19821 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
19822 * genautomata.c (output_internal_maximal_insn_latency_func):
19823 Within the implementation of insn_latency written out to
19824 insn-automata.c, strengthen both params from rtx to rtx_insn *,
19825 eliminating a pair of checked casts.
19827 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19829 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
19832 * rtl.h (eh_returnjump_p): Likewise.
19834 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
19836 * Makefile.in (TAGS): Handle constructs in timevar.def.
19838 2014-09-04 Guozhi Wei <carrot@google.com>
19841 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
19842 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
19843 it into two patterns.
19844 (move_lo_quad_internal_be_<mode>): Likewise.
19846 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
19848 * doc/options.texi: Document that Var and Init are required if CPP
19850 * optc-gen.awk: Require Var and Init if CPP is given.
19851 * common.opt (Wpedantic): Use Init.
19853 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19855 * config/rs6000/rs6000.c (special_handling_values): Add
19857 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
19858 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
19859 as swappable with special handling SH_EXTRACT. Remove
19860 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
19862 (adjust_extract): New function.
19863 (handle_special_swappables): Add default to case statement; add
19864 case for SH_EXTRACT that calls adjust_extract.
19865 (dump_swap_insn_table): Handle SH_EXTRACT.
19867 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19869 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
19870 selection of 0th memory doubleword, regardless of endianness.
19872 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19874 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
19876 2014-09-04 Alan Modra <amodra@gmail.com>
19879 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
19882 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
19884 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
19885 * targhooks.c (default_dwarf_frame_reg_mode): New function.
19886 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
19887 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
19888 * doc/tm.texi: Regenerate.
19889 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
19890 selection logic to default_dwarf_frame_reg_mode.
19892 2014-09-03 Marek Polacek <polacek@redhat.com>
19894 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
19897 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19899 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
19900 the automodified register.
19902 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19904 * output.h (get_some_local_dynamic_name): Declare.
19905 * final.c (some_local_dynamic_name): New variable.
19906 (get_some_local_dynamic_name): New function.
19907 (final_end_function): Clear some_local_dynamic_name.
19908 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
19909 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19910 (print_operand): Report an error if '%&' is used inappropriately.
19911 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
19912 (get_some_local_dynamic_name_1): Delete.
19913 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
19914 (rs6000_get_some_local_dynamic_name): Delete.
19915 (rs6000_get_some_local_dynamic_name_1): Delete.
19916 (print_operand): Report an error if '%&' is used inappropriately.
19917 * config/s390/s390.c (machine_function): Remove some_ld_name.
19918 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19919 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
19920 * config/sparc/sparc.c: Include rtl-iter.h.
19921 (machine_function): Remove some_ld_name.
19922 (sparc_print_operand): Report an error if '%&' is used inappropriately.
19923 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19925 2014-09-03 Richard Henderson <rth@redhat.com>
19927 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
19928 (aarch64_popwb_pair_reg): Remove.
19929 (aarch64_set_frame_expr): Remove.
19930 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
19931 the restore ops performed by the insns generated.
19932 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
19933 insn. Perform the calls_eh_return addition later; do not attempt to
19934 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
19935 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
19936 special markup at all. Load cfun->machine->frame.hard_fp_offset
19937 into a local variable.
19938 (aarch64_frame_pointer_required): Don't check calls_alloca.
19940 2014-09-03 Richard Biener <rguenther@suse.de>
19942 * opts.c (default_options_optimization): Adjust
19943 max-combine-insns to 2 for -Og.
19945 2014-09-03 Martin Jambor <mjambor@suse.cz>
19948 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
19949 pass-trough jump functions correctly.
19951 2014-09-03 Martin Jambor <mjambor@suse.cz>
19954 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
19955 created replacements in ascending order of offsets.
19956 (known_aggs_to_agg_replacement_list): Likewise.
19958 2014-09-03 Martin Liska <mliska@suse.cz>
19960 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
19961 is set to set uninitialized value for vnresult.
19963 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19965 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
19966 for TARGET_MUST_PASS_IN_STACK.
19968 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19970 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
19971 for TARGET_ARG_PARTIAL_BYTES.
19973 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19975 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
19976 instructions for varargs implementation.
19977 (nds32_expand_epilogue): Emit stack adjustment instructions for
19978 varargs implementation.
19980 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19982 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
19983 optimization detection.
19985 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19987 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
19989 (nds32_function_arg_advance): Deal with nameless arguments.
19990 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
19991 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
19992 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
19994 2014-09-03 Richard Biener <rguenther@suse.de>
19996 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
19997 (struct bb_bitmap_sets): Remove deferred member.
19998 (BB_DEFERRED): Remove.
19999 (defer_or_phi_translate_block): Remove.
20000 (compute_antic_aux): Remove deferring of blocks, assert
20001 proper iteration order.
20002 (compute_antic): Do not set BB_DEFERRED.
20003 (eliminate): Allocate el_avail of proper size initially.
20005 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20007 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
20008 according to the value of crtl->args.pretend_args_size.
20010 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20012 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
20013 varargs information.
20015 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20017 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
20018 implementation for TARGET_SETUP_INCOMING_VARARGS.
20019 (nds32_strict_argument_naming): Refine comment.
20020 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
20021 Define for future implementation.
20023 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
20025 * config/i386/adxintrin.h (_subborrow_u32): New.
20026 (_addcarry_u32): Ditto.
20027 (_subborrow_u64): Ditto.
20028 (_addcarry_u64): Ditto.
20029 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
20030 IX86_BUILTIN_SBB64.
20031 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
20032 __builtin_ia32_sbb_u64
20034 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20036 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
20037 GPR-specific stuff.
20038 (nds32_function_arg_advance): Likewise.
20039 (nds32_init_cumulative_args): Likewise.
20040 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
20041 (NDS32_FIRST_GPR_REGNUM): Define.
20042 (NDS32_LAST_GPR_REGNUM): Define.
20043 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
20044 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20045 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20046 (machine_function): Use GRP-specific stuff.
20048 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20050 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
20051 (nds32_expand_epilogue): Likewise.
20052 (nds32_expand_prologue_v3push): Likewise.
20053 (nds32_expand_epilogue_v3pop): Likewise.
20055 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20057 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
20058 v3push/v3pop for variadic function.
20059 * config/nds32/nds32.md (prologue, epilogue): Likewise.
20061 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20063 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20064 Check rtx for varargs implementation.
20065 (nds32_output_stack_pop): Likewise.
20066 * config/nds32/nds32-protos.h: Have a rtx argument for
20067 nds32_output_stack_push and nds32_output_stack_pop.
20068 * config/nds32/nds32.md: Likewise.
20070 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20072 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
20073 to check if FUNC is an interrupt service routine.
20074 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
20076 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20078 * config/nds32/nds32.h (machine_function): Add some fields for variadic
20079 arguments implementation.
20081 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20083 * config/nds32/nds32-predicates.c
20084 (nds32_valid_stack_push_pop): Rename to ...
20085 (nds32_valid_stack_push_pop_p): ... this.
20086 * config/nds32/nds32-protos.h: Likewise.
20087 * config/nds32/predicates.md: Likewise.
20089 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20091 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
20092 (nds32_emit_stack_v3push): ... this.
20093 (nds32_gen_stack_v3pop): Rename to ...
20094 (nds32_emit_stack_v3pop): ... this and consider CFA restore
20097 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20099 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
20100 (nds32_emit_stack_push_multiple): ... this.
20101 (nds32_gen_stack_pop_multiple): Rename to ...
20102 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
20105 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20108 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
20109 and add a second splitter to handle the remaining cases.
20111 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20113 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
20115 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20117 * cfgexpand.c (label_rtx_for_bb): Change type to
20118 hash_map<basic_block, rtx_code_label *> *.
20119 (expand_gimple_basic_block): Adjust.
20120 (pass_expand::execute): Likewise.
20122 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20124 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
20125 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
20126 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
20127 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
20128 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
20129 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
20130 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
20133 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20135 * alloc-pool.c: Include coretypes.h.
20136 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
20137 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
20138 hash_set instead of htab.
20139 * ggc-page.c (in_gc): New variable.
20140 (ggc_free): Do nothing if a collection is taking place.
20141 (ggc_collect): Set in_gc appropriately.
20142 * ggc.h (gt_ggc_mx(const char *)): New function.
20143 (gt_pch_nx(const char *)): Likewise.
20144 (gt_ggc_mx(int)): Likewise.
20145 (gt_pch_nx(int)): Likewise.
20146 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
20147 (hash_map::hash_entry::pch_nx): Likewise.
20148 (hash_map::hash_entry::pch_nx_helper): Likewise.
20149 (hash_map::hash_map): Adjust.
20150 (hash_map::create_ggc): New function.
20151 (gt_ggc_mx): Likewise.
20152 (gt_pch_nx): Likewise.
20153 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
20154 (default_hashset_traits::pch_nx): Likewise.
20155 (hash_set::hash_entry::ggc_mx): Likewise.
20156 (hash_set::hash_entry::pch_nx): Likewise.
20157 (hash_set::hash_entry::pch_nx_helper): Likewise.
20158 (hash_set::hash_set): Adjust.
20159 (hash_set::create_ggc): New function.
20160 (hash_set::elements): Likewise.
20161 (gt_ggc_mx): Likewise.
20162 (gt_pch_nx): Likewise.
20163 * hash-table.h (hash_table::hash_table): Adjust.
20164 (hash_table::m_ggc): New member.
20165 (hash_table::~hash_table): Adjust.
20166 (hash_table::expand): Likewise.
20167 (hash_table::empty): Likewise.
20168 (gt_ggc_mx): New function.
20169 (hashtab_entry_note_pointers): Likewise.
20170 (gt_pch_nx): Likewise.
20172 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20174 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
20175 built-in definition.
20176 (XVCVUXDDP_SCALE): Likewise.
20177 (XVCVDPSXDS_SCALE): Likewise.
20178 (XVCVDPUXDS_SCALE): Likewise.
20179 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20180 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
20181 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
20182 VSX_BUILTIN_XVCVDPUXDS_SCALE.
20183 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
20185 * config/rs6000/rs6000.c (real.h): New include.
20186 (rs6000_scale_v2df): New function.
20187 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
20188 (UNSPEC_VSX_XVCVUXDDP): Likewise.
20189 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
20190 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
20191 (vsx_xvcvsxddp_scale): New define_expand.
20192 (vsx_xvcvsxddp): New define_insn.
20193 (vsx_xvcvuxddp_scale): New define_expand.
20194 (vsx_xvcvuxddp): New define_insn.
20195 (vsx_xvcvdpsxds_scale): New define_expand.
20196 (vsx_xvcvdpsxds): New define_insn.
20197 (vsx_xvcvdpuxds_scale): New define_expand.
20198 (vsx_xvcvdpuxds): New define_insn.
20199 * doc/extend.texi (vec_ctf): Add new prototypes.
20200 (vec_cts): Likewise.
20201 (vec_ctu): Likewise.
20202 (vec_splat): Likewise.
20203 (vec_div): Likewise.
20204 (vec_mul): Likewise.
20206 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20209 * config/arm/neon.md
20210 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
20211 <v_cmp_result>): New pattern.
20212 * config/arm/iterators.md (NEON_VCVT): New int iterator.
20213 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
20214 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
20215 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
20216 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
20217 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
20219 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20222 * config/arm/iterators.md (FIXUORS): New code iterator.
20223 (VCVT): New int iterator.
20224 (su_optab): New code attribute.
20226 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
20228 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20230 * config/aarch64/predicates.md (aarch64_comparison_operation):
20231 New special predicate.
20232 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
20233 aarch64_comparison_operation instead of matching an operator.
20234 Update operand numbers.
20235 (csinc3<mode>_insn): Likewise.
20236 (*csinv3<mode>_insn): Likewise.
20237 (*csneg3<mode>_insn): Likewise.
20238 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
20239 * config/aarch64/aarch64.c (aarch64_get_condition_code):
20240 Return -1 instead of aborting on invalid condition codes.
20241 (aarch64_print_operand): Update aarch64_get_condition_code callsites
20242 to assert that the returned condition code is valid.
20243 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
20245 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
20247 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
20248 tree.def, and gimple.def
20250 2014-09-02 Jakub Jelinek <jakub@redhat.com>
20251 Balaji V. Iyer <balaji.v.iyer@intel.com>
20252 Igor Zamyatin <igor.zamyatin@intel.com>
20254 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
20255 (__cilkrts_cilk_for_64): Likewise.
20256 * cilk-common.c (declare_cilk_for_builtin): New function.
20257 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
20258 __cilkrts_cilk_for_64 bultins.
20259 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
20261 (cilk_for_32_fndecl): New define.
20262 (cilk_for_64_fndecl): Likewise.
20263 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
20264 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
20265 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
20266 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
20267 GF_OMP_FOR_COMBINED_INTO.
20268 * gimplify.c (gimplify_scan_omp_clauses): Added
20269 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20270 (gimplify_adjust_omp_clauses): Ditto.
20271 (gimplify_omp_for): Added CILK_FOR case.
20272 (gimplify_expr): Ditto.
20273 * omp-low.c: Include cilk.h.
20274 (extract_omp_for_data): Set appropriate kind for
20275 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
20276 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
20277 (create_omp_child_function_name): Added second argument to handle
20279 (cilk_for_check_loop_diff_type): New function.
20280 (expand_cilk_for_call): Likewise.
20281 (expand_cilk_for): Likewise.
20282 (create_omp_child_function): Set cilk_for_count; handle the cases when
20283 it is true; call create_omp_child_function_name with second argument.
20284 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
20285 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
20286 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
20287 * tree-nested.c (convert_nonlocal_omp_clauses): Added
20288 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20289 (convert_local_omp_clauses): Ditto.
20290 * tree-pretty-print.c (dump_omp_clause): Added
20291 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
20292 (dump_generic_node): Added CILK_FOR case.
20293 * tree.c (omp_clause_num_ops): New element
20294 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
20295 (omp_clause_code_name): New element _Cilk_for_count_.
20296 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
20297 * tree.def: Add tree code for CILK_FOR.
20299 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20301 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
20302 (ppc403-compare): Add "exts with dot" case.
20303 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
20304 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
20305 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
20306 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
20307 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
20308 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
20309 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
20310 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20311 cell-cmp-microcoded): Similarly.
20312 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
20313 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
20314 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
20315 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
20316 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
20317 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20318 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
20319 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
20320 (power6-compare): Add "exts with dot" case.
20321 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
20322 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
20323 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
20325 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
20326 if avoiding Cell microcode.
20327 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
20328 (is_cracked_insn): Ditto.
20329 (insn_must_be_first_in_group): Ditto.
20330 * config/rs6000/rs6000.md (dot): Adjust comment.
20331 (cell_micro): Handle exts+dot.
20332 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
20333 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
20334 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
20335 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
20336 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
20337 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
20338 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
20340 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20342 * config/rs6000/rs6000.md (QHSI): Delete.
20343 (EXTQI, EXTHI, EXTSI): New mode iterators.
20344 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
20345 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20346 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
20347 9 anonymous instructions, and 8 splitters): Delete.
20348 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
20349 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
20350 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
20351 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
20352 *zero_extendsi<mode>2_dot2): New.
20354 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20356 * config/rs6000/rs6000.md (any_extend): New code iterator.
20357 (u, su): New code attributes.
20358 (dmode, DMODE): New mode attributes.
20359 (<su>mul<mode>3_highpart): New.
20360 (*<su>mul<mode>3_highpart): New.
20361 (<su>mulsi3_highpart_le): New.
20362 (<su>muldi3_highpart_le): New.
20363 (<su>mulsi3_highpart_64): New.
20364 (<u>mul<mode><dmode>3): New.
20365 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
20366 splitters): Delete.
20367 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
20368 splitters): Delete.
20370 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20372 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
20373 *mulsi3_internal2, and two splitters): Delete.
20374 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
20376 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
20378 2014-09-02 Richard Biener <rguenther@suse.de>
20380 PR tree-optimization/62695
20381 * tree-ssa-structalias.c (find_func_clobbers): Add missing
20384 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
20387 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
20389 2014-09-01 Andi Kleen <ak@linux.intel.com>
20391 * file-find.c (add_prefix_begin): Add.
20392 (do_add_prefix): Rename from add_prefix with first argument.
20393 (add_prefix): Add new wrapper.
20394 * file-find.h (add_prefix_begin): Add.
20395 * gcc-ar.c (main): Support -B option.
20397 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
20399 * genemit.c: Include dumpfile.h.
20400 (gen_split): Print name of splitter function to dump file.
20402 2014-09-01 Richard Biener <rguenther@suse.de>
20404 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
20405 Use stack auto_vecs for constraint expressions.
20406 (find_func_aliases_for_call): Likewise.
20407 (find_func_aliases): Likewise.
20408 (find_func_clobbers): Likewise.
20410 2014-09-01 Richard Biener <rguenther@suse.de>
20412 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
20413 operands vector in most cases. Remove redundant code.
20415 2014-09-01 Olivier Hainque <hainque@adacore.com>
20417 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
20418 $WIND_BASE instead of designating a harcoded arbitrary home dir.
20419 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
20421 2014-09-01 Richard Biener <rguenther@suse.de>
20423 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
20424 copy_reference_ops_from_call, vn_nary_op_compute_hash,
20425 vn_reference_compute_hash, vn_reference_insert): Remove.
20426 (vn_reference_lookup_call): New function.
20427 * tree-ssa-sccvn.c (vn_reference_compute_hash,
20428 copy_reference_ops_from_ref, copy_reference_ops_from_call,
20429 vn_reference_insert, vn_nary_op_compute_hash): Make static.
20430 (create_reference_ops_from_call): Remove.
20431 (vn_reference_lookup_3): Properly update shared_lookup_references.
20432 (vn_reference_lookup_pieces): Assert that we updated
20433 shared_lookup_references properly.
20434 (vn_reference_lookup): Likewise.
20435 (vn_reference_lookup_call): New function.
20436 (visit_reference_op_call): Use it. Avoid re-building the
20438 (visit_reference_op_load): Remove redundant lookup.
20439 (visit_reference_op_store): Perform special tail-merging work
20440 only when possibly doing tail-merging.
20441 (visit_use): Likewise.
20442 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
20444 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20447 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
20448 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
20449 (find_inc): Revert 2014-08-13 change.
20451 2014-09-01 Marek Polacek <polacek@redhat.com>
20453 PR middle-end/61903
20454 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
20455 Change the type of V to unsigned HOST_WIDE_INT.
20457 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20459 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
20460 the size of byte markers.
20461 (do_shift_rotate): Fix confusion between host, target and marker byte
20463 (verify_symbolic_number_p): Likewise.
20464 (find_bswap_or_nop_1): Likewise.
20465 (find_bswap_or_nop): Likewise.
20467 2014-09-01 Olivier Hainque <hainque@adacore.com>
20469 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
20470 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
20472 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20474 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
20475 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
20476 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
20478 2014-09-01 Yury Gribov <y.gribov@samsung.com>
20482 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
20483 (build_check_stmt): Likewise.
20484 (instrument_strlen_call): Likewise.
20485 (asan_expand_check_ifn): Likewise and fix types.
20486 (maybe_cast_to_ptrmode): New function.
20488 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20490 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
20492 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
20494 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
20496 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
20498 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
20499 prefix to function labels when generating fast indirect calls.
20501 2014-08-30 David Malcolm <dmalcolm@redhat.com>
20505 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
20506 param back from rtx_insn * to rtx. Rename param from "label" to
20507 "label_or_return", reintroducing "label" as an rtx_insn * after
20508 we've ensured it's not a RETURN.
20509 (first_active_target_insn): Likewise for return type and param;
20510 add a checked cast to rtx_insn * once we've ensured "insn" is not
20512 (steal_delay_list_from_target): Convert param "pnew_thread" back
20513 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
20515 (own_thread_p): Convert param "thread" back from an rtx_insn * to
20516 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
20517 cast once we've established we're not dealing with a RETURN,
20518 renaming subsequent uses of "thread" to "thread_insn".
20519 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
20521 (follow_jumps): Convert return type and param "label" from
20522 rtx_insn * back to rtx. Move initialization of "value" to after
20523 the handling for ANY_RETURN_P, adding a checked cast there to
20524 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
20525 rename to "this_label_or_return", reintroducing "this_label" as
20526 an rtx_insn * once we've handled the case where it could be an
20528 (fill_slots_from_thread): Rename param "thread" to
20529 "thread_or_return", converting from an rtx_insn * back to an rtx.
20530 Reintroduce name "thread" as an rtx_insn * local with a checked
20531 cast once we've handled the case of it being an ANY_RETURN_P.
20532 Convert local "new_thread" from an rtx_insn * back to an rtx.
20533 Add a checked cast when assigning to "trial" from "new_thread".
20534 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
20535 checked cast to rtx_insn * from "new_thread" when invoking
20537 (fill_eager_delay_slots): Convert locals "target_label",
20538 "insn_at_target" from rtx_insn * back to rtx.
20539 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
20540 (relax_delay_slots): Convert locals "trial", "target_label" from
20541 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
20542 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
20543 invoking update_block.
20544 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
20545 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
20547 * resource.h (mark_target_live_regs): Undo erroneous conversion
20548 of second param of r214693, converting it back from rtx_insn * to
20549 rtx, since it could be a RETURN.
20551 * resource.c (find_dead_or_set_registers): Similarly, convert
20552 param "jump_target" back from an rtx_insn ** to an rtx *, as we
20553 could be writing back a RETURN. Rename local rtx_insn * "next" to
20554 "next_insn", and introduce "lab_or_return" as a local rtx,
20555 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
20556 (mark_target_live_regs): Undo erroneous conversion
20557 of second param of r214693, converting it back from rtx_insn * to
20558 rtx, since it could be a RETURN. Rename it from "target" to
20559 "target_maybe_return", reintroducing the name "target" as a local
20560 rtx_insn * with a checked cast, after we've handled the case of
20563 2014-08-29 DJ Delorie <dj@redhat.com>
20565 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
20566 pointer size up to a power of two.
20567 * defaults.h (DWARF2_ADDR_SIZE): Round up.
20568 (POINTER_SIZE_UNITS): New, rounded up value.
20569 * dwarf2asm.c (size_of_encoded_value): Use it.
20570 (dw2_output_indirect_constant_1): Likewise.
20571 * expmed.c (init_expmed_one_conv): We now know the sizes of
20573 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
20574 * optabs.c (expand_float): Use precision, not size.
20575 (expand_fix): Likewise.
20576 * simplify-rtx (simplify_unary_operation_1): Likewise.
20577 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20578 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
20579 (default_assemble_integer) Likewise.
20580 (dump_tm_clone_pairs): Likewise.
20581 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
20582 * var-tracking.c (adjust_mems): Allow partial-int modes also.
20583 (prepare_call_arguments): Likewise.
20584 * stor-layout.c (finalize_type_size): Preserve precision.
20585 (layout_type): Use precision, not size.
20587 * expr.c (convert_move): If the target has an explicit converter,
20590 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20592 * gdbinit.in: Skip various inline functions in rtl.h when
20595 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
20598 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
20600 2014-08-29 Richard Biener <rguenther@suse.de>
20602 PR tree-optimization/62291
20603 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
20604 exactly the vector size needed and use quick_push.
20605 (phi_translate_1): Adjust comment.
20606 (valid_in_sets): Remove block argument and remove pointless
20608 (dependent_clean): Adjust for removal of block argument.
20610 (compute_antic_aux): Likewise.
20611 (compute_partial_antic_aux): Likewise.
20613 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20614 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20615 Anna Tikhonova <anna.tikhonova@intel.com>
20616 Ilya Tocar <ilya.tocar@intel.com>
20617 Andrey Turetskiy <andrey.turetskiy@intel.com>
20618 Ilya Verbin <ilya.verbin@intel.com>
20619 Kirill Yukhin <kirill.yukhin@intel.com>
20620 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20622 * config/i386/sse.md
20623 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
20624 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
20625 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
20626 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
20628 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20629 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20630 Anna Tikhonova <anna.tikhonova@intel.com>
20631 Ilya Tocar <ilya.tocar@intel.com>
20632 Andrey Turetskiy <andrey.turetskiy@intel.com>
20633 Ilya Verbin <ilya.verbin@intel.com>
20634 Kirill Yukhin <kirill.yukhin@intel.com>
20635 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20637 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
20638 * config/i386/sse.md
20639 (define_mode_iterator VI4_128_8_256): New.
20640 (define_mode_iterator VI2_128_4_256): Ditto.
20641 (define_mode_iterator PMOV_DST_MODE): Rename into
20642 (define_mode_iterator PMOV_DST_MODE_1): this.
20643 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
20644 Use PMOV_DST_MODE_1 mode iterator.
20645 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20647 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20649 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
20650 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
20651 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
20652 (define_mode_iterator PMOV_DST_MODE_2): New.
20653 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
20654 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
20655 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
20657 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
20658 (define_mode_attr pmov_dst_3): Ditto.
20659 (define_mode_attr pmov_dst_zeroed_3): Ditto.
20660 (define_mode_attr pmov_suff_3): Ditto.
20661 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
20662 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
20663 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
20664 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
20665 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
20666 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
20667 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
20668 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
20669 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
20670 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
20671 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
20672 (define_mode_attr pmov_dst_4): Ditto.
20673 (define_mode_attr pmov_dst_zeroed_4): Ditto.
20674 (define_mode_attr pmov_suff_4): Ditto.
20675 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
20676 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
20677 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
20678 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
20679 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
20680 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
20681 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
20682 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
20683 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
20684 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
20685 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
20687 2014-08-29 Richard Biener <rguenther@suse.de>
20689 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
20690 NON_LVALUE_EXPR in gimple.
20692 2014-08-29 Richard Biener <rguenther@suse.de>
20694 PR middle-end/62292
20695 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
20696 from previous refactoring.
20697 (gimple_fold_builtin_strncpy): Likewise.
20699 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20702 * function.c (assign_parm_setup_reg): Remove erroneous checked
20703 cast to rtx_insn * on result of gen_extend_insn in favor of
20704 introducing a new local rtx "pat".
20706 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20708 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
20709 to silence warning.
20710 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
20712 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20714 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
20715 (next_insn): Likewise.
20716 * emit-rtl.c (next_insn): Likewise.
20717 (previous_insn): Likewise.
20718 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
20719 "insn" and "next" from rtx to rtx_insn *.
20720 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
20721 "insn", "insn1", "vliw_start", "prologue_end_note",
20722 "last_insn_in_packet".
20724 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20726 * shrink-wrap.h (active_insn_between): Strengthen both params from
20728 * function.c (active_insn_between): Likewise.
20730 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20732 * genattr.c (main): When writing out insn-attr.h, strengthen param
20733 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
20734 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
20735 writing out the definition of dfa_clear_single_insn_cache to the
20736 generated insn-automata.c
20738 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20740 * resource.h (clear_hashed_info_for_insn): Strengthen param from
20742 (incr_ticks_for_insn): Likewise.
20743 (init_resource_info): Likewise.
20745 * resource.c (init_resource_info): Likewise.
20746 (clear_hashed_info_for_insn): Likewise.
20747 (incr_ticks_for_insn): Likewise.
20749 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
20751 (steal_delay_list_from_target): Use methods of "seq".
20752 (try_merge_delay_insns): Use methods of "merged_insns".
20753 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
20754 (reorg_redirect_jump): Likewise for param "jump".
20756 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20758 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
20760 * config/s390/s390.c (s390_split_branches): Eliminate top-level
20761 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
20763 (s390_mainpool_finish): In three places, split out a local rtx
20764 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
20765 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
20766 and split another local rtx "insn" out into rtx "pat" and
20768 * config/sh/sh.c (output_branchy_insn): Rather than working
20769 directly on operands[9], introduce local rtx_code_label *
20770 variables named "lab" in two places, working on them, and then
20771 assigning them to operands[9], so that the intervening operations
20772 are known by the type system to be on insns.
20774 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20776 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
20779 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
20780 in invocation of INSN_HAS_LOCATION.
20782 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20784 * config/rs6000/altivec.h (vec_xl): New #define.
20785 (vec_xst): Likewise.
20786 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
20787 (XXSPLTD_V2DI): Likewise.
20788 (DIV_V2DI): Likewise.
20789 (UDIV_V2DI): Likewise.
20790 (MUL_V2DI): Likewise.
20791 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20792 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
20793 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
20794 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
20795 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
20796 (UNSPEC_VSX_DIVSD): Likewise.
20797 (UNSPEC_VSX_DIVUD): Likewise.
20798 (UNSPEC_VSX_MULSD): Likewise.
20799 (vsx_mul_v2di): New insn-and-split.
20800 (vsx_div_v2di): Likewise.
20801 (vsx_udiv_v2di): Likewise.
20802 (vsx_xxspltd_<mode>): New insn.
20804 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20806 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
20808 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
20809 (NEXT_INSN): Likewise.
20810 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
20811 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
20813 (no_labels_between_p): Likewise for both params.
20815 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
20816 cast when using NEXT_INSN on operands[2].
20817 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
20818 "insn" from rtx to rtx_insn *, adding a checked cast.
20819 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
20821 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
20823 (arc_text_label): Likewise for param "insn".
20824 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
20826 (arc_ccfsm_record_condition): Likewise for param "jump".
20827 (arc_text_label): Likewise for local "label".
20828 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
20829 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
20830 a method for typesafety. Add a checked cast.
20831 * config/arc/constraints.md (Clb): Add a checked cast when getting
20832 the CODE_LABEL from a LABEL_REF.
20833 * config/arm/arm.c (require_pic_register): Strengthen locals
20834 "seq", "insn" from rtx to rtx_insn *.
20835 (create_fix_barrier): Likewise for locals "selected", "next".
20836 (thumb1_reorg): Likewise for locals "prev", "insn".
20837 (arm_expand_prologue): Likewise for local "last".
20838 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
20840 (thumb2_output_casesi): Likewise for operands[2].
20841 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
20842 strengthen local "insn" from rtx to rtx_insn *.
20843 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
20844 type and param "insn".
20845 (find_prev_insn_start): Likewise.
20846 (hwloop_optimize): Likewise for locals "insn", "last_insn",
20848 (gen_one_bundle): Likewise for loal "t".
20849 (find_load): Likewise for param "insn".
20850 (workaround_speculation): Likewise for locals "insn", "next",
20851 "target", "next_tgt".
20852 * config/c6x/c6x.c (assign_reservations): Likewise for both params
20853 and for locals "insn", "within", "last".
20854 (count_unit_reqs): Likewise for params "head", "tail" and local
20856 (try_rename_operands): Likewise for params "head", "tail".
20857 (reshuffle_units): Likewise for locals "head", "tail", "insn".
20858 (struct c6x_sched_context): Likewise for fields
20859 "last_scheduled_insn", "last_scheduled_iter0".
20860 (init_sched_state): Replace NULL_RTX with NULL.
20861 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
20863 (undo_split_delayed_nonbranch): Likewise for param and for local
20865 (conditionalize_after_sched): Likewise for local "insn".
20866 (bb_earliest_end_cycle): Likewise.
20867 (filter_insns_above): Likewise for locals "insn", "next".
20868 (hwloop_optimize): Remove redundant checked cast.
20869 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
20870 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
20871 NULL_RTX with NULL.
20872 (cris_simple_epilogue): Likewise.
20873 (cris_expand_prologue): Likewise.
20874 (cris_expand_epilogue): Likewise.
20875 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
20876 local "insn" from rtx to rtx_insn *.
20877 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
20878 (struct frv_packet_group): Likewise for the elements within array
20879 fields "insns", "sorted", and for field "nop".
20880 (frv_packet): Likewise for the elements within array field
20882 (frv_add_insn_to_packet): Likewise for param "insn".
20883 (frv_insert_nop_in_packet): Likewise for param "insn" and local
20885 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
20886 (frv_sort_insn_group_1): Likewise for local "insn".
20887 (frv_optimize_membar_local): Likewise.
20888 (frv_align_label): Likewise for locals "x", "last", "barrier",
20890 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
20892 (ia64_sched_init): Likewise for local "insn".
20893 (scheduled_good_insn): Likewise for param "last".
20894 (struct _ia64_sched_context): Likewise for field
20895 "last_scheduled_insn".
20896 (ia64_init_sched_context): Replace NULL_RTX with NULL.
20897 (struct bundle_state): Likewise for field "insn".
20898 (issue_nops_and_insn): Likewise for param "insn".
20899 (get_next_important_insn): Likewise for return type and both
20901 (ia64_add_bundle_selector_before): Likewise for param "insn".
20902 (bundling): Likewise for params "prev_head_insn", "tail" and
20903 locals "insn", "next_insn", "b". Eliminate top-level local rtx
20904 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
20905 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
20906 Strengthen final param from rtx to rtx_insn *.
20907 (iq2000_move_1word): Likewise for second param.
20908 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
20909 param "cur_insn" and local "next_insn".
20910 (iq2000_move_1word): Likewise for param "insn".
20911 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
20912 casts when using NEXT_INSN on operands[1].
20913 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
20914 "insn" from rtx to rtx_insn *.
20915 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
20916 "x", introducing local rtx_insn * "insn" for when working with the
20917 CODE_LABEL of the LABEL_REF.
20918 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
20920 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
20922 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
20924 (conditionalize_block): Likewise for return type and param.
20925 (mcore_is_dead): Likewise for param "first" and local "insn".
20926 (emit_new_cond_insn): Likewise for return type.
20927 (conditionalize_block): Likewise for return type, param, and
20928 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
20930 (conditionalize_optimization): Likewise for local "insn".
20931 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
20933 * config/microblaze/microblaze.md: Add checked casts when using
20935 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
20936 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
20937 and rtx_insn * "insn".
20938 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
20939 checked cast when using NEXT_INSN on operands[2].
20940 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
20941 local "insn" from rtx to rtx_insn *.
20942 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
20944 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
20945 Add a checked cast when using NEXT_INSN on operands[1].
20946 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
20948 (pa_output_cbranch): Likewise for final param.
20949 (pa_output_lbranch): Likewise for second param.
20950 (pa_output_bb): Likewise for third param.
20951 (pa_output_bvb): Likewise.
20952 (pa_output_dbra): Likewise for second param.
20953 (pa_output_movb): Likewise.
20954 (pa_output_parallel_movb): Likewise.
20955 (pa_output_parallel_addb): Likewise.
20956 (pa_output_millicode_call): Likewise for first param.
20957 (pa_output_mul_insn): Likewise for second param.
20958 (pa_output_div_insn): Likewise for third param.
20959 (pa_output_mod_insn): Likewise for second param.
20960 (pa_jump_in_call_delay): Likewise for param.
20961 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
20962 (pa_output_div_insn): Likewise.
20963 (pa_output_mod_insn): Likewise.
20964 (pa_output_cbranch): Likewise.
20965 (pa_output_lbranch): Likewise.
20966 (pa_output_bb): Likewise.
20967 (pa_output_bvb): Likewise.
20968 (pa_output_dbra): Likewise.
20969 (pa_output_movb): Likewise.
20970 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
20971 to simplify and for typesafety.
20972 (pa_output_call): Use method of rtx_sequence *.
20973 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
20974 (pa_jump_in_call_delay): Likewise.
20975 (pa_output_parallel_movb): Likewise.
20976 (pa_output_parallel_addb): Likewise.
20977 (pa_following_call): Likewise.
20978 (pa_combine_instructions): Likewise for locals "anchor",
20980 (pa_can_combine_p): Likewise for params "anchor", "floater" and
20981 locals "start", "end".
20982 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
20983 param "insn" and local "local_insn".
20984 (picochip_final_prescan_insn): Likewise for local "local_insn".
20985 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
20987 (uses_TOC): Likewise.
20988 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
20989 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
20990 splitting out to more tightly-scoped locals, 3 as rtx and one as
20992 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
20994 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
20996 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
20998 (fixup_addr_diff_vecs): Likewise.
20999 (reg_unused_after): Likewise for param 2.
21000 (sh_can_redirect_branch): Likewise for both params.
21001 (check_use_sfunc_addr): Likewise for param 1.
21002 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
21003 (find_barrier): Likewise for local "last_got".
21004 (gen_block_redirect): Likewise for return type, param "jump" and
21005 locals "prev", "scan", "next", "insn".
21006 (struct far_branch): Likewise for fields "near_label",
21007 "insert_place", "far_label".
21008 (gen_far_branch): Likewise for local "jump".
21009 (fixup_addr_diff_vecs): Likewise for param "first" and locals
21011 (barrier_align): Likewise for param and for locals "prev", "x".
21012 Introduce local rtx_sequence * "prev_seq" and use insn method for
21013 typesafety and clarity.
21014 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
21015 (get_dest_uid): Likewise for local "dest".
21016 (split_branches): Likewise for locals "next", "beyond", "label",
21017 "block", "far_label". Add checked casts when assigning to
21018 bp->far_label and "far_label".
21019 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
21020 (sequence_insn_p): Likewise.
21021 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
21022 more loop-scoped rtx "insn" when walking LABEL_REFS.
21023 (sh_can_redirect_branch): Strengthen both params from rtx to
21025 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
21026 new local rtx_sequence * "seq" via a dyn_cast, and use a method
21027 for clarity and typesafety.
21028 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
21029 "insn" from rtx to rtx_insn *.
21030 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
21031 when using NEXT_INSN on the CODE_LABEL in operands[2].
21032 (define_insn "casesi_worker_2"): Likewise.
21033 (define_insn "casesi_shift_media"): Likewise.
21034 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
21036 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
21037 Strengthen field "insn" from rtx to rtx_insn *.
21038 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
21039 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
21040 param "start_insn" and local "start_insn".
21041 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
21043 (find_set_of_reg_bb): Likewise for param "insn".
21044 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
21045 (trace_reg_uses): Likewise for param "start_insn".
21046 (sh_treg_combine::cbranch_trace): Likewise for field
21048 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
21050 (sh_treg_combine::record_set_of_reg): Likewise for param
21051 "start_insn" and local "i".
21052 (sh_treg_combine::can_remove_cstore): Likewise for local
21054 (sh_treg_combine::try_optimize_cbranch): Likewise for param
21056 (sh_treg_combine::execute): Likewise for local "i".
21057 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
21059 (sparc_check_64): Likewise for second param.
21060 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
21061 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
21062 dyn_cast, using its insn method for typesafety and clarity.
21063 (empty_delay_slot): Strengthen param "insn" from rtx to
21065 (set_extends): Likewise.
21066 (sparc_check_64): Likewise.
21067 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
21068 for locals "seq", "last_insn".
21069 (combine_bnp): Likewise for param "insn".
21070 (xstormy16_reorg): Likewise for local "insn".
21071 * config/v850/v850.c (substitute_ep_register): Likewise for params
21072 "first_insn", "last_insn" and local "insn".
21073 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
21074 elements of "regs" array, and local "insn".
21075 * except.c (emit_note_eh_region_end): Likewise for param "insn".
21076 * final.c (final_sequence): Strengthen this global from rtx to
21078 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
21080 (final_scan_insn): Update assignment to "final_sequence" to be
21081 from "seq", the cast version of "body", for type-safety.
21082 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
21083 "insns" from rtx to rtx_insn *.
21084 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
21085 * genattr.c (main): When writing out generated insn-attr.h,
21086 strengthen params 1 and 3 of eligible_for_delay,
21087 eligible_for_annul_true, eligible_for_annul_false from rtx to
21089 * genattrtab.c (write_eligible_delay): Likewise when writing out
21090 generated insn-attrtab.c; also local "insn" the generated
21092 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
21094 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
21095 "start_label" from rtx to rtx_insn *.
21096 * ira.c (decrease_live_ranges_number): Likewise for local "p".
21097 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
21098 "insns" and local "insn".
21099 (validate_equiv_mem): Likewise for param "start" and local "insn".
21100 (memref_used_between_p): Likewise for params "start", "end" and
21102 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
21104 * loop-doloop.c (doloop_optimize): Within region guarded by
21105 INSN_P (doloop_pat), introduce a new local rtx_insn *
21106 "doloop_insn" via a checked cast, and use it for typesafety,
21107 eventually writing the value back into doloop_pat.
21108 * output.h (final_sequence): Strengthen this global from rtx to
21110 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
21111 reintroducing "insn" as an rtx_insn * via a checked cast.
21112 Strengthen param "attempt" and local "new_insn"from rtx to
21114 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
21116 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
21117 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
21118 "p" in favor of more tightly-scoped replacements, sometimes rtx
21119 and sometimes rtx_insn *, as appropriate.
21120 (delete_output_reload): Eliminate top-level rtx "i1", splitting
21121 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
21122 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
21123 local "trial" from rtx to rtx_insn *.
21124 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
21125 rtx to rtx_insn *. Strenghten local "pat" from rtx to
21126 rtx_sequence * and use methods for clarity and typesafety.
21127 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
21128 rtx to rtx_insn *. Strenghten local "li" from rtx to
21129 rtx_insn_list * and use its methods for clarity and typesafety.
21130 (steal_delay_list_from_target): Strengthen param "insn" from rtx
21132 (steal_delay_list_from_fallthrough): Likewise.
21133 (try_merge_delay_insns): Likewise for param "thread" and locals
21134 "trial", "next_trial", "delay_insn".
21135 (redundant_insn): Likewise for param "target" and local "trial".
21136 (own_thread_p): Likewise for param "thread" and locals
21137 "active_insn", "insn".
21138 (get_label_before): Likewise for param "insn".
21139 (fill_simple_delay_slots): Likewise for local "new_label"; use
21140 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
21141 (label_before_next_insn): Strengthen return type and local "insn"
21142 from rtx to rtx_insn *.
21143 (relax_delay_slots): Likewise for locals "other", "tmp".
21144 (make_return_insns): Likewise for param "first" and locals "insn",
21145 "jump_insn", "prev". Move declaration of "pat" to its assignment
21146 and strengthen from rtx to rtx_sequence *. Use its methods for
21147 clarity and typesafety.
21148 * rtlanal.c (no_labels_between_p): Strengthen params from
21149 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
21151 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
21152 from const_rtx to const rtx_insn *.
21153 (reg_set_between_p): Rename param "from_insn" to
21154 "uncast_from_insn", and reintroduce "from_insn" as a
21155 const rtx_insn * via a checked cast.
21156 (modified_between_p): Likewise for param "start" as "uncast_start".
21157 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
21158 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
21159 "tmp", head" from rtx to rtx_insn *.
21160 (recompute_rev_top_order): Likewise for local "insn".
21161 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
21162 * store-motion.c (build_store_vectors): Likewise for local "insn".
21163 Strengthen local "st" from rtx to rtx_insn_list * and use methods
21164 for clarity and typesafety.
21165 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
21167 (computation_cost): Likewise for local "seq".
21168 (get_address_cost): Likewise.
21170 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21172 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
21174 (label_is_jump_target_p): Likewise for second param.
21176 * rtlanal.c (tablejump_p): Likewise for param "insn".
21177 (label_is_jump_target_p): Likewise for param "jump_insn".
21179 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21181 * rtl.h (find_first_parameter_load): Strengthen return type and
21182 both params from rtx to rtx_insn *.
21183 * rtlanal.c (find_first_parameter_load): Strengthen return type,
21184 both params and locals "before", "first_set" from rtx to
21185 rtx_insn *. Remove now-redundant cast.
21186 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
21188 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21190 * rtl.h (find_last_value): Delete.
21191 * rtlanal.c (find_last_value): Delete.
21193 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21195 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
21196 from rtx to rtx_insn *.
21197 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
21198 rtx "note" with new local rtx_insn * "new_head" when calculating
21199 head insn of new basic block.
21200 * combine.c (combine_split_insns): Strengthen return type and local
21201 "ret" from rtx to rtx_insn *.
21202 (likely_spilled_retval_p): Likewise for locals "use" and "p".
21203 (try_combine): Eliminate local "m_split", splitting into new
21204 locals "m_split_insn" and "m_split_pat".
21205 (find_split_point): Strengthen local "seq" from rtx into
21207 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
21208 locals "label", "branch".
21209 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
21211 (define_expand "umulsi3_highpart"): Likewise for local "insn".
21212 * dse.c (note_add_store_info): Likewise for fields "first",
21214 (note_add_store): Likewise for local "insn".
21215 (emit_inc_dec_insn_before): Likewise for locals "insn",
21217 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
21218 (replace_read): Likewise for locals "insns", "this_insn".
21219 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
21220 (notice_eh_throw): Likewise for param "insn".
21221 (before_next_cfi_note): Likewise for return type, param, and local
21223 (connect_traces): Likewise for local "note".
21224 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
21225 (verify_rtl_sharing): Likewise.
21226 (unshare_all_rtl_in_chain): Likewise for param "insn".
21227 (get_first_nonnote_insn): Likewise for local "insn".
21228 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
21229 "seq" and use its methods to clarify things.
21230 (next_insn): Strengthen return type from rtx to rtx_insn *.
21231 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
21232 local rtx_insn * using a checked cast, dropping a checked cast
21233 made redundant by this change. Use a cast to and method of
21234 rtx_sequence to clarify the code.
21235 (previous_insn): Rename param "insn" to "uncast_insn" and
21236 reintroduce "insn" as a local rtx_insn * using a checked cast,
21237 dropping a checked cast made redundant by this change. Use a cast
21238 to and method of rtx_sequence to clarify the code.
21239 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
21240 reintroduce "insn" as a local rtx_insn * using a checked cast,
21241 dropping a checked cast made redundant by this change.
21242 (next_nonnote_insn_bb): Likewise.
21243 (prev_nonnote_insn): Likewise.
21244 (prev_nonnote_insn_bb): Likewise.
21245 (next_nondebug_insn): Likewise.
21246 (prev_nondebug_insn): Likewise.
21247 (next_nonnote_nondebug_insn): Likewise.
21248 (prev_nonnote_nondebug_insn): Likewise.
21249 (next_real_insn): Likewise.
21250 (prev_real_insn): Likewise.
21251 (next_active_insn): Likewise.
21252 (prev_active_insn): Likewise.
21253 (next_cc0_user): Likewise. Use rtx_sequence and a method for
21255 (prev_cc0_setter): Likewise.
21256 (try_split): Rename param "trial" to "uncast_trial" and
21257 reintroduce "insn" as a local rtx_insn * using a checked cast,
21258 dropping checked casts made redundant by this change.
21259 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
21261 (remove_insn): Rename param "insn" to "uncast_insn" and
21262 reintroduce "insn" as a local rtx_insn * using a checked cast.
21263 (emit_pattern_after_setloc): Likewise for param "after", as
21265 (emit_pattern_after): Likewise. Strengthen local "prev" from
21267 (emit_pattern_before_setloc): Rename param "before" to
21268 "uncast_before" and reintroduce "before" as a local rtx_insn *
21269 using a checked cast. Strengthen locals "first", "last" from
21271 (emit_pattern_before): Likewise rename/cast param "before" to
21272 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
21273 * except.c (copy_reg_eh_region_note_forward): Strengthen param
21274 "first" and local "insn" from rtx to rtx_insn *.
21275 (copy_reg_eh_region_note_backward): Likewise for param "last"
21277 * expr.c (fixup_args_size_notes): Rename param "last" to
21278 "uncast_last" and reintroduce "last" as a local rtx_insn *
21279 using a checked cast. Strengthen local "insn" from rtx to
21281 * function.c (set_insn_locations): Strengthen param "insn" from
21283 (record_insns): Likewise for param "insns" and local "tmp".
21284 (active_insn_between): Rename param "tail" to
21285 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
21286 using a checked cast.
21287 (thread_prologue_and_epilogue_insns): Split out top-level local
21288 rtx "seq" into three different rtx_insn * locals. Strengthen
21289 local "prologue_seq" from rtx to rtx_insn *.
21290 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
21291 from rtx to rtx_insn *.
21292 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21293 (priority): Likewise for locals "prev_first", "twin".
21294 (setup_insn_max_reg_pressure): Likewise for param "after".
21295 (sched_setup_bb_reg_pressure_info): Likewise.
21296 (no_real_insns_p): Strengthen params from const_rtx to
21298 (schedule_block): Strengthen local "next_tail" from rtx to
21300 * ifcvt.c (find_active_insn_before): Strengthen return type and
21301 param "insn" from rtx to rtx_insn *.
21302 (find_active_insn_after): Likewise.
21303 (cond_exec_process_insns): Likewise for param "start" and local "insn".
21304 (cond_exec_process_if_block): Likewise for locals "then_start",
21305 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
21306 (noce_process_if_block): Likewise for local "jump".
21307 (merge_if_block): Likewise for two locals named "end".
21308 (cond_exec_find_if_block): Likewise for local "last_insn".
21309 * jump.c (delete_related_insns): Rename param "insn" to
21310 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
21311 checked cast. Strengthen local "p" from rtx to rtx_insn *.
21312 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
21314 (split_reg): Likewise.
21315 * lra.c (lra_process_new_insns): Likewise.
21316 * modulo-sched.c (permute_partial_schedule): Strengthen param
21317 "last" from rtx to rtx_insn *.
21318 * optabs.c (add_equal_note): Likewise for param "insns" and local
21320 (expand_binop_directly): Add checked casts to rtx_insn * within
21321 NEXT_INSN (pat) uses.
21322 (expand_unop_direct): Likewise.
21323 (maybe_emit_unop_insn): Likewise.
21324 * recog.c (peep2_attempt): Strengthen locals "last",
21325 "before_try", "x" from rtx to rtx_insn *.
21326 * reorg.c (optimize_skip): Strengthen return type and local
21327 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
21328 and locals "trial", "next_trial" from rtx to rtx_insn *.
21329 * resource.c (next_insn_no_annul): Strengthen return type and
21330 param "insn" from rtx to rtx_insn *. Use a cast to and method of
21331 rtx_sequence to clarify the code.
21332 (mark_referenced_resources): Add a checked cast to rtx_insn *
21333 within PREV_INSN (x).
21334 (find_dead_or_set_registers): Strengthen return type, param
21335 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
21336 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
21338 (mark_target_live_regs): Strengthen params "insns" and "target",
21339 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
21340 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
21342 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
21343 from rtx to rtx_insn *.
21344 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
21345 from rtx to rtx_insn *.
21346 (copy_reg_eh_region_note_backward): Likewise.
21347 (unshare_all_rtl_in_chain): Likewise for sole param.
21348 (dump_rtl_slim): Strengthen second and third params from const_rtx
21349 to const rtx_insn *.
21350 * sched-deps.c (sched_free_deps): Strengthen params "head" and
21351 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
21352 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
21353 "next_tail" from rtx to rtx_insn *.
21354 (begin_move_insn): Likewise for local "next".
21355 * sched-int.h (sched_free_deps): Likewise for first and second
21357 (no_real_insns_p): Strengthen both params from const_rtx to
21359 (sched_setup_bb_reg_pressure_info): Strengthen second params from
21361 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
21363 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
21364 and locals "insn", "tail" from const_rtx to const rtx_insn *.
21365 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
21367 (debug_rtl_slim): Strengthen params "first" and "last" from
21368 const_rtx to const rtx_insn *.
21369 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
21370 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
21371 (convert_to_simple_return): Likewise for param "returnjump".
21372 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
21374 (convert_to_simple_return): Likewise for param "returnjump".
21375 * valtrack.c (propagate_for_debug): Likewise for params
21377 * valtrack.h (propagate_for_debug): Likewise for second param.
21379 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21381 * output.h (insn_current_reference_address): Strengthen param
21382 from rtx to rtx_insn *.
21383 * final.c (insn_current_reference_address): Likewise.
21385 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21387 * basic-block.h (inside_basic_block_p): Strengthen param from
21388 const_rtx to const rtx_insn *.
21389 * cfgbuild.c (inside_basic_block_p): Likewise.
21391 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21393 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
21395 (get_trace_info): Likewise for param "insn".
21396 (save_point_p): Likewise.
21397 (maybe_record_trace_start): Likewise for both params.
21398 (maybe_record_trace_start_abnormal): Likewise.
21399 (create_trace_edges): Likewise for sole param and for three of the
21400 locals named "lab".
21401 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
21402 to rtx_insn *, and update a call to pat->element to pat->insn.
21404 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21406 * function.h (struct expr_status): Convert field "x_forced_labels"
21407 from rtx_expr_list * to rtx_insn_list *.
21409 * cfgbuild.c (make_edges): Convert local "x" from an
21410 rtx_expr_list * to an rtx_insn_list *, replacing use of
21411 "element" method with "insn" method.
21412 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21413 * except.c (sjlj_emit_dispatch_table): Replace use of
21414 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
21416 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
21417 rtx_expr_list * to an rtx_insn_list *, replacing use of
21418 "element" method with "insn" method.
21419 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21420 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
21421 rtx_insn *, adding a checked cast. Replace use of
21422 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
21424 (expand_label): Likewise for local "label_r".
21426 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21428 * function.h (struct rtl_data): Convert field
21429 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
21431 * rtl.h (remove_node_from_insn_list): New prototype.
21433 * builtins.c (expand_builtin): When prepending to
21434 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21436 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
21437 to rtx_insn_list *, and use its "insn" method rather than
21439 * cfgrtl.c (delete_insn): Use new function
21440 remove_node_from_insn_list rather than
21441 remove_node_from_expr_list.
21442 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
21443 to rtx_insn_list *, and use its "insn" method rather than
21445 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21446 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21447 * rtlanal.c (remove_node_from_insn_list): New function, adapted
21448 from remove_node_from_expr_list.
21449 * stmt.c (expand_label): When prepending to
21450 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21453 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21455 * function.h (struct rtl_data): Strengthen fields "x_return_label"
21456 and "x_naked_return_label" from rtx to rtx_code_label *.
21458 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21460 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
21461 (SET_NEXT_INSN): Likewise.
21462 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
21464 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
21465 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
21466 to split out the SEQUENCE from local "bundle", strengthening the
21467 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
21468 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
21469 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
21470 and the type of the elements of the "slot" array from rtx to
21472 (reorg_split_calls): Likewise for locals "insn" and "next", and
21473 the type of the elements of the "slot" array.
21475 * config/frv/frv.c (frv_nops): Likewise for the elements of this
21477 (frv_function_prologue): Likewise for locals "insn", "next",
21479 (frv_register_nop): Introduce a local "nop_insn" to be the
21480 rtx_insn * containing rtx "nop".
21482 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
21483 used as an insn and sometimes as a pattern, so rename it to
21484 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
21485 using it where dealing with the core insn.
21487 * config/picochip/picochip.c (reorder_var_tracking_notes):
21488 Strengthen locals "insn", "next", "last_insn", "queue",
21489 "next_queue", "prev" from rtx to rtx_insn *.
21491 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
21492 the second param is an rtx_insn ** rather than an rtx **.
21493 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
21494 from rtx to rtx_sequence *, and introduce local named "sequence",
21495 using methods of rtx_sequence to clarify the code.
21496 (remove_insn): Introduce local rtx_sequence * named "sequence" and
21498 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
21499 Rename param "after" to "uncast_after", reintroducing "after" as a
21500 local rtx_insn * with a checked cast.
21501 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
21502 reintroducing "after" as a local rtx_insn * with a checked cast.
21503 Strengthen local "last" from rtx to rtx_insn * and remove the
21504 now-redundant checked casts.
21505 (copy_delay_slot_insn): Strengthen return type and param from rtx
21508 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
21509 "last" from rtx to rtx_insn *.
21511 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21513 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
21514 param from rtx to rtx_insn *.
21516 * emit-rtl.c (copy_delay_slot_insn): Likewise.
21518 * reorg.c (skip_consecutive_labels): Strengthen return type, param
21519 and local "insn" from rtx to rtx_insn *.
21520 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
21521 (unfilled_slots_next): Likewise.
21522 (function_return_label): Strengthen from rtx to rtx_code_label *.
21523 (function_simple_return_label): Likewise.
21524 (first_active_target_insn): Strengthen return type and param from
21526 (find_end_label): Strengthen return type from rtx to
21527 rtx_code_label *; strengthen locals as appropriate.
21528 (emit_delay_sequence): Strengthen return type, param "insn" and
21529 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
21530 and local "li" from rtx to rtx_insn_list *, using methods of
21531 rtx_insn_list for clarity and typesafety.
21532 (add_to_delay_list): Strengthen return type and param "insn" from
21533 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
21534 rtx_insn_list * and use methods of rtx_insn_list.
21535 (delete_from_delay_slot): Strengthen return type, param "insn",
21536 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
21537 Strengthen local "seq" from rtx to rtx_sequence *, and local
21538 "delay_list" from rtx to rtx_insn_list *, using methods of
21539 rtx_sequence for clarity and type-safety.
21540 (delete_scheduled_jump): Add checked cast when invoking
21541 delete_from_delay_slot. Strengthen local "trial" from rtx to
21543 (optimize_skip): Strengthen return type and local "delay_list"
21544 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
21546 (steal_delay_list_from_target): Strengthen return type, param
21547 "delay_list" and local "new_delay_list" from rtx to
21548 rtx_insn_list *. Strengthen param "seq" from rtx to
21549 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
21551 Split out local "temp" into multiple more-tightly scoped locals:
21552 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
21553 of rtx_insn_list and rtx_sequence for clarity and typesafety.
21554 Strengthen locals named "trial" from rtx to rtx_insn *.
21555 (steal_delay_list_from_fallthrough): Strengthen return type and
21556 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
21557 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
21558 Strengthen local "trial" from rtx to rtx_insn *.
21559 (try_merge_delay_insns): Strength local "merged_insns" from rtx
21560 to rtx_insn_list * and use its methods. Strengthen local "pat"
21561 from rtx to rtx_sequence * and use its methods. Strengthen locals
21562 "dtrial" and "new_rtx" from rtx to rtx_insn *.
21563 (get_label_before): Strengthen return type and local "label" from
21565 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
21566 "next_trial", "next", prev". Strengthen local "delay_list" from
21567 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
21569 (follow_jumps): Strengthen return type, param "label" and locals
21570 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
21571 (fill_slots_from_thread): Strengthen return type, param
21572 "delay_list" from rtx to rtx_insn_list *. Strengthen params
21573 "insn", "thread", "opposite_thread" and locals "new_thread",
21574 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
21575 "sequence" from a checked cast to rtx_sequence so that we can call
21576 steal_delay_list_from_target and steal_delay_list_from_fallthrough
21577 with an rtx_sequence *.
21578 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
21579 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
21580 Strengthen local "delay_list" from rtx to rtx_insn_list *.
21581 (relax_delay_slots): Strengthen param "first" and locals "insn",
21582 "next", "trial", "delay_insn", "target_label" from rtx to
21583 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
21584 Introduce a local "trial_seq" for PATTERN (trial) of type
21585 rtx_sequence *, in both cases using methods of rtx_sequence.
21586 (dbr_schedule): Strengthen param "first" and locals "insn",
21587 "next", "epilogue_insn" from rtx to rtx_insn *.
21589 2014-08-28 Richard Biener <rguenther@suse.de>
21591 PR tree-optimization/62283
21592 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21593 Do not peel loops for alignment where the vector loop likely
21594 doesn't run at least VF times.
21596 2014-08-28 Bin Cheng <bin.cheng@arm.com>
21598 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
21599 important_candidates. Consider all important candidates if
21600 IVS doesn't give any result. Remove check on ivs->upto.
21601 (try_add_cand_for): Call iv_ca_add_use only once.
21603 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21604 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21605 Anna Tikhonova <anna.tikhonova@intel.com>
21606 Ilya Tocar <ilya.tocar@intel.com>
21607 Andrey Turetskiy <andrey.turetskiy@intel.com>
21608 Ilya Verbin <ilya.verbin@intel.com>
21609 Kirill Yukhin <kirill.yukhin@intel.com>
21610 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21612 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
21613 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
21615 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21616 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21617 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21618 (define_insn "*mul<mode>3"): Add EVEX version.
21620 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21621 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21622 Anna Tikhonova <anna.tikhonova@intel.com>
21623 Ilya Tocar <ilya.tocar@intel.com>
21624 Andrey Turetskiy <andrey.turetskiy@intel.com>
21625 Ilya Verbin <ilya.verbin@intel.com>
21626 Kirill Yukhin <kirill.yukhin@intel.com>
21627 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21629 * config/i386/sse.md
21630 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
21631 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
21632 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
21633 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
21634 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
21635 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
21636 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
21637 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
21638 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
21639 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
21640 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
21641 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
21642 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
21643 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
21644 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
21645 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"):
21648 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21649 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21650 Anna Tikhonova <anna.tikhonova@intel.com>
21651 Ilya Tocar <ilya.tocar@intel.com>
21652 Andrey Turetskiy <andrey.turetskiy@intel.com>
21653 Ilya Verbin <ilya.verbin@intel.com>
21654 Kirill Yukhin <kirill.yukhin@intel.com>
21655 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21657 * config/i386/sse.md
21658 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
21659 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
21660 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
21662 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21663 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21664 Anna Tikhonova <anna.tikhonova@intel.com>
21665 Ilya Tocar <ilya.tocar@intel.com>
21666 Andrey Turetskiy <andrey.turetskiy@intel.com>
21667 Ilya Verbin <ilya.verbin@intel.com>
21668 Kirill Yukhin <kirill.yukhin@intel.com>
21669 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21671 * config/i386/sse.md
21672 (define_mode_iterator VI128_256): New.
21673 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
21675 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21676 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21677 Anna Tikhonova <anna.tikhonova@intel.com>
21678 Ilya Tocar <ilya.tocar@intel.com>
21679 Andrey Turetskiy <andrey.turetskiy@intel.com>
21680 Ilya Verbin <ilya.verbin@intel.com>
21681 Kirill Yukhin <kirill.yukhin@intel.com>
21682 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21684 * config/i386/sse.md
21685 (define_mode_iterator VI8_256_512): New.
21686 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
21688 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21689 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
21691 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
21693 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21695 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
21696 pointer to the cumulative reloc value and return the value for
21697 this reloc instead.
21698 (compute_reloc_for_rtx): Take a const_rtx. Call
21699 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
21700 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
21701 for_each_rtx for the CONST case.
21703 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21705 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
21706 (mark_constants_in_pattern): ...this new function to iterate over
21708 (mark_constants): Update accordingly.
21710 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21712 * varasm.c: Include rtl-iter.h.
21713 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
21714 Remove the pointer to the cumulative hashval_t and just return
21715 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
21716 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21717 Accumulate the hashval_ts here instead of const_rtx_hash_1.
21719 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21721 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
21722 Give real type of data parameter. Remove return value.
21723 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
21724 to iterate over subrtxes.
21726 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21728 * var-tracking.c (use_narrower_mode_test): Turn from being a
21729 for_each_rtx callback to being a function that examines each
21731 (adjust_mems): Update accordingly.
21733 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21735 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
21736 callback to being a function that examines each subrtx itself.
21737 Remove handling of null rtxes.
21738 (add_uses): Update accordingly.
21740 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21742 * var-tracking.c: Include rtl-iter.h.
21743 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
21744 to being a function that examines each subrtx itself.
21745 (use_type): Update accordingly.
21747 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21749 * store-motion.c: Include rtl-iter.h.
21750 (extract_mentioned_regs_1): Delete.
21751 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
21752 for_each_rtx to iterate over subrtxes.
21754 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21756 * sel-sched.c: Include rtl-iter.h
21757 (count_occurrences_1): Delete.
21758 (count_occurrences_equiv): Turn rtxes into const_rtxes.
21759 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21761 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21763 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
21764 * rtlanal.c (tls_referenced_p_1): Delete.
21765 (tls_referenced_p): Take a const_rtx rather than an rtx.
21766 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21768 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21770 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
21771 (for_each_inc_dec): Take an rtx rather than an rtx *.
21772 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
21773 (cselib_record_sets): Likewise.
21774 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
21775 (check_for_inc_dec): Likewise.
21776 * rtlanal.c (for_each_inc_dec_ops): Delete.
21777 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
21778 rather than a pointer to the memory address. Replace
21779 for_each_inc_dec_ops argument with separate function and data
21780 arguments. Abort on non-autoinc addresses.
21781 (for_each_inc_dec_find_mem): Delete.
21782 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
21783 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
21785 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21787 * rtl.h (find_all_hard_regs): Declare.
21788 * rtlanal.c (find_all_hard_regs): New function.
21789 (record_hard_reg_uses_1): Delete.
21790 (record_hard_reg_uses): Use find_all_hard_regs.
21792 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21794 * rtl.h (replace_label_data): Delete.
21795 (replace_label): Take the old label, new label and update-nuses flag
21796 as direct arguments. Return void.
21797 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
21798 * rtlanal.c (replace_label): Update interface as above. Handle
21799 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
21800 iterator. Use FOR_EACH_SUBRTX_PTR.
21802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21804 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
21805 with const_rtx parameters.
21806 * varasm.c (get_pool_constant): Likewise.
21807 * rtlanal.c (rtx_referenced_p_1): Delete.
21808 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21809 Assert that the rtx we're looking for is nonnull. Allow searches
21810 for constant pool SYMBOL_REFs.
21812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21814 * reload1.c: Include rtl-iter.h.
21815 (note_reg_elim_costly): Turn from being a for_each_rtx callback
21816 to being a function that examines each subrtx itself.
21817 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
21819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21821 * regcprop.c (cprop_find_used_regs_1): Delete.
21822 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21824 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21826 * regcprop.c: Include rtl-iter.h.
21827 (kill_value): Take a const_rtx.
21828 (kill_autoinc_value): Turn from being a for_each_rtx callback
21829 to being a function that examines each subrtx itself.
21830 (copyprop_hardreg_forward_1): Update accordingly.
21832 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21834 * reg-stack.c: Include rtl-iter.h.
21835 (subst_stack_regs_in_debug_insn): Delete.
21836 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
21837 instead of for_each_rtx.
21839 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21841 * lower-subreg.c (find_decomposable_subregs): Turn from being
21842 a for_each_rtx callback to being a function that examines each
21843 subrtx itself. Remove handling of null rtxes.
21844 (decompose_multiword_subregs): Update accordingly.
21846 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21848 * lower-subreg.c (adjust_decomposed_uses): Delete.
21849 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
21850 Remove handling of null rtxes.
21852 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21854 * lower-subreg.c: Include rtl-iter.h.
21855 (resolve_subreg_use): Turn from being a for_each_rtx callback
21856 to being a function that examines each subrtx itself. Remove
21857 handling of null rtxes.
21858 (resolve_reg_notes, resolve_simple_move): Update accordingly.
21859 (decompose_multiword_subregs): Likewise.
21861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21863 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
21864 to being a function that examines each subrtx itself.
21865 (simplify_using_condition, simplify_using_initial_values): Update
21868 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21870 * loop-iv.c: Include rtl-iter.h.
21871 (find_single_def_src): New function.
21872 (replace_single_def_regs): Turn from being a for_each_rtx callback
21873 to being a function that examines each subrtx itself.
21874 (replace_in_expr, simplify_using_initial_values): Update accordingly.
21876 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21878 * jump.c (eh_returnjump_p_1): Delete.
21879 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21880 Remove handling of null rtxes.
21882 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21884 * jump.c: Include rtl-iter.h.
21885 (returnjump_p_1): Delete.
21886 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21887 Remove handling of null rtxes.
21889 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21891 * ira.c: Include rtl-iter.h.
21892 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
21893 to being a function that examines each subrtx itself. Remove
21894 handling of null rtxes.
21895 (update_equiv_regs): Update call accordingly.
21897 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21899 * fwprop.c: Include rtl-iter.h.
21900 (varying_mem_p): Turn from being a for_each_rtx callback to being
21901 a function that examines each subrtx itself.
21902 (propagate_rtx): Update accordingly.
21904 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21906 * function.c: Include rtl-iter.h
21907 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
21908 callback to being a function that examines each subrtx itself.
21909 Return the changed flag.
21910 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
21911 (instantiate_virtual_regs): Update calls accordingly.
21913 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21915 * final.c: Include rtl-iter.h.
21916 (mark_symbol_ref_as_used): Delete.
21917 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
21920 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21922 * emit-rtl.c: Include rtl-iter.h.
21923 (find_auto_inc): Turn from being a for_each_rtx callback to being
21924 a function that examines each subrtx itself. Assume the first operand
21925 to an RTX_AUTOINC is the automodified register.
21926 (try_split): Update call accordingly.
21928 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21930 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
21931 Return a bool, inverting the result so that 0/false means "not ok".
21932 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
21933 subrtxes of a CONST.
21934 (mem_loc_descriptor, add_const_value_attribute)
21935 (resolve_addr_in_expr): Update calls accordingly.
21937 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21939 * dwarf2out.c: Include rtl-iter.h.
21940 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
21941 Remove unused data parameter. Return a bool, inverting the result
21942 so that 0/false means "not ok".
21943 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
21944 instead of for_each_rtx.
21946 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21948 * dse.c: Include rtl-iter.h.
21949 (check_mem_read_rtx): Change void * parameter to real type.
21950 Remove return value.
21951 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
21952 for_each_rtx. Don't handle null rtxes.
21954 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21956 * df-problems.c: Include rtl-iter.h.
21957 (find_memory): Turn from being a for_each_rtx callback to being
21958 a function that examines each subrtx itself. Continue to look for
21959 volatile references even after a nonvolatile one has been found.
21960 (can_move_insns_across): Update calls accordingly.
21962 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21964 * ddg.c (walk_mems_2, walk_mems_1): Delete.
21965 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
21966 to iterate over subrtxes. Return a bool rather than an int.
21968 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21970 * ddg.c: Include rtl-iter.h.
21971 (mark_mem_use_1): Rename to...
21972 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
21973 instead of for_each_rtx.
21974 (mem_read_insn_p): Update accordingly.
21976 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21978 * cse.c (change_cc_mode_args): Delete.
21979 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
21980 a function that examines each subrtx itself. Take the fields of
21981 change_cc_mode_args as argument and return void.
21982 (cse_change_cc_mode_insn): Update calls accordingly.
21984 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21986 * cse.c (is_dead_reg): Change argument to const_rtx.
21987 (dead_debug_insn_data): Delete.
21988 (is_dead_debug_insn): Expand commentary. Turn from being a
21989 for_each_rtx callback to being a function that examines
21990 each subrtx itself. Take the fields of dead_debug_insn_data
21992 (delete_trivially_dead_insns): Update call accordingly.
21994 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21996 * cse.c (check_for_label_ref): Move earlier in file. Turn from
21997 being a for_each_rtx callback to being a function that examines
21998 each subrtx itself.
21999 (cse_extended_basic_block): Update call accordingly.
22001 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22003 * cse.c (check_dependence_data): Delete.
22004 (check_dependence): Change from being a for_each_rtx callback to being
22005 a function that examines all subrtxes itself. Don't handle null rtxes.
22006 (invalidate): Update call accordingly.
22008 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22010 * cse.c: Include rtl-iter.h.
22011 (approx_reg_cost_1): Delete.
22012 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22013 Don't handle null rtxes.
22015 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22017 * cfgcleanup.c: Include rtl-iter.h.
22018 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
22019 to being a function that examines each subrtx itself.
22020 (thread_jump): Update accordingly.
22022 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22024 * combine-stack-adj.c: Include rtl-iter.h.
22025 (record_stack_refs_data): Delete.
22026 (record_stack_refs): Turn from being a for_each_rtx callback
22027 to being a function that examines each subrtx itself.
22028 Take a pointer to the reflist. Invert sense of return value
22029 so that true means success and false means failure. Don't
22031 (combine_stack_adjustments_for_block): Update accordingly.
22033 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22035 * combine.c (record_truncated_value): Turn from being a for_each_rtx
22036 callback to a function that takes an rtx and returns a bool
22037 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
22040 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22042 * combine.c: Include rtl-iter.h.
22043 (unmentioned_reg_p_1): Delete.
22044 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
22045 Don't handle null rtxes.
22047 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22049 * calls.c: Include rtl-iter.h.
22050 (internal_arg_pointer_based_exp_1): Delete.
22051 (internal_arg_pointer_based_exp): Take a const_rtx.
22052 Use FOR_EACH_SUBRTX to iterate over subrtxes.
22054 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22056 * caller-save.c: Include rtl-iter.h.
22057 (add_used_regs_1): Delete.
22058 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
22059 to iterate over subrtxes. Assert that any remaining pseudos
22062 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22064 * bt-load.c: Include rtl-iter.h.
22065 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
22066 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
22067 to iterate over subrtxes.
22068 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
22069 find_btr_use rather than btr_referenced_p.
22071 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22073 * alias.c: Include rtl-iter.h.
22074 (refs_newer_value_cb): Delete.
22075 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22077 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22079 * rtl-iter.h: New file.
22080 * rtlanal.c: Include it.
22081 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
22082 (generic_subrtx_iterator <T>::add_single_to_queue)
22083 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
22084 (generic_subrtx_iterator <T>::free_array): New functions.
22085 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
22086 (generic_subrtx_iterator <const_rtx_accessor>)
22087 (generic_subrtx_iterator <rtx_var_accessor>
22088 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
22089 (setup_reg_subrtx_bounds): New function.
22090 (init_rtlanal): Call it.
22092 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
22095 * config/sh/sh.md (ashlsi3): Handle negative shift count for
22097 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
22099 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
22101 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
22103 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22105 * rtl.h (JUMP_LABEL_AS_INSN): New.
22107 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22109 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
22111 (alloc_EXPR_LIST): Strengthen return type from rtx to
22113 (remove_free_EXPR_LIST_node): Likewise for param.
22114 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
22115 from rtx to rtx_expr_list *.
22116 * sched-int.h (struct deps_desc): Strengthen fields
22117 "pending_read_mems" and "pending_write_mems" from rtx to
22120 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
22121 rtx to rtx_expr_list *.
22122 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
22123 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22125 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
22126 from rtx to rtx_expr_list *.
22127 * loop-iv.c (simplify_using_initial_values): Strengthen local
22128 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
22129 "pnote_next" from rtx * to rtx_expr_list **.
22130 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
22131 param "exprp" from rtx * to rtx_expr_list **.
22132 (add_insn_mem_dependence): Strengthen local "mem_list" from
22133 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
22134 to rtx_expr_list *.
22135 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
22136 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
22137 param "old_mems_p" from rtx * to rtx_expr_list **.
22138 * var-tracking.c (struct adjust_mem_data): Strengthen field
22139 "side_effects" from rtx to rtx_expr_list *.
22140 (adjust_insn): Replace NULL_RTX with NULL when assigning to
22142 (prepare_call_arguments): Likewise.
22144 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22146 * function.h (struct rtl_data): Strengthen field
22147 "x_stack_slot_list" from rtx to rtx_expr_list *.
22149 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
22150 when assigning to stack_slot_list.
22152 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22154 * function.h (struct rtl_data): Strengthen field
22155 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
22156 * rtl.h (remove_node_from_expr_list): Strengthen second param from
22157 rtx * to rtx_expr_list **.
22159 * cfgbuild.c (make_edges): In loop over
22160 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
22161 rtx_expr_list *, and use methods of the latter class to clarify
22163 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
22164 rtx_expr_list *, and use methods of the latter class to clarify
22166 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
22167 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22168 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
22169 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
22170 to rtx_expr_list *. Use methods of the latter class to clarify
22173 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22175 * function.h (struct expr_status): Strengthen field
22176 "x_forced_labels" from rtx to rtx_expr_list *.
22178 * cfgbuild.c (make_edges): Split local "x" into two locals,
22179 strengthening one from rtx to rtx_expr_list *, and using methods
22181 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
22182 loop over forced_labels, introduce strengthen it from rtx to
22183 rtx_expr_list *, using methods to clarify the code.
22184 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
22185 to rtx_expr_list *, using methods of said class to clarify the
22187 * reload1.c (set_initial_label_offsets): Split local "x" into two
22188 per-loop variables, strengthening the first from rtx to
22189 rtx_expr_list * and using methods.
22191 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22193 * coretypes.h (class rtx_expr_list): Add forward declaration.
22194 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
22195 * gengenrtl.c (special_rtx): Add EXPR_LIST.
22196 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
22197 invariant: GET_CODE (X) == EXPR_LIST.
22198 (is_a_helper <rtx_expr_list *>::test): New.
22199 (rtx_expr_list::next): New.
22200 (rtx_expr_list::element): New.
22201 (gen_rtx_EXPR_LIST): New.
22203 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22205 * varasm.c (mark_constants): Convert a GET_CODE check into a
22206 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22207 Use methods of rtx_sequence to clarify the code.
22209 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22211 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22212 local "seq" via a checked cast, and use methods of rtx_sequence
22213 to simplify the code.
22215 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22217 * resource.c (mark_referenced_resources): Strengthen local
22218 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
22219 using methods of rtx_sequence to clarify the code.
22220 (find_dead_or_set_registers): Within the switch statement, convert
22221 a GET_CODE check to a dyn_cast, introducing local "seq". Within
22222 the JUMP_P handling, introduce another local "seq", adding a
22223 checked cast to rtx_sequence *. In both cases, use methods of
22224 rtx_sequence to clarify the code.
22225 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
22226 via a checked cast, and use methods of rtx_sequence to simplify
22229 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22231 * reorg.c (redundant_insn): In two places in the function, replace
22232 a check of GET_CODE with a dyn_cast, introducing local "seq", and
22233 usings methods of rtx_sequence to clarify the code.
22235 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22237 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
22238 local "seq" with a checked cast, and use methods of rtx_sequence
22239 to clarify the code.
22241 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22243 * function.c (contains): Introduce local "seq" for PATTERN (insn),
22244 with a checked cast, in the region for where we know it's a
22245 SEQUENCE. Use methods of rtx_sequence.
22247 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22249 * final.c (get_attr_length_1): Replace GET_CODE check with a
22250 dyn_cast, introducing local "seq" and the use of methods of
22252 (shorten_branches): Likewise, introducing local "body_seq".
22253 Strengthen local "inner_insn" from rtx to rtx_insn *.
22254 (reemit_insn_block_notes): Replace GET_CODE check with a
22255 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22256 Use methods of rtx_sequence.
22257 (final_scan_insn): Likewise, introducing local "seq" for when
22258 "body" is known to be a SEQUENCE, using its methods.
22260 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22262 * except.c (can_throw_external): Strengthen local "seq" from rtx
22263 to rtx_sequence *. Use methods of rtx_sequence.
22264 (insn_nothrow_p): Likewise.
22266 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22268 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
22269 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22270 Use methods of rtx_sequence.
22271 (scan_trace): Likewise for local "pat".
22273 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22275 * coretypes.h (class rtx_sequence): Add forward declaration.
22276 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
22277 invariant: GET_CODE (X) == SEQUENCE.
22278 (is_a_helper <rtx_sequence *>::test): New.
22279 (is_a_helper <const rtx_sequence *>::test): New.
22280 (rtx_sequence::len): New.
22281 (rtx_sequence::element): New.
22282 (rtx_sequence::insn): New.
22284 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22286 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22288 (alloc_INSN_LIST): Strengthen return type from rtx to
22290 (copy_INSN_LIST): Likewise for return type and param.
22291 (concat_INSN_LIST): Likewise for both params and return type.
22292 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
22293 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22294 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
22295 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
22297 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
22298 "implicit_sets", "control_uses", "clobbers" from rtx to
22300 (struct deps_desc): Likewise for fields "pending_read_insns",
22301 "pending_write_insns", "pending_jump_insns",
22302 "last_pending_memory_flush", "last_function_call",
22303 "last_function_call_may_noreturn", "sched_before_next_call",
22304 "sched_before_next_jump".
22305 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
22306 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
22308 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
22309 from rtx to rtx_insn_list *.
22310 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
22313 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
22314 to rtx_insn_list **.
22315 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
22317 (queue_insn): Likewise for local "link".
22318 (struct haifa_saved_data): Strengthen field "insn_queue" from
22319 rtx * to rtx_insn_list **.
22320 (save_backtrack_point): Update allocation of save->insn_queue to
22321 reflect the strengthening of elements from rtx to rtx_insn_list *.
22322 (queue_to_ready): Strengthen local "link" from rtx to
22323 rtx_insn_list *; use methods "next" and "insn" when traversing the
22325 (early_queue_to_ready): Likewise for locals "link", "next_link",
22327 (schedule_block): Update allocation of insn_queue to reflect the
22328 strengthening of elements from rtx to rtx_insn_list *. Strengthen
22329 local "link" from rtx to rtx_insn_list *, and use methods when
22331 (add_to_speculative_block): Strengthen locals "twins" and
22332 "next_node" from rtx to rtx_insn_list *, and use methods when
22333 working with them. Strengthen local "twin" from rtx to
22334 rtx_insn *, eliminating a checked cast.
22335 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
22336 from rtx to rtx_insn_list *, and use methods when working with
22339 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
22340 from rtx to rtx_insn_list *, adding a checked cast.
22341 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
22343 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
22344 "newlink" from rtx to rtx_insn_list *. Strengthen local
22345 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
22346 from rtx to rtx_insn *.
22347 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
22348 from rtx to rtx_insn_list *. Use methods of the latter class.
22349 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
22350 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
22351 (remove_free_INSN_LIST_node): Strengthen return type and local
22352 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
22353 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
22354 rtx_insn_list *, using "insn" method.
22356 * sched-deps.c (add_dependence_list): Strengthen param "list"
22357 from rtx to rtx_insn_list *, and use methods when working with it.
22358 (add_dependence_list_and_free): Strengthen param "listp" from
22359 rtx * to rtx_insn_list **.
22360 (remove_from_dependence_list): Strenghten param "listp" from rtx *
22361 to rtx_insn_list **, and use methods when working with *listp.
22362 (remove_from_both_dependence_lists): Strengthen param "listp" from
22363 rtx * to rtx_insn_list **
22364 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
22365 to rtx_insn_list **. Eliminate local "link", in favor of two new
22366 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
22368 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
22369 by introducing local "cond_deps".
22370 (remove_from_deps): Strengthen param "insn" from rtx to
22373 * sched-rgn.c (concat_insn_mem_list): Strengthen param
22374 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
22375 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
22376 Use methods of rtx_insn_list.
22378 * store-motion.c (struct st_expr): Strengthen fields
22379 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
22380 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
22382 (find_moveable_store): Split out "tmp" into multiple more-tightly
22383 scoped locals. Use methods of rtx_insn_list *.
22384 (compute_store_table): Strengthen local "tmp" from rtx to
22385 rtx_insn *. Use methods of rtx_insn_list *.
22387 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22389 * coretypes.h (class rtx_insn_list): Add forward declaration.
22390 * rtl.h (class rtx_insn_list): New subclass of rtx_def
22391 (is_a_helper <rtx_insn_list *>::test): New.
22392 (rtx_insn_list::next): New.
22393 (rtx_insn_list::insn): New.
22394 (gen_rtx_INSN_LIST): Add prototype.
22395 * emit-rtl.c (gen_rtx_INSN_LIST): New.
22396 * gengenrtl.c (special_rtx): Add INSN_LIST.
22398 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22400 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
22401 "prev" from rtx to rtx_insn *.
22403 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22405 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
22406 functions. Require merely an rtx for now, not an rtx_insn *.
22407 (BLOCK_FOR_INSN): Likewise.
22408 (INSN_LOCATION): Likewise.
22409 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
22411 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22413 * rtl.h (PATTERN): Convert this macro into a pair of inline
22414 functions, for now, requiring const_rtx and rtx.
22416 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22418 * target.def (unwind_emit): Strengthen param "insn" from rtx to
22420 (final_postscan_insn): Likewise.
22421 (adjust_cost): Likewise.
22422 (adjust_priority): Likewise.
22423 (variable_issue): Likewise.
22424 (macro_fusion_pair_p): Likewise.
22425 (dfa_post_cycle_insn): Likewise.
22426 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
22427 (first_cycle_multipass_issue): Likewise.
22428 (dfa_new_cycle): Likewise.
22429 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
22430 (speculate_insn): Likewise for param "insn".
22431 (gen_spec_check): Likewise for params "insn" and "label".
22432 (get_insn_spec_ds): Likewise for param "insn".
22433 (get_insn_checked_ds): Likewise.
22434 (dispatch_do): Likewise.
22435 (dispatch): Likewise.
22436 (cannot_copy_insn_p): Likewise.
22437 (invalid_within_doloop): Likewise.
22438 (legitimate_combined_insn): Likewise.
22439 (needed): Likewise.
22442 * doc/tm.texi: Automatically updated to reflect changes to
22445 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
22447 (schedule_block): Likewise.
22448 (sched_init): Likewise.
22449 (sched_speculate_insn): Strengthen param "insn" from rtx to
22451 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
22453 * hooks.c (hook_bool_rtx_true): Rename to...
22454 hook_bool_rtx_insn_true): ...this, and strengthen first param from
22456 (hook_constcharptr_const_rtx_null): Rename to...
22457 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22458 first param from const_rtx to const rtx_insn *.
22459 (hook_bool_rtx_int_false): Rename to...
22460 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22461 param from rtx to rtx_insn *.
22462 (hook_void_rtx_int): Rename to...
22463 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22466 * hooks.h (hook_bool_rtx_true): Rename to...
22467 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
22469 (hook_bool_rtx_int_false): Rename to...
22470 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22471 param from rtx to rtx_insn *.
22472 (hook_void_rtx_int): Rename to...
22473 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22475 (hook_constcharptr_const_rtx_null): Rename to...
22476 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22477 first param from const_rtx to const rtx_insn *.
22479 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
22480 and local "prev" from rtx to rtx_insn *.
22482 * sched-int.h (sched_speculate_insn): Strengthen first param from
22485 * sel-sched.c (create_speculation_check): Likewise for local "label".
22486 * targhooks.c (default_invalid_within_doloop): Strengthen param
22487 "insn" from const_rtx to const rtx_insn *.
22488 * targhooks.h (default_invalid_within_doloop): Strengthen param
22489 from const_rtx to const rtx_insn *.
22491 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
22492 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
22494 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
22496 (arc_invalid_within_doloop): Likewise, with const.
22498 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
22499 (arm_cannot_copy_insn_p): Likewise for param "insn".
22500 (arm_unwind_emit): Likewise.
22502 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
22505 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
22506 (c6x_variable_issue): Likewise. Removed now-redundant checked
22508 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
22510 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
22511 Likewise for param "insn".
22512 (epiphany_mode_after): Likewise.
22513 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
22514 params "insn", "dep_insn".
22515 (epiphany_mode_needed): Likewise for param "insn".
22516 (epiphany_mode_after): Likewise.
22518 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
22519 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22520 (ix86_avx_u128_mode_needed): Likewise.
22521 (ix86_i387_mode_needed): Likewise.
22522 (ix86_mode_needed): Likewise.
22523 (ix86_avx_u128_mode_after): Likewise.
22524 (ix86_mode_after): Likewise.
22525 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
22526 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
22527 (ix86_adjust_priority): Likewise for param "insn".
22528 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
22529 (do_dispatch): Likewise.
22530 (has_dispatch): Likewise.
22531 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
22533 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
22534 reflect renaming of default hook implementation from
22535 hook_constcharptr_const_rtx_null to
22536 hook_constcharptr_const_rtx_insn_null.
22537 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
22539 (ia64_variable_issue): Likewise for param "insn".
22540 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
22541 (ia64_dfa_new_cycle): Likewise.
22542 (ia64_get_insn_spec_ds): Likewise.
22543 (ia64_get_insn_checked_ds): Likewise.
22544 (ia64_speculate_insn): Likewise.
22545 (ia64_gen_spec_check): Likewise for params "insn", "label".
22546 (ia64_asm_unwind_emit): Likewise for param "insn".
22548 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
22550 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
22551 "insn", "def_insn".
22552 (m68k_sched_variable_issue): Likewise for param "insn".
22554 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
22557 * config/microblaze/microblaze.c (microblaze_adjust_cost):
22558 Likewise for params "insn", "dep".
22560 * config/mips/mips.c (mips_adjust_cost): Likewise.
22561 (mips_variable_issue): Likewise for param "insn".
22562 (mips_final_postscan_insn): Likewise.
22564 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
22565 for params "insn", "dep".
22567 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
22569 (pa_adjust_priority): Likewise for param "insn".
22571 * config/picochip/picochip.c (picochip_sched_adjust_cost):
22572 Likewise for params "insn", "dep_insn".
22574 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
22576 (rs6000_variable_issue): Likewise.
22577 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
22578 (rs6000_debug_adjust_cost): Likewise.
22579 (rs6000_adjust_priority): Likewise for param "insn".
22580 (rs6000_use_sched_lookahead_guard): Likewise.
22581 (get_next_active_insn): Likewise for return type and both params.
22582 (redefine_groups): Likewise for params "prev_head_insn", "tail"
22583 and locals "insn", "next_insn".
22584 (pad_groups): Likewise.
22586 * config/s390/s390.c (s390_adjust_priority): Likewise for param
22588 (s390_cannot_copy_insn_p): Likewise.
22589 (s390_sched_variable_issue): Likewise for third param, eliminating
22591 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
22592 default hook implementation from hook_constcharptr_const_rtx_null
22593 to hook_constcharptr_const_rtx_insn_null.
22595 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
22596 from rtx to rtx_insn *.
22597 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
22598 (sh_variable_issue): Likewise for param "insn".
22599 (sh_dfa_new_cycle): Likewise.
22600 (sh_mode_needed): Likewise.
22601 (sh_mode_after): Likewise.
22603 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
22604 params "insn", "dep_insn".
22605 (hypersparc_adjust_cost): Likewise.
22606 (sparc_adjust_cost): Likewise.
22608 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
22609 param, eliminated checked cast.
22610 (spu_sched_adjust_cost): Likewise for first and third params.
22612 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
22613 params "insn" and "dep_insn" from rtx to rtx_insn *.
22615 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
22617 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22619 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
22620 (set_is_load_p): ...this, updating to work on a SET pattern rather
22622 (is_store_insn): Rename to...
22623 (set_is_store_p): ...this, updating to work on a SET pattern
22624 rather than an insn.
22625 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
22626 top of function to where it is needed. Rewrite the bogus
22627 condition that checks for "insn" and "dep" being PARALLEL to
22628 instead use single_set, introducing locals "insn_set" and
22629 "dep_set". Given that we only ever returned "cost" for a non-pair
22630 of SETs, bail out early if we don't have a pair of SET.
22631 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
22632 use the new locals "insn_set" and "dep_set", and update calls to
22633 is_load_insn and is_store_insn to be calls to set_is_load_p and
22636 2014-08-27 Guozhi Wei <carrot@google.com>
22639 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
22640 amount before using it.
22642 2014-08-27 Richard Biener <rguenther@suse.de>
22644 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
22645 get_maxval_strlen inside a more useful API.
22646 (gimple_fold_builtin_with_strlen): Remove and fold into ...
22647 (gimple_fold_builtin): ... caller.
22648 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
22649 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
22650 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
22651 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
22652 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
22653 gimple_fold_builtin_sprintf): Adjust to compute maxval
22656 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
22659 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
22661 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22662 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22663 Anna Tikhonova <anna.tikhonova@intel.com>
22664 Ilya Tocar <ilya.tocar@intel.com>
22665 Andrey Turetskiy <andrey.turetskiy@intel.com>
22666 Ilya Verbin <ilya.verbin@intel.com>
22667 Kirill Yukhin <kirill.yukhin@intel.com>
22668 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22670 * config/i386/sse.md
22671 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
22672 Use `concat_tg_mode' attribute to determine asm register size.
22674 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22675 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22676 Anna Tikhonova <anna.tikhonova@intel.com>
22677 Ilya Tocar <ilya.tocar@intel.com>
22678 Andrey Turetskiy <andrey.turetskiy@intel.com>
22679 Ilya Verbin <ilya.verbin@intel.com>
22680 Kirill Yukhin <kirill.yukhin@intel.com>
22681 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22683 * config/i386/sse.md
22684 (define_mode_iterator VI48_AVX512VL): New.
22685 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
22686 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
22687 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
22688 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22689 with VI1): Change mode iterator.
22690 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22691 with VI_ULOADSTORE_BW_AVX512VL): New.
22692 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22693 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22694 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22695 with VI1): Change mode iterator.
22696 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22697 with VI_ULOADSTORE_BW_AVX512VL): New.
22698 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22699 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22700 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22701 with VI1): Change mode iterator.
22702 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22703 with VI_ULOADSTORE_BW_AVX512VL): New.
22704 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22705 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
22706 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
22707 (define_insn "<avx512>_storedqu<mode>_mask" with
22708 VI48_AVX512VL): New.
22709 (define_insn "<avx512>_storedqu<mode>_mask" with
22710 VI12_AVX512VL): Ditto.
22712 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22713 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22714 Anna Tikhonova <anna.tikhonova@intel.com>
22715 Ilya Tocar <ilya.tocar@intel.com>
22716 Andrey Turetskiy <andrey.turetskiy@intel.com>
22717 Ilya Verbin <ilya.verbin@intel.com>
22718 Kirill Yukhin <kirill.yukhin@intel.com>
22719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22721 * config/i386/sse.md
22722 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
22723 (define_mode_iterator VI48_AVX512BW): New.
22724 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
22725 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22726 with VI48_AVX2_48_AVX512F): New.
22727 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22728 with VI2_AVX512VL): Ditto.
22730 2014-08-27 Richard Biener <rguenther@suse.de>
22732 PR middle-end/62239
22733 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
22734 (fold_builtin_3): Do not fold strcat_chk here.
22735 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
22737 (gimple_fold_builtin): Fold strcat_chk here.
22739 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
22741 * dwarf2out.h (dwarf2out_decl): Remove prototype.
22742 * dwarf2out.c (dwarf2out_decl): Make static.
22744 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
22746 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
22748 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22750 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
22751 from rtx to rtx_insn *.
22752 (cselib_lookup_from_insn): Likewise for final param.
22753 (cselib_subst_to_values_from_insn): Likewise.
22754 (cselib_add_permanent_equiv): Likewise.
22756 * cselib.c (cselib_current_insn): Likewise for this variable.
22757 (cselib_subst_to_values_from_insn): Likewise for param "insn".
22758 (cselib_lookup_from_insn): Likewise.
22759 (cselib_add_permanent_equiv): Likewise for param "insn" and local
22760 "save_cselib_current_insn".
22761 (cselib_process_insn): Replace use of NULL_RTX with NULL.
22763 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
22764 from rtx to rtx_insn *.
22766 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22768 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
22771 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22773 * df.h (df_dump_insn_problem_function): Strengthen first param of
22774 this callback from const_rtx to const rtx_insn *.
22775 (struct df_insn_info): Strengthen field "insn" from rtx to
22777 (DF_REF_INSN): Eliminate this function, reinstating the older
22779 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
22780 (df_reg_defined): Likewise.
22781 (df_find_use): Likewise.
22782 (df_reg_used): Likewise.
22783 (df_dump_insn_top): Strengthen param 1 from const_rtx to
22785 (df_dump_insn_bottom): Likewise.
22786 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
22787 (df_insn_debug_regno): Likewise.
22788 (debug_df_insn): Likewise.
22789 (df_rd_simulate_one_insn): Likewise for param 2.
22790 (df_word_lr_simulate_defs): Likewise for param 1.
22791 (df_word_lr_simulate_uses): Likewise.
22792 (df_md_simulate_one_insn): Likewise for param 2.
22793 (df_simulate_find_noclobber_defs): Likewise for param 1.
22794 (df_simulate_find_defs): Likewise.
22795 (df_simulate_defs): Likewise.
22796 (df_simulate_uses): Likewise.
22797 (df_simulate_one_insn_backwards): Likewise for param 2.
22798 (df_simulate_one_insn_forwards): Likewise.
22799 (df_uses_create): Likewise for param 2.
22800 (df_insn_create_insn_record): Likewise for param 1.
22801 (df_insn_delete): Likewise.
22802 (df_insn_rescan): Likewise.
22803 (df_insn_rescan_debug_internal): Likewise.
22804 (df_insn_change_bb): Likewise.
22805 (df_notes_rescan): Likewise.
22806 * rtl.h (remove_death): Likewise for param 2.
22807 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
22809 * sched-int.h (reemit_notes): Strengthen param from rtx to
22811 * valtrack.h (propagate_for_debug): Likewise for param 1.
22813 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
22814 local "tmp_rtx" from const_rtx to const rtx_insn *.
22815 * combine.c (remove_death): Strengthen param "insn" from rtx to
22817 (move_deaths): Likewise for local "where_dead".
22818 * cse.c (delete_trivially_dead_insns): Introduce local
22819 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
22820 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
22822 (df_reg_defined): Likewise.
22823 (df_find_use): Likewise.
22824 (df_reg_used): Likewise.
22825 (df_dump_insn_problem_data): Strengthen param "insn" from
22826 const_rtx to const rtx_insn *.
22827 (df_dump_insn_top): Likewise.
22828 (df_dump_insn_bottom): Likewise.
22829 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
22830 (df_insn_debug_regno): Likewise.
22831 (debug_df_insn): Likewise.
22832 (DF_REF_INSN): Delete.
22833 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
22834 from rtx to rtx_insn *.
22835 (df_chain_insn_top_dump): Strengthen param "insn" from
22836 const_rtx to const rtx_insn *.
22837 (df_chain_insn_bottom_dump): Likewise.
22838 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
22840 (df_word_lr_simulate_uses): Likewise.
22841 (df_print_note): Likewise.
22842 (df_remove_dead_and_unused_notes): Likewise.
22843 (df_set_unused_notes_for_mw): Likewise.
22844 (df_set_dead_notes_for_mw): Likewise.
22845 (df_create_unused_note): Likewise.
22846 (df_simulate_find_defs): Likewise.
22847 (df_simulate_find_uses): Likewise.
22848 (df_simulate_find_noclobber_defs): Likewise.
22849 (df_simulate_defs): Likewise.
22850 (df_simulate_uses): Likewise.
22851 (df_simulate_one_insn_backwards): Likewise.
22852 (df_simulate_one_insn_forwards): Likewise.
22853 (df_md_simulate_one_insn): Likewise.
22854 * df-scan.c (df_uses_create): Likewise.
22855 (df_insn_create_insn_record): Likewise.
22856 (df_insn_delete): Likewise.
22857 (df_insn_rescan): Likewise.
22858 (df_insn_rescan_debug_internal): Likewise.
22859 (df_insn_change_bb): Likewise.
22860 (df_notes_rescan): Likewise.
22861 (df_refs_add_to_chains): Likewise.
22862 (df_insn_refs_verify): Likewise.
22863 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
22864 when invoking df_insn_delete.
22865 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
22866 (set_unique_reg_note): Add checked cast.
22867 * final.c (cleanup_subreg_operands): Likewise.
22868 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
22869 "insn" from rtx to rtx_insn *.
22870 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
22871 "last" from rtx to rtx_insn *.
22872 * ira-emit.c (change_regs_in_insn): New function.
22873 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
22874 Invoke change_regs_in_insn rather than change_regs.
22875 * ira.c (update_equiv_regs): Strengthen locals "insn",
22876 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
22877 for_each_rtx_in_insn rather than for_each_rtx.
22878 * recog.c (confirm_change_group): Add checked casts.
22879 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
22881 (peep2_fill_buffer): Add checked cast.
22882 * rtlanal.c (remove_note): Likewise.
22883 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
22884 locals "next" "end" from rtx to rtx_insn *.
22886 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22888 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
22890 (struct reg_use_data): Likewise for field "insn".
22891 (insn_cost): Likewise for param.
22892 (real_insn_for_shadow): Likewise for return type and param.
22893 (increase_insn_priority): Likewise for param 1.
22894 (debug_dependencies): Likewise for both params.
22896 * haifa-sched.c (insn_delay): Likewise for param "insn".
22897 (real_insn_for_shadow): Likewise for return type and param "insn".
22898 (update_insn_after_change): Likewise for param "insn".
22899 (recompute_todo_spec): Likewise for param "next" and locals "pro",
22901 (insn_cost): Likewise for param "insn".
22902 (increase_insn_priority): Likewise.
22903 (calculate_reg_deaths): Likewise.
22904 (setup_insn_reg_pressure_info): Likewise.
22905 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
22906 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
22907 (model_recompute): Likewise.
22908 (must_restore_pattern_p): Likewise for param "next".
22909 (model_excess_cost): Likewise for param "insn".
22910 (queue_remove): Likewise.
22911 (adjust_priority): Likewise for param "prev".
22912 (update_register_pressure): Likewise for param "insn".
22913 (setup_insn_max_reg_pressure): Likewise for local "insn".
22914 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
22915 (model_add_to_schedule): Likewise.
22916 (model_reset_queue_indices): Likewise for local "insn".
22917 (unschedule_insns_until): Strengthen local "recompute_vec" from
22918 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
22919 "con" from rtx to rtx_insn *.
22920 (restore_last_backtrack_point): Likewise for both locals "x". Add
22922 (estimate_insn_tick): Likewise for param "insn".
22923 (commit_schedule): Likewise for params "prev_head", "tail" and
22925 (verify_shadows): Likewise for locals "i1", "i2".
22926 (dump_insn_stream): Likewise for params "head", "tail" and locals
22927 "next_tail", "insn".
22928 (schedule_block): Likewise for locals "insn", "x". Add a checked
22930 (fix_inter_tick): Likewise for params "head", "tail".
22931 (create_check_block_twin): Likewise for local "jump".
22932 (haifa_change_pattern): Likewise for param "insn".
22933 (haifa_speculate_insn): Likewise.
22934 (dump_new_block_header): Likewise for params "head", "tail".
22935 (fix_jump_move): Likewise for param "jump".
22936 (move_block_after_check): Likewise.
22937 (sched_init_insn_luid): Likewise for param "insn".
22938 (sched_init_luids): Likewise for local "insn".
22939 (insn_luid): Likewise for param "insn".
22940 (init_h_i_d): Likewise.
22941 (haifa_init_h_i_d): Likewise for local "insn".
22942 (haifa_init_insn): Likewise for param "insn".
22943 * sched-deps.c (add_dependence): Likewise for local "real_pro",
22945 (create_insn_reg_use): Likewise for param "insn".
22946 (setup_insn_reg_uses): Likewise. Add a checked cast.
22947 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
22948 "tail" from rtx to rtx_insn *.
22949 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
22950 "insn", "next_tail".
22952 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22954 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
22955 from rtx to rtx_insn *.
22956 (model_add_to_schedule): Likewise for locals "start", "end",
22959 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22961 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
22963 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
22964 "to" and locals "insn", "next", "copy". Remove now-redundant
22967 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22969 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
22970 rtx_insn * and param 4 from rtx * to rtx_insn **.
22971 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
22972 param 2 from rtx * to rtx_insn **.
22974 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
22975 rtx_insn * and final param from rtx * to rtx_insn **.
22977 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
22978 from rtx to rtx_insn *.
22979 (try_head_merge_bb): Likewise for both locals named "move_upto".
22980 * df-problems.c (can_move_insns_across): Likewise for params
22981 "from", "to", "across_from", "across_to" and locals "insn",
22982 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
22984 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
22985 from rtx to rtx_insn *.
22986 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
22987 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
22988 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
22990 (noce_try_abs): Likewise.
22991 (noce_get_condition): Likewise for param "jump". Strengthen param
22992 "earliest" from rtx * to rtx_insn **.
22993 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
22995 (find_cond_trap): Likewise.
22996 (dead_or_predicable): Likewise for local "earliest".
22997 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
22999 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
23000 and local "prev". Strengthen param "earliest" from rtx * to
23002 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
23003 Strengthen param "earliest" from rtx * to rtx_insn **.
23005 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23007 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
23008 "to" and local "insn" from rtx to rtx_insn *.
23010 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23012 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
23013 from rtx to rtx_insn *.
23014 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
23015 (code_motion_path_driver): Likewise for local "last_insn".
23016 (simplify_changed_insns): Likewise for local "insn".
23018 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23020 * rtl.h (push_to_sequence): Strengthen param from rtx to
23022 (push_to_sequence2): Likewise for both params.
23023 (delete_insns_since): Likewise for param.
23024 (reorder_insns_nobb): Likewise for all three params.
23025 (set_new_first_and_last_insn): Likewise for both params.
23027 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
23028 rtx_insn *. Remove now-redundant cast.
23029 (set_last_insn): Likewise.
23031 * builtins.c (expand_builtin_return): Strengthen local
23032 "call_fusage" from rtx to rtx_insn *.
23033 * cfgrtl.c (create_basic_block_structure): Likewise for local
23035 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
23036 "first", "last" and local "insn".
23037 (delete_insns_since): Likewise for param "from".
23038 (reorder_insns_nobb): Likewise for params "from", "to", "after"
23040 (push_to_sequence): Likewise for param "first" and local "last".
23041 (push_to_sequence2): Likewise for params "first" and "last".
23042 * lra.c (emit_add3_insn): Likewise for local "last".
23043 (lra_emit_add): Likewise.
23044 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
23046 (process_address_1): Likewise for locals "insn", last".
23047 * modulo-sched.c (ps_first_note): Likewise for return type.
23048 * optabs.c (expand_binop_directly): Likewise for param "last".
23050 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23052 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
23054 * emit-rtl.c (get_last_insn_anywhere): Likewise.
23056 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23058 * function.h (struct sequence_stack): Strengthen fields "first"
23059 and "last" from rtx to rtx_insn *.
23060 (struct emit_status): Likewise for fields "x_first_insn" and
23063 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
23064 (set_first_insn): Add checked cast.
23065 (get_last_insn): Remove now-redundant checked cast.
23066 (set_last_insn): Add checked cast.
23068 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
23069 "saved_first" and "saved_last" from rtx to rtx_insn *.
23071 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23073 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
23074 (unlink_insn_chain): Strengthen both params from rtx to
23077 * cfgrtl.c (cfg_layout_function_header): Likewise for this
23079 (unlink_insn_chain): Likewise for params "first" and "last".
23080 Remove now-redundant checked cast.
23081 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
23082 (fixup_reorder_chain): Strengthen local "insn" from rtx to
23084 * emit-rtl.c (link_insn_into_chain): Likewise for all three
23086 (add_insn): Likewise for param "insn" and local "prev".
23087 (add_insn_after_nobb): Likewise for both params and local "next".
23088 (add_insn_before_nobb): Likewise for both params and local "prev".
23089 (add_insn_after): Rename param "after" to "uncast_after",
23090 introducing local "after" with another checked cast.
23091 (add_insn_before): Rename params "insn" and "before", giving them
23092 "uncast_" prefixes, adding the old names back using checked casts.
23093 (emit_note_after): Likewise for param "after".
23094 (emit_note_before): Likewise for param "before".
23095 (emit_label): Add a checked cast.
23097 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23099 * cselib.h (cselib_record_sets_hook): Strengthen initial param
23100 "insn" from rtx to rtx_insn *.
23102 * cselib.c (cselib_record_sets_hook): Likewise.
23104 * var-tracking.c (add_with_sets): Likewise, renaming back from
23105 "uncast_insn" to "insn" and eliminating the checked cast from rtx
23108 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23110 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
23111 and "header_" from rtx to rtx_insn *.
23112 (struct basic_block_d): Likewise for field "head_" within "x"
23113 field of union basic_block_il_dependent.
23114 (BB_HEAD): Drop function...
23115 (SET_BB_HEAD): ...and this function in favor of...
23116 (BB_HEAD): ...reinstate macro.
23117 (BB_END): Drop function...
23118 (SET_BB_END): ...and this function in favor of...
23119 (BB_END): ...reinstate macro.
23120 (BB_HEADER): Drop function...
23121 (SET_BB_HEADER): ...and this function in favor of...
23122 (BB_HEADER): ...reinstate macro.
23124 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
23125 (fix_crossing_unconditional_branches): Likewise.
23126 * caller-save.c (save_call_clobbered_regs): Likewise.
23127 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
23128 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
23129 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23130 (merge_blocks_move_successor_nojumps): Likewise.
23131 (outgoing_edges_match): Update use of for_each_rtx to
23132 for_each_rtx_in_insn.
23133 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
23134 (expand_gimple_cond): Likewise.
23135 (expand_gimple_tailcall): Likewise.
23136 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
23138 (construct_exit_block): Drop use of SET_BB_END.
23139 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
23141 (delete_insn): Rename param "insn" to "uncast_insn", introducing
23142 a new local "insn" with a checked cast to rtx_insn *. Drop use of
23143 SET_BB_HEAD and SET_BB_END.
23144 (create_basic_block_structure): Drop use of SET_BB_HEAD and
23146 (rtl_delete_block): Drop use of SET_BB_HEAD.
23147 (rtl_split_block): Drop use of SET_BB_END.
23148 (emit_nop_for_unique_locus_between): Likewise.
23149 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
23150 (block_label): Drop use of SET_BB_HEAD.
23151 (fixup_abnormal_edges): Drop use of SET_BB_END.
23152 (record_effective_endpoints): Drop use of SET_BB_HEADER.
23153 (relink_block_chain): Likewise.
23154 (fixup_reorder_chain): Drop use of SET_BB_END.
23155 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
23156 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
23157 rtx_insn **. Drop use of SET_BB_HEADER.
23158 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
23160 (BB_HEAD): Delete this function.
23161 (SET_BB_HEAD): Likewise.
23162 (BB_END): Likewise.
23163 (SET_BB_END): Likewise.
23164 (BB_HEADER): Likewise.
23165 (SET_BB_HEADER): Likewise.
23166 * emit-rtl.c (add_insn_after): Rename param "insn" to
23167 "uncast_insn", adding a new local "insn" and a checked cast to
23168 rtx_insn *. Drop use of SET_BB_END.
23169 (remove_insn): Strengthen locals "next" and "prev" from rtx to
23170 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
23171 (reorder_insns): Drop use of SET_BB_END.
23172 (emit_insn_after_1): Strengthen param "first" and locals "last",
23173 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
23174 (emit_pattern_after_noloc): Add checked cast.
23175 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
23176 (restore_other_notes): Likewise.
23177 (move_insn): Likewise.
23178 (sched_extend_bb): Likewise.
23179 (fix_jump_move): Likewise.
23180 * ifcvt.c (noce_process_if_block): Likewise.
23181 (dead_or_predicable): Likewise.
23182 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
23183 * reg-stack.c (change_stack): Drop use of SET_BB_END.
23184 * sel-sched-ir.c (sel_move_insn): Likewise.
23185 * sel-sched.c (move_nop_to_previous_block): Likewise.
23187 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
23189 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23191 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23193 * basic-block.h (create_basic_block_structure): Strengthen params
23194 1 "head" and 2 "end" from rtx to rtx_insn *.
23195 * cfgrtl.c (create_basic_block_structure): Likewise.
23196 (rtl_create_basic_block): Update casts from void * to rtx to
23197 rtx_insn *, so that we can pass them as rtx_insn * to
23198 create_basic_block_structure.
23199 * sel-sched-ir.c (sel_create_basic_block): Likewise.
23201 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23203 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
23205 (check_for_inc_dec): Strengthen param "insn" from rtx to
23208 * cselib.h (cselib_process_insn): Likewise.
23210 * cselib.c (cselib_record_sets): Likewise.
23211 (cselib_process_insn): Likewise.
23213 * dse.c (struct insn_info): Likewise for field "insn".
23214 (check_for_inc_dec_1): Likewise for local "insn".
23215 (check_for_inc_dec): Likewise for param "insn".
23216 (scan_insn): Likewise.
23217 (dse_step1): Likewise for local "insn".
23219 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
23220 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
23222 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23224 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
23225 from rtx to rtx_insn *.
23226 (DEP_PRO): Delete this function and...
23227 (SET_DEP_PRO): ...this function in favor of...
23228 (DEP_PRO): ...reinstate this macro.
23229 (DEP_CON): Delete this function and...
23230 (SET_DEP_CON): ...this function in favor of...
23231 (DEP_CON): ...reinstate this old macro.
23232 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
23233 (init_dep): Likewise.
23234 (set_priorities): Likewise for both params.
23235 (sd_copy_back_deps): Likewise for params 1 and 2.
23237 * haifa-sched.c (priority): Likewise for param "insn" and local
23239 (set_priorities): Likewise for params "head" and "tail" and local
23241 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
23243 (add_to_speculative_block): Add a checked cast.
23244 (create_check_block_twin): Drop use of SET_DEP_CON.
23245 (add_jump_dependencies): Strengthen params "insn" and "jump" from
23248 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
23249 Drop use of SET_DEP_PRO
23250 (init_dep): Strengthen params "pro" and "con" from rtx to
23252 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
23253 use of SET_DEP_CON.
23256 (SET_DEP_PRO): Delete.
23257 (SET_DEP_CON): Delete.
23259 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23261 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
23262 from rtx to rtx_insn *.
23263 (VINSN_INSN_RTX): Eliminate rvalue function and...
23264 (SET_VINSN_INSN): ...lvalue function in favor of...
23265 (VINSN_INSN_RTX): reinstate this old macro.
23267 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
23268 in favor of VINSN_INSN_RTX.
23269 (VINSN_INSN_RTX): Delete this function.
23270 (SET_VINSN_INSN_RTX): Likewise.
23272 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23274 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
23275 (BND_TO): Delete this function and...
23276 (SET_BND_TO): ...this functions in favor of...
23277 (BND_TO): ...reinstating this macro.
23278 (struct _fence): Strengthen field "executing_insns" from
23279 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
23280 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23281 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
23282 and param "insn" from rtx to insn_t.
23283 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
23286 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
23288 (rtx_vec_t): Likewise.
23289 (struct sched_deps_info_def): Strengthen param of "start_insn"
23290 callback from rtx to rtx_insn *. Likewise for param "insn2" of
23291 "note_mem_dep" callback and first param of "note_dep" callback.
23293 * haifa-sched.c (add_to_speculative_block): Strengthen param
23294 "insn" from rtx to rtx_insn *.
23295 (clear_priorities): Likewise.
23296 (calc_priorities): Likewise for local "insn".
23298 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
23299 Remove redundant checked cast.
23300 (haifa_note_mem_dep): Likewise for param "pending_insn".
23301 (haifa_note_dep): Likewise for param "elem".
23302 (note_mem_dep): Likewise for param "e".
23303 (sched_analyze_1): Add checked casts.
23304 (sched_analyze_2): Likewise.
23306 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
23307 from rtx to rtx_insn *.
23308 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
23309 from vec<rtx> * to vec<rtx_insn *> *.
23311 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
23313 (flist_add): Strengthen param "executing_insns" from
23314 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23315 (advance_deps_context): Remove now-redundant checked cast.
23316 (init_fences): Replace uses of NULL_RTX with NULL.
23317 (merge_fences): Strengthen params "last_scheduled_insn" and
23318 "sched_next" from rtx to rtx_insn * and "executing_insns" from
23319 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23320 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
23321 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
23322 an instruction, rather than doing double-duty as a pattern.
23323 (return_nop_to_pool): Update for change of insn_t.
23324 (deps_init_id): Remove now-redundant checked cast.
23325 (struct sched_scan_info_def): Strengthen param of "init_insn"
23326 callback from rtx to insn_t.
23327 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
23328 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
23330 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
23331 "end" from rtx to rtx_insn *.
23332 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
23333 (rtx insn_rtx, bool force_unique_p)
23334 (BND_TO): Delete function.
23335 (SET_BND_TO): Delete function.
23337 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
23339 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
23340 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
23342 (undo_transformations): Likewise for param "insn".
23343 (update_liveness_on_insn): Likewise.
23344 (compute_live_below_insn): Likewise for param "insn" and local
23346 (update_data_sets): Likewise for param "insn".
23347 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
23348 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
23349 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
23351 (move_cond_jump): Likewise for param "insn".
23352 (move_cond_jump): Drop use of SET_BND_TO.
23353 (compute_av_set_on_boundaries): Likewise.
23354 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
23355 (update_and_record_unavailable_insns): Strengthen local "bb_end"
23356 from rtx to rtx_insn *.
23357 (maybe_emit_renaming_copy): Likewise for param "insn".
23358 (maybe_emit_speculative_check): Likewise.
23359 (handle_emitting_transformations): Likewise.
23360 (remove_insn_from_stream): Likewise.
23361 (code_motion_process_successors): Strengthen local "succ" from rtx
23364 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23366 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
23367 ilist_t, not _xlist_t;
23368 (ILIST_INSN): Define in terms of new union field "insn".
23369 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
23371 (struct _list_node): Add new field "insn" to the union, of type
23373 (ilist_add): Replace macro with an inline function, requiring an
23375 (ilist_remove): Define this macro directly in terms of
23376 _list_remove, rather than indirectly via _xlist_remove.
23377 (ilist_clear): Likewise, in terms of _list_clear rather than
23379 (ilist_is_in_p): Replace macro with an inline function, requiring
23381 (_list_iter_cond_insn): New function.
23382 (ilist_iter_remove): Define this macro directly in terms of
23383 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
23384 (ilist_iterator): Define directly in terms of _list_iterator
23385 rather than indirectly through _xlist_iterator.
23386 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
23387 than in terms of _FOR_EACH_X.
23388 (FOR_EACH_INSN_1): Likewise.
23390 2014-08-26 Joseph Myers <joseph@codesourcery.com>
23394 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
23395 DECL_HARD_REGISTER and return for invalid register specifications.
23396 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
23397 DECL_HARD_REGISTER, call expand_one_error_var.
23398 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
23399 CC_REGNUM with non-MODE_CC modes.
23400 (arm_regno_class): Return NO_REGS for PC_REGNUM.
23402 2014-08-26 Marek Polacek <polacek@redhat.com>
23405 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
23407 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
23409 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
23410 qi cost; add di cost.
23411 (cortexa57_addrcost_table): Likewise.
23413 2014-08-26 Marek Polacek <polacek@redhat.com>
23416 * expr.c (is_aligning_offset): Remove logical not.
23418 2014-08-26 Marek Polacek <polacek@redhat.com>
23421 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
23422 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
23424 2014-08-26 Richard Biener <rguenther@suse.de>
23426 PR tree-optimization/62175
23427 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23428 expand possibly trapping operations.
23430 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23432 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
23433 "insn" from rtx to rtx_insn *.
23434 (permute_load): Likewise for param "insn".
23435 (permute_store): Likewise.
23436 (handle_special_swappables): Likewise for local "insn".
23437 (replace_swap_with_copy): Likewise for locals "insn" and
23439 (rs6000_analyze_swaps): Likewise for local "insn".
23441 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23443 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
23446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23448 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
23449 "note_list" from rtx to rtx_insn *.
23450 (BB_NOTE_LIST): Replace this function and...
23451 (SET_BB_NOTE_LIST): ...this function with...
23452 (BB_NOTE_LIST): ...the former macro implementation.
23454 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
23455 local "from_start" from rtx to rtx_insn *. Strengthen param
23456 "to_endp" from rtx * to rtx_insn **.
23458 * haifa-sched.c (concat_note_lists): Likewise.
23459 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
23461 (sel_restore_notes): Likewise.
23462 (move_bb_info): Likewise.
23463 (BB_NOTE_LIST): Delete this function.
23464 (SET_BB_NOTE_LIST): Delete this function.
23465 * sel-sched.c (create_block_for_bookkeeping): Eliminate
23466 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
23468 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23470 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
23471 from rtx * to rtx_insn **.
23472 (reorder2): Likewise.
23473 (dependencies_evaluation_hook): Strengthen params "head", "tail"
23474 from rtx to rtx_insn *.
23476 * doc/tm.texi: Update mechanically for above change to target.def.
23478 * sched-int.h (note_list): Strengthen this variable from rtx to
23480 (remove_notes): Likewise for both params.
23481 (restore_other_notes): Likewise for return type and first param.
23482 (struct ready_list): Strengthen field "vec" from rtx * to
23484 (struct dep_replacement): Strenghten field "insn" from rtx to
23486 (struct deps_desc): Likewise for fields "last_debug_insn",
23488 (struct haifa_sched_info): Likewise for callback field
23489 "can_schedule_ready_p"'s param, for first param of "new_ready"
23490 callback field, for both params of "rank" callback field, for
23491 first field of "print_insn" callback field (with a const), for
23492 both params of "contributes_to_priority" callback, for param
23493 of "insn_finishes_block_p" callback, for fields "prev_head",
23494 "next_tail", "head", "tail", for first param of "add_remove_insn"
23495 callback, for first param of "begin_schedule_ready" callback, for
23496 both params of "begin_move_insn" callback, and for second param
23497 of "advance_target_bb" callback.
23498 (add_dependence): Likewise for params 1 and 2.
23499 (sched_analyze): Likewise for params 2 and 3.
23500 (deps_analyze_insn): Likewise for param 2.
23501 (ready_element): Likewise for return type.
23502 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23503 (try_ready): Strenghten param from rtx to rtx_insn *.
23504 (sched_emit_insn): Likewise for return type.
23505 (record_delay_slot_pair): Likewise for params 1 and 2.
23506 (add_delay_dependencies): Likewise for param.
23507 (contributes_to_priority): Likewise for both params.
23508 (find_modifiable_mems): Likewise.
23510 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
23511 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
23512 "first_older_only_insn" from rtx to rtx_insn *.
23513 (arm_sched_reorder): Strengthen param "ready" from rtx * to
23516 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
23517 "last_scheduled_iter0" from rtx to rtx_insn *.
23518 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
23519 (c6x_sched_reorder_1): Strengthen param "ready" and locals
23520 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23521 "insn" from rtx to rtx_insn *.
23522 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
23524 (c6x_sched_reorder2): Strengthen param "ready" and locals
23525 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23526 "insn" from rtx to rtx_insn *.
23527 (c6x_variable_issue): Add a checked cast when assigning from insn
23528 to ss.last_scheduled_iter0.
23529 (split_delayed_branch): Strengthen param "insn" and local "i1"
23530 from rtx to rtx_insn *.
23531 (split_delayed_nonbranch): Likewise.
23532 (undo_split_delayed_nonbranch): Likewise for local "insn".
23533 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
23534 "entry_after", "end_packet", "head_insn", "tail_insn",
23535 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
23536 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
23537 to rtx_insn **. Remove now-redundant checked cast on last_insn,
23538 but add a checked cast on loop->start_label. Consolidate calls to
23539 avoid assigning result of gen_spkernel to "insn", now an
23542 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
23543 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
23545 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
23546 rtx_insn **. Strengthen locals "top", "next" from rtx to
23548 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
23549 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23550 (add_parameter_dependencies): Strengthen params "call", "head" and
23551 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
23552 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
23553 (add_dependee_for_func_arg): Likewise for param "arg" and local
23555 (ix86_dependencies_evaluation_hook): Likewise for params "head",
23556 "tail" and locals "insn", "first_arg".
23558 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
23559 for params "head", "tail" and locals "insn", "next", "next_tail".
23560 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
23561 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
23562 "insn", "lowest", "highest" from rtx to rtx_insn *.
23563 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
23565 (ia64_sched_reorder2): Likewise.
23567 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
23568 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
23569 from rtx * to rtx_insn **.
23570 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
23572 (mep_print_sched_insn): Strengthen param "insn" from rtx to
23574 (mep_sched_reorder): Strengthen param "ready" from rtx * to
23575 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
23578 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
23579 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
23581 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
23582 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
23583 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
23585 (vr4130_reorder): Likewise.
23586 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
23588 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
23590 (mips_sched_reorder): Likewise.
23591 (mips_sched_reorder2): Likewise.
23593 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
23595 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
23596 Strengthen local "tmp" from rtx to rtx_insn *.
23597 (rs6000_sched_reorder2): Likewise.
23599 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
23600 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
23601 (s390_sched_reorder): Strengthen param "ready" from rtx * to
23602 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
23604 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
23605 "tmp2" from rtx to rtx_insn *.
23606 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
23607 Strengthen local "insn" from rtx to rtx_insn *.
23608 (ready_reorder): Strengthen param "ready" from rtx * to
23609 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
23610 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
23611 (sh_reorder2): Likewise.
23613 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
23614 local "insn" from rtx to rtx_insn *.
23616 * haifa-sched.c (note_list): Strengthen this variable from rtx to
23618 (scheduled_insns): Strengthen this variable from vec<rtx> to
23620 (set_modulo_params): Likewise for locals "i1", "i2".
23621 (record_delay_slot_pair): Likewise for params "i1", "i2".
23622 (add_delay_dependencies): Likewise for param "insn".
23623 (cond_clobbered_p): Likewise.
23624 (recompute_todo_spec): Likewise for local "prev".
23625 (last_scheduled_insn): Likewise for this variable.
23626 (nonscheduled_insns_begin): Likewise.
23627 (model_set_excess_costs): Strengthen param "insns" from rtx * to
23629 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
23631 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
23632 Strengthen local "insn" from rtx to rtx_insn *.
23633 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
23634 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23635 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
23636 (ready_remove_first): Likewise for return type and local "t".
23637 (ready_element): Likewise for return type.
23638 (ready_remove): Likewise for return type and local "t".
23639 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
23640 (check_clobbered_conditions): Strengthen local "x" from rtx to
23641 rtx_insn *, adding a checked cast.
23642 (schedule_insn): Likewise for param "insn".
23643 (remove_notes): Likewise for params "head", "tail" and locals
23644 "next_tail", "insn", "next".
23645 (struct haifa_saved_data): Likewise for fields
23646 "last_scheduled_insn", "nonscheduled_insns_begin".
23647 (save_backtrack_point): Update for change to field "vec" of
23649 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
23651 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
23652 from rtx to rtx_insn *
23653 (resolve_dependencies): Strengthen param "insn" from rtx to
23655 (restore_other_notes): Likewise for return type, for param "head"
23656 and local "note_head".
23657 (undo_all_replacements): Likewise for local "insn".
23658 (first_nonscheduled_insn): Likewise for return type and local "insn".
23659 (queue_to_ready): Likewise for local "insn", adding checked casts.
23660 (early_queue_to_ready): Likewise for local "insn".
23661 (debug_ready_list_1): Strengthen local "p" from rtx * to
23663 (move_insn): Strengthen param "insn" and local "note" from rtx to
23665 (insn_finishes_cycle_p): Likewise for param "insn".
23666 (max_issue): Likewise for local "insn".
23667 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
23669 (commit_schedule): Strengthen param "prev_head" and local "insn"
23670 from rtx to rtx_insn *
23671 (prune_ready_list): Likewise for local "insn".
23672 (schedule_block): Likewise for locals "prev_head", "head", "tail",
23673 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
23674 (set_priorities): Likewise for local "prev_head".
23675 (try_ready): Likewise for param "next".
23676 (fix_tick_ready): Likewise.
23677 (change_queue_index): Likewise.
23678 (sched_extend_ready_list): Update for change to field "vec" of
23680 (generate_recovery_code): Strengthen param "insn" from rtx to
23682 (begin_speculative_block): Likewise.
23683 (create_check_block_twin): Likewise for param "insn" and locals
23684 "label", "check", "twin". Introduce local "check_pat" to avoid
23685 "check" being used as a plain rtx before being used as an insn.
23686 (fix_recovery_deps): Add a checked cast to rtx_insn * when
23687 extracting elements from ready_list.
23688 (sched_remove_insn): Strengthen param "insn" from rtx to
23690 (sched_emit_insn): Likewise for return type.
23691 (ready_remove_first_dispatch): Likewise for return type and local
23694 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
23696 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
23699 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
23700 from rtx to rtx_insn *.
23701 (add_dependence_list): Likewise for param "insn". Add a checked
23703 (add_dependence_list_and_free): Strengthen param "insn" from rtx
23704 to rtx_insn *. Strengthen param "list_p" from rtx * to
23706 (chain_to_prev_insn): Strengthen param "insn" and locals
23707 "prec_nonnote", "i" from rtx to rtx_insn *.
23708 (flush_pending_lists): Likewise for param "insn".
23709 (cur_insn): Likewise for this variable.
23710 (haifa_start_insn): Add a checked cast.
23711 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
23712 (sched_analyze_reg): Likewise for param "insn".
23713 (sched_analyze_1): Likewise.
23714 (sched_analyze_2): Likewise. Add checked casts.
23715 (sched_analyze_insn): Likewise. Also for local "prev".
23716 (deps_analyze_insn): Likewise for param "insn".
23717 (sched_analyze): Likewise for params "head", "tail" and local "insn".
23718 (add_dependence_1): Likewise for params "insn", "elem".
23719 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
23720 (parse_add_or_inc): Likewise for param "insn".
23721 (find_inc): Likewise for local "inc_cand".
23722 (find_modifiable_mems): Likewise for params "head", "tail" and
23723 locals "insn", "next_tail".
23725 * sched-ebb.c (init_ready_list): Likewise for local "insn".
23726 (begin_schedule_ready): Likewise for param "insn".
23727 (begin_move_insn): Likewise for params "insn" and "last".
23728 (ebb_print_insn): Strengthen param "insn" from const_rtx to
23730 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
23731 (ebb_contributes_to_priority): Likewise for params "next", "insn".
23732 (ebb_add_remove_insn): Likewise for param "insn".
23733 (advance_target_bb): Likewise.
23735 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
23737 (check_live): Likewise for param "insn".
23738 (init_ready_list): Likewise for local "insn".
23739 (can_schedule_ready_p): Likewise for param "insn".
23740 (begin_schedule_ready): Likewise.
23741 (new_ready): Likewise for param "next".
23742 (rgn_print_insn): Likewise for param "insn".
23743 (rgn_rank): Likewise for params "insn1", "insn2".
23744 (contributes_to_priority): Likewise for params "next", "insn".
23745 (rgn_insn_finishes_block_p): Likewise for param "insn".
23746 (add_branch_dependences): Likewise for params "head", "tail" and
23747 locals "insn", "last".
23748 (rgn_add_remove_insn): Likewise for param "insn".
23749 (advance_target_bb): Likewise.
23751 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
23752 const_rtx to const rtx_insn *.
23754 * sel-sched-dump.h (sel_print_insn): Likewise.
23756 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
23757 (deps_init_id): Likewise.
23759 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
23760 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
23763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23765 * output.h (final_start_function): Strengthen param 1 from rtx to
23768 * final.c (final_start_function): Likewise, renaming back from
23769 "uncast_first" to "first", and dropping the checked cast from rtx
23772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23774 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
23775 * final.c (final): Likewise. Rename param back from
23776 "uncast_first" to "first" and eliminate the checked cast from rtx
23779 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23781 * output.h (shorten_branches): Strengthen param from rtx to
23784 * final.c (shorten_branches): Likewise, renaming param back from
23785 "uncast_first" to "first", and dropping the checked cast from rtx
23788 * genattr.c (gen_attr): Likewise when writing out the prototype of
23791 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23793 * sched-int.h (struct haifa_sched_info): Strengthen fields
23794 "prev_head" and "next_tail" from rtx to rtx_insn *.
23796 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23798 * rtl.h (rtx_jump_table_data::get_labels): New method.
23799 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
23800 with use of the new rtx_jump_table_data::get_labels method.
23801 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
23802 to rtx_jump_table_data *. Simplify by using get_labels method.
23803 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
23804 a dyn_cast, introducing local "table", using it to replace
23805 label-lookup logic with a get_labels method call.
23806 (patch_jump_insn): Simplify using get_labels method.
23807 * dwarf2cfi.c (create_trace_edges): Likewise.
23808 * rtlanal.c (label_is_jump_target_p): Likewise.
23810 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23812 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
23815 * emit-rtl.c (unshare_all_rtl_1): Likewise.
23816 (unshare_all_rtl_again): Likewise, also for local "p".
23818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23820 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
23822 * cfgrtl.c (delete_insn_and_edges): Likewise.
23824 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23826 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
23827 from rtx to rtx_insn *.
23829 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
23831 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23833 * function.c (thread_prologue_and_epilogue_insns): Likewise for
23834 locals "returnjump", "epilogue_end", "insn", "next".
23836 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
23837 "returnjump" from rtx * to rtx_insn **.
23838 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
23840 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23842 * basic-block.h (struct edge_def). Strengthen "r" within
23843 union edge_def_insns from rtx to rtx_insn *.
23845 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
23846 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
23848 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
23849 from rtx to rtx_insn *.
23850 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
23852 * postreload-gcse.c (reg_killed_on_edge): Likewise.
23853 (reg_used_on_edge): Likewise.
23854 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
23855 (gt_pch_nx): New overload for rtx_insn *&.
23856 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
23857 from rtx to rtx_insn *.
23859 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23861 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
23862 from rtx to rtx_insn *.
23863 (BB_FOOTER): Replace function with access macro.
23864 (SET_BB_FOOTER): Delete.
23866 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
23868 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23869 (emit_barrier_after_bb): Likewise.
23870 (record_effective_endpoints): Likewise.
23871 (relink_block_chain): Likewise.
23872 (fixup_fallthru_exit_predecessor): Likewise.
23873 (cfg_layout_duplicate_bb): Likewise.
23874 (cfg_layout_split_block): Likewise.
23875 (cfg_layout_delete_block): Likewise.
23876 (cfg_layout_merge_blocks): Likewise.
23877 (BB_FOOTER): Delete function.
23878 (SET_BB_FOOTER): Delete function.
23879 * combine.c (update_cfg_for_uncondjump): Replace uses of
23880 SET_BB_FOOTER with BB_FOOTER.
23882 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23884 * except.h (struct eh_landing_pad_d): Strengthen field
23885 "landing_pad" from rtx to rtx_code_label *.
23887 * except.c (sjlj_emit_dispatch_table): Likewise for param
23889 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
23891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23893 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
23894 first param from rtx to rtx_insn *.
23895 * config/xtensa/xtensa.c (struct machine_function): Likewise for
23896 field "set_frame_ptr_insn".
23897 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
23898 "csend" from rtx to rtx_code_label *.
23899 (xtensa_expand_atomic): Likewise for local "csloop".
23900 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
23902 (xtensa_call_tls_desc): Likewise for return type and locals
23903 "call_insn", "insns".
23904 (xtensa_legitimize_tls_address): Likewise for local "insns".
23905 (xtensa_expand_prologue): Likewise for locals "insn", "first".
23907 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23909 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
23910 first param from rtx to rtx_insn *.
23911 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
23914 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23916 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
23917 Strengthen param 1 from rtx to rtx_insn *.
23918 (tilepro_output_cbranch): Likewise.
23919 (tilepro_adjust_insn_length): Likewise.
23920 (tilepro_final_prescan_insn): Likewise for sole param.
23922 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
23923 Likewise for local "last".
23924 (cbranch_predicted_p): Likewise for param "insn".
23925 (tilepro_output_simple_cbranch_with_opcode): Likewise.
23926 (tilepro_output_cbranch_with_opcode): Likewise.
23927 (tilepro_output_cbranch): Likewise.
23928 (frame_emit_load): Likewise for return type and locals "seq",
23930 (emit_sp_adjust): Likewise for return type and local "insn".
23931 (tilepro_expand_epilogue): Likewise for locals "last_insn",
23933 (tilepro_adjust_insn_length): Likewise for param "insn".
23934 (next_insn_to_bundle): Likewise for return type and params
23936 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
23937 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
23939 (match_addli_pcrel): Likewise for param "insn".
23940 (replace_addli_pcrel): Likewise.
23941 (match_auli_pcrel): Likewise.
23942 (replace_auli_pcrel): Likewise.
23943 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
23945 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23946 "queue", "next_queue", "prev".
23947 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
23948 (tilepro_final_prescan_insn): Likewise for param "insn".
23950 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23952 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
23953 Strengthen param 1 from rtx to rtx_insn *.
23954 (tilegx_output_cbranch): Likewise.
23955 (tilegx_adjust_insn_length): Likewise.
23956 (tilegx_final_prescan_insn): Likewise for sole param.
23958 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
23960 (cbranch_predicted_p): Likewise for param "insn".
23961 (tilegx_output_simple_cbranch_with_opcode): Likewise.
23962 (tilegx_output_cbranch_with_opcode): Likewise.
23963 (tilegx_output_cbranch): Likewise.
23964 (frame_emit_load): Likewise for return type.
23965 (set_frame_related_p): Likewise for locals "seq", "insn".
23966 (emit_sp_adjust): Likewise for return type, and for local "insn".
23967 Introduce local "pat" for use in place of "insn" where the latter
23968 isn't an instruction.
23969 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
23970 from rtx to rtx_insn *.
23971 (tilegx_adjust_insn_length): Likewise for param "insn".
23972 (next_insn_to_bundle): Likewise for return type and params "r" and
23974 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
23976 (replace_insns): Likewise for params "old_insn", "new_insns".
23977 (replace_mov_pcrel_step1): Likewise for param "insn" and local
23979 (replace_mov_pcrel_step2): Likewise.
23980 (replace_mov_pcrel_step3): Likewise.
23981 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
23983 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23984 "queue", "next_queue", "prev".
23985 (tilegx_output_mi_thunk): Likewise for local "insn".
23986 (tilegx_final_prescan_insn): Likewise for param "insn".
23988 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23990 * config/spu/spu.c (frame_emit_store): Strengthen return type from
23992 (frame_emit_load): Likewise.
23993 (frame_emit_add_imm): Likewise, also for local "insn".
23994 (spu_expand_prologue): Likewise for local "insn".
23995 (struct spu_bb_info): Likewise for field "prop_jump".
23996 (emit_nop_for_insn): Likewise for param "insn" and local
23998 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
24000 (spu_emit_branch_hint): Likewise for params "before", "branch" and
24001 locals "hint", "insn".
24002 (get_branch_target): Likewise for param "branch".
24003 (insn_clobbers_hbr): Likewise for param "insn".
24004 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
24005 locals "insn", "before_4", "before_16".
24006 (insert_hbrp): Likewise for local "insn".
24007 (spu_machine_dependent_reorg): Likewise for locals "branch",
24008 "insn", "next", "bbend".
24009 (uses_ls_unit): Likewise for param "insn".
24010 (get_pipe): Likewise.
24011 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
24012 introducing a checked cast.
24013 (spu_sched_adjust_cost): Likewise for params "insn" and
24015 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
24016 (spu_sms_res_mii): Likewise.
24018 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24020 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
24021 from rtx to rtx_insn *.
24022 (output_cbranch): Likewise for param 6.
24023 (output_return): Likewise for param 1.
24024 (output_sibcall): Likewise.
24025 (output_v8plus_shift): Likewise.
24026 (output_v8plus_mult): Likewise.
24027 (output_v9branch): Likewise for param 7.
24028 (output_cbcond): Likewise for param 3.
24030 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
24032 (sparc_legitimize_pic_address): Likewise.
24033 (sparc_emit_call_insn): Likewise.
24034 (emit_save_or_restore_regs): Likewise.
24035 (emit_window_save): Likewise for return type and local "insn".
24036 (sparc_expand_prologue): Likewise for local "insn".
24037 (sparc_flat_expand_prologue): Likewise.
24038 (output_return): Likewise for param "insn".
24039 (output_sibcall): Likewise for param "insn" and local "delay".
24040 (output_ubranch): Likewise for param "insn".
24041 (output_cbranch): Likewise.
24042 (output_cbcond): Likewise.
24043 (output_v9branch): Likewise.
24044 (output_v8plus_shift): Likewise.
24045 (sparc_output_mi_thunk): Likewise for local "insn".
24046 (get_some_local_dynamic_name): Likewise.
24047 (output_v8plus_mult): Likewise for param "insn".
24049 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24051 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
24052 from rtx to rtx_insn *.
24053 (output_branchy_insn): Likewise for param 3.
24054 (output_far_jump): Likewise for param 1.
24055 (final_prescan_insn): Likewise.
24056 (sh_insn_length_adjustment): Likewise for sole param.
24058 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
24059 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
24061 (sh_emit_compare_and_set): Likewise for local "lab".
24062 (output_far_jump): Strengthen param "insn" and local "prev" from
24064 (output_branchy_insn): Likewise for param "insn" and local
24066 (output_ieee_ccmpeq): Likewise for param "insn".
24067 (struct label_ref_list_d): Strengthen field "label" from rtx to
24069 (pool_node): Likewise.
24070 (pool_window_label): Likewise for this global.
24071 (add_constant): Likewise for return type and locals "lab", "new_rtx".
24072 (dump_table): Strengthen params "start", "barrier" and local
24073 "scan" from rtx to rtx_insn *.
24074 (broken_move): Likewise for param "insn".
24075 (untangle_mova): Likewise for params "first_mova" and "new_mova".
24076 Strengthen param "first_mova" from rtx * to rtx_insn **.
24077 (mova_p): Likewise for param "insn".
24078 (fixup_mova): Likewise for param "mova".
24079 (find_barrier): Likewise for return type, params "mova" and
24080 "from", and locals "barrier_before_mova", "found_barrier",
24081 "good_barrier", "orig", "last_symoff", "next". Strengthen local
24082 "label" from rtx to rtx_code_label *.
24083 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
24085 (sh_reorg): Likewise for locals "link", "scan", "barrier".
24086 (split_branches): Likewise for param "first" and local "insn".
24087 (final_prescan_insn): Likewise for param "insn".
24088 (sequence_insn_p): Likewise for locals "prev", "next".
24089 (sh_insn_length_adjustment): Likewise for param "insn".
24090 (sh_can_redirect_branch): Likewise for local "insn".
24091 (find_r0_life_regions): Likewise for locals "end", "insn".
24092 (sh_output_mi_thunk): Likewise for local "insns".
24094 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24096 * config/score/score.c (score_output_mi_thunk): Strengthen local
24097 "insn" from rtx to rtx_insn *.
24098 (score_prologue): Likewise.
24100 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24102 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
24103 1 from rtx to rtx_insn *.
24104 (s390_emit_jump): Likewise for return type.
24105 (s390_emit_call): Likewise.
24106 (s390_load_got): Likewise.
24108 * config/s390/s390.c (last_scheduled_insn): Likewise for this
24110 (s390_match_ccmode): Likewise for param "insn".
24111 (s390_emit_jump): Likewise for return type.
24112 (s390_split_branches): Likewise for local "label".
24113 (struct constant): Strengthen field "label" from rtx to
24115 (struct constant_pool): Likewise for field "label". Strengthen
24116 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
24118 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
24120 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
24121 (s390_end_pool): Likewise.
24122 (s390_dump_pool): Likewise for local "insn".
24123 (s390_mainpool_start): Likewise.
24124 (s390_chunkify_start): Likewise.
24125 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
24126 with insns. Strengthen locals "label", "jump", "barrier", "next",
24127 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
24128 (s390_chunkify_finish): Strengthen local "insn" from rtx to
24130 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
24131 "jump", "label", "next_insn".
24132 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
24133 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
24135 (s390_load_got): Likewise for return type and local "insns".
24136 (s390_save_gprs_to_fprs): Likewise for local "insn".
24137 (s390_restore_gprs_from_fprs): Likewise.
24138 (pass_s390_early_mach::execute): Likewise.
24139 (s390_emit_prologue): Likewise for local "insns".
24140 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
24142 (s390_emit_call): Strengthen return type and local "insn" from
24144 (s390_emit_tpf_eh_return): Likewise for local "insn".
24145 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
24146 "next_insn", introducing locals "s_pat", "rpat" to allow this.
24147 (s390_fix_long_loop_prediction): Likewise for param "insn" and
24149 (s390_non_addr_reg_read_p): Likewise for param "insn".
24150 (find_cond_jump): Likewise for return type and param "insn".
24151 (s390_swap_cmp): Likewise for param "insn".
24152 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
24153 "prev_insn", "next_insn".
24154 (s390_reorg): Likewise for locals "insn", "target".
24155 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
24156 (s390_sched_variable_issue): For now, rename param "insn" to
24157 "uncast_insn", introducing a checked cast.
24158 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
24160 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
24161 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
24163 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24165 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
24166 param from rtx to rtx_insn *.
24167 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
24169 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24171 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
24172 4 from rtx to rtx_insn *.
24173 (rs6000_final_prescan_insn): Likewise for first param.
24174 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
24176 (rs6000_get_some_local_dynamic_name): Likewise.
24177 (output_cbranch): Likewise for param "insn".
24178 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
24179 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
24180 (rs6000_emit_allocate_stack): Likewise for local "insn".
24181 (load_cr_save): Likewise.
24182 (restore_saved_cr): Likewise.
24183 (restore_saved_lr): Likewise.
24184 (emit_cfa_restores): Likewise.
24185 (rs6000_output_function_epilogue): Likewise for locals "insn" and
24186 "deleted_debug_label".
24187 (rs6000_output_mi_thunk): Likewise for local "insn".
24188 (rs6000_final_prescan_insn): Likewise for param "insn".
24190 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24192 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
24193 Strengthen param "insn" from rtx to rtx_insn *.
24194 * config/picochip/picochip.c (picochip_current_prescan_insn):
24195 Likewise for this variable.
24196 (picochip_final_prescan_insn): Likewise for param "insn".
24198 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24200 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
24201 from rtx to rtx_insn *.
24202 (pa_output_indirect_call): Likewise.
24203 (pa_adjust_insn_length): Likewise.
24204 (pa_attr_length_millicode_call): Likewise.
24205 (pa_attr_length_call): Likewise.
24206 (pa_attr_length_indirect_call): Likewise.
24208 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
24210 (pa_attr_length_millicode_call): Likewise.
24211 (pa_attr_length_call): Likewise.
24212 (pa_output_call): Likewise.
24213 (pa_attr_length_indirect_call): Likewise.
24214 (pa_output_indirect_call): Likewise.
24216 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24218 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
24219 Strengthen first param from rtx to rtx_insn *.
24220 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
24223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24225 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
24226 type from rtx to rtx_insn *.
24227 (mips_expand_call): Likewise.
24228 (mips_adjust_insn_length): Likewise for first param.
24229 (mips_output_conditional_branch): Likewise.
24230 (mips_output_order_conditional_branch): Likewise.
24231 (mips_final_prescan_insn): Likewise.
24233 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
24234 rtx_insn * for the SEQUENCE case.
24235 (SEQ_END): Likewise.
24236 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
24237 (mips_emit_call_insn): Likewise, also for local "insn".
24238 (mips16_gp_pseudo_reg): Likewise for local "scan".
24239 (mips16_build_call_stub): Likewise for return type and for local
24240 "insn". Introduce a new local "pattern" so that "insn" can indeed
24242 (mips_expand_call): Strengthen return type and local "insn" from
24244 (mips_block_move_loop): Strengthen local "label" from rtx to
24246 (mips_expand_synci_loop): Likewise for locals "label",
24248 (mips_set_frame_expr): Strengthen local "insn" from rtx to
24250 (mips16e_collect_argument_saves): Likewise for locals "insn",
24252 (mips_find_gp_ref): Likewise for param of callback for "pred"
24253 param, and for local "insn".
24254 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
24255 (mips_insn_has_flexible_gp_ref_p): Likewise.
24256 (mips_epilogue_emit_cfa_restores): Likewise for return type and
24258 (mips_epilogue_set_cfa): Likewise for local "insn".
24259 (mips_expand_epilogue): Likewise.
24260 (mips_adjust_insn_length): Likewise for param "insn".
24261 (mips_output_conditional_branch): Likewise.
24262 (mips_output_order_conditional_branch): Likewise.
24263 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
24264 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
24265 "falu2_turn_enabled_insn".
24266 (mips_builtin_branch_and_move): Strengthen locals "true_label",
24267 "done_label" from rtx to rtx_code_label *.
24268 (struct mips16_constant): Likewise for field "label".
24269 (mips16_add_constant): Likewise for return type.
24270 (mips16_emit_constants_1): Strengthen return type and param "insn"
24271 from rtx to rtx_insn *.
24272 (mips16_emit_constants): Likewise for param "insn".
24273 (mips16_insn_length): Likewise.
24274 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
24275 to rtx_code_label *.
24276 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
24277 from rtx to rtx_insn *.
24278 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
24279 "jump". Strengthen local "label" from rtx to rtx_code_label *.
24280 (r10k_simplify_address): Strengthen param "insn" and local
24281 "def_insn" from rtx to rtx_insn *.
24282 (r10k_safe_address_p): Strengthen param "insn" from rtx to
24284 (r10k_needs_protection_p_1): Update target type of cast of data
24285 from to rtx to rtx_insn *.
24286 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
24287 rtx * to rtx_insn **.
24288 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
24290 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
24291 (mips_call_expr_from_insn): Likewise for param "insn".
24292 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
24293 (mips_find_pic_call_symbol): Likewise for param "insn".
24294 (mips_annotate_pic_calls): Likewise for local "insn".
24295 (mips_sim_insn): Likewise for this variable.
24296 (struct mips_sim): Likewise for field "insn" within elements of
24298 (mips_sim_wait_reg): Likewise for param "insn".
24299 (mips_sim_wait_regs): Likewise.
24300 (mips_sim_wait_units): Likewise.
24301 (mips_sim_wait_insn): Likewise.
24302 (mips_sim_issue_insn): Likewise.
24303 (mips_sim_finish_insn): Likewise.
24304 (mips_seq_time): Likewise for param "seq" and local "insn".
24305 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
24306 locals "first", "second".
24307 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
24308 "last", "last2", "next".
24309 (mips_avoid_hazard): Likewise for params "after", "insn".
24310 (mips_reorg_process_insns): Likewise for locals "insn",
24311 "last_insn", "subinsn", "next_insn".
24312 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
24313 (mips16_split_long_branches): Likewise for locals "insn" "jump",
24315 (mips_output_mi_thunk): Likewise for local "insn".
24316 (mips_final_prescan_insn): Likewise for param "insn".
24318 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24320 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
24321 Strengthen return type and local "insns" from rtx to rtx_insn *.
24322 (microblaze_legitimize_tls_address): Likewise for local "insns".
24323 (microblaze_block_move_loop): Strengthen local "label" from rtx
24324 to rtx_code_label *.
24325 (microblaze_expand_prologue): Strengthen two locals named "insn"
24326 from rtx to rtx_insn *.
24327 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
24328 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
24329 "insn". Strengthen locals "div_label", "div_end_label" from rtx
24330 to rtx_code_label *.
24332 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24334 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
24335 param from rtx to rtx_insn *.
24336 (mep_reuse_lo): Likewise for third param.
24337 (mep_use_post_modify_p): Likewise for first param.
24338 (mep_core_address_length): Likewise.
24339 (mep_cop_address_length): Likewise.
24340 (mep_final_prescan_insn): Likewise.
24341 (mep_store_data_bypass_p): Likewise for both params.
24342 (mep_mul_hilo_bypass_p): Likewise.
24343 (mep_ipipe_ldc_p): Likewise for param.
24345 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
24346 (mep_rewrite_mult): Likewise.
24347 (mep_rewrite_mulsi3): Likewise.
24348 (mep_rewrite_maddsi3): Likewise.
24349 (mep_reuse_lo_p_1): Likewise.
24350 (mep_reuse_lo_p): Likewise.
24351 (mep_frame_expr): Likewise.
24352 (mep_make_parallel): Likewise for both params.
24353 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
24355 (mep_use_post_modify_p): Likewise for param "insn".
24356 (mep_core_address_length): Likewise.
24357 (mep_cop_address_length): Likewise.
24358 (mep_reg_set_in_function): Likewise for local "insn".
24359 (mep_asm_without_operands_p): Likewise.
24360 (F): Likewise for return type and param "x".
24361 (add_constant): Likewise for local "insn".
24362 (maybe_dead_move): Likewise for return type and local "insn".
24363 (mep_expand_prologue): Likewise for local "insn".
24364 (mep_final_prescan_insn): Likewise for param "insn".
24365 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
24366 "next", "follow", "x".
24367 (mep_insert_repeat_label_last): Likewise for return type, param
24368 "last_insn", and locals "next", "prev". Strengthen param "label"
24369 from rtx to rtx_code_label *.
24370 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
24372 (struct mep_doloop_end): Likewise for fields "insn" and
24374 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
24375 Strengthen local "repeat_label" from rtx to rtx_code_label *.
24376 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
24378 (mep_invert_branch): Likewise for params "insn" and "after".
24379 (mep_reorg_erepeat): Likewise for param "insns" and locals
24380 "insn", "prev", "new_last", "barrier", "user". Strengthen local
24381 "l" from rtx to rtx_code_label *.
24382 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
24383 from rtx to rtx_insn *.
24384 (mep_reorg_addcombine): Likewise for param "insns" and locals
24386 (add_sp_insn_p): Likewise for param "insn".
24387 (mep_reorg_noframe): Likewise for param "insns" and locals
24388 "start_frame_insn", "end_frame_insn", "next".
24389 (mep_reorg): Likewise for local "insns".
24390 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
24392 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
24393 (mep_mul_hilo_bypass_p): Likewise.
24394 (mep_ipipe_ldc_p): Likewise for param "insn".
24395 (mep_make_bundle): Likewise for return type, param "cop" and local
24396 "insn", splitting out the latter into a new local "seq" for when it
24397 is a SEQUENCE rather than an insn.
24398 (core_insn_p): Likewise for param "insn".
24399 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
24400 "last", "first", "note", "prev", "core_insn".
24402 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24404 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
24406 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
24407 (m68k_final_prescan_insn): Likewise for first param.
24409 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
24410 (m68k_set_frame_related): Likewise for param "insn".
24411 (output_btst): Likewise for param "insn".
24412 (m68k_final_prescan_insn): Likewise.
24413 (m68k_move_to_reg): Likewise for local "insn".
24414 (m68k_call_tls_get_addr): Likewise for local "insns".
24415 (m68k_call_m68k_read_tp): Likewise.
24416 (strict_low_part_peephole_ok): Likewise for param "first_insn".
24417 (m68k_output_mi_thunk): Likewise for local "insn".
24419 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24421 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
24422 first param from rtx to rtx_insn *.
24423 (iq2000_adjust_insn_length): Likewise.
24424 (iq2000_output_conditional_branch): Likewise.
24425 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
24426 "insn" and local "nop_insn".
24427 (iq2000_annotate_frame_insn): Likewise for param "insn".
24428 (iq2000_expand_prologue): Likewise for both locals "insn".
24429 (iq2000_adjust_insn_length): Likewise for param "insn".
24430 (iq2000_output_conditional_branch): Likewise.
24432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24434 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
24435 "insns" from rtx to rtx_insn *.
24436 (ia64_emit_cond_move): Likewise for locals "insn", "first".
24437 (struct spill_fill_data): Likewise for field "init_after" and for
24438 elements of array field "prev_insn".
24439 (spill_restore_mem): Likewise for locals "insn", "first".
24440 (do_spill): Likewise for local "insn".
24441 (do_restore): Likewise.
24442 (ia64_expand_prologue): Likewise.
24443 (ia64_expand_epilogue): Likewise.
24444 (emit_insn_group_barriers): Likewise for locals "insn",
24446 (emit_all_insn_group_barriers): Likewise for locals "insn",
24448 (dfa_stop_insn): Likewise for this global.
24449 (dfa_pre_cycle_insn): Likewise.
24450 (ia64_nop): Likewise.
24451 (final_emit_insn_group_barriers): Likewise for locals "insn",
24453 (emit_predicate_relation_info): Likewise for locals "head", "n",
24455 (ia64_reorg): Likewise for local "insn".
24456 (ia64_output_mi_thunk): Likewise.
24457 (expand_vec_perm_interleave_2): Likewise for local "seq".
24459 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24461 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
24462 param 1 "insn" from rtx to rtx_insn *.
24463 (ix86_use_lea_for_mov): Likewise.
24464 (ix86_avoid_lea_for_addr): Likewise.
24465 (ix86_split_lea_for_addr): Likewise.
24466 (ix86_lea_for_add_ok): Likewise.
24467 (ix86_output_call_insn): Likewise.
24469 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
24470 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
24471 (ix86_output_function_epilogue): Likewise for locals "insn",
24472 "deleted_debug_label".
24473 (legitimize_tls_address): Likewise for local "insn".
24474 (get_some_local_dynamic_name): Likewise.
24475 (increase_distance): Likewise for params "prev", "next".
24476 (distance_non_agu_define_in_bb): Likewise for params "insn",
24477 "start" and locals "prev", "next".
24478 (distance_non_agu_define): Likewise for param "insn".
24479 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
24480 locals "next", "prev".
24481 (distance_agu_use): Likewise for param "insn".
24482 (ix86_lea_outperforms): Likewise.
24483 (ix86_ok_to_clobber_flags): Likewise.
24484 (ix86_avoid_lea_for_add): Likewise.
24485 (ix86_use_lea_for_mov): Likewise.
24486 (ix86_avoid_lea_for_addr): Likewise.
24487 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
24488 (ix86_split_lea_for_addr): Likewise for param "insn".
24489 (ix86_lea_for_add_ok): Likewise for param "insn".
24490 (ix86_expand_carry_flag_compare): Likewise for local
24492 (ix86_expand_int_movcc): Likewise.
24493 (ix86_output_call_insn): Likewise for param "insn".
24494 (ix86_output_call_insn): Likewise for local "i".
24495 (x86_output_mi_thunk): Introduce local "insn", using it in place
24496 of "tmp" when dealing with insns.
24497 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
24499 (ix86_pad_returns): Likewise for locals "ret", "prev".
24500 (ix86_count_insn_bb): Likewise for local "insn".
24501 (ix86_pad_short_function): Likewise for locals "ret", "insn".
24502 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
24503 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
24504 (expand_vec_perm_interleave2): Likewise for local "seq".
24505 (expand_vec_perm_vperm2f128_vblend): Likewise.
24506 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
24507 call to for_each_rtx with for_each_rtx_in_insn.
24509 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24511 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
24512 "label" from rtx to rtx_code_label *.
24513 (ix86_expand_prologue): Likewise.
24514 (ix86_expand_split_stack_prologue): Likewise for locals "label",
24516 (ix86_split_idivmod): Likewise for locals "end_label" and
24518 (ix86_expand_branch): Likewise for local "label2".
24519 (ix86_expand_aligntest): Likewise for return type and local "label".
24520 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
24522 (expand_movmem_epilogue): Likewise for the various locals named
24524 (expand_setmem_epilogue): Likewise.
24525 (expand_small_movmem_or_setmem): Likewise for local "label".
24526 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24527 Strengthen param "done_label" from rtx * to rtx_code_label **.
24528 Strengthen locals "loop_label" and "label" from rtx to
24530 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24531 Likewise for locals "loop_label", "label".
24532 (ix86_expand_set_or_movmem): Likewise for locals "label",
24533 "jump_around_label", "hot_label".
24534 (ix86_expand_strlensi_unroll_1): Likewise for locals
24535 "align_2_label", align_3_label", "align_4_label", "end_0_label",
24537 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
24538 (void ix86_emit_i387_log1p): Likewise for locals "label1",
24539 "label2", "jump_label".
24540 (ix86_expand_sse_compare_and_jump): Likewise for return type and
24542 (ix86_expand_lfloorceil): Likewise for local "label".
24543 (ix86_expand_rint): Likewise.
24544 (ix86_expand_floorceildf_32): Likewise.
24545 (ix86_expand_floorceil): Likewise.
24546 (ix86_expand_rounddf_32): Likewise.
24547 (ix86_expand_trunc): Likewise.
24548 (ix86_expand_truncdf_32): Likewise.
24549 (ix86_expand_round): Likewise.
24551 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24553 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
24554 first param from rtx to rtx_insn *.
24555 (h8300_insn_length_from_table): Likewise.
24556 * config/h8300/h8300.c (F): Likewise for return type and param
24558 (Fpa): Add a checked cast to rtx_insn *.
24559 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
24561 (final_prescan_insn): Likewise for param "insn".
24562 (h8300_binary_length): Likewise.
24563 (h8300_insn_length_from_table): Likewise.
24565 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24567 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
24568 Strengthen first param "insn" from rtx to rtx_insn *.
24570 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
24572 (frame_insn): Likewise for return type. Introduce local "insn"
24573 for use in place of local "x" for use as an rtx_insn *.
24574 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
24575 (epiphany_expand_prologue): Likewise for local "insn".
24576 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
24577 * config/epiphany/resolve-sw-modes.c
24578 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
24581 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24583 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
24584 param from rtx to rtx_insn *.
24585 (c6x_final_prescan_insn): Likewise for first param.
24587 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
24588 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
24589 (c6x_expand_compare): Strengthen local "insns" from rtx to
24591 (c6x_get_unit_specifier): Likewise for param "insn".
24592 (c6x_print_unit_specifier_field): Likewise.
24593 (c6x_final_prescan_insn): Likewise.
24594 (emit_add_sp_const): Likewise for local "insn".
24595 (c6x_expand_prologue): Likewise.
24597 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24599 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
24600 param 1 from rtx to rtx_insn *.
24601 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
24602 the various locals named "insn".
24603 (expand_epilogue_reg_restore): Likewise.
24604 (frame_related_constant_load): Likewise.
24605 (add_to_reg): Likewise.
24606 (emit_link_insn): Likewise.
24607 (do_link): Likewise.
24608 (expand_interrupt_handler_prologue): Likewise.
24609 (branch_dest): Likewise for param "branch".
24610 (asm_conditional_branch): Likewise for param "insn".
24611 (gen_one_bundle): Likewise for elements of param "slot" and local
24613 (bfin_gen_bundles): Likewise for locals "insn", "next" and
24614 elements of local "slot".
24615 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24616 "queue", "next_queue", "prev".
24617 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
24618 (add_sched_insns_for_speculation): Likewise for local "insn".
24620 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24622 * config/avr/avr-protos.h (output_movqi): Strengthen first param
24623 from rtx to rtx_insn *.
24624 (output_movhi): Likewise.
24625 (output_movsisf): Likewise.
24626 (avr_out_tstsi): Likewise.
24627 (avr_out_tsthi): Likewise.
24628 (avr_out_tstpsi): Likewise.
24629 (avr_out_compare): Likewise.
24630 (avr_out_compare64): Likewise.
24631 (avr_out_movpsi): Likewise.
24632 (ashlqi3_out): Likewise.
24633 (ashlhi3_out): Likewise.
24634 (ashlsi3_out): Likewise.
24635 (ashrqi3_out): Likewise.
24636 (ashrhi3_out): Likewise.
24637 (ashrsi3_out): Likewise.
24638 (lshrqi3_out): Likewise.
24639 (lshrhi3_out): Likewise.
24640 (lshrsi3_out): Likewise.
24641 (avr_out_ashlpsi3): Likewise.
24642 (avr_out_ashrpsi3): Likewise.
24643 (avr_out_lshrpsi3): Likewise.
24644 (avr_out_fract): Likewise.
24645 (avr_out_sbxx_branch): Likewise.
24646 (avr_out_round): Likewise.
24647 (avr_out_xload): Likewise.
24648 (avr_out_movmem): Likewise.
24649 (adjust_insn_length): Likewise.
24650 (avr_out_lpm): Likewise.
24651 (reg_unused_after): Likewise.
24652 (_reg_unused_after): Likewise.
24653 (avr_jump_mode): Likewise for second param.
24654 (jump_over_one_insn): Likewise for first param.
24655 (avr_final_prescan_insn): Likewise.
24656 (out_shift_with_cnt): Likewise for second param.
24658 * config/avr/avr.c (get_sequence_length): Likewise for param
24659 "insns" and local "insn".
24660 (emit_push_byte): Likewise for local "insn".
24661 (emit_push_sfr): Likewise.
24662 (avr_prologue_setup_frame): Likewise for locals "insn",
24663 "fp_plus_insns", "sp_plus_insns".
24664 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
24666 (avr_jump_mode): Likewise for param "insn".
24667 (avr_final_prescan_insn): Likewise.
24668 (avr_find_unused_d_reg): Likewise.
24669 (avr_out_lpm_no_lpmx): Likewise.
24670 (avr_out_lpm): Likewise.
24671 (avr_out_xload): Likewise.
24672 (output_movqi): Likewise.
24673 (output_movhi): Likewise.
24674 (out_movqi_r_mr): Likewise.
24675 (out_movhi_r_mr): Likewise.
24676 (out_movsi_r_mr): Likewise.
24677 (out_movsi_mr_r): Likewise.
24678 (output_movsisf): Likewise.
24679 (avr_out_load_psi): Likewise.
24680 (avr_out_store_psi): Likewise.
24681 (avr_out_movpsi): Likewise.
24682 (out_movqi_mr_r): Likewise.
24683 (avr_out_movhi_mr_r_xmega): Likewise.
24684 (out_movhi_mr_r): Likewise.
24685 (compare_condition): Likewise for param "insn" and local "next".
24686 (compare_sign_p): Likewise for param "insn".
24687 (compare_diff_p): Likewise.
24688 (compare_eq_p): Likewise.
24689 (avr_out_compare): Likewise.
24690 (avr_out_compare64): Likewise.
24691 (avr_out_tsthi): Likewise.
24692 (avr_out_tstpsi): Likewise.
24693 (avr_out_tstsi): Likewise.
24694 (out_shift_with_cnt): Likewise.
24695 (ashlqi3_out): Likewise.
24696 (ashlhi3_out): Likewise.
24697 (avr_out_ashlpsi3): Likewise.
24698 (ashlsi3_out): Likewise.
24699 (ashrqi3_out): Likewise.
24700 (ashrhi3_out): Likewise.
24701 (avr_out_ashrpsi3): Likewise.
24702 (ashrsi3_out): Likewise.
24703 (lshrqi3_out): Likewise.
24704 (lshrhi3_out): Likewise.
24705 (avr_out_lshrpsi3): Likewise.
24706 (lshrsi3_out): Likewise.
24707 (avr_out_fract): Likewise.
24708 (avr_out_round): Likewise.
24709 (avr_adjust_insn_length): Likewise.
24710 (reg_unused_after): Likewise.
24711 (_reg_unused_after): Likewise.
24712 (avr_compare_pattern): Likewise.
24713 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
24714 and locals "branch1", "branch2", "insn2", "jump".
24715 (avr_reorg): Likewise for local "insn".
24716 (avr_2word_insn_p): Likewise for param "insn".
24717 (jump_over_one_insn_p): Likewise.
24718 (avr_out_sbxx_branch): Likewise.
24719 (avr_out_movmem): Likewise.
24721 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24723 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
24724 param from rtx to rtx_insn *.
24725 (thumb1_final_prescan_insn): Likewise.
24726 (thumb2_final_prescan_insn): Likewise.
24728 * config/arm/arm.c (emit_set_insn): Strengthen return type from
24730 (struct minipool_node): Likewise for field "insn".
24731 (dump_minipool): Likewise for param "scan".
24732 (create_fix_barrier): Likewise for local "from". Strengthen local
24733 "label" from rtx to rtx_code_label *.
24734 (push_minipool_barrier): Strengthen param "insn" from rtx to
24736 (push_minipool_fix): Likewise.
24737 (note_invalid_constants): Likewise.
24738 (thumb2_reorg): Likewise for local "insn".
24739 (arm_reorg): Likewise.
24740 (thumb2_final_prescan_insn): Likewise for param
24741 "insn" and local "first_insn".
24742 (arm_final_prescan_insn): Likewise for param "insn" and locals
24743 "start_insn", "this_insn".
24744 (arm_debugger_arg_offset): Likewise for param "insn".
24745 (thumb1_emit_multi_reg_push): Likewise for return type and local
24747 (thumb1_final_prescan_insn): Likewise for param "insn".
24748 (thumb_far_jump_used_p): Likewise for local "insn".
24749 (thumb1_expand_prologue): Likewise.
24750 (arm_expand_epilogue_apcs_frame): Likewise.
24751 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
24752 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
24753 from rtx to rtx_code_label *.
24754 (arm_split_atomic_op): Likewise for local "label".
24755 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
24757 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24759 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
24760 first param from rtx to rtx_insn *.
24761 (arc_verify_short): Likewise.
24762 (arc_short_long): Likewise.
24763 (arc_need_delay): Likewise.
24765 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
24767 (arc_ccfsm_advance): Likewise for param "insn" and locals
24768 "start_insn", "this_insn".
24769 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
24770 (arc_ccfsm_post_advance): Likewise for param "insn".
24771 (arc_next_active_insn): Likewise for return type and param "insn".
24772 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
24773 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
24774 (output_short_suffix): Likewise for local "insn".
24775 (arc_final_prescan_insn): Likewise for param "insn". Remove
24776 now-redundant checked cast.
24777 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
24778 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
24779 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
24780 for use where lc_set became an insn.
24781 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
24783 (arc_get_insn_variants): Likewise for local "prev".
24784 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
24786 (arc_predicate_delay_insns): Likewise for local "insn".
24787 (arc_pad_return): Likewise for local "prev". For now, add a
24788 checked cast when extracting the insn from "final_sequence".
24789 (arc_short_long): Likewise for param "insn".
24790 (arc_need_delay): Likewise for param "insn" and local "next".
24791 (arc_label_align): Likewise for locals "prev", "next".
24793 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24795 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
24796 "insn" from rtx to rtx_insn *.
24797 (alpha_gp_save_rtx): Likewise for local "seq".
24798 (alpha_instantiate_decls): Likewise for local "top".
24799 (get_some_local_dynamic_name): Likewise for local "insn".
24800 (alpha_does_function_need_gp): Likewise.
24801 (set_frame_related_p): Likewise for return type and for locals
24803 (emit_frame_store_1): Likewise for local "insn".
24804 (alpha_expand_prologue): Likewise for locals "insn", "seq".
24805 (alpha_end_function): Likewise for local "insn".
24806 (alpha_output_mi_thunk_osf): Likewise.
24807 (alphaev4_insn_pipe): Likewise for param "insn".
24808 (alphaev5_insn_pipe): Likewise.
24809 (alphaev4_next_group): Likewise for return type and param 1
24811 (alphaev5_next_group): Likewise.
24812 (alpha_align_insns_1): Likewise for return type and param 1 of
24813 callback param "next_group", and for locals "i", "next", "prev",
24814 "where", "where2", "insn".
24816 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
24818 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
24819 rather than modifying the stmt.
24821 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24823 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
24824 cgraph_state conversion.
24826 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24828 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24829 Strengthen local "insns" from rtx to rtx_insn *.
24830 (aarch64_set_frame_expr): Likewise for local "insn".
24831 (aarch64_save_or_restore_fprs): Likewise.
24832 (aarch64_save_or_restore_callee_save_registers): Likewise.
24833 (aarch64_expand_prologue): Likewise.
24834 (aarch64_expand_epilogue): Likewise.
24835 (aarch64_output_mi_thunk): Likewise.
24836 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
24837 "label2" from rtx to rtx_code_label *.
24838 (aarch64_split_atomic_op): Likewise for local "label".
24840 2014-08-25 Martin Liska <mliska@suse.cz>
24842 * cgraph.h (symtab_node):
24843 (bool needed_p (void)): created from decide_is_symbol_needed
24844 (bool referred_to_p (void)): created from referred_to_p
24845 (static cgraph_node *get_for_asmname (tree asmname)):
24846 created from symtab_node_for_asm
24847 * cgraph.h (cgraph_node):
24848 (void assemble_thunks_and_aliases (void)):
24849 created from assemble_thunks_and_aliases
24850 (void expand (void)): created from expand_function
24851 (static void finalize_function (tree, bool)):
24852 created from cgraph_finalize_function
24853 (static cgraph_local_info *local_info (tree decl)):
24854 created from cgraph_local_info
24855 (static cgraph_global_info *global_info (tree)):
24856 created from cgraph_global_info
24857 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
24858 * cgraph.h (varpool_node):
24859 (static void add (tree decl): created from varpool_add_new_variable
24860 * cgraph.h (cgraph_edge):
24861 void remove (void);
24862 (void remove_caller (void)): created from cgraph_edge_remove_caller
24863 (void remove_callee (void)): created from cgraph_edge_remove_callee
24864 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
24865 created from cgraph_set_call_stmt
24866 (void redirect_callee (cgraph_node *n)): created from
24867 cgraph_redirect_edge_callee
24868 (cgraph_edge *make_direct (cgraph_node *callee)): created from
24869 cgraph_make_edge_direct
24870 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
24871 gimple redirect_call_stmt_to_callee (void)): created from
24872 cgraph_turn_edge_to_speculative
24873 (void speculative_call_info (cgraph_edge *&direct,
24874 cgraph_edge *&indirect, ipa_ref *&reference)): created from
24875 cgraph_speculative_call_info
24876 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt,
24877 unsigned stmt_uid, gcov_type count_scale,
24878 int freq_scale, bool update_original)): created from cgraph_clone_edge
24879 (cgraph_edge *resolve_speculation (tree callee_decl)):
24880 created from cgraph_resolve_speculation
24881 (bool cannot_lead_to_return_p (void)): created from
24882 cannot_lead_to_return_p
24883 (bool recursive_p (void)): created from cgraph_edge_recursive_p
24884 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
24885 (static unsigned int rebuild_edges (void)): created from
24886 rebuild_cgraph_edges
24887 (static void rebuild_references (void)): created from
24888 cgraph_rebuild_references
24889 * cgraph.h (symbol_table):
24890 (create_reference): renamed from add_reference
24891 (maybe_create_reference): renamed from maybe_add_reference
24892 (void register_symbol (symtab_node *node)): new function
24893 (void clear_asm_symbols (void)): new function
24894 (void unregister (symtab_node *node)): new function
24895 (void release_symbol (cgraph_node *node, int uid)): new function
24896 (cgraph_node * allocate_cgraph_symbol (void)): new function
24897 (void initialize (void)): created from cgraph_init
24898 (symtab_node *first_symbol (void)):new function
24899 (asm_node *first_asm_symbol (void)):new function
24900 (symtab_node *first_defined_symbol (void)):new function
24901 (varpool_node *first_variable (void)):new function
24902 (varpool_node *next_variable (varpool_node *node)):new function
24903 (varpool_node *first_static_initializer (void)):new function
24904 (varpool_node *next_static_initializer (varpool_node *node)):new
24906 (varpool_node *first_defined_variable (void)):new function
24907 (varpool_node *next_defined_variable (varpool_node *node)):new function
24908 (cgraph_node *first_defined_function (void)):new function
24909 (cgraph_node *next_defined_function (cgraph_node *node)):new function
24910 (cgraph_node *first_function (void)):new function
24911 (cgraph_node *next_function (cgraph_node *node)):new function
24912 (cgraph_node *first_function_with_gimple_body (void)):new function
24913 (asm_node *finalize_toplevel_asm (tree asm_str)): created from
24915 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
24916 created from symtab_remove_unreachable_nodes
24917 (void remove_unreferenced_decls (void)): created from
24918 varpool_remove_unreferenced_decls
24919 (void process_new_functions (void)): created from
24920 cgraph_process_new_functions
24921 (void process_same_body_aliases (void)): created from
24922 cgraph_process_same_body_aliases
24923 (bool output_variables (void)): created from
24924 varpool_node::output_variables
24925 (void output_asm_statements (void)): created from output_asm_statements
24926 (void finalize_compilation_unit (void)): created from
24927 finalize_compilation_unit
24928 (void compile (void)): created from compile
24929 (void output_weakrefs (void)): created from output_weakrefs
24930 (cgraph_node *create_empty (void)): created from
24931 cgraph_node::create_empty
24932 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee,
24933 gimple call_stmt, gcov_type count, int freq,
24934 bool indir_unknown_callee)): created from cgraph_node::create_edge
24935 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
24936 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
24937 created from cgraph_next_function_with_gimple_body
24938 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
24939 created from cgraph_remove_edge_removal_hook
24940 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook,
24941 void *)): created from cgraph_add_node_removal_hook
24942 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
24943 created from cgraph_remove_node_removal_hook
24944 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook,
24945 void *)): created from varpool_add_node_removal_hook
24946 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
24947 created from varpool_remove_node_removal_hook
24948 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook,
24949 void *)): created from cgraph_add_function_insertion_hook
24950 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
24951 created from cgraph_remove_function_insertion_hook
24952 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook,
24953 void *)): created from varpool_add_variable_insertion_hook
24954 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
24955 created from varpool_remove_variable_insertion_hook
24956 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook,
24957 void *)): created from cgraph_add_edge_duplication_hook
24958 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
24959 created from cgraph_remove_edge_duplication_hook
24960 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook,
24961 void *)): created from cgraph_add_node_duplication_hook
24962 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
24963 created from cgraph_remove_node_duplication_hook
24964 (void call_edge_removal_hooks (cgraph_edge *e)):
24965 created from cgraph_call_edge_removal_hooks
24966 (void call_cgraph_insertion_hooks (cgraph_node *node)):
24967 created from call_function_insertion_hooks
24968 (void call_cgraph_removal_hooks (cgraph_node *node)):
24969 created from cgraph_call_node_removal_hooks
24970 (void call_cgraph_duplication_hooks (cgraph_node *node,
24971 cgraph_node *node2)): created from cgraph_node::call_duplication_hooks
24972 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
24973 created from cgraph_call_edge_duplication_hooks
24974 (void call_varpool_removal_hooks (varpool_node *node)):
24975 created from varpool_call_node_removal_hooks
24976 (void call_varpool_insertion_hooks (varpool_node *node)):
24977 created from varpool_call_variable_insertion_hooks
24978 (void insert_to_assembler_name_hash (symtab_node *node,
24979 bool with_clones)): created from insert_to_assembler_name_hash
24980 (void unlink_from_assembler_name_hash (symtab_node *node,
24981 bool with_clones)): created from unlink_from_assembler_name_hash
24982 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
24983 created from symtab_prevail_in_asm_name_hash
24984 (void symtab_initialize_asm_name_hash (void)):
24985 created from symtab_initialize_asm_name_hash
24986 (void change_decl_assembler_name (tree decl, tree name)):
24987 created from change_decl_assembler_name
24988 (void materialize_all_clones (void)): created from
24989 cgraph_materialize_all_clones
24990 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
24991 created from decl_assembler_name_hash
24992 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
24993 created from decl_assembler_name_equal
24994 (static hashval_t hash_node_by_assembler_name (const void *p)):
24995 created from hash_node_by_assembler_name
24996 (static int eq_assembler_name (const void *p1, const void *p2)):
24997 created from eq_assembler_name
24999 2014-08-25 Marek Polacek <polacek@redhat.com>
25001 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
25003 2014-08-25 Petr Murzin <petr.murzin@intel.com>
25005 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
25006 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
25007 SWI1248_AVX512BW mode iterator.
25009 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
25012 * config/sh/predicates.md (general_extend_operand): Disable
25013 TRUNCATE before reload completes.
25015 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
25017 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
25019 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
25022 * config/sh/sh.opt (musermode): Allow negative form.
25023 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
25024 targets that don't support it.
25025 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
25026 Document -mno-usermode option.
25028 2014-08-24 Kito Cheng <kito@0xlab.org>
25030 * system.h (CALLER_SAVE_PROFITABLE): Poison.
25031 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
25032 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
25033 * doc/tm.texi: Regenerate.
25035 2014-08-24 Kito Cheng <kito@0xlab.org>
25037 * ira.c: Fix typo in comment.
25039 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
25041 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
25042 Deprecate c++1y. Change language to reflect greater confidence in C++14.
25044 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
25047 * config/pa/pa.c (pa_output_function_epilogue): Don't set
25048 last_address when the current function is a thunk.
25049 (pa_asm_output_mi_thunk): When we don't have named sections or they
25050 are not being used, check that thunk can reach the stub table with a
25053 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25055 * web.c (union_match_dups): Strengthen param "insn" from rtx to
25057 (pass_web::execute): Likewise for local "insn".
25059 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25061 * var-tracking.c (struct micro_operation_def): Strengthen field
25062 "insn" from rtx to rtx_insn *.
25063 (struct emit_note_data_def): Likewise.
25064 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
25065 (vt_stack_adjustments): Likewise for local "insn".
25066 (adjust_insn): Likewise for param "insn".
25067 (val_store): Likewise.
25068 (val_resolve): Likewise.
25069 (struct count_use_info): Likewise for field "insn".
25070 (log_op_type): Likewise for param "insn".
25071 (reverse_op): Likewise.
25072 (prepare_call_arguments): Likewise.
25073 (add_with_sets): The initial param takes an insn, but we can't
25074 yet strengthen it from rtx to rtx_insn * since it's used as a
25075 cselib_record_sets_hook callback. For now rename initial param
25076 from "insn" to "uncast_insn", and introduce a local "insn" of
25077 the stronger rtx_insn * type, with a checked cast.
25078 (compute_bb_dataflow): Strengthen local "insn" from rtx to
25080 (emit_note_insn_var_location): Likewise.
25081 (emit_notes_for_changes): Likewise.
25082 (emit_notes_for_differences): Likewise.
25083 (next_non_note_insn_var_location): Likewise for return type and
25085 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
25086 (vt_initialize): Likewise for local "insn".
25087 (delete_debug_insns): Likewise for locals "insn" and "next".
25089 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25091 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
25093 (mark_constant_pool): Likewise for local "insn".
25095 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25097 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
25099 (dead_debug_promote_uses): Likewise.
25100 (dead_debug_insert_temp): Likewise.
25102 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25104 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
25105 from const_rtx to const rtx_insn *.
25106 (store_killed_after): Likewise. Strengthen locals "last", "act"
25107 from rtx to rtx_insn *.
25108 (store_killed_before): Strengthen param "insn" from const_rtx to
25109 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
25110 (find_moveable_store): Strengthen param "insn" from rtx to
25112 (compute_store_table): Likewise for local "insn".
25113 (insert_insn_start_basic_block): Likewise for param "insn" and
25114 locals "prev", "before", "insn".
25115 (insert_store): For now, add a checked cast to rtx_insn * on the
25116 result of gen_move_insn.
25117 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
25119 (replace_store_insn): Likewise. For now, add a checked cast to
25120 rtx_insn * on the result of gen_move_insn.
25122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25124 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
25126 (expand_sjlj_dispatch_table): Likewise.
25128 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25130 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
25131 "insn" from rtx to rtx_insn *.
25133 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25135 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
25136 "insn" from rtx to rtx_insn *.
25137 (dup_block_and_redirect): Likewise for param 3 "before".
25139 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
25140 from rtx to rtx_insn *.
25141 (move_insn_for_shrink_wrap): Likewise.
25142 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
25143 (dup_block_and_redirect): Likewise for param "before" and local
25145 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
25147 (convert_to_simple_return): Likewise for local "start".
25149 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
25150 Strengthen local "insn" from rtx to rtx_insn *, for use when
25151 invoking requires_stack_frame_p.
25153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25155 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
25157 (speculate_expr): Likewise for locals "orig_insn_rtx",
25159 (eq_transformed_insns): Likewise for locals "i1", "i2".
25160 (check_for_new_jump): Likewise for return type and local "end".
25161 (find_new_jump): Likewise for return type and local "jump".
25162 (sel_split_edge): Likewise for local "jump".
25163 (sel_create_recovery_block): Likewise.
25164 (sel_redirect_edge_and_branch_force): Likewise.
25165 (sel_redirect_edge_and_branch): Likewise.
25167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25169 * sel-sched.c (substitute_reg_in_expr): Strengthen local
25170 "new_insn" from rtx to rtx_insn *.
25171 (create_insn_rtx_with_rhs): Likewise for return type and for local
25173 (create_insn_rtx_with_lhs): Likewise.
25174 (create_speculation_check): Likewise for local "insn_rtx".
25175 (implicit_clobber_conflict_p): Likewise for local "insn".
25176 (get_expr_cost): Likewise.
25177 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
25178 (move_cond_jump): Likewise for locals "next", "prev", "link",
25179 "head", "from", "to".
25181 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25183 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
25184 "next" from rtx to rtx_insn *.
25185 (find_conditional_protection): Likewise for local "next".
25186 (is_conditionally_protected): Likewise for local "insn1".
25187 (is_pfree): Likewise for locals "insn1", "insn2".
25189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25191 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
25192 from rtx to rtx_insn *.
25194 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
25195 locals "insn1", "insn2" from rtx to rtx_insn *.
25196 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
25197 locals "insn", "prev", "last_jump", "next_tail".
25198 (schedule_ebb): Likewise for params "head", "tail".
25199 (schedule_ebbs): Likewise for locals "tail", "head".
25201 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
25202 to rtx_insn on "last_insn" in one of the invocations of
25205 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25207 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
25208 "elem", "insn" from rtx to rtx_insn *.
25209 (change_spec_dep_to_hard): Likewise.
25210 (get_back_and_forw_lists): Likewise for local "con".
25211 (sd_add_dep): Likewise for locals "elem", "insn".
25212 (sd_resolve_dep): Likewise for locals "pro", "con".
25213 (sd_unresolve_dep): Likewise.
25214 (sd_delete_dep): Likewise.
25215 (chain_to_prev_insn): Likewise for local "pro".
25216 (find_inc): Likewise for locals "pro", "con".
25218 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25220 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
25222 (reg_set_between_p): Strengthen local "insn" from const_rtx to
25224 (modified_between_p): Strengthen local "insn" from rtx to
25226 (remove_reg_equal_equiv_notes_for_regno): Likewise.
25227 (keep_with_call_p): Strengthen local "i2" from const_rtx to
25230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25232 * resource.c (next_insn_no_annul): Strengthen local "next" from
25234 (mark_referenced_resources): Likewise for local "insn".
25236 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25238 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
25240 (find_reloads): Likewise for param 1.
25241 (subst_reloads): Likewise for sole param.
25242 (find_equiv_reg): Likwise for param 2.
25243 (regno_clobbered_p): Likwise for param 2.
25244 (reload): Likewise for param 1.
25246 * caller-save.c (save_call_clobbered_regs): Strengthen local
25247 "insn" from rtx to rtx_insn *.
25248 (insert_one_insn): Likewise for local "insn".
25250 * reload.c (this_insn): Likewise for this global.
25251 (find_reloads): Likewise for param "insn".
25252 (find_reloads_toplev): Likewise.
25253 (find_reloads_address): Likewise.
25254 (subst_reg_equivs): Likewise.
25255 (update_auto_inc_notes): Likewise.
25256 (find_reloads_address_1): Likewise.
25257 (find_reloads_subreg_address): Likewise.
25258 (subst_reloads): Likewise.
25259 (find_equiv_reg): Likewise, also for local "p".
25260 (regno_clobbered_p): Likewise for param "insn".
25262 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
25264 (spill_reg_store): Likewise for the elements of this array.
25265 (remove_init_insns): Likewise for local "equiv_insn".
25266 (will_delete_init_insn_p): Likewise for param "insn".
25267 (reload): Likewise for param ""first" and local "insn".
25268 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
25270 (calculate_elim_costs_all_insns): Likewise.
25271 (delete_caller_save_insns): Likewise.
25272 (spill_failure): Likewise for param "insn".
25273 (delete_dead_insn): Likewise.
25274 (set_label_offsets): Likewise.
25275 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
25277 (elimination_costs_in_insn): Likewise for param "insn".
25278 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
25279 when referring to an insn.
25280 (set_initial_label_offsets): Likewise.
25281 (set_offsets_for_label): Strengthen param "insn" from rtx to
25283 (init_eliminable_invariants): Likewise for param "first" and local
25285 (fixup_eh_region_note): Likewise for param "insn".
25286 (reload_as_needed): Likewise for locals "prev", "insn",
25287 "old_next", "old_prev", "next".
25288 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
25290 (reload_inheritance_insn): Strengthen elements of this array from
25292 (failed_reload): Likewise for param "insn".
25293 (choose_reload_regs): Likewise for local "insn". Replace use of
25294 NULL_RTX with NULL when referring to an insn.
25295 (input_reload_insns): Strengthen elements of this array from rtx
25297 (other_input_address_reload_insns): Likewise for this global.
25298 (other_input_reload_insns): Likewise for this global.
25299 (input_address_reload_insns): Likwise for the elements of this
25301 (inpaddr_address_reload_insns): Likwise for the elements of this
25303 (output_reload_insns): Likewise for the elements of this array.
25304 (output_address_reload_insns): Likewise for the elements of this
25306 (outaddr_address_reload_insns): Likewise for the elements of this
25308 (operand_reload_insns): Likewise for this global.
25309 (other_operand_reload_insns): Likewise for this global.
25310 (other_output_reload_insns): Likewise for the elements of this
25312 (new_spill_reg_store): Likewise for the elements of this
25314 (emit_input_reload_insns): Likewise for locals "insn", "temp".
25315 Strengthen local "where" from rtx * to rtx_insn **.
25316 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
25317 from rtx to rtx_insn *.
25318 (do_input_reload): Likewise for local "insn".
25319 (do_output_reload): Likewise for local "insn".
25320 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
25321 (emit_insn_if_valid_for_reload): Likewise for return type and local
25322 "last". Add checked cast to rtx_insn when returning "insn" since
25323 this has been through emit_insn.
25324 (gen_reload): Strengthen return type and locals "last", "insn", "set"
25325 from rtx to rtx_insn *. Add checked cast to rtx_insn when
25326 returning "insn" since it's been through
25327 emit_insn_if_valid_for_reload at this point.
25328 (delete_output_reload): Strengthen param "insn" and locals
25329 "output_reload_insn", "i2" from rtx to rtx_insn *.
25330 (delete_address_reloads): Likewise for params "dead_insn",
25331 "current_insn" and locals "prev", "next".
25332 (delete_address_reloads_1): Likewise for params "dead_insn",
25333 "current_insn" and locals "prev", "i2".
25334 (inc_for_reload): Likewise for locals "last", "add_insn".
25335 (add_auto_inc_notes): Strengthen param "insn" from rtx to
25338 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
25339 param of this duplicate of the prototype from reload.h
25341 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25343 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
25345 (regstat_bb_compute_calls_crossed): Likewise.
25347 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25349 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
25351 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
25353 (regrename_analyze): Strengthen local "insn" from rtx to
25355 (scan_rtx_reg): Likewise for param "insn".
25356 (scan_rtx_address): Likewise.
25357 (scan_rtx): Likewise.
25358 (restore_operands): Likewise.
25359 (record_out_operands): Likewise.
25360 (build_def_use): Likewise for local "insn". Replace use of
25361 NULL_RTX with NULL when dealing with an insn.
25363 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25365 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
25366 * reginfo.c (reg_scan): Likewise, also for local "insn".
25367 (reg_scan_mark_refs): Likewise for param "insn".
25368 (init_subregs_of_mode): Likewise for local "insn".
25370 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25372 * regcprop.c (struct queued_debug_insn_change): Strengthen field
25373 "insn" from rtx to rtx_insn *.
25374 (replace_oldest_value_reg): Likewise for param "insn".
25375 (replace_oldest_value_addr): Likewise.
25376 (replace_oldest_value_mem): Likewise.
25377 (apply_debug_insn_changes): Likewise for local "last_insn".
25378 (copyprop_hardreg_forward_1): Likewise for local "insn".
25380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25382 * reg-stack.c (next_flags_user): Strengthen return type and param
25383 "insn" from rtx to rtx_insn *.
25384 (straighten_stack): Likewise for param "insn".
25385 (check_asm_stack_operands): Likewise.
25386 (remove_regno_note): Likewise.
25387 (emit_pop_insn): Likewise for return type, param "insn", local
25389 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
25390 "limit" from rtx to rtx_insn *.
25391 (swap_to_top): Likewise for param "insn".
25392 (move_for_stack_reg): Likewise.
25393 (move_nan_for_stack_reg): Likewise.
25394 (swap_rtx_condition): Likewise.
25395 (compare_for_stack_reg): Likewise.
25396 (subst_all_stack_regs_in_debug_insn): Likewise.
25397 (subst_stack_regs_pat): Likewise, and local "insn2".
25398 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
25400 (subst_stack_regs): Likewise.
25401 (change_stack): Likewise.
25402 (convert_regs_1): Likewise for locals "insn", "next".
25404 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25406 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
25408 (combine_set_extension): Likewise for param "curr_insn".
25409 (transform_ifelse): Likewise for param "def_insn".
25410 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
25411 from vec<rtx> * to vec<rtx_insn *> *.
25412 (is_cond_copy_insn): Likewise for param "insn".
25413 (struct ext_state): Strengthen the four vec fields from vec<rtx>
25414 to vec<rtx_insn *>.
25415 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
25416 local "def_insn" from rtx to rtx_insn *.
25417 (get_sub_rtx): Likewise for param "def_insn".
25418 (merge_def_and_ext): Likewise.
25419 (combine_reaching_defs): Likewise.
25420 (add_removable_extension): Likewise for param "insn".
25421 (find_removable_extensions): Likewise for local "insn".
25422 (find_and_remove_re): Likewise for locals "curr_insn" and
25423 "def_insn". Strengthen locals "reinsn_del_list" and
25424 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
25426 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25428 * recog.c (split_insn): Strengthen param "insn" and locals
25429 "first", "last" from rtx to rtx_insn *.
25430 (split_all_insns): Likewise for locals "insn", "next".
25431 (split_all_insns_noflow): Likewise.
25433 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25435 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
25437 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25438 (debug_rtx_find): Likewise for param 1 "x".
25440 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
25441 const_rtx to const rtx_insn *. Likewise for local "insn".
25442 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25443 (debug_rtx_find): Likewise for param 1 "x".
25444 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
25445 from const_rtx to const rtx_insn * within the appropriate cases of
25446 the switch statement.
25448 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
25449 Strengthen local "insns" from rtx to rtx_insn * since this is
25450 passed to a call to debug_rtx_list.
25452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25454 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
25457 * function.c (stack_protect_epilogue): Add checked cast to
25458 rtx_insn for now when invoking predict_insn_def.
25460 * predict.c (predict_insn): Strengthen param "insn" from rtx to
25462 (predict_insn_def): Likewise.
25463 (rtl_predict_edge): Likewise for local "last_insn".
25464 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
25466 (combine_predictions_for_insn): Strengthen param "insn" from rtx
25468 (bb_estimate_probability_locally): Likewise for local "last_insn".
25469 (expensive_function_p): Likewise for local "insn".
25471 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
25472 local "jmp", since this is used when invoking predict_insn_def.
25474 2014-08-22 Marek Polacek <polacek@redhat.com>
25477 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
25479 2014-08-22 Marek Polacek <polacek@redhat.com>
25482 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
25483 a comparison in parens.
25484 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
25487 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25489 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
25492 * cprop.c (fis_get_condition): Likewise.
25494 * postreload.c (reload_cse_regs): Likewise for param "first".
25495 (reload_cse_simplify): Likewise for param "insn".
25496 (reload_cse_regs_1): Likewise for local "insn".
25497 (reload_cse_simplify_set): Likewise for param "insn".
25498 (reload_cse_simplify_operands): Likewise.
25499 (struct reg_use): Likewise for field "insn".
25500 (reload_combine_purge_insn_uses): Likewise for param "insn".
25501 (fixup_debug_insns): Likewise for params "from", "to" and local
25503 (try_replace_in_use): Likewise for local "use_insn".
25504 (reload_combine_recognize_const_pattern): Likewise for param
25505 "insn" and locals "add_moved_after_insn", "use_insn".
25506 (reload_combine_recognize_pattern): Likewise for param "insn" and
25508 (reload_combine): Likewise for locals "insn", "prev".
25509 (reload_combine_note_use): Likewise for param "insn".
25510 (move2add_use_add2_insn): Likewise.
25511 (move2add_use_add3_insn): Likewise.
25512 (reload_cse_move2add): Likewise, also for local "next".
25513 (move2add_note_store): Likewise for local "insn".
25515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25517 * postreload-gcse.c (struct occr): Strengthen field "insn" from
25519 (struct unoccr): Likewise.
25520 (struct modifies_mem): Likewise.
25521 (alloc_mem): Likewise for local "insn".
25522 (insert_expr_in_table): Likewise for param "insn".
25523 (dump_expr_hash_table_entry): Likewise for local "insn".
25524 (oprs_unchanged_p): Likewise for param "insn".
25525 (load_killed_in_block_p): Likewise for local "setter".
25526 (record_last_reg_set_info): Likewise for param "insn".
25527 (record_last_reg_set_info_regno): Likewise.
25528 (record_last_mem_set_info): Likewise.
25529 (record_last_set_info): Likewise for local "last_set_insn".
25530 (record_opr_changes): Likewise for param "insn".
25531 (hash_scan_set): Likewise.
25532 (compute_hash_table): Likewise for local "insn".
25533 (get_avail_load_store_reg): Likewise for param "insn".
25534 (eliminate_partially_redundant_load): Likewise, also for locals
25535 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
25537 (eliminate_partially_redundant_loads): Likewise for local "insn".
25539 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25541 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
25543 (expand_binop): Likewise for locals "entry_last", "last", "insns"
25544 (expand_twoval_unop): Likewise for locals entry_last", "last".
25545 (expand_twoval_binop): Likewise.
25546 (expand_twoval_binop_libfunc): Likewise for local "insns".
25547 (widen_leading): Likewise for local "last".
25548 (expand_doubleword_clz): Likewise for local "seq". Strengthen
25549 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
25550 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
25551 (expand_parity): Likewise for locals "last" and "seq".
25552 (expand_ffs): Likewise for local "seq". Strengthen local
25553 "nonzero_label" from rtx to rtx_code_label *.
25554 (expand_absneg_bit): Strengthen local "insns" from rtx to
25556 (expand_unop_direct): Likewise for local "last".
25557 (expand_unop): Likewise for locals "last", "insns".
25558 (expand_abs_nojump): Likewise for local "last".
25559 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
25560 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
25562 (expand_copysign_absneg): Strengthen local "label" from rtx to
25564 (expand_copysign_bit): Strengthen local "insns" from rtx to
25566 (struct no_conflict_data): Likewise for fields "first", "insn".
25567 (emit_libcall_block_1): Likewise for param "insns" and locals
25568 "next", "last", "insn".
25569 (emit_libcall_block): For now, add a checked cast to rtx_insn *
25570 on "insns" when invoking emit_libcall_block_1. Ultimately we
25571 want to strengthen insns itself.
25572 (prepare_cmp_insn): Strengthen local "last" from rtx to
25574 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
25575 (prepare_float_lib_cmp): Likewise for local "insns".
25576 (emit_conditional_move): Likewise for local "last".
25577 (emit_conditional_add): Likewise.
25578 (have_sub2_insn): Likewise for local "seq".
25579 (expand_float): Likewise for local "insns". Strengthen locals
25580 "label", "neglabel" from rtx to rtx_code_label *.
25581 (expand_fix): Likewise for locals "last", "insn", "insns" (to
25582 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
25583 (expand_fixed_convert): Likewise for local "insns" (to
25585 (expand_sfix_optab): Likewise for local "last".
25586 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
25587 to rtx_code_label *.
25588 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
25589 from rtx to rtx_insn *.
25590 (expand_atomic_fetch_op): Likewise for local "insn".
25591 (maybe_legitimize_operand_same_code): Likewise for local "last".
25592 (maybe_legitimize_operands): Likewise.
25594 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25596 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
25597 "insn" from rtx to rtx_insn *.
25598 (ps_rtl_insn): Likewise for return type.
25599 (doloop_register_get): Likewise for params "head", "tail" and
25600 locals "insn", "first_insn_not_to_check".
25601 (schedule_reg_move): Likewise for local "this_insn".
25602 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
25603 of gen_move_insn for now.
25604 (reset_sched_times): Strengthen local "insn" from rtx to
25606 (permute_partial_schedule): Likewise.
25607 (duplicate_insns_of_cycles): Likewise for local "u_insn".
25608 (dump_insn_location): Likewise for param "insn".
25609 (loop_canon_p): Likewise for local "insn".
25610 (sms_schedule): Likewise.
25611 (print_partial_schedule): Likewise.
25612 (ps_has_conflicts): Likewise.
25614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25616 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
25617 "tailp" from rtx * to rtx_insn **.
25619 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
25620 from rtx to rtx_insn *.
25621 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
25622 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
25623 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
25625 * modulo-sched.c (const_iteration_count): Strengthen return type
25626 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
25627 use of NULL_RTX with NULL when working with insns.
25628 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
25630 (sms_schedule): Likewise.
25631 * sched-rgn.c (init_ready_list): Likewise, also for locals
25632 "src_head" and "src_next_tail".
25633 (compute_block_dependences): Likewise.
25634 (free_block_dependencies): Likewise.
25635 (debug_rgn_dependencies): Likewise.
25636 (free_rgn_deps): Likewise.
25637 (compute_priorities): Likewise.
25638 (schedule_region): Likewise.
25639 * sel-sched.c (find_ebb_boundaries): Likewise.
25641 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
25642 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
25644 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25646 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
25647 from rtx to rtx_insn *.
25648 (new_seginfo): Likewise for param "insn".
25649 (create_pre_exit): Likewise for locals "last_insn",
25650 "before_return_copy", "return_copy".
25651 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
25654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25656 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
25657 from rtx to rtx_insn *.
25658 (lra_push_insn): Likewise for 1st param.
25659 (lra_push_insn_and_update_insn_regno_info): Likewise.
25660 (lra_pop_insn): Likewise for return type.
25661 (lra_invalidate_insn_data): Likewise for 1st param.
25662 (lra_set_insn_deleted): Likewise.
25663 (lra_delete_dead_insn): Likewise.
25664 (lra_process_new_insns): Likewise for first 3 params.
25665 (lra_set_insn_recog_data): Likewise for 1st param.
25666 (lra_update_insn_recog_data): Likewise.
25667 (lra_set_used_insn_alternative): Likewise.
25668 (lra_invalidate_insn_regno_info): Likewise.
25669 (lra_update_insn_regno_info): Likewise.
25670 (lra_former_scratch_operand_p): Likewise.
25671 (lra_eliminate_regs_1): Likewise.
25672 (lra_get_insn_recog_data): Likewise.
25674 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
25677 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
25679 (substitute_within_insn): New.
25680 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
25681 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
25682 Replace call to "substitute" with call to substitute_within_insn.
25684 * lra-constraints.c (curr_insn): Strengthen from rtx to
25686 (get_equiv_with_elimination): Likewise for param "insn".
25687 (match_reload): Strengthen params "before" and "after" from rtx *
25689 (emit_spill_move): Likewise for return type. Add a checked cast
25690 to rtx_insn * on result of gen_move_insn for now.
25691 (check_and_process_move): Likewise for local "before". Replace
25692 NULL_RTX with NULL when referring to insns.
25693 (process_addr_reg): Strengthen params "before" and "after" from
25694 rtx * to rtx_insn **.
25695 (insert_move_for_subreg): Likewise.
25696 (simplify_operand_subreg): Strengthen locals "before" and "after"
25697 from rtx to rtx_insn *.
25698 (process_address_1): Strengthen params "before" and "after" from
25699 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
25701 (process_address): Strengthen params "before" and "after" from
25702 rtx * to rtx_insn **.
25703 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
25704 (curr_insn_transform): Strengthen locals "before" and "after"
25705 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
25707 (loc_equivalence_callback): Update cast of "data", changing
25708 resulting type from rtx to rtx_insn *.
25709 (substitute_pseudo_within_insn): New.
25710 (inherit_reload_reg): Strengthen param "insn" from rtx to
25711 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
25712 NULL when referring to insns. Add a checked cast to rtx_insn *
25713 when using usage_insn to invoke lra_update_insn_regno_info.
25714 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
25715 likewise for locals "restore", "save". Add checked casts to
25716 rtx_insn * when using usage_insn to invoke
25717 lra_update_insn_regno_info and lra_process_new_insns. Replace
25718 NULL_RTX with NULL when referring to insns.
25719 (split_if_necessary): Strengthen param "insn" from rtx to
25721 (update_ebb_live_info): Likewise for params "head", "tail" and local
25723 (get_last_insertion_point): Likewise for return type and local "insn".
25724 (get_live_on_other_edges): Likewise for local "last".
25725 (inherit_in_ebb): Likewise for params "head", "tail" and locals
25726 "prev_insn", "next_insn", "restore".
25727 (remove_inheritance_pseudos): Likewise for local "prev_insn".
25728 (undo_optional_reloads): Likewise for local "insn".
25730 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
25732 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
25734 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
25736 (spill_pseudos): Likewise for local "insn".
25737 (init_elimination): Likewise.
25738 (process_insn_for_elimination): Likewise for param "insn".
25740 * lra-lives.c (curr_insn): Likewise.;
25742 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
25743 (remove_pseudos): Likewise for param "insn".
25744 (spill_pseudos): Likewise for local "insn".
25745 (lra_final_code_change): Likewise for locals "insn", "curr".
25747 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
25748 (lra_set_insn_deleted): Likewise.
25749 (lra_delete_dead_insn): Likewise, and for local "prev".
25750 (new_insn_reg): Likewise for param "insn".
25751 (lra_set_insn_recog_data): Likewise.
25752 (lra_update_insn_recog_data): Likewise.
25753 (lra_set_used_insn_alternative): Likewise.
25754 (get_insn_freq): Likewise.
25755 (invalidate_insn_data_regno_info): Likewise.
25756 (lra_invalidate_insn_regno_info): Likewise.
25757 (lra_update_insn_regno_info): Likewise.
25758 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
25760 (lra_push_insn_1): Strengthen param "insn" from rtx to
25762 (lra_push_insn): Likewise.
25763 (lra_push_insn_and_update_insn_regno_info): Likewise.
25764 (lra_pop_insn): Likewise for return type and local "insn".
25765 (push_insns): Likewise for params "from", "to", and local "insn".
25766 (setup_sp_offset): Likewise for params "from", "last" and locals
25768 (lra_process_new_insns): Likewise for params "insn", "before",
25769 "after" and local "last".
25770 (struct sloc): Likewise for field "insn".
25771 (lra_former_scratch_operand_p): Likewise for param "insn".
25772 (remove_scratches): Likewise for locals "insn", "last".
25773 (check_rtl): Likewise for local "insn".
25774 (add_auto_inc_notes): Likewise for param "insn".
25775 (update_inc_notes): Likewise for local "insn".
25776 (lra): Replace NULL_RTX with NULL when referring to insn.
25778 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25780 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
25782 (resolve_reg_notes): Likewise.
25783 (resolve_simple_move): Likewise for return type, param "insn", and
25784 locals "insns", "minsn".
25785 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
25786 (resolve_use): Likewise.
25787 (resolve_debug): Likewise.
25788 (find_decomposable_shift_zext): Likewise.
25789 (resolve_shift_zext): Likewise for return type, param "insn", and
25790 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
25791 (decompose_multiword_subregs): Likewise for local "insn",
25792 "orig_insn", "decomposed_shift", "end".
25794 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25796 * basic-block.h (basic_block split_edge_and_insert): Strengthen
25797 param "insns" from rtx to rtx_insn *.
25799 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
25801 (struct iv_to_split): Likewise.
25802 (loop_exit_at_end_p): Likewise for local "insn".
25803 (split_edge_and_insert): Likewise for param "insns".
25804 (compare_and_jump_seq): Likewise for return type, param "cinsn",
25805 and locals "seq", "jump".
25806 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
25807 "branch_code"; update invocations of compare_and_jump_seq to
25808 eliminate NULL_RTX in favor of NULL.
25809 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
25811 (reset_debug_uses_in_loop): Likewise.
25812 (analyze_insn_to_expand_var): Likewise for param "insn".
25813 (analyze_iv_to_split_insn): Likewise.
25814 (analyze_insns_in_loop): Likewise for local "insn".
25815 (insert_base_initialization): Likewise for param
25816 "insn" and local "seq".
25817 (split_iv): Likewise for param "insn" and local "seq".
25818 (expand_var_during_unrolling): Likewise for param "insn".
25819 (insert_var_expansion_initialization): Likewise for local "seq".
25820 (combine_var_copies_in_loop_exit): Likewise.
25821 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
25823 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
25824 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
25827 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25829 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
25831 (iv_analyze_result): Likewise.
25832 (iv_analyze_expr): Likewise.
25835 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
25836 local "def_insn" from rtx to rtx_insn *.
25837 (get_biv_step_1): Likewise for local "insn".
25838 (iv_analyze_expr): Likewise for param "insn".
25839 (iv_analyze_def): Likewise for local "insn".
25840 (iv_analyze_op): Likewise for param "insn".
25841 (iv_analyze): Likewise.
25842 (iv_analyze_result): Likewise.
25844 (suitable_set_for_replacement): Likewise.
25845 (simplify_using_initial_values): Likewise for local "insn".
25846 (iv_number_of_iterations): Likewise for param "insn".
25847 (check_simple_exit): Add checked cast to rtx_insn when invoking
25848 iv_number_of_iterations for now (until get_condition is
25851 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
25852 "insn" from rtx to rtx_insn *.
25853 (analyze_insns_in_loop): Likewise for local "insn".
25855 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25857 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
25859 (struct invariant): Likewise.
25860 (hash_invariant_expr_1): Likewise for param "insn".
25861 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
25862 (find_exits): Likewise for local "insn".
25863 (create_new_invariant): Likewise for param "insn".
25864 (check_dependencies): Likewise.
25865 (find_invariant_insn): Likewise.
25866 (record_uses): Likewise.
25867 (find_invariants_insn): Likewise.
25868 (find_invariants_bb): Likewise for local "insn".
25869 (get_pressure_class_and_nregs): Likewise for param "insn".
25870 (calculate_loop_reg_pressure): Likewise for local "insn".
25872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25874 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
25876 (add_test): Likewise for locals "seq", "jump".
25877 (doloop_modify): Likewise for locals "sequence", "jump_insn".
25879 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25881 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
25883 (rebuild_jump_labels_chain): Likewise for param "chain".
25885 * cfgexpand.c (pass_expand::execute): Add checked cast to
25886 rtx_insn * when calling rebuild_jump_labels_chain in region where
25887 we know e->insns.r is non-NULL.
25889 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
25891 (rebuild_jump_labels): Likewise.
25892 (rebuild_jump_labels_chain): Likewise for param "chain".
25893 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
25894 (init_label_info): Likewise for param "f".
25895 (maybe_propagate_label_ref): Likewise for params "jump_insn",
25896 "prev_nonjump_insn".
25897 (mark_all_labels): Likewise for param "f" and locals "insn",
25898 "prev_nonjump_insn".
25900 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25902 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
25903 from rtx to rtx_insn *insn.
25904 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
25905 (ira_add_allocno_copy): Likewise.
25906 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
25908 (ira_create_copy): Likewise.
25909 (ira_add_allocno_copy): Likewise.
25910 (create_bb_allocnos): Likewise for local "insn".
25911 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
25912 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
25913 process_regs_for_copy for rtx_insn * param.
25914 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
25915 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
25916 process_regs_for_copy for rtx_insn * param.
25917 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
25918 * ira-costs.c (record_reg_classes): Likewise for param "insn".
25919 (record_operand_costs): Likewise.
25920 (scan_one_insn): Likewise for return type, and for param "insn".
25921 (process_bb_for_costs): Likewise for local "insn".
25922 (process_bb_node_for_hard_reg_moves): Likewise.
25923 * ira-emit.c (struct move): Likewise for field "insn".
25924 (create_move): Eliminate use of NULL_RTX when dealing with an
25926 (emit_move_list): Strengthen return type and locals "result",
25927 "insn" from rtx to rtx_insn *insn.
25928 (emit_moves): Likewise for locals "insns", "tmp".
25929 (ira_emit): Likewise for local "insn".
25930 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
25932 (find_call_crossed_cheap_reg): Likewise.
25933 (process_bb_node_lives): Likewise for local "insn".
25934 * ira.c (decrease_live_ranges_number): Likewise.
25935 (compute_regs_asm_clobbered): Likewise.
25936 (build_insn_chain): Likewise.
25937 (find_moveable_pseudos): Likewise, also locals "def_insn",
25938 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
25939 to rtx_insn **. Add a checked cast when assigning from
25940 "closest_use" into closest_uses array in a region where we know
25941 it's a non-NULL insn.
25942 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
25944 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
25945 "last_interesting_insn", "uin".
25946 (move_unallocated_pseudos): Likewise for locals "def_insn",
25947 "move_insn", "newinsn".
25949 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25951 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
25952 Strengthen locals "done_label", "do_error" from rtx to
25954 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
25955 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
25957 (ubsan_expand_si_overflow_neg_check): Likewise for locals
25958 "done_label", "do_error" to rtx_code_label * and local "last" to
25960 (ubsan_expand_si_overflow_mul_check): Likewise for locals
25961 "done_label", "do_error", "large_op0", "small_op0_large_op1",
25962 "one_small_one_large", "both_ops_large", "after_hipart_neg",
25963 "after_lopart_neg", "do_overflow", "hipart_different" to
25964 rtx_code_label * and local "last" to rtx_insn *.
25966 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25968 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
25969 "insn" and "move_insn" from rtx to rtx_insn *.
25971 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25973 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
25975 (cheap_bb_rtx_cost_p): Likewise.
25976 (first_active_insn): Likewise for return type and local "insn".
25977 (last_active_insn): Likewise for return type and locals "insn",
25979 (struct noce_if_info): Likewise for fields "jump", "insn_a",
25981 (end_ifcvt_sequence): Likewise for return type and locals "insn",
25983 (noce_try_move): Likewise for local "seq".
25984 (noce_try_store_flag): Likewise.
25985 (noce_try_store_flag_constants): Likewise.
25986 (noce_try_addcc): Likewise.
25987 (noce_try_store_flag_mask): Likewise.
25988 (noce_try_cmove): Likewise.
25989 (noce_try_minmax): Likewise.
25990 (noce_try_abs): Likewise.
25991 (noce_try_sign_mask): Likewise.
25992 (noce_try_bitop): Likewise.
25993 (noce_can_store_speculate_p): Likewise for local "insn".
25994 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
25996 (check_cond_move_block): Likewise for local "insn".
25997 (cond_move_convert_if_block): Likewise.
25998 (cond_move_process_if_block): Likewise for locals "seq",
26000 (noce_find_if_block): Likewise for local "jump".
26001 (merge_if_block): Likewise for local "last".
26002 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
26003 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
26004 (block_has_only_trap): Likewise for return type and local "trap".
26005 (find_if_case_1): Likewise for local "jump".
26006 (dead_or_predicable): Likewise for locals "head", "end", "jump",
26009 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26011 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
26012 "last_insn", "loop_end" from rtx to rtx_insn *.
26014 * hw-doloop.c (scan_loop): Likewise for local "insn".
26015 (discover_loop): Likewise for param "tail_insn".
26016 (discover_loops): Likewise for local "tail".
26018 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
26019 cast to rtx_insn * when assigning from an rtx local to a
26020 hwloop_info's "last_insn" field.
26022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26024 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
26025 (add_delay_dependencies): Strengthen local "pro" from rtx to
26027 (recompute_todo_spec): Likewise.
26028 (dep_cost_1): Likewise for locals "insn", "used".
26029 (schedule_insn): Likewise for local "dbg".
26030 (schedule_insn): Likewise for locals "pro", "next".
26031 (unschedule_insns_until): Likewise for local "con".
26032 (restore_pattern): Likewise for local "next".
26033 (estimate_insn_tick): Likewise for local "pro".
26034 (resolve_dependencies): Likewise for local "next".
26035 (fix_inter_tick): Likewise.
26036 (fix_tick_ready): Likewise for local "pro".
26037 (add_to_speculative_block): Likewise for locals "check", "twin",
26039 (sched_extend_bb): Likewise for locals "end", "insn".
26040 (init_before_recovery): Likewise for local "x".
26041 (sched_create_recovery_block): Likewise for local "barrier".
26042 (create_check_block_twin): Likewise for local "pro".
26043 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
26045 (unlink_bb_notes): Update for change to type of bb_header.
26046 Strengthen locals "prev", "label", "note", "next" from rtx to
26048 (clear_priorities): Likewise for local "pro".
26050 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26052 * gcse.c (struct occr): Strengthen field "insn" from rtx to
26054 (test_insn): Likewise for this global.
26055 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
26057 (oprs_anticipatable_p): Likewise.
26058 (oprs_available_p): Likewise.
26059 (insert_expr_in_table): Strengthen param "insn" from rtx to
26061 (hash_scan_set): Likewise.
26062 (hash_scan_clobber): Likewise.
26063 (hash_scan_call): Likewise.
26064 (hash_scan_insn): Likewise.
26065 (compute_hash_table_work): Likewise for local "insn".
26066 (process_insert_insn): Likewise for return type and local "pat".
26067 (insert_insn_end_basic_block): Likewise for locals "new_insn",
26068 "pat", "pat_end", "maybe_cc0_setter".
26069 (pre_edge_insert): Likewise for local "insn".
26070 (pre_insert_copy_insn): Likewise for param "insn".
26071 (pre_insert_copies): Likewise for local "insn".
26072 (struct set_data): Likewise for field "insn".
26073 (single_set_gcse): Likewise for param "insn".
26074 (gcse_emit_move_after): Likewise.
26075 (pre_delete): Likewise for local "insn".
26076 (update_bb_reg_pressure): Likewise for param "from" and local
26078 (should_hoist_expr_to_dom): Likewise for param "from".
26079 (hoist_code): Likewise for local "insn".
26080 (get_pressure_class_and_nregs): Likewise for param "insn".
26081 (calculate_bb_reg_pressure): Likewise for local "insn".
26082 (compute_ld_motion_mems): Likewise.
26084 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26086 * genpeep.c (main): Rename param back from "uncast_ins1" to
26087 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
26090 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
26092 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26095 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
26096 documentation to state it is only for VSX operations.
26098 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
26099 constraint only active if VSX.
26101 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
26102 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
26103 (lfiwzx): Likewise.
26105 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26107 * fwprop.c (single_def_use_dom_walker::before_dom_children):
26108 Strengthen local "insn" from rtx to rtx_insn *.
26109 (use_killed_between): Likewise for param "target_insn".
26110 (all_uses_available_at): Likewise for param "target_insn" and
26112 (update_df_init): Likewise for params "def_insn", "insn".
26113 (update_df): Likewise for param "insn".
26114 (try_fwprop_subst): Likewise for param "def_insn" and local
26116 (free_load_extend): Likewise for param "insn".
26117 (forward_propagate_subreg): Likewise for param "def_insn" and
26119 (forward_propagate_asm): Likewise for param "def_insn" and local
26121 (forward_propagate_and_simplify): Likewise for param "def_insn"
26122 and local "use_insn".
26123 (forward_propagate_into): Likewise for locals "def_insn" and
26126 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26128 * function.c (emit_initial_value_sets): Strengthen local "seq"
26129 from rtx to rtx_insn *.
26130 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
26132 (instantiate_virtual_regs): Likewise for local "insn".
26133 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
26134 (reorder_blocks_1): Likewise for param "insns" and local "insn".
26135 (expand_function_end): Likewise for locals "insn" and "seq".
26136 (epilogue_done): Likewise for local "insn".
26137 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
26139 (reposition_prologue_and_epilogue_notes): Likewise for locals
26140 "insn", "last", "note", "first".
26141 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
26142 (pass_match_asm_constraints::execute): Likewise for local "insn".
26144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26146 * output.h (final_scan_insn): Strengthen return type from rtx to
26148 (final_forward_branch_p): Likewise for param.
26149 (current_output_insn): Likewise for this global.
26151 * final.c (rtx debug_insn): Likewise for this variable.
26152 (current_output_insn): Likewise.
26153 (get_attr_length_1): Rename param "insn" to "uncast_insn",
26154 adding "insn" back in as an rtx_insn * with a checked cast, so
26155 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
26157 (compute_alignments): Strengthen local "label" from rtx to
26159 (shorten_branches): Rename param from "first" to "uncast_first",
26160 introducing a new local rtx_insn * "first" using a checked cast to
26161 effectively strengthen "first" from rtx to rtx_insn * without
26162 affecting the type signature. Strengthen locals "insn", "seq",
26163 "next", "label" from rtx to rtx_insn *.
26164 (change_scope): Strengthen param "orig_insn" and local "insn" from
26166 (final_start_function): Rename param from "first" to "uncast_first",
26167 introducing a new local rtx_insn * "first" using a checked cast to
26168 effectively strengthen "first" from rtx to rtx_insn * without
26169 affecting the type signature. Strengthen local "insn" from rtx to
26171 (dump_basic_block_info): Strengthen param "insn" from rtx to
26173 (final): Rename param from "first" to "uncast_first",
26174 introducing a new local rtx_insn * "first" using a checked cast to
26175 effectively strengthen "first" from rtx to rtx_insn * without
26176 affecting the type signature. Strengthen locals "insn", "next"
26177 from rtx to rtx_insn *.
26178 (output_alternate_entry_point): Strengthen param "insn" from rtx to
26180 (call_from_call_insn): Strengthen param "insn" from rtx to
26182 (final_scan_insn): Rename param from "insn" to "uncast_insn",
26183 introducing a new local rtx_insn * "insn" using a checked cast to
26184 effectively strengthen "insn" from rtx to rtx_insn * without
26185 affecting the type signature. Strengthen return type and locals
26186 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
26187 now-redundant checked cast to rtx_insn * from both invocations of
26188 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
26189 introducing a local "call_insn" for use when invoking
26190 call_from_call_insn.
26191 (notice_source_line): Strengthen param "insn" from rtx to
26193 (leaf_function_p): Likewise for local "insn".
26194 (final_forward_branch_p): Likewise.
26195 (leaf_renumber_regs): Likewise for param "first".
26196 (rest_of_clean_state): Likewise for locals "insn" and "next".
26197 (self_recursive_call_p): Likewise for param "insn".
26198 (collect_fn_hard_reg_usage): Likewise for local "insn".
26199 (get_call_fndecl): Likewise for param "insn".
26200 (get_call_cgraph_rtl_info): Likewise.
26201 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
26202 introducing a new local rtx_insn * "insn" using a checked cast to
26203 effectively strengthen "insn" from rtx to rtx_insn * without
26204 affecting the type signature.
26206 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
26207 cast when assigning from param "insn" to current_output_insn.
26208 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
26209 so that we can assign it back to current_output_insn.
26211 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26213 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
26214 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
26215 atmxt540s and atmxt540sreva devices.
26216 * config/avr/avr-tables.opt: Regenerate.
26217 * config/avr/t-multilib: Regenerate.
26218 * doc/avr-mmcu.texi: Regenerate.
26220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26222 * expr.c (convert_move): Strengthen local "insns" from rtx to
26224 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
26225 "top_label" from rtx to rtx_code_label *.
26226 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
26228 (emit_single_push_insn): Likewise for locals "prev", "last".
26229 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
26230 to rtx_code_label *.
26231 (store_constructor): Likewise for locals "loop_start", "loop_end".
26232 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
26234 (expand_expr_real_2): Likewise.
26235 (expand_expr_real_1): Strengthen local "label" from rtx to
26238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26240 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
26241 from rtx to rtx_insn *.
26242 (store_bit_field_1): Likewise.
26243 (extract_bit_field_1): Likewise.
26244 (expand_mult_const): Likewise for local "insns".
26245 (expmed_mult_highpart): Strengthen local "label" from rtx to
26247 (expand_smod_pow2): Likewise.
26248 (expand_sdiv_pow2): Likewise.
26249 (expand_divmod): Strengthen locals "last", "insn" from rtx to
26250 rtx_insn *. Strengthen locals "label", "label1", "label2",
26251 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
26252 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
26253 (emit_store_flag): Likewise.
26254 (emit_store_flag_force): Strengthen local "label" from rtx to
26256 (do_cmp_and_jump): Likewise for param "label".
26258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26260 * explow.c (force_reg): Strengthen local "insn" from rtx to
26262 (adjust_stack_1): Likewise.
26263 (allocate_dynamic_stack_space): Likewise. Strengthen locals
26264 "final_label", "available_label", "space_available" from rtx to
26266 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
26267 (anti_adjust_stack_and_probe): Likewise.
26269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26271 * except.h (sjlj_emit_function_exit_after): Strengthen param
26272 "after" from rtx to rtx_insn *. This is only called with
26273 result of get_last_insn (in function.c) so type-change should be
26276 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
26277 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
26278 to rtx_insn *. These fields are only used from except.c so this
26279 type-change should be self-contained to this patch.
26281 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
26282 local "last" from rtx to rtx_insn *.
26283 (dw2_build_landing_pads): Likewise for local "seq".
26284 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
26285 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
26286 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
26288 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
26290 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
26291 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
26292 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
26293 referring to an insn. Strengthen local "dispatch_label" from
26294 rtx to rtx_code_label *.
26295 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
26297 (expand_eh_return): Strengthen local "around_label" from
26298 rtx to rtx_code_label *.
26299 (convert_to_eh_region_ranges): Strengthen locals "iter",
26300 "last_action_insn", "first_no_action_insn",
26301 "first_no_action_insn_before_switch",
26302 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
26304 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26306 * dwarf2out.c (last_var_location_insn): Strengthen this variable
26307 from rtx to rtx_insn *.
26308 (cached_next_real_insn): Likewise.
26309 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
26310 working with insns.
26311 (dwarf2out_var_location): Strengthen locals "next_real",
26312 "next_note", "expected_next_loc_note", "last_start", "insn" from
26315 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26317 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
26318 from rtx to rtx_insn *.
26319 (create_pseudo_cfg): Likewise for local "insn".
26321 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26323 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
26324 from rtx to rtx_insn *.
26325 (df_bb_regno_last_def_find): Likewise.
26327 * df-problems.c (df_rd_bb_local_compute): Likewise.
26328 (df_lr_bb_local_compute): Likewise.
26329 (df_live_bb_local_compute): Likewise.
26330 (df_chain_remove_problem): Likewise.
26331 (df_chain_create_bb): Likewise.
26332 (df_word_lr_bb_local_compute): Likewise.
26333 (df_remove_dead_eq_notes): Likewise for param "insn".
26334 (df_note_bb_compute): Likewise for local "insn".
26335 (simulate_backwards_to_point): Likewise.
26336 (df_md_bb_local_compute): Likewise.
26338 * df-scan.c (df_scan_free_bb_info): Likewise.
26339 (df_scan_start_dump): Likewise.
26340 (df_scan_start_block): Likewise.
26341 (df_install_ref_incremental): Likewise for local "insn".
26342 (df_insn_rescan_all): Likewise.
26343 (df_reorganize_refs_by_reg_by_insn): Likewise.
26344 (df_reorganize_refs_by_insn_bb): Likewise.
26345 (df_recompute_luids): Likewise.
26346 (df_bb_refs_record): Likewise.
26347 (df_update_entry_exit_and_calls): Likewise.
26348 (df_bb_verify): Likewise.
26350 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26352 * ddg.h (struct ddg_node): Strengthen fields "insn" and
26353 "first_note" from rtx to rtx_insn *.
26354 (get_node_of_insn): Likewise for param 2 "insn".
26355 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26357 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
26359 (mem_write_insn_p): Likewise.
26360 (mem_access_insn_p): Likewise.
26361 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26362 (def_has_ccmode_p): Likewise for param "insn".
26363 (add_cross_iteration_register_deps): Likewise for locals
26364 "def_insn" and "use_insn".
26365 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
26366 (build_intra_loop_deps): Likewise for local "src_insn".
26367 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
26369 (get_node_of_insn): Likewise for param "insn".
26371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26373 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
26374 (deletable_insn_p): Strengthen param "insn" from rtx to
26375 rtx_insn *. Add checked cast to rtx_call_insn when invoking
26376 find_call_stack_args, since this is guarded by CALL_P (insn).
26377 (marked_insn_p): Strengthen param "insn" from rtx to
26379 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
26380 invoking find_call_stack_args, since this is guarded by
26382 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
26383 rtx_insn *; we know this is an insn since this was called by
26384 mark_nonreg_stores.
26385 (mark_nonreg_stores_2): Likewise.
26386 (mark_nonreg_stores): Strengthen param "insn" from rtx to
26388 (find_call_stack_args): Strengthen param "call_insn" from rtx to
26389 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
26391 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
26392 from rtx to rtx_insn *.
26393 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
26394 "next", "ref_insn".
26395 (delete_unmarked_insns): Likewise for locals "insn", "next".
26396 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
26397 (mark_reg_dependencies): Likewise for param "insn".
26398 (rest_of_handle_ud_dce): Likewise for local "insn".
26399 (word_dce_process_block): Likewise.
26400 (dce_process_block): Likewise.
26402 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26404 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
26405 from rtx to rtx_insn *.
26406 (struct change_cc_mode_args): Likewise for field "insn".
26407 (this_insn): Strengthen from rtx to rtx_insn *.
26408 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
26410 (validate_canon_reg): Strengthen param "insn" from rtx to
26412 (canon_reg): Likewise.
26413 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
26415 (record_jump_equiv): Strengthen param "insn" from rtx to
26417 (try_back_substitute_reg): Likewise, also for locals "prev",
26419 (find_sets_in_insn): Likewise for param "insn".
26420 (canonicalize_insn): Likewise.
26421 (cse_insn): Likewise. Add a checked cast.
26422 (invalidate_from_clobbers): Likewise for param "insn".
26423 (invalidate_from_sets_and_clobbers): Likewise.
26424 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
26426 (cse_prescan_path): Strengthen local "insn" from rtx to
26428 (cse_extended_basic_block): Likewise for locals "insn" and
26430 (cse_main): Likewise for param "f".
26431 (check_for_label_ref): Likewise for local "insn".
26432 (set_live_p): Likewise for second param ("insn").
26433 (insn_live_p): Likewise for first param ("insn") and for local
26435 (cse_change_cc_mode_insn): Likewise for first param "insn".
26436 (cse_change_cc_mode_insns): Likewise for first and second params
26438 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
26440 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
26443 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26444 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26445 Anna Tikhonova <anna.tikhonova@intel.com>
26446 Ilya Tocar <ilya.tocar@intel.com>
26447 Andrey Turetskiy <andrey.turetskiy@intel.com>
26448 Ilya Verbin <ilya.verbin@intel.com>
26449 Kirill Yukhin <kirill.yukhin@intel.com>
26450 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26452 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
26454 * config/i386/sse.md
26455 (define_mode_iterator VI248_AVX2): Delete.
26456 (define_mode_iterator VI2_AVX2_AVX512BW): New.
26457 (define_mode_iterator VI48_AVX2): Ditto.
26458 (define_insn <shift_insn><mode>3): Delete.
26459 (define_insn "<shift_insn><mode>3<mask_name>" with
26460 VI2_AVX2_AVX512BW): New.
26461 (define_insn "<shift_insn><mode>3<mask_name>" with
26464 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26465 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26466 Anna Tikhonova <anna.tikhonova@intel.com>
26467 Ilya Tocar <ilya.tocar@intel.com>
26468 Andrey Turetskiy <andrey.turetskiy@intel.com>
26469 Ilya Verbin <ilya.verbin@intel.com>
26470 Kirill Yukhin <kirill.yukhin@intel.com>
26471 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26473 * config/i386/sse.md
26474 (define_mode_iterator VI4F_BRCST32x2): New.
26475 (define_mode_attr 64x2_mode): Ditto.
26476 (define_mode_attr 32x2mode): Ditto.
26477 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
26478 with VI4F_BRCST32x2): Ditto.
26479 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
26480 with V16FI mode iterator): Ditto.
26481 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26482 with V16FI): Ditto.
26483 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26484 with VI8F_BRCST64x2): Ditto.
26486 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26488 Anna Tikhonova <anna.tikhonova@intel.com>
26489 Ilya Tocar <ilya.tocar@intel.com>
26490 Andrey Turetskiy <andrey.turetskiy@intel.com>
26491 Ilya Verbin <ilya.verbin@intel.com>
26492 Kirill Yukhin <kirill.yukhin@intel.com>
26493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26495 * config/i386/sse.md
26496 (define_mode_iterator VI8_AVX512VL): New.
26497 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
26499 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
26501 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
26502 (define_mode_iterator V48_AVX512VL): New.
26503 (define_mode_iterator V12_AVX512VL): Ditto.
26504 (define_insn <avx512>_load<mode>_mask): Split into two similar
26505 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
26506 Refactor output template.
26507 (define_insn "<avx512>_store<mode>_mask"): Ditto.
26509 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26511 * cprop.c (struct occr): Strengthen field "insn" from rtx to
26513 (reg_available_p): Likewise for param "insn".
26514 (insert_set_in_table): Likewise.
26515 (hash_scan_set): Likewise.
26516 (hash_scan_insn): Likewise.
26517 (make_set_regs_unavailable): Likewise.
26518 (compute_hash_table_work): Likewise for local "insn".
26519 (reg_not_set_p): Strengthen param "insn" from const_rtx to
26521 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
26522 (try_replace_reg): Likewise.
26523 (find_avail_set): Likewise.
26524 (cprop_jump): Likewise for params "setcc", "jump".
26525 (constprop_register): Likewise for param "insn".
26526 (cprop_insn): Likewise.
26527 (do_local_cprop): Likewise.
26528 (local_cprop_pass): Likewise for local "insn".
26529 (bypass_block): Likewise for params "setcc" and "jump".
26530 (bypass_conditional_jumps): Likewise for locals "setcc" and
26532 (one_cprop_pass): Likewise for local "insn".
26534 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26536 * compare-elim.c (struct comparison_use): Strengthen field "insn"
26537 from rtx to rtx_insn *.
26538 (struct comparison): Likewise, also for field "prev_clobber".
26539 (conforming_compare): Likewise for param "insn".
26540 (arithmetic_flags_clobber_p): Likewise.
26541 (find_flags_uses_in_insn): Likewise.
26542 (find_comparison_dom_walker::before_dom_children): Likewise for
26543 locals "insn", "next", "last_clobber".
26544 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
26546 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26548 * combine-stack-adj.c (struct csa_reflist): Strengthen field
26549 "insn" from rtx to rtx_insn *.
26550 (single_set_for_csa): Likewise for param "insn".
26551 (record_one_stack_ref): Likewise.
26552 (try_apply_stack_adjustment): Likewise.
26553 (struct record_stack_refs_data): Likewise for field "insn".
26554 (maybe_move_args_size_note): Likewise for params "last" and "insn".
26555 (prev_active_insn_bb): Likewise for return type and param "insn".
26556 (next_active_insn_bb): Likewise.
26557 (force_move_args_size_note): Likewise for params "prev" and "last"
26558 and locals "test", "next_candidate", "prev_candidate".
26559 (combine_stack_adjustments_for_block): Strengthen locals
26560 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
26563 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26565 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
26566 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
26567 (subst_insn): Likewise for this variable.
26568 (added_links_insn): Likewise.
26569 (struct insn_link): Likewise for field "insn".
26570 (alloc_insn_link): Likewise for param "insn".
26571 (struct undobuf): Likewise for field "other_insn".
26572 (find_single_use): Likewise for param "insn" and local "next".
26573 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
26574 (delete_noop_moves): Likewise for locals "insn", "next".
26575 (create_log_links): Likewise for locals "insn", "use_insn".
26576 Strengthen local "next_use" from rtx * to rtx_insn **.
26577 (insn_a_feeds_b): Likewise for params "a", "b".
26578 (combine_instructions): Likewise for param "f" and locals "insn",
26579 "next", "prev", "first", "last_combined_insn", "link", "link1",
26580 "temp". Replace use of NULL_RTX with NULL when referring to
26582 (setup_incoming_promotions): Likewise for param "first"
26583 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
26584 (can_combine_p): Likewise for params "insn", "i3", "pred",
26585 "pred2", "succ", "succ2" and for local "p".
26586 (combinable_i3pat): Likewise for param "i3".
26587 (cant_combine_insn_p): Likewise for param "insn".
26588 (likely_spilled_retval_p): Likewise.
26589 (adjust_for_new_dest): Likewise.
26590 (update_cfg_for_uncondjump): Likewise, also for local "insn".
26591 (try_combine): Likewise for return type and for params "i3", "i2",
26592 "i1", "i0", "last_combined_insn", and for locals "insn",
26593 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
26594 "i0_insn". Eliminate local "tem" in favor of new locals
26595 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
26596 checked cast for now to rtx_insn * on the return type of
26597 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
26599 (find_split_point): Strengthen param "insn" from rtx to
26601 (simplify_set): Likewise for local "other_insn".
26602 (recog_for_combine): Likewise for param "insn".
26603 (record_value_for_reg): Likewise.
26604 (record_dead_and_set_regs_1): Likewise for local
26605 "record_dead_insn".
26606 (record_dead_and_set_regs): Likewise for param "insn".
26607 (record_promoted_value): Likewise.
26608 (check_promoted_subreg): Likewise.
26609 (get_last_value_validate): Likewise.
26610 (reg_dead_at_p): Likewise.
26611 (move_deaths): Likewise for param "to_insn".
26612 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
26613 and locals "place", "place2", "cc0_setter". Eliminate local "tem
26614 in favor of new locals "tem_note" and "tem_insn", the latter being
26616 (distribute_links): Strengthen locals "place", "insn" from rtx to
26619 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26621 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
26623 (can_delete_label_p): Require a const rtx_code_label * rather than
26625 (delete_insn): Add checked cast to rtx_code_label * when we know
26626 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
26628 (delete_insn_chain): Strengthen locals "prev" and "current" from
26629 rtx to rtx_insn *. Add a checked cast when assigning from
26630 "finish" (strengthening the params will come later). Add a
26631 checked cast to rtx_note * in region where we know
26633 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
26635 (compute_bb_for_insn): Likewise.
26636 (free_bb_for_insn): Likewise for local "insn".
26637 (compute_bb_for_insn): Likewise.
26638 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
26639 local "insn" from rtx to rtx_insn *
26640 (flow_active_insn_p): Require a const rtx_insn * rather than a
26642 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
26644 (can_fallthru): Likewise for locals "insn" and "insn2".
26645 (bb_note): Likewise for local "note".
26646 (first_insn_after_basic_block_note): Likewise for local "note" and
26648 (rtl_split_block): Likewise for locals "insn" and "next".
26649 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
26651 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
26652 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
26654 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
26655 them), "kill_from", "barrier", "new_insn".
26656 (patch_jump_insn): Likewise for params "insn", "old_label".
26657 (redirect_branch_edge): Likewise for locals "old_label", "insn".
26658 (force_nonfallthru_and_redirect): Likewise for locals "insn",
26659 "old_label", "new_label".
26660 (rtl_tidy_fallthru_edge): Likewise for local "q".
26661 (rtl_split_edge): Likewise for locals "before", "last".
26662 (commit_one_edge_insertion): Likewise for locals "before",
26663 "after", "insns", "tmp", "last", adding a checked cast where
26664 currently necessary.
26665 (commit_edge_insertions): Likewise.
26666 (rtl_dump_bb): Likewise for locals "insn", "last".
26667 (print_rtl_with_bb): Likewise for local "x".
26668 (rtl_verify_bb_insns): Likewise for local "x".
26669 (rtl_verify_bb_pointers): Likewise for local "insn".
26670 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
26672 (rtl_verify_fallthru): Likewise for local "insn".
26673 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
26674 (purge_dead_edges): Likewise for local "insn".
26675 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
26676 (skip_insns_after_block): Likewise for return type and for locals
26677 "insn", "last_insn", "next_head", "prev".
26678 (record_effective_endpoints): Likewise for locals "next_insn",
26680 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
26681 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
26682 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
26683 (duplicate_insn_chain): For now, add checked cast from rtx to
26684 rtx_insn * when returning insn.
26685 (cfg_layout_duplicate_bb): Likewise for local "insn".
26686 (cfg_layout_delete_block): Likewise for locals "insn", "next",
26687 "prev", "remaints".
26688 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
26689 (rtl_block_empty_p): Likewise.
26690 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
26691 "split_point", "last".
26692 (rtl_block_ends_with_call_p): Likewise for local "insn".
26693 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
26695 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
26696 "split_at_insn" from rtx to rtx_insn *.
26697 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
26698 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
26699 to const rtx_insn *.
26700 (rtl_account_profile_record): Likewise.
26702 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26704 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
26706 (average_num_loop_insns): Likewise.
26707 (init_set_costs): Likewise for local "seq".
26708 (seq_cost): Likewise for param "seq", from const_rtx to const
26711 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26713 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
26716 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26718 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
26719 "f1" and "f2" from rtx * to rtx_insn **.
26720 (flow_find_head_matching_sequence): Likewise.
26722 * cfgcleanup.c (try_simplify_condjump): Strengthen local
26723 "cbranch_insn" from rtx to rtx_insn *.
26724 (thread_jump): Likewise for local "insn".
26725 (try_forward_edges): Likewise for local "last".
26726 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
26727 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
26729 (can_replace_by): Likewise for params "i1", "i2".
26730 (old_insns_match_p): Likewise.
26731 (merge_notes): Likewise.
26732 (walk_to_nondebug_insn): Likewise for param "i1".
26733 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
26734 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
26735 "afterlast1", "afterlast2" from rtx to rtx_insn *.
26736 (flow_find_head_matching_sequence): Strengthen params "f1" and
26737 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
26738 "last1", "last2", "beforelast1", "beforelast2" from rtx to
26740 (outgoing_edges_match): Likewise for locals "last1", "last2".
26741 (try_crossjump_to_edge): Likewise for local "insn".
26742 Replace call to for_each_rtx with for_each_rtx_in_insn.
26744 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
26745 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
26746 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
26747 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
26748 (try_optimize_cfg): Strengthen local "last" from rtx to
26750 (delete_dead_jumptables): Likewise for locals "insn", "next",
26753 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
26754 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
26755 "rtx else_first_tail", to reflect the basic-block.h changes above.
26757 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26759 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
26761 (purge_dead_tablejump_edges): Likewise.
26762 (find_bb_boundaries): Likewise for locals "insn", "end",
26763 "flow_transfer_insn".
26765 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26767 * caller-save.c (save_call_clobbered_regs): Strengthen locals
26768 "ins" and "prev" from rtx to rtx_insn *.
26770 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26772 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
26774 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
26775 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
26777 (load_register_parameters): Likewise for local "before_arg".
26778 (check_sibcall_argument_overlap): Likewise for param "insn".
26779 (expand_call): Likewise for locals "normal_call_insns",
26780 "tail_call_insns", "insns", "before_call", "after_args",
26781 "before_arg", "last", "prev". Strengthen one of the "last" from
26782 rtx to rtx_call_insn *.
26783 (fixup_tail_calls): Strengthen local "insn" from rtx to
26785 (emit_library_call_value_1): Likewise for locals "before_call" and
26788 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26790 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
26791 and "last" from rtx to rtx_insn *.
26792 (expand_builtin_nonlocal_goto): Likewise for local "insn".
26793 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
26795 (expand_errno_check): Strengthen local "lab" from rtx to
26797 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
26799 (expand_builtin_mathfn_2): Likewise.
26800 (expand_builtin_mathfn_ternary): Likewise.
26801 (expand_builtin_mathfn_3): Likewise.
26802 (expand_builtin_interclass_mathfn): Likewise for local "last".
26803 (expand_builtin_int_roundingfn): Likewise for local "insns".
26804 (expand_builtin_int_roundingfn_2): Likewise.
26805 (expand_builtin_strlen): Likewise for local "before_strlen".
26806 (expand_builtin_strncmp): Likewise for local "seq".
26807 (expand_builtin_signbit): Likewise for local "last".
26808 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
26809 from rtx to rtx_code_label *.
26810 (expand_stack_restore): Strengthen local "prev" from rtx to
26813 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26815 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
26817 (struct btr_def_s): Likewise.
26818 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
26820 (add_btr_def): Likewise.
26821 (new_btr_user): Likewise.
26822 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
26824 (link_btr_uses): Likewise.
26825 (move_btr_def): Likewise for locals "insp", "old_insn",
26826 "new_insn". Add checked cast to rtx_insn * for now on result of
26828 (can_move_up): Strengthen param "insn" from const_rtx to
26831 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26833 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
26835 (get_uncond_jump_length): Likewise for locals "label", "jump".
26836 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
26838 (add_labels_and_missing_jumps): Likewise for local "new_jump".
26839 (fix_up_fall_thru_edges): Likewise for local "old_jump".
26840 (find_jump_block): Likewise for local "insn".
26841 (fix_crossing_conditional_branches): Likewise for locals
26842 "old_jump", "new_jump".
26843 (fix_crossing_unconditional_branches): Likewise for locals
26844 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
26845 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
26847 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26849 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
26851 (struct mem_insn): Likewise for field "insn".
26852 (reg_next_use): Strengthen from rtx * to rtx_insn **.
26853 (reg_next_inc_use): Likewise.
26854 (reg_next_def): Likewise.
26855 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
26856 from rtx to rtx_insn *.
26857 (move_insn_before): Likewise for param "next_insn" and local "insns".
26858 (attempt_change): Likewise for local "mov_insn".
26859 (try_merge): Likewise for param "last_insn".
26860 (get_next_ref): Likewise for return type and local "insn".
26861 Strengthen param "next_array" from rtx * to rtx_insn **.
26862 (parse_add_or_inc): Strengthen param "insn" from rtx to
26864 (find_inc): Likewise for locals "insn" and "other_insn" (three of
26866 (merge_in_block): Likewise for locals "insn", "curr",
26868 (pass_inc_dec::execute): Update allocations of the arrays to
26869 reflect the stronger types.
26871 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26873 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
26874 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
26875 from rtx to rtx_code_label *.
26877 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26879 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
26882 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26884 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
26885 generated a warning and prevented bootstrapping the compiler.
26887 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26889 * rtl.h (delete_related_insns): Strengthen return type from rtx to
26892 * jump.c (delete_related_insns): Likewise, also for locals "next"
26895 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26897 * genautomata.c (output_internal_insn_latency_func): When writing
26898 the function "internal_insn_latency" to insn-automata.c,
26899 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
26900 allowing the optional guard function of (define_bypass) clauses to
26901 expect a pair of rtx_insn *, rather than a pair of rtx.
26902 (output_insn_latency_func): When writing the function
26903 "insn_latency", add an "uncast_" prefix to params "insn" and
26904 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
26905 using checked casts from the params, thus enabling the above
26906 change to the generated "internal_insn_latency" function.
26908 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
26910 PR tree-optimization/62091
26911 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
26912 handle correctly arrays.
26913 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
26914 inheritance binfos.
26915 (record_known_type): Walk into inner type.
26916 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
26917 condition on no type changes.
26919 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26921 * genattrtab.c (write_attr_get): Within the generated get_attr_
26922 functions, rename param "insn" to "uncast_insn" and reintroduce
26923 "insn" as an local rtx_insn * using a checked cast, so that "insn"
26924 is an rtx_insn * within insn-attrtab.c
26926 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26928 * output.h (peephole): Strengthen return type from rtx to
26930 * rtl.h (delete_for_peephole): Likewise for both params.
26931 * genpeep.c (main): In generated "peephole" function, strengthen
26932 return type and local "insn" from rtx to rtx_insn *. For now,
26933 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
26934 rtx_insn *, with a checked cast.
26935 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
26936 locals "insn", "next", "prev" from rtx to rtx_insn *.
26938 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
26940 PR tree-optimization/62112
26941 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
26942 * gimple-iterator.h (gsi_replace): Return bool.
26943 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
26944 moved from ref_may_alias_global_p.
26945 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
26947 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
26948 (stmt_kills_ref_p_1): Rename...
26949 (stmt_kills_ref_p): ... to this.
26950 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
26951 stmt_kills_ref_p): Declare.
26952 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
26953 Move the self-assignment case...
26954 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
26956 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26958 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
26960 * emit-rtl.c (try_split): Likewise, also for locals "before" and
26961 "after". For now, don't strengthen param "trial", which requires
26962 adding checked casts when returning it.
26964 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26966 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
26967 "label" from rtx to rtx_code_label *. Strengthen param 1 of
26968 "var_location" hook from rtx to rtx_insn *.
26969 (debug_nothing_rtx): Delete in favor of...
26970 (debug_nothing_rtx_code_label): New prototype.
26971 (debug_nothing_rtx_rtx): Delete unused prototype.
26972 (debug_nothing_rtx_insn): New prototype.
26974 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
26975 invoking debug_hooks->var_location (in two places, one in a NOTE
26976 case of a switch statement, the other guarded by a CALL_P
26977 conditional. Add checked cast to rtx_code_label * when invoking
26978 debug_hooks->label (within CODE_LABEL case of switch statement).
26980 * dbxout.c (dbx_debug_hooks): Update "label" hook from
26981 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
26982 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
26983 (xcoff_debug_hooks): Likewise.
26984 * debug.c (do_nothing_debug_hooks): Likewise.
26985 (debug_nothing_rtx): Delete in favor of...
26986 (debug_nothing_rtx_insn): New function.
26987 (debug_nothing_rtx_rtx): Delete unused function.
26988 (debug_nothing_rtx_code_label): New function.
26989 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
26990 debug_nothing_rtx to debug_nothing_rtx_code_label.
26991 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
26993 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
26994 debug_nothing_rtx to debug_nothing_rtx_insn.
26995 (sdbout_label): Strengthen param "insn" from rtx to
26997 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
26998 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
26999 "var_location" hook from debug_nothing_rtx to
27000 debug_nothing_rtx_insn.
27002 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27004 * recog.h (insn_output_fn): Update this function typedef to match
27005 the changes below to the generated output functions, strengthening
27006 the 2nd param from rtx to rtx_insn *.
27008 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
27009 insn when invoking an output function, to match the new signature
27010 of insn_output_fn with a stronger second param.
27012 * genconditions.c (write_header): In the generated code for
27013 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
27014 to match the other changes in this patch.
27016 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
27017 the generated "gen_" functions from rtx to rtx_insn * within their
27020 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
27021 the subfunctions within the generated "recog_", "split", "peephole2"
27022 function trees from rtx to rtx_insn *. For now, the top-level
27023 generated functions ("recog", "split", "peephole2") continue to
27024 take a plain rtx for "insn", to avoid introducing dependencies on
27025 other patches. Rename this 2nd param from "insn" to
27026 "uncast_insn", and reintroduce "insn" as a local variable of type
27027 rtx_insn *, initialized at the top of the generated function with
27028 a checked cast on "uncast_insn".
27029 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
27030 the generated "gen_" functions from rtx to rtx_insn * within their
27033 * genoutput.c (process_template): Strengthen the 2nd param within
27034 the generated "output_" functions "insn" from rtx to rtx_insn *.
27036 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27038 * tree-profile.c (tree_profiling): Skip external functions
27039 when doing coverage instrumentation.
27040 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
27042 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27044 * config/rs6000/altivec.h (vec_cpsgn): New #define.
27045 (vec_mergee): Likewise.
27046 (vec_mergeo): Likewise.
27047 (vec_cntlz): Likewise.
27048 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
27049 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
27050 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
27051 VMRGEW, and VMRGOW.
27052 * doc/extend.texi: Document various forms of vec_cpsgn,
27053 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
27054 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
27055 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
27056 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
27057 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
27059 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27061 * config/rs6000/rs6000.c (context.h): New include.
27062 (tree-pass.h): Likewise.
27063 (make_pass_analyze_swaps): New decl.
27064 (rs6000_option_override): Register pass_analyze_swaps.
27065 (swap_web_entry): New subsclass of web_entry_base (df.h).
27066 (special_handling_values): New enum.
27067 (union_defs): New function.
27068 (union_uses): Likewise.
27069 (insn_is_load_p): Likewise.
27070 (insn_is_store_p): Likewise.
27071 (insn_is_swap_p): Likewise.
27072 (rtx_is_swappable_p): Likewise.
27073 (insn_is_swappable_p): Likewise.
27074 (chain_purpose): New enum.
27075 (chain_contains_only_swaps): New function.
27076 (mark_swaps_for_removal): Likewise.
27077 (swap_const_vector_halves): Likewise.
27078 (adjust_subreg_index): Likewise.
27079 (permute_load): Likewise.
27080 (permute_store): Likewise.
27081 (handle_special_swappables): Likewise.
27082 (replace_swap_with_copy): Likewise.
27083 (dump_swap_insn_table): Likewise.
27084 (rs6000_analyze_swaps): Likewise.
27085 (pass_data_analyze_swaps): New pass_data.
27086 (pass_analyze_swaps): New rtl_opt_pass.
27087 (make_pass_analyze_swaps): New function.
27088 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
27090 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27092 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
27093 type from rtx to rtx_insn *.
27094 (create_copy_of_insn_rtx): Likewise.
27095 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
27096 (create_copy_of_insn_rtx): Likewise, also for local "res".
27098 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27100 * rtl.h (find_first_parameter_load): Strengthen return type from
27102 * rtlanal.c (find_first_parameter_load): Strengthen return type
27103 from rtx to rtx_insn *. Add checked cast for now, to postpone
27104 strengthening the params.
27106 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27109 * diagnostic.c: Set default caret.
27110 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
27112 * diagnostic.h (struct diagnostic_context):
27114 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27116 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
27117 (sel_bb_head): Strengthen return type insn_t (currently just an
27118 rtx) to rtx_insn *.
27119 (sel_bb_end): Likewise.
27121 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
27122 (sel_bb_head): Strengthen return type and local "head" from
27123 insn_t (currently just an rtx) to rtx_insn *.
27124 (sel_bb_end): Likewise for return type.
27125 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
27128 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27130 * basic-block.h (get_last_bb_insn): Strengthen return type from
27132 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
27135 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27138 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
27140 (diagnostic_report_diagnostic): ... from here.
27141 * toplev.c (general_init): Move code to c-family.
27143 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27145 * df.h (web_entry_base): Replace existing struct web_entry with a
27146 new class web_entry_base with only the predecessor member.
27147 (unionfind_root): Remove declaration and move to class member.
27148 (unionfind_union): Remove declaration and move to friend
27150 (union_defs): Remove declaration.
27151 * web.c (web_entry_base::unionfind_root): Modify to be member
27152 function and adjust accessors.
27153 (unionfind_union): Modify to be friend function and adjust
27155 (web_entry): New subclass of web_entry_base containing the reg
27157 (union_match_dups): Modify for struct -> class changes.
27158 (union_defs): Likewise.
27159 (entry_register): Likewise.
27160 (pass_web::execute): Likewise.
27162 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
27164 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
27165 builtin define __VEC_ELEMENT_REG_ORDER__.
27167 2014-08-20 Martin Jambor <mjambor@suse.cz>
27168 Wei Mi <wmi@google.com>
27171 PR middle-end/61776
27172 * tree-ssa-operands.c (update_stmt_operands): Remove
27173 MODIFIED_NORETURN_CALLS.
27174 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
27175 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
27176 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
27177 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
27178 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
27179 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
27180 (gimple_call_set_ctrl_altering): New func.
27181 (gimple_call_ctrl_altering_p): Ditto.
27182 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
27183 (make_blocks): Use gimple_call_initialize_ctrl_altering.
27184 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
27185 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
27186 remove MODIFIED_NORETURN_CALLS.
27188 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27190 * coverage.c (coverage_compute_profile_id): Return non-0;
27191 also handle symbols with unique name.
27192 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
27194 2014-08-20 Steve Ellcey <sellcey@mips.com>
27196 PR middle-end/49191
27197 * doc/sourcebuild.texi (non_strict_align): New.
27199 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27201 * cgraphunit.c (ipa_passes, compile): Reshedule
27202 symtab_remove_unreachable_nodes passes; update comments.
27203 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
27204 TODO_remove_functions before the pass; the functions ought to be
27206 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
27207 TODO_remove_functions.
27208 * passes.c (pass_data_early_local_passes): Do not schedule function
27210 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
27212 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27215 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
27216 before setting the option.
27217 * diagnostic.c (diagnostic_classify_diagnostic): Record
27218 command-line status.
27220 2014-08-20 Richard Biener <rguenther@suse.de>
27223 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
27224 to build uint{16,32,64}_type_node.
27226 2014-08-20 Terry Guo <terry.guo@arm.com>
27228 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
27229 with immediate_operand.
27231 2014-08-20 David Malcolm <dmalcolm@redhat.com>
27233 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
27234 "insn" from an as_a to a safe_as_a, for the case when "insn" is
27237 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27239 PR preprocessor/51303
27240 * incpath.c (remove_duplicates): Use cpp_warning.
27242 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27246 * doc/options.texi (CPP): Document it.
27247 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
27248 * optc-gen.awk: Handle CPP.
27249 * opth-gen.awk: Likewise.
27251 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27253 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
27255 (duplicate_insn_chain): Likewise.
27256 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
27257 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
27258 checked cast for now (until we can strengthen the params in the
27260 (duplicate_insn_chain): Likewise.
27262 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27264 * rtl.h (next_cc0_user): Strengthen return type from rtx to
27266 (prev_cc0_setter): Likewise.
27268 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
27269 rtx_insn *, adding checked casts for now as necessary.
27270 (prev_cc0_setter): Likewise.
27272 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27274 * expr.h (emit_move_insn): Strengthen return type from rtx to
27276 (emit_move_insn_1): Likewise.
27277 (emit_move_complex_push): Likewise.
27278 (emit_move_complex_parts): Likewise.
27280 * expr.c (emit_move_via_integer): Strengthen return type from rtx
27281 to rtx_insn *. Replace use of NULL_RTX with NULL when working
27283 (emit_move_complex_push): Strengthen return type from rtx to
27285 (emit_move_complex): Likewise, also for local "ret".
27286 (emit_move_ccmode): Likewise.
27287 (emit_move_multi_word): Likewise for return type and locals
27288 "last_insn", "seq".
27289 (emit_move_insn_1): Likewise for return type and locals "result",
27291 (emit_move_insn): Likewise for return type and local "last_insn".
27292 (compress_float_constant): Likewise.
27294 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27296 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
27297 from rtx to rtx_insn *.
27299 * rtl.h (emit_insn_before): Likewise.
27300 (emit_insn_before_noloc): Likewise.
27301 (emit_insn_before_setloc): Likewise.
27302 (emit_jump_insn_before): Likewise.
27303 (emit_jump_insn_before_noloc): Likewise.
27304 (emit_jump_insn_before_setloc): Likewise.
27305 (emit_call_insn_before): Likewise.
27306 (emit_call_insn_before_noloc): Likewise.
27307 (emit_call_insn_before_setloc): Likewise.
27308 (emit_debug_insn_before): Likewise.
27309 (emit_debug_insn_before_noloc): Likewise.
27310 (emit_debug_insn_before_setloc): Likewise.
27311 (emit_label_before): Likewise.
27312 (emit_insn_after): Likewise.
27313 (emit_insn_after_noloc): Likewise.
27314 (emit_insn_after_setloc): Likewise.
27315 (emit_jump_insn_after): Likewise.
27316 (emit_jump_insn_after_noloc): Likewise.
27317 (emit_jump_insn_after_setloc): Likewise.
27318 (emit_call_insn_after): Likewise.
27319 (emit_call_insn_after_noloc): Likewise.
27320 (emit_call_insn_after_setloc): Likewise.
27321 (emit_debug_insn_after): Likewise.
27322 (emit_debug_insn_after_noloc): Likewise.
27323 (emit_debug_insn_after_setloc): Likewise.
27324 (emit_label_after): Likewise.
27325 (emit_insn): Likewise.
27326 (emit_debug_insn): Likewise.
27327 (emit_jump_insn): Likewise.
27328 (emit_call_insn): Likewise.
27329 (emit_label): Likewise.
27330 (gen_clobber): Likewise.
27331 (emit_clobber): Likewise.
27332 (gen_use): Likewise.
27333 (emit_use): Likewise.
27336 (emit_barrier_before): Strengthen return type from rtx to
27338 (emit_barrier_after): Likewise.
27339 (emit_barrier): Likewise.
27341 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
27342 from rtx to rtx_insn *. Add checked casts for now when converting
27343 "last" from rtx to rtx_insn *.
27344 (emit_insn_before_noloc): Likewise for return type.
27345 (emit_jump_insn_before_noloc): Likewise.
27346 (emit_call_insn_before_noloc): Likewise.
27347 (emit_debug_insn_before_noloc): Likewise.
27348 (emit_barrier_before): Strengthen return type and local "insn"
27349 from rtx to rtx_barrier *.
27350 (emit_label_before): Strengthen return type from rtx to
27351 rtx_insn *. Add checked cast for now when returning param
27352 (emit_pattern_after_noloc): Strengthen return type from rtx to
27353 rtx_insn *. Add checked casts for now when converting "last" from
27355 (emit_insn_after_noloc): Strengthen return type from rtx to
27357 (emit_jump_insn_after_noloc): Likewise.
27358 (emit_call_insn_after_noloc): Likewise.
27359 (emit_debug_insn_after_noloc): Likewise.
27360 (emit_barrier_after): Strengthen return type from rtx to
27362 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
27363 Add checked cast for now when converting "label" from rtx to
27365 (emit_pattern_after_setloc): Strengthen return type from rtx to
27366 rtx_insn *. Add checked casts for now when converting "last" from
27368 (emit_pattern_after): Strengthen return type from rtx to
27370 (emit_insn_after_setloc): Likewise.
27371 (emit_insn_after): Likewise.
27372 (emit_jump_insn_after_setloc): Likewise.
27373 (emit_jump_insn_after): Likewise.
27374 (emit_call_insn_after_setloc): Likewise.
27375 (emit_call_insn_after): Likewise.
27376 (emit_debug_insn_after_setloc): Likewise.
27377 (emit_debug_insn_after): Likewise.
27378 (emit_pattern_before_setloc): Likewise. Add checked casts for now
27379 when converting "last" from rtx to rtx_insn *.
27380 (emit_pattern_before): Strengthen return type from rtx to
27382 (emit_insn_before_setloc): Likewise.
27383 (emit_insn_before): Likewise.
27384 (emit_jump_insn_before_setloc): Likewise.
27385 (emit_jump_insn_before): Likewise.
27386 (emit_call_insn_before_setloc): Likewise.
27387 (emit_call_insn_before): Likewise.
27388 (emit_debug_insn_before_setloc): Likewise.
27389 (emit_debug_insn_before): Likewise.
27390 (emit_insn): Strengthen return type and locals "last", "insn",
27391 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
27392 within cases where we know we have an insn.
27393 (emit_debug_insn): Likewise.
27394 (emit_jump_insn): Likewise.
27395 (emit_call_insn): Strengthen return type and local "insn" from rtx
27397 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
27398 a checked cast to rtx_insn * for now on "label".
27399 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
27400 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
27401 (emit_use): Likewise.
27402 (gen_use): Likewise, also for local "seq".
27403 (emit): Likewise for return type and local "insn".
27404 (rtx_insn): Likewise for return type and local "new_rtx".
27406 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
27407 from rtx to rtx_barrier *.
27409 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
27410 changed return type from rtx to rtx_insn *, we must update
27411 "emit_fn" type, and this in turn means updating...
27412 (frame_insn): ...this. Strengthen return type from rtx to
27413 rtx_insn *. Introduce a new local "insn" of the appropriate type.
27415 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27417 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
27418 rtx to rtx_jump_table_data *. Also for local.
27419 * rtl.h (emit_jump_table_data): Likewise.
27421 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27423 * basic-block.h (create_basic_block_structure): Strengthen third
27424 param "bb_note" from rtx to rtx_note *.
27425 * rtl.h (emit_note_before): Strengthen return type from rtx to
27427 (emit_note_after): Likewise.
27428 (emit_note): Likewise.
27429 (emit_note_copy): Likewise. Also, strengthen param similarly.
27430 * function.h (struct rtl_data): Strengthen field
27431 "x_stack_check_probe_note" from rtx to rtx_note *.
27433 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
27434 from rtx to rtx_note *.
27435 * cfgrtl.c (create_basic_block_structure): Strengthen third param
27436 "bb_note" from rtx to rtx_note *.
27437 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
27438 when calling emit_note_copy.
27439 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
27441 (emit_note_after): Likewise.
27442 (emit_note_before): Likewise.
27443 (emit_note_copy): Likewise. Also, strengthen param similarly.
27444 (emit_note): Likewise.
27445 * except.c (emit_note_eh_region_end): Likewise for return type.
27446 Strengthen local "next" from rtx to rtx_insn *.
27447 (convert_to_eh_region_ranges): Strengthen local "note"
27448 from rtx to rtx_note *.
27449 * final.c (change_scope): Likewise.
27450 (reemit_insn_block_notes): Likewise, for both locals named "note".
27451 Also, strengthen local "insn" from rtx to rtx_insn *.
27452 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
27454 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
27455 strengthen local "seq" from rtx to rtx_insn *.
27456 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
27458 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
27460 (get_bb_note_from_pool): Strengthen return type from rtx to
27462 (sel_create_basic_block): Strengthen local "new_bb_note" from
27463 insn_t to rtx_note *.
27464 * var-tracking.c (emit_note_insn_var_location): Strengthen local
27465 "note" from rtx to rtx_note *.
27466 (emit_notes_in_bb): Likewise.
27468 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27470 * function.h (struct rtl_data): Strengthen field
27471 "x_parm_birth_insn" from rtx to rtx_insn *.
27472 * function.c (struct assign_parm_data_all): Strengthen fields
27473 "first_conversion_insn" and "last_conversion_insn" from rtx to
27476 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27478 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
27479 to rtx_insn *; also for local "var_end_seq".
27480 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
27481 (maybe_cleanup_end_of_block): Likewise for param "last" and local
27483 (expand_gimple_cond): Likewise for locals "last2" and "last".
27484 (mark_transaction_restart_calls): Likewise for local "insn".
27485 (expand_gimple_stmt): Likewise for return type and locals "last"
27487 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
27488 (avoid_complex_debug_insns): Likewise for param "insn".
27489 (expand_debug_locations): Likewise for locals "insn", "last",
27490 "prev_insn" and "insn2".
27491 (expand_gimple_basic_block): Likewise for local "last".
27492 (construct_exit_block): Likewise for locals "head", "end",
27494 (pass_expand::execute): Likewise for locals "var_seq",
27495 "var_ret_seq", "next".
27497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27499 * asan.h (asan_emit_stack_protection): Strengthen return type from
27501 * asan.c (asan_emit_stack_protection): Likewise. Add local
27502 "insns" to hold the return value.
27504 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27506 * basic-block.h (bb_note): Strengthen return type from rtx to
27508 * sched-int.h (bb_note): Likewise.
27509 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
27511 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27513 * rtl.h (make_insn_raw): Strengthen return type from rtx to
27516 * emit-rtl.c (make_insn_raw): Strengthen return type and local
27517 "insn" from rtx to rtx_insn *.
27518 (make_debug_insn_raw): Strengthen return type from rtx to
27519 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
27520 (make_jump_insn_raw): Strengthen return type from rtx to
27521 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
27522 (make_call_insn_raw): Strengthen return type from rtx to
27523 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
27524 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
27525 callback from rtx to rtx_insn *; likewise for local "insn" and
27526 "next", adding a checked cast to rtx_insn in the relevant cases of
27527 the switch statement.
27528 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
27529 callback from rtx to rtx_insn *.
27530 (emit_pattern_after_setloc): Likewise.
27531 (emit_pattern_after): Likewise.
27532 (emit_pattern_before_setloc): Likewise.
27533 (emit_pattern_before): Likewise.
27535 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27537 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
27539 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
27540 accepting an rtx_insn *.
27541 (last_call_insn): Strengthen return type from rtx to
27544 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27546 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
27547 "insns" from rtx to rtx_insn *.
27548 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
27549 locals "insn" and "prev".
27551 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27553 * rtl.h (tablejump_p): Strengthen third param from rtx * to
27554 rtx_jump_table_data **.
27556 * cfgbuild.c (make_edges): Introduce local "table", using it in
27557 place of "tmp" for jump table data.
27558 (find_bb_boundaries): Strengthen local "table" from rtx to
27559 rtx_jump_table_data *.
27560 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27561 (outgoing_edges_match): Likewise for locals "table1" and "table2".
27562 (try_crossjump_to_edge): Likewise.
27563 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
27565 (patch_jump_insn): Introduce local "table", using it in place of
27566 "tmp" for jump table data.
27567 (force_nonfallthru_and_redirect): Introduce local "table", so that
27568 call to tablejump_p can receive an rtx_jump_table_data **. Update
27569 logic around the call to overwrite "note" appropriately if
27570 tablejump_p returns non-zero.
27571 (get_last_bb_insn): Introduce local "table", using it in place of
27572 "tmp" for jump table data.
27573 * dwarf2cfi.c (create_trace_edges): Likewise.
27575 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
27576 from rtx to rtx_jump_table_data *.
27577 (create_fix_barrier): Strengthen local "tmp" from rtx to
27578 rtx_jump_table_data *.
27579 (arm_reorg): Likewise for local "table".
27581 * config/s390/s390.c (s390_chunkify_start): Likewise.
27583 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
27585 * jump.c (delete_related_insns): Strengthen local "lab_next" from
27586 rtx to rtx_jump_table_data *.
27588 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
27589 rtx_jump_table_data **. Add a checked cast when writing through
27590 the pointer: we know there that local "table" is non-NULL and that
27591 JUMP_TABLE_DATA_P (table) holds.
27592 (label_is_jump_target_p): Introduce local "table", using it in
27593 place of "tmp" for jump table data.
27595 2014-08-19 Marek Polacek <polacek@redhat.com>
27598 * doc/invoke.texi: Document -Wbool-compare.
27600 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27602 * rtl.h (entry_of_function): Strengthen return type from rtx to
27604 * cfgrtl.c (entry_of_function): Likewise.
27606 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27608 * emit-rtl.h (get_insns): Strengthen return type from rtx to
27609 rtx_insn *, adding a checked cast for now.
27610 (get_last_insn): Likewise.
27612 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27614 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
27617 * emit-rtl.c (gen_label_rtx): Likewise.
27619 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27621 * rtl.h (previous_insn): Strengthen return type from rtx to
27623 (next_insn): Likewise.
27624 (prev_nonnote_insn): Likewise.
27625 (prev_nonnote_insn_bb): Likewise.
27626 (next_nonnote_insn): Likewise.
27627 (next_nonnote_insn_bb): Likewise.
27628 (prev_nondebug_insn): Likewise.
27629 (next_nondebug_insn): Likewise.
27630 (prev_nonnote_nondebug_insn): Likewise.
27631 (next_nonnote_nondebug_insn): Likewise.
27632 (prev_real_insn): Likewise.
27633 (next_real_insn): Likewise.
27634 (prev_active_insn): Likewise.
27635 (next_active_insn): Likewise.
27637 * emit-rtl.c (next_insn): Strengthen return type from rtx to
27638 rtx_insn *, adding a checked cast.
27639 (previous_insn): Likewise.
27640 (next_nonnote_insn): Likewise.
27641 (next_nonnote_insn_bb): Likewise.
27642 (prev_nonnote_insn): Likewise.
27643 (prev_nonnote_insn_bb): Likewise.
27644 (next_nondebug_insn): Likewise.
27645 (prev_nondebug_insn): Likewise.
27646 (next_nonnote_nondebug_insn): Likewise.
27647 (prev_nonnote_nondebug_insn): Likewise.
27648 (next_real_insn): Likewise.
27649 (prev_real_insn): Likewise.
27650 (next_active_insn): Likewise.
27651 (prev_active_insn): Likewise.
27653 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
27654 param "stepfunc" so that it returns an rtx_insn * rather than an
27655 rtx, to track the change to prev_nonnote_insn_bb, which is the
27656 only function this is called with.
27657 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
27659 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
27661 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
27664 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27666 * coretypes.h (class rtx_debug_insn): Add forward declaration.
27667 (class rtx_nonjump_insn): Likewise.
27668 (class rtx_jump_insn): Likewise.
27669 (class rtx_call_insn): Likewise.
27670 (class rtx_jump_table_data): Likewise.
27671 (class rtx_barrier): Likewise.
27672 (class rtx_code_label): Likewise.
27673 (class rtx_note): Likewise.
27675 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
27676 adding the invariant DEBUG_INSN_P (X).
27677 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
27678 the invariant NONJUMP_INSN_P (X).
27679 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
27680 the invariant JUMP_P (X).
27681 (class rtx_call_insn): New, a subclass of rtx_insn, adding
27682 the invariant CALL_P (X).
27683 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
27684 invariant JUMP_TABLE_DATA_P (X).
27685 (class rtx_barrier): New, a subclass of rtx_insn, adding the
27686 invariant BARRIER_P (X).
27687 (class rtx_code_label): New, a subclass of rtx_insn, adding
27688 the invariant LABEL_P (X).
27689 (class rtx_note): New, a subclass of rtx_insn, adding
27690 the invariant NOTE_P(X).
27691 (is_a_helper <rtx_debug_insn *>::test): New.
27692 (is_a_helper <rtx_nonjump_insn *>::test): New.
27693 (is_a_helper <rtx_jump_insn *>::test): New.
27694 (is_a_helper <rtx_call_insn *>::test): New.
27695 (is_a_helper <rtx_jump_table_data *>::test): New functions,
27696 overloaded for both rtx and rtx_insn *.
27697 (is_a_helper <rtx_barrier *>::test): New.
27698 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
27699 for both rtx and rtx_insn *.
27700 (is_a_helper <rtx_note *>::test): New.
27702 2014-08-19 Marek Polacek <polacek@redhat.com>
27704 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
27705 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27706 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
27707 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27709 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27711 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
27712 rtx_insn *. To help with transition, for now, convert from an
27713 access macro into a pair of functions: BND_TO, returning an
27715 (SET_BND_TO): New function, for use where BND_TO is used as an
27718 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
27720 (BND_TO): New function, adding a checked cast.
27721 (SET_BND_TO): New function.
27723 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
27725 (compute_av_set_on_boundaries): Likewise.
27727 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27729 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
27730 destination if it is used in source.
27731 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
27732 (*popcount<mode>2_falsedep_1): Likewise.
27734 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27737 * configure.ac: Set install_gold_as_default to no first.
27738 * configure: Regenerated.
27740 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27742 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
27743 "note_list" field will eventually be an rtx_insn *. To help with
27744 transition, for now, convert from an access macro into a pair of
27745 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
27746 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
27749 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
27750 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
27752 * sel-sched-ir.c (init_bb): Likewise.
27753 (sel_restore_notes): Likewise.
27754 (move_bb_info): Likewise.
27755 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
27756 (SET_BB_NOTE_LIST): New function.
27758 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27760 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
27761 field will eventually be an rtx_insn *. To help with transition,
27762 for now, convert from an access macro into a pair of functions:
27763 VINSN_INSN_RTX, returning an rtx_insn *, and...
27764 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
27765 is used as an lvalue.
27767 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
27768 SET_VINSN_INSN_RTX where it's used as an lvalue.
27769 (VINSN_INSN_RTX): New function.
27770 (SET_VINSN_INSN_RTX): New function.
27772 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27774 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
27775 eventually be rtx_insn *, but to help with transition, for now,
27776 convert from an access macro into a pair of functions: DEP_PRO
27777 returning an rtx_insn * and...
27778 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
27779 lvalue, returning an rtx&.
27780 (DEP_CON): Analogous changes to DEP_PRO above.
27781 (SET_DEP_CON): Likewise.
27783 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
27784 an lvalue to SET_DEP_CON.
27785 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
27786 (sd_copy_back_deps): Likewise for DEP_CON.
27787 (DEP_PRO): New function, adding a checked cast for now.
27788 (DEP_CON): Likewise.
27789 (SET_DEP_PRO): New function.
27790 (SET_DEP_CON): Likewise.
27792 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27794 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
27795 (extra_options): Add i386/cygwin.opt.
27796 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
27797 (CPP_SPEC): Accept -pthread.
27798 (LINK_SPEC): Ditto.
27799 (GOMP_SELF_SPECS): Update comment.
27800 * config/i386/cygwin.opt: New file for -pthread flag.
27802 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27804 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
27805 * df.h (DF_REF_INSN): Convert from a macro to a function, so
27806 that we can return an rtx_insn *.
27808 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27810 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
27811 when building executables, not DLLs. Add --large-address-aware
27812 under the same conditions.
27813 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
27814 when building executables, not DLLs. Add --large-address-aware
27815 under the same conditions when using -m32.
27817 * config/i386/cygwin-stdint.h: Throughout, make type
27818 definitions dependent on target architecture, not host.
27820 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27822 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
27823 the return type from rtx to rtx_insn *, which will enable various
27824 conversions in followup patches. For now this is is done by a
27826 (NEXT_INSN): Likewise.
27827 (SET_PREV_INSN): Convert to an inline function. This is intended
27828 for use as an lvalue, and so returns an rtx& to allow in-place
27830 (SET_NEXT_INSN): Likewise.
27832 2014-07-08 Mark Wielaard <mjw@redhat.com>
27835 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
27837 2014-08-19 Marek Polacek <polacek@redhat.com>
27840 * cgraphunit.c (handle_alias_pairs): Fix condition.
27842 2014-08-19 Richard Biener <rguenther@suse.de>
27844 * gimple-fold.c (fold_gimple_assign): Properly build a
27845 null-pointer constant when devirtualizing addresses.
27847 2014-07-07 Mark Wielaard <mjw@redhat.com>
27849 * dwarf2out.c (decl_quals): New function.
27850 (modified_type_die): Take one cv_quals argument instead of two,
27851 one for const and one for volatile.
27852 (add_type_attribute): Likewise.
27853 (generic_parameter_die): Call add_type_attribute with one modifier
27855 (base_type_for_mode): Likewise.
27856 (add_bounds_info): Likewise.
27857 (add_subscript_info): Likewise.
27858 (gen_array_type_die): Likewise.
27859 (gen_descr_array_type_die): Likewise.
27860 (gen_entry_point_die): Likewise.
27861 (gen_enumeration_type_die): Likewise.
27862 (gen_formal_parameter_die): Likewise.
27863 (gen_subprogram_die): Likewise.
27864 (gen_variable_die): Likewise.
27865 (gen_const_die): Likewise.
27866 (gen_field_die): Likewise.
27867 (gen_pointer_type_die): Likewise.
27868 (gen_reference_type_die): Likewise.
27869 (gen_ptr_to_mbr_type_die): Likewise.
27870 (gen_inheritance_die): Likewise.
27871 (gen_subroutine_type_die): Likewise.
27872 (gen_typedef_die): Likewise.
27873 (force_type_die): Likewise.
27875 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27877 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
27879 * configure: Regenerate.
27881 2014-08-19 Richard Biener <rguenther@suse.de>
27883 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
27884 DECL_EXTERNALs in BLOCKs as non-references.
27885 * tree-streamer-out.c (streamer_write_chain): Likewise.
27887 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
27888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27889 Anna Tikhonova <anna.tikhonova@intel.com>
27890 Ilya Tocar <ilya.tocar@intel.com>
27891 Andrey Turetskiy <andrey.turetskiy@intel.com>
27892 Ilya Verbin <ilya.verbin@intel.com>
27893 Kirill Yukhin <kirill.yukhin@intel.com>
27894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27896 * config/i386/sse.md
27897 (define_mode_iterator VI48_AVX512F): Delete.
27898 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
27899 (define_mode_iterator VI2_AVX512VL): Ditto.
27900 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
27903 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
27905 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
27906 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
27907 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27908 with VI48_AVX512F_AVX512VL): New.
27909 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27910 with VI2_AVX512VL): Ditto.
27912 2014-08-19 Marek Polacek <polacek@redhat.com>
27914 * doc/invoke.texi: Document -Wc99-c11-compat.
27916 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27918 * rtl.h (PREV_INSN): Split macro in two: the existing one,
27919 for rvalues, and...
27920 (SET_PREV_INSN): New macro, for use as an lvalue.
27921 (NEXT_INSN, SET_NEXT_INSN): Likewise.
27923 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
27924 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
27925 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
27926 (fixup_abnormal_edges): Likewise.
27927 (unlink_insn_chain): Likewise.
27928 (fixup_reorder_chain): Likewise.
27929 (cfg_layout_delete_block): Likewise.
27930 (cfg_layout_merge_blocks): Likewise.
27931 * combine.c (update_cfg_for_uncondjump): Likewise.
27932 * emit-rtl.c (link_insn_into_chain): Likewise.
27933 (remove_insn): Likewise.
27934 (delete_insns_since): Likewise.
27935 (reorder_insns_nobb): Likewise.
27936 (emit_insn_after_1): Likewise.
27937 * final.c (rest_of_clean_state): Likewise.
27938 (final_scan_insn): Likewise.
27939 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
27940 * haifa-sched.c (concat_note_lists): Likewise.
27941 (remove_notes): Likewise.
27942 (restore_other_notes): Likewise.
27943 (move_insn): Likewise.
27944 (unlink_bb_notes): Likewise.
27945 (restore_bb_notes): Likewise.
27946 * jump.c (delete_for_peephole): Likewise.
27947 * optabs.c (emit_libcall_block_1): Likewise.
27948 * reorg.c (emit_delay_sequence): Likewise.
27949 (fill_simple_delay_slots): Likewise.
27950 * sel-sched-ir.c (sel_move_insn): Likewise.
27951 (sel_remove_insn): Likewise.
27952 (get_bb_note_from_pool): Likewise.
27953 * sel-sched.c (move_nop_to_previous_block): Likewise.
27955 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
27956 * config/c6x/c6x.c (gen_one_bundle): Likewise.
27957 (c6x_gen_bundles): Likewise.
27958 (hwloop_optimize): Likewise.
27959 * config/frv/frv.c (frv_function_prologue): Likewise.
27960 (frv_register_nop): Likewise.
27961 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
27962 (ia64_reorg): Likewise.
27963 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
27964 (mep_make_bundle): Likewise.
27965 (mep_bundle_insns): Likewise.
27966 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
27967 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
27968 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
27970 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27972 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
27973 return type from rtx to rtx_insn *.
27974 (BB_END): Likewise.
27975 (BB_HEADER): Likewise.
27976 (BB_FOOTER): Likewise.
27977 (SET_BB_HEAD): Convert to a function.
27978 (SET_BB_END): Likewise.
27979 (SET_BB_HEADER): Likewise.
27980 (SET_BB_FOOTER): Likewise.
27982 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
27983 Strengthen the return type from rtx to rtx_insn *. For now, this
27984 is done by adding a checked cast, but this will eventually
27985 become a field lookup.
27986 (BB_END): Likewise.
27987 (BB_HEADER): Likewise.
27988 (BB_FOOTER): Likewise.
27989 (SET_BB_HEAD): New function, from macro of same name. This is
27990 intended for use as an lvalue, and so returns an rtx& to allow
27991 in-place modification.
27992 (SET_BB_END): Likewise.
27993 (SET_BB_HEADER): Likewise.
27994 (SET_BB_FOOTER): Likewise.
27996 2014-08-18 David Malcolm <dmalcolm@redhat.com>
27998 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
27999 for rvalues, and...
28000 (SET_BB_HEAD): New macro, for use as a lvalue.
28001 (BB_END, SET_BB_END): Likewise.
28002 (BB_HEADER, SET_BB_HEADER): Likewise.
28003 (BB_FOOTER, SET_BB_FOOTER): Likewise.
28005 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
28006 of BB_* macros into SET_BB_* macros.
28007 (fix_crossing_unconditional_branches): Likewise.
28008 * caller-save.c (save_call_clobbered_regs): Likewise.
28009 (insert_one_insn): Likewise.
28010 * cfgbuild.c (find_bb_boundaries): Likewise.
28011 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
28012 (outgoing_edges_match): Likewise.
28013 (try_optimize_cfg): Likewise.
28014 * cfgexpand.c (expand_gimple_cond): Likewise.
28015 (expand_gimple_tailcall): Likewise.
28016 (expand_gimple_basic_block): Likewise.
28017 (construct_exit_block): Likewise.
28018 * cfgrtl.c (delete_insn): Likewise.
28019 (create_basic_block_structure): Likewise.
28020 (rtl_delete_block): Likewise.
28021 (rtl_split_block): Likewise.
28022 (emit_nop_for_unique_locus_between): Likewise.
28023 (rtl_merge_blocks): Likewise.
28024 (block_label): Likewise.
28025 (try_redirect_by_replacing_jump): Likewise.
28026 (emit_barrier_after_bb): Likewise.
28027 (fixup_abnormal_edges): Likewise.
28028 (record_effective_endpoints): Likewise.
28029 (relink_block_chain): Likewise.
28030 (fixup_reorder_chain): Likewise.
28031 (fixup_fallthru_exit_predecessor): Likewise.
28032 (cfg_layout_duplicate_bb): Likewise.
28033 (cfg_layout_split_block): Likewise.
28034 (cfg_layout_delete_block): Likewise.
28035 (cfg_layout_merge_blocks): Likewise.
28036 * combine.c (update_cfg_for_uncondjump): Likewise.
28037 * emit-rtl.c (add_insn_after): Likewise.
28038 (remove_insn): Likewise.
28039 (reorder_insns): Likewise.
28040 (emit_insn_after_1): Likewise.
28041 * haifa-sched.c (get_ebb_head_tail): Likewise.
28042 (restore_other_notes): Likewise.
28043 (move_insn): Likewise.
28044 (sched_extend_bb): Likewise.
28045 (fix_jump_move): Likewise.
28046 * ifcvt.c (noce_process_if_block): Likewise.
28047 (dead_or_predicable): Likewise.
28048 * ira.c (update_equiv_regs): Likewise.
28049 * reg-stack.c (change_stack): Likewise.
28050 * sel-sched-ir.c (sel_move_insn): Likewise.
28051 * sel-sched.c (move_nop_to_previous_block): Likewise.
28053 * config/c6x/c6x.c (hwloop_optimize): Likewise.
28054 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
28056 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28058 * rtl.h (for_each_rtx_in_insn): New function.
28059 * rtlanal.c (for_each_rtx_in_insn): Likewise.
28061 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28063 * coretypes.h (class rtx_insn): Add forward declaration.
28065 * rtl.h: Include is-a.h.
28066 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
28067 workaround to ensure gengtype knows inheritance is occurring,
28068 whilst continuing to use the pre-existing special-casing for
28070 (class rtx_insn): New subclass of rtx_def, adding the
28071 invariant that we're dealing with something we can sanely use
28072 INSN_UID, NEXT_INSN, PREV_INSN on.
28073 (is_a_helper <rtx_insn *>::test): New.
28074 (is_a_helper <const rtx_insn *>::test): New.
28076 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28078 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
28080 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28082 * ipa-visibility.c (update_visibility_by_resolution_info): Do no
28083 turn UNDEF comdats as extern.
28085 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28087 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
28088 to BUILT_IN_UNREACHABLE.
28090 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
28093 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
28095 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
28096 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
28097 (ffs<mode>2): Do not expand with tzcnt for
28098 TARGET_AVOID_FALSE_DEP_FOR_BMI.
28099 (ffssi2_no_cmove): Ditto.
28100 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
28101 (ctz<mode>2): New expander.
28102 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
28103 (*ctz<mode>2_falsedep): New insn.
28104 (*ctz<mode>2): Rename from ctz<mode>2.
28105 (clz<mode>2_lzcnt): New expander.
28106 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
28107 (*clz<mode>2_lzcnt_falsedep): New insn.
28108 (*clz<mode>2): Rename from ctz<mode>2.
28109 (popcount<mode>2): New expander.
28110 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
28111 (*popcount<mode>2_falsedep): New insn.
28112 (*popcount<mode>2): Rename from ctz<mode>2.
28113 (*popcount<mode>2_cmp): Remove.
28114 (*popcountsi2_cmp_zext): Ditto.
28116 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
28118 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
28119 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
28120 * config/microblaze/microblaze.h
28121 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
28123 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
28126 * configure.ac: Set install_gold_as_default to no for
28128 * configure: Regenerated.
28130 2014-08-18 Roman Gareev <gareevroman@gmail.com>
28132 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
28133 * config.in: Add undef of HAVE_isl.
28134 * configure: Regenerate.
28135 * configure.ac: Add definition of HAVE_isl.
28136 * graphite-blocking.c: Add checking of HAVE_isl.
28137 * graphite-dependences.c: Likewise.
28138 * graphite-interchange.c: Likewise.
28139 * graphite-isl-ast-to-gimple.c: Likewise.
28140 * graphite-optimize-isl.c: Likewise.
28141 * graphite-poly.c: Likewise.
28142 * graphite-scop-detection.c: Likewise.
28143 * graphite-sese-to-poly.c: Likewise.
28144 * graphite.c: Likewise.
28145 * toplev.c: Replace the checking of HAVE_cloog with the checking
28148 2014-08-18 Richard Biener <rguenther@suse.de>
28150 PR tree-optimization/62090
28151 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
28152 (fold_builtin_3): Do not fold snprintf.
28153 (fold_builtin_4): Likewise.
28154 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
28155 moved from builtins.c.
28156 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
28157 (gimple_fold_builtin): Do not fold sprintf here.
28159 2014-08-18 Richard Biener <rguenther@suse.de>
28161 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
28163 (maybe_canonicalize_mem_ref_addr): ... this function.
28164 (fold_stmt_1): Apply it here before all simplification.
28166 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
28169 * cgraph.h (cgraph_node::create_indirect_edge): Add
28170 compute_indirect_info param.
28171 * cgraph.c (cgraph_node::create_indirect_edge): Compute
28172 indirect_info only when it is required.
28173 * cgraphclones.c (cgraph_clone_edge): Do not recompute
28174 indirect_info fore cloned indirect edge.
28176 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28178 Anna Tikhonova <anna.tikhonova@intel.com>
28179 Ilya Tocar <ilya.tocar@intel.com>
28180 Andrey Turetskiy <andrey.turetskiy@intel.com>
28181 Ilya Verbin <ilya.verbin@intel.com>
28182 Kirill Yukhin <kirill.yukhin@intel.com>
28183 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28185 * config/i386/sse.md
28186 (define_mode_iterator VI8_AVX2_AVX512BW): New.
28187 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
28189 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28190 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28191 Anna Tikhonova <anna.tikhonova@intel.com>
28192 Ilya Tocar <ilya.tocar@intel.com>
28193 Andrey Turetskiy <andrey.turetskiy@intel.com>
28194 Ilya Verbin <ilya.verbin@intel.com>
28195 Kirill Yukhin <kirill.yukhin@intel.com>
28196 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28198 * config/i386/sse.md
28199 (define_mode_iterator VF1_AVX512VL): New.
28200 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
28201 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
28204 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28205 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28206 Anna Tikhonova <anna.tikhonova@intel.com>
28207 Ilya Tocar <ilya.tocar@intel.com>
28208 Andrey Turetskiy <andrey.turetskiy@intel.com>
28209 Ilya Verbin <ilya.verbin@intel.com>
28210 Kirill Yukhin <kirill.yukhin@intel.com>
28211 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28213 * config/i386/i386.c: Rename ufloatv8siv8df_mask to
28214 ufloatv8siv8df2_mask.
28215 * config/i386/i386.md
28216 (define_code_iterator any_float): New.
28217 (define_code_attr floatsuffix): New.
28218 * config/i386/sse.md
28219 (define_mode_iterator VF1_128_256VL): New.
28220 (define_mode_iterator VF2_512_256VL): New.
28221 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove
28222 unnecessary TARGET check.
28223 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
28224 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
28226 (define_mode_attr qq2pssuff): New.
28227 (define_mode_attr sselongvecmode): New.
28228 (define_mode_attr sselongvecmodelower): New.
28229 (define_mode_attr sseintvecmode3): New.
28230 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
28232 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
28233 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
28234 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
28235 (define_insn "ufloatv2siv2df2<mask_name>"): New.
28237 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28239 Anna Tikhonova <anna.tikhonova@intel.com>
28240 Ilya Tocar <ilya.tocar@intel.com>
28241 Andrey Turetskiy <andrey.turetskiy@intel.com>
28242 Ilya Verbin <ilya.verbin@intel.com>
28243 Kirill Yukhin <kirill.yukhin@intel.com>
28244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28246 * config/i386/sse.md
28247 (define_mode_iterator VF2_AVX512VL): New.
28248 (define_mode_attr sseintvecmode2): New.
28249 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
28250 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
28251 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
28253 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
28255 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28257 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28260 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28262 Anna Tikhonova <anna.tikhonova@intel.com>
28263 Ilya Tocar <ilya.tocar@intel.com>
28264 Andrey Turetskiy <andrey.turetskiy@intel.com>
28265 Ilya Verbin <ilya.verbin@intel.com>
28266 Kirill Yukhin <kirill.yukhin@intel.com>
28267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28269 * config/i386/i386.md
28270 (define_insn "*movoi_internal_avx"): Add evex version.
28271 (define_insn "*movti_internal"): Ditto.
28273 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28275 Anna Tikhonova <anna.tikhonova@intel.com>
28276 Ilya Tocar <ilya.tocar@intel.com>
28277 Andrey Turetskiy <andrey.turetskiy@intel.com>
28278 Ilya Verbin <ilya.verbin@intel.com>
28279 Kirill Yukhin <kirill.yukhin@intel.com>
28280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28282 * config/i386/i386.md
28283 (define_attr "isa"): Add avx512dq, noavx512dq.
28284 (define_attr "enabled"): Ditto.
28285 * config/i386/sse.md
28286 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
28288 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28290 Anna Tikhonova <anna.tikhonova@intel.com>
28291 Ilya Tocar <ilya.tocar@intel.com>
28292 Andrey Turetskiy <andrey.turetskiy@intel.com>
28293 Ilya Verbin <ilya.verbin@intel.com>
28294 Kirill Yukhin <kirill.yukhin@intel.com>
28295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28297 * config/i386/i386.c
28298 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
28299 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
28300 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
28301 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
28302 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
28303 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
28304 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
28305 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
28306 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
28307 * config/i386/sse.md
28308 (define_mode_iterator VMOVE): Allow V4TI mode.
28309 (define_mode_iterator V_AVX512VL): New.
28310 (define_mode_iterator V): New handling for AVX512VL.
28311 (define_insn "avx512f_load<mode>_mask"): Delete.
28312 (define_insn "<avx512>_load<mode>_mask"): New.
28313 (define_insn "avx512f_store<mode>_mask"): Delete.
28314 (define_insn "<avx512>_store<mode>_mask"): New.
28317 2014-08-18 Yury Gribov <y.gribov@samsung.com>
28320 * asan.c (instrument_derefs): Fix bitfield check.
28322 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28324 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
28325 * config/rs6000/htm.md (ttest): Remove clobber.
28326 * config/rs6000/predicates.md (any_mask_operand): New predicate.
28327 (and_operand): Reformat.
28328 (and_2rld_operand): New predicate.
28329 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
28331 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
28332 parameter. Handle AND directly.
28333 (rs6000_split_logical_di): Remove last parameter.
28334 (rs6000_split_logical): Remove last parameter. Remove obsolete
28336 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
28337 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
28338 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
28339 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
28340 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
28341 and 5 anonymous splitters): Delete.
28342 (and<mode>3): New expander.
28343 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
28344 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
28345 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
28346 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
28347 (floatdisf2_internal1): Remove clobbers.
28348 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
28349 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
28350 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
28351 (and<mode>3 for BOOL_128): Remove clobber.
28352 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
28353 rs6000_split_logical.
28354 (*bool<mode>3_internal for BOOL_128): Adjust call of
28355 rs6000_split_logical.
28356 (*boolc<mode>3_internal1 for BOOL_128,
28357 *boolc<mode>3_internal2 for BOOL_128,
28358 *boolcc<mode>3_internal1 for BOOL_128,
28359 *boolcc<mode>3_internal2 for BOOL_128,
28360 *eqv<mode>3_internal1 for BOOL_128,
28361 *eqv<mode>3_internal2 for BOOL_128,
28362 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
28363 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
28365 (*vec_reload_and_reg_<mptrsize>): Delete.
28367 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28369 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
28370 and split, *boolccsi3_internal3 and split): Delete.
28371 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
28372 *boolccdi3_internal3 and split): Delete.
28373 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
28374 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
28376 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28378 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
28379 and split, *boolcsi3_internal3 and split): Delete.
28380 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
28381 *boolcdi3_internal3 and split): Delete.
28382 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
28384 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28386 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
28387 <'u'>: Also support printing the low-order 16 bits.
28388 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
28389 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
28390 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
28391 *booldi3_internal3 and split): Delete.
28392 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
28393 *bool<mode>3_dot2): New.
28394 (two anonymous define_splits for non_logical_cint_operand): Merge.
28396 2014-08-17 Marek Polacek <polacek@redhat.com>
28397 Manuel López-Ibáñez <manu@gcc.gnu.org>
28400 * diagnostic.c (adjust_line): Add gcc_checking_assert.
28401 (diagnostic_show_locus): Don't print caret diagnostic
28402 if a column is larger than the line_width.
28404 2014-08-17 Roman Gareev <gareevroman@gmail.com>
28406 * common.opt: Make the ISL AST generator to be the main code generator
28409 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
28411 * wide-int.h (generic_wide_int): Declare as class instead of struct.
28413 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
28416 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
28418 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
28419 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
28420 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
28422 * config/pa/pa.md (begin_brtab): Delete insn.
28423 (end_brtab): Likewise.
28425 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28427 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
28429 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
28431 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
28432 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
28433 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
28434 (get_dynamic_type): Remove.
28435 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
28436 (clear_speculation): Bring to ipa-deivrt.h
28437 (get_class_context): Rename to ...
28438 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
28439 (contains_type_p): Update.
28440 (get_dynamic_type): Rename to ...
28441 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
28442 (possible_polymorphic_call_targets): UPdate.
28443 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
28444 * ipa-prop.c (ipa_analyze_call_uses): Update.
28446 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
28448 * doc/invoke.texi (SH options): Document missing processor variant
28449 options. Remove references to Hitachi. Undocument deprecated mspace
28452 2014-08-15 Jason Merrill <jason@redhat.com>
28454 * tree.c (type_hash_canon): Uncomment assert.
28456 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28458 * input.h (in_system_header_at): Add comment.
28460 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28463 * diagnostic.c (build_message_string): Make it extern.
28464 * diagnostic.h (build_message_string): Make it extern.
28466 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
28468 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
28469 load/store from/to non-floating class pseudo.
28471 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28473 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
28475 2014-08-15 Richard Biener <rguenther@suse.de>
28477 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
28478 (get_constraint_for_ssa_var): Remove dead code.
28479 (get_constraint_for_1): Adjust.
28480 (find_what_var_points_to): Likewise.
28481 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
28483 2014-08-15 Ilya Tocar <tocarip@gmail.com>
28486 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
28487 (_mm512_mask_cmpge_epu32_mask): Ditto.
28488 (_mm512_cmpge_epu32_mask): Ditto.
28489 (_mm512_mask_cmpge_epi64_mask): Ditto.
28490 (_mm512_cmpge_epi64_mask): Ditto.
28491 (_mm512_mask_cmpge_epu64_mask): Ditto.
28492 (_mm512_cmpge_epu64_mask): Ditto.
28493 (_mm512_mask_cmple_epi32_mask): Ditto.
28494 (_mm512_cmple_epi32_mask): Ditto.
28495 (_mm512_mask_cmple_epu32_mask): Ditto.
28496 (_mm512_cmple_epu32_mask): Ditto.
28497 (_mm512_mask_cmple_epi64_mask): Ditto.
28498 (_mm512_cmple_epi64_mask): Ditto.
28499 (_mm512_mask_cmple_epu64_mask): Ditto.
28500 (_mm512_cmple_epu64_mask): Ditto.
28501 (_mm512_mask_cmplt_epi32_mask): Ditto.
28502 (_mm512_cmplt_epi32_mask): Ditto.
28503 (_mm512_mask_cmplt_epu32_mask): Ditto.
28504 (_mm512_cmplt_epu32_mask): Ditto.
28505 (_mm512_mask_cmplt_epi64_mask): Ditto.
28506 (_mm512_cmplt_epi64_mask): Ditto.
28507 (_mm512_mask_cmplt_epu64_mask): Ditto.
28508 (_mm512_cmplt_epu64_mask): Ditto.
28509 (_mm512_mask_cmpneq_epi32_mask): Ditto.
28510 (_mm512_mask_cmpneq_epu32_mask): Ditto.
28511 (_mm512_cmpneq_epu32_mask): Ditto.
28512 (_mm512_mask_cmpneq_epi64_mask): Ditto.
28513 (_mm512_cmpneq_epi64_mask): Ditto.
28514 (_mm512_mask_cmpneq_epu64_mask): Ditto.
28515 (_mm512_cmpneq_epu64_mask): Ditto.
28516 (_mm512_castpd_ps): Ditto.
28517 (_mm512_castpd_si512): Ditto.
28518 (_mm512_castps_pd): Ditto.
28519 (_mm512_castps_si512): Ditto.
28520 (_mm512_castsi512_ps): Ditto.
28521 (_mm512_castsi512_pd): Ditto.
28522 (_mm512_castpd512_pd128): Ditto.
28523 (_mm512_castps512_ps128): Ditto.
28524 (_mm512_castsi512_si128): Ditto.
28525 (_mm512_castpd512_pd256): Ditto.
28526 (_mm512_castps512_ps256): Ditto.
28527 (_mm512_castsi512_si256): Ditto.
28528 (_mm512_castpd128_pd512): Ditto.
28529 (_mm512_castps128_ps512): Ditto.
28530 (_mm512_castsi128_si512): Ditto.
28531 (_mm512_castpd256_pd512): Ditto.
28532 (_mm512_castps256_ps512): Ditto.
28533 (_mm512_castsi256_si512): Ditto.
28534 (_mm512_cmpeq_epu32_mask): Ditto.
28535 (_mm512_mask_cmpeq_epu32_mask): Ditto.
28536 (_mm512_mask_cmpeq_epu64_mask): Ditto.
28537 (_mm512_cmpeq_epu64_mask): Ditto.
28538 (_mm512_cmpgt_epu32_mask): Ditto.
28539 (_mm512_mask_cmpgt_epu32_mask): Ditto.
28540 (_mm512_mask_cmpgt_epu64_mask): Ditto.
28541 (_mm512_cmpgt_epu64_mask): Ditto.
28542 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
28543 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
28544 * config/i386/i386.c (enum ix86_builtins): Add
28545 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
28546 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
28547 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
28548 (bdesc_args): Add __builtin_ia32_si512_256si,
28549 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
28550 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
28551 __builtin_ia32_pd512_pd.
28552 (ix86_expand_args_builtin): Handle new FTYPEs.
28553 * config/i386/sse.md (castmode): Add 512-bit modes.
28554 (AVX512MODE2P): New.
28555 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
28556 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
28558 2014-08-15 Richard Biener <rguenther@suse.de>
28560 * fold-const.c (tree_swap_operands_p): Put all constants
28561 last, also strip sign-changing NOPs when considering further
28562 canonicalization. Canonicalize also when optimizing for size.
28564 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28566 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
28567 one_match > zero_match case to just before simple_sequence.
28569 2014-08-15 Richard Biener <rguenther@suse.de>
28571 * data-streamer.h (streamer_string_index, string_for_index):
28573 * data-streamer-out.c (streamer_string_index): Make static.
28574 * data-streamer-in.c (string_for_index): Likewise.
28575 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
28576 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
28578 2014-08-15 Richard Biener <rguenther@suse.de>
28580 PR tree-optimization/62031
28581 * tree-data-ref.c (dr_analyze_indices): Do not set
28582 DR_UNCONSTRAINED_BASE.
28583 (dr_may_alias_p): All indirect accesses have to go the
28584 formerly DR_UNCONSTRAINED_BASE path.
28585 * tree-data-ref.h (struct indices): Remove
28586 unconstrained_base member.
28587 (DR_UNCONSTRAINED_BASE): Remove.
28589 2014-08-15 Jakub Jelinek <jakub@redhat.com>
28591 PR middle-end/62092
28592 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
28593 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
28594 in OMP_CLAUSE_MAP in some outer target region.
28596 2014-08-15 Bin Cheng <bin.cheng@arm.com>
28598 * tree-ssa-loop-ivopts.c (ivopts_data): New field
28599 name_expansion_cache.
28600 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
28601 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
28602 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
28603 (difference_cannot_overflow_p): New parameter. Use affine
28604 expansion for equality check.
28605 (iv_elimination_compare_lt): Pass new argument.
28607 2014-08-14 DJ Delorie <dj@redhat.com>
28609 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
28610 variables to the accumulator.
28612 * config/rl78/predicates.md (rl78_near_mem_operand): New.
28613 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
28614 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
28615 with far-far moves.
28617 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
28618 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
28619 (umulqihi3_virt): Likewise.
28620 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
28621 (umulqihi3_real): Likewise.
28623 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
28625 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28627 PR tree-optimization/62091
28628 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
28629 function_entry_reached.
28630 (walk_aliased_vdefs): Clear it here.
28631 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
28633 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28635 * ipa-utils.h (compare_virtual_tables): Declare.
28636 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
28638 2014-08-14 Marek Polacek <polacek@redhat.com>
28641 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
28642 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
28644 2014-08-14 Tom de Vries <tom@codesourcery.com>
28646 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
28648 2014-08-14 Tom de Vries <tom@codesourcery.com>
28650 PR rtl-optimization/62004
28651 PR rtl-optimization/62030
28652 * ifcvt.c (rtx_interchangeable_p): New function.
28653 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
28654 * emit-rtl.h (mem_attrs_eq_p): Declare.
28656 2014-08-14 Roman Gareev <gareevroman@gmail.com>
28658 * graphite-scop-detection.c:
28659 Add inclusion of cp-tree.h.
28660 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
28661 in case they are pointers to object types
28663 2014-08-14 Richard Biener <rguenther@suse.de>
28665 * BASE-VER: Change to 5.0.0
28667 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28669 Anna Tikhonova <anna.tikhonova@intel.com>
28670 Ilya Tocar <ilya.tocar@intel.com>
28671 Andrey Turetskiy <andrey.turetskiy@intel.com>
28672 Ilya Verbin <ilya.verbin@intel.com>
28673 Kirill Yukhin <kirill.yukhin@intel.com>
28674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28676 * config/i386/sse.md (define_mode_attr avx512): New.
28677 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
28679 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
28680 (define_mode_attr ssse3_avx2): Ditto.
28681 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
28682 (define_mode_attr avx2_avx512bw): New.
28683 (define_mode_attr ssedoublemodelower): New.
28684 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
28685 V32HI, V64QI modes.
28686 (define_mode_attr ssebytemode): Allow V8DI modes.
28687 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
28688 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
28689 (define_mode_attr ssePSmode2): New.
28690 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
28691 V16HI, V32HI modes.
28692 (define_mode_attr dbpsadbwmode): New.
28693 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
28694 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
28695 (vi8_sse4_1_avx2_avx512): New.
28696 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
28698 (define_mode_attr blendbits): Move before its immediate use.
28700 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28701 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28702 Anna Tikhonova <anna.tikhonova@intel.com>
28703 Ilya Tocar <ilya.tocar@intel.com>
28704 Andrey Turetskiy <andrey.turetskiy@intel.com>
28705 Ilya Verbin <ilya.verbin@intel.com>
28706 Kirill Yukhin <kirill.yukhin@intel.com>
28707 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28709 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
28710 * config/i386/subst.md
28711 (define_mode_iterator SUBST_V): Update.
28712 (define_mode_iterator SUBST_A): Ditto.
28713 (define_subst_attr "mask_operand7"): New.
28714 (define_subst_attr "mask_operand10"): New.
28715 (define_subst_attr "mask_operand_arg34") : New.
28716 (define_subst_attr "mask_expand_op3"): New.
28717 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
28718 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
28719 (define_subst_attr "mask_avx512vl_condition"): New.
28720 (define_subst_attr "round_mask_operand4"): Ditto.
28721 (define_subst_attr "round_mask_scalar_op3"): Delete.
28722 (define_subst_attr "round_mask_op4"): New.
28723 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
28725 (define_subst_attr "round_modev8sf_condition"): New.
28726 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
28728 (define_subst_attr "round_saeonly_mask_operand4"): New.
28729 (define_subst_attr "round_saeonly_mask_op4"): New.
28730 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
28731 V8DImode, V16SImode.
28732 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
28733 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
28734 (define_subst_attr "mask_expand4_args"): New.
28735 (define_subst "mask_expand4"): New.
28737 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28739 Anna Tikhonova <anna.tikhonova@intel.com>
28740 Ilya Tocar <ilya.tocar@intel.com>
28741 Andrey Turetskiy <andrey.turetskiy@intel.com>
28742 Ilya Verbin <ilya.verbin@intel.com>
28743 Kirill Yukhin <kirill.yukhin@intel.com>
28744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28746 * config/i386/i386.md
28747 (define_attr "isa"): Add avx512bw,noavx512bw.
28748 (define_attr "enabled"): Ditto.
28749 (define_split): Add 32/64-bit mask logic.
28750 (define_insn "*k<logic>qi"): New.
28751 (define_insn "*k<logic>hi"): New.
28752 (define_insn "*anddi_1"): Add mask version.
28753 (define_insn "*andsi_1"): Ditto.
28754 (define_insn "*<code><mode>_1"): Ditto.
28755 (define_insn "*<code>hi_1"): Ditto.
28756 (define_insn "kxnor<mode>"): New.
28757 (define_insn "kunpcksi"): New.
28758 (define_insn "kunpckdi"): New.
28759 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
28760 (define_insn "*one_cmplhi2_1"): Ditto.
28762 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28763 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28764 Anna Tikhonova <anna.tikhonova@intel.com>
28765 Ilya Tocar <ilya.tocar@intel.com>
28766 Andrey Turetskiy <andrey.turetskiy@intel.com>
28767 Ilya Verbin <ilya.verbin@intel.com>
28768 Kirill Yukhin <kirill.yukhin@intel.com>
28769 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28771 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
28774 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28776 Anna Tikhonova <anna.tikhonova@intel.com>
28777 Ilya Tocar <ilya.tocar@intel.com>
28778 Andrey Turetskiy <andrey.turetskiy@intel.com>
28779 Ilya Verbin <ilya.verbin@intel.com>
28780 Kirill Yukhin <kirill.yukhin@intel.com>
28781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28783 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
28785 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
28786 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
28787 xmm/ymm16+ when availble.
28788 * config/i386/i386.h
28789 (HARD_REGNO_NREGS): Add mask regs.
28790 (VALID_AVX512F_REG_MODE): Ditto.
28791 (VALID_AVX512F_REG_MODE) : Define.
28792 (VALID_MASK_AVX512BW_MODE): Ditto.
28793 (reg_class) (MASK_REG_P(X)): Define.
28794 * config/i386/i386.md: Do not split long moves with mask register,
28795 use kmovb if avx512bw is availible.
28796 (movdi_internal): Handle mask registers.
28798 2014-08-14 Richard Biener <rguenther@suse.de>
28800 PR tree-optimization/62081
28801 * tree-ssa-loop.c (pass_fix_loops): New pass.
28802 (pass_tree_loop::gate): Do not fixup loops here.
28803 * tree-pass.h (make_pass_fix_loops): Declare.
28804 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
28806 2014-08-14 Richard Biener <rguenther@suse.de>
28808 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
28809 (type_hash_canon): ... this and avoid 2nd lookup for the add.
28811 2014-08-14 Richard Biener <rguenther@suse.de>
28813 PR tree-optimization/62090
28814 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
28815 (fold_builtin_2): Do not fold sprintf.
28816 (fold_builtin_3): Likewise.
28817 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
28818 moved from builtins.c.
28819 (gimple_fold_builtin): Fold sprintf.
28821 2014-08-14 Richard Biener <rguenther@suse.de>
28823 PR rtl-optimization/62079
28824 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
28827 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28829 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
28830 current_function_decl.
28832 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28834 * cgraph.c (cgraph_node::function_symbol): Fix wrong
28835 cgraph_function_node to cgraph_node::function_symbol
28838 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
28840 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
28841 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
28843 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
28845 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
28848 2014-08-13 Roman Gareev <gareevroman@gmail.com>
28850 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
28853 2014-08-12 Jakub Jelinek <jakub@redhat.com>
28856 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
28857 any registers that are used in mem_insn.
28859 2014-08-12 Steve Ellcey <sellcey@mips.com>
28861 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
28863 2014-08-12 Steve Ellcey <sellcey@mips.com>
28865 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
28866 (MULTILIB_DIRNAMES): Ditto.
28867 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
28868 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
28869 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
28870 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
28871 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
28872 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
28874 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28877 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
28878 of __ARM_SIZEOF_WCHAR_T.
28880 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28883 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
28884 Remove unnecessary attributes.
28886 2014-08-12 Yury Gribov <y.gribov@samsung.com>
28888 * internal-fn.c (init_internal_fns): Fix off-by-one.
28890 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
28891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28892 Anna Tikhonova <anna.tikhonova@intel.com>
28893 Ilya Tocar <ilya.tocar@intel.com>
28894 Andrey Turetskiy <andrey.turetskiy@intel.com>
28895 Ilya Verbin <ilya.verbin@intel.com>
28896 Kirill Yukhin <kirill.yukhin@intel.com>
28897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28899 * config/i386/i386.c (standard_sse_constant_opcode): Use
28900 vpxord/vpternlog if avx512 is availible.
28902 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28904 PR middle-end/62103
28905 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
28906 bitfields, that is when size doesn't match the size of type or the
28907 size of the constructor.
28909 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28911 * config/rs6000/constraints.md (wh constraint): New constraint,
28912 for FP registers if direct move is available.
28913 (wi constraint): New constraint, for VSX/FP registers that can
28914 handle 64-bit integers.
28915 (wj constraint): New constraint for VSX/FP registers that can
28916 handle 64-bit integers for direct moves.
28917 (wk constraint): New constraint for VSX/FP registers that can
28918 handle 64-bit doubles for direct moves.
28919 (wy constraint): Make documentation match implementation.
28921 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
28922 scalar_in_vmx_p field to simplify tests of whether SFmode or
28923 DFmode can go in the Altivec registers.
28924 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
28925 (rs6000_setup_reg_addr_masks): Likewise.
28926 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
28927 field, and wh/wi/wj/wk constraints.
28928 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
28929 the wh/wi/wj/wk constraints.
28930 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
28931 upper registers, prefer VSX registers unless the operation is a
28932 memory operation with REG+OFFSET addressing.
28934 * config/rs6000/vsx.md (VSr mode attribute): Add support for
28935 DImode. Change SFmode to use ww constraint instead of d to allow
28936 SF registers in the upper registers.
28939 (VSr5): Fix thinko in comment.
28940 (VSa): New mode attribute that is an alternative to wa, that
28941 returns the VSX register class that a mode can go in, but may not
28942 be the preferred register class.
28943 (VS_64dm): New mode attribute for appropriate register classes for
28944 referencing 64-bit elements of vectors for direct moves and normal
28946 (VS_64reg): Likewise.
28947 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
28948 register allocator to only registers the data type can handle.
28949 (vsx_le_perm_load_<mode>): Likewise.
28950 (vsx_le_perm_store_<mode>): Likewise.
28951 (vsx_xxpermdi2_le_<mode>): Likewise.
28952 (vsx_xxpermdi4_le_<mode>): Likewise.
28953 (vsx_lxvd2x2_le_<mode>): Likewise.
28954 (vsx_lxvd2x4_le_<mode>): Likewise.
28955 (vsx_stxvd2x2_le_<mode>): Likewise.
28956 (vsx_add<mode>3): Likewise.
28957 (vsx_sub<mode>3): Likewise.
28958 (vsx_mul<mode>3): Likewise.
28959 (vsx_div<mode>3): Likewise.
28960 (vsx_tdiv<mode>3_internal): Likewise.
28961 (vsx_fre<mode>2): Likewise.
28962 (vsx_neg<mode>2): Likewise.
28963 (vsx_abs<mode>2): Likewise.
28964 (vsx_nabs<mode>2): Likewise.
28965 (vsx_smax<mode>3): Likewise.
28966 (vsx_smin<mode>3): Likewise.
28967 (vsx_sqrt<mode>2): Likewise.
28968 (vsx_rsqrte<mode>2): Likewise.
28969 (vsx_tsqrt<mode>2_internal): Likewise.
28970 (vsx_fms<mode>4): Likewise.
28971 (vsx_nfma<mode>4): Likewise.
28972 (vsx_eq<mode>): Likewise.
28973 (vsx_gt<mode>): Likewise.
28974 (vsx_ge<mode>): Likewise.
28975 (vsx_eq<mode>_p): Likewise.
28976 (vsx_gt<mode>_p): Likewise.
28977 (vsx_ge<mode>_p): Likewise.
28978 (vsx_xxsel<mode>): Likewise.
28979 (vsx_xxsel<mode>_uns): Likewise.
28980 (vsx_copysign<mode>3): Likewise.
28981 (vsx_float<VSi><mode>2): Likewise.
28982 (vsx_floatuns<VSi><mode>2): Likewise.
28983 (vsx_fix_trunc<mode><VSi>2): Likewise.
28984 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
28985 (vsx_x<VSv>r<VSs>i): Likewise.
28986 (vsx_x<VSv>r<VSs>ic): Likewise.
28987 (vsx_btrunc<mode>2): Likewise.
28988 (vsx_b2trunc<mode>2): Likewise.
28989 (vsx_floor<mode>2): Likewise.
28990 (vsx_ceil<mode>2): Likewise.
28991 (vsx_<VS_spdp_insn>): Likewise.
28992 (vsx_xscvspdp): Likewise.
28993 (vsx_xvcvspuxds): Likewise.
28994 (vsx_float_fix_<mode>2): Likewise.
28995 (vsx_set_<mode>): Likewise.
28996 (vsx_extract_<mode>_internal1): Likewise.
28997 (vsx_extract_<mode>_internal2): Likewise.
28998 (vsx_extract_<mode>_load): Likewise.
28999 (vsx_extract_<mode>_store): Likewise.
29000 (vsx_splat_<mode>): Likewise.
29001 (vsx_xxspltw_<mode>): Likewise.
29002 (vsx_xxspltw_<mode>_direct): Likewise.
29003 (vsx_xxmrghw_<mode>): Likewise.
29004 (vsx_xxmrglw_<mode>): Likewise.
29005 (vsx_xxsldwi_<mode>): Likewise.
29006 (vsx_xscvdpspn): Tighten constraints to only use register classes
29008 (vsx_xscvspdpn): Likewise.
29009 (vsx_xscvdpspn_scalar): Likewise.
29011 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
29012 wj, and wk constraints.
29013 (GPR_REG_CLASS_P): New helper macro for register classes targeting
29014 general purpose registers.
29016 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
29018 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
29019 DImode instead of wm. Use wk constraint for direct move of DFmode
29021 (extendsidi2_lfiwax): Likewise.
29022 (lfiwax): Likewise.
29023 (lfiwzx): Likewise.
29024 (movdi_internal64): Likewise.
29026 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
29027 wk constraints. Make the wy constraint documentation match them
29030 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
29032 Replacement of isl_int by isl_val
29033 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
29034 (compute_bounds_for_param): use isl_val instead of isl_int
29035 (compute_bounds_for_loop): likewise
29036 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
29037 (build_linearized_memory_access): use isl_val instead of isl_int
29038 (pdr_stride_in_loop): likewise
29039 * graphite-optimize-isl.c:
29040 (getPrevectorMap): use isl_val instead of isl_int
29042 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
29043 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
29044 (extern the_isl_ctx): declare
29045 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
29046 (extract_affine_gmp): likewise
29048 (build_loop_iteration_domains): likewise
29049 (add_param_constraints): likewise
29051 2014-08-11 Richard Biener <rguenther@suse.de>
29053 PR tree-optimization/62075
29054 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
29055 handle uses in patterns.
29057 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29059 Anna Tikhonova <anna.tikhonova@intel.com>
29060 Ilya Tocar <ilya.tocar@intel.com>
29061 Andrey Turetskiy <andrey.turetskiy@intel.com>
29062 Ilya Verbin <ilya.verbin@intel.com>
29063 Kirill Yukhin <kirill.yukhin@intel.com>
29064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29066 * common/config/i386/i386-common.c
29067 (OPTION_MASK_ISA_AVX512VL_SET): Define.
29068 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
29069 (ix86_handle_option): Handle OPT_mavx512vl.
29070 * config/i386/cpuid.h (bit_AVX512VL): Define.
29071 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
29072 set -mavx512vl accordingly.
29073 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29074 OPTION_MASK_ISA_AVX512VL.
29075 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
29076 (ix86_option_override_internal): Define PTA_AVX512VL, handle
29077 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
29078 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
29079 * config/i386/i386.h (TARGET_AVX512VL): Define.
29080 (TARGET_AVX512VL_P(x)): Ditto.
29081 * config/i386/i386.opt: Add mavx512vl.
29083 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
29085 PR tree-optimization/62073
29086 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
29089 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29090 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29091 Anna Tikhonova <anna.tikhonova@intel.com>
29092 Ilya Tocar <ilya.tocar@intel.com>
29093 Andrey Turetskiy <andrey.turetskiy@intel.com>
29094 Ilya Verbin <ilya.verbin@intel.com>
29095 Kirill Yukhin <kirill.yukhin@intel.com>
29096 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29098 * common/config/i386/i386-common.c
29099 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
29100 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
29101 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
29102 (ix86_handle_option): Handle OPT_mavx512bw.
29103 * config/i386/cpuid.h (bit_AVX512BW): Define.
29104 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
29105 set -mavx512bw accordingly.
29106 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29107 OPTION_MASK_ISA_AVX512BW.
29108 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
29109 (ix86_option_override_internal): Define PTA_AVX512BW, handle
29110 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
29111 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
29112 * config/i386/i386.h (TARGET_AVX512BW): Define.
29113 (TARGET_AVX512BW_P(x)): Ditto.
29114 * config/i386/i386.opt: Add mavx512bw.
29116 2014-08-11 Richard Biener <rguenther@suse.de>
29118 PR tree-optimization/62070
29119 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
29120 Remove SSA checking.
29122 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29124 * asan.c (asan_check_flags): New enum.
29125 (build_check_stmt_with_calls): Removed function.
29126 (build_check_stmt): Split inlining logic to
29127 asan_expand_check_ifn.
29128 (instrument_derefs): Rename parameter.
29129 (instrument_mem_region_access): Rename parameter.
29130 (instrument_strlen_call): Likewise.
29131 (asan_expand_check_ifn): New function.
29132 (asan_instrument): Remove old code.
29133 (pass_sanopt::execute): Change handling of
29134 asan-instrumentation-with-call-threshold.
29135 (asan_clear_shadow): Fix formatting.
29136 (asan_function_start): Likewise.
29137 (asan_emit_stack_protection): Likewise.
29138 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
29139 Update description.
29140 * internal-fn.c (expand_ASAN_CHECK): New function.
29141 * internal-fn.def (ASAN_CHECK): New internal function.
29142 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
29143 Update description.
29144 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
29145 * tree.c: Small comment fix.
29147 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29149 * gimple.c (gimple_call_fnspec): Support internal functions.
29150 (gimple_call_return_flags): Use const.
29151 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
29152 * internal-fn.def: Add fnspec information.
29153 * internal-fn.h (internal_fn_fnspec): New function.
29154 (init_internal_fns): Declare new function.
29155 * internal-fn.c (internal_fn_fnspec_array): New global variable.
29156 (init_internal_fns): New function.
29157 * tree-core.h: Update macro call.
29158 * tree.c (build_common_builtin_nodes): Initialize internal fns.
29160 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
29162 * lto-streamer.h (struct output_block::symbol): Change from
29163 struct symtab_node to plain symtab_node.
29164 (referenced_from_this_partition_p): Change first parameter
29165 from struct symtab_node to plain symtab_node.
29167 2014-08-10 Marek Polacek <polacek@redhat.com>
29170 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
29172 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
29174 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
29175 DECL correctly; do not give up on types in static storage.
29177 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
29179 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
29181 2014-08-09 Roman Gareev <gareevroman@gmail.com>
29183 * graphite-isl-ast-to-gimple.c:
29184 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
29186 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
29188 2014-08-08 Guozhi Wei <carrot@google.com>
29190 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
29192 2014-08-08 Cary Coutant <ccoutant@google.com>
29194 * dwarf2out.c (get_skeleton_type_unit): Remove.
29195 (output_skeleton_debug_sections): Remove skeleton type units.
29196 (output_comdat_type_unit): Likewise.
29197 (dwarf2out_finish): Likewise.
29199 2014-08-07 Yi Yang <ahyangyi@google.com>
29201 * predict.c (expr_expected_value_1): Remove the redundant assignment.
29203 2014-08-08 Richard Biener <rguenther@suse.de>
29205 * lto-streamer.h (struct lto_input_block): Make it a class
29206 with a constructor.
29207 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
29208 (struct lto_function_header, struct lto_simple_header,
29209 struct lto_simple_header_with_strings,
29210 struct lto_decl_header, struct lto_function_header): Make
29211 a simple inheritance hieararchy. Remove unused fields.
29212 (struct lto_asm_header): Remove.
29213 * lto-streamer-out.c (produce_asm): Adjust.
29214 (lto_output_toplevel_asms): Likewise.
29215 (produce_asm_for_decls): Likewise.
29216 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
29217 * data-streamer-in.c (string_for_index): Likewise.
29218 * ipa-inline-analysis.c (inline_read_section): Likewise.
29219 * ipa-prop.c (ipa_prop_read_section): Likewise.
29220 (read_replacements_section): Likewise.
29221 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29222 * lto-section-in.c (lto_create_simple_input_block): Likewise.
29223 (lto_destroy_simple_input_block): Likewise.
29224 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
29225 (lto_input_toplevel_asms): Likewise.
29227 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
29228 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29229 Anna Tikhonova <anna.tikhonova@intel.com>
29230 Ilya Tocar <ilya.tocar@intel.com>
29231 Andrey Turetskiy <andrey.turetskiy@intel.com>
29232 Ilya Verbin <ilya.verbin@intel.com>
29233 Kirill Yukhin <kirill.yukhin@intel.com>
29234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29236 * common/config/i386/i386-common.c
29237 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
29238 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
29239 (ix86_handle_option): Handle OPT_mavx512dq.
29240 * config/i386/cpuid.h (bit_AVX512DQ): Define.
29241 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
29242 set -mavx512dq accordingly.
29243 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29244 OPTION_MASK_ISA_AVX512DQ.
29245 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
29246 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
29247 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
29248 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
29249 * config/i386/i386.h (TARGET_AVX512DQ): Define.
29250 (TARGET_AVX512DQ_P(x)): Ditto.
29251 * config/i386/i386.opt: Add mavx512dq.
29253 2014-08-08 Richard Biener <rguenther@suse.de>
29255 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
29256 target_percent, target_percent_s): Export.
29257 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
29258 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
29259 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
29260 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
29261 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
29262 Move to gimple-fold.c.
29263 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
29265 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
29266 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
29267 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
29268 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
29269 (rewrite_call_expr_array): Remove.
29270 (fold_builtin_sprintf_chk): Likewise.
29271 (fold_builtin_snprintf_chk): Likewise.
29272 (fold_builtin_varargs): Remove handling of sprintf_chk,
29273 vsprintf_chk, snprintf_chk and vsnprintf_chk.
29274 (gimple_fold_builtin_sprintf_chk): Remove.
29275 (gimple_fold_builtin_snprintf_chk): Likewise.
29276 (gimple_fold_builtin_varargs): Likewise.
29277 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
29278 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
29279 * gimple.c (gimple_seq_add_seq_without_update): New function.
29280 * gimple.h (gimple_seq_add_seq_without_update): Declare.
29281 * gimple-fold.c: Include output.h.
29282 (gsi_replace_with_seq_vops): New function, split out from ...
29283 (gimplify_and_update_call_from_tree): ... here.
29284 (replace_call_with_value): New function.
29285 (replace_call_with_call_and_fold): Likewise.
29286 (var_decl_component_p): Moved from builtins.c.
29287 (gimple_fold_builtin_memory_op): Moved from builtins.c
29288 fold_builtin_memory_op and rewritten to GIMPLE.
29289 (gimple_fold_builtin_memset): Likewise.
29290 (gimple_fold_builtin_strcpy): Likewise.
29291 (gimple_fold_builtin_strncpy): Likewise.
29292 (gimple_fold_builtin_strcat): Likewise.
29293 (gimple_fold_builtin_fputs): Likewise.
29294 (gimple_fold_builtin_memory_chk): Likewise.
29295 (gimple_fold_builtin_stxcpy_chk): Likewise.
29296 (gimple_fold_builtin_stxncpy_chk): Likewise.
29297 (gimple_fold_builtin_snprintf_chk): Likewise.
29298 (gimple_fold_builtin_sprintf_chk): Likewise.
29299 (gimple_fold_builtin_strlen): New function.
29300 (gimple_fold_builtin_with_strlen): New function split out from
29301 gimple_fold_builtin.
29302 (gimple_fold_builtin): Change signature and handle
29303 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
29304 here. Call gimple_fold_builtin_with_strlen.
29305 (gimple_fold_call): Adjust.
29307 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29309 * calls.c (precompute_arguments): Check
29310 promoted_for_signed_and_unsigned_p and set the promoted mode.
29311 (promoted_for_signed_and_unsigned_p): New function.
29312 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
29313 and set the promoted mode.
29314 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
29315 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
29316 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
29319 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29321 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
29322 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29323 (expand_call): Likewise.
29324 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
29325 to get promoted mode.
29326 * combine.c (record_promoted_value): Skip > 0 comparison with
29327 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
29328 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
29329 of SUBREG_PROMOTED_UNSIGNED_P.
29330 (convert_modes): Likewise.
29331 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
29332 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
29333 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
29334 SUBREG_PROMOTED_UNSIGNED_SET.
29335 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
29336 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29337 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
29338 SUBREG_PROMOTED_SET.
29339 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
29340 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
29341 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
29342 of SUBREG_PROMOTED_UNSIGNED_P.
29343 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
29344 (SUBREG_PROMOTED_SET): New define.
29345 (SUBREG_PROMOTED_GET): Likewise.
29346 (SUBREG_PROMOTED_SIGN): Likewise.
29347 (SUBREG_PROMOTED_SIGNED_P): Likewise.
29348 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
29349 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
29350 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
29351 instead of SUBREG_PROMOTED_UNSIGNED_GET.
29352 (nonzero_bits1): Skip > 0 comparison with the results as
29353 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
29354 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
29355 of !SUBREG_PROMOTED_UNSIGNED_P.
29356 * simplify-rtx.c (simplify_unary_operation_1): Use new
29357 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
29358 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
29359 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
29360 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
29362 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
29364 * ipa-devirt.c: Include gimple-pretty-print.h
29365 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
29367 (decl_maybe_in_construction_p): Fix conditional on cdtor check
29368 (get_polymorphic_call_info): Fix return value
29369 (type_change_info): New sturcture based on ipa-prop
29371 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
29372 based on ipa-prop variant.
29373 (extr_type_from_vtbl_ptr_store): New function
29374 based on ipa-prop variant.
29375 (record_known_type): New function.
29376 (check_stmt_for_type_change): New function.
29377 (get_dynamic_type): New function.
29378 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
29379 * tree-ssa-pre.c: ipa-utils.h
29380 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
29381 machinery; sanity check with ipa-prop devirtualization.
29382 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
29385 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29387 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
29388 * alias.c, cfgexpand.c, cgraphbuild.c,
29389 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
29390 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
29391 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
29392 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
29393 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
29394 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
29395 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
29396 dse.c, except.c, gengtype.c, gimple-expr.c,
29397 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
29398 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
29399 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
29400 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
29401 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
29402 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
29404 * pointer-set.c: Remove file.
29405 * pointer-set.h: Remove file.
29407 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29409 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
29410 * config/arm/types.md (f_sels, f_seld): Delete.
29412 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29414 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
29415 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
29416 (aarch64_movdi_<mode>high): Likewise.
29417 (aarch64_mov<mode>high_di): Likewise.
29418 (aarch64_movdi_<mode>low): Likewise.
29419 (aarch64_mov<mode>low_di): Likewise.
29420 (aarch64_movtilow_tilow): Likewise.
29421 Add comment explaining usage of fp,simd attributes and of
29422 TARGET_FLOAT and TARGET_SIMD.
29424 2014-08-07 Ian Bolton <ian.bolton@arm.com>
29425 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29427 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
29428 Use MOVN when one of the half-words is 0xffff.
29430 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29432 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
29434 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29436 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
29437 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
29438 (rfs_str): String corresponding to RFS_* constants.
29439 (rank_for_schedule_stats_t): New typedef.
29440 (rank_for_schedule_stats): New static variable.
29441 (rfs_result): New static function.
29442 (rank_for_schedule): Track statistics for deciding heuristics.
29443 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
29445 (ready_sort): Use them for debug printouts.
29446 (schedule_block): Init statistics state. Print statistics on
29447 rank_for_schedule decisions.
29449 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29451 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
29453 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
29455 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
29458 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29460 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
29461 function to not conflict.
29462 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
29463 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
29464 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
29465 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
29466 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
29469 2014-08-07 Marek Polacek <polacek@redhat.com>
29471 * fold-const.c (fold_binary_loc): Add folding of
29472 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
29474 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
29476 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
29477 instead of type size.
29478 (ASM_FINISH_DECLARE_OBJECT): Likewise.
29480 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29482 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
29483 (*thumb1_movqi_insn): Likewise.
29484 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
29486 2014-08-07 Tom de Vries <tom@codesourcery.com>
29488 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29489 (glibc_2_11_or_earlier): Remove effective-target keywords.
29491 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
29493 * config/arm/arm.c (bdesc_2arg): Fix typo.
29494 (arm_atomic_assign_expand_fenv): Remove The default implementation.
29496 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
29498 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
29500 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
29503 * haifa-sched.c (advance_one_cycle): Fix dump.
29504 (schedule_block): Don't advance cycle if we are already at the
29505 beginning of the cycle.
29507 2014-08-06 Martin Jambor <mjambor@suse.cz>
29510 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
29512 2014-08-06 Richard Biener <rguenther@suse.de>
29515 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
29517 (lto_input_tree): Pop SCCs here.
29519 2014-08-06 Richard Biener <rguenther@suse.de>
29521 PR tree-optimization/61320
29522 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
29523 handle misaligned loads.
29525 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
29527 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
29528 (aarch64_expand_vec_perm_const): Check for dup before zip.
29530 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29532 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
29533 CONST_INT_P instead of GET_CODE and compare.
29534 (aarch64_select_cc_mode): Likewise.
29535 (aarch64_print_operand): Likewise.
29536 (aarch64_rtx_costs): Likewise.
29537 (aarch64_simd_valid_immediate): Likewise.
29538 (aarch64_simd_check_vect_par_cnst_half): Likewise.
29539 (aarch64_simd_emit_pair_result_insn): Likewise.
29541 2014-08-05 David Malcolm <dmalcolm@redhat.com>
29543 * gdbhooks.py (find_gcc_source_dir): New helper function.
29544 (class PassNames): New class, locating and parsing passes.def.
29545 (class BreakOnPass): New command "break-on-pass".
29547 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
29549 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
29552 2014-08-05 Richard Biener <rguenther@suse.de>
29554 PR rtl-optimization/61672
29555 * emit-rtl.h (mem_attrs_eq_p): Declare.
29556 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
29557 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
29558 * cfgcleanup.c (merge_memattrs): Likewise.
29559 Include emit-rtl.h.
29561 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29563 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
29564 rather than singleton vectors.
29565 (vqdmlsls_lane_s32): Likewise.
29567 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29569 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
29570 Use VSDQ_HSI mode iterator.
29571 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29572 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
29573 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
29574 Use BUILTIN_VDQHS macro.
29575 (sqrdmulh_laneq): Likewise.
29576 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
29577 (vqdmlals_laneq_s32): Likewise.
29578 (vqdmlslh_laneq_s16): Likewise.
29579 (vqdmlsls_laneq_s32): Likewise.
29580 (vqdmulhh_laneq_s16): Likewise.
29581 (vqdmulhs_laneq_s32): Likewise.
29582 (vqrdmulhh_laneq_s16): Likewise.
29583 (vqrdmulhs_laneq_s32): Likewise.
29585 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29587 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
29588 (vmuld_laneq_f64): Likewise.
29589 (vmuls_laneq_f32): Likewise.
29590 (vmul_n_f64): Likewise.
29591 (vmuld_lane_f64): Reimplement in C.
29592 (vmuls_lane_f32): Likewise.
29594 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29596 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
29598 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
29600 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29602 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
29603 (rbitsi2): Likewise.
29604 (*arm_rev): Set predicable and predicable_short_it attributes.
29606 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29608 * convert.c (convert_to_integer): Guard transformation to lrint by
29611 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
29613 * config/aarch64/aarch64-builtins.c
29614 (aarch64_simd_builtin_type_mode): Delete.
29615 (v8qi_UP): Remap to V8QImode.
29616 (v4hi_UP): Remap to V4HImode.
29617 (v2si_UP): Remap to V2SImode.
29618 (v2sf_UP): Remap to V2SFmode.
29619 (v1df_UP): Remap to V1DFmode.
29620 (di_UP): Remap to DImode.
29621 (df_UP): Remap to DFmode.
29622 (v16qi_UP):V16QImode.
29623 (v8hi_UP): Remap to V8HImode.
29624 (v4si_UP): Remap to V4SImode.
29625 (v4sf_UP): Remap to V4SFmode.
29626 (v2di_UP): Remap to V2DImode.
29627 (v2df_UP): Remap to V2DFmode.
29628 (ti_UP): Remap to TImode.
29629 (ei_UP): Remap to EImode.
29630 (oi_UP): Remap to OImode.
29631 (ci_UP): Map to CImode.
29632 (xi_UP): Remap to XImode.
29633 (si_UP): Remap to SImode.
29634 (sf_UP): Remap to SFmode.
29635 (hi_UP): Remap to HImode.
29636 (qi_UP): Remap to QImode.
29637 (aarch64_simd_builtin_datum): Make mode a machine_mode.
29638 (VAR1): Build builtin name.
29639 (aarch64_init_simd_builtins): Remove dead code.
29641 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29643 * graphite-isl-ast-to-gimple.c:
29644 (set_options): New function.
29645 (scop_to_isl_ast): Add calling of set_options.
29647 2014-08-05 Jakub Jelinek <jakub@redhat.com>
29649 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
29650 (analyze_iv_to_split_insn): Don't initialize them.
29651 (get_ivts_expr): Removed.
29652 (allocate_basic_variable, insert_base_initialization): Use
29653 SET_SRC instead of *get_ivts_expr.
29654 (split_iv): Use &SET_SRC instead of get_ivts_expr.
29656 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29658 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
29659 (translate_isl_ast_for_loop): Add checking of the
29660 flag_loop_parallelize_all.
29661 (ast_build_before_for): New function.
29662 (scop_to_isl_ast): Add checking of the
29663 flag_loop_parallelize_all.
29664 * graphite-dependences.c: Move the defenition of the
29665 scop_get_dependences from graphite-optimize-isl.c to this file.
29666 (apply_schedule_on_deps): Add checking of the ux's emptiness.
29667 (carries_deps): Add checking of the x's value.
29668 * graphite-optimize-isl.c: Move the defenition of the
29669 scop_get_dependences to graphite-dependences.c.
29670 * graphite-poly.h: Add declarations of scop_get_dependences
29673 2014-08-04 Rohit <rohitarulraj@freescale.com>
29676 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
29678 (alt_reg_names): Likewise.
29679 (rs6000_dwarf_register_span): For SPE high registers, replace
29680 dwarf register numbers with GCC hard register numbers.
29681 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
29682 (rs6000_dbx_register_number): For SPE high registers, return dwarf
29683 register number for the corresponding GCC hard register number.
29684 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
29685 newly added GCC hard register numbers for SPE high registers.
29686 (DWARF_FRAME_REGISTERS): Likewise.
29687 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
29688 (DWARF_FRAME_REGNUM): Likewise.
29689 (FIXED_REGISTERS): Likewise.
29690 (CALL_USED_REGISTERS): Likewise.
29691 (CALL_REALLY_USED_REGISTERS): Likewise.
29692 (REG_ALLOC_ORDER): Likewise.
29693 (enum reg_class): Likewise.
29694 (REG_CLASS_NAMES): Likewise.
29695 (REG_CLASS_CONTENTS): Likewise.
29696 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
29698 2014-08-04 Richard Biener <rguenther@suse.de>
29700 * gimple-fold.h (gimple_fold_builtin): Remove.
29701 * gimple-fold.c (gimple_fold_builtin): Make static.
29702 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
29703 fold_stmt, not gimple_fold_builtin.
29705 2014-08-04 Martin Liska <mliska@suse.cz>
29707 * cgraph.h (csi_end_p): Removed.
29708 (csi_next): Likewise.
29709 (csi_node): Likewise.
29710 (csi_start): Likewise.
29711 (cgraph_node_in_set_p): Likewise.
29712 (cgraph_node_set_size): Likewise.
29713 (vsi_end_p): Likewise.
29714 (vsi_next): Likewise.
29715 (vsi_node): Likewise.
29716 (vsi_start): Likewise.
29717 (varpool_node_set_size): Likewise.
29718 (cgraph_node_set_nonempty_p): Likewise.
29719 (varpool_node_set_nonempty_p): Likewise.
29720 * cgraphunit.c (cgraph_process_new_functions): vec replaces
29722 * ipa-inline-transform.c: Likewise.
29723 * ipa-utils.c (cgraph_node_set_new): Removed.
29724 (cgraph_node_set_add): Likewise.
29725 (cgraph_node_set_remove): Likewise.
29726 (cgraph_node_set_find): Likewise.
29727 (dump_cgraph_node_set): Likewise.
29728 (debug_cgraph_node_set): Likewise.
29729 (free_cgraph_node_set): Likewise.
29730 (varpool_node_set_new): Likewise.
29731 (varpool_node_set_add): Likewise.
29732 (varpool_node_set_remove): Likewise.
29733 (varpool_node_set_find): Likewise.
29734 (dump_varpool_node_set): Likewise.
29735 (free_varpool_node_set): Likewise.
29736 (debug_varpool_node_set): Likewise.
29737 * tree-emutls.c (struct tls_var_data):
29738 (emutls_index): Removed.
29739 (emutls_decl): Likewise.
29740 (gen_emutls_addr): Function implementation uses newly added
29741 hash_map<varpool_node *, tls_var_data>.
29742 (clear_access_vars): Likewise.
29743 (create_emultls_var): Likewise.
29744 (ipa_lower_emutls): Likewise.
29745 (reset_access): New function.
29747 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29749 * config/i386/i386.c (ix86_option_override_internal): Add
29750 PTA_RDRND and PTA_MOVBE for bdver4.
29752 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29753 James Greenhalgh <james.greenhalgh@arm.com>
29755 * doc/md.texi (clrsb): Document.
29756 (clz): Change reference to x into operand 1.
29758 (popcount): Likewise.
29760 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29763 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
29764 move to subtarget in serial version if result is ignored.
29766 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29767 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29769 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
29770 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
29771 (sched_analyze_insn): Update use of try_group_insn to
29772 sched_macro_fuse_insns.
29773 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
29774 arguments that are not conditional jumps.
29776 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29778 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's
29779 extended family information. Handle BTVER2 cpu with cpuid family value.
29781 2014-08-04 Tom de Vries <tom@codesourcery.com>
29783 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29784 (glibc_2_11_or_earlier): Document effective-target keywords.
29786 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29788 * ipa-devirt.c (odr_type_warn_count): Add type.
29789 (possible_polymorphic_call_targets): Set it.
29790 (ipa_devirt): Use it.
29792 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29794 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
29796 * ipa-devirt.c: Include hash-map.h
29797 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
29798 (clear_speculation): Break out of ...
29799 (get_class_context): ... here; speed up handling obviously useless
29801 (odr_type_warn_count, decl_warn_count): New structures.
29802 (final_warning_record): New structure.
29803 (final_warning_records): New static variable.
29804 (possible_polymorphic_call_targets): Cleanup handling of
29805 speculative info; do not build speculation when user do not care;
29806 record info about warnings when asked for.
29807 (add_decl_warning): New function.
29808 (type_warning_cmp): New function.
29809 (decl_warning_cmp): New function.
29810 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
29811 (gate): Enable pass when warnings are requested.
29812 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
29815 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29817 * hash-map.h (default_hashmap_traits::mark_key_deleted):
29819 (hash_map::remove): New method.
29820 (hash_map::traverse): New method.
29821 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
29822 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
29823 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
29824 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
29825 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
29826 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
29829 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29831 * hash-set.h: new File.
29832 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
29833 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
29834 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
29835 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
29836 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
29837 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
29838 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
29839 varpool.c: Use hash_set instead of pointer_set.
29841 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
29843 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
29845 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29847 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
29848 for frame access when strict_p is false.
29850 2014-08-01 Renlin Li <renlin.li@arm.com>
29851 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29853 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
29854 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
29855 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
29857 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
29859 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
29860 aarch64_mem_pair_offset.
29862 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29864 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
29866 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
29867 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
29869 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
29871 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
29873 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
29875 PR regression/61510
29876 * cgraphunit.c (analyze_functions): Use get_create rather than get
29877 for decls which are clones of abstract functions.
29879 2014-08-01 Martin Liska <mliska@suse.cz>
29881 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
29882 * ipa-prop.h (count_formal_params): Global function created from static.
29883 * ipa-prop.c (count_formal_params): Likewise.
29884 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
29885 profiles for semantically equivalent functions.
29886 * passes.c (do_per_function): If we load body of a function
29887 during WPA, this condition should behave same.
29888 * varpool.c (ctor_for_folding): More tolerant assert for variable
29889 aliases created during WPA.
29891 2014-08-01 Martin Liska <mliska@suse.cz>
29893 * doc/invoke.texi (Options That Control Optimization): Documentation
29894 for -foptimize-strlen introduced. Optimization levels default options
29897 2014-08-01 Jakub Jelinek <jakub@redhat.com>
29899 * opts.c (common_handle_option): Handle -fsanitize=alignment.
29900 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
29901 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
29903 * stor-layout.h (min_align_of_type): New prototype.
29904 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
29905 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
29907 * ubsan.c: Include builtins.h.
29908 (ubsan_expand_bounds_ifn): Change return type to bool,
29909 always return true.
29910 (ubsan_expand_null_ifn): Change return type to bool, change
29911 argument to gimple_stmt_iterator *. Handle both null and alignment
29912 sanitization, take type from ckind argument's type rather than
29914 (instrument_member_call): Removed.
29915 (instrument_mem_ref): Remove t argument, add mem and base arguments.
29916 Handle both null and alignment sanitization, don't say whole
29917 struct access is member access. Build 3 argument IFN_UBSAN_NULL
29918 call instead of 2 argument.
29919 (instrument_null): Adjust instrument_mem_ref caller. Don't
29920 instrument calls here.
29921 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
29922 like SANITIZE_NULL.
29923 * stor-layout.c (min_align_of_type): New function.
29924 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
29925 Or it into SANITIZE_UNDEFINED.
29926 * doc/invoke.texi (-fsanitize=alignment): Document.
29928 2014-07-31 Andi Kleen <ak@linux.intel.com>
29930 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
29932 2014-07-31 Andi Kleen <ak@linux.intel.com>
29934 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
29936 (vn_reference_compute_hash): Dito.
29937 (vn_nary_op_compute_hash): Dito.
29938 (vn_phi_compute_hash): Dito.
29939 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
29941 2014-07-31 Andi Kleen <ak@linux.intel.com>
29943 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
29944 Rename to inchash:add_expr_commutative. Convert to inchash.
29945 (iterative_hash_hashable_expr): Rename to
29946 inchash:add_hashable_expr. Convert to inchash.
29947 (avail_expr_hash): Dito.
29949 2014-07-31 Andi Kleen <ak@linux.intel.com>
29951 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
29952 Convert to inchash.
29954 2014-07-31 Andi Kleen <ak@linux.intel.com>
29956 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
29958 2014-07-31 Andi Kleen <ak@linux.intel.com>
29960 * Makefile.in (OBJS): Add rtlhash.o
29961 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
29962 (loc_checksum): Dito.
29963 (loc_checksum_ordered): Dito.
29964 (hash_loc_operands): Dito.
29966 (hash_loc_list): Dito.
29967 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
29968 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
29969 * rtlhash.c: New file.
29970 * rtlhash.h: New file.
29972 2014-07-31 Andi Kleen <ak@linux.intel.com>
29974 * inchash.h (inchash): Change inchash class to namespace.
29975 (class hash): ... Rename from inchash.
29976 (add_object): Move from macro to class template.
29977 * lto-streamer-out.c (hash_tree): Change inchash
29979 * tree.c (build_type_attribute_qual_variant): Dito.
29980 (type_hash_list): Dito.
29981 (attribute_hash_list): Dito.
29982 (iterative_hstate_expr): Rename to inchash::add_expr
29983 (build_range_type_1): Change inchash to inchash::hash
29984 and use hash::add_expr.
29985 (build_array_type_1): Dito.
29986 (build_function_type): Dito
29987 (build_method_type_directly): Dito.
29988 (build_offset_type): Dito.
29989 (build_complex_type): Dito.
29990 (make_vector_type): Dito.
29991 * tree.h (iterative_hash_expr): Dito.
29993 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
29995 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
29997 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
29999 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
30000 correct alphabetical position.
30001 (vpaddd_f64): Rewrite using builtins.
30002 (vpaddd_s64): Move to correct alphabetical position.
30005 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
30008 * config/sh/sh.c (sh_legitimate_address_p,
30009 sh_legitimize_reload_address): Handle reg+reg address modes when
30010 ALLOW_INDEXED_ADDRESS is false.
30011 * config/sh/predicates.md (general_movsrc_operand,
30012 general_movdst_operand): Likewise.
30014 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30016 * config/aarch64/aarch64-builtins.c
30017 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
30020 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30022 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
30023 the generated mask based on BYTES_BIG_ENDIAN.
30024 (aarch64_simd_check_vect_par_cnst_half): New.
30025 * config/aarch64/aarch64-protos.h
30026 (aarch64_simd_check_vect_par_cnst_half): New.
30027 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
30028 the check out to aarch64_simd_check_vect_par_cnst_half.
30029 (vect_par_cnst_lo_half): Likewise.
30030 * config/aarch64/aarch64-simd.md
30031 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
30032 (move_hi_quad_<mode>): Always generate a low mask.
30034 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30036 * doc/invoke.texi (AVR Options): Add documentation about
30037 __AVR_DEVICE_NAME__ built-in macro.
30039 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
30042 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
30043 constraints are satisfied.
30044 (<shift>di3_neon): Likewise.
30046 2014-07-31 Richard Biener <rguenther@suse.de>
30048 PR tree-optimization/61964
30049 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
30050 by structural equality.
30052 2014-07-31 Yury Gribov <y.gribov@samsung.com>
30054 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
30055 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
30056 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
30058 * gcc.c (sanitize_spec_function): Support new option.
30059 (SANITIZER_SPEC): Remove now redundant check.
30060 * opts.c (common_handle_option): Support new option.
30061 (finish_options): Check for incompatibilities.
30062 * toplev.c (process_options): Split userspace-specific checks.
30064 2014-07-31 Richard Biener <rguenther@suse.de>
30066 * lto-streamer.h (struct output_block): Remove global.
30067 (struct data_in): Remove labels, num_named_labels and
30068 num_unnamed_labels.
30069 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
30070 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
30072 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
30075 * common.opt (-Wreturn-local-addr): Moved from c.opt.
30076 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
30077 (isolate_path): New argument to avoid inserting a trap.
30078 (find_implicit_erroneous_behaviour): Handle returning the address
30079 of a local variable.
30080 (find_explicit_erroneous_behaviour): Likewise.
30082 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
30085 * toplev.c (init_random_seed): Move piece of code never called to
30087 (set_random_seed): see above.
30089 2014-07-31 Tom de Vries <tom@codesourcery.com>
30091 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
30093 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
30095 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
30096 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
30098 2014-07-31 Richard Biener <rguenther@suse.de>
30100 * data-streamer.h (streamer_write_data_stream): Declare here,
30102 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
30103 * lto-cgraph.c (lto_output_node): Adjust.
30104 (lto_output_varpool_node): Likewise.
30105 * data-streamer-out.c (streamer_string_index): Likewise.
30106 (streamer_write_data_stream, lto_append_block): Move from ...
30107 * lto-section-out.c (lto_output_data_stream,
30108 lto_append_block): ... here.
30110 2014-07-30 Mike Stump <mikestump@comcast.net>
30112 * configure.ac: Also check for popen.
30113 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
30114 * configure: Regenerate.
30115 * config.in: Regenerate.
30117 2014-07-30 Martin Jambor <mjambor@suse.cz>
30119 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
30120 parameter to gimple.
30122 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30124 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
30125 address as second parameter to __tpf_eh_return routine.
30127 2014-07-30 Jiong Wang <jiong.wang@arm.com>
30129 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
30132 2014-07-30 Tom Tromey <tromey@redhat.com>
30135 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
30136 * doc/extend.texi (Type Attributes): Document designated_init
30139 2014-07-30 Roman Gareev <gareevroman@gmail.com>
30141 * graphite-isl-ast-to-gimple.c:
30142 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
30143 (gcc_expression_from_isl_expression): Pass type to
30144 gcc_expression_from_isl_ast_expr_id.
30146 2014-07-30 Richard Biener <rguenther@suse.de>
30148 * lto-streamer.h (lto_write_data): New function.
30149 * langhooks.c (lhd_append_data): Do not free block.
30150 * lto-section-out.c (lto_write_data): New function writing
30151 raw data to the current section.
30152 (lto_write_stream): Adjust for langhook semantic change.
30153 (lto_destroy_simple_output_block): Write header directly.
30154 * lto-opts.c (lto_write_options): Write options directly.
30155 * lto-streamer-out.c (produce_asm): Write heaeder directly.
30156 (lto_output_toplevel_asms): Likewise.
30157 (copy_function_or_variable): Copy data directly.
30158 (write_global_references): Output index table directly.
30159 (lto_output_decl_state_refs): Likewise.
30160 (write_symbol): Write data directly.
30161 (produce_symtab): Adjust.
30162 (produce_asm_for_decls): Output header and refs directly.
30164 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30166 * ipa-devirt.c (polymorphic_call_target_d): Rename
30167 nonconstruction_targets to speculative_targets
30168 (get_class_context): Fix handling of contextes without outer type;
30169 avoid matching non-polymorphic types in LTO.
30170 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
30171 parameter to speculative_targetsp; handle speculation.
30172 (dump_possible_polymorphic_call_targets): Update dumping.
30174 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30176 * common.opt (Wodr): Enable by default.
30178 2014-07-29 Olivier Hainque <hainque@adacore.com>
30180 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
30182 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
30185 * gengtype.c (strtoken): New function.
30186 (create_user_defined_type): Replace strtok with strtoken.
30188 2014-07-29 Nathan Sidwell <nathan@acm.org>
30190 * gcov-io.c (gcov_var): Make hidden.
30191 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
30192 (gcov_do_dump): Declare.
30193 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
30195 2014-07-29 Martin Jambor <mjambor@suse.cz>
30197 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
30198 parameter to gimple.
30199 (sra_modify_assign): Likewise.
30201 2014-07-29 Richard Biener <rguenther@suse.de>
30203 PR middle-end/52478
30204 * expr.c (expand_expr_real_2): Revert last change.
30206 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30208 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
30209 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
30210 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
30212 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
30213 (contains_type_p): Forward declare.
30214 (polymorphic_call_target_hasher::hash): Hash speculative info.
30215 (polymorphic_call_target_hasher::equal): Compare speculative info.
30216 (get_class_context): Handle speuclation.
30217 (contains_type_p): Update.
30218 (get_polymorphic_call_info_for_decl): Update.
30219 (walk_ssa_copies): Break out from ...
30220 (get_polymorphic_call_info): ... here; set speculative context
30222 * ipa-prop.c (ipa_write_indirect_edge_info,
30223 ipa_read_indirect_edge_info): Stream speculative context.
30224 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
30225 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
30226 SPECULATIVE_MAYBE_DERIVED_TYPE).
30227 (possible_polymorphic_call_targets overriders): Update.
30228 (dump_possible_polymorphic_call_targets overriders): Update.
30229 (dump_possible_polymorphic_call_target_p overriders): Update.
30231 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30233 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
30234 ipa-devirt path; fix thinko there.
30236 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
30238 * config/i386/i386.c (ix86_return_in_memory): Replace one
30239 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
30241 2014-07-28 Marek Polacek <polacek@redhat.com>
30243 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
30245 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
30247 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
30248 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
30249 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
30250 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30251 (USE_LD_AS_NEEDED): Likewise.
30252 (ASM_APP_ON): Likewise.
30253 (ASM_APP_OFF): Likewise.
30254 (TARGET_POSIX_IO): Likewise.
30255 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
30256 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30257 (USE_LD_AS_NEEDED): Likewise.
30258 (ASM_APP_ON): Likewise.
30259 (ASM_APP_OFF): Likewise.
30260 (TARGET_POSIX_IO): Likewise.
30262 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
30264 PR middle-end/61734
30265 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
30266 operators other than the equality operators.
30268 2014-07-28 Richard Biener <rguenther@suse.de>
30270 PR middle-end/52478
30271 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
30272 sure to register SImode ones, not only >= word_mode ones.
30273 * expr.c (expand_expr_real_2): When expanding -ftrapv
30274 binops do not use OPTAB_LIB_WIDEN.
30276 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
30278 PR middle-end/61919
30279 * tree-outof-ssa.c (insert_partition_copy_on_edge)
30280 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
30281 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
30282 inserting them in the insn stream.
30284 2014-07-28 Marek Polacek <polacek@redhat.com>
30286 PR middle-end/61913
30287 * common.opt (Wodr): Add Var.
30289 2014-07-28 Richard Biener <rguenther@suse.de>
30291 PR tree-optimization/61921
30292 * tree-ssa-structalias.c (create_variable_info_for_1): Check
30293 if there is a varpool node before dereferencing it.
30295 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30297 * graphite-sese-to-poly.c:
30298 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
30299 id of the pbb), which contains pointer to the pbb1.
30301 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
30303 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30305 * graphite-isl-ast-to-gimple.c:
30306 (graphite_create_new_guard): New function.
30307 (translate_isl_ast_node_if): New function.
30308 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
30310 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
30312 2014-07-27 Anthony Green <green@moxielogic.com>
30314 * config.gcc: Add moxie-*-moxiebox* configuration.
30315 * config/moxie/moxiebox.h: New file.
30317 2014-07-26 Andrew Pinski <apinski@cavium.com>
30319 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
30320 from the read only register.
30322 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30324 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
30325 as the allocation class if it isn't likely to be spilled.
30327 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30329 * rtl.h (tls_referenced_p): Declare.
30330 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
30331 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
30332 (mips_cannot_force_const_mem): Use tls_referenced_p.
30333 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
30334 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
30335 instead of pa_tls_referenced_p.
30336 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
30337 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
30338 (pa_legitimate_constant_p): Likewise.
30339 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
30340 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
30341 (rs6000_cannot_force_const_mem, rs6000_emit_move)
30342 (rs6000_address_for_altivec): Use tls_referenced_p instead of
30343 rs6000_tls_referenced_p.
30344 (rs6000_tls_symbol_ref_1): Delete.
30346 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
30349 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30350 Optimize inverse of a VEC_CONCAT.
30352 2014-07-25 Xinliang David Li <davidxl@google.com>
30354 * params.def: New parameter.
30355 * coverage.c (get_coverage_counts): Check new flag.
30356 (coverage_compute_profile_id): Check new flag.
30357 (coverage_begin_function): Check new flag.
30358 (coverage_end_function): Check new flag.
30359 * value-prof.c (coverage_node_map_initialized_p): New function.
30360 (init_node_map): Populate map with all functions.
30361 * doc/invoke.texi: Document new parameter.
30363 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
30364 Richard Biener <rguenther@suse.de>
30366 * lto-streamer-out.c (struct sccs): Turn to ...
30367 (class DFS): ... this one; refactor the DFS walk so it can
30368 be re-done on per-SCC basis.
30369 (DFS::DFS): New constructor.
30370 (DFS::~DFS): New destructor.
30371 (hash_tree): Add new MAP argument holding in-SCC hash values;
30372 remove POINTER_TYPE hashing hack.
30373 (scc_entry_compare): Rename to ...
30374 (DFS::scc_entry_compare): ... this one.
30375 (hash_scc): Rename to ...
30376 (DFS::hash_scc): ... this one; pass output_block instead
30377 of streamer_cache; work harder to get unique and stable SCC
30379 (DFS_write_tree): Rename to ...
30380 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
30381 (lto_output_tree): Update.
30383 2014-07-25 Andi Kleen <ak@linux.intel.com>
30385 * lto-streamer-out.c (hash_tree): Convert to inchash.
30387 2014-07-25 Andi Kleen <ak@linux.intel.com>
30389 * tree.c (build_type_attribute_qual_variant): Use inchash.
30390 (type_hash_list): Dito.
30391 (attribute_hash_list): Dito
30392 (iterative_hstate_expr): Dito.
30393 (iterative_hash_expr): Dito.
30394 (build_range_type_1): Dito.
30395 (build_array_type_1): Dito.
30396 (build_function_type): Dito.
30397 (build_method_type_directly): Dito.
30398 (build_offset_type): Dito.
30399 (build_complex_type): Dito.
30400 (make_vector_type): Dito.
30401 * tree.h (iterative_hash_expr): Add compat wrapper.
30402 (iterative_hstate_expr): Add.
30404 2014-07-25 Andi Kleen <ak@linux.intel.com>
30406 * Makefile.in (OBJS): Add inchash.o.
30407 (PLUGIN_HEADERS): Add inchash.h.
30408 * ipa-devirt.c: Include inchash.h.
30409 * lto-streamer-out.c: Dito.
30410 * tree-ssa-dom.c: Dito.
30411 * tree-ssa-pre.c: Dito.
30412 * tree-ssa-sccvn.c: Dito.
30413 * tree-ssa-tail-merge.c: Dito.
30415 * tree.c (iterative_hash_hashval_t): Move to ...
30416 (iterative_hash_host_wide_int): Move to ...
30417 * inchash.c: Here. New file.
30418 * tree.h (iterative_hash_hashval_t): Move to ...
30419 (iterative_hash_host_wide_int): Move to ...
30420 * inchash.h: Here. New file.
30422 2014-07-25 Richard Biener <rguenther@suse.de>
30424 PR middle-end/61762
30425 PR middle-end/61894
30426 * fold-const.c (native_encode_int): Add and handle offset
30427 parameter to do partial encodings of expr.
30428 (native_encode_fixed): Likewise.
30429 (native_encode_real): Likewise.
30430 (native_encode_complex): Likewise.
30431 (native_encode_vector): Likewise.
30432 (native_encode_string): Likewise.
30433 (native_encode_expr): Likewise.
30434 * fold-const.c (native_encode_expr): Add offset parameter
30436 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
30437 (fold_ctor_reference): Handle all reads from tcc_constant
30440 2014-07-25 Richard Biener <rguenther@suse.de>
30442 * tree-inline.c (estimate_move_cost): Mark speed_p argument
30443 as possibly unused.
30445 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30447 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
30449 2014-07-24 Kyle McMartin <kyle@redhat.com>
30451 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
30453 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30455 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
30457 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
30459 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
30460 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
30461 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
30463 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30465 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
30466 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
30467 aggregate types. Instead, *all* aggregate types, except for single-
30468 element or homogeneous float/vector aggregates, are quadword-aligned
30469 if required by their type alignment. Issue -Wpsabi note when a type
30470 is now treated differently than before.
30472 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30474 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
30475 does not fit fully into floating-point registers, and there is still
30476 space in the register parameter area, use GPRs to pass those parts
30477 of the argument. Issue -Wpsabi note if any parameter is now treated
30478 differently than before.
30479 (rs6000_arg_partial_bytes): Update.
30481 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
30483 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
30485 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30487 * rtl.h (target_rtl): Remove lang_dependent_initialized.
30488 * toplev.c (initialize_rtl): Don't use it. Move previously
30489 "language-dependent" calls to...
30490 (backend_init): ...here.
30491 (lang_dependent_init_target): Don't set lang_dependent_initialized.
30492 Assert that RTL initialization hasn't happend yet.
30494 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30496 PR rtl-optimization/61629
30497 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
30498 they have already been initialized.
30500 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30502 PR middle-end/61268
30503 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
30504 DECL_INCOMING_RTL and entry_parm.
30505 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
30506 * calls.c (load_register_parameters): Likewise argument values.
30507 (emit_library_call_value_1, store_one_arg): Likewise argument
30509 * config/i386/i386.c (assign_386_stack_local): Likewise the local
30511 * explow.c (validize_mem): Modify the argument in-place.
30513 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30515 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
30516 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
30518 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30520 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
30521 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
30523 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30525 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
30526 (aarch64_save_callee_saves): New parameter "skip_wb".
30527 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
30529 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30531 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
30533 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
30535 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30537 * graphite-isl-ast-to-gimple.c:
30538 (graphite_create_new_loop): Add calling of isl_id_free to properly
30539 decrement reference counts.
30541 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
30543 2014-07-24 Martin Liska <mliska@suse.cz>
30544 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
30546 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
30547 (rs6000_code_end): Likewise.
30549 2014-07-24 Martin Liska <mliska@suse.cz>
30551 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
30552 symtab_node funtion used.
30553 (rs6000_xcoff_declare_object_name): Likewise.
30555 2014-07-24 Martin Liska <mliska@suse.cz>
30557 * cgraphunit.c (compile): Correct function used.
30559 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30561 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
30564 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30567 * varasm.c (bss_initializer_p): Handle offlined ctors.
30568 (align_variable, get_variable_align): Likewise.
30569 (make_decl_one_only): Likewise.
30570 (default_binds_local_p_1): Likewise.
30571 (decl_binds_to_current_def_p): Likewise.
30572 (get_variable_section): Get constructor if it is offlined.
30573 (assemble_variable_contents): Sanity check that the caller
30574 streamed in the ctor in LTO.
30576 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30578 * graphite-isl-ast-to-gimple.c:
30579 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
30580 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
30581 isl_ast_op_pdiv_r to the different case.
30583 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
30585 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30587 PR middle-end/61876
30588 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
30589 when flag_errno_math is on.
30591 2014-07-24 Martin Liska <mliska@suse.cz>
30593 * cgraph.h (varpool_node):
30594 (availability get_availability (void)):
30595 created from cgraph_variable_initializer_availability
30596 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
30597 created from: cgraph_variable_initializer_availability
30598 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
30599 (void finalize_named_section_flags (void)):
30600 created from varpool_finalize_named_section_flags
30601 (bool assemble_decl (void)): created from varpool_assemble_decl
30602 (void analyze (void)): created from varpool_analyze_node
30603 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
30604 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
30605 (void remove_initializer (void)): created from varpool_remove_initializer
30606 (tree get_constructor (void)): created from varpool_get_constructor
30607 (bool externally_visible_p (void)): created from varpool_externally_visible_p
30608 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
30609 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
30610 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
30611 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
30612 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
30613 (static bool output_variables (void)): created from varpool_output_variables
30614 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
30615 created from varpool_extra_name_alias
30616 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
30617 (static void dump_varpool (FILE *f)): created from dump_varpool
30618 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
30619 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
30620 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
30621 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
30622 (void assemble_aliases (void)): created from assemble_aliases
30624 2014-07-24 Martin Liska <mliska@suse.cz>
30626 * cgraph.h (symtab_node):
30627 (void register_symbol (void)): created from symtab_register_node
30628 (void remove (void)): created from symtab_remove_node
30629 (void dump (FILE *f)): created from dump_symtab_node
30630 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
30631 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
30632 (struct ipa_ref *add_reference (symtab_node *referred_node,
30633 enum ipa_ref_use use_type)): created from add_reference
30634 (struct ipa_ref *add_reference (symtab_node *referred_node,
30635 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
30636 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
30637 gimple stmt)): created from maybe_add_reference
30638 (bool semantically_equivalent_p (symtab_node *target)): created from
30639 symtab_semantically_equivalent_p
30640 (void remove_from_same_comdat_group (void)): created from
30641 remove_from_same_comdat_group
30642 (void add_to_same_comdat_group (symtab_node *old_node)): created from
30643 symtab_add_to_same_comdat_group
30644 (void dissolve_same_comdat_group_list (void)): created from
30645 symtab_dissolve_same_comdat_group_list
30646 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
30647 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
30648 created from symtab_alias_ultimate_target
30649 (inline symtab_node *next_defined_symbol (void)): created from
30650 symtab_next_defined_symbol
30651 (bool resolve_alias (symtab_node *target)): created from
30652 symtab_resolve_alias
30653 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
30654 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
30655 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
30656 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
30657 (void set_section (const char *section)): created from set_section_1
30658 (enum availability get_availability (void)): created from symtab_node_availability
30659 (void make_decl_local (void)): created from symtab_make_decl_local
30660 (bool real_symbol_p (void)): created from symtab_read_node
30661 (can_be_discarded_p (void)): created from symtab_can_be_discarded
30662 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
30663 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
30664 symtab_in_same_comdat_p;
30665 (bool address_taken_from_non_vtable_p (void)): created from
30666 address_taken_from_non_vtable_p
30667 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
30668 (static void dump_table (FILE *)): created from dump_symtab
30669 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
30670 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
30671 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
30672 symtab_used_from_object_file_p
30673 (void dump_base (FILE *)): created from dump_symtab_base
30674 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
30675 (void unregister (void)): created from symtab_unregister_node
30676 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
30677 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
30678 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
30679 symtab_nonoverwritable_alias_1
30680 * cgraph.h (cgraph_node):
30681 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
30682 created from cgraph_remove_node_and_inline_clones
30683 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
30684 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
30685 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
30686 (cgraph_node *function_symbol (enum availability *avail = NULL)):
30687 created from cgraph_function_node
30688 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
30689 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
30690 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
30691 created from cgraph_create_clone
30692 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
30693 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
30694 created from cgraph_create_virtual_clone
30695 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
30696 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
30697 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
30698 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
30699 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
30700 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
30701 created from cgraph_function_version_info
30702 (struct cgraph_function_version_info *insert_new_function_version (void)):
30703 created from insert_new_cgraph_node_version
30704 (struct cgraph_function_version_info *function_version (void)): created from
30705 get_cgraph_node_version
30706 (void analyze (void)): created from analyze_function
30707 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
30708 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
30709 tree real_alias) cgraph_add_thunk
30710 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
30711 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
30712 created from cgraph_function_or_thunk_node
30713 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
30714 created from expand_thunk
30715 (void reset (void)): created from cgraph_reset_node
30716 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
30717 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
30718 (void remove (void)): created from cgraph_remove_node
30719 (void dump (FILE *f)): created from dump_cgraph_node
30720 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
30721 (bool get_body (void)): created from cgraph_get_body
30722 (void release_body (void)): created from cgraph_release_function_body
30723 (void unnest (void)): created from cgraph_unnest_node
30724 (void make_local (void)): created from cgraph_make_node_local
30725 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
30726 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
30727 gcov_type count, int freq)): created from cgraph_create_edge
30728 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
30729 gcov_type count, int freq)): created from cgraph_create_indirect_edge
30730 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
30731 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
30732 created from cgraph_create_edge_including_clones
30733 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
30734 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
30735 (void remove_callers (void)): created from cgraph_node_remove_callers
30736 (void remove_callees (void)): created from cgraph_node_remove_callees
30737 (enum availability get_availability (void)): created from cgraph_function_body_availability
30738 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
30739 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
30740 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
30741 (void call_duplication_hooks (cgraph_node *node2)): created from
30742 cgraph_call_node_duplication_hooks
30743 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
30744 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
30745 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
30746 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
30747 (void call_function_insertion_hooks (void)):
30748 created from cgraph_call_function_insertion_hooks
30749 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
30750 (bool local_p (void)): created from cgraph_local_node
30751 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
30752 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
30753 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
30754 (inline bool only_called_directly_or_aliased_p (void)):
30755 created from cgraph_only_called_directly_or_aliased_p
30756 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
30757 created from cgraph_will_be_removed_from_program_if_no_direct_calls
30758 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
30759 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
30760 (bool can_remove_if_no_direct_calls_p (void)):
30761 created from cgraph_can_remove_if_no_direct_calls_p
30762 (inline bool has_gimple_body_p (void)):
30763 created from cgraph_function_with_gimple_body_p
30764 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
30765 (static void dump_cgraph (FILE *f)): created from dump_cgraph
30766 (static inline void debug_cgraph (void)): created from debug_cgraph
30767 (static void record_function_versions (tree decl1, tree decl2)):
30768 created from record_function_versions
30769 (static void delete_function_version (tree decl)):
30770 created from delete_function_version
30771 (static void add_new_function (tree fndecl, bool lowered)):
30772 created from cgraph_add_new_function
30773 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
30774 (static cgraph_node * create (tree decl)): created from cgraph_create_node
30775 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
30776 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
30777 (static cgraph_node *get_for_asmname (tree asmname)):
30778 created from cgraph_node_for_asm
30779 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
30780 created from cgraph_same_body_alias
30781 (static bool used_from_object_file_p_worker (cgraph_node *node,
30782 void *): new function
30783 (static bool non_local_p (cgraph_node *node, void *)):
30784 created from cgraph_non_local_node_p_1
30785 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
30786 created from verify_cgraph
30787 (static bool make_local (cgraph_node *node, void *)):
30788 created from cgraph_make_node_local
30789 (static cgraph_node *create_alias (tree alias, tree target)):
30790 created from cgraph_create_function_alias
30791 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
30792 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
30793 created from cgraph_create_edge_1
30794 * cgraph.h (varpool_node):
30795 (void remove (void)): created from varpool_remove_node
30796 (void dump (FILE *f)): created from dump_varpool_node
30798 2014-07-24 Richard Biener <rguenther@suse.de>
30801 * tree-ssa-structalias.c (create_variable_info_for_1):
30802 Use varpool_get_constructor.
30803 (create_variable_info_for): Likewise.
30805 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30807 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
30808 subtract outgoing area size when restoring stack_pointer_rtx.
30810 2014-07-24 Nick Clifton <nickc@redhat.com>
30812 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
30813 that operations are taking place in parallel.
30814 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
30816 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
30818 * omp-low.c (extract_omp_for_data): Add missing break statement.
30820 2014-07-24 Richard Biener <rguenther@suse.de>
30822 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
30823 * tree-inline.c (estimate_move_cost): Add speed_p parameter
30824 and adjust MOVE_RATIO query accordingly.
30825 (estimate_num_insns): Adjust callers.
30826 * ipa-prop.c (ipa_populate_param_decls): Likewise.
30827 * ipa-cp.c (gather_context_independent_values,
30828 estimate_local_effects): Likewise.
30829 * ipa-split.c (consider_split): Likewise.
30831 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
30833 * config/i386/driver-i386.c: Remove names of unused arguments and
30834 unnecessary unused attributes.
30835 * config/i386/host-mingw32.c: Likewise.
30836 * config/i386/i386.c: Likewise.
30837 * config/i386/winnt-stubs.c: Likewise.
30838 * config/i386/winnt.c: Likewise.
30840 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30842 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
30843 (aarch64_gen_loadwb_pair): New helper function.
30844 (aarch64_expand_epilogue): Simplify code using new helper functions.
30845 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
30847 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30849 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
30850 (aarch64_gen_storewb_pair): New helper function.
30851 (aarch64_expand_prologue): Simplify code using new helper functions.
30852 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
30854 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30856 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
30857 Rename to aarch64_save_callee_saves, remove restore code.
30858 (aarch64_restore_callee_saves): New function.
30860 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30862 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
30863 (aarch64_save_callee_saves): New function to handle reg save
30864 for both core and vectore regs.
30866 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30868 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
30869 (aarch64_gen_store_pair): New helper function.
30870 (aarch64_save_or_restore_callee_save_registers)
30871 (aarch64_save_or_restore_fprs): Use new helper functions.
30873 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30875 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
30876 (aarch64_save_or_restore_callee_save_registers)
30877 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
30879 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30881 * config/aarch64/aarch64.c
30882 (aarch64_save_or_restore_callee_save_registers)
30883 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
30885 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30887 * config/aarch64/aarch64.c
30888 (aarch64_save_or_restore_callee_save_registers)
30889 (aarch64_save_or_restore_fprs): Remove 'increment'.
30891 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30893 * config/aarch64/aarch64.c
30894 (aarch64_save_or_restore_callee_save_registers)
30895 (aarch64_save_or_restore_fprs): Use register offset in
30896 cfun->machine->frame.reg_offset.
30898 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30900 * config/aarch64/aarch64.c
30901 (aarch64_save_or_restore_callee_save_registers)
30902 (aarch64_save_or_restore_fprs): Remove base_rtx.
30904 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30906 * config/aarch64/aarch64.c
30907 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
30908 to 'start_offset'. Remove local variable 'start_offset'.
30910 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30912 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
30913 type to HOST_WIDE_INT.
30915 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30917 * config/aarch64/aarch64.c (aarch64_expand_prologue)
30918 (aarch64_save_or_restore_fprs)
30919 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
30921 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30923 * config/arm/t-rtems-eabi: Add
30924 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
30925 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
30926 mbig-endian/mthumb/march=armv7-r, and
30927 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
30930 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30931 Chris Johns <chrisj@rtems.org>
30932 Joel Sherrill <joel.sherrill@oarcorp.com>
30934 * config.gcc: Add nios2-*-rtems*.
30935 * config/nios2/rtems.h: New file.
30936 * gcc/config/nios2/t-rtems: New file.
30938 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
30941 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
30942 constant numbers, not general constants.
30943 (rs6000_expand_vector_init): Ditto.
30945 2014-07-23 Nathan Sidwell <nathan@acm.org>
30947 * gcov-tool.c (gcov_list): Declare here.
30948 (set_gcov_list): Remove.
30949 (gcov_output_files): Set gcov_list directly.
30951 2014-07-23 Host Schirmeier <horst@schirmeier.com>
30953 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
30955 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30957 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
30958 callee-saved registers are available for padding purpose
30959 and r3 is not mandatory, then prefer use those callee-saved
30962 2014-07-23 Richard Biener <rguenther@suse.de>
30964 * params.def (PARAM_MAX_COMBINE_INSNS): New.
30965 * combine.c: Include statistics.h and params.h.
30966 (combine_instructions): Guard three and four insn combines
30967 with max-combine-insns value. Record statistics for combines
30969 * doc/invoke.texi (max-combine-insns): Document new param.
30971 2014-07-23 Roman Gareev <gareevroman@gmail.com>
30973 * graphite-isl-ast-to-gimple.c:
30974 (translate_isl_ast_node_block): New function.
30975 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
30977 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
30978 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
30980 2014-07-23 Roman Gareev <gareevroman@gmail.com>
30982 * graphite-isl-ast-to-gimple.c:
30983 (get_max_schedule_dimensions): New function.
30984 (extend_schedule): Likewise.
30985 (generate_isl_schedule): Add calling of extend_schedule and
30986 get_max_schedule_dimensions.
30988 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30990 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
30991 (case UNSPEC): Handle UNSPEC_RBIT.
30993 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30995 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
30996 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
30998 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31000 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
31002 2014-07-22 Roman Gareev <gareevroman@gmail.com>
31004 * graphite-isl-ast-to-gimple.c:
31005 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
31006 (ivs_params_clear):
31007 (build_iv_mapping): New function.
31008 (translate_isl_ast_node_user): Likewise.
31009 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
31011 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
31012 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
31013 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
31015 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31018 * config/arm/arm.md (setmem): New pattern.
31019 * config/arm/arm-protos.h (struct tune_params): New fields.
31020 (arm_gen_setmem): New prototype.
31021 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
31022 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31023 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31024 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
31025 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
31026 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
31027 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
31028 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31029 (arm_const_inline_cost): New function.
31030 (arm_block_set_max_insns): New function.
31031 (arm_block_set_non_vect_profit_p): New function.
31032 (arm_block_set_vect_profit_p): New function.
31033 (arm_block_set_unaligned_vect): New function.
31034 (arm_block_set_aligned_vect): New function.
31035 (arm_block_set_unaligned_non_vect): New function.
31036 (arm_block_set_aligned_non_vect): New function.
31037 (arm_block_set_vect, arm_gen_setmem): New functions.
31039 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31041 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
31043 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
31046 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
31047 out of #ifdef __OPTIMIZE__.
31049 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31051 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
31052 different trapping status if -fnon-call-exceptions is enabled.
31054 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31056 * expr.c (store_field): Handle VOIDmode for calls that return values
31057 in multiple locations.
31059 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31061 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
31062 (altivec_vsldoi_<mode>): Likewise.
31064 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31066 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
31067 to the number of characters in the line.
31069 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31071 * graphite-isl-ast-to-gimple.c: Add using of
31072 build_nonstandard_integer_type instead of int128_integer_type_node.
31074 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
31076 * toplev.c (output_stack_usage): Adjust the location of the warning.
31078 2014-07-19 Daniel Cederman <cederman@gaisler.com>
31080 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
31081 (*membar_storeload): Disable for LEON3.
31083 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
31085 PR rtl-optimization/61461
31086 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
31088 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
31091 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
31092 Fix instruction constraint.
31093 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
31095 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
31097 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
31099 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
31101 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
31102 GNU coding standards.
31103 (nds32_register_move_cost): Likewise.
31104 (nds32_memory_move_cost): Likewise.
31105 (nds32_address_cost): Likewise.
31107 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31109 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
31111 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
31113 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
31114 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
31115 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
31116 (HAVE_sync_compare_and_swapqi): Define.
31117 (HAVE_sync_compare_and_swaphi): Likewise.
31118 (HAVE_sync_compare_and_swapsi): Likewise.
31120 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
31122 * config/mips/p5600.md: Add missing cpu tests.
31124 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31126 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
31127 (vmla_f64): Likewise.
31128 (vfms_f64): Likewise.
31129 (vmls_f64): Likewise.
31131 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31133 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
31134 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
31136 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31138 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
31139 (vmlal_high_lane_s32): Likewise.
31140 (vmlal_high_lane_u16): Likewise.
31141 (vmlal_high_lane_u32): Likewise.
31142 (vmlsl_high_lane_s16): Likewise.
31143 (vmlsl_high_lane_s32): Likewise.
31144 (vmlsl_high_lane_u16): Likewise.
31145 (vmlsl_high_lane_u32): Likewise.
31147 2014-07-17 Terry Guo <terry.guo@arm.com>
31149 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
31150 (alus_reg): Renamed to alus_sreg.
31151 * config/arm/arm-fixed.md: Change type of non-dsp instructions
31152 from alu_reg to alu_sreg. Change type of dsp instructions from
31153 alu_reg to alu_dsp_reg.
31154 * config/arm/thumb1.md: Likewise.
31155 * config/arm/thumb2.md: Likewise.
31156 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
31157 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
31158 with alu_sreg and alus_sreg.
31159 * config/arm/arm1026ejs.md (alu_op): Likewise.
31160 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
31161 * config/arm/arm926ejs.md (9_alu_op): Likewise.
31162 * config/arm/fa526.md (526_alu_op): Likewise.
31163 * config/arm/fa606te.md (606te_alu_op): Likewise.
31164 * config/arm/fa626te.md (626te_alu_op): Likewise.
31165 * config/arm/fa726te.md (726te_alu_op): Likewise.
31166 * config/arm/fmp626.md (mp626_alu_op): Likewise.
31167 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
31168 alu_sreg, alu_dsp_reg and alus_sreg.
31169 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
31170 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31171 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31172 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
31173 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
31174 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31175 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31176 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31177 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
31178 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
31179 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
31180 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
31181 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
31182 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
31183 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
31184 alus_reg to alus_sreg.
31186 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
31188 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
31191 2014-07-17 Richard Biener <rguenther@suse.de>
31193 PR rtl-optimization/61801
31194 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
31195 don't set reg_pending_barrier if it appears in a debug-insn.
31197 2014-07-16 DJ Delorie <dj@redhat.com>
31199 * config/rx/rx.c (rx_option_override): Fix alignment values.
31200 (rx_align_for_label): Likewise.
31202 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
31205 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
31206 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31207 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
31209 (cris_print_index, cris_print_operand, cris_constant_index_p)
31210 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
31211 (cris_address_cost): Ditto last CONSTANT_P.
31212 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
31213 callers changed. Yield cris_offsettable_symbol for non-PIC
31214 constant symbolic expressions including labels. Yield cris_unspec
31216 (cris_expand_pic_call_address): New parameter MARKERP. Set its
31217 target to pic_offset_table_rtx for calls that will likely go
31218 through PLT, const0_rtx when they can't. All callers changed.
31219 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
31220 symbolic expressions to be PICified. Remove second, redundant,
31221 assert on can_create_pseudo_p returning non-zero. Use
31222 replace_equiv_address_nv, not replace_equiv_address, for final
31224 * config/cris/cris.md ("movsi"): Move variable t to pattern
31225 toplevel. Adjust assert for new cris_symbol_type member. Use
31226 CONSTANT_P instead of CONSTANT_ADDRESS_P.
31227 ("*movsi_internal") <case 9>: Make check for valid unspec operands
31229 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
31230 ("call", "call_value"): Use second incoming operand as a marker
31231 for pic-offset-table-register being used.
31232 ("*expanded_call_non_v32", "*expanded_call_v32")
31233 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
31234 second incoming operand to CALL, match cris_call_type_marker.
31235 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
31236 ("*expanded_call_side"): Ditto. Fix typo in comment.
31237 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
31239 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
31240 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
31241 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
31242 users changed. Add members cris_offsettable_symbol and cris_unspec.
31243 (cris_symbol_type): Rename from cris_pic_symbol_type.
31244 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
31246 * config/cris/cris-protos.h (cris_symbol_type_of,
31247 cris_expand_pic_call_address): Adjust prototypes.
31248 (cris_legitimate_constant_p): New prototype.
31250 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
31251 an existing tmake_file. Don't add t-slibgcc and t-linux.
31253 2014-07-17 Jason Merrill <jason@redhat.com>
31256 * symtab.c (symtab_remove_from_same_comdat_group): Also
31257 set_comdat_group to NULL_TREE.
31258 (verify_symtab): Fix diagnostic.
31260 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
31263 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
31265 2014-07-16 Dodji Seketeli <dodji@redhat.com>
31267 Support location tracking for built-in macro tokens
31268 * input.h (is_location_from_builtin_token): New function declaration.
31269 * input.c (is_location_from_builtin_token): New function definition.
31270 * toplev.c (general_init): Tell libcpp what the pre-defined
31271 spelling location for built-in tokens is.
31273 2014-07-16 Jakub Jelinek <jakub@redhat.com>
31275 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
31276 on the FUNCTION_DECL.
31278 2014-07-16 Richard Biener <rguenther@suse.de>
31281 * doc/extend.texi (always_inline): Clarify.
31283 2014-07-15 Eric Christopher <echristo@gmail.com>
31285 * doc/invoke.texi (Link Options): Document -z option.
31287 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
31289 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
31290 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
31292 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
31294 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
31296 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
31298 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
31299 varpool_assemble_decl.
31300 * varpool.c (varpool_assemble_decl): Assert that node->definition is
31303 2014-07-15 Michael Matz <matz@suse.de>
31305 PR rtl-optimization/61772
31306 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
31308 2014-07-15 Richard Biener <rguenther@suse.de>
31310 * opts.c (default_options_table): Disable bit-ccp at -Og.
31312 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31314 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
31316 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31318 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
31319 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
31320 call langhook for unknown declaration.
31321 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
31322 * tree.h (DECL_ARGUMENTS): Update.
31323 * print-tree.c (print_node): Update.
31324 * tree-core.h (tree_decl_non_common): Remove arguments.
31325 (tree_function_decl): Add arguments.
31327 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
31329 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
31331 2014-07-14 Richard Biener <rguenther@suse.de>
31333 PR tree-optimization/61779
31334 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
31335 simplifying a condition.
31337 2014-07-14 Richard Biener <rguenther@suse.de>
31339 * builtins.c (c_strlen): Make only_value == 2 really only
31340 affect warning generation.
31342 2014-07-14 Richard Biener <rguenther@suse.de>
31344 PR tree-optimization/61757
31345 PR tree-optimization/61783
31346 PR tree-optimization/61787
31347 * tree-ssa-dom.c (record_equality): Revert canonicalization
31348 change and add comment.
31349 (propagate_rhs_into_lhs): Revert previous fix, removing
31350 loop depth restriction again.
31352 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31354 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
31355 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31356 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31357 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
31358 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31359 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31360 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31362 2014-07-14 Richard Biener <rguenther@suse.de>
31364 * cgraph.h (decl_in_symtab_p): Make inline.
31366 2014-07-14 Jakub Jelinek <jakub@redhat.com>
31368 PR middle-end/61294
31369 * doc/invoke.texi (-Wmemset-transposed-args): Document.
31372 * config/i386/i386.c (classify_argument): Don't merge classes above
31375 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
31377 * cgraph.h (symtab_node): Add nonzero_address.
31378 (decl_in_symtab_p): Break out from ...
31379 (symtab_get_node): ... here.
31380 * fold-const.c: Include cgraph.h
31381 (tree_single_nonzero_warnv_p): Use symtab to determine
31382 if symbol is non-zero.
31383 * symtab.c (symtab_node::nonzero_address): New method.
31385 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31387 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
31388 forgotten in previous commit.
31390 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31392 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
31394 * ipa-devirt.c: Include stor-layout.h and intl.h
31395 (odr_subtypes_equivalent_p): New function.
31396 (warn_odr): New function.
31397 (warn_type_mismatch): New function.
31398 (odr_types_equivalent_p): New function.
31399 (add_type_duplicate): Use it.
31400 * common.opt (Wodr): New flag.
31401 * doc/invoke.texi (Wodr): Document new warning.
31403 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31405 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
31406 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
31407 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
31408 (varpool_get_constructor): Push CTORS_IN timevar.
31409 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
31411 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
31413 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
31414 Remove VOID_FTYPE_PUSHORT.
31415 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
31416 Change code to USHORT_FTYPE_VOID.
31417 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
31418 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31419 (ix86_atomic_assign_expand_fenv): Update for
31420 __builtin_ia32_fnstsw changes.
31421 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
31422 (fnstsw): Change operand 0 to nonimmediate operand.
31424 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31426 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
31427 (varpool_get_constructor): New function.
31428 (varpool_ctor_useable_for_folding_p): Break out from ...
31429 (ctor_for_folding): ... here; use varpool_get_constructor.
31430 (varpool_assemble_decl): Likewise.
31431 * lto-streamer.h (struct output_block): Turn cgraph_node
31433 (lto_input_variable_constructor): Declare.
31434 * ipa-visibility.c (function_and_variable_visibility): Use
31435 varpool_get_constructor.
31436 * cgraph.h (varpool_get_constructor): Declare.
31437 (varpool_ctor_useable_for_folding_p): New function.
31438 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
31439 parameter; return error_mark_node for non-trivial constructors.
31440 (lto_write_tree_1, DFS_write_tree): Update use of
31441 get_symbol_initial_value.
31442 (output_function): Update initialization of symbol.
31443 (output_constructor): New function.
31444 (copy_function): Rename to ..
31445 (copy_function_or_variable): ... this one; handle vars too.
31446 (lto_output): Output variable sections.
31447 * lto-streamer-in.c (input_constructor): New function.
31448 (lto_read_body): Rename from ...
31449 (lto_read_body_or_constructor): ... this one; handle vars too.
31450 (lto_input_variable_constructor): New function.
31451 * ipa-prop.c (ipa_prop_write_jump_functions,
31452 ipa_prop_write_all_agg_replacement): Update.
31453 * lto-cgraph.c (compute_ltrans_boundary): Use it.
31454 (output_cgraph_opt_summary): Set symbol to NULL.
31456 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31458 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
31459 non-polymorphic types.
31460 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
31461 * ipa-devirt.c (types_same_for_odr): Do not explode when one
31462 of types is not polymorphic.
31464 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
31466 * lra-constraints.c (remove_inheritance_pseudos): Process
31467 destination pseudo too.
31469 2014-07-11 Rong Xu <xur@google.com>
31471 * gcov-tool.c (gcov_output_files): Fix build error introduced in
31474 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31476 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
31477 * config/avr/avr-devices.c (AVR_MCU): Same.
31478 (avr_mcu_types): add text start value to end of device list.
31479 * config/avr/avr-mcus.def: Add text section start for all devices.
31480 (ata5782): Add new avr5 device.
31482 * config/avr/avr-tables.opt: Regenerate.
31483 * config/avr/avr.h: Add declaration for text section start handler.
31484 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
31486 (LINK_SPEC): Include text section start handler to linker spec.
31487 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
31488 pass -Ttext option to linker if the text section start for the device
31490 * config/avr/t-multilib: Regenerate.
31491 * doc/avr-mmcu.texi: Regenerate.
31493 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
31495 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
31496 * config/rs6000/aix52.h (LINK_SPEC): Same.
31497 * config/rs6000/aix53.h (LINK_SPEC): Same.
31498 * config/rs6000/aix61.h (LINK_SPEC): Same.
31499 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
31501 2014-07-11 Roman Gareev <gareevroman@gmail.com>
31503 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
31504 (graphite_verify): New function.
31505 (ivs_params_clear): New function.
31506 (gcc_expression_from_isl_ast_expr_id): New function.
31507 (gcc_expression_from_isl_expr_int): New function.
31508 (binary_op_to_tree): New function.
31509 (ternary_op_to_tree): New function.
31510 (unary_op_to_tree): New function.
31511 (nary_op_to_tree): New function.
31512 (gcc_expression_from_isl_expr_op): New function.
31513 (gcc_expression_from_isl_expression): New function.
31514 (graphite_create_new_loop): New function.
31515 (translate_isl_ast_for_loop): New function.
31516 (get_upper_bound): New function.
31517 (graphite_create_new_loop_guard): New function.
31518 (translate_isl_ast_node_for): New function.
31519 (translate_isl_ast): New function.
31520 (add_parameters_to_ivs_params): New function.
31521 (scop_to_isl_ast): New parameter ip.
31522 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
31524 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31526 * config/xtensa/predicates.md (call expander): Update for
31527 DECL_SECTION_NAME being string.
31529 2014-07-11 Richard Biener <rguenther@suse.de>
31531 PR middle-end/61473
31532 * builtins.c (fold_builtin_memory_op): Inline memory moves that
31533 can be implemented with a single load followed by a single store.
31534 (c_strlen): Only warn when only_value is not 2.
31536 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
31538 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
31540 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
31543 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
31544 (*movhi_bytes): Likewise.
31545 (*arm_movqi_insn): Likewise.
31547 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
31550 * config/alpha/alpha.c: Include tree-pass.h, context.h
31551 and pass_manager.h.
31552 (pass_data_handle_trap_shadows): New pass.
31553 (pass_handle_trap_shadows::gate): New pass gate function.
31554 (make_pass_handle_trap_shadows): New function.
31555 (rest_of_handle_trap_shadows): Ditto.
31557 (alpha_align_insns_1): Rename from alpha_align_insns.
31558 (pass_data_align_insns): New pass.
31559 (pass_align_insns::gate): New pass gate function.
31560 (make_pass_aling_insns): New function.
31561 (rest_of_align_insns): Ditto.
31562 (alpha_align_insns): Ditto.
31564 (alpha_option_override): Declare handle_trap_shadows info
31565 and align_insns_info. Register handle_trap_shadows and align_insns
31567 (alpha_reorg): Do not call alpha_trap_shadows and
31568 alpha_align_insn from here.
31570 (alpha_pad_function_end): Do not skip BARRIERs.
31572 2014-07-10 Rong Xu <xur@google.com>
31574 Add gcov-tool: an offline gcda profile processing tool support.
31575 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
31576 (gcov_is_error): Ditto.
31577 (gcov_read_string): Ditto.
31578 (gcov_read_sync): Ditto.
31579 * gcov-io.h: Move counter defines to gcov-counter.def.
31580 * gcov-dump.c (tag_counters): Use gcov-counter.def.
31581 * coverage.c: Ditto.
31582 * gcov-tool.c: Offline gcda profile processing tool.
31583 (unlink_gcda_file): Remove one gcda file.
31584 (unlink_profile_dir): Remove gcda files from the profile path.
31585 (gcov_output_files): Output gcda files to an output dir.
31586 (profile_merge): Merge two profiles in directory.
31587 (print_merge_usage_message): Print merge usage.
31588 (merge_usage): Print merge usage and exit.
31589 (do_merge): Driver for profile merge sub-command.
31590 (profile_rewrite): Rewrite profile.
31591 (print_rewrite_usage_message): Print rewrite usage.
31592 (rewrite_usage): Print rewrite usage and exit.
31593 (do_rewrite): Driver for profile rewrite sub-command.
31594 (print_usage): Print gcov-info usage and exit.
31595 (print_version): Print gcov-info version.
31596 (process_args): Process arguments.
31597 (main): Main routine for gcov-tool.
31598 * Makefile.in: Build and install gcov-tool.
31599 * gcov-counter.def: New file split from gcov-io.h.
31600 * doc/gcc.texi: Include gcov-tool.texi.
31601 * doc/gcov-tool.texi: Document for gcov-tool.
31603 2014-07-10 Richard Biener <rguenther@suse.de>
31605 PR tree-optimization/61757
31606 * tree-ssa-dom.c (loop_depth_of_name): Restore.
31607 (propagate_rhs_into_lhs): Revert part of last change.
31609 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
31611 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
31614 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
31616 PR middle-end/53590
31617 * function.c (allocate_struct_function): Revert r188667 change.
31619 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
31621 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
31623 * doc/install.texi: Remove links to defunct package providers for
31626 2014-07-09 Tom de Vries <tom@codesourcery.com>
31628 * final.c (get_call_fndecl): Declare.
31629 (self_recursive_call_p): New function.
31630 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
31632 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31634 * ipa-devirt.c (record_node): Walk through aliases.
31636 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31638 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
31640 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31643 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31645 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31647 * ipa-visibility.c (function_and_variable_visibility): Remove
31648 temporary hack disabling local aliases on AIX.
31650 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31652 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
31653 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
31655 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31657 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
31658 * rs6000/rs6000.c: Inline output of .set instruction.
31659 (declare_alias_data): New struct.
31660 (rs6000_declare_alias): New function.
31661 (rs6000_xcoff_declare_function_name): Use it.
31662 (rs6000_xcoff_declare_object_name): New function.
31663 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
31664 (ASM_OUTPUT_DEF): Turn to empty definition.
31666 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31669 * hash-table.h: use hash_table::value_type instead of
31670 Descriptor::value_type in the return types of several methods.
31672 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31674 * tree-pass.h (pass_data): Remove has_execute member.
31675 * passes.c (execute_one_pass): Don't check pass->has_execute.
31676 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31677 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31678 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31679 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31680 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31681 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31682 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31683 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31684 gimple-low.c, gimple-ssa-isolate-paths.c,
31685 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31686 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
31687 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
31688 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
31689 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
31690 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31691 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
31692 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
31693 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
31694 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
31695 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
31696 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31697 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31698 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31699 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31700 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31701 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31702 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31703 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31704 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31705 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31706 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31707 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
31708 web.c: Remove initializer for pass_data::has_execute.
31710 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31712 * graphite-htab.h: Use hash_map instead of hash_table.
31713 * graphite-clast-to-gimple.c: Adjust.
31714 * passes.c: Use hash_map instead of hash_table.
31715 * sese.c: Likewise.
31716 * sese.h: Remove now unused code.
31718 2014-07-08 Sriraman Tallam <tmsriram@google.com>
31721 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
31724 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31726 PR rtl-optimization/61673
31727 * combine.c (simplify_comparison): Test just mode's sign bit
31728 in tmode rather than the sign bit and any bits above it.
31730 2014-07-08 Roman Gareev <gareevroman@gmail.com>
31732 * graphite-isl-ast-to-gimple.c (generate_isl_context):
31733 Add __isl_give to the declaration.
31734 (generate_isl_schedule): Likewise.
31735 (scop_to_isl_ast): Likewise.
31737 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31739 * config/arm/arm.c (cortexa5_extra_costs): New table.
31740 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
31742 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31744 PR tree-optimization/61725
31745 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
31746 range, use range_includes_zerop_p instead of integer_zerop on
31747 vr0->min, only use log2 of max if min is not negative.
31749 2014-07-08 Richard Biener <rguenther@suse.de>
31751 * tree-ssa-dom.h (loop_depth_of_name): Remove.
31752 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
31753 restriction on loop depth difference.
31754 (record_equality): Likewise.
31755 (propagate_rhs_into_lhs): Likewise. Simplify condition.
31756 (loop_depth_of_name): Remove.
31757 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
31758 restriction on loop depth difference.
31759 (init_copy_prop): Likewise.
31761 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31763 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
31765 (walk_aliased_vdefs): Likewise.
31766 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
31767 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
31768 (detect_type_change_from_memory_writes): Check if entry was reached.
31770 2014-07-08 Richard Biener <rguenther@suse.de>
31772 PR tree-optimization/61681
31773 * tree-ssa-structalias.c (find_what_var_points_to): Expand
31774 NONLOCAL inside ESCAPED.
31776 2014-07-08 Richard Biener <rguenther@suse.de>
31778 PR tree-optimization/61680
31779 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31780 Handle properly all read-write dependences with group accesses.
31782 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
31784 PR tree-optimization/61576
31785 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
31786 block containing reduction statement is predecessor of phi basi block.
31788 2014-07-08 Marek Polacek <polacek@redhat.com>
31791 * fold-const.c (round_up_loc): Change the parameter type.
31793 * fold-const.h (round_up_loc): Adjust declaration.
31794 * stor-layout.c (finalize_record_size): Check for too large types.
31796 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
31798 * symtab.c: Include calls.h.
31799 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
31801 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
31803 * config/rs6000/rs6000.c (output_vec_const_move): Handle
31804 little-endian code generation.
31805 * config/rs6000/spe.md (spe_evmergehi): Rename to...
31806 (vec_perm00_v2si): ... this. Handle little-endian code generation.
31807 (spe_evmergehilo): Rename to...
31808 (vec_perm01_v2si): ... this. Handle little-endian code generation.
31809 (spe_evmergelo): Rename to...
31810 (vec_perm11_v2si): ... this. Handle little-endian code generation.
31811 (spe_evmergelohi): Rename to...
31812 (vec_perm10_v2si): ... this. Handle little-endian code generation.
31813 (spe_evmergehi, spe_evmergehilo): New expanders.
31814 (spe_evmergelo, spe_evmergelohi): Likewise.
31815 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
31816 (*frob_tf_ti): Likewise.
31817 (*frob_<mode>_di_2): Likewise.
31818 (*frob_tf_di_8_2): Likewise.
31819 (*frob_di_<mode>): Likewise.
31820 (*frob_ti_tf): Likewise.
31821 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
31822 (*frob_ti_<mode>_8_2): Likewise.
31823 (*frob_ti_tf_2): Likewise.
31824 (mov_si<mode>_e500_subreg0): Rename to...
31825 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
31827 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
31828 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
31829 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
31830 the big endianness only.
31831 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
31832 (*mov_si<mode>_e500_subreg0_2): Rename to...
31833 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
31834 big big endianness only.
31835 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
31836 (*mov_si<mode>_e500_subreg4): Rename to...
31837 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
31839 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
31840 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
31841 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
31842 the big endianness only.
31843 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
31845 (*mov_si<mode>_e500_subreg4_2): Rename to...
31846 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
31848 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
31849 (*mov_sitf_e500_subreg8): Rename to...
31850 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
31852 (*mov_sitf_e500_subreg8_le): New instruction pattern.
31853 (*mov_sitf_e500_subreg8_2): Rename to...
31854 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
31856 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
31857 (*mov_sitf_e500_subreg12): Rename to...
31858 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
31860 (*mov_sitf_e500_subreg12_le): New instruction pattern.
31861 (*mov_sitf_e500_subreg12_2): Rename to...
31862 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
31864 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
31866 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
31868 * asan.c (instrument_strlen_call): Do not instrument first byte
31869 in strlen if already instrumented.
31871 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31873 * config/arm/arm.opt (mwords-little-endian): Delete.
31874 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
31875 of TARGET_LITTLE_WORDS.
31876 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
31877 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
31879 * doc/invoke.texi: Remove references to -mwords-little-endian.
31881 2014-07-07 Jakub Jelinek <jakub@redhat.com>
31883 * expmed.c (struct init_expmed_rtl): Change all fields but
31884 pow2 and cint from struct rtx_def to rtx.
31885 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
31886 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
31889 2014-07-06 Marek Polacek <polacek@redhat.com>
31892 * doc/invoke.texi: Document -Wsizeof-array-argument.
31894 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
31896 * wide-int.h (wide_int_storage): Change declaration from struct
31899 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
31901 * cgraph.c (cgraph_create_indirect_edge): Update call of
31902 get_polymorphic_call_info.
31903 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
31904 (possible_polymorphic_call_targets): Add parameter call.
31905 (decl_maybe_in_construction_p): New predicate.
31906 (get_polymorphic_call_info): Add parameter call;
31907 use decl_maybe_in_construction_p.
31908 * gimple-fold.c (fold_gimple_assign): Update use of
31909 possible_polymorphic_call_targets.
31910 (gimple_fold_call): Likewise.
31911 * ipa-prop.c: Inlcude calls.h
31912 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
31913 (param_type_may_change_p): New predicate.
31914 (detect_type_change_from_memory_writes): Break out from ...
31915 (detect_type_change): ... this one; use param_type_may_change_p.
31916 (detect_type_change_ssa): Use param_type_may_change_p.
31917 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
31919 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
31922 * config/arm/arm-protos.h (arm_legitimate_address_p,
31923 arm_is_constant_pool_ref): Add prototypes.
31924 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
31925 (arm_is_constant_pool_ref) New function.
31926 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
31927 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
31928 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
31929 operand. Remove pool_range and neg_pool_range attributes.
31930 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
31931 pool_range and neg_pool_range attributes.
31932 * config/arm/constraints.md (Uh): New constraint.
31933 (Uq): Don't allow constant pool references.
31935 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
31937 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
31938 (move_lo_quad_internal_be_<mode>): Likewise.
31939 (move_lo_quad_<mode>): Convert to define_expand.
31940 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
31941 (aarch64_simd_move_hi_quad_be_<mode>): New.
31942 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
31943 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
31944 (aarch64_combinez_be<mode>): New.
31945 (aarch64_combine<mode>): Convert to define_expand.
31946 (aarch64_combine_internal<mode>): New.
31947 (aarch64_simd_combine<mode>): Remove bogus RTL description.
31949 2014-07-04 Tom de Vries <tom@codesourcery.com>
31951 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
31952 combination of earlyclobber and read/write modifiers.
31954 2014-07-04 Tom de Vries <tom@codesourcery.com>
31956 * config/aarch64/aarch64-simd.md
31957 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
31959 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
31962 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
31964 2014-07-04 Jakub Jelinek <jakub@redhat.com>
31966 PR middle-end/61654
31967 * cgraphunit.c (expand_thunk): Call free_dominance_info.
31969 PR tree-optimization/61684
31970 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
31971 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
31973 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31974 Kito Cheng <kito@0xlab.org>
31975 Monk Chiang <sh.chiang04@gmail.com>
31977 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
31978 (nds32_symbol_load_store_p): Move to ...
31979 (nds32_fp_as_gp_check_available): Move to ...
31980 * config/nds32/nds32-fp-as-gp.c: ... here.
31981 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
31982 extern declaration.
31984 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31985 Kito Cheng <kito@0xlab.org>
31986 Monk Chiang <sh.chiang04@gmail.com>
31988 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
31989 (nds32_expand_store_multiple): Move to ...
31990 (nds32_expand_movmemqi): Move to ...
31991 * config/nds32/nds32-memory-manipulation.c: ... here.
31993 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
31994 Kito Cheng <kito@0xlab.org>
31995 Monk Chiang <sh.chiang04@gmail.com>
31997 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
31998 (nds32_output_casesi_pc_relative): Move to ...
31999 (nds32_output_casesi): Move to ...
32000 (nds32_mem_format): Move to ...
32001 (nds32_output_16bit_store): Move to ...
32002 (nds32_output_16bit_load): Move to ...
32003 (nds32_output_32bit_store): Move to ...
32004 (nds32_output_32bit_load): Move to ...
32005 (nds32_output_32bit_load_s): Move to ...
32006 (nds32_output_stack_push): Move to ...
32007 (nds32_output_stack_pop): Move to ...
32008 * config/nds32/nds32-md-auxiliary.c: ... here.
32010 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32011 Ling-Hua Tseng <uranus@tinlans.org>
32013 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
32014 the purpose of this file.
32016 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32017 Kito Cheng <kito@0xlab.org>
32018 Monk Chiang <sh.chiang04@gmail.com>
32020 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
32021 (nds32_address_cost): Move implementation to ...
32022 * config/nds32/nds32-cost.c: ... here.
32023 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
32024 (nds32_address_cost_impl): Declare.
32026 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32027 Kito Cheng <kito@0xlab.org>
32028 Monk Chiang <sh.chiang04@gmail.com>
32030 * config/nds32/nds32.c
32031 (nds32_consecutive_registers_load_store_p): Move to ...
32032 (nds32_valid_multiple_load_store): Move to ...
32033 (nds32_valid_stack_push_pop): Move to ...
32034 (nds32_can_use_bclr_p): Move to ...
32035 (nds32_can_use_bset_p): Move to ...
32036 (nds32_can_use_btgl_p): Move to ...
32037 (nds32_can_use_bitci_p): Move to ...
32038 * config/nds32/nds32-predicates.c: ... here.
32040 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32041 Kito Cheng <kito@0xlab.org>
32042 Monk Chiang <sh.chiang04@gmail.com>
32044 * config/nds32/nds32.c
32045 (nds32_expand_builtin_null_ftype_reg): Move to ...
32046 (nds32_expand_builtin_reg_ftype_imm): Move to ...
32047 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
32048 (nds32_init_builtins): Move implementation to ...
32049 (nds32_expand_builtin): Move implementation to ...
32050 * config/nds32/nds32-intrinsic.c: ... here.
32051 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
32052 (nds32_expand_builtin_impl): Declare.
32054 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32055 Kito Cheng <kito@0xlab.org>
32056 Monk Chiang <sh.chiang04@gmail.com>
32058 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
32059 (nds32_emit_section_tail_template): Move to ...
32060 (nds32_emit_isr_jmptbl_section): Move to ...
32061 (nds32_emit_isr_vector_section): Move to ...
32062 (nds32_emit_isr_reset_conten): Move to ...
32063 (nds32_check_isr_attrs_conflict): Move to ...
32064 (nds32_construct_isr_vectors_information): Move to ...
32065 (nds32_asm_file_start): Move implementation to ...
32066 (nds32_asm_file_end): Move implementation to ...
32067 * config/nds32/nds32-isr.c: ... here.
32068 * config/nds32/nds32-protos.h
32069 (nds32_check_isr_attrs_conflict): Declare.
32070 (nds32_construct_isr_vectors_information): Declare.
32071 (nds32_asm_file_start_for_isr): Declare.
32072 (nds32_asm_file_end_for_isr): Declare.
32074 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32075 Kito Cheng <kito@0xlab.org>
32076 Monk Chiang <sh.chiang04@gmail.com>
32078 * config.gcc (nds32*): Add new modules to extra_objs.
32079 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
32080 (nds32be-*-*): Likewise.
32081 * config/nds32/nds32-cost.c: New file.
32082 * config/nds32/nds32-fp-as-gp.c: New file.
32083 * config/nds32/nds32-intrinsic.c: New file.
32084 * config/nds32/nds32-isr.c: New file.
32085 * config/nds32/nds32-md-auxiliary.c: New file.
32086 * config/nds32/nds32-memory-manipulation.c: New file.
32087 * config/nds32/nds32-pipelines-auxiliary.c: New file.
32088 * config/nds32/nds32-predicates.c: New file.
32089 * config/nds32/t-nds32: New file.
32091 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32093 PR tree-optimization/61682
32094 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
32095 using cases and when one of the operands is equal to 1.
32097 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
32099 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
32100 ashr<mode>3): Correct mode of operands[2].
32101 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
32102 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
32103 Correct mode of operands[2]. Fix split condition.
32105 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
32107 * arm.md (arch): Add armv6_or_vfpv3.
32108 (arch_enabled): Add test for the above.
32109 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
32111 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
32113 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32115 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
32116 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
32117 HWI 1 and negate the unsigned value.
32118 * expmed.c (expand_sdiv_pow2): For modes wider than word always
32119 use AND instead of shift.
32120 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
32122 2014-07-03 Marek Polacek <polacek@redhat.com>
32124 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
32125 (-fsanitize=float-divide-by-zero): Move to the table with
32126 -fsanitize=undefined suboptions.
32127 (-fsanitize=float-cast-overflow): Likewise.
32129 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
32131 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
32132 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
32135 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32137 * loop-invariant.c (struct invariant): Add a new member: eqno;
32138 (find_identical_invariants): Update eqno;
32139 (create_new_invariant): Init eqno;
32140 (get_inv_cost): Compute comp_cost with eqno;
32142 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
32144 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
32145 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
32146 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
32147 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
32148 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
32150 2014-07-02 Christian Bruel <christian.bruel@st.com>
32154 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
32155 (make_preds_opaque): Delete.
32156 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
32157 (commit_mode_sets): New function.
32158 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
32159 Process all modes at once.
32160 * basic-block.h (pre_edge_lcm_avs): Declare.
32161 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
32162 Call clear_aux_for_edges. Fix comments.
32163 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
32164 (pre_edge_rev_lcm): Idem.
32165 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
32167 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
32168 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
32170 * config/i386/i386.c (x96_emit_mode_set): Idem.
32171 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
32172 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
32173 (fpscr_toggle) Disallow from delay slot.
32174 * target.def (emit_mode_set): Add prev_mode parameter.
32175 * doc/tm.texi: Regenerate.
32177 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32179 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
32182 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32184 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
32185 vtable_pointer_value_to_vtable): Constify.
32186 (contains_polymorphic_type_p): Declare.
32187 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
32188 vtable_pointer_value_to_vtable): Constify.
32189 (contains_polymorphic_type_p): New predicate.
32190 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
32192 (ipa_set_ancestor_jf): Likewise.
32193 (detect_type_change): Return false in easy cases.
32194 (compute_complex_assign_jump_func): Require type to contain
32196 (compute_known_type_jump_func): Likewise.
32198 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32200 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
32202 (type_in_anonymous_namespace_p): Constify argument.
32203 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
32204 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
32205 (main_odr_variant): New function.
32206 (hash_type_name): Make static; update assert; do not ICE on
32208 (types_same_for_odr): Bring here from tree.c; simplify and remove
32209 old structural comparing code that doesn't work for templates.
32210 (odr_hasher::equal): Update assert.
32211 (add_type_duplicate): Return true when bases should be computed;
32212 replace incomplete loader by complete; do not output duplicated
32213 warnings; do not ICE on non-records; set odr_violated flag.
32214 (get_odr_type): Be ready to replace incomplete type by complete
32215 one; work on ODR variants instead of main variants; reorder item
32216 in array so bases have still smaller indexes.
32217 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
32218 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
32220 2014-07-01 Cary Coutant <ccoutant@google.com>
32222 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
32224 (resolve_addr_in_expr): When replacing the rtx in a location list
32225 entry, get a new address table entry.
32226 (dwarf2out_finish): Call index_location_lists even if there are no
32227 addr_index_table entries yet.
32229 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32231 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
32232 change for not being obvious.
32234 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32236 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
32239 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32241 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
32242 (vcagt_f64): Likewise.
32243 (vcale_f64): Likewise.
32244 (vcaled_f64): Likewise.
32245 (vcales_f32): Likewise.
32246 (vcalt_f64): Likewise.
32247 (vcaltd_f64): Likewise.
32248 (vcalts_f32): Likewise.
32250 2014-07-01 Marek Polacek <polacek@redhat.com>
32252 * doc/invoke.texi: Document -Wint-conversion.
32254 2014-07-01 Marek Polacek <polacek@redhat.com>
32257 * doc/invoke.texi: Document -Wincompatible-pointer-types.
32259 2014-07-01 Martin Liska <mliska@suse.cz>
32261 IPA REF alias refactoring
32262 * cgraph.h (iterate_direct_aliases): New function.
32263 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
32264 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
32265 FOR_EACH_ALIAS added.
32266 (cgraph_for_node_and_aliases): Likewise.
32267 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
32268 * ipa-inline.c (reset_edge_caches): Likewise.
32269 (update_caller_keys): Likewise.
32270 * trans-mem.c (ipa_tm_execute): Likewise.
32271 *varpool.c (varpool_analyze_node): Likewise.
32272 (varpool_for_node_and_aliases): Likewise.
32273 * ipa-ref.h (first_alias): New function.
32274 (last_alias): Likewise.
32275 (has_aliases_p): Likewise.
32276 * ipa-ref.c (ipa_ref::remove_reference): Removal function
32277 is sensitive to IPA_REF_ALIASes.
32278 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
32279 are put at the beginning of the list.
32280 (symtab_node::iterate_direct_aliases): New function.
32282 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32285 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32287 (write_ts_type_common_tree_pointers): Do not stream fields not set
32288 for incomplete types; do not stream duplicated fields for variants;
32289 sanity check that variant and type match.
32290 (write_ts_type_non_common_tree_pointers): Likewise.
32291 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32292 TYPE_SIZE whether type is complete.
32293 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32294 write_ts_type_common_tree_pointers
32295 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32297 2014-06-30 Joseph Myers <joseph@codesourcery.com>
32299 * var-tracking.c (add_stores): Return instead of asserting if old
32300 and new values for conditional store are the same.
32302 2014-06-30 Richard Henderson <rth@redhat.com>
32306 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
32307 the cfg if there were any changes.
32308 * passes.def: Revert move of peephole2 after reorder_blocks;
32309 move duplicate_computed_gotos before peephole2.
32311 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
32313 * except.c (emit_note_eh_region_end): New helper function.
32314 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
32315 emit EH_REGION_END note.
32316 * jump.c (cleanup_barriers): Do not split a call and its
32317 corresponding CALL_ARG_LOCATION note.
32319 2014-06-30 Jeff Law <law@redhat.com>
32321 PR tree-optimization/61607
32322 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
32323 deeper into the SSA_NAME_VALUE chain.
32325 2014-06-30 Marek Polacek <polacek@redhat.com>
32327 * convert.c (convert_to_integer): Don't instrument conversions if the
32328 function has no_sanitize_undefined attribute.
32329 * ubsan.c: Don't run the ubsan pass if the function has
32330 no_sanitize_undefined attribute.
32332 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32334 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
32335 -fsanitize=undefined suboptions.
32337 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
32339 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
32340 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
32341 against bigendian and adjust indices.
32343 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32345 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
32347 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
32350 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
32351 Add alternative; make early clobber. Adjust both split patterns
32352 to use operand 0 as the working register.
32354 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32356 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
32357 as ira_object_id_map might be NULL, or 1.
32359 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32361 * loop-invariant.c (get_inv_cost): Handle register class.
32362 (gain_for_invariant): Check the register pressure of the inv
32363 and its overlapped register class, other than all.
32365 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32367 * doc/invoke.texi (Optimize Options): Fix descriptions of
32368 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
32370 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
32372 * doc/extend.texi (Function Attributes): Update 'naked' attribute
32375 2014-06-29 Tobias Grosser <tobias@grosser.es>
32378 * graphite-isl-ast-to-gimple.c: Add missing guards.
32380 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32382 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
32383 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
32384 * flag-types.h: Add new enum fgraphite_generator.
32385 * graphite-isl-ast-to-gimple.c: New.
32386 * graphite-isl-ast-to-gimple.h: New.
32387 * graphite.c (graphite_transform_loops): Add choice of Graphite
32388 code generator, which depends on flag_graphite_code_gen.
32390 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32392 * graphite-dependences.c (subtract_commutative_associative_deps):
32393 Add NULL checking of the following variables: must_raw_no_source,
32394 may_raw_no_source, must_war_no_source, may_war_no_source,
32395 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
32396 must_war, may_war, must_waw, may_waw.
32398 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32400 * graphite-clast-to-gimple.c: gloog is renamed to
32401 graphite_regenerate_ast_cloog. gloog_error is renamed to
32402 graphite_regenerate_error.
32403 * graphite-clast-to-gimple.h: The definition of the struct
32404 bb_pbb_def is moved to graphite-htab.h.
32405 Add inclusion of the hash-table.h.
32406 * graphite-htab.h: The declaration of the function gloog is moved
32407 to graphite-clast-to-gimple.h and renamed to
32408 graphite_regenerate_ast_cloog.
32409 * graphite.c (graphite_transform_loops): gloog is renamed
32410 to graphite_regenerate_ast_cloog.
32412 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32414 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32416 (write_ts_type_common_tree_pointers): Do not stream fields not set
32417 for incomplete types; do not stream duplicated fields for variants;
32418 sanity check that variant and type match.
32419 (write_ts_type_non_common_tree_pointers): Likewise.
32420 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32421 TYPE_SIZE whether type is complete.
32422 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32423 write_ts_type_common_tree_pointers
32424 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32426 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32428 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
32430 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32432 * tree-inline.c (remap_type_1): Do not duplicate fields
32433 that are shared in between type and its main variant.
32435 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32437 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
32439 (ipa_set_ancestor_jf) Likewise.
32440 (check_stmt_for_type_change): Check that we work on main variant.
32441 (detect_type_change): Look into main variant.
32442 (compute_known_type_jump_func): Check that main variant has BINFO.
32444 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32446 * ipa-devirt.c (set_type_binfo): New function.
32447 (add_type_duplicate): Use it.
32448 (get_odr_type): Sanity check that binfos points to main variants.
32449 (get_class_context): Be sure the context's outer_type is main variant.
32450 (contains_type_p): Walk main variant.
32451 (get_polymorphic_call_info_for_decl): Set outer_type to be
32453 (get_polymorphic_call_info): Likewise.
32454 (possible_polymorphic_call_targets): Sanity check that we operate
32457 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32459 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
32461 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32463 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
32464 accidental change due to wide-int branch merge.
32466 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32468 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
32469 compressed debug support.
32470 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
32471 * configure: Regenerate.
32472 * config.in: Regenerate.
32473 * common.opt (compressed_debug_sections): New enum.
32474 (gz, gz=): New options.
32475 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
32476 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
32477 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
32478 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
32479 LINK_COMPRESS_DEBUG_SPEC.
32480 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
32481 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
32482 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
32483 (Debugging Options): Document -gz[=type].
32485 2014-06-27 Martin Jambor <mjambor@suse.cz>
32488 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
32489 args_to_skip, use those from node instead. Copy args_to_skip and
32490 combined_args_to_skip from node to the new thunk.
32491 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
32492 (cgraph_create_virtual_clone): Moved computation of
32493 combined_args_to_skip...
32494 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
32496 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
32498 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
32499 redundant diagnostic machinary.
32501 2014-06-27 Richard Biener <rguenther@suse.de>
32503 * tree-ssa-math-opts.c (bswap_replace): Fix
32504 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
32506 2014-06-27 Martin Liska <mliska@suse.cz>
32508 * gimple.h (gimple_location_safe): New function introduced.
32509 * cgraphunit.c (walk_polymorphic_call_targets): Usage
32510 of gimple_location_safe replaces gimple_location.
32511 (gimple_fold_call): Likewise.
32512 * ipa-devirt.c (ipa_devirt): Likewise.
32513 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32514 * ipa.c (walk_polymorphic_call_targets): Likewise.
32515 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32517 2014-06-27 Jakub Jelinek <jakub@redhat.com>
32519 PR tree-optimization/57233
32520 PR tree-optimization/61299
32521 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
32523 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
32524 would be lowered to scalar shifts, check if corresponding
32525 shifts and vector BIT_IOR_EXPR are supported and don't lower
32526 or lower just to narrower vector type in that case.
32527 * expmed.c (expand_shift_1): Fix up handling of vector
32528 shifts and rotates.
32530 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
32533 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
32535 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
32537 * doc/invoke.texi (-fsemantic-interposition): Document.
32538 * common.opt (fsemantic-interposition): New flag.
32539 * varasm.c (decl_replaceable_p): Use it.
32541 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32544 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
32545 extraction other than index 3.
32547 2014-06-26 Teresa Johnson <tejohnson@google.com>
32549 * doc/invoke.texi: Fix typo.
32550 * dumpfile.c: Add support for documented -fdump-* options
32551 optimized/missed/note/optall.
32553 2014-06-26 Martin Jambor <mjambor@suse.cz>
32555 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
32556 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
32557 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
32558 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
32559 * opts.c (default_options_optimization): Set
32560 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
32561 * doc/invoke.texi (allow-load-data-races)
32562 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
32563 (allow-store-data-races): Document the new default.
32565 2014-06-26 Martin Jambor <mjambor@suse.cz>
32567 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
32568 renamed to ipa_impossible_devirt_target. Fix typo.
32569 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
32570 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
32571 ipa_impossible_devirt_target.
32573 2014-06-26 Richard Biener <rguenther@suse.de>
32575 PR tree-optimization/61607
32576 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
32577 explaining why we restrict copies on loop depth.
32578 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32580 (record_equivalences_from_phis): Instead add it here.
32582 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
32584 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
32585 (LTO_WRAPPER_OBJS): New variable.
32586 (lto-wrapper$(exeext)): Use it.
32587 * collect2.c: Include "collect-utils.h".
32588 (verbose, debug): Remove variables.
32589 (at_file_supplied): No longer static.
32590 (tool_name): New variable.
32591 (do_wait, fork_execute, maybe_unlink): Don't declare.
32592 (tool_cleanup): No longer static.
32593 (notice): Remove function.
32594 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
32595 fork_execute calls.
32596 (collect_wait, do_wait, collect_execute): Remove functions.
32597 (maybe_unlink): No longer static.
32598 * collect2.h (verbose, debug): Don't declare.
32599 (at_file_supplied): Declare.
32600 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
32602 (collect_execute): Replace with implementation from collect2, plus a
32603 new arg use_atfile. All callers changed.
32604 (collect_wait): Replace with implementation from collect2.
32605 (maybe_unlink_file): Remove function.
32606 (fork_execute): Replace with implementation from collect2, plus a
32607 new arg use_atfile. All callers changed.
32608 (do_wait): Add call to utils_cleanup to the error path.
32609 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
32610 (tool_cleanup): Adjust declarations.
32611 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
32612 * tlink.c: Include "collect-utils.h".
32613 (tlink_execute): New arg use_atfile. All callers changed.
32614 (tlink_init, tlink_execute): Remove declarations.
32616 * collect-utils.c (save_temps): New variable.
32617 (do_wait): Use it instead of debug. Use fatal_error.
32618 * collect-utils.h (save_temps): Declare.
32619 * collect2.c (verbose): Rename from vflag. All uses changed.
32620 (tool_cleanup): New function, copied from collect_atexit.
32621 (collect_atexit, handler): Just call it.
32622 * collect2.h (verbose): Declaration renamed from vflag.
32623 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
32626 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
32627 (lto-wrapper$(exeext)): Link with collect-utils.o.
32628 * collect-utils.c: New file.
32629 * collect-utils.h: New file.
32630 * lto-wrapper.c: Include "collect-utils.h".
32631 (args_name): Delete variable.
32632 (tool_name): New variable.
32633 (tool_cleanup): New function.
32634 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
32635 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
32636 (fork_execute): Remove functions.
32638 2014-06-26 Nick Clifton <nickc@redhat.com>
32640 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
32642 * doc/extend.texi (Function Attributes): Fix typo in description
32643 of RX vector attribute.
32645 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
32647 * config.gcc (supported_defaults): Error when passing either
32648 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
32650 2014-06-26 Richard Biener <rguenther@suse.de>
32652 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32653 propagating volatile pointers.
32655 2014-06-26 Richard Biener <rguenther@suse.de>
32657 PR tree-optimization/61607
32658 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
32659 loop if we redirected its latch edge.
32660 (thread_block_1): Do not cancel loops prematurely.
32662 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
32664 * toplev.c (backend_init_target): Move init_emit_regs and
32666 (backend_init) ... here; skip ira_init_once and backend_init_target.
32667 (target_reinit) ... and here; clear
32668 this_target_rtl->lang_dependent_initialized.
32669 (lang_dependent_init_target): Clear
32670 this_target_rtl->lang_dependent_initialized;
32671 break out rtl initialization to ...
32672 (initialize_rtl): ... here; call also backend_init_target
32674 * toplev.h (initialize_rtl): New function.
32675 * function.c: Include toplev.h
32676 (init_function_start): Call initialize_rtl.
32677 * rtl.h (target_rtl): Add target_specific_initialized,
32678 lang_dependent_initialized.
32680 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
32681 Jakub Jelinek <jakub@redhat.com>
32683 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
32685 2014-06-25 Tom de Vries <tom@codesourcery.com>
32687 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
32689 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32691 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
32692 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
32693 Issue a strict overflow warning if appropriate.
32695 2014-06-25 Martin Liska <mliska@suse.cz>
32697 IPA REF refactoring
32698 * Makefile.in: Removed header file (ipa-ref-inline.h).
32699 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
32701 (cgraph_speculative_call_info): Likewise.
32702 (cgraph_for_node_thunks_and_aliases): Likewise.
32703 (cgraph_for_node_and_aliases): Likewise.
32704 (verify_cgraph_node): Likewise.
32705 * cgraph.h: Batch of IPA REF functions become member functions of
32706 symtab_node: add_reference, maybe_add_reference, clone_references,
32707 clone_referring, clone_reference, find_reference,
32708 remove_stmt_references, remove_all_references,
32709 remove_all_referring, dump_references, dump_referring,
32710 has_alias_p, iterate_reference, iterate_referring.
32711 * cgraphbuild.c (record_reference): New IPA REF function used.
32712 (record_type_list): Likewise.
32713 (record_eh_tables): Likewise.
32714 (mark_address): Likewise.
32715 (mark_load): Likewise.
32716 (mark_store): Likewise.
32717 (pass_build_cgraph_edges): Likewise.
32718 (rebuild_cgraph_edge): Likewise.
32719 (cgraph_rebuild_references): Likewise.
32720 (pass_remove_cgraph_callee_edges): Likewise.
32721 * cgraphclones.c (cgraph_clone_node): Likewise.
32722 (cgraph_create_virtual_clone): Likewise.
32723 (cgraph_materialize_clone): Likewise.
32724 (cgraph_materialize_all_clones): Likewise.
32725 * cgraphunit.c (cgraph_reset_node): Likewise.
32726 (cgraph_reset_node): Likewise.
32727 (analyze_function): Likewise.
32728 (assemble_thunks_and_aliases): Likewise.
32729 (expand_function): Likewise.
32730 * ipa-comdats.c (propagate_comdat_group): Likewise.
32731 (enqueue_references): Likewise.
32732 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
32733 (create_specialized_node): Likewise.
32734 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
32735 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
32736 * ipa-inline.c (reset_edge_caches): Likewise.
32737 (update_caller_keys): Likewise.
32738 (execute): Likewise.
32739 * ipa-prop.c (remove_described_reference): Likewise.
32740 (propagate_controlled_uses): Likewise.
32741 (ipa_edge_duplication_hook): Likewise.
32742 (ipa_modify_call_arguments): Likewise.
32743 * ipa-pure-const.c (propagate_pure_const): Likewise.
32744 * ipa-ref-inline.h: Header file removed, functions moved
32745 to symtab_node class.
32746 * ipa-ref.c (remove_reference): New class member function.
32747 (cannot_lead_to_return): New class member function.
32748 (referring_ref_list): Likewise.
32749 (referred_ref_list): Likewise.
32750 Rest of functions moved to symtab_node class.
32751 * ipa-ref.h: New member functions remove_reference,
32752 cannot_lead_to_return, referring_ref_list, referred_ref_list added
32754 ipa_ref_list class has new member functions: first_reference,
32755 first_referring, clear, nreferences.
32756 * ipa-reference.c (analyze_function): New IPA REF function used.
32757 (write_node_summary_p): Likewise.
32758 (ipa_reference_write_optimization_summary): Likewise.
32759 * ipa-split.c (split_function): Likewise.
32760 * ipa-utils.c (ipa_reverse_postorder): Likewise.
32761 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
32762 (function_and_variable_visibility): Likewise.
32763 * ipa.c (has_addr_references_p): Likewise.
32764 (process_references): Argument type changed.
32765 (symtab_remove_unreachable_nodes): New IPA REF function used.
32766 (process_references): Likewise.
32767 (set_writeonly_bit): Likewise.
32768 * lto-cgraph.c: Implementation of new symtab_node member functions
32769 that uses new IPA REF functions.
32770 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
32772 * lto-streamer-out.c (output_symbol_p): Likewise.
32773 * lto-streamer.h (referenced_from_this_partition_p): Argument type
32775 * symtab.c: Implementation of new IPA REF API.
32776 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
32777 (ipa_tm_create_version): Likewise.
32778 (ipa_tm_execute): Likewise.
32779 * tree-emutls.c (gen_emutls_addr): Likewise.
32780 * tree-inline.c (copy_bb): Likewise.
32781 (delete_unreachable_blocks_update_callgraph): Likewise.
32782 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
32783 (varpool_for_node_and_aliases): Likewise.
32785 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32787 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
32789 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32792 * fold-const.c (fold_checksum_tree): Use a hash_table of const
32793 tree_node * instead of tree_node *.
32795 (print_fold_checksum): Likewise.
32796 (fold_check_failed): Likewise.
32797 (debug_fold_checksum): Likewise.
32798 (fold_build1_stat_loc): Likewise.
32799 (fold_build2_stat_loc): Likewise.
32800 (fold_build3_stat_loc): Likewise.
32801 (fold_build_call_array_loc): Likewise.
32803 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
32805 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
32806 implementation with call to...
32807 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
32809 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
32812 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
32814 PR tree-optimization/57742
32815 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
32816 after replacing the statement.
32818 2014-06-25 Nick Clifton <nickc@redhat.com>
32820 * config/v850/v850.c (GHS_default_section_names): Change to const
32822 (GHS_current_section_names): Likewise.
32823 (v850_insert_attributes): Do not build strings, just assign the
32824 names directly. Change the type of 'chosen_section' to const
32826 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
32827 directly to the array entry.
32828 * config/v850/v850.h (GHS_default_section_names): Change to const
32830 (GHS_current_section_names): Likewise.
32832 2014-06-25 Jakub Jelinek <jakub@redhat.com>
32834 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
32835 (LANG_HOOKS_DECLS): Add it.
32836 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
32838 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
32839 * langhooks.h (struct lang_hooks_for_decls): Add
32840 omp_clause_linear_ctor hook.
32841 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
32842 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
32843 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
32844 combined simd loop use omp_clause_linear_ctor hook.
32846 2014-06-24 Cong Hou <congh@google.com>
32848 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
32849 pattern recognition.
32850 (type_conversion_p): PROMOTION is true if it's a type promotion
32851 conversion, and false otherwise. Return true if the given expression
32852 is a type conversion one.
32853 * tree-vectorizer.h: Adjust the number of patterns.
32854 * tree.def: Add SAD_EXPR.
32855 * optabs.def: Add sad_optab.
32856 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
32857 * expr.c (expand_expr_real_2): Likewise.
32858 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
32859 * gimple.c (get_gimple_rhs_num_ops): Likewise.
32860 * optabs.c (optab_for_tree_code): Likewise.
32861 * tree-cfg.c (estimate_operator_cost): Likewise.
32862 * tree-ssa-operands.c (get_expr_operands): Likewise.
32863 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
32864 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
32865 * doc/generic.texi: Add document for SAD_EXPR.
32866 * doc/md.texi: Add document for ssad and usad.
32868 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32870 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
32871 qualification in cast.
32873 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
32875 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
32876 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
32877 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
32878 (tree_function_decl): ... here.
32879 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
32880 streaming of vindex to ...
32881 (write_ts_function_decl_tree_pointers): ... here.
32882 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
32883 Do not stream DECL_VINDEX.
32884 (lto_input_ts_function_decl_tree_pointers): Stream it here.
32886 2014-06-24 Catherine Moore <clm@codesourcery.com>
32887 Sandra Loosemore <sandra@codesourcery.com>
32889 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
32890 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
32891 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
32893 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32895 * doc/invoke.texi (Warning Options): Remove duplicated
32896 -Wmaybe-uninitialized.
32898 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32900 PR tree-optimization/57742
32901 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
32902 (handle_builtin_malloc, handle_builtin_memset): New functions.
32903 (strlen_optimize_stmt): Call them.
32904 * passes.def: Move strlen after loop+dom but before vrp.
32906 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32909 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
32910 model family 6 CPU with has_longmode never use a CPU without
32913 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
32916 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
32919 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32921 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
32922 * dominance.c (iterate_fix_dominators): Use hash_map instead of
32924 * hash-map.h: New file.
32925 * ipa-comdats.c: Use hash_map instead of pointer_map.
32927 * lto-section-out.c: Adjust.
32928 * lto-streamer.h: Replace pointer_map with hash_map.
32929 * symtab.c (verify_symtab): Likewise.
32930 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
32931 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
32932 * tree-streamer.h: Likewise.
32933 * tree-streamer.c: Adjust.
32934 * pointer-set.h: Remove pointer_map.
32936 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32938 * hash-table.h: Add a template arg to choose between storing values
32939 and storing pointers to values, and then provide partial
32940 specializations for both.
32941 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
32942 should store, not the type values should point to.
32943 * tree-into-ssa.c (var_info_hasher): Likewise.
32944 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
32945 * tree-complex.c: Adjust.
32946 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
32947 table instead of int_tree_map *.
32948 * tree-parloops.c: Adjust.
32949 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
32950 type is being stored.
32951 * tree-vectorizer.c: Adjust.
32953 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32955 * hash-table.h: Remove a layer of indirection from hash_table so that
32956 it contains the hash table's data instead of a pointer to the data.
32957 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
32958 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
32959 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
32960 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
32961 fold-const.c, gcse.c, ggc-common.c,
32962 gimple-ssa-strength-reduction.c, gimplify.c,
32963 graphite-clast-to-gimple.c, graphite-dependences.c,
32964 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
32965 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32966 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
32967 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
32968 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
32969 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
32970 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
32971 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
32972 tree-ssa-live.c, tree-ssa-loop-im.c,
32973 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
32974 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
32975 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
32976 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
32977 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
32978 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
32979 vtable-verify.c, vtable-verify.h: Adjust.
32981 2014-06-24 Richard Biener <rguenther@suse.de>
32983 PR tree-optimization/61572
32984 * tree-ssa-sink.c (statement_sink_location): Do not sink
32985 loads from hard registers.
32987 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32989 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
32990 not mentioned in clauses use private clause if the iterator is
32991 declared in #pragma omp for simd, and when adding lastprivate
32992 instead, add it to the outer #pragma omp for too. Diagnose
32993 if the variable is private in outer context. For simd collapse > 1
32994 loops, replace all iterators with temporaries.
32995 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
32996 same even in collapse > 1 loops.
32998 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
32999 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
33001 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
33002 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
33004 (gimplify_adjust_omp_clauses): Likewise.
33005 * omp-low.c (lower_rec_simd_input_clauses,
33006 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
33007 safelen the same as safelen(1).
33008 * tree-nested.c (convert_nonlocal_omp_clauses,
33009 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
33010 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
33011 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
33012 Fixup handling of GIMPLE_OMP_TARGET.
33013 (convert_tramp_reference_stmt, convert_gimple_call): Handle
33016 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
33018 PR tree-optimization/61554
33019 * tree-ssa-propagate.c: Include "bitmap.h".
33020 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
33021 properly update constructor/destructor.
33022 (substitute_and_fold_dom_walker::before_dom_children):
33023 Remove call to gimple_purge_dead_eh_edges, add bb->index to
33024 need_eh_cleaup instead.
33025 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
33028 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33030 * varpool.c (dump_varpool_node): Dump used_by_single_function.
33031 * tree-pass.h (make_pass_ipa_single_use): New pass.
33032 * cgraph.h (used_by_single_function): New flag.
33033 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
33035 * passes.def (pass_ipa_single_use): Scedule.
33036 * ipa.c (BOTTOM): New macro.
33037 (meet): New function
33038 (propagate_single_user): New function.
33039 (ipa_single_use): New function.
33040 (pass_data_ipa_single_use): New pass.
33041 (pass_ipa_single_use): New pass.
33042 (pass_ipa_single_use::gate): New gate.
33043 (make_pass_ipa_single_use): New function.
33045 2014-06-23 Kai Tietz <ktietz@redhat.com>
33048 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
33049 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
33051 2014-06-23 Richard Biener <rguenther@suse.de>
33053 * tree-ssa-loop.c (gate_loop): New function.
33054 (pass_tree_loop::gate): Call it.
33055 (pass_data_tree_no_loop, pass_tree_no_loop,
33056 make_pass_tree_no_loop): New.
33057 * tree-vectorizer.c: Include tree-scalar-evolution.c
33058 (pass_slp_vectorize::execute): Initialize loops and SCEV if
33060 (pass_slp_vectorize::clone): New method.
33061 * timevar.def (TV_TREE_NOLOOP): New.
33062 * tree-pass.h (make_pass_tree_no_loop): Declare.
33063 * passes.def (pass_tree_no_loop): New pass group with
33066 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
33069 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
33070 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
33072 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33074 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
33075 "yes" where needed.
33077 2014-06-23 Alan Modra <amodra@gmail.com>
33080 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
33081 to zero on debug statements.
33083 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33086 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
33087 Ignore third operand if present by marking qualifier_internal.
33089 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
33091 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
33093 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
33094 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
33095 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
33096 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
33097 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
33098 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
33099 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
33100 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
33101 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
33102 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
33103 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
33104 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
33105 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
33106 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
33107 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
33108 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
33109 logic in GCC vector extensions
33111 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
33112 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
33113 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
33114 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
33115 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
33116 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
33117 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
33118 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
33119 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
33120 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
33122 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
33124 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
33127 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
33128 (vget_low_s64): Use __GET_LOW macro.
33129 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
33130 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
33131 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
33132 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
33133 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
33135 (vcombine_s64): Use GCC vector extensions; remove cast.
33136 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
33137 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
33138 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
33139 Fix type signature; remove cast.
33141 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33144 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
33146 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
33148 (BUILTIN_VD1): New.
33149 (BUILTIN_VD_RE): Remove.
33150 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
33151 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
33152 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
33153 variant but not df.
33154 (vreinterpretv1df*, vreinterpret*v1df): New.
33155 (vreinterpretdf*, vreinterpret*df): Remove.
33156 * config/aarch64/aarch64-simd.md (aarch64_create,
33157 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
33158 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
33160 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
33161 (vcreate_f64): Remove cast, use v1df builtin.
33162 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
33163 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
33164 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
33165 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
33166 vmov_n_f64, vst1_f64): Use gcc vector extensions.
33167 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
33168 add range check using __builtin_aarch64_im_lane_boundsi.
33169 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
33170 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
33171 type signature, use gcc vector extensions.
33172 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
33173 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
33174 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
33175 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
33176 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
33177 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
33178 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
33179 vreinterpret_u64_f64): Use v1df builtin not df.
33181 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33183 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
33186 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33188 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
33191 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33193 * loop-invariant.c (pre_check_invariant_p): New function.
33194 (find_invariant_insn): Call pre_check_invariant_p.
33196 2014-06-22 Richard Henderson <rth@redhat.com>
33199 * compare-elim.c (struct comparison): Add eh_note.
33200 (find_comparison_dom_walker::before_dom_children): Don't eliminate
33201 a redundant comparison in a different EH region. Purge EH edges if
33204 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33206 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
33207 (var_shift): Use it.
33208 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
33209 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33210 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33211 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33212 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33213 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
33214 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
33215 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
33216 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
33217 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
33218 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
33219 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
33220 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
33221 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
33222 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
33223 *rotldi3_internal15be): Use the new attribute. Merge register and
33224 integer alternatives.
33226 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33228 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
33229 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
33230 split, *ashrdi3_internal3 and split): Delete, merge into...
33231 (ashr<mode>3): New expander.
33232 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
33233 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
33235 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33237 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
33238 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
33239 *rotldi3_internal3 and split): Delete, merge into...
33240 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
33241 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
33242 Use "rotlw" extended mnemonic.
33244 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33246 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
33247 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
33248 and split, *ashldi3_internal3 and split): Delete, merge into...
33249 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
33250 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
33252 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33254 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
33255 (lshrsi3, two anonymous define_insns and define_splits,
33256 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
33257 *lshrdi3_internal3 and split): Delete, merge into...
33258 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
33259 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
33261 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33263 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
33264 Remove "O" alternative.
33266 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
33268 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
33269 (mips_move_from_gpr_cost): Likewise.
33270 (mips_register_move_cost): Update accordingly.
33271 (mips_secondary_reload_class): Remove name of in_p.
33273 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
33276 * config/i386/i386.md (x86_64_shrd, x86_shrd,
33277 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
33279 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33281 * config/nios2/nios2.c: Include "builtins.h".
33283 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33285 * cgraph.h (tls_model_names): New variable.
33286 * print-tree.c (print_node): Simplify.
33287 * varpool.c (tls_model_names): New variable.
33288 (dump_varpool_node): Output tls model.
33290 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33292 * ipa-visibility.c (function_and_variable_visibility): Disable
33293 temporarily local aliases for some targets.
33295 2014-06-20 Marek Polacek <polacek@redhat.com>
33297 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
33298 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
33299 into SANITIZE_UNDEFINED.
33300 * doc/invoke.texi: Describe -fsanitize=bounds.
33301 * gimplify.c (gimplify_call_expr): Add gimplification of internal
33302 functions created in the FEs.
33303 * internal-fn.c: Move "internal-fn.h" after "tree.h".
33304 (expand_UBSAN_BOUNDS): New function.
33305 * internal-fn.def (UBSAN_BOUNDS): New internal function.
33306 * internal-fn.h: Don't define internal functions here.
33307 * opts.c (common_handle_option): Add -fsanitize=bounds.
33308 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
33309 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
33310 * tree-core.h: Define internal functions here.
33311 (struct tree_base): Add ifn field.
33312 * tree-pretty-print.c: Include "internal-fn.h".
33313 (dump_generic_node): Handle functions without CALL_EXPR_FN.
33314 * tree.c (get_callee_fndecl): Likewise.
33315 (build_call_expr_internal_loc): New function.
33316 * tree.def (CALL_EXPR): Update description.
33317 * tree.h (CALL_EXPR_IFN): Define.
33318 (build_call_expr_internal_loc): Declare.
33319 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
33321 (ubsan_type_descriptor): Change bool parameter to enum
33322 ubsan_print_style. Adjust the code. Add handling of
33324 (ubsan_expand_bounds_ifn): New function.
33325 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
33326 (ubsan_build_overflow_builtin): Likewise.
33327 (instrument_bool_enum_load): Likewise.
33328 (ubsan_instrument_float_cast): Likewise.
33329 * ubsan.h (enum ubsan_print_style): New enum.
33330 (ubsan_expand_bounds_ifn): Declare.
33331 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
33333 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
33335 * config/rs6000/rs6000.md: Append `DONE' to preparation
33336 statements of `bswap' pattern splitters.
33338 2014-06-20 Tom de Vries <tom@codesourcery.com>
33340 * target.def (call_fusage_contains_non_callee_clobbers): Update
33342 * doc/tm.texi: Regenerate.
33344 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33345 Max Ostapenko <m.ostapenko@partner.samsung.com>
33348 * asan.c (instrument_strlen_call): Fixed instrumentation of
33351 2014-06-20 Martin Jambor <mjambor@suse.cz>
33354 * ipa-prop.c (impossible_devirt_target): New function.
33355 (try_make_edge_direct_virtual_call): Use it, also instead of
33358 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33359 Max Ostapenko <m.ostapenko@partner.samsung.com>
33362 * asan.c (build_check_stmt): Add condition.
33364 2014-06-20 Martin Jambor <mjambor@suse.cz>
33367 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
33370 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33372 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
33374 (VCONQ): Make comment more helpful.
33376 * config/aarch64/aarch64-simd.md
33377 (aarch64_sqdmulh_lane<mode>):
33378 Use VCOND for operands 2. Update lane checking and flipping logic.
33379 (aarch64_sqrdmulh_lane<mode>): Likewise.
33380 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
33381 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
33382 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
33383 attribute of operand 3 to VCOND.
33384 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
33385 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33386 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
33387 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
33388 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33389 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
33391 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
33392 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
33393 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
33394 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
33395 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
33396 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
33397 operand to VCOND. Update lane flipping and bounds checking logic.
33398 (aarch64_sqdmlal2_lane<mode>): Likewise.
33399 (aarch64_sqdmlsl_lane<mode>): Likewise.
33400 (aarch64_sqdmull_lane<mode>): Likewise.
33401 (aarch64_sqdmull2_lane<mode>): Likewise.
33402 (aarch64_sqdmlal_laneq<mode>):
33403 Replace VCON usage with VCONQ.
33404 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
33405 (aarch64_sqdmlal2_laneq<mode>): Emit
33406 aarch64_sqdmlal2_laneq<mode>_internal insn.
33407 Replace VCON with VCONQ.
33408 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
33409 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33410 (aarch64_sqdmull_laneq<mode>): Emit
33411 aarch64_sqdmull_laneq<mode>_internal insn.
33412 Replace VCON with VCONQ.
33413 (aarch64_sqdmull2_laneq<mode>): Emit
33414 aarch64_sqdmull2_laneq<mode>_internal insn.
33415 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
33416 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
33417 of 3rd argument to int16x4_t.
33418 (vqdmlalh_lane_s16): Likewise.
33419 (vqdmlslh_lane_s16): Likewise.
33420 (vqdmull_high_lane_s16): Likewise.
33421 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
33422 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
33423 (vqdmlsl_lane_s16): Likewise.
33424 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
33425 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
33426 (vqdmlals_lane_s32): Likewise.
33427 (vqdmlsls_lane_s32): Likewise.
33428 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
33429 (vqdmulls_lane_s32): Likewise.
33430 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
33431 (vqdmlsl_lane_s32): Likewise.
33432 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
33433 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
33434 (vqrdmulhh_lane_s16): Likewise.
33435 (vqdmlsl_high_lane_s16): Likewise.
33436 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
33437 (vqdmlsl_high_lane_s32): Likewise.
33438 (vqrdmulhs_lane_s32): Likewise.
33440 2014-06-20 Tom de Vries <tom@codesourcery.com>
33442 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
33443 get_call_reg_set_usage.
33445 2014-06-20 Tom de Vries <tom@codesourcery.com>
33447 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
33448 it contains all call_used_regs.
33450 2014-06-20 Tom de Vries <tom@codesourcery.com>
33452 * final.c (collect_fn_hard_reg_usage): Add and use variable
33453 function_used_regs.
33455 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33457 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
33458 (set_init_priority, get_init_priority, set_fini_priority,
33459 get_fini_priority): New methods.
33460 * tree.c (init_priority_for_decl): Remove.
33461 (init_ttree): Do not initialize init priority.
33462 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
33463 (decl_priority_info): Remove.
33464 (decl_init_priority_insert): Rewrite.
33465 (decl_fini_priority_insert): Rewrite.
33466 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
33467 tree_priority_map_marked_p): Remove.
33468 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
33469 * lto-streamer-out.c (hash_tree): Do not hash priorities.
33470 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
33471 not output priorities.
33472 (pack_ts_function_decl_value_fields): Likewise.
33473 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33474 not input priorities.
33475 (unpack_ts_function_decl_value_fields): Likewise.
33476 * symtab.c (symbol_priority_map): Declare.
33477 (init_priority_hash): Declare.
33478 (symtab_unregister_node): Unregister from priority hash, too.
33479 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
33481 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
33482 (symbol_priority_info): New function.
33483 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
33485 * tree-core.h (tree_priority_map): Remove.
33487 2014-06-20 Jakub Jelinek <jakub@redhat.com>
33489 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
33490 0xff to uint64_t before shifting it up.
33492 2014-06-20 Julian Brown <julian@codesourcery.com>
33493 Chung-Lin Tang <cltang@codesourcery.com>
33495 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
33496 TARGET_THUMB1_ONLY. Add comments.
33498 2014-06-19 Tom de Vries <tom@codesourcery.com>
33500 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
33501 return type to void.
33502 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
33504 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33506 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
33507 as "move", from depends_on.
33509 2014-06-19 Terry Guo <terry.guo@arm.com>
33511 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
33514 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
33516 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
33518 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
33520 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
33523 * config/sh/sh.c (prepare_move_operands): Don't process TLS
33524 addresses here if reload in progress or completed.
33526 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33528 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
33529 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
33530 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
33531 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
33532 (mips_register_priority): New function that implements the target
33533 hook TARGET_REGISTER_PRIORITY.
33534 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
33535 (mips_lra_p): Likewise for TARGET_LRA_P.
33536 (TARGET_REGISTER_PRIORITY): Define macro.
33537 (TARGET_SPILL_CLASS): Likewise.
33538 (TARGET_LRA_P): Likewise.
33539 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
33541 (REG_CLASS_NAMES): Likewise.
33542 (REG_CLASS_CONTENTS): Likewise.
33543 (BASE_REG_CLASS): Use M16_SP_REGS.
33544 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
33545 New set attribute to enable alternatives depending on the register
33547 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
33548 (*lea64): Disable pattern for MIPS16.
33549 * config/mips/mips.opt (mlra): New option.
33551 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33553 * lra-constraints.c (base_to_reg): New function.
33554 (process_address): Use new function.
33556 2014-06-18 Tom de Vries <tom@codesourcery.com>
33558 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
33559 * config/aarch64/aarch64.c
33560 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
33561 (aarch64_emit_call_insn): New function.
33562 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
33564 * config/aarch64/aarch64.md (define_expand "call_internal")
33565 (define_expand "call_value_internal", define_expand "sibcall_internal")
33566 (define_expand "sibcall_value_internal"): New.
33567 (define_expand "call", define_expand "call_value")
33568 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
33569 expand variant and aarch64_emit_call_insn.
33571 2014-06-18 Radovan Obradovic <robradovic@mips.com>
33572 Tom de Vries <tom@codesourcery.com>
33574 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
33575 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33577 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
33578 clobbers to CALL_INSN_FUNCTION_USAGE.
33579 (define_expand "sibcall_internal")
33580 (define_expand "sibcall_value_internal"): New.
33581 (define_expand "call", define_expand "call_value"): Add argument to
33582 arm_emit_call_insn.
33583 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
33584 (define_expand "sibcall_value"): Use sibcall_value_internal and
33585 arm_emit_call_insn.
33587 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33589 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
33591 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33593 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
33596 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33598 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
33599 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
33600 annotations. Fix DWARF information.
33602 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33604 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
33605 __udivmoddi4, and fixups for negative operands.
33607 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33609 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
33611 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33613 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
33616 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33618 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
33621 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33623 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
33624 describing register usage on function entry and exit.
33626 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33628 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
33629 (__aeabi_ldivmod): Fix whitespace.
33631 2014-06-18 Andreas Schwab <schwab@suse.de>
33633 * doc/md.texi (Standard Names): Use @itemx for grouped items.
33634 Remove blank line after @item.
33636 2014-06-18 Richard Henderson <rth@redhat.com>
33639 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
33641 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33643 * config/arm/arm.c (neon_vector_mem_operand): Allow register
33644 POST_MODIFY for neon loads and stores.
33645 (arm_print_operand): Output post-index register for neon loads and
33648 2014-06-18 Richard Biener <rguenther@suse.de>
33650 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
33652 2014-06-18 Richard Biener <rguenther@suse.de>
33654 * tree-pass.h (make_pass_dce_loop): Remove.
33655 * passes.def: Replace pass_dce_loop with pass_dce.
33656 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
33657 changed free niter estimates and reset the scev cache.
33658 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
33659 make_pass_dce_loop): Remove.
33660 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
33661 (fini_copy_prop): Return whether something changed. Always
33662 let substitute_and_fold perform DCE and free niter estimates
33663 and reset the scev cache if so.
33664 (execute_copy_prop): If sth changed schedule cleanup-cfg.
33665 (pass_data_copy_prop): Do not unconditionally schedule
33666 cleanup-cfg or update-ssa.
33668 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33670 PR tree-optimization/61518
33671 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33672 reduction var is used in reduction stmt or phi-function only.
33674 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33676 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
33678 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33680 PR tree-optimization/61517
33681 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
33682 whose rhs's first tree is the source expression instead of the
33684 (find_bswap_or_nop): Likewise.
33685 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
33686 gimple stmt whose rhs's first tree is the source. In the memory source
33687 case, move the stmt to be replaced close to one of the original load to
33688 avoid the problem of a store between the load and the stmt's original
33690 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
33693 2014-06-18 Andreas Schwab <schwab@suse.de>
33695 PR rtl-optimization/54555
33696 * postreload.c (move2add_use_add2_insn): Substitute
33697 STRICT_LOW_PART only if it is cheaper.
33699 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
33701 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
33702 Do not use unspec as call operand. Use memory_operand instead of
33703 memory_nox32_operand and add "m" operand constraint. Disable
33704 pattern for TARGET_X32.
33705 (*sibcall_pop_memory): Ditto.
33706 (*sibcall_value_memory): Ditto.
33707 (*sibcall_value_pop_memory): Ditto.
33708 (sibcall peepholes): Merge SImode and DImode patterns using
33709 W mode iterator. Use memory_operand instead of memory_nox32_operand.
33710 Disable pattern for TARGET_X32. Check if eliminated register is
33711 really dead after call insn. Generate call RTX without unspec operand.
33712 (sibcall_value peepholes): Ditto.
33713 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
33714 instead of memory_nox32_operand. Check if eliminated register is
33715 really dead after call insn. Generate call RTX without unspec operand.
33716 (sibcall_value_pop peepholes): Ditto.
33717 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
33719 2014-06-18 Terry Guo <terry.guo@arm.com>
33722 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
33725 2014-06-18 Olivier Hainque <hainque@adacore.com>
33727 * tree-core.h (tree_block): Add an "end_locus" field, allowing
33728 memorization of the end of block source location.
33729 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
33730 * gimplify.c (gimplify_bind_expr): Propagate the block start and
33731 end source location info we have on the block entry/exit code we
33734 2014-06-18 Richard Biener <rguenther@suse.de>
33736 * common.opt (fssa-phiopt): New option.
33737 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
33739 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
33740 * doc/invoke.texi (-fssa-phiopt): Document.
33742 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33744 * genattrtab.c (n_bypassed): New variable.
33745 (process_bypasses): Initialise n_bypassed.
33746 Count number of bypassed reservations.
33747 (make_automaton_attrs): Allocate space for bypassed reservations
33748 rather than number of bypasses.
33750 2014-06-18 Richard Biener <rguenther@suse.de>
33752 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
33753 we propagated anything.
33754 (substitute_and_fold_dom_walker::before_dom_children): Something
33755 changed if we propagated into PHI arguments.
33756 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
33759 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
33761 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
33763 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
33764 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
33765 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
33766 Introduces alternative way of loads group permutaions.
33767 (vect_transform_grouped_load): Try alternative way of permutations.
33769 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33771 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
33772 changed in ORT_TARGET region, don't jump to do_outer.
33773 (struct gimplify_adjust_omp_clauses_data): New type.
33774 (gimplify_adjust_omp_clauses_1): Adjust for data being
33775 a struct gimplify_adjust_omp_clauses_data pointer instead
33776 of tree *. Pass pre_p as a new argument to
33777 lang_hooks.decls.omp_finish_clause hook.
33778 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
33779 splay_tree_foreach to pass both list_p and pre_p.
33780 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
33781 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
33782 gimplify_adjust_omp_clauses callers.
33783 * langhooks.c (lhd_omp_finish_clause): New function.
33784 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
33785 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
33786 * langhooks.h (struct lang_hooks_for_decls): Add a new
33787 gimple_seq * argument to omp_finish_clause hook.
33788 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
33789 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
33790 (scan_omp_parallel, lower_omp_for): When adding
33791 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
33792 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
33793 * tree-nested.c (convert_nonlocal_omp_clauses,
33794 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
33795 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
33797 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
33799 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
33800 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
33802 2014-06-17 Xinliang David Li <davidxl@google.com>
33804 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
33805 * passes.c (pass_init_dump_file): Do not set initialize
33806 flag to false unconditionally.
33808 2014-06-17 Richard Biener <rguenther@suse.de>
33810 * genopinit.c (main): Use vec<>::qsort method.
33811 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
33813 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
33815 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
33817 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
33818 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
33819 (mips_move_to_gpr_cost): Remove ST_REGS case.
33820 (mips_move_from_gpr_cost): Likewise.
33821 (mips_register_move_cost): Likewise.
33822 (mips_secondary_reload_class): Likewise.
33824 2014-06-17 Richard Biener <rguenther@suse.de>
33826 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
33827 (pass_all_optimizations): Move 3rd copy-prop pass from after
33828 fre to before ifcombine/phiopt.
33830 2014-06-17 Richard Biener <rguenther@suse.de>
33832 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
33833 and allow all blocks to be forwarders.
33835 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
33838 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
33839 variable 'size'; calculate 'size' right in the front; use
33840 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
33841 pcum->aapcs_stack_words.
33843 2014-06-17 Nick Clifton <nickc@redhat.com>
33845 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
33846 (umulhi3, mulsidi3, umulsidi3): Likewise.
33848 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
33850 PR middle-end/61508
33851 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
33852 check for section name.
33854 2014-06-17 Richard Biener <rguenther@suse.de>
33856 * tree-ssa-propagate.c: Include domwalk.h.
33857 (substitute_and_fold): Outline main worker into a domwalker ...
33858 (substitute_and_fold_dom_walker::before_dom_children): ... here.
33859 Schedule stmts we can fully propagate for removal. Remove
33861 (substitute_and_fold): Apply a dominator walk to perform
33862 substitution. Process stmts scheduled for removal here.
33864 2014-06-17 Richard Biener <rguenther@suse.de>
33866 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
33867 of PHI node moving.
33869 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
33871 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
33872 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
33873 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33874 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
33875 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
33877 (get_fpscr) : Likewise.
33879 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33881 PR rtl-optimization/61325
33882 * lra-constraints.c (valid_address_p): Add forward declaration.
33883 (simplify_operand_subreg): Check address validity before and after
33884 alter_reg of memory subreg.
33886 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
33888 * config/i386/i386.c (decide_alg): Correctly handle
33889 maximum size of stringop algorithm.
33891 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33893 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
33895 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33897 PR rtl-optimization/61522
33898 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
33900 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
33903 * symtab.c (symtab_node::reset_section): New method.
33904 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
33906 * cgraph.h (reset_section): Declare.
33907 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
33908 do not consider comdat locals.
33909 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
33911 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
33912 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
33913 reset sections of symbols dragged out of the comdats.
33914 (function_and_variable_visibility): Reset sections of
33917 2014-06-16 Richard Biener <rguenther@suse.de>
33919 PR tree-optimization/61482
33920 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
33921 [-INF(OVF), +INF(OVF)] range.
33923 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
33925 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
33926 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
33927 handling 32-bit multiplication.
33929 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
33931 PR middle-end/61430
33932 * lra-lives.c (process_bb_lives): Skip creating copy during
33933 insn scan when src/dest has constrained to same regno.
33935 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33937 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
33938 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
33940 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33942 * asan.c (check_func): New function.
33943 (maybe_create_ssa_name): Likewise.
33944 (build_check_stmt_with_calls): Likewise.
33945 (use_calls_p): Likewise.
33946 (report_error_func): Change interface.
33947 (build_check_stmt): Allow non-integer lengths; add support
33949 (asan_instrument): Likewise.
33950 (instrument_mem_region_access): Moved code to build_check_stmt.
33951 (instrument_derefs): Likewise.
33952 (instrument_strlen_call): Likewise.
33953 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
33954 * doc/invoke.texi: Describe new parameter.
33955 * params.def: Define new parameter.
33956 * params.h: Likewise.
33957 * sanitizer.def: Describe new builtins.
33959 2014-06-16 Richard Biener <rguenther@suse.de>
33961 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33962 Make all defs available at the end.
33963 (eliminate): If we remove a PHI node schedule cfg-cleanup.
33965 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33968 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
33970 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
33973 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
33974 initialization. Replace remaining use of uid.
33976 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33978 * c-family/c-common.c (handle_tls_model_attribute): Use
33979 set_decl_tls_model.
33980 * c-family/c-common.c (handle_tls_model_attribute): Use
33981 set_decl_tls_model.
33982 * cgraph.h (struct varpool_node): Add tls_model.
33983 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
33984 * tree.h (DECL_TLS_MODEL): Update.
33985 (DECL_THREAD_LOCAL_P): Check that variable is static.
33986 (decl_tls_model): Declare.
33987 (set_decl_tls_model): Declare.
33988 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
33989 set symbol prorperties.
33990 (get_emutls_init_templ_addr): Cleanup.
33991 (new_emutls_decl): Update.
33992 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
33993 (lto_input_varpool_node): Likewise.
33994 * lto-streamer-out.c (hash_tree): Likewise.
33995 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33996 not stream DECL_TLS_MODEL.
33997 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
33998 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
34000 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34002 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
34004 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34006 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
34007 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
34009 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
34010 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
34011 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
34012 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
34013 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
34014 (df_get_artificial_defs, df_get_artificial_uses)
34015 (df_single_def, df_single_use): Update accordingly.
34016 (df_refs_chain_dump): Take the first element in a linked list as
34017 parameter, rather than a pointer to an array of pointers.
34018 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
34019 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
34020 (df_chain_create_bb_process_use): Likewise.
34021 (df_md_bb_local_compute_process_def): Likewise.
34022 * fwprop.c (process_defs, process_uses): Likewise.
34023 (register_active_defs, update_uses): Likewise.
34024 (forward_propagate_asm): Update for new df_ref linking.
34025 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
34026 (df_null_ref_rec, df_null_mw_rec): Likewise.
34027 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
34029 (df_scan_free_bb_info): Remove check for null artificial_defs.
34030 (df_install_ref_incremental): Adjust for new df_ref linking.
34031 Use a single-element insertion rather than a full sort.
34032 (df_ref_chain_delete_du_chain): Take the first element
34033 in a linked list as parameter, rather than a pointer to an array of
34035 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
34036 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
34037 (df_insn_info_delete): Remove check for null defs and call to
34038 df_scan_free_mws_vec.
34039 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
34040 null rather than df_null_*_rec.
34041 (df_insn_rescan_debug_internal): Likewise, and update null
34042 checks in the same way. Remove check for null defs.
34043 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
34044 Move a single element rather doing a full sort.
34045 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
34047 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
34048 Initialize df_ref and df_mw_hardreg lists to null rather than
34050 (df_ref_compare): Take df_refs as parameter, transferring the
34051 old interface to...
34052 (df_ref_ptr_compare): ...this new function.
34053 (df_sort_and_compress_refs): Update accordingly.
34054 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
34055 old interface to...
34056 (df_mw_ptr_compare): ...this new function.
34057 (df_sort_and_compress_mws): Update accordingly.
34058 (df_install_refs, df_install_mws): Return a linked list rather than
34059 an array of pointers.
34060 (df_refs_add_to_chains): Assert that old lists are empty rather
34062 (df_insn_refs_verify): Don't handle null defs speciailly.
34063 * web.c (union_match_dups): Update for new df_ref linking.
34065 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34067 * df.h (df_ref_create, df_ref_remove): Delete.
34068 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
34069 (df_ref_remove): Likewise.
34071 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34073 * df.h (df_single_def, df_single_use): New functions.
34074 * ira.c (find_moveable_pseudos): Use them.
34076 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34078 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
34079 * df-problems.c (df_note_bb_compute): Use it.
34080 * regstat.c (regstat_bb_compute_ri): Likewise.
34082 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34084 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
34085 * cse.c (cse_extended_basic_block): Use them.
34086 * dce.c (mark_artificial_use): Likewise.
34087 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
34088 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34089 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
34090 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
34091 (df_simulate_initialize_backwards): Likewise.
34092 (df_simulate_finalize_backwards): Likewise.
34093 (df_simulate_initialize_forwards): Likewise.
34094 (df_md_simulate_artificial_defs_at_top): Likewise.
34095 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34096 * regrename.c (init_rename_info): Likewise.
34097 * regstat.c (regstat_bb_compute_ri): Likewise.
34098 (regstat_bb_compute_calls_crossed): Likewise.
34100 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34102 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
34103 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
34104 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
34105 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
34106 * combine.c (create_log_links): Likewise.
34107 * compare-elim.c (find_flags_uses_in_insn): Likewise.
34108 (try_eliminate_compare): Likewise.
34109 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
34110 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
34111 (remove_reg_equal_equiv_notes_for_defs): Likewise.
34112 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
34113 (word_dce_process_block, dce_process_block): Likewise.
34114 * ddg.c (def_has_ccmode_p): Likewise.
34115 * df-core.c (df_bb_regno_first_def_find): Likewise.
34116 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
34117 * df-problems.c (df_rd_simulate_one_insn): Likewise.
34118 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34119 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
34120 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
34121 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
34122 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
34123 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
34124 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
34125 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
34126 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34127 * fwprop.c (local_ref_killed_between_p): Likewise.
34128 (all_uses_available_at, free_load_extend): Likewise.
34129 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
34130 * hw-doloop.c (scan_loop): Likewise.
34131 * ifcvt.c (dead_or_predicable): Likewise.
34132 * init-regs.c (initialize_uninitialized_regs): Likewise.
34133 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
34134 (process_bb_node_lives): Likewise.
34135 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
34136 (find_moveable_pseudos): Likewise.
34137 * loop-invariant.c (check_dependencies, record_uses): Likewise.
34138 * recog.c (peep2_find_free_register): Likewise.
34139 * ree.c (get_defs): Likewise.
34140 * regstat.c (regstat_bb_compute_ri): Likewise.
34141 (regstat_bb_compute_calls_crossed): Likewise.
34142 * sched-deps.c (find_inc, find_mem): Likewise.
34143 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
34144 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
34145 * shrink-wrap.c (requires_stack_frame_p): Likewise.
34146 (prepare_shrink_wrap): Likewise.
34147 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
34148 * web.c (union_defs, pass_web::execute): Likewise.
34149 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
34150 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
34152 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
34154 * lra-assign.c (assign_by_spills): Add code to assign vector regs
34155 to inheritance pseudos.
34156 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
34158 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
34161 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
34162 (BU_MISC_2): Rename to ...
34163 (BU_LDBL128_2): ... this.
34164 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
34165 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
34166 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
34167 RS6000_BTM_LDBL128.
34168 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
34169 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
34170 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
34171 (unpacktf_1): Likewise.
34172 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
34173 (__builtin_longdouble_dw1): Likewise.
34174 * doc/sourcebuild.texi (longdouble128): Document.
34176 2014-06-13 Jeff Law <law@redhat.com>
34178 PR rtl-optimization/61094
34179 PR rtl-optimization/61446
34180 * ree.c (combine_reaching_defs): Get the mode for the copy from
34181 the extension insn rather than the defining insn.
34183 2014-06-13 Dehao Chen <dehao@google.com>
34185 * dwarf2out.c (add_linkage_name): Emit more linkage name.
34187 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
34189 * doc/install.texi (--enable-linker-plugin-configure-flags)
34190 (--enable-linker-plugin-flags): Document new flags.
34192 2014-06-13 Martin Jambor <mjambor@suse.cz>
34195 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
34196 cache_token if returning early.
34198 2014-06-13 Nick Clifton <nickc@redhat.com>
34200 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
34201 requested alignment is active.
34202 (LABEL_ALIGN): Likewise.
34203 (LOOP_ALIGN): Likewise.
34205 2014-06-13 Richard Biener <rguenther@suse.de>
34207 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34208 Rewrite to propagate the VN result into all uses where
34209 possible and to remove stmts becoming dead because of that.
34210 (eliminate): Generalize stmt removal handling, remove in
34211 reverse dominator order to support proper debug stmt
34212 generation. Update stmts before removing stmts.
34213 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
34215 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34217 PR tree-optimization/61375
34218 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
34219 symbolic number cannot be represented in an uint64_t.
34220 (find_bswap_or_nop_1): Likewise.
34222 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34224 * symtab.c (symtab_node::reset_section): New method.
34225 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34227 * cgraph.h (reset_section): Declare.
34228 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34229 do not consider comdat locals.
34230 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34232 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34233 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34234 reset sections of symbols dragged out of the comdats.
34235 (function_and_variable_visibility): Reset sections of
34238 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34240 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
34241 to use symtab and decl_binds_to_current_def_p
34242 * tree-vectorizer.c (increase_alignment): Increase alignment
34243 of alias target, too.
34245 2014-06-12 Jakub Jelinek <jakub@redhat.com>
34247 PR middle-end/61486
34248 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
34249 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
34250 if outer combined construct is distribute.
34251 (gimplify_omp_for): For OMP_DISTRIBUTE set
34252 gimplify_omp_ctxp->distribute.
34253 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
34254 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
34255 mapping into decl map.
34257 2014-06-12 Jason Merrill <jason@redhat.com>
34259 * common.opt (fabi-version): Change default to 0.
34261 2014-06-12 Jason Merrill <jason@redhat.com>
34263 * toplev.c (process_options): Reject -fabi-version=1.
34265 2014-06-12 Jeff Law <law@redhat.com>
34267 PR tree-optimization/61009
34268 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
34269 value when we stop processing a block due to problematic PHIs.
34271 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
34273 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
34274 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
34275 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
34276 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
34277 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
34278 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
34279 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
34280 are not in the spec.
34282 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
34285 * config/aarch64/aarch64-modes.def: Add V1DFmode.
34286 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
34289 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
34291 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
34293 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
34296 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
34297 loading from address spaces.
34299 2014-06-12 Martin Liska <mliska@suse.cz>
34302 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
34303 statement is reachable.
34305 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34307 * symtab.c (section_hash): New hash.
34308 (symtab_unregister_node): Clear section before freeing.
34309 (hash_section_hash_entry): New haser.
34310 (eq_sections): New function.
34311 (symtab_node::set_section_for_node): New method.
34312 (set_section_1): Update.
34313 (symtab_node::set_section): Take string instead of tree as parameter.
34314 (symtab_resolve_alias): Update.
34315 * cgraph.h (section_hash_entry_d): New structure.
34316 (section_hash_entry): New typedef.
34317 (cgraph_node): Change comdat_group_ to x_comdat_group,
34318 change section_ to x_section and turn into section_hash_entry;
34319 update accestors; put set_section_for_node offline.
34320 * tree.c (decl_section_name): Turn into string.
34321 (set_decl_section_name): Change parameter to be string.
34322 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
34323 * sdbout.c (sdbout_one_type): Update.
34324 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
34325 * varasm.c (IN_NAMED_SECTION, get_named_section,
34326 resolve_unique_section, hot_function_section, get_named_text_section,
34327 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
34328 make_decl_rtl, default_unique_section): Update.
34329 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
34330 (c6x_elf_unique_section): Update.
34331 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
34332 * config/pa/pa.c (pa_function_section): Update.
34333 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
34334 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
34335 * config/arc/arc.c (arc_in_small_data_p): Update.
34336 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
34337 * config/mcore/mcore.c (mcore_unique_section): Update.
34338 * config/mips/mips.c (mips16_build_function_stub): Update.
34339 (mips16_build_call_stub): Update.
34340 (mips_function_rodata_section): Update.
34341 (mips_in_small_data_p): Update.
34342 * config/score/score.c (score_in_small_data_p): Update.
34343 * config/rx/rx.c (rx_in_small_data): Update.
34344 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
34345 (rs6000_xcoff_asm_named_section): Update.
34346 (rs6000_xcoff_unique_section): Update.
34347 * config/frv/frv.c (frv_string_begins_with): Update.
34348 (frv_in_small_data_p): Update.
34349 * config/v850/v850.c (v850_encode_data_area): Update.
34350 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
34351 (bfin_handle_l1_data_attribute): Update.
34352 (bfin_handle_l2_attribute): Update.
34353 * config/mep/mep.c (mep_unique_section): Update.
34354 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
34356 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
34357 (h8300_handle_tiny_data_attribute): Update.
34358 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
34359 (m32r_in_small_data_p): Update.
34360 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
34361 * config/i386/i386.c (ix86_in_large_data_p): Update.
34362 * config/i386/winnt.c (i386_pe_unique_section): Update.
34363 * config/darwin.c (darwin_function_section): Update.
34364 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
34365 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34366 (new_emutls_decl): Update.
34367 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
34368 input_varpool_node): Update.
34369 (ead_string_cst): Turn to ...
34370 (read_string): ... this one.
34371 * dwarf2out.c (secname_for_decl): Update.
34372 * asan.c (asan_protect_global): Update.
34374 2014-06-11 DJ Delorie <dj@redhat.com>
34376 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
34378 * config/rx/rx.c (rx_option_override): Likewise.
34379 (rx_align_for_label): Likewise.
34381 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
34383 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
34385 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
34388 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34390 * common.md: New file.
34391 * doc/md.texi: Update description of generic, machine-independent
34393 * config/s390/constraints.md (e): Delete.
34394 * Makefile.in (md_file): Include common.md.
34395 * config/m32c/t-m32c (md_file): Likewise.
34396 * genpreds.c (general_mem): New array.
34397 (generic_constraint_letters): Remove constraints now defined by
34399 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34400 Allow the first character to be '<' or '>' as well.
34401 * genoutput.c (general_mem): New array.
34402 (indep_constraints): Remove constraints now defined by common.md.
34403 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34404 Remove special handling of 'm'.
34405 * ira-costs.c (record_reg_classes): Remove special handling of
34406 constraints now defined by common.md.
34407 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34408 * ira-lives.c (single_reg_class): Likewise.
34409 (ira_implicitly_set_insn_hard_regs): Likewise.
34410 * lra-constraints.c (reg_class_from_constraints): Likewise.
34411 (process_alt_operands, process_address, curr_insn_transform): Likewise.
34412 * postreload.c (reload_cse_simplify_operands): Likewise.
34413 * reload.c (push_secondary_reload, scratch_reload_class)
34414 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34415 * reload1.c (maybe_fix_stack_asms): Likewise.
34416 * targhooks.c (default_secondary_reload): Likewise.
34417 * stmt.c (parse_output_constraint): Likewise.
34418 * recog.c (preprocess_constraints): Likewise.
34419 (constrain_operands, peep2_find_free_register): Likewise.
34420 (asm_operand_ok): Likewise, but add a comment saying why 'o'
34421 must be handled specially.
34423 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34425 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
34426 * genpreds.c (have_const_dbl_constraints): Delete.
34427 (add_constraint): Don't set it.
34428 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
34429 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
34430 constraints using the lookup_constraint logic.
34431 * ira-lives.c (single_reg_class): Likewise.
34432 * ira.c (ira_setup_alts): Likewise.
34433 * lra-constraints.c (process_alt_operands): Likewise.
34434 * recog.c (asm_operand_ok, constrain_operands): Likewise.
34435 * reload.c (find_reloads): Likewise.
34437 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34439 * genpreds.c (const_int_start, const_int_end): New variables.
34440 (choose_enum_order): Output CONST_INT constraints before memory
34442 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
34444 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
34445 * ira.c (ira_setup_alts): Likewise.
34446 * lra-constraints.c (process_alt_operands): Likewise.
34447 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34448 * reload.c (find_reloads): Likewise.
34450 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34452 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
34453 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
34454 * recog.c (preprocess_constraints): Update accordingly.
34456 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34458 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
34459 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
34460 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
34461 * genpreds.c (print_type_tree): New function.
34462 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
34463 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
34464 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
34465 Write out enum constraint_type and get_constraint_type.
34466 * lra-constraints.c (satisfies_memory_constraint_p): Take a
34467 constraint_num rather than a constraint string.
34468 (satisfies_address_constraint_p): Likewise.
34469 (reg_class_from_constraints): Avoid old constraint macros.
34470 (process_alt_operands, process_address_1): Likewise.
34471 (curr_insn_transform): Likewise.
34472 * ira-costs.c (record_reg_classes): Likewise.
34473 (record_operand_costs): Likewise.
34474 * ira-lives.c (single_reg_class): Likewise.
34475 (ira_implicitly_set_insn_hard_regs): Likewise.
34476 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34477 * postreload.c (reload_cse_simplify_operands): Likewise.
34478 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34479 (constrain_operands, peep2_find_free_register): Likewise.
34480 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
34481 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34482 * reload1.c (maybe_fix_stack_asms): Likewise.
34483 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
34484 * targhooks.c (default_secondary_reload): Likewise.
34485 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
34486 to EXTRA_CONSTRAINT_STR.
34487 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
34489 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34491 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
34492 (write_constraint_satisfied_p_array): ...this new function.
34493 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
34495 (write_insn_preds_c): Update accordingly.
34497 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34499 * genpreds.c (write_lookup_constraint): Rename to...
34500 (write_lookup_constraint_1): ...this.
34501 (write_lookup_constraint_array): New function.
34502 (write_tm_preds_h): Define lookup_constraint as an inline function
34503 that uses write_lookup_constraint_array where possible.
34504 (write_insn_preds_c): Update for the changes above.
34506 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34508 * doc/md.texi (regclass_for_constraint): Rename to...
34509 (reg_class_for_constraint): ...this.
34510 * genpreds.c (num_constraints, enum_order, register_start)
34511 (register_end, satisfied_start, memory_start, memory_end)
34512 (address_start, address_end): New variables.
34513 (add_constraint): Count the number of constraints.
34514 (choose_enum_order): New function.
34515 (write_enum_constraint_num): Iterate over enum_order.
34516 (write_regclass_for_constraint): Rename to...
34517 (write_reg_class_for_constraint_1): ...this and update output
34519 (write_constraint_satisfied_p): Rename to...
34520 (write_constraint_satisfied_p_1): ...this and update output
34521 accordingly. Do nothing if all extra constraints are register
34523 (write_insn_extra_memory_constraint): Delete.
34524 (write_insn_extra_address_constraint): Delete.
34525 (write_range_function): New function.
34526 (write_tm_preds_h): Define constraint_satisfied_p and
34527 reg_class_for_constraint as inline functions that do a range check
34528 before calling the out-of-line function. Use write_range_function
34529 to implement insn_extra_{register,memory,address}_constraint,
34530 the first of which is new.
34531 (write_insn_preds_c): Update after above changes to write_* functions.
34532 (main): Call choose_enum_order.
34534 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
34536 PR tree-optimization/61306
34537 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
34538 expression instead of its size.
34539 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
34540 false to prevent optimization when the result is unpredictable due to
34541 arithmetic right shift of signed type with highest byte is set.
34542 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
34543 (init_symbolic_number): Likewise.
34544 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
34545 when the result is unpredictable due to sign extension.
34547 2014-06-11 Terry Guo <terry.guo@arm.com>
34549 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
34550 (*thumb1_addsi3): Ditto.
34551 (*thumb_subdi3): Ditto.
34552 (thumb1_subsi3_insn): Ditto.
34553 (*thumb_mulsi3): Ditto.
34554 (*thumb_mulsi3_v6): Ditto.
34555 (*thumb1_andsi3_insn): Ditto.
34556 (thumb1_bicsi3): Ditto.
34557 (*thumb1_iorsi3_insn): Ditto.
34558 (*thumb1_xorsi3_insn): Ditto.
34559 (*thumb1_ashlsi3): Ditto.
34560 (*thumb1_ashrsi3): Ditto.
34561 (*thumb1_lshrsi3): Ditto.
34562 (*thumb1_rotrsi3): Ditto.
34563 (*thumb1_negdi2): Ditto.
34564 (*thumb1_negsi2): Ditto.
34565 (*thumb1_abssi2): Ditto.
34566 (*thumb1_neg_abssi2): Ditto.
34567 (*thumb1_one_cmplsi2): Ditto.
34568 (*thumb1_zero_extendhisi2): Ditto.
34569 (*thumb1_zero_extendqisi2): Ditto.
34570 (*thumb1_zero_extendqisi2_v6): Ditto.
34571 (thumb1_extendhisi2): Ditto.
34572 (thumb1_extendqisi2): Ditto.
34573 (*thumb1_movdi_insn): Ditto.
34574 (*thumb1_movsi_insn): Ditto.
34575 (*thumb1_movhi_insn): Ditto.
34576 (thumb_movhi_clobber): Ditto.
34577 (*thumb1_movqi_insn): Ditto.
34578 (*thumb1_movhf): Ditto.
34579 (*thumb1_movsf_insn): Ditto.
34580 (*thumb_movdf_insn): Ditto.
34581 (movmem12b): Ditto.
34583 (cbranchqi4): Ditto.
34584 (cbranchsi4_insn): Ditto.
34585 (cbranchsi4_scratch): Ditto.
34586 (*negated_cbranchsi4): Ditto.
34587 (*tbit_cbranch): Ditto.
34588 (*tlobits_cbranch): Ditto.
34589 (*tstsi3_cbranch): Ditto.
34590 (*cbranchne_decr1): Ditto.
34591 (*addsi3_cbranch): Ditto.
34592 (*addsi3_cbranch_scratch): Ditto.
34593 (*thumb_cmpdi_zero): Ditto.
34594 (cstoresi_eq0_thumb1): Ditto.
34595 (cstoresi_ne0_thumb1): Ditto.
34596 (*cstoresi_eq0_thumb1_insn): Ditto.
34597 (*cstoresi_ne0_thumb1_insn): Ditto.
34598 (cstoresi_nltu_thumb1): Ditto.
34599 (cstoresi_ltu_thumb1): Ditto.
34600 (thumb1_addsi3_addgeu): Ditto.
34601 (*thumb_jump): Ditto.
34602 (*call_reg_thumb1_v5): Ditto.
34603 (*call_reg_thumb1): Ditto.
34604 (*call_value_reg_thumb1_v5): Ditto.
34605 (*call_value_reg_thumb1): Ditto.
34606 (*call_insn): Ditto.
34607 (*call_value_insn): Ditto.
34608 (thumb1_casesi_internal_pic): Ditto.
34609 (thumb1_casesi_dispatch): Ditto.
34610 (*thumb1_indirect_jump): Ditto.
34611 (prologue_thumb1_interwork): Ditto.
34612 (*epilogue_insns): Ditto.
34613 (consttable_1): Ditto.
34614 (consttable_2): Ditto.
34615 (tablejump): Ditto.
34616 (*thumb1_tablejump): Ditto.
34617 (thumb_eh_return): Ditto.
34618 (define_peephole2): Two of them are thumb1 only and got moved into
34619 new file thumb1.md.
34620 (define_split): Six of them are thumb1 only and got moved into new
34622 * config/arm/thumb1.md: New file comprised of above thumb1 only
34625 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34627 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
34628 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
34630 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
34631 (aarch64_crc_builtin_datum): New struct.
34632 (aarch64_crc_builtin_data): New.
34633 (aarch64_init_crc32_builtins): New function.
34634 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
34635 (aarch64_crc32_expand_builtin): New.
34636 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
34637 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
34638 __ARM_FEATURE_CRC32 when appropriate.
34639 (TARGET_CRC32): Define.
34640 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
34641 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
34642 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
34643 (aarch64_<crc_variant>): New pattern.
34644 * config/aarch64/arm_acle.h: New file.
34645 * config/aarch64/iterators.md (CRC): New int iterator.
34646 (crc_variant, crc_mode): New int attributes.
34647 * doc/aarch64-acle-intrinsics.texi: New file.
34648 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
34649 Include aarch64-acle-intrinsics.texi.
34651 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
34653 * tree-vect-data-refs.c (vect_grouped_store_supported): New
34654 check for stores group of length 3.
34655 (vect_permute_store_chain): New permutations for stores group of
34657 * tree-vect-stmts.c (vect_model_store_cost): Change cost
34658 of vec_perm_shuffle for the new permutations.
34660 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34662 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
34663 table rewriting temporarily on targets not supporting ONE_ONLY.
34665 2014-06-11 Richard Biener <rguenther@suse.de>
34667 PR middle-end/61437
34669 2014-06-04 Richard Biener <rguenther@suse.de>
34671 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34672 TREE_PUBLIC and DECL_EXTERNAL decls.
34674 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34676 * varasm.c (set_implicit_section): New function.
34677 (resolve_unique_section): Use it to set implicit section
34679 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
34680 (default_function_section): Likewise.
34681 (decl_binds_to_current_def_p): Constify argument.
34682 * varasm.h (decl_binds_to_current_def_p): Update prototype.
34683 * asan.c (asan_protect_global): Use
34684 symtab_get_node (decl)->implicit_section.
34685 * symtab.c (dump_symtab_base): Dump implicit sections.
34686 (verify_symtab_base): Verify sanity of sectoins and comdats.
34687 (symtab_resolve_alias): Alias share the section of its target.
34688 (set_section_1): New function.
34689 (symtab_node::set_section): Move here, recurse to aliases.
34690 (verify_symtab): Check for duplicated symtab lists.
34691 * tree-core.h (implicit_section_name_p): Remove.
34692 * tree-vect-data-refs.c: Include varasm.h.
34693 (vect_can_force_dr_alignment_p): Fix conditional on when
34694 decl bints to current definition; use
34695 symtab_get_node (decl)->implicit_section.
34696 * cgraph.c (cgraph_make_node_local_1): Fix section set.
34697 * cgraph.h (struct symtab_node): Add implicit_section.
34698 (set_section): Rename to ...
34699 (set_section_for_node): ... this one.
34700 (set_section): Declare.
34701 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
34702 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
34703 input_overwrite_node, input_varpool_node): Stream implicit_section.
34704 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
34705 removal; it will fail in LTO.
34707 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34709 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
34710 Change second alternative type to f_mcr.
34711 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
34712 and 12th alternatives' types to f_mcr and f_mrc.
34713 (*movdi_aarch64): Same for 12th and 13th alternatives.
34714 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
34715 (aarch64_movtilow_tilow): Change type to fmov.
34717 2014-06-10 Jiong Wang <jiong.wang@arm.com>
34719 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
34720 (aarch64_save_or_restore_callee_save_registers): Fix layout.
34722 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34724 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
34726 (aarch64_sqrdmulh_lane<mode>): Likewise.
34727 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34728 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34729 (aarch64_sqdmulh_laneq<mode>): New expander.
34730 (aarch64_sqrdmulh_laneq<mode>): Likewise.
34731 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
34732 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
34733 (aarch64_sqdmulh_lane<mode>): New expander.
34734 (aarch64_sqrdmulh_lane<mode>): Likewise.
34735 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34736 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34737 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
34738 (aarch64_sqdmlal_laneq<mode>): Likewise.
34739 (aarch64_sqdmlsl_lane<mode>): Likewise.
34740 (aarch64_sqdmlsl_laneq<mode>): Likewise.
34741 (aarch64_sqdmlal2_lane<mode>): Likewise.
34742 (aarch64_sqdmlal2_laneq<mode>): Likewise.
34743 (aarch64_sqdmlsl2_lane<mode>): Likewise.
34744 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
34745 (aarch64_sqdmull_lane<mode>): Likewise.
34746 (aarch64_sqdmull_laneq<mode>): Likewise.
34747 (aarch64_sqdmull2_lane<mode>): Likewise.
34748 (aarch64_sqdmull2_laneq<mode>): Likewise.
34750 2014-06-10 Richard Biener <rguenther@suse.de>
34752 PR tree-optimization/61438
34753 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
34754 (eliminate_dom_walker::before_dom_children): Only try to inhibit
34755 insertion of IVs if running PRE.
34756 (eliminate): Adjust.
34757 (pass_pre::execute): Likewise.
34758 (pass_fre::execute): Likewise.
34760 2014-06-10 Richard Biener <rguenther@suse.de>
34762 PR middle-end/61456
34763 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
34764 Do not use the main variant for the type comparison.
34765 (ncr_compar): Likewise.
34766 (nonoverlapping_component_refs_p): Likewise.
34768 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
34770 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
34771 REG_CFA_RESTORE mode.
34773 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
34775 * config/i386/i386.c (expand_vec_perm_pblendv): New.
34776 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
34777 expand_vec_perm_pblendv.
34779 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34781 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
34783 Simplify description of __crc32d and __crc32cd intrinsics.
34784 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
34787 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
34790 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
34791 * config.in: Regenerate.
34792 * configure: Likewise.
34794 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34796 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
34798 (intersect_static_var_sets): Remove.
34799 (propagate): Do not prune local statics.
34801 2014-06-10 Jakub Jelinek <jakub@redhat.com>
34804 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
34805 Set lastprivate_firstprivate even if omp_private_outer_ref
34806 langhook returns true.
34807 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
34808 langhook, call unshare_expr on new_var and call
34809 build_outer_var_ref to get the last argument.
34811 2014-06-10 Marek Polacek <polacek@redhat.com>
34814 * doc/extend.texi: Add cindex for transparent_union.
34816 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34818 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
34819 init_symbolic_number ().
34821 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
34823 PR middle-end/61141
34824 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
34825 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
34826 (verify_rtl_sharing): Likewise.
34828 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
34831 * tree.c (build_qualified_type): Use a canonical type for
34834 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34836 * config/arm/arm-modes.def: Remove XFmode.
34838 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
34841 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
34842 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
34843 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
34844 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
34845 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
34846 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
34847 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
34848 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
34849 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
34851 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
34853 * tree-core.h (tree_decl_with_vis): Remove section_name.
34855 2014-06-09 Kito Cheng <kito@0xlab.org>
34857 * ira.c (ira): Don't call init_caller_save if LRA enabled
34858 since LRA use its own infrastructure to handle that.
34860 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34862 * symtab.c (dump_symtab_base): Update dumping.
34863 (symtab_make_decl_local): Clear only DECL_COMDAT.
34864 * tree-vect-data-refs.c (Check that variable is static before
34865 tampering with sections.
34866 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
34867 (cgraph_create_virtual_clone): Likewise.
34868 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
34869 (decl_section_name, set_decl_section_name): New accessors.
34870 (find_decls_types_r): Do not walk section name
34871 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
34872 (decl_comdat_group, decl_comdat_group_id): Constify.
34873 (decl_section_name, set_decl_section_name): Update.
34874 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
34875 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
34876 (cgraph_make_node_local_1): Clear section and comdat group.
34877 * cgraph.h (set_comdat_group): Sanity check.
34878 (get_section, set_section): New.
34879 * ipa-comdats.c (ipa_comdats): Use get_section.
34880 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
34881 * lto-streamer-out.c: Do not follow section names.
34882 * c-family/c-common.c (handle_section_attribute): Update.
34883 * lto-cgraph.c (lto_output_node): Output section.
34884 (lto_output_varpool_node): Likewise.
34885 (read_comdat_group): Rename to ...
34886 (read_identifier): ... this one.
34887 (read_string_cst): New function.
34888 (input_node, input_varpool_node): Input section names.
34889 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34890 (new_emutls_decl): Update.
34891 (secname_for_decl): Check section names only of static vars.
34892 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
34893 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
34894 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34895 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34896 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
34897 * config/mcore/mcore.c (mcore_unique_section): Likewise.
34898 * config/mips/mips.c (mips16_build_function_stub): Likewise.
34899 * config/v850/v850.c (v850_insert_attributes): Likewise.
34900 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
34902 (h8300_handle_tiny_data_attribute): Likewise.
34903 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
34904 (bfin_handle_l2_attribute): Likewise.
34906 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34908 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
34909 remove static initializer.
34911 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34913 * varasm.c (use_blocks_for_decl_p): Check symbol table
34914 instead of alias attribute.
34915 (place_block_symbol): Recurse on aliases.
34917 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34919 * ipa-visibility.c: Include varasm.h
34920 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
34922 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34924 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
34925 outputting aliases.
34927 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
34929 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
34930 from test_insn into GGC space escape via SET_SRC.
34932 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
34934 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
34935 call statement, if any.
34936 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
34937 statements, if any. Tidy up.
34939 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34942 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
34943 iterators, VSX_D that handles 64-bit types, and VSX_LE that
34944 handles swapping the two 64-bit double words on little endian
34945 systems. Include V1TImode and optionally TImode in VSX_LE so that
34946 these types are properly swapped. Change all of the insns and
34947 splits that do the 64-bit swaps to use VSX_LE.
34948 (vsx_le_perm_load_<mode>): Likewise.
34949 (vsx_le_perm_store_<mode>): Likewise.
34950 (splitters for little endian memory operations): Likewise.
34951 (vsx_xxpermdi2_le_<mode>): Likewise.
34952 (vsx_lxvd2x2_le_<mode>): Likewise.
34953 (vsx_stxvd2x2_le_<mode>): Likewise.
34955 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
34958 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
34959 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
34960 and corresponding splitters. Zero extend general register
34961 or memory input operand to XMM temporary. Enable for
34962 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
34963 (floatunssi<mode>2): Update expander predicate.
34965 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
34967 PR rtl-optimization/61325
34968 * lra-constraints.c (process_address_1): Check scale equal to one
34969 to prevent transformation: base + scale * index => base + new_reg.
34971 2014-06-06 Richard Biener <rguenther@suse.de>
34973 PR tree-optimization/59299
34974 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
34976 (nearest_common_dominator_of_uses): Likewise.
34977 (statement_sink_location): Adjust. Support sinking loads.
34979 2014-06-06 Martin Jambor <mjambor@suse.cz>
34981 * ipa-prop.c (get_place_in_agg_contents_list): New function.
34982 (build_agg_jump_func_from_list): Likewise.
34983 (determine_known_aggregate_parts): Renamed to
34984 determine_locally_known_aggregate_parts. Moved some functionality
34985 to the two functions above, removed bound checks.
34987 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
34989 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
34990 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
34991 (aarch64_progress_pointer): Likewise.
34992 (aarch64_copy_one_part_and_move_pointers): Likewise.
34993 (aarch64_expand_movmen): Likewise.
34994 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
34995 * config/aarch64/aarch64.md (movmem<mode>): New.
34997 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
34999 * targhooks.c (default_add_stmt_cost): Call target specific
35000 hook instead of default one.
35002 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35004 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
35005 endianness instead of host endianness.
35006 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
35009 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35012 * function.c (instantiate_decls): Process the saved static chain.
35013 (expand_function_start): If not optimizing, save the static chain
35015 * tree-nested.c (convert_all_function_calls): Always create the static
35016 chain for nested functions if not optimizing.
35018 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35020 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
35022 2014-06-06 Richard Biener <rguenther@suse.de>
35024 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
35025 (construct_init_block): Likewise.
35026 (construct_exit_block): Likewise.
35027 (pass_expand::execute): Likewise.
35028 * graphite.c (graphite_transforms): Replace check for current_loops
35029 with a check for > 1 loops.
35030 (pass_graphite_transforms::execute): Adjust.
35031 * ipa-split.c (split_function): Remove check for current_loops.
35032 * omp-low.c (expand_parallel_call): Likewise.
35033 (expand_omp_for_init_counts): Likewise.
35034 (extract_omp_for_update_vars): Likewise.
35035 (expand_omp_for_generic): Likewise.
35036 (expand_omp_sections): Likewise.
35037 (expand_omp_target): Likewise.
35038 * tracer.c (tail_duplicate): Likewise.
35039 (pass_tracer::execute): Likewise.
35040 * trans-mem.c (expand_transaction): Likewise.
35041 * tree-complex.c (expand_complex_div_wide): Likewise.
35042 * tree-eh.c (lower_resx): Likewise.
35043 (cleanup_empty_eh_merge_phis): Likewise.
35044 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
35045 current_loops with a check for > 1 loops.
35046 (pass_predcom::execute): Adjust.
35047 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
35048 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
35049 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
35050 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
35051 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
35052 * tree-switch-conversion.c (process_switch): Likewise.
35053 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
35054 * tree-vrp.c (vrp_visit_phi_node): Likewise.
35055 (execute_vrp): Likewise.
35056 * ubsan.c (ubsan_expand_null_ifn): Likewise.
35058 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35060 * rtl.h (insn_location): Declare.
35061 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
35062 with UNKNOWN_LOCATION.
35063 * emit-rtl.c (insn_location): New function.
35064 * final.c (notice_source_line): Check that the instruction has a
35065 location before retrieving it and use insn_location.
35066 * modulo-sched.c (loop_single_full_bb_p): Likewise.
35067 * print-rtl.c (print_rtx): Likewise.
35069 2014-06-06 Richard Biener <rguenther@suse.de>
35071 * passes.def: Move 2nd VRP pass before phi-only-cprop.
35073 2014-06-06 Christian Bruel <christian.bruel@st.com>
35075 PR tree-optimization/43934
35076 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
35079 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
35081 * ira-lives.c (single_reg_class): Add missing break. Explicitly
35082 return NO_REGS for extra address and memory constraints. Handle
35083 operands that match (or are equivalent to something that matches)
35084 extra constant constraints. Ignore other non-register operands.
35086 2014-06-06 Alan Modra <amodra@gmail.com>
35089 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
35090 * doc/tm.texi: Regenerate.
35091 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
35092 Use throughout in place of REG_PARM_STACK_SPACE.
35093 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
35094 "incoming" param. Pass to rs6000_function_parms_need_stack.
35095 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
35096 prototype_p when incoming. Use function decl when incoming
35097 to handle K&R style functions.
35098 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
35099 (INCOMING_REG_PARM_STACK_SPACE): Define.
35101 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35104 * cfgexpand.c (expand_debug_expr): Use address space of nested
35105 TREE_TYPE for ADDR_EXPR and MEM_REF.
35107 2014-06-05 Jeff Law <law@redhat.com>
35109 PR tree-optimization/61289
35110 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
35111 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
35112 looking for those which match LHS. All callers changed.
35113 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
35114 parameters and code which manipulated them. All callers changed.
35115 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
35116 and DST_MAP parameters. Simplify invalidation code by just calling
35117 invalidate_equivalences. All callers changed.
35118 (thread_across_edge): Simplify now that we don't need to maintain
35119 the map of equivalences to invalidate.
35121 2014-06-05 Kai Tietz <ktietz@redhat.com>
35122 Richard Henderson <rth@redhat.com>
35125 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
35126 checking for !TARGET_X32.
35127 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
35128 (sibcall_intern): New define_insn, plus required peepholes.
35129 (sibcall_pop_intern): Likewise.
35130 (sibcall_value_intern): Likewise.
35131 (sibcall_value_pop_intern): Likewise.
35133 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
35135 * tree-inline.c (tree_function_versioning): Check DF info existence
35136 before accessing it.
35138 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35140 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
35142 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
35143 aarch64_frame hard_fp_offset and frame_size.
35144 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
35145 frame_size; remove original_frame_size.
35146 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
35147 (aarch64_initial_elimination_offset): Remove frame_size and
35148 offset. Use aarch64_frame frame_size.
35150 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35151 Jiong Wang <jiong.wang@arm.com>
35152 Renlin <renlin.li@arm.com>
35154 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
35155 initialization of R30 offset. Update offset. Iterate core
35156 regisers upto X30. Remove X29, X30 specific code.
35158 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35159 Jiong Wang <jiong.wang@arm.com>
35161 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
35162 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
35163 (aarch64_register_saved_on_entry): Adjust test.
35165 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35167 * config/aarch64/aarch64.h (machine_function): Move
35168 saved_varargs_size from here...
35169 (aarch64_frame): ... to here.
35171 * config/aarch64/aarch64.c (aarch64_expand_prologue)
35172 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
35173 (aarch64_initial_elimination_offset)
35174 (aarch64_setup_incoming_varargs): Adjust location of
35175 saved_varargs_size.
35177 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35179 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
35182 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
35183 Prachi Godbole <Prachi.Godbole@imgtec.com>
35185 * config/mips/mips-cpus.def: Add definition for p5600. Updated
35186 mips32r5 entry to use PROCESSOR_P5600.
35187 * config/mips/mips-tables.opt: Regenerate.
35188 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
35189 * config/mips/mips.c (mips_fmadd_bypass): New function.
35190 (mips_rtx_cost_data): Add costs for p5600.
35191 (mips_issue_rate): Add support for p5600.
35192 (mips_multipass_dfa_lookahead): Likewise.
35193 * config/mips/mips.h (TUNE_P5600): New define.
35194 (TUNE_MACC_CHAINS): Add TUNE_P5600.
35195 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
35196 * config/mips/mips.md: Include p5600.md.
35197 (processor): Add p5600.
35198 * config/mips/p5600.md: New file.
35200 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
35202 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
35203 * config/i386/predicates.md (palignr_operand): New.
35204 Indicates if permutation is suitable for palignr instruction.
35206 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
35208 PR tree-optimization/61319
35209 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
35210 stmt belongs to loop.
35212 2014-06-05 Richard Biener <rguenther@suse.de>
35214 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
35215 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
35216 (lookup_tmp_var): Adjust.
35217 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
35219 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35221 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
35223 2014-06-05 Marek Polacek <polacek@redhat.com>
35226 * doc/invoke.texi: Document -Wlogical-not-parentheses.
35228 2014-06-04 Tom de Vries <tom@codesourcery.com>
35230 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
35233 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
35235 PR tree-optimization/61385
35236 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
35238 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
35240 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
35241 changed to use fatal_error.
35242 (main): Ensure lto_wrapper_cleanup is run atexit.
35244 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35246 * lra-constraints.c (valid_address_p): Move earlier in file.
35247 (address_eliminator): New structure.
35248 (satisfies_memory_constraint_p): New function.
35249 (satisfies_address_constraint_p): Likewise.
35250 (process_alt_operands, process_address, curr_insn_transform): Use them.
35252 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35254 * lra-int.h (lra_static_insn_data): Make operand_alternative a
35256 (target_lra_int, default_target_lra_int, this_target_lra_int)
35257 (op_alt_data): Delete.
35258 * lra.h (lra_init): Delete.
35259 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
35260 (init_insn_code_data_once): Remove op_alt_data handling.
35261 (finish_insn_code_data_once): Likewise.
35262 (init_op_alt_data): Delete.
35263 (get_static_insn_data): Initialize operand_alternative to null.
35264 (free_insn_recog_data): Cast operand_alternative before freeing it.
35265 (setup_operand_alternative): Take the operand_alternative as
35266 parameter and assume it isn't already cached in the static
35268 (lra_set_insn_recog_data): Update accordingly.
35269 (lra_init): Delete.
35270 * ira.c (ira_init): Don't call lra_init.
35271 * target-globals.h (this_target_lra_int): Declare.
35272 (target_globals): Remove lra_int.
35273 (restore_target_globals): Update accordingly.
35274 * target-globals.c: Don't include lra-int.h.
35275 (default_target_globals, save_target_globals): Remove lra_int.
35277 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35279 * recog.h (operand_alternative): Convert reg_class, reject,
35280 matched and matches into bitfields.
35281 (preprocess_constraints): New overload.
35282 (preprocess_insn_constraints): New function.
35283 (preprocess_constraints): Take the insn as parameter.
35284 (recog_op_alt): Change into a pointer.
35285 (target_recog): Add x_op_alt.
35286 * recog.c (asm_op_alt): New variable.
35287 (recog_op_alt): Change into a pointer.
35288 (preprocess_constraints): New overload, replacing the old function
35289 definition with one that doesn't use global state.
35290 (preprocess_insn_constraints): New function.
35291 (preprocess_constraints): Use them. Take the insn as parameter.
35292 Use asm_op_alt for asms.
35293 (recog_init): Free existing x_op_alt entries.
35294 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
35296 (make_early_clobber_and_input_conflicts): Likewise.
35297 (process_bb_node_lives): Pass the insn to process_constraints.
35298 * reg-stack.c (check_asm_stack_operands): Likewise.
35299 (subst_asm_stack_regs): Likewise.
35300 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35301 * regrename.c (build_def_use): Likewise.
35302 * sched-deps.c (sched_analyze_insn): Likewise.
35303 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
35304 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35305 (note_invalid_constants): Likewise.
35306 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35307 (ix86_legitimate_combined_insn): Make operand_alternative pointer
35310 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35312 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
35313 * ira-lives.c (check_and_make_def_conflict): Check for disabled
35315 (make_early_clobber_and_input_conflicts): Likewise.
35316 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35318 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35320 * recog.h (alternative_class): New function.
35321 (which_op_alt): Return a const recog_op_alt.
35322 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
35323 (subst_asm_stack_regs): Likewise.
35324 * config/arm/arm.c (note_invalid_constants): Likewise.
35325 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
35326 the operand_alternative; use alternative class instead.
35327 * sel-sched.c (get_reg_class): Likewise.
35328 * regrename.c (build_def_use): Likewise.
35329 (hide_operands, restore_operands, record_out_operands): Update type
35332 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35334 * recog.h (recog_op_alt): Convert to a flat array.
35335 (which_op_alt): New function.
35336 * recog.c (recog_op_alt): Convert to a flat array.
35337 (preprocess_constraints): Update accordingly, grouping all
35338 operands of the same alternative together, rather than the
35340 * ira-lives.c (check_and_make_def_conflict): Likewise.
35341 (make_early_clobber_and_input_conflicts): Likewise.
35342 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35343 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
35344 (subst_asm_stack_regs): Likewise.
35345 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35346 * regrename.c (hide_operands, record_out_operands): Likewise.
35347 (build_def_use): Likewise.
35348 * sel-sched.c (get_reg_class): Likewise.
35349 * config/arm/arm.c (note_invalid_constants): Likewise.
35351 2014-06-04 Jason Merrill <jason@redhat.com>
35355 * gimplify.c (gimplify_arg): Non-static.
35356 * gimplify.h: Declare it.
35358 2014-06-04 Richard Biener <rguenther@suse.de>
35360 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
35361 TREE_PUBLIC and DECL_EXTERNAL decls.
35363 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
35365 * regcprop.c (copyprop_hardreg_forward_1): Account for
35366 HARD_REGNO_CALL_PART_CLOBBERED.
35368 2014-06-04 Richard Biener <rguenther@suse.de>
35370 * configure.ac: Check whether the underlying type of int64_t
35371 is long or long long.
35372 * configure: Regenerate.
35373 * config.in: Likewise.
35374 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
35375 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35377 2014-06-04 Richard Biener <rguenther@suse.de>
35379 PR tree-optimization/60098
35380 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
35382 (dse_optimize_stmt): Simplify, now that we found a kill
35385 2014-06-04 Richard Biener <rguenther@suse.de>
35387 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
35388 of accesses with non-invariant address.
35390 2014-06-04 Martin Liska <mliska@suse.cz>
35392 * cgraph.h (cgraph_make_wrapper): New function introduced.
35393 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
35394 * ipa-inline.h (inline_analyze_function): The function is global.
35395 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
35397 2014-06-04 Martin Liska <mliska@suse.cz>
35399 * tree.h (private_lookup_attribute_starting): New function.
35400 (lookup_attribute_starting): Likewise.
35401 * tree.c (private_lookup_attribute_starting): Likewise.
35403 2014-06-04 Martin Liska <mliska@suse.cz>
35405 * cgraph.h (expand_thunk): New argument added.
35406 (address_taken_from_non_vtable_p): New global function.
35407 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
35408 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
35409 * cgraphunit.c (analyze_function): Likewise.
35410 (assemble_thunks_and_aliases): Argument added to call.
35411 (expand_thunk): New argument forces to produce GIMPLE thunk.
35413 2014-06-04 Martin Liska <mliska@suse.cz>
35415 * coverage.h (coverage_compute_cfg_checksum): Argument added.
35416 * coverage.c (coverage_compute_cfg_checksum): Likewise.
35417 * profile.c (branch_prob): Likewise.
35419 2014-06-04 Martin Jambor <mjambor@suse.cz>
35422 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
35423 handler for switch on an ipa_ref_use enum.
35424 * ipa-reference.c (analyze_function): Likewise.
35426 2014-06-04 Kai Tietz <ktietz@redhat.com>
35428 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
35429 from old call-instruction.
35431 2014-06-04 Bin Cheng <bin.cheng@arm.com>
35433 * config/aarch64/aarch64.c (aarch64_classify_address)
35434 (aarch64_legitimize_reload_address): Support full addressing modes
35436 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
35437 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
35439 2014-06-03 Andrew Pinski <apinski@cavium.com>
35441 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
35444 2014-06-03 Andrew Pinski <apinski@cavium.com>
35446 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
35447 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
35449 2014-06-03 Kai Tietz <ktietz@redhat.com>
35451 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
35454 2014-06-03 Dehao Chen <dehao@google.com>
35456 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
35459 2014-06-03 Marek Polacek <polacek@redhat.com>
35462 * doc/invoke.texi: Document -Wswitch-bool.
35463 * function.c (stack_protect_epilogue): Cast controlling expression of
35465 * gengtype.c (walk_type): Generate switch expression with its
35466 controlling expression cast to int.
35468 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
35470 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
35472 * config/avr/avr-tables.opt: Regenerate.
35473 * config/avr/t-multilib: Regenerate.
35474 * doc/avr-mmcu.texi: Regenerate.
35476 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
35477 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35479 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
35480 (ata6617c, ata664251): Add new avr35 devices.
35481 (ata6612c): Add new avr4 device.
35482 (ata6613c, ata6614q): Add new avr5 devices.
35483 * config/avr/avr-tables.opt: Regenerate.
35484 * config/avr/t-multilib: Regenerate.
35485 * doc/avr-mmcu.texi: Regenerate.
35487 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35489 * gcc/config/aarch64/aarch64-builtins.c
35490 (aarch64_types_binop_ssu_qualifiers): New static data.
35491 (TYPES_BINOP_SSU): Define.
35492 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
35493 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
35494 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
35495 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
35496 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
35497 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
35498 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
35499 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
35500 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
35501 suffix to builtin function name, remove cast.
35502 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
35503 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
35504 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
35506 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35508 * gcc/config/aarch64/aarch64-builtins.c
35509 (aarch64_types_binop_uus_qualifiers,
35510 aarch64_types_shift_to_unsigned_qualifiers,
35511 aarch64_types_unsigned_shiftacc_qualifiers): Define.
35512 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
35513 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
35514 sqshlu_n, uqshl_n): Update qualifiers.
35515 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
35516 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
35517 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
35518 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
35519 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
35520 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
35521 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
35522 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
35523 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
35524 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
35525 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
35526 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
35527 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
35528 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
35529 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
35530 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
35531 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
35532 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
35533 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
35534 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
35535 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
35536 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
35537 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
35538 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
35539 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
35540 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
35541 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
35543 2014-06-03 Teresa Johnson <tejohnson@google.com>
35545 * tree-sra.c (modify_function): Record caller nodes after rebuild.
35547 2014-06-02 Jason Merrill <jason@redhat.com>
35550 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
35552 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35554 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
35557 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35559 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
35561 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
35562 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
35563 * config/aarch64/iterators.md (REVERSE): New iterator.
35564 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
35565 (rev_op): New int_attribute.
35566 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
35567 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
35568 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
35569 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
35570 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
35571 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
35572 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
35573 Replace temporary __asm__ with __builtin_shuffle.
35575 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35577 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
35579 * config/mips/mips-tables.opt: Regenerate.
35580 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
35581 to use mips_isa_rev rather than ISA_MIPS32R2.
35582 * config/mips/mips.h (ISA_MIPS32R3): New define.
35583 (ISA_MIPS32R5): New define.
35584 (ISA_MIPS64R3): New define.
35585 (ISA_MIPS64R5): New define.
35586 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
35587 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
35588 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
35590 (MIPS_ISA_SYNCI_SPEC): Likewise.
35591 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
35592 (LINK_SPEC): Added mips32r3 and mips32r5.
35593 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
35594 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
35595 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
35596 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
35597 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
35598 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
35599 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
35601 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35603 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
35605 * config/mips/mips.opt (mxpa): New option.
35606 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35609 2014-06-03 Martin Jambor <mjambor@suse.cz>
35612 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
35615 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
35617 PR tree-optimization/61328
35618 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
35619 initialization from find_bswap_or_nop_1.
35620 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
35621 in source_expr2 before using the size value the function sets. Also
35622 make use of init_symbolic_number () in both the old place and
35623 find_bswap_or_nop_load () to avoid reading uninitialized memory when
35624 doing recursion in the GIMPLE_BINARY_RHS case.
35626 2014-06-03 Richard Biener <rguenther@suse.de>
35628 PR tree-optimization/61383
35629 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
35632 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
35634 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
35635 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
35636 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
35637 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
35639 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
35640 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
35641 * system.h: ...here and make it unconditional.
35642 * target.def (conditional_register_usage): Mention
35643 define_register_constraint instead of old-style constraint macros.
35644 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
35645 * doc/tm.texi: Regenerate.
35646 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
35647 protected by !USE_MD_CONSTRAINTS.
35648 * config/frv/frv.md: Remove quote from old version of documentation.
35649 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
35650 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
35651 CONST_DOUBLE_OK_FOR_LETTER.
35652 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
35654 2014-06-02 Andrew Pinski <apinski@cavium.com>
35656 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
35657 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
35658 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
35659 file whose name depends on -mabi= and -mbig-endian.
35660 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
35661 Handle LP64 better and handle ilp32 too.
35662 (MULTILIB_OPTIONS): Delete.
35663 (MULTILIB_DIRNAMES): Delete.
35665 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
35667 * expr.h: Remove prototypes of functions defined in builtins.c.
35668 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
35669 Remove prototypes of functions defined in builtins.c.
35670 * builtins.h: Update prototype list to include all exported functions.
35671 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
35672 no_c99_libc_has_function): Move to targhooks.c
35673 (build_string_literal, build_call_expr_loc_array,
35674 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
35676 (expand_builtin_object_size, fold_builtin_object_size): Make static.
35677 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
35678 no_c99_libc_has_function): Relocate from builtins.c.
35679 * tree.c: Include builtins.h.
35680 (build_call_expr_loc_array, build_call_expr_loc_vec,
35681 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
35683 * fold-const.h (fold_fma): Move prototype to builtins.h.
35684 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
35685 * asan.c: Include builtins.h.
35686 * cfgexpand.c: Likewise.
35687 * convert.c: Likewise.
35688 * emit-rtl.c: Likewise.
35689 * except.c: Likewise.
35690 * expr.c: Likewise.
35691 * fold-const.c: Likewise.
35692 * gimple-fold.c: Likewise.
35693 * gimple-ssa-strength-reduction.c: Likewise.
35694 * gimplify.c: Likewise.
35695 * ipa-inline.c: Likewise.
35696 * ipa-prop.c: Likewise.
35697 * lto-streamer-out.c: Likewise.
35698 * stmt.c: Likewise.
35699 * tree-inline.c: Likewise.
35700 * tree-object-size.c: Likewise.
35701 * tree-sra.c: Likewise.
35702 * tree-ssa-ccp.c: Likewise.
35703 * tree-ssa-forwprop.c: Likewise.
35704 * tree-ssa-loop-ivcanon.c: Likewise.
35705 * tree-ssa-loop-ivopts.c: Likewise.
35706 * tree-ssa-math-opts.c: Likewise.
35707 * tree-ssa-reassoc.c: Likewise.
35708 * tree-ssa-threadedge.c: Likewise.
35709 * tree-streamer-in.c: Likewise.
35710 * tree-vect-data-refs.c: Likewise.
35711 * tree-vect-patterns.c: Likewise.
35712 * tree-vect-stmts.c: Likewise.
35713 * config/aarch64/aarch64.c: Likewise.
35714 * config/alpha/alpha.c: Likewise.
35715 * config/arc/arc.c: Likewise.
35716 * config/arm/arm.c: Likewise.
35717 * config/avr/avr.c: Likewise.
35718 * config/bfin/bfin.c: Likewise.
35719 * config/c6x/c6x.c: Likewise.
35720 * config/cr16/cr16.c: Likewise.
35721 * config/cris/cris.c: Likewise.
35722 * config/epiphany/epiphany.c: Likewise.
35723 * config/fr30/fr30.c: Likewise.
35724 * config/frv/frv.c: Likewise.
35725 * config/h8300/h8300.c: Likewise.
35726 * config/i386/i386.c: Likewise.
35727 * config/i386/winnt.c: Likewise.
35728 * config/ia64/ia64.c: Likewise.
35729 * config/iq2000/iq2000.c: Likewise.
35730 * config/lm32/lm32.c: Likewise.
35731 * config/m32c/m32c.c: Likewise.
35732 * config/m32r/m32r.c: Likewise.
35733 * config/m68k/m68k.c: Likewise.
35734 * config/mcore/mcore.c: Likewise.
35735 * config/mep/mep.c: Likewise.
35736 * config/microblaze/microblaze.c: Likewise.
35737 * config/mips/mips.c: Likewise.
35738 * config/mmix/mmix.c: Likewise.
35739 * config/mn10300/mn10300.c: Likewise.
35740 * config/moxie/moxie.c: Likewise.
35741 * config/msp430/msp430.c: Likewise.
35742 * config/nds32/nds32.c: Likewise.
35743 * config/pa/pa.c: Likewise.
35744 * config/pdp11/pdp11.c: Likewise.
35745 * config/picochip/picochip.c: Likewise.
35746 * config/rl78/rl78.c: Likewise.
35747 * config/rs6000/rs6000.c: Likewise.
35748 * config/rx/rx.c: Likewise.
35749 * config/s390/s390.c: Likewise.
35750 * config/score/score.c: Likewise.
35751 * config/sh/sh.c: Likewise.
35752 * config/sparc/sparc.c: Likewise.
35753 * config/spu/spu.c: Likewise.
35754 * config/stormy16/stormy16.c: Likewise.
35755 * config/tilegx/tilegx.c: Likewise.
35756 * config/tilepro/tilepro.c: Likewise.
35757 * config/v850/v850.c: Likewise.
35758 * config/vax/vax.c: Likewise.
35759 * config/xtensa/xtensa.c: Likewise.
35761 2014-06-02 Jeff Law <law@redhat.com>
35763 PR rtl-optimization/61094
35764 * ree.c (combine_reaching_defs): Do not reextend an insn if it
35765 was marked as do_no_reextend. If a copy is needed to eliminate
35766 an extension, then mark it as do_not_reextend.
35768 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
35770 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
35772 2014-06-02 Richard Henderson <rth@redhat.com>
35775 * config/alpha/alpha.c (print_operand_address): Allow symbolic
35776 addresses inside asms. Use output_operand_lossage instead of
35779 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
35782 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
35783 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
35785 2014-06-02 Tom de Vries <tom@codesourcery.com>
35787 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
35788 case that x has VOIDmode.
35790 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
35792 * varasm.c (copy_constant): Delete function.
35793 (build_constant_desc): Don't call it.
35795 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35798 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
35799 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
35800 with immediate_operand.
35802 2014-06-02 Andreas Schwab <schwab@suse.de>
35804 * config/ia64/ia64.c
35805 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
35806 pending_data_specs first.
35808 2014-06-02 Richard Biener <rguenther@suse.de>
35810 PR tree-optimization/61378
35811 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
35812 valueized_anything.
35814 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
35816 * config/i386/constraints.md (Bw): Rename from 'w'.
35817 (Bz): Rename from 'z'.
35818 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
35820 2014-06-01 Kai Tietz <ktietz@redhat.com>
35823 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
35824 * config/i386/i386.md (sibcall_insn_operand): Use Bs
35825 instead of m constraint.
35827 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
35829 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
35830 a separate alternative where the scratch operand 2 is marked as
35833 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
35835 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
35836 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
35837 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
35838 and __builtins_arm_get_fpscr.
35839 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
35840 __builtins_arm_get_fpscr.
35841 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
35842 __builtins_arm_ldfpscr.
35843 (arm_atomic_assign_expand_fenv): New function.
35844 * config/arm/vfp.md (set_fpscr): New pattern.
35845 (get_fpscr) : Likewise.
35846 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
35848 * doc/extend.texi (AARCH64 Built-in Functions) : Document
35849 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
35851 2014-05-30 Jakub Jelinek <jakub@redhat.com>
35853 * asan.c (report_error_func): Add SLOW_P argument, use
35854 BUILT_IN_ASAN_*_N if set.
35855 (build_check_stmt): Likewise.
35856 (instrument_derefs): If T has insufficient alignment,
35857 force same handling as for odd sizes.
35859 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
35860 BUILT_IN_ASAN_REPORT_STORE_N): New.
35861 * asan.c (struct asan_mem_ref): Change access_size type to
35863 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
35864 update_mem_ref_hash_table): Likewise.
35865 (asan_mem_ref_hasher::hash): Hash in a HWI.
35866 (report_error_func): Change size_in_bytes argument to HWI.
35867 Use *_N builtins if size_in_bytes is larger than 16 or not power of
35869 (build_shadow_mem_access): New function.
35870 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
35871 Handle size_in_bytes not power of two or larger than 16.
35872 (instrument_derefs): Don't give up if size_in_bytes is not
35873 power of two or is larger than 16.
35875 2014-05-30 Kai Tietz <ktietz@redhat.com>
35878 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
35879 for sibling-tail-calls.
35880 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
35882 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
35883 (sibcall_insn_operand): Add check for sibcall_memory_operand.
35885 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35887 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
35888 * config/avr/avr-tables.opt: Regenerate.
35889 * config/avr/t-multilib: Regenerate.
35890 * doc/avr-mmcu.texi: Regenerate.
35892 2014-05-30 Ian Lance Taylor <iant@google.com>
35894 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
35897 2014-05-30 Tom de Vries <tom@codesourcery.com>
35899 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
35902 2014-05-30 Tom de Vries <tom@codesourcery.com>
35904 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35905 * lra.c (initialize_lra_reg_info_element): Add init of
35906 actual_call_used_reg_set field.
35907 (lra): Call lra_create_live_ranges before lra_inheritance for
35909 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35911 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
35912 instead of call_used_reg_set for -fuse-caller-save.
35913 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35915 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35917 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
35919 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
35921 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
35923 * ira.c (ira_get_dup_out_num): Check for output operands at
35924 the start of the loop. Handle cases where an included alternative
35925 follows an excluded one.
35927 2014-05-29 Mike Stump <mikestump@comcast.net>
35930 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
35931 post ld passes when lto is used.
35933 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
35935 PR rtl-optimization/61325
35936 * lra-constraints.c (process_address): Rename to process_address_1.
35937 (process_address): New function.
35939 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
35941 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
35942 TYPES_BINOPV): New static data.
35943 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
35945 * config/aarch64/aarch64-simd.md (aarch64_ext,
35946 aarch64_im_lane_boundsi): New patterns.
35947 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
35949 (aarch64_evpc_ext): New function.
35951 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
35953 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
35954 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
35955 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
35956 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
35957 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
35959 2014-05-29 Tom de Vries <tom@codesourcery.com>
35961 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
35963 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
35964 Richard Sandiford <rdsandiford@googlemail.com>
35966 * arm/iterators.md (shiftable_ops): New code iterator.
35967 (t2_binop0, arith_shift_insn): New code attributes.
35968 * arm/predicates.md (shift_nomul_operator): New predicate.
35969 * arm/arm.md (insn_enabled): Delete.
35970 (enabled): Remove insn_enabled test.
35971 (*arith_shiftsi): Delete. Replace with ...
35972 (*<arith_shift_insn>_multsi): ... new pattern.
35973 (*<arith_shift_insn>_shiftsi): ... new pattern.
35974 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
35976 2014-05-29 Radovan Obradovic <robradovic@mips.com>
35977 Tom de Vries <tom@codesourcery.com>
35979 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
35980 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
35982 (mips_split_call): Use POST_CALL_TMP_REG.
35983 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
35985 2014-05-29 Tom de Vries <tom@codesourcery.com>
35987 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
35988 with #ifdef STACK_REGS.
35990 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
35992 * varasm.c (get_variable_section): Walk aliases.
35993 (place_block_symbol): Walk aliases.
35995 2014-05-28 Tom de Vries <tom@codesourcery.com>
35998 2014-05-28 Tom de Vries <tom@codesourcery.com>
36000 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36001 * lra.c (initialize_lra_reg_info_element): Add init of
36002 actual_call_used_reg_set field.
36003 (lra): Call lra_create_live_ranges before lra_inheritance for
36005 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36007 * lra-constraints.c (need_for_call_save_p): Use
36008 actual_call_used_reg_set instead of call_used_reg_set for
36010 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36012 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36014 * doc/md.texi: Document that the % constraint character must
36015 be at the beginning of the string.
36016 * genoutput.c (validate_insn_alternatives): Check that '=',
36017 '+' and '%' only appear at the beginning of a constraint.
36018 * ira.c (commutative_constraint_p): Delete.
36019 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
36020 at the start of the string.
36021 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
36023 * config/arm/neon.md (bicdi3_neon): Likewise.
36024 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
36025 (slt_si, sltu_si): Likewise.
36026 * config/vax/vax.md (sbcdi3): Likewise.
36027 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
36028 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
36029 (mul64): Move '%' to beginning of constraint.
36030 * config/arm/arm.md (*xordi3_insn): Likewise.
36031 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
36032 (xorsi3): Likewise.
36034 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36036 * doc/md.texi: Document the restrictions on the "enabled" attribute.
36038 2014-05-28 Jason Merrill <jason@redhat.com>
36041 * cgraph.h (symtab_node::get_comdat_group_id): New.
36042 * cgraphunit.c (analyze_functions): Call it.
36043 * symtab.c (dump_symtab_node): Likewise.
36044 * tree.c (decl_comdat_group_id): New.
36045 * tree.h: Declare it.
36046 * lto-streamer-out.c (write_symbol): Use it.
36047 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
36049 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36051 PR bootstrap/PR61146
36052 * wide-int.cc: Do not include longlong.h when compiling with clang.
36054 2014-05-28 Richard Biener <rguenther@suse.de>
36056 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
36057 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
36058 (vrp_visit_assignment_or_call): Print less vertical space.
36059 (vrp_visit_stmt): Likewise.
36060 (vrp_visit_phi_node): Likewise. For a PHI argument with
36061 VR_VARYING range consider recording it as copy.
36063 2014-05-28 Richard Biener <rguenther@suse.de>
36066 2014-05-28 Richard Biener <rguenther@suse.de>
36068 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36070 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
36072 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
36073 sufficiently aligned and an offset is used at the same time.
36074 (expand_expr_real_1): Likewise.
36076 2014-05-28 Richard Biener <rguenther@suse.de>
36078 PR middle-end/61045
36079 * fold-const.c (fold_comparison): When folding
36080 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
36081 the sign of the remaining constant operand stays the same.
36083 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
36085 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
36086 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
36087 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
36089 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
36090 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
36091 (m32bit-doubles) Likewise.
36092 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
36093 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
36096 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36098 * configure.ac ($gcc_cv_ld_clearcap): New test.
36099 * configure: Regenerate.
36100 * config.in: Regenerate.
36101 * config/sol2.opt (mclear-hwcap): New option.
36102 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
36103 * config/sol2-clearcap.map: Moved here from
36104 testsuite/gcc.target/i386/clearcap.map.
36105 * config/sol2-clearcapv2.map: Move here from
36106 gcc.target/i386/clearcapv2.map.
36107 * config/t-sol2 (install): Depend on install-clearcap-map.
36108 (install-clearcap-map): New target.
36109 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
36112 2014-05-28 Richard Biener <rguenther@suse.de>
36114 * hwint.h (*_HALF_WIDE_INT*): Move to ...
36115 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
36116 ... here and remove the rest.
36117 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36119 2014-05-28 Richard Biener <rguenther@suse.de>
36121 PR tree-optimization/61335
36122 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
36123 new range fails, drop to varying.
36125 2014-05-28 Olivier Hainque <hainque@adacore.com>
36127 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
36128 (CPP_SPEC): Add entry for -mcpu=8548.
36129 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
36130 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
36132 2014-05-28 Tom de Vries <tom@codesourcery.com>
36134 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36135 * lra.c (initialize_lra_reg_info_element): Add init of
36136 actual_call_used_reg_set field.
36137 (lra): Call lra_create_live_ranges before lra_inheritance for
36139 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36141 * lra-constraints.c (need_for_call_save_p): Use
36142 actual_call_used_reg_set instead of call_used_reg_set for
36144 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36146 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36147 Tom de Vries <tom@codesourcery.com>
36149 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
36151 (@item -fuse-caller-save): New item.
36153 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36154 Tom de Vries <tom@codesourcery.com>
36156 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
36157 OPT_fuse_caller_save.
36159 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36160 Tom de Vries <tom@codesourcery.com>
36162 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
36163 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
36164 get_call_reg_set_usage.
36165 * resource.c (mark_set_resources, mark_target_live_regs): Use
36166 get_call_reg_set_usage.
36167 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
36169 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
36170 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
36171 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36172 * ira-build.c (ira_create_allocno): Init
36173 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36174 (create_cap_allocno, propagate_allocno_info)
36175 (propagate_some_info_from_allocno)
36176 (copy_info_to_removed_store_destinations): Handle
36177 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36178 * ira-costs.c (ira_tune_allocno_costs): Use
36179 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
36181 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36182 Tom de Vries <tom@codesourcery.com>
36184 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
36185 and function_used_regs_valid fields.
36186 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
36187 find_all_hard_reg_sets.
36188 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
36189 (get_call_reg_set_usage): New function.
36190 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
36191 * regs.h (get_call_reg_set_usage): Declare.
36193 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36196 * config/dbx.h (License): Add Runtime Library Exception.
36197 * config/newlib-stdint.h (License): Same.
36198 * config/rtems.h (License): Same
36199 * config/initfini-array.h (License): Same
36200 * config/v850/v850.h (License): Same.
36201 * config/v850/v850-opts.h (License): Same
36202 * config/v850/rtems.h (License): Same.
36204 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36207 * doc/extend.texi (Local Labels): Note that label differences are
36208 not supported for AVR.
36210 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36211 Olivier Hainque <hainque@adacore.com>
36213 * rtl.h (set_for_reg_notes): Declare.
36214 * emit-rtl.c (set_for_reg_notes): New function.
36215 (set_unique_reg_note): Use it.
36216 * optabs.c (add_equal_note): Likewise
36218 2014-05-27 Andrew Pinski <apinski@cavium.com>
36220 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
36221 Use <w> for the register in assembly template.
36222 (stack_protect_test): Use the mode of operands[0] for the result.
36223 (stack_protect_test_<mode>): Use <w> for the register
36224 in assembly template.
36226 2014-05-27 DJ Delorie <dj@redhat.com>
36228 * config/rx/rx.c (add_vector_labels): New.
36229 (rx_output_function_prologue): Call it.
36230 (rx_handle_func_attribute): Don't require empty arguments.
36231 (rx_handle_vector_attribute): New.
36232 (rx_attribute_table): Add "vector" attribute.
36233 * doc/extend.texi (interrupt, vector): Document new/changed
36234 RX-specific attributes.
36236 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
36238 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36240 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
36241 predicate to detect a negative quotient.
36243 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36245 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
36246 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
36247 Add X - Y CMP 0 to X CMP Y transformation.
36248 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
36250 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
36252 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
36255 2014-05-27 Steve Ellcey <sellcey@mips.com>
36257 * config/mips/mips.c: Add include of cgraph.h.
36259 2014-05-27 Richard Biener <rguenther@suse.de>
36261 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
36263 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36266 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
36267 * config/arm/arm-cores.def (License): Same.
36268 * config/arm/arm-opts.h (License): Same.
36269 * config/arm/aout.h (License): Same.
36270 * config/arm/bpabi.h (License): Same.
36271 * config/arm/elf.h (License): Same.
36272 * config/arm/linux-elf.h (License): Same.
36273 * config/arm/linux-gas.h (License): Same.
36274 * config/arm/netbsd-elf.h (License): Same.
36275 * config/arm/uclinux-eabi.h (License): Same.
36276 * config/arm/uclinux-elf.h (License): Same.
36277 * config/arm/vxworks.h (License): Same.
36279 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36281 * config/arm/neon.md (neon_bswap<mode>): New pattern.
36282 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
36283 (arm_init_neon_builtins): Handle NEON_BSWAP.
36284 Define required type nodes.
36285 (arm_expand_neon_builtin): Handle NEON_BSWAP.
36286 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
36287 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
36288 * config/arm/iterators.md (VDQHSD): New mode iterator.
36290 2014-05-27 Richard Biener <rguenther@suse.de>
36292 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
36293 Try using literal operands when comparing value-ranges failed.
36295 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36297 * ira.c (commutative_operand): Adjust for change to recog_data.
36298 [Missing from previous commit.]
36300 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36302 * system.h (TEST_BIT): New macro.
36303 * recog.h (alternative_mask): New type.
36304 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
36305 (recog_data_d): Replace alternative_enabled_p array with
36306 enabled_alternatives.
36307 (target_recog): New structure.
36308 (default_target_recog, this_target_recog): Declare.
36309 (get_enabled_alternatives, recog_init): Likewise.
36310 * recog.c (default_target_recog, this_target_recog): New variables.
36311 (get_enabled_alternatives): New function.
36312 (extract_insn): Use it.
36313 (recog_init): New function.
36314 (preprocess_constraints, constrain_operands): Adjust for change to
36316 * postreload.c (reload_cse_simplify_operands): Likewise.
36317 * reload.c (find_reloads): Likewise.
36318 * ira-costs.c (record_reg_classes): Likewise.
36319 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
36320 all alternatives after a disabled one would be skipped.
36321 (ira_implicitly_set_insn_hard_regs): Likewise.
36322 * ira.c (ira_setup_alts): Adjust for change to recog_data.
36323 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
36324 with enabled_alternatives.
36325 * lra.c (free_insn_recog_data): Update accordingly.
36326 (lra_update_insn_recog_data): Likewise.
36327 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
36328 * lra-constraints.c (process_alt_operands): Likewise. Handle
36329 only_alternative as part of the enabled mask.
36330 * target-globals.h (this_target_recog): Declare.
36331 (target_globals): Add a recog field.
36332 (restore_target_globals): Restore this_target_recog.
36333 * target-globals.c: Include recog.h.
36334 (default_target_globals): Initialize recog field.
36335 (save_target_globals): Likewise.
36336 * reginfo.c (reinit_regs): Call recog_init.
36337 * toplev.c (backend_init_target): Likewise.
36339 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36341 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
36342 rather than any named insn's code.
36344 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36347 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
36348 * config/arm/arm-cores.def (License): Same.
36350 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
36352 * tree.h (decl_comdat_group): Declare.
36353 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
36354 * tree.c (decl_comdat_group): Here.
36356 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
36358 PR rtl-optimization/61222
36359 * combine.c (simplify_shift_const_1): When moving a PLUS outside
36360 the shift, truncate the PLUS operand to the result mode.
36362 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
36365 * config/i386/i386.c (ix86_rtx_costs)
36366 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
36369 2014-05-26 Martin Jambor <mjambor@suse.cz>
36371 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
36374 2014-05-26 Richard Biener <rguenther@suse.de>
36376 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
36377 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
36378 Provide specializations.
36379 (wi::int_traits <HOST_WIDE_INT>,
36380 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
36382 2014-05-26 Alan Modra <amodra@gmail.com>
36385 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
36386 params and return a bool. Remove dead code. Update comment.
36387 Assert we have a const_int source. Remove bogus code from
36388 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
36389 handling of constants > 2G and reg_equal note, from..
36390 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
36391 return value. Update comment. If we can, use a new pseudo
36392 for intermediate calculations.
36393 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
36395 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
36396 call to rs6000_emit_set_const in splitter.
36397 (movdi_internal64+2, +3): Likewise.
36399 2014-05-26 Richard Biener <rguenther@suse.de>
36401 * system.h: Define __STDC_FORMAT_MACROS before
36402 including inttypes.h.
36403 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
36404 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
36405 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
36406 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
36407 HOST_WIDEST_INT_C): Remove.
36408 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
36409 if C99 inttypes.h is not available.
36410 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
36411 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
36412 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
36413 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
36414 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
36415 (struct output_info): Likewise.
36416 (print_statistics): Adjust.
36417 (dump_bitmap_statistics): Likewise.
36418 * bt-load.c (migrate_btr_defs): Print with PRId64.
36419 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
36420 (MAX_SAFE_MULTIPLIER): Adjust.
36421 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
36422 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
36423 dump_cgraph_node): Likewise.
36424 * final.c (dump_basic_block_info): Likewise.
36425 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
36426 * gcov.c (format_gcov): Likewise.
36427 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
36429 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
36430 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
36431 (inline_small_functions, dump_overall_stats, dump_inline_stats):
36432 Use PRId64 for dumping.
36433 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
36434 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
36435 (add_allocno_hard_regs): Adjust.
36436 * loop-doloop.c (doloop_modify): Print using PRId64.
36437 * loop-iv.c (inverse): Compute in uint64_t.
36438 (determine_max_iter, iv_number_of_iterations): Likewise.
36439 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
36440 Print using PRId64.
36441 * lto-streamer-out.c (write_symbol): Use uint64_t.
36442 * mcf.c (CAP_INFINITY): Use int64_t maximum.
36443 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
36444 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
36445 * modulo-sched.c (const_iteration_count): Use int64_t.
36446 (sms_schedule): Dump using PRId64.
36447 * predict.c (dump_prediction): Likewise.
36448 * pretty-print.h (pp_widest_integer): Remove.
36449 * profile.c (get_working_sets, is_edge_inconsistent,
36450 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
36451 * tree-pretty-print.c (pp_double_int): Remove case handling
36452 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
36453 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
36455 (pass_optimize_bswap::execute): Remove restriction on hosts.
36456 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
36457 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
36458 * tree.c (widest_int_cst_value): Remove.
36459 * tree.h (widest_int_cst_value): Likewise.
36460 * value-prof.c (dump_histogram_value): Print using PRId64.
36461 * gengtype.c (main): Also inject int64_t.
36462 * ggc-page.c (struct max_alignment): Use int64_t.
36463 * alloc-pool.c (struct allocation_object_def): Likewise.
36464 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
36466 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
36467 * doc/tm.texi: Regenerated.
36468 * gengtype-lex.l (IWORD): Handle [u]int64_t.
36469 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
36470 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
36471 mmix_output_register_setting): Use [u]int64_t in prototypes.
36472 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
36473 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
36474 mmix_output_octa, mmix_output_shifted_value): Adjust.
36475 (mmix_intval): Adjust. Remove unreachable case.
36476 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
36478 2014-05-26 Richard Biener <rguenther@suse.de>
36480 * configure.ac: Drop __int64 type check. Insist that we
36481 found uint64_t and int64_t.
36482 * hwint.h (HOST_BITS_PER___INT64): Remove.
36483 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
36484 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
36485 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
36486 (HOST_WIDEST_FAST_INT): Remove __int64 case.
36487 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
36488 for dst_q_src_df_rms_cdt.
36489 * configure: Regenerate.
36490 * config.in: Likewise.
36492 2014-05-26 Michael Tautschnig <mt@debian.org>
36495 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
36496 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
36498 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36500 PR rtl-optimization/61278
36501 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
36503 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36505 PR rtl-optimization/61220
36506 Part of PR rtl-optimization/61225
36507 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
36508 insn; skip split_edge for a block with only one successor.
36510 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36512 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
36515 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36517 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
36518 (update_vtable_references): New function.
36519 (function_and_variable_visibility): Rewrite also vtable initializers.
36520 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
36522 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36524 * ggc.h (ggc_grow): New function.
36525 * ggc-none.c (ggc_grow): New function.
36526 * ggc-page.c (ggc_grow): Likewise.
36528 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36530 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
36531 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
36532 comdat_can_be_unshared_p, cgraph_externally_visible_p,
36533 varpool_externally_visible_p, can_replace_by_local_alias,
36534 update_visibility_by_resolution_info, function_and_variable_visibility,
36535 pass_data_ipa_function_and_variable_visibility,
36536 make_pass_ipa_function_and_variable_visibility,
36537 whole_program_function_and_variable_visibility,
36538 pass_data_ipa_whole_program_visibility,
36539 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
36540 * cgraph.h (cgraph_local_node_p): Declare.
36541 * ipa-visibility.c: New file.
36542 * Makefile.in (OBJS): Add ipa-visiblity.o
36544 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36546 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
36547 that var decl is available.
36549 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36551 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
36552 symtab_node pointer.
36553 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
36554 (find_decls_types_r): Do not walk COMDAT_GROUP.
36555 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
36556 * varasm.c (make_decl_one_only): Use set_comdat_group;
36557 create node if needed.
36558 * ipa-inline-transform.c (save_inline_function_body): Update
36559 way we decl->symtab mapping.
36560 * symtab.c (symtab_hash, hash_node, eq_node
36561 symtab_insert_node_to_hashtable): Remove.
36562 (symtab_register_node): Update.
36563 (symtab_unregister_node): Update.
36564 (symtab_get_node): Reimplement as inline function.
36565 (symtab_add_to_same_comdat_group): Update.
36566 (symtab_dissolve_same_comdat_group_list): Update.
36567 (dump_symtab_base): Update.
36568 (verify_symtab_base): Update.
36569 (symtab_make_decl_local): Update.
36570 (fixup_same_cpp_alias_visibility): Update.
36571 (symtab_nonoverwritable_alias): Update.
36572 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
36573 * ipa.c (update_visibility_by_resolution_info): UPdate.
36574 * bb-reorder.c: Include cgraph.h
36575 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
36576 with comdat groups.
36577 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
36578 * cgraph.c (cgraph_get_create_node): Update.
36579 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
36581 (symtab_get_node): Make inline.
36582 (symtab_insert_node_to_hashtable): Remove.
36583 (symtab_can_be_discarded): Update.
36584 (decl_comdat_group): New function.
36585 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
36587 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
36589 (read_comdat_group): New function.
36590 (input_node, input_varpool_node): Use it.
36591 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
36593 * mips.c (mips_start_unique_function): Likewise.
36594 (ix86_code_end): Likewise.
36595 (rs6000_code_end): Likweise.
36596 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
36598 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36600 * gengtype-state.c (fatal_reading_state): Bring offline.
36601 * optabs.c (widening_optab_handler): Bring offline.
36602 * optabs.h (widening_optab_handler): Likewise.
36603 * final.c (get_attr_length_1): Likewise.
36605 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36607 * sched-int.h (sd_iterator_cond): Manually tail recurse.
36609 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36611 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
36612 (ppc440-compare): Include shift with dot.
36613 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
36614 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
36616 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
36618 (e6500_sfx2): Include it.
36619 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
36620 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
36621 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
36622 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
36623 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
36624 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
36625 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
36626 *lshiftrt_internal1le, *lshiftrt_internal1be,
36627 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
36628 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
36629 *rotldi3_internal10le, *rotldi3_internal10be,
36630 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
36631 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
36632 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
36633 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
36634 define_insns): Use type "shift" in the appropriate alternatives.
36636 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36638 * config/rs6000/rs6000.md (type): Add "logical". Delete
36640 (dot): Adjust comment.
36641 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
36642 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
36643 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
36644 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
36645 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
36646 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
36647 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
36648 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36650 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36651 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36652 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36653 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36654 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36655 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36656 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36657 * config/rs6000/8540.md (ppc8540_su): Adjust.
36658 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36659 cell-cmp-microcoded): Adjust.
36660 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36661 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36662 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36663 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36664 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36665 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36666 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36667 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36668 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36670 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36671 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
36672 Adjust. Adjust comment.
36673 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36674 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36676 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36678 * config/rs6000/rs6000.md (type): Add "add".
36679 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
36680 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
36681 define_insns): Use it.
36682 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36684 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36685 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36686 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36687 * config/rs6000/601.md (ppc601-integer): Adjust.
36688 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36689 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36690 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36691 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36692 * config/rs6000/8540.md (ppc8540_su): Adjust.
36693 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36694 cell-cmp-microcoded): Adjust.
36695 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36696 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36697 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36698 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36699 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36700 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36701 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36702 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36703 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36705 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36706 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
36707 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36708 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36710 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36712 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
36713 "delayed_compare", "var_delayed_compare".
36714 (var_shift): New attribute.
36715 (cell_micro): Adjust.
36716 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
36717 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
36718 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
36719 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
36720 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
36721 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
36722 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
36723 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
36724 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
36725 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
36726 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
36727 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
36728 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
36729 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
36730 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
36731 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
36732 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
36733 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
36734 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
36735 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
36736 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
36737 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
36738 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
36739 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36740 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36742 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36743 * config/rs6000/440.md (ppc440-integer): Adjust.
36744 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36745 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
36746 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36747 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36748 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36749 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36750 * config/rs6000/8540.md (ppc8540_su): Adjust.
36751 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36752 cell-cmp-microcoded): Adjust.
36753 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
36754 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36755 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
36756 e500mc64_delayed): Adjust.
36757 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
36758 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
36759 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36760 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
36761 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
36762 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
36763 power6-delayed-compare, power6-var-delayed-compare): Adjust.
36764 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
36765 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
36767 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36768 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36770 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36772 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
36773 (bits): New mode_attr.
36774 (idiv_ldiv): Delete mode_attr.
36775 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
36776 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36777 rs6000_adjust_priority, is_nonpipeline_insn,
36778 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36780 * config/rs6000/40x.md (ppc403-idiv): Adjust.
36781 * config/rs6000/440.md (ppc440-idiv): Adjust.
36782 * config/rs6000/476.md (ppc476-idiv): Adjust.
36783 * config/rs6000/601.md (ppc601-idiv): Adjust.
36784 * config/rs6000/603.md (ppc603-idiv): Adjust.
36785 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
36786 ppc620-ldiv): Adjust.
36787 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
36788 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
36789 * config/rs6000/8540.md (ppc8540_divide): Adjust.
36790 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
36791 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
36792 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
36793 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
36794 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
36795 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
36796 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
36797 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
36798 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
36799 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
36800 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
36801 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
36802 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
36803 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
36804 * config/rs6000/titan.md (titan_fxu_div): Adjust.
36806 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36808 * config/rs6000/rs6000.md (type): Delete "insert_word",
36809 "insert_dword". Add "insert".
36810 (size): Update comment.
36811 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36812 insn_must_be_first_in_group): Adjust.
36813 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
36814 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
36815 *insvsi_internal6, insvdi_internal): Adjust.
36817 * config/rs6000/40x.md (ppc403-integer): Adjust.
36818 * config/rs6000/440.md (ppc440-integer): Adjust.
36819 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
36820 * config/rs6000/601.md (ppc601-integer): Adjust.
36821 * config/rs6000/603.md (ppc603-integer): Adjust.
36822 * config/rs6000/6xx.md (ppc604-integer): Adjust.
36823 * config/rs6000/7450.md (ppc7450-integer): Adjust.
36824 * config/rs6000/7xx.md (ppc750-integer): Adjust.
36825 * config/rs6000/8540.md (ppc8540_su): Adjust.
36826 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
36827 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
36828 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36829 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
36830 * config/rs6000/e5500.md (e5500_sfx): Adjust.
36831 * config/rs6000/e6500.md (e6500_sfx): Adjust.
36832 * config/rs6000/mpc.md (mpccore-integer): Adjust.
36833 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
36834 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
36835 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
36836 * config/rs6000/power7.md (power7-integer): Adjust.
36837 * config/rs6000/power8.md (power8-1cyc): Adjust.
36838 * config/rs6000/rs64.md (rs64a-integer): Adjust.
36839 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36841 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36843 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
36844 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
36845 (size): New attribute.
36846 (dot): New attribute.
36847 (cell_micro): Adjust.
36848 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
36849 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
36850 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
36851 umuldi3_highpart): Adjust.
36852 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36853 rs6000_adjust_priority, is_nonpipeline_insn,
36854 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36856 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
36857 ppc405-imul3): Adjust.
36858 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
36859 * config/rs6000/476.md (ppc476-imul): Adjust.
36860 * config/rs6000/601.md (ppc601-imul): Adjust.
36861 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
36862 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
36863 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
36864 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
36865 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
36867 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
36868 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
36869 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
36870 cell-imul): Adjust.
36871 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
36872 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
36873 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
36874 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
36875 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
36876 * config/rs6000/mpc.md (mpccore-imul): Adjust.
36877 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
36878 power4-lmul, power4-imul, power4-imul3): Adjust.
36879 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
36880 power5-lmul, power5-imul, power5-imul3): Adjust.
36881 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
36882 power6-lmul, power6-imul, power6-imul3): Adjust.
36883 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
36884 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
36886 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
36887 rs64a-lmul): Adjust.
36888 * config/rs6000/titan.md (titan_imul): Adjust.
36890 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36892 * config/rs6000/rs6000.md (type): Add new value "halfmul".
36893 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
36894 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
36895 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
36896 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
36897 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
36898 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
36899 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
36900 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
36901 * config/rs6000/titan.md: Delete nonsensical comment.
36902 (titan_imul): Add type imul3.
36903 (titan_mulhw): Remove type imul3; add type halfmul.
36905 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36907 * config/rs6000/rs6000.md (type): Reorder, reformat.
36909 2014-05-23 Martin Jambor <mjambor@suse.cz>
36911 PR tree-optimization/53787
36912 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
36913 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
36914 analysis_done, update all uses.
36915 * ipa-prop.c: Include domwalk.h
36916 (param_analysis_info): Removed.
36917 (param_aa_status): New type.
36918 (ipa_bb_info): Likewise.
36919 (func_body_info): Likewise.
36920 (ipa_get_bb_info): New function.
36921 (aa_overwalked): Likewise.
36922 (find_dominating_aa_status): Likewise.
36923 (parm_bb_aa_status_for_bb): Likewise.
36924 (parm_preserved_before_stmt_p): Changed to use new param AA info.
36925 (load_from_unmodified_param): Accept func_body_info as a parameter
36926 instead of parms_ainfo.
36927 (parm_ref_data_preserved_p): Changed to use new param AA info.
36928 (parm_ref_data_pass_through_p): Likewise.
36929 (ipa_load_from_parm_agg_1): Likewise. Update callers.
36930 (compute_complex_assign_jump_func): Changed to use new param AA info.
36931 (compute_complex_ancestor_jump_func): Likewise.
36932 (ipa_compute_jump_functions_for_edge): Likewise.
36933 (ipa_compute_jump_functions): Removed.
36934 (ipa_compute_jump_functions_for_bb): New function.
36935 (ipa_analyze_indirect_call_uses): Likewise, moved variable
36937 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
36938 and info, moved variable declarations down.
36939 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
36941 (ipa_analyze_stmt_uses): Likewise.
36942 (ipa_analyze_params_uses): Removed.
36943 (ipa_analyze_params_uses_in_bb): New function.
36944 (ipa_analyze_controlled_uses): Likewise.
36945 (free_ipa_bb_info): Likewise.
36946 (analysis_dom_walker): New class.
36947 (ipa_analyze_node): Handle node-specific forbidden analysis,
36948 initialize and free func_body_info, use dominator walker.
36949 (ipcp_modif_dom_walker): New class.
36950 (ipcp_transform_function): Create and free func_body_info, use
36951 ipcp_modif_dom_walker, moved a lot of functionality there.
36953 2014-05-23 Marek Polacek <polacek@redhat.com>
36954 Jakub Jelinek <jakub@redhat.com>
36956 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
36957 * gcc.c (sanitize_spec_function): Likewise.
36958 * convert.c (convert_to_integer): Include "ubsan.h". Add
36959 floating-point to integer instrumentation.
36960 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
36961 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
36962 SANITIZE_NONDEFAULT.
36963 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
36964 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
36965 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
36966 * ubsan.c: Include "realmpfr.h" and "dfp.h".
36967 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
36968 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
36969 float/double/long double.
36970 (ubsan_instrument_float_cast): New function.
36971 * ubsan.h (ubsan_instrument_float_cast): Declare.
36973 2014-05-23 Jiong Wang <jiong.wang@arm.com>
36975 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
36977 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
36978 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
36979 Adjust for tailcalling through registers.
36980 * config/aarch64/aarch64.h (enum reg_class): New caller save
36982 (REG_CLASS_NAMES): Likewise.
36983 (REG_CLASS_CONTENTS): Likewise.
36984 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
36985 Allow tailcalling without decls.
36987 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
36989 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
36990 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
36992 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
36993 gsi, and variables v_* to v*.
36995 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
36997 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
36999 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37001 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
37002 * omp-low.c: Update accordingly.
37004 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
37005 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
37006 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
37007 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
37008 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
37009 GF_OMP_TARGET_KIND_UPDATE.
37011 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37012 Explicitly enumerate the expected region types.
37014 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
37017 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
37018 documentation; the old documentation didn't clearly state the
37019 constraints on the contents of the pointed-to storage.
37021 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37023 Fix bootstrap error on ia64
37024 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
37025 Return default value.
37027 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
37029 PR tree-optimization/54733
37030 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
37032 (find_bswap_or_nop_load): New.
37033 (find_bswap_1): Renamed to ...
37034 (find_bswap_or_nop_1): This. Also add support for memory source.
37035 (find_bswap): Renamed to ...
37036 (find_bswap_or_nop): This. Also add support for memory source and
37037 detection of bitwise operations equivalent to load in target
37039 (execute_optimize_bswap): Likewise. Also move its leading comment back
37040 in place and split statement transformation into ...
37041 (bswap_replace): This.
37043 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37045 PR rtl-optimization/61215
37046 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
37047 simplify_gen_subreg until final substitution.
37049 2014-05-23 Alan Modra <amodra@gmail.com>
37052 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
37053 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
37054 Use "Y" constraint rather than "m".
37056 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
37058 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
37060 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
37061 New function declaration.
37062 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
37063 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
37064 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
37065 (aarch64_init_builtins) : Initialize builtins
37066 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37067 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37068 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
37069 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
37070 and __builtins_aarch64_set_fpsr.
37071 (aarch64_atomic_assign_expand_fenv): New function.
37072 * config/aarch64/aarch64.md (set_fpcr): New pattern.
37073 (get_fpcr) : Likewise.
37074 (set_fpsr) : Likewise.
37075 (get_fpsr) : Likewise.
37076 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
37077 and UNSPECV_SET_FPSR.
37078 * doc/extend.texi (AARCH64 Built-in Functions) : Document
37079 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37080 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37082 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37084 PR rtl-optimization/60969
37085 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
37086 constraints. Set up mem cost for NO_REGS case.
37088 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
37090 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
37092 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
37094 * config/darwin.c: Include "lto-section-names.h".
37095 (LTO_SEGMENT_NAME): Don't define.
37096 * config/i386/winnt.c: Include "lto-section-names.h".
37097 * lto-streamer.c: Include "lto-section-names.h".
37098 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
37099 * lto-wrapper.c: Include "lto-section-names.h".
37100 (LTO_SECTION_NAME_PREFIX): Don't define.
37101 * lto-section-names.h: New file.
37102 * cgraphunit.c: Include "lto-section-names.h".
37104 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
37106 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
37108 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
37111 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
37113 2014-05-22 Nick Clifton <nickc@redhat.com>
37115 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
37117 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
37119 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
37120 -> (T)A transformation to integer types.
37122 2014-05-22 Teresa Johnson <tejohnson@google.com>
37124 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
37125 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
37126 (gcov_rewrite): Use gcov_nonruntime_assert.
37127 (gcov_open): Ditto.
37128 (gcov_write_words): Ditto.
37129 (gcov_write_length): Ditto.
37130 (gcov_read_words): Use gcov_nonruntime_assert, and remove
37131 gcc_assert from IN_LIBGCOV code.
37132 (gcov_read_summary): Use gcov_error to flag profile corruption.
37133 (gcov_sync): Use gcov_nonruntime_assert.
37134 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
37135 (gcov_histo_index): Use gcov_nonruntime_assert.
37136 (static void gcov_histogram_merge): Ditto.
37137 (compute_working_sets): Ditto.
37138 * gcov-io.h (gcov_nonruntime_assert): Define.
37139 (gcov_error): Define for !IN_LIBGCOV
37141 2014-05-22 Richard Biener <rguenther@suse.de>
37143 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37144 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
37145 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
37146 and deallocation site.
37147 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37148 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
37149 passing through the incoming points-to set.
37150 (handle_lhs_call): Use flags argument instead of recomputing it.
37151 (find_func_aliases_for_call): Call handle_lhs_call with proper
37154 2014-05-22 Jakub Jelinek <jakub@redhat.com>
37156 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
37157 all padding bits in REAL_VALUE_TYPE are cleared.
37159 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37161 Cleanup and improve multipass_dfa_lookahead_guard
37162 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
37163 (core2i7_first_cycle_multipass_begin,)
37164 (core2i7_first_cycle_multipass_issue,)
37165 (core2i7_first_cycle_multipass_backtrack): Update signature.
37166 * config/ia64/ia64.c
37167 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
37168 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
37169 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
37171 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
37172 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
37174 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
37176 * doc/tm.texi: Regenerate.
37178 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
37179 * haifa-sched.c (ready_try): Make signed to allow negative values.
37180 (rebug_ready_list_1): Update.
37181 (choose_ready): Simplify.
37182 (sched_extend_ready_list): Update.
37184 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37186 Remove IA64 speculation tweaking flags
37187 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
37188 speculation tuning flags.
37189 (msched-prefer-non-data-spec-insns,)
37190 (msched-prefer-non-control-spec-insns): Obsolete options.
37191 * haifa-sched.c (choose_ready): Remove handling of
37192 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37193 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
37194 and PREFER_NON_DATA_SPEC.
37195 * sel-sched.c (process_spec_exprs): Remove handling of
37196 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37198 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37200 Improve scheduling debug output
37201 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
37202 (advance_one_cycle): Update.
37203 (schedule_insn, queue_to_ready): Add debug printouts.
37204 (debug_ready_list_1): New static function.
37205 (debug_ready_list): Update.
37206 (max_issue): Add debug printouts.
37207 (dump_insn_stream): New static function.
37208 (schedule_block): Use it. Also better indent printouts.
37210 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37212 Fix sched_insn debug counter
37213 * haifa-sched.c (schedule_insn): Update.
37214 (struct haifa_saved_data): Add nonscheduled_insns_begin.
37215 (save_backtrack_point, restore_backtrack_point): Update.
37216 (first_nonscheduled_insn): New static function.
37217 (queue_to_ready, choose_ready): Use it.
37218 (schedule_block): Init nonscheduled_insns_begin.
37219 (sched_emit_insn): Update.
37222 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
37224 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
37226 (aarch64_secondary_reload) : LikeWise.
37227 (aarch64_class_max_nregs) : Remove CORE_REGS.
37228 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
37229 (REG_CLASS_NAMES) : Likewise.
37230 (REG_CLASS_CONTENTS) : LikeWise.
37231 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
37233 2014-05-21 Guozhi Wei <carrot@google.com>
37236 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
37238 (vqdmulhq_n_s16): Likewise.
37240 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
37242 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
37244 2014-05-21 Marek Polacek <polacek@redhat.com>
37247 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
37249 2014-05-21 Martin Jambor <mjambor@suse.cz>
37251 * doc/invoke.texi (Optimize Options): Document parameters
37252 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
37253 ipa-cp-array-index-hint-bonus.
37255 2014-05-21 Mark Wielaard <mjw@redhat.com>
37258 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
37259 version >= 3 or not strict DWARF.
37260 * langhooks.h (struct lang_hooks_for_types): Add
37261 enum_underlying_base_type.
37262 * langhooks.c (lhd_enum_underlying_base_type): New function.
37263 * gcc/langhooks.h (struct lang_hooks_for_types): Add
37264 enum_underlying_base_type.
37265 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
37266 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
37267 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
37269 2014-05-21 Richard Biener <rguenther@suse.de>
37271 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
37273 2014-05-21 John Marino <gnugcc@marino.st>
37275 * config.gcc (*-*-dragonfly*): New target.
37276 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
37277 * configure: Regenerate.
37278 * config/dragonfly-stdint.h: New.
37279 * config/dragonfly.h: New.
37280 * config/dragonfly.opt: New.
37281 * config/i386/dragonfly.h: New.
37282 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
37284 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37286 * tree.def (VOID_CST): New.
37287 * tree-core.h (TI_VOID): New.
37288 * tree.h (void_node): New.
37289 * tree.c (tree_node_structure_for_code, tree_code_size)
37290 (iterative_hash_expr): Handle VOID_CST.
37291 (build_common_tree_nodes): Initialize void_node.
37293 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
37295 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
37297 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
37299 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
37302 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
37303 flag_reorder_blocks_and_partition.
37304 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
37306 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
37309 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
37311 (*addc_r_t): Add new insn_and_split.
37313 2014-05-21 Jakub Jelinek <jakub@redhat.com>
37315 PR middle-end/61252
37316 * omp-low.c (handle_simd_reference): New function.
37317 (lower_rec_input_clauses): Use it. Defer adding reference
37318 initialization even for reduction without placeholder if in simd,
37319 handle it properly later on.
37321 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37323 PR tree-optimization/60899
37324 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
37325 assume all static symbols will have definition wile parsing and
37326 check the do have definition later in compilation; check that
37327 variable referring symbol will be output before concluding that
37328 reference is safe; be conservative for referring local statics;
37329 be more precise about when comdat is output in other partition.
37331 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37334 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
37336 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
37337 (ipa_inline): Loop inline_to_all_callers until no more aliases
37340 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37342 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
37343 set writeonly flag only for vars actually written to.
37345 2014-05-20 Dehao Chen <dehao@google.com>
37347 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
37348 and callee count to get clone count.
37349 * tree-inline.c (expand_call_inline): Use callee count instead of bb
37350 count in copy_body.
37352 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
37354 PR rtl-optimization/61243
37355 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
37357 2014-05-20 Xinliang David Li <davidxl@google.com>
37359 * cgraphunit.c (walk_polymorphic_call_targets): Add
37360 dbgcnt and fopt-info support.
37361 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
37362 * ipa-devirt.c (ipa_devirt): Ditto.
37363 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
37364 * ipa.c (walk_polymorphic_call_targets): Ditto.
37365 * gimple-fold.c (fold_gimple_assign): Ditto.
37366 (gimple_fold_call): Ditto.
37367 * dbgcnt.def: New counter.
37369 2014-05-20 DJ Delorie <dj@redhat.com>
37371 * config/msp430/msp430.md (split): Don't allow subregs when
37372 splitting SImode adds.
37373 (andneghi): Fix subtraction logic.
37374 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
37376 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37378 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
37380 * except.c (switch_to_exception_section, resolve_unique_section,
37381 get_named_text_section, default_function_rodata_section,
37382 align_variable, get_block_for_decl, default_section_type_flags):
37383 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
37384 * symtab.c (symtab_add_to_same_comdat_group,
37385 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
37386 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
37388 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
37389 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
37390 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
37391 (c6x_function_in_section_p): Likewise.
37392 * config/darwin.c (machopic_select_section): Likewise.
37393 * config/arm/arm.c (arm_function_in_section_p): Likewise.
37394 * config/mips/mips.c (mips_function_rodata_section): Likewise.
37395 * config/mep/mep.c (mep_select_section): LIkewise.
37396 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
37398 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
37400 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
37401 EH region of calls to pure functions that can throw an exception.
37402 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
37403 (copy_reference_ops_from_call): Also copy the EH region of the call if
37404 it can throw an exception.
37406 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37408 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
37409 nested VEC_SELECTs that are inverses of each other.
37411 2014-05-20 Richard Biener <rguenther@suse.de>
37413 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
37414 (extract_and_process_scc_for_name): not here.
37415 (cond_dom_walker::before_dom_children): Only process
37416 stmts that end the BB in interesting ways.
37417 (run_scc_vn): Mark param uses as visited.
37419 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37421 * config/arm/arm.md (arith_shiftsi): Do not predicate for
37424 2014-05-20 Nick Clifton <nickc@redhat.com>
37426 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
37427 (msp430_gimplify_va_arg_expr): New function.
37428 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
37430 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
37431 operand 0 in order to prevent confusion about the number of
37432 registers involved.
37434 2014-05-20 Richard Biener <rguenther@suse.de>
37436 PR tree-optimization/61221
37437 * tree-ssa-pre.c (el_to_update): Remove.
37438 (eliminate_dom_walker::before_dom_children): Handle released
37439 VDEFs by value-numbering them to the associated VUSE. Update
37440 stmt immediately for substituted call address.
37441 (eliminate): Remove delayed stmt updating code.
37442 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
37443 possibly late re-numbered vuses.
37444 (vn_reference_lookup_2): Adjust.
37445 (vn_reference_lookup_pieces): Likewise.
37446 (vn_reference_lookup): Likewise.
37448 2014-05-20 Richard Biener <rguenther@suse.de>
37450 * config.gcc: Remove need_64bit_hwint.
37451 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
37452 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
37454 * config.in: Regenerate.
37455 * configure: Likewise.
37457 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
37459 * doc/extend.texi: Create Label Attributes section,
37460 move all label attributes into it and reference it.
37462 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
37464 * arm.c (thumb1_reorg): When scanning backwards skip anything
37465 that's not a proper insn.
37467 2014-05-19 Richard Biener <rguenther@suse.de>
37469 PR tree-optimization/61221
37470 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
37471 Do nothing for unreachable blocks.
37472 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
37473 Improve unreachability detection.
37475 2014-05-19 Richard Biener <rguenther@suse.de>
37477 PR tree-optimization/61209
37478 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
37480 2014-05-19 Nick Clifton <nickc@redhat.com>
37482 * except.c (init_eh): Fix computation of builtin setjmp buffer
37483 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
37485 2014-05-19 Richard Biener <rguenther@suse.de>
37487 PR tree-optimization/61184
37488 * tree-vrp.c (is_negative_overflow_infinity): Use
37489 TREE_OVERFLOW_P and do that check first.
37490 (is_positive_overflow_infinity): Likewise.
37491 (is_overflow_infinity): Likewise.
37492 (vrp_operand_equal_p): Properly treat operands with
37493 differing overflow as not equal.
37495 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
37497 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
37498 shift simplification where it was intended.
37500 2014-05-19 Christian Bruel <christian.bruel@st.com>
37503 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
37505 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
37508 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
37511 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37513 * reg-notes.def (CROSSING_JUMP): Likewise.
37514 * rtl.h (rtx_def): Update comment for jump flag.
37515 (CROSSING_JUMP_P): Define.
37516 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
37517 of a REG_CROSSING_JUMP note.
37518 * cfghooks.c (tidy_fallthru_edges): Likewise.
37519 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
37520 * emit-rtl.c (try_split): Likewise.
37521 * haifa-sched.c (sched_create_recovery_edges): Likewise.
37522 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
37523 * jump.c (redirect_jump_2): Likewise.
37524 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
37525 (relax_delay_slots): Likewise.
37526 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
37527 (bbit_di): Likewise.
37528 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
37529 * config/sh/sh.md (jump_compact): Likewise.
37530 * bb-reorder.c (rotate_loop): Likewise.
37531 (pass_duplicate_computed_gotos::execute): Likewise.
37532 (add_reg_crossing_jump_notes): Rename to...
37533 (update_crossing_jump_flags): ...this.
37534 (pass_partition_blocks::execute): Update accordingly.
37536 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37538 * tree.h: Remove extraneous template <>.
37540 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37542 * ipa.c (symtab_remove_unreachable_nodes): Remove
37543 symbol from comdat group if its body was eliminated.
37544 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
37545 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
37546 (symtab_unregister_node): ... this one.
37547 (verify_symtab_base): More strict checking of comdats.
37548 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
37550 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37552 * tree-pass.h (make_pass_ipa_comdats): New pass.
37553 * timevar.def (TV_IPA_COMDATS): New timevar.
37554 * passes.def (pass_ipa_comdats): Add.
37555 * Makefile.in (OBJS): Add ipa-comdats.o
37556 * ipa-comdats.c: New file.
37558 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37560 * ipa.c (update_visibility_by_resolution_info): New function.
37561 (function_and_variable_visibility): Use it.
37563 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37565 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
37567 (FOR_EACH_DEFINED_SYMBOL): New macro.
37568 (varpool_first_static_initializer, varpool_next_static_initializer,
37569 varpool_first_defined_variable, varpool_next_defined_variable):
37571 (symtab_in_same_comdat_p): Correctly deal with inline functions.
37573 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37575 * ggc-page.c (ggc_handle_finalizers): Add comment.
37577 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37579 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
37580 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
37581 (ggc_internal_cleared_alloc): Likewise.
37582 * ggc-page.c (finalizer): New class.
37583 (vec_finalizer): Likewise.
37584 (globals::finalizers): New member.
37585 (globals::vec_finalizers): Likewise.
37586 (ggc_internal_alloc): Record the finalizer if any for the block being
37588 (ggc_handle_finalizers): New function.
37589 (ggc_collect): Call ggc_handle_finalizers.
37590 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
37592 (ggc_internal_cleared_alloc): Likewise.
37593 (finalize): New function.
37594 (need_finalization_p): Likewise.
37595 (ggc_alloc): Install the type's destructor as the finalizer if it
37596 might do something.
37597 (ggc_cleared_alloc): Likewise.
37598 (ggc_vec_alloc): Likewise.
37599 (ggc_cleared_vec_alloc): Likewise.
37601 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37603 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
37605 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37607 * alias.c (record_alias_subset): Adjust.
37608 * bitmap.c (bitmap_element_allocate): Likewise.
37609 (bitmap_gc_alloc_stat): Likewise.
37610 * cfg.c (init_flow): Likewise.
37611 (alloc_block): Likewise.
37612 (unchecked_make_edge): Likewise.
37613 * cfgloop.c (alloc_loop): Likewise.
37614 (flow_loops_find): Likewise.
37615 (rescan_loop_exit): Likewise.
37616 * cfgrtl.c (init_rtl_bb_info): Likewise.
37617 * cgraph.c (insert_new_cgraph_node_version): Likewise.
37618 (cgraph_allocate_node): Likewise.
37619 (cgraph_create_edge_1): Likewise.
37620 (cgraph_allocate_init_indirect_info): Likewise.
37621 * cgraphclones.c (cgraph_clone_edge): Likewise.
37622 * cgraphunit.c (add_asm_node): Likewise.
37623 (init_lowered_empty_function): Likewise.
37624 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
37625 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
37626 (alpha_use_linkage): Likewise.
37627 * config/arc/arc.c (arc_init_machine_status): Likewise.
37628 * config/arm/arm.c (arm_init_machine_status): Likewise.
37629 * config/avr/avr.c (avr_init_machine_status): Likewise.
37630 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
37631 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
37632 * config/cris/cris.c (cris_init_machine_status): Likewise.
37633 * config/darwin.c (machopic_indirection_name): Likewise.
37634 (darwin_build_constant_cfstring): Likewise.
37635 (darwin_enter_string_into_cfstring_table): Likewise.
37636 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
37637 * config/frv/frv.c (frv_init_machine_status): Likewise.
37638 * config/i386/i386.c (get_dllimport_decl): Likewise.
37639 (ix86_init_machine_status): Likewise.
37640 (assign_386_stack_local): Likewise.
37641 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
37642 (i386_pe_maybe_record_exported_symbol): Likewise.
37643 (i386_pe_record_stub): Likewise.
37644 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
37645 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
37646 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
37647 (m32c_note_pragma_address): Likewise.
37648 * config/mep/mep.c (mep_init_machine_status): Likewise.
37649 (mep_note_pragma_flag): Likewise.
37650 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
37651 (mips16_local_alias): Likewise.
37652 (mips_init_machine_status): Likewise.
37653 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
37654 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
37655 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
37656 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
37657 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
37658 * config/pa/pa.c (pa_init_machine_status): Likewise.
37659 (pa_get_deferred_plabel): Likewise.
37660 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
37661 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
37662 (rs6000_init_machine_status): Likewise.
37663 (output_toc): Likewise.
37664 * config/s390/s390.c (s390_init_machine_status): Likewise.
37665 * config/score/score.c (score_output_external): Likewise.
37666 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
37667 * config/spu/spu.c (spu_init_machine_status): Likewise.
37668 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
37669 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
37670 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
37671 * coverage.c (coverage_end_function): Likewise.
37672 * dbxout.c (dbxout_init): Likewise.
37673 * doc/gty.texi: Don't mention variable_size attribute.
37674 * dwarf2cfi.c (new_cfi): Adjust.
37675 (new_cfi_row): Likewise.
37676 (copy_cfi_row): Likewise.
37677 (create_cie_data): Likewise.
37678 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
37679 (new_loc_descr): Likewise.
37680 (find_AT_string_in_table): Likewise.
37681 (add_addr_table_entry): Likewise.
37682 (new_die): Likewise.
37683 (add_var_loc_to_decl): Likewise.
37684 (clone_die): Likewise.
37685 (clone_as_declaration): Likewise.
37686 (break_out_comdat_types): Likewise.
37687 (new_loc_list): Likewise.
37688 (add_loc_descr_to_each): Likewise.
37689 (add_location_or_const_value_attribute): Likewise.
37690 (add_linkage_name): Likewise.
37691 (lookup_filename): Likewise.
37692 (dwarf2out_var_location): Likewise.
37693 (new_line_info_table): Likewise.
37694 (dwarf2out_init): Likewise.
37695 (mem_loc_descriptor): Likewise.
37696 (loc_descriptor): Likewise.
37697 (add_const_value_attribute): Likewise.
37698 (tree_add_const_value_attribute): Likewise.
37699 (comp_dir_string): Likewise.
37700 (dwarf2out_vms_debug_main_pointer): Likewise.
37701 (string_cst_pool_decl): Likewise.
37702 * emit-rtl.c (set_mem_attrs): Likewise.
37703 (get_reg_attrs): Likewise.
37704 (start_sequence): Likewise.
37705 (init_emit): Likewise.
37706 (init_emit_regs): Likewise.
37707 * except.c (init_eh_for_function): Likewise.
37708 (gen_eh_region): Likewise.
37709 (gen_eh_region_catch): Likewise.
37710 (gen_eh_landing_pad): Likewise.
37711 (add_call_site): Likewise.
37712 * function.c (add_frame_space): Likewise.
37713 (insert_temp_slot_address): Likewise.
37714 (assign_stack_temp_for_type): Likewise.
37715 (get_hard_reg_initial_val): Likewise.
37716 (allocate_struct_function): Likewise.
37717 (prepare_function_start): Likewise.
37718 (types_used_by_var_decl_insert): Likewise.
37719 * gengtype.c (variable_size_p): Remove function.
37720 (enum alloc_quantity): Remove enum.
37721 (write_typed_alloc_def): Remove function.
37722 (write_typed_struct_alloc_def): Likewise.
37723 (write_typed_typedef_alloc_def): Likewise.
37724 (write_typed_alloc_defns): Likewise.
37726 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
37727 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
37728 * ggc.h (ggc_alloc): new function.
37729 (ggc_cleared_alloc): Likewise.
37730 (ggc_vec_alloc): Template on type of vector element, and remove
37731 element size argument.
37732 (ggc_cleared_vec_alloc): Likewise.
37733 * gimple.c (gimple_build_omp_for): Adjust.
37734 (gimple_copy): Likewise.
37735 * ipa-cp.c (get_replacement_map): Likewise.
37736 (find_aggregate_values_for_callers_subset): Likewise.
37737 (known_aggs_to_agg_replacement_list): Likewise.
37738 * ipa-devirt.c (get_odr_type): Likewise.
37739 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
37740 (read_agg_replacement_chain): Likewise.
37741 * loop-iv.c (get_simple_loop_desc): Likewise.
37742 * lto-cgraph.c (input_node_opt_summary): Likewise.
37743 * lto-section-in.c (lto_new_in_decl_state): Likewise.
37744 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
37745 (input_eh_region): Likewise.
37746 (input_eh_lp): Likewise.
37747 (input_cfg): Likewise.
37748 * optabs.c (set_optab_libfunc): Likewise.
37749 (init_tree_optimization_optabs): Likewise.
37750 (set_conv_libfunc): Likewise.
37751 * passes.c (do_per_function_toporder): Likewise.
37752 * rtl.h: Don't use variable_size gty attribute.
37753 * sese.c (if_region_set_false_region): Adjust.
37754 * stringpool.c (gt_pch_save_stringpool): Likewise.
37755 * target-globals.c (save_target_globals): Likewise.
37756 * toplev.c (general_init): Likewise.
37757 * trans-mem.c (record_tm_replacement): Likewise.
37758 (split_bb_make_tm_edge): Likewise.
37759 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37760 * tree-data-ref.h (lambda_vector_new): Likewise.
37761 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
37762 * tree-iterator.c (tsi_link_before): Likewise.
37763 (tsi_link_after): Likewise.
37764 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
37765 * tree-ssa-loop-niter.c (record_estimate): Likewise.
37766 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
37767 * tree-ssa-operands.h: Don't use variable_size gty attribute.
37768 * tree-ssa.c (init_tree_ssa): Adjust.
37769 * tree-ssanames.c (set_range_info): Likewise.
37770 (get_ptr_info): Likewise.
37771 (duplicate_ssa_name_ptr_info): Likewise.
37772 (duplicate_ssa_name_range_info): Likewise.
37773 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
37774 (unpack_ts_fixed_cst_value_fields): Likewise.
37775 * tree.c (build_fixed): Likewise.
37776 (build_real): Likewise.
37777 (build_string): Likewise.
37778 (decl_priority_info): Likewise.
37779 (decl_debug_expr_insert): Likewise.
37780 (decl_value_expr_insert): Likewise.
37781 (decl_debug_args_insert): Likewise.
37782 (type_hash_add): Likewise.
37783 (build_omp_clause): Likewise.
37784 * ubsan.c (decl_for_type_insert): Likewise.
37785 * varasm.c (get_unnamed_section): Likewise.
37786 (get_noswitch_section): Likewise.
37787 (get_section): Likewise.
37788 (get_block_for_section): Likewise.
37789 (create_block_symbol): Likewise.
37790 (build_constant_desc): Likewise.
37791 (create_constant_pool): Likewise.
37792 (force_const_mem): Likewise.
37793 (record_tm_clone_pair): Likewise.
37794 * varpool.c (varpool_create_empty_node): Likewise.
37796 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37798 * dwarf2out.c (tree_add_const_value_attribute): Call
37799 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
37800 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
37801 instead of ggc_internal_<x>alloc_stat.
37802 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
37803 (ggc_realloc): Likewise.
37804 * ggc-none.c (ggc_internal_alloc): Likewise.
37805 (ggc_internal_cleared_alloc): Likewise.
37806 * ggc-page.c: Likewise.
37807 * ggc.h (ggc_internal_alloc_stat): Likewise.
37808 (ggc_internal_alloc): Remove macro.
37809 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
37810 (ggc_internal_cleared_alloc): Remove macro.
37811 (GGC_RESIZEVEC): Adjust.
37812 (ggc_resizevar): Remove macro.
37813 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
37814 (ggc_internal_cleared_vec_alloc_stat): Likewise.
37815 (ggc_internal_vec_cleared_alloc): Remove macro.
37816 (ggc_alloc_atomic_stat): Drop _stat suffix.
37817 (ggc_alloc_atomic): Remove macro.
37818 (ggc_alloc_cleared_atomic): Remove macro.
37819 (ggc_alloc_string_stat): Drop _stat suffix.
37820 (ggc_alloc_string): Remove macro.
37821 (ggc_alloc_rtx_def_stat): Adjust.
37822 (ggc_alloc_tree_node_stat): Likewise.
37823 (ggc_alloc_cleared_tree_node_stat): Likewise.
37824 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
37825 (ggc_alloc_cleared_simd_clone_stat): Likewise.
37826 * gimple.c (gimple_build_omp_for): Likewise.
37827 (gimple_copy): Likewise.
37828 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
37829 * toplev.c (realloc_for_line_map): Adjust.
37830 * tree-data-ref.h (lambda_vector_new): Likewise.
37831 * tree-phinodes.c (allocate_phi_node): Likewise.
37832 * tree.c (grow_tree_vec_stat): Likewise.
37833 * vec.h (va_gc::reserve): Adjust.
37835 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
37837 * config/microblaze/microblaze.c (break_handler): New Declaration.
37838 (microblaze_break_function_p,microblaze_is_break_handler): New.
37839 (compute_frame_size): Use microblaze_break_function_p.
37840 Add the test of break_handler.
37841 (microblaze_function_prologue) : Add the test of variable
37842 break_handler. Check the fnname by BREAK_HANDLER_NAME.
37843 (microblaze_function_epilogue) : Add the test of break_handler.
37844 (microblaze_globalize_label) : Add the test of break_handler.
37845 Check the name by BREAK_HANDLER_NAME.
37847 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
37849 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
37850 microblaze_is_break_handler test.
37851 (call_internal1,call_value_intern): Use microblaze_break_function_p.
37852 Use SYMBOL_REF_DECL.
37854 * config/microblaze/microblaze-protos.h
37855 (microblaze_break_function_p,microblaze_is_break_handler):
37858 * doc/extend.texi (MicroBlaze break_handler Functions): Document
37859 new MicroBlaze break_handler functions.
37861 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37863 * doc/extend.texi (Size of an asm): Move node text according
37864 to its @menu entry position.
37866 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
37868 PR tree-optimization/61140
37869 PR tree-optimization/61150
37870 PR tree-optimization/61197
37871 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
37873 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37875 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
37877 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
37879 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
37880 __SIZEOF_INT128__ is defined.
37882 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37884 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
37885 (rs6000_delegitimize_address): Use it.
37887 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37889 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
37890 inplace argument. Store the new address in the original MEM when true.
37891 * emit-rtl.c (change_address_1): Likewise.
37892 (adjust_address_1, adjust_automodify_address_1, offset_address):
37893 Update accordingly.
37894 * rtl.h (plus_constant): Add an inplace argument.
37895 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
37896 when true. Avoid generating (plus X (const_int 0)).
37897 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
37898 in-place. Pass true to plus_constant.
37899 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
37901 2014-05-16 Dehao Chen <dehao@google.com>
37903 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
37905 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37908 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
37910 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
37912 2014-05-16 Dehao Chen <dehao@google.com>
37914 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
37915 optimize_function_for_size_p.
37916 * regs.h (REG_FREQ_FROM_BB): Likewise.
37918 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37921 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
37922 negt_reg_operand cases.
37923 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
37925 * config/sh/predicates.md (cbranch_treg_value): Simplify.
37927 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37929 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
37932 2014-05-16 David Malcolm <dmalcolm@redhat.com>
37935 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37937 * tree-cfg.c (dump_function_to_file): Dump the return type of
37938 functions, in a line to itself before the function body, mimicking
37939 the layout of a C function.
37941 2014-05-16 Dehao Chen <dehao@google.com>
37943 * cfghooks.c (make_forwarder_block): Use direct computation to
37944 get fall-through edge's count and frequency.
37946 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
37948 * config/arc/arc.c (arc_init): Fix typo in error message.
37949 * config/i386/i386.c (ix86_expand_builtin): Likewise.
37950 (split_stack_prologue_scratch_regno): Likewise.
37951 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
37952 word from error message.
37954 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37956 * ira-costs.c: Fix typo in comment.
37958 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
37960 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
37962 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
37964 * varpool.c (dump_varpool_node): Dump write-only flag.
37965 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
37967 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
37968 write-only variables.
37969 * ipa.c (process_references): New function.
37970 (set_readonly_bit): New function.
37971 (set_writeonly_bit): New function.
37972 (clear_addressable_bit): New function.
37973 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
37974 fix handling of aliases.
37975 * cgraph.h (struct varpool_node): Add writeonly flag.
37977 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
37979 PR rtl-optimization/60969
37980 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
37981 Calculate costs for this case.
37983 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
37985 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
37986 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
37988 2014-05-16 Richard Biener <rguenther@suse.de>
37990 PR tree-optimization/61194
37991 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
37992 bool patterns ending in a COND_EXPR.
37994 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
37996 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
37998 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38000 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
38001 where we were unable to cost an RTX.
38003 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38005 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
38008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38009 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38011 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
38013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38014 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38016 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
38017 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
38019 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38020 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38022 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
38025 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38026 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38028 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38031 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38032 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38034 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
38035 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
38037 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38038 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38040 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38041 rotates and shifts.
38043 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38044 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
38047 ZERO_EXTEND and SIGN_EXTEND better.
38049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
38053 logical operations.
38055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38056 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
38059 costs when costing loads and stores to memory.
38061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38062 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
38064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
38067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
38071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38072 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38074 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
38076 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
38078 (aarch64_rtx_mult_cost): New.
38079 (aarch64_rtx_costs): Use it, refactor as appropriate.
38081 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38082 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38084 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
38085 emit instructions, return number of instructions which would
38087 (aarch64_add_constant): Update call to aarch64_build_constant.
38088 (aarch64_output_mi_thunk): Likewise.
38089 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
38092 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38094 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
38095 (TARGET_RTX_COSTS): Call it.
38097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38099 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
38100 (cortexa57_vector_cost): Likewise.
38101 (cortexa57_tunings): Use them.
38103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38105 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
38106 (cpu_addrcost_table): Use it.
38107 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
38108 (aarch64_address_cost): Rewrite using aarch64_classify_address,
38111 2014-05-16 Richard Biener <rguenther@suse.de>
38113 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
38114 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
38115 (visit_phi): Ignore edges marked as not executable.
38116 (class cond_dom_walker): New.
38117 (cond_dom_walker::before_dom_children): Value-number
38118 control statements and mark successor edges as not
38119 executable if possible.
38120 (run_scc_vn): First walk all control statements in
38121 dominator order, marking edges as not executable.
38122 * tree-inline.c (copy_edges_for_bb): Be not confused
38123 about random edge flags.
38125 2014-05-16 Richard Biener <rguenther@suse.de>
38127 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
38129 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
38132 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
38133 (__TM_simple_begin): Use it.
38134 (__TM_begin): Likewise.
38136 2014-05-15 Martin Jambor <mjambor@suse.cz>
38139 * ipa-prop.c (update_indirect_edges_after_inlining): Check
38140 type_preserved flag when the indirect edge is polymorphic.
38142 2014-05-15 Martin Jambor <mjambor@suse.cz>
38144 PR tree-optimization/61090
38145 * tree-sra.c (sra_modify_expr): Pass the current gsi to
38146 build_ref_for_model.
38148 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38150 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
38151 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
38153 2014-05-15 Jakub Jelinek <jakub@redhat.com>
38155 PR tree-optimization/61158
38156 * fold-const.c (fold_binary_loc): If X is zero-extended and
38157 shiftc >= prec, make sure zerobits is all ones instead of
38158 invoking undefined behavior.
38160 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38162 * regcprop.h: New file.
38163 * regcprop.c (skip_debug_insn_p): New decl.
38164 (replace_oldest_value_reg): Check skip_debug_insn_p.
38165 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
38166 * shrink-wrap.c: Include regcprop.h.
38167 (prepare_shrink_wrap): Call
38168 copyprop_hardreg_forward_bb_without_debug_insn.
38170 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38172 * shrink-wrap.h: Update comment.
38173 * shrink-wrap.c: Update comment.
38174 (next_block_for_reg): Rename to live_edge_for_reg.
38175 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
38176 (move_insn_for_shrink_wrap): Split live_edge.
38177 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
38179 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38181 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
38183 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
38184 * config/sparc/sparc.md (fptype_ut699): New attribute.
38185 (in_branch_delay): Return false if -mfix-ut699 is specified and
38186 fptype_ut699 is set to single.
38187 (truncdfsf2): Add fptype_ut699 attribute.
38188 (fix_truncdfsi2): Likewise.
38189 (floatsisf2): Change fptype attribute.
38190 (fix_truncsfsi2): Likewise.
38191 (negtf2_notv9): Delete.
38192 (negtf2_v9): Likewise.
38193 (negtf2_hq): New instruction.
38194 (negtf2): New instruction and splitter.
38195 (negdf2_notv9): Rewrite.
38196 (abstf2_notv9): Delete.
38197 (abstf2_hq_v9): Likewise.
38198 (abstf2_v9): Likewise.
38199 (abstf2_hq): New instruction.
38200 (abstf2): New instruction and splitter.
38201 (absdf2_notv9): Rewrite.
38203 2014-05-14 Cary Coutant <ccoutant@google.com>
38206 * opts.c (common_handle_option): Don't special-case "-g".
38207 (set_debug_level): Default to at least level 2 with "-g".
38209 2014-05-14 DJ Delorie <dj@redhat.com>
38211 * config/msp430/msp430.c (msp430_builtin): Add
38212 MSP430_BUILTIN_DELAY_CYCLES.
38213 (msp430_init_builtins): Register void __delay_cycles(long long).
38214 (msp430_builtin_decl): Add it.
38215 (cg_magic_constant): New.
38216 (msp430_expand_delay_cycles): New.
38217 (msp430_expand_builtin): Call it.
38218 (msp430_print_operand_raw): Change integer printing from "int" to
38220 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
38221 (delay_cycles_start): New.
38222 (delay_cycles_end): New.
38223 (delay_cycles_32): New.
38224 (delay_cycles_32x): New.
38225 (delay_cycles_16): New.
38226 (delay_cycles_16x): New.
38227 (delay_cycles_2): New.
38228 (delay_cycles_1): New.
38229 * doc/extend.texi: Document __delay_cycles().
38231 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
38233 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
38234 length attribute computation.
38236 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
38239 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
38241 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
38244 * config/sparc/sparc.md: Fix types of low and high in DI constant
38245 splitter. Use gen_int_mode in some other splitters.
38247 2014-05-14 Martin Jambor <mjambor@suse.cz>
38250 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
38252 2014-05-14 James Norris <jnorris@codesourcery.com>
38254 * omp-low.c (expand_parallel_call): Remove shadow variable.
38255 (expand_omp_taskreg): Likewise.
38257 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
38259 * common/config/i386/i386-common.c
38260 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
38261 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
38262 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
38263 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
38264 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
38265 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
38266 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
38267 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
38268 xsavecintrin.h, xsavesintrin.h.
38269 (x86_64-*-*): Ditto.
38270 * config/i386/clflushoptintrin.h: New.
38271 * config/i386/xsavecintrin.h: Ditto.
38272 * config/i386/xsavesintrin.h: Ditto.
38273 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
38274 (bit_XSAVES): Ditto.
38275 (bit_XSAVES): Ditto.
38276 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
38277 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
38279 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38280 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
38281 OPTION_MASK_ISA_XSAVES.
38282 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
38283 -mxsavec, -mxsaves.
38284 (PTA_CLFLUSHOPT) Define.
38285 (PTA_XSAVEC): Ditto.
38286 (PTA_XSAVES): Ditto.
38287 (ix86_option_override_internal): Handle new options.
38288 (ix86_valid_target_attribute_inner_p): Ditto.
38289 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
38290 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
38291 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
38292 (bdesc_special_args): Add __builtin_ia32_xsaves,
38293 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
38294 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
38295 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
38296 (ix86_expand_builtin): Handle new builtins.
38297 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
38298 (TARGET_CLFLUSHOPT_P): Ditto.
38299 (TARGET_XSAVEC): Ditto.
38300 (TARGET_XSAVEC_P): Ditto.
38301 (TARGET_XSAVES): Ditto.
38302 (TARGET_XSAVES_P): Ditto.
38303 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
38304 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
38305 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
38307 (ANY_XRSTOR64): Ditto.
38309 (xrstor): Change into <xrstor>.
38310 (xrstor_rex64): Change into <xrstor>_rex64.
38311 (xrstor64): Change into <xrstor>64
38313 * config/i386/i386.opt (mclflushopt): New.
38316 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
38318 * doc/invoke.texi: Document new options.
38320 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38322 PR rtl-optimization/60866
38323 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
38324 Default it to -1. Pass it down to init_simplejump_data.
38325 (init_simplejump_data): New parameter old_seqno. Pass it down
38326 to get_seqno_for_a_jump.
38327 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
38328 initializing new jump seqno as a last resort. Add comment.
38329 (sel_redirect_edge_and_branch): Save old seqno of the conditional
38330 jump and pass it down to sel_init_new_insn.
38331 (sel_redirect_edge_and_branch_force): Likewise.
38333 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
38335 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
38336 shifted values to avoid build warning.
38338 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38340 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
38341 * cfgrtl.c (rtl_merge_blocks): Fix comment.
38342 (cfg_layout_merge_blocks): Likewise.
38343 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
38345 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38347 PR rtl-optimization/60901
38348 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
38349 bb predecessor belongs to the same scheduling region. Adjust comment.
38351 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
38353 * doc/sourcebuild.texi: (dfp_hw): Document.
38354 (p8vector_hw): Likewise.
38355 (powerpc_eabi_ok): Likewise.
38356 (powerpc_elfv2): Likewise.
38357 (powerpc_htm_ok): Likewise.
38358 (ppc_recip_hw): Likewise.
38359 (vsx_hw): Likewise.
38361 2014-05-13 Cary Coutant <ccoutant@google.com>
38363 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
38365 2014-05-13 David Malcolm <dmalcolm@redhat.com>
38367 * gengtype-parse.c (require3): Eliminate in favor of...
38369 (require_template_declaration): Update to support optional single *
38372 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
38373 (create_user_defined_type): Handle a single level of explicit
38374 pointerness within template arguments.
38375 (struct write_types_data): Add field "kind".
38376 (filter_type_name): Handle "*" character.
38377 (write_user_func_for_structure_ptr): Require a write_types_data
38378 rather than just a prefix string, so that we can look up the kind
38379 of the wtd and use it as an index into wrote_user_func_for_ptr,
38380 ensuring that such functions are written at most once. Support
38381 subclasses by invoking the marking function of the ultimate base class.
38382 (write_user_func_for_structure_body): Require a write_types_data
38383 rather than just a prefix string, so that we can pass this to
38384 write_user_func_for_structure_ptr.
38385 (write_func_for_structure): Likewise.
38386 (ggc_wtd): Add initializer of new "kind" field.
38387 (pch_wtd): Likewise.
38389 * gengtype.h (enum write_types_kinds): New.
38390 (struct type): Add field wrote_user_func_for_ptr to the "s"
38393 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38395 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
38396 instead of const_binop.
38397 (fold_binary_loc): Likewise.
38399 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38401 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
38402 calculation to match get_ref_base_and_extent.
38404 2014-05-13 Catherine Moore <clm@codesourcery.com>
38405 Sandra Loosemore <sandra@codesourcery.com>
38407 * configure.ac: Fix assembly for explicit JALR relocation check.
38408 * configure: Regenerate.
38410 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38412 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
38413 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
38414 Remove associated type declarations and initialisations.
38415 (arm_expand_neon_builtin): Likewise.
38416 (neon_emit_pair_result_insn): Delete.
38417 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
38418 * config/arm/neon.md (neon_vtrn<mode>): Delete.
38419 (neon_vzip<mode>): Likewise.
38420 (neon_vuzp<mode>): Likewise.
38422 2014-05-13 Richard Biener <rguenther@suse.de>
38425 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
38426 it needs revisiting whether the call still may be tail-called.
38428 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38430 * rtl.def (SYMBOL_REF): Remove middle "0" field.
38431 * rtl.h (block_symbol): Reduce number of fields to 2.
38432 (rtx_def): Add u2.symbol_ref_flags.
38433 (SYMBOL_REF_FLAGS): Use it.
38434 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
38435 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
38436 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
38437 Lower index of SYMBOL_REF_DATA.
38438 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
38439 Print SYMBOL_REF_FLAGS at the same time.
38440 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
38442 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38444 * rtl.def (VAR_LOCATION): Remove "i" field.
38445 * rtl.h (rtx_def): Add u2.var_location_status.
38446 (PAT_VAR_LOCATION_STATUS): Use it.
38447 (gen_rtx_VAR_LOCATION): Declare.
38448 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
38449 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
38450 * var-tracking.c (emit_note_insn_var_location): Remove casts.
38452 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38454 * rtl.def (scratch): Fix outdated comment and remove "0" field.
38455 * gengtype.c (adjust_field_rtx_def): Update accordingly.
38457 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38459 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
38460 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
38461 * rtl.h (rtx_def): Add insn_uid to u2 field.
38462 (RTX_FLAG_CHECK8): Delete in favor of...
38463 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
38464 (INSN_DELETED_P): Update accordingly.
38465 (INSN_UID): Use u2.insn_uid.
38466 (INSN_CHAIN_CODE_P): Define.
38467 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
38468 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
38469 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
38470 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
38471 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
38472 indices accordingly.
38473 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
38474 Update indices for insn-chain rtxes.
38475 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
38476 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
38477 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
38478 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
38479 * combine.c (try_combine): Likewise.
38480 * ira.c (setup_prohibited_mode_move_regs): Likewise.
38482 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38484 * rtl.def (REG): Remove middle field.
38485 * rtl.h (rtx_def): Add orignal_regno to u2.
38486 (ORIGINAL_REGNO): Use it instead of field 1.
38487 (REG_ATTRS): Lower field index accordingly.
38488 * gengtype.c (adjust_field_rtx_def): Remove handling of
38489 ORIGINAL_REGNO. Move REG_ATTRS index down.
38490 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
38491 code that prints the REGNO.
38493 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38495 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
38498 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38500 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
38502 2014-05-13 Bin Cheng <bin.cheng@arm.com>
38504 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
38505 (alloc_iv): Lower base expressions containing ADDR_EXPR.
38507 2014-05-13 Ian Bolton <ian.bolton@arm.com>
38509 * config/aarch64/aarch64-protos.h
38510 (aarch64_hard_regno_caller_save_mode): New prototype.
38511 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
38513 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
38515 2014-05-13 Christian Bruel <christian.bruel@st.com>
38517 * target.def (mode_switching): New hook vector.
38518 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
38519 (mode_exit, modepriority_to_mode): Likewise.
38520 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
38521 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38522 * target.h: Include tm.h and hard-reg-set.h.
38523 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
38524 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
38525 * doc/tm.texi Regenerate.
38526 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38527 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38528 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
38529 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
38530 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38531 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38532 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
38533 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
38534 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
38535 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
38536 (ix86_emit_mode_set): Hookify.
38537 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
38539 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38540 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
38541 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
38542 (epiphany_mode_priority_to_mode): Remove declaration.
38543 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
38544 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
38545 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
38547 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
38548 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
38549 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
38551 2014-05-13 Jakub Jelinek <jakub@redhat.com>
38554 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
38555 is const0_rtx, return immediately. Don't test count == 0 when
38558 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38560 * Makefile.in: add shrink-wrap.o.
38561 * config/i386/i386.c: include "shrink-wrap.h"
38562 * function.c: Likewise.
38563 (requires_stack_frame_p, next_block_for_reg,
38564 move_insn_for_shrink_wrap, prepare_shrink_wrap,
38565 dup_block_and_redirect): Move to shrink-wrap.c
38566 (thread_prologue_and_epilogue_insns): Extract three code segments
38567 as functions in shrink-wrap.c
38568 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
38570 * shrink-wrap.c: New file.
38571 * shrink-wrap.h: New file.
38573 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38575 * doc/extend.texi: Reflect current numbers of pragmas. Remove
38576 reference to Solaris.
38578 2014-05-12 Mike Stump <mikestump@comcast.net>
38581 * genattrtab.c (filename): Add.
38582 (convert_set_attr_alternative): Improve error message.
38583 (check_defs): Restore read_md_filename for error messages.
38584 (gen_insn): Save filename.
38586 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
38588 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
38589 -fno-local-ivars and -fivar-visibility.
38590 * c-family/c.opt: Make -Wshadow also implicitly enable
38593 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38595 * doc/tm.texi: Remove reference to deleted macro.
38596 * doc/tm.texi.in: Likewise.
38598 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38601 * config/avr/avr.c (avr_out_store_psi): Use correct constant
38604 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
38607 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
38608 * config/arm/aout.h (License): Same.
38609 * config/arm/bpabi.h (License): Same.
38610 * config/arm/elf.h (License): Same.
38611 * config/arm/linux-elf.h (License): Same.
38612 * config/arm/linux-gas.h (License): Same.
38613 * config/arm/netbsd-elf.h (License): Same.
38614 * config/arm/uclinux-eabi.h (License): Same.
38615 * config/arm/uclinux-elf.h (License): Same.
38616 * config/arm/vxworks.h (License): Same.
38618 2014-05-11 Jakub Jelinek <jakub@redhat.com>
38620 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
38621 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
38622 number of operands to 3.
38623 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
38624 * tree-nested.c (convert_nonlocal_omp_clauses,
38625 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
38626 * gimplify.c (gimplify_scan_omp_clauses): Handle
38627 OMP_CLAUSE_LINEAR_STMT.
38628 * omp-low.c (lower_rec_input_clauses): Fix typo.
38629 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
38630 cast between Fortran boolean_type_node and C _Bool if
38633 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
38635 PR tree-optimization/61136
38636 * wide-int.h (multiple_of_p): Define a version that doesn't return
38638 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
38639 integer_zerop/const_binop pair.
38640 (multiple_of_p): Likewise, converting both operands to widest_int
38643 2014-05-09 Teresa Johnson <tejohnson@google.com>
38645 * cgraphunit.c (analyze_functions): Use correct dump file.
38647 2014-05-09 Florian Weimer <fweimer@redhat.com>
38649 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
38651 (stack_protect_return_slot_p): New function.
38652 (expand_used_vars): Call stack_protect_decl_p and
38653 stack_protect_return_slot_p for -fstack-protector-strong.
38655 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
38656 Andrew Haley <aph@redhat.com>
38657 Richard Sandiford <rdsandiford@googlemail.com>
38659 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
38662 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
38664 PR middle-end/61111
38665 * fold-const.c (fold_binary_loc): Changed width of mask.
38667 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38669 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
38670 unsigned int initializers for regno_in, regno_out.
38672 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38675 * config/avr/avr.md (cc): Add new attribute set_vzn.
38676 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
38677 Set cc insn attribute to set_vzn instead of set_zn for alternatives
38678 with INC, DEC or NEG.
38679 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
38680 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
38681 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
38683 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38686 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38688 * wide-int.cc (UTItype): Define.
38689 (UDWtype): Define for appropriate W_TYPE_SIZE.
38691 2014-05-09 Richard Biener <rguenther@suse.de>
38693 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
38694 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
38695 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
38696 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
38697 ssa_propagate): Adjust.
38699 2014-05-08 Jeff Law <law@redhat.com>
38701 PR tree-optimization/61009
38702 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
38703 tri-state rather than a boolean. When a block is too big to
38704 thread through, inform caller via negative return value.
38705 (thread_across_edge): If a block was too big for normal threading,
38706 then it's too big for a joiner too, so remove temporary equivalences
38707 and return immediately.
38709 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
38710 Matthias Klose <doko@ubuntu.com>
38713 * optc-gen.awk: Fix option handling for -Wunused-parameter.
38715 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38718 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
38720 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38723 * config/alpha/alpha.c: Include gimple-iterator.h.
38724 (alpha_gimple_fold_builtin): New function. Move
38725 ALPHA_BUILTIN_UMULH folding from ...
38726 (alpha_fold_builtin): ... here.
38727 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
38729 2014-05-08 Wei Mi <wmi@google.com>
38732 * config/i386/i386.c (ix86_compute_frame_layout): Update
38733 preferred_stack_boundary for call, expanded from tls descriptor.
38734 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
38735 to depend on SP register.
38736 (*tls_local_dynamic_base_32_gnu): Ditto.
38737 (*tls_local_dynamic_32_once): Ditto.
38738 (tls_global_dynamic_64_<mode>): Set
38739 ix86_tls_descriptor_calls_expanded_in_cfun.
38740 (tls_local_dynamic_base_64_<mode>): Ditto.
38741 (tls_global_dynamic_32): Set
38742 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
38743 to depend on SP register.
38744 (tls_local_dynamic_base_32): Ditto.
38746 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38748 * config/arm/arm_neon.h: Update comment.
38749 * config/arm/neon-docgen.ml: Delete.
38750 * config/arm/neon-gen.ml: Delete.
38751 * doc/arm-neon-intrinsics.texi: Update comment.
38753 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38755 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
38757 (vand, vorr, veor, vorn, vbic): Remove.
38758 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
38760 (neon_vsub_unspec): Likewise.
38761 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
38763 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38765 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
38766 (vadd_s16): Likewise.
38767 (vadd_s32): Likewise.
38768 (vadd_f32): Likewise.
38769 (vadd_u8): Likewise.
38770 (vadd_u16): Likewise.
38771 (vadd_u32): Likewise.
38772 (vadd_s64): Likewise.
38773 (vadd_u64): Likewise.
38774 (vaddq_s8): Likewise.
38775 (vaddq_s16): Likewise.
38776 (vaddq_s32): Likewise.
38777 (vaddq_s64): Likewise.
38778 (vaddq_f32): Likewise.
38779 (vaddq_u8): Likewise.
38780 (vaddq_u16): Likewise.
38781 (vaddq_u32): Likewise.
38782 (vaddq_u64): Likewise.
38783 (vmul_s8): Likewise.
38784 (vmul_s16): Likewise.
38785 (vmul_s32): Likewise.
38786 (vmul_f32): Likewise.
38787 (vmul_u8): Likewise.
38788 (vmul_u16): Likewise.
38789 (vmul_u32): Likewise.
38790 (vmul_p8): Likewise.
38791 (vmulq_s8): Likewise.
38792 (vmulq_s16): Likewise.
38793 (vmulq_s32): Likewise.
38794 (vmulq_f32): Likewise.
38795 (vmulq_u8): Likewise.
38796 (vmulq_u16): Likewise.
38797 (vmulq_u32): Likewise.
38798 (vsub_s8): Likewise.
38799 (vsub_s16): Likewise.
38800 (vsub_s32): Likewise.
38801 (vsub_f32): Likewise.
38802 (vsub_u8): Likewise.
38803 (vsub_u16): Likewise.
38804 (vsub_u32): Likewise.
38805 (vsub_s64): Likewise.
38806 (vsub_u64): Likewise.
38807 (vsubq_s8): Likewise.
38808 (vsubq_s16): Likewise.
38809 (vsubq_s32): Likewise.
38810 (vsubq_s64): Likewise.
38811 (vsubq_f32): Likewise.
38812 (vsubq_u8): Likewise.
38813 (vsubq_u16): Likewise.
38814 (vsubq_u32): Likewise.
38815 (vsubq_u64): Likewise.
38816 (vand_s8): Likewise.
38817 (vand_s16): Likewise.
38818 (vand_s32): Likewise.
38819 (vand_u8): Likewise.
38820 (vand_u16): Likewise.
38821 (vand_u32): Likewise.
38822 (vand_s64): Likewise.
38823 (vand_u64): Likewise.
38824 (vandq_s8): Likewise.
38825 (vandq_s16): Likewise.
38826 (vandq_s32): Likewise.
38827 (vandq_s64): Likewise.
38828 (vandq_u8): Likewise.
38829 (vandq_u16): Likewise.
38830 (vandq_u32): Likewise.
38831 (vandq_u64): Likewise.
38832 (vorr_s8): Likewise.
38833 (vorr_s16): Likewise.
38834 (vorr_s32): Likewise.
38835 (vorr_u8): Likewise.
38836 (vorr_u16): Likewise.
38837 (vorr_u32): Likewise.
38838 (vorr_s64): Likewise.
38839 (vorr_u64): Likewise.
38840 (vorrq_s8): Likewise.
38841 (vorrq_s16): Likewise.
38842 (vorrq_s32): Likewise.
38843 (vorrq_s64): Likewise.
38844 (vorrq_u8): Likewise.
38845 (vorrq_u16): Likewise.
38846 (vorrq_u32): Likewise.
38847 (vorrq_u64): Likewise.
38848 (veor_s8): Likewise.
38849 (veor_s16): Likewise.
38850 (veor_s32): Likewise.
38851 (veor_u8): Likewise.
38852 (veor_u16): Likewise.
38853 (veor_u32): Likewise.
38854 (veor_s64): Likewise.
38855 (veor_u64): Likewise.
38856 (veorq_s8): Likewise.
38857 (veorq_s16): Likewise.
38858 (veorq_s32): Likewise.
38859 (veorq_s64): Likewise.
38860 (veorq_u8): Likewise.
38861 (veorq_u16): Likewise.
38862 (veorq_u32): Likewise.
38863 (veorq_u64): Likewise.
38864 (vbic_s8): Likewise.
38865 (vbic_s16): Likewise.
38866 (vbic_s32): Likewise.
38867 (vbic_u8): Likewise.
38868 (vbic_u16): Likewise.
38869 (vbic_u32): Likewise.
38870 (vbic_s64): Likewise.
38871 (vbic_u64): Likewise.
38872 (vbicq_s8): Likewise.
38873 (vbicq_s16): Likewise.
38874 (vbicq_s32): Likewise.
38875 (vbicq_s64): Likewise.
38876 (vbicq_u8): Likewise.
38877 (vbicq_u16): Likewise.
38878 (vbicq_u32): Likewise.
38879 (vbicq_u64): Likewise.
38880 (vorn_s8): Likewise.
38881 (vorn_s16): Likewise.
38882 (vorn_s32): Likewise.
38883 (vorn_u8): Likewise.
38884 (vorn_u16): Likewise.
38885 (vorn_u32): Likewise.
38886 (vorn_s64): Likewise.
38887 (vorn_u64): Likewise.
38888 (vornq_s8): Likewise.
38889 (vornq_s16): Likewise.
38890 (vornq_s32): Likewise.
38891 (vornq_s64): Likewise.
38892 (vornq_u8): Likewise.
38893 (vornq_u16): Likewise.
38894 (vornq_u32): Likewise.
38895 (vornq_u64): Likewise.
38897 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38899 * wide-int.cc (UTItype): Define.
38900 (UDWtype): Define for appropriate W_TYPE_SIZE.
38902 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
38904 PR tree-optimization/59100
38905 * tree-ssa-phiopt.c: Include tree-inline.h.
38906 (neutral_element_p, absorbing_element_p): New functions.
38907 (value_replacement): Handle conditional binary operations with a
38908 neutral or absorbing element.
38910 2014-05-08 Richard Biener <rguenther@suse.de>
38912 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
38913 folding the expression.
38914 (valueize_expr): Remove.
38915 (visit_reference_op_load): Do not valueize the result of
38917 (simplify_binary_expression): Likewise.
38918 (simplify_unary_expression): Likewise.
38920 2014-05-08 Richard Biener <rguenther@suse.de>
38922 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
38923 looking at TYPE_ARG_TYPES.
38925 2014-05-08 Richard Biener <rguenther@suse.de>
38927 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
38928 pointer propagation special-case.
38930 2014-05-08 Bin Cheng <bin.cheng@arm.com>
38932 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
38933 core part of address expressions.
38935 2014-05-08 Alan Modra <amodra@gmail.com>
38938 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
38939 loads and stores when -mno-strict-align at any alignment.
38940 (expand_block_clear): Similarly. Also correct calculation of
38943 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
38945 PR middle-end/39246
38946 * tree-complex.c (expand_complex_move): Keep line info when expanding
38948 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
38949 of complex expression. Use new argument to display correct location
38950 for values coming from phi statement.
38951 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
38952 (warn_uninitialized_phi): Pass location of phi argument to
38954 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
38955 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
38957 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
38959 * config/rs6000/predicates.md (indexed_address_mem): New.
38960 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
38961 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
38962 fpstore_ux, fpstore_u.
38963 (sign_extend, indexed, update): New.
38964 (cell_micro): Adjust.
38965 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
38966 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
38967 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
38968 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
38969 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
38970 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
38971 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
38972 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
38973 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
38974 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
38975 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
38976 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
38977 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
38978 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
38979 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
38981 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
38982 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
38983 *vsx_extract_<mode>_store): Adjust.
38984 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
38985 is_cracked_insn, insn_must_be_first_in_group,
38986 insn_must_be_last_in_group): Adjust.
38988 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
38990 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
38991 ppc440-fpstore): Adjust.
38992 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
38993 ppc476-fpstore): Adjust.
38994 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
38995 ppc601-fpstore): Adjust.
38996 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
38998 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
39000 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
39001 ppc7450-fpstore): Adjust.
39002 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
39003 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
39004 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
39006 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
39007 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
39008 cell-fpstore, cell-fpstore-update): Adjust.
39009 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
39010 ppce300c3_store, ppce300c3_fpstore): Adjust.
39011 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
39012 e500mc_fpstore): Adjust.
39013 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
39014 e500mc64_store, e500mc64_fpstore): Adjust.
39015 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
39016 e5500_fpstore): Adjust.
39017 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
39018 e6500_fpstore): Adjust.
39019 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
39021 * config/rs6000/power4.md (power4-load, power4-load-ext,
39022 power4-load-ext-update, power4-load-ext-update-indexed,
39023 power4-load-update-indexed, power4-load-update, power4-fpload,
39024 power4-fpload-update, power4-store, power4-store-update,
39025 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
39027 * config/rs6000/power5.md (power5-load, power5-load-ext,
39028 power5-load-ext-update, power5-load-ext-update-indexed,
39029 power5-load-update-indexed, power5-load-update, power5-fpload,
39030 power5-fpload-update, power5-store, power5-store-update,
39031 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
39033 * config/rs6000/power6.md (power6-load, power6-load-ext,
39034 power6-load-update, power6-load-update-indexed,
39035 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
39036 power6-fpload-update, power6-store, power6-store-update,
39037 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
39039 * config/rs6000/power7.md (power7-load, power7-load-ext,
39040 power7-load-update, power7-load-update-indexed,
39041 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
39042 power7-fpload-update, power7-store, power7-store-update,
39043 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
39045 * config/rs6000/power8.md (power8-load, power8-load-update,
39046 power8-load-ext, power8-load-ext-update, power8-fpload,
39047 power8-fpload-update, power8-store, power8-store-update-indexed,
39048 power8-fpstore, power8-fpstore-update): Adjust.
39049 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
39051 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
39052 titan_lsu_store, titan_lsu_fpstore): Adjust.
39053 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
39055 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
39058 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
39059 unrolled byte insns. Emit address increments after move insns.
39061 2014-05-07 David Malcolm <dmalcolm@redhat.com>
39063 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
39064 const_gimple, rather than a gimple.
39065 (gimple_call_builtin_p): Likewise, for the three variants.
39067 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
39068 (gimple_call_builtin_p): Likewise, for the three variants.
39070 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
39072 PR tree-optimization/61095
39073 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
39075 2014-05-07 Richard Biener <rguenther@suse.de>
39077 PR tree-optimization/61034
39078 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
39079 (maybe_skip_until): Use translate to take into account
39080 lattices when trying to do disambiguations.
39081 (get_continuation_for_phi_1): Likewise.
39082 (get_continuation_for_phi): Adjust for added translate arguments.
39083 (walk_non_aliased_vuses): Likewise.
39084 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
39085 (walk_non_aliased_vuses): Likewise.
39086 (call_may_clobber_ref_p_1): Declare.
39087 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
39088 calls. Stop early if we are only supposed to disambiguate.
39089 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
39091 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
39093 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
39094 Emit an error when the function has arguments.
39096 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39098 * cfgloop.h (unswitch_loops): Remove.
39099 * doc/passes.texi: Remove references to loop-unswitch.c
39100 * timevar.def (TV_LOOP_UNSWITCH): Remove.
39102 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
39104 * tree-vect-data-refs.c (vect_grouped_load_supported): New
39105 check for loads group of length 3.
39106 (vect_permute_load_chain): New permutations for loads group of
39108 * tree-vect-stmts.c (vect_model_load_cost): Change cost
39109 of vec_perm_shuffle for the new permutations.
39111 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
39113 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
39114 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
39115 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
39116 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
39117 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
39118 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
39119 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
39120 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
39122 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39124 * loop-unswitch.c: Delete.
39126 2014-05-07 Richard Biener <rguenther@suse.de>
39128 * config.gcc: Always set need_64bit_hwint to yes.
39130 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
39132 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
39133 of using optimize_size.
39135 2014-05-06 Mike Stump <mikestump@comcast.net>
39137 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
39139 2014-05-06 Joseph Myers <joseph@codesourcery.com>
39141 * config/i386/sse.md (*mov<mode>_internal)
39142 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
39143 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
39144 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
39145 (*<code><mode>3, *andnot<mode>3<mask_name>)
39146 (<mask_codefor><code><mode>3<mask_name>): Only consider
39147 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
39149 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39152 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
39154 * lra-constraints.c (valid_address_p): Move earlier in file.
39155 Add a constraint argument to the address_info version.
39156 (satisfies_memory_constraint_p): New function.
39157 (satisfies_address_constraint_p): Likewise.
39158 (process_alt_operands, curr_insn_transform): Use them.
39159 (process_address): Pass the constraint to valid_address_p when
39160 checking address operands.
39162 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
39164 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
39165 to their respective blocks. Fix inadvertent use of "node".
39167 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39169 * emit-rtl.c (init_derived_machine_modes): New functionm, split
39171 (init_emit_once): ...here.
39172 * rtl.h (init_derived_machine_modes): Declare.
39173 * toplev.c (do_compile): Call it even if no_backend.
39175 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
39176 Mike Stump <mikestump@comcast.net>
39177 Richard Sandiford <rdsandiford@googlemail.com>
39178 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39180 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
39181 (rtx_equal_for_memref_p): Update comment.
39182 (adjust_offset_for_component_ref): Use wide-int interfaces.
39183 * builtins.c (get_object_alignment_2): Likewise.
39184 (c_readstr): Likewise.
39185 (target_char_cast): Add comment.
39186 (determine_block_size): Use wide-int interfaces.
39187 (expand_builtin_signbit): Likewise.
39188 (fold_builtin_int_roundingfn): Likewise.
39189 (fold_builtin_bitop): Likewise.
39190 (fold_builtin_bswap): Likewise.
39191 (fold_builtin_logarithm): Use signop.
39192 (fold_builtin_pow): Likewise.
39193 (fold_builtin_memory_op): Use wide-int interfaces.
39194 (fold_builtin_object_size): Likewise.
39195 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
39196 nb_iterations_estimate.
39197 (record_niter_bound): Use wide-int interfaces.
39198 (get_estimated_loop_iterations_int): Likewise.
39199 (get_estimated_loop_iterations): Likewise.
39200 (get_max_loop_iterations): Likewise.
39201 * cfgloop.h: Include wide-int.h.
39202 (struct nb_iter_bound): Change bound to widest_int.
39203 (struct loop): Change nb_iterations_upper_bound and
39204 nb_iterations_estimate to widest_int.
39205 (record_niter_bound): Switch to use widest_int.
39206 (get_estimated_loop_iterations): Likewise.
39207 (get_max_loop_iterations): Likewise.
39208 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
39209 update for wide-int.
39210 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
39211 * combine.c (try_combine): Likewise.
39212 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
39213 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
39215 (aarch64_float_const_representable_p): Likewise.
39216 * config/arc/arc.c: Include wide-int.h.
39217 (arc_can_use_doloop_p): Use wide-int interfaces.
39218 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
39219 (vfp3_const_double_index): Likewise.
39220 * config/avr/avr.c (avr_out_round): Likewise.
39221 (avr_fold_builtin): Likewise.
39222 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
39223 (bfin_can_use_doloop_p): Likewise.
39224 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
39225 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
39226 * config/i386/i386.c: Include wide-int.h.
39227 (ix86_data_alignment): Use wide-int interfaces.
39228 (ix86_local_alignment): Likewise.
39229 (ix86_emit_swsqrtsf): Update real_from_integer.
39230 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
39231 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
39232 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
39233 (zero_constant): Likewise.
39234 (input_operand): Likewise.
39235 (splat_input_operand): Likewise.
39236 (non_logical_cint_operand): Change const_double to const_wide_int.
39237 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
39238 (easy_altivec_constant): Remove comment.
39239 (paired_expand_vector_init): Use CONSTANT_P.
39240 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
39241 (rs6000_emit_move): Update checks.
39242 (rs6000_aggregate_candidate): Use wide-int interfaces.
39243 (rs6000_expand_ternop_builtin): Likewise.
39244 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
39245 (rs6000_assemble_integer): Likewise.
39246 (rs6000_hash_constant): Likewise.
39247 (output_toc): Likewise.
39248 (rs6000_rtx_costs): Likewise.
39249 (rs6000_emit_swrsqrt); Update call to real_from_integer.
39250 * config/rs6000/rs6000-c.c: Include wide-int.h.
39251 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
39252 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
39253 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
39254 Handle CONST_WIDE_INT.
39255 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
39256 Use tree_fits_uhwi_p.
39257 * config/sparc/sparc.c: Include wide-int.h.
39258 (sparc_fold_builtin): Use wide-int interfaces.
39259 * config/vax/vax.c: Include wide-int.h.
39260 (vax_float_literal): Use real_from_integer.
39261 * coretypes.h (struct hwivec_def): New.
39263 (const_hwivec): New.
39264 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
39265 (equiv_constant): Handle CONST_WIDE_INT.
39266 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
39267 (cselib_hash_rtx): Handle CONST_WIDE_INT.
39268 * dbxout.c (stabstr_U): Use wide-int interfaces.
39269 (dbxout_type): Update to use cst_fits_shwi_p.
39270 * defaults.h (LOG2_BITS_PER_UNIT): Define.
39271 (TARGET_SUPPORTS_WIDE_INT): Add default.
39272 * dfp.c: Include wide-int.h.
39273 (decimal_real_to_integer2): Use wide-int interfaces and rename to
39274 decimal_real_to_integer.
39275 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
39276 decimal_real_to_integer.
39277 * doc/generic.texi (Constant expressions): Update for wide_int.
39278 * doc/rtl.texi (const_double): Likewise.
39279 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
39280 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
39281 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
39282 (REAL_VALUE_FROM_INT): Remove.
39283 (TARGET_SUPPORTS_WIDE_INT): New.
39284 * doc/tm.texi: Regenerate.
39285 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
39286 * double-int.h: Include wide-int.h.
39287 (struct wi::int_traits): New.
39288 * dwarf2out.c (get_full_len): New.
39289 (dw_val_equal_p): Add case dw_val_class_wide_int.
39290 (size_of_loc_descr): Likewise.
39291 (output_loc_operands): Likewise.
39292 (insert_double): Remove.
39293 (insert_wide_int): New.
39294 (add_AT_wide): New.
39295 (print_die): Add case dw_val_class_wide_int.
39296 (attr_checksum): Likewise.
39297 (attr_checksum_ordered): Likewise.
39298 (same_dw_val_p): Likewise.
39299 (size_of_die): Likewise.
39300 (value_format): Likewise.
39301 (output_die): Likewise.
39302 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
39304 (clz_loc_descriptor): Use wide-int interfaces.
39305 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
39306 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
39307 (round_up_to_align): Use wide-int interfaces.
39308 (field_byte_offset): Likewise.
39309 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
39310 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
39311 CONST_DOUBLE handling. Use wide-int interfaces.
39312 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
39313 (gen_enumeration_type_die): Use add_AT_wide.
39314 (hash_loc_operands): Add case dw_val_class_wide_int.
39315 (compare_loc_operands): Likewise.
39316 * dwarf2out.h: Include wide-int.h.
39317 (wide_int_ptr): New.
39318 (enum dw_val_class): Add dw_val_class_wide_int.
39319 (struct dw_val_struct): Add val_wide.
39320 * emit-rtl.c (const_wide_int_htab): New.
39321 (const_wide_int_htab_hash): New.
39322 (const_wide_int_htab_eq): New.
39323 (lookup_const_wide_int): New.
39324 (const_double_htab_hash): Use wide-int interfaces.
39325 (const_double_htab_eq): Likewise.
39326 (rtx_to_double_int): Conditionally compile for wide-int.
39327 (immed_double_int_const): Rename to immed_wide_int_const and
39328 update for wide-int.
39329 (immed_double_const): Conditionally compile for wide-int.
39330 (init_emit_once): Use wide-int interfaces.
39331 * explow.c (plus_constant): Likewise.
39332 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
39333 (lshift_value): Use wide-int interfaces.
39334 (expand_mult): Likewise.
39335 (choose_multiplier): Likewise.
39336 (expand_smod_pow2): Likewise.
39337 (make_tree): Likewise.
39338 * expr.c (convert_modes): Consolidate handling of constants.
39339 Use wide-int interfaces.
39340 (emit_group_load_1): Add note.
39341 (store_expr): Update comment.
39342 (get_inner_reference): Use wide-int interfaces.
39343 (expand_constructor): Update comment.
39344 (expand_expr_real_2): Use wide-int interfaces.
39345 (expand_expr_real_1): Likewise.
39346 (reduce_to_bit_field_precision): Likewise.
39347 (const_vector_from_tree): Likewise.
39348 * final.c: Include wide-int-print.h.
39349 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
39350 * fixed-value.c: Include wide-int.h.
39351 (fixed_from_string): Use wide-int interfaces.
39352 (fixed_to_decimal): Likewise.
39353 (fixed_convert_from_real): Likewise.
39354 (real_convert_from_fixed): Likewise.
39355 * fold-const.h (mem_ref_offset): Return an offset_int.
39356 (div_if_zero_remainder): Remove code parameter.
39357 * fold-const.c (div_if_zero_remainder): Remove code parameter.
39358 Use wide-int interfaces.
39359 (may_negate_without_overflow_p): Use wide-int interfaces.
39360 (negate_expr_p): Likewise.
39361 (fold_negate_expr): Likewise.
39362 (int_const_binop_1): Likewise.
39363 (const_binop): Likewise.
39364 (fold_convert_const_int_from_int): Likewise.
39365 (fold_convert_const_int_from_real): Likewise.
39366 (fold_convert_const_int_from_fixed): Likewise.
39367 (fold_convert_const_fixed_from_int): Likewise.
39368 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
39369 (sign_bit_p): Use wide-int interfaces.
39370 (make_range_step): Likewise.
39371 (build_range_check): Likewise. Pass an integer of the correct type
39372 instead of using integer_one_node.
39373 (range_predecessor): Pass an integer of the correct type instead
39374 of using integer_one_node.
39375 (range_successor): Likewise.
39376 (merge_ranges): Likewise.
39377 (unextend): Use wide-int interfaces.
39378 (extract_muldiv_1): Likewise.
39379 (fold_div_compare): Likewise.
39380 (fold_single_bit_test): Likewise.
39381 (fold_sign_changed_comparison): Likewise.
39382 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
39383 (fold_plusminus_mult_expr): Use wide-int interfaces.
39384 (native_encode_int): Likewise.
39385 (native_interpret_int): Likewise.
39386 (fold_unary_loc): Likewise.
39387 (pointer_may_wrap_p): Likewise.
39388 (size_low_cst): Likewise.
39389 (mask_with_tz): Likewise.
39390 (fold_binary_loc): Likewise.
39391 (fold_ternary_loc): Likewise.
39392 (multiple_of_p): Likewise.
39393 (tree_call_nonnegative_warnv_p): Update calls to
39394 tree_int_cst_min_precision and real_from_integer.
39395 (fold_negate_const): Use wide-int interfaces.
39396 (fold_abs_const): Likewise.
39397 (fold_relational_const): Use tree_int_cst_lt.
39398 (round_up_loc): Use wide-int interfaces.
39399 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
39400 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
39401 * gengtype.c: Remove include of double-int.h.
39402 (do_typedef): Use wide-int interfaces.
39403 (open_base_files): Add wide-int.h.
39404 (main): Add offset_int and widest_int typedefs.
39405 * gengtype-lex.l: Handle "^".
39406 (CXX_KEYWORD): Add "static".
39407 * gengtype-parse.c (require3): New.
39408 (require_template_declaration): Handle constant template arguments
39409 and nested templates.
39410 * gengtype-state.c: Don't include "double-int.h".
39411 * genpreds.c (write_one_predicate_function): Update comment.
39412 (write_tm_constrs_h): Add check for hval and lval use in
39414 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
39415 (add_to_sequence): Likewise.
39416 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
39417 and const_double_operand.
39418 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
39420 * gimple-fold.c (get_base_constructor): Likewise.
39421 (fold_array_ctor_reference): Likewise.
39422 (fold_nonarray_ctor_reference): Likewise.
39423 (fold_const_aggregate_ref_1): Likewise.
39424 (gimple_val_nonnegative_real_p): Likewise.
39425 (gimple_fold_indirect_ref): Likewise.
39426 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
39427 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
39428 (struct slsr_cand_d): Change index to be widest_int.
39429 (struct incr_info_d): Change incr to be widest_int.
39430 (alloc_cand_and_find_basis): Use wide-int interfaces.
39431 (slsr_process_phi): Likewise.
39432 (backtrace_base_for_ref): Likewise. Return a widest_int.
39433 (restructure_reference): Take a widest_int instead of a double_int.
39434 (slsr_process_ref): Use wide-int interfaces.
39435 (create_mul_ssa_cand): Likewise.
39436 (create_mul_imm_cand): Likewise.
39437 (create_add_ssa_cand): Likewise.
39438 (create_add_imm_cand): Take a widest_int instead of a double_int.
39439 (slsr_process_add): Use wide-int interfaces.
39440 (slsr_process_cast): Likewise.
39441 (slsr_process_copy): Likewise.
39442 (dump_candidate): Likewise.
39443 (dump_incr_vec): Likewise.
39444 (replace_ref): Likewise.
39445 (cand_increment): Likewise. Return a widest_int.
39446 (cand_abs_increment): Likewise.
39447 (replace_mult_candidate): Take a widest_int instead of a double_int.
39448 (replace_unconditional_candidate): Use wide-int interfaces.
39449 (incr_vec_index): Take a widest_int instead of a double_int.
39450 (create_add_on_incoming_edge): Likewise.
39451 (create_phi_basis): Use wide-int interfaces.
39452 (replace_conditional_candidate): Likewise.
39453 (record_increment): Take a widest_int instead of a double_int.
39454 (record_phi_increments): Use wide-int interfaces.
39455 (phi_incr_cost): Take a widest_int instead of a double_int.
39456 (lowest_cost_path): Likewise.
39457 (total_savings): Likewise.
39458 (analyze_increments): Use wide-int interfaces.
39459 (ncd_with_phi): Take a widest_int instead of a double_int.
39460 (ncd_of_cand_and_phis): Likewise.
39461 (nearest_common_dominator_for_cands): Likewise.
39462 (insert_initializers): Use wide-int interfaces.
39463 (all_phi_incrs_profitable): Likewise.
39464 (replace_one_candidate): Likewise.
39465 (replace_profitable_candidates): Likewise.
39466 * godump.c: Include wide-int-print.h.
39467 (go_output_typedef): Use wide-int interfaces.
39468 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
39469 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
39470 (build_loop_iteration_domains): Likewise.
39471 * hooks.h: Include wide-int.h rather than double-int.h.
39472 (hook_bool_dint_dint_uint_bool_true): Delete.
39473 (hook_bool_wint_wint_uint_bool_true): Declare.
39474 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
39475 (hook_bool_wint_wint_uint_bool_true): New.
39476 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
39478 (ubsan_expand_si_overflow_mul_check): Likewise.
39479 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
39480 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
39481 (get_ancestor_addr_info): Likewise.
39482 (ipa_modify_call_arguments): Likewise.
39483 * loop-doloop.c (doloop_modify): Likewise.
39484 (doloop_optimize): Likewise.
39485 * loop-iv.c (iv_number_of_iterations): Likewise.
39486 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
39487 (unroll_loop_constant_iterations): Likewise.
39488 (decide_unroll_runtime_iterations): Likewise.
39489 (unroll_loop_runtime_iterations): Likewise.
39490 (decide_peel_simple): Likewise.
39491 (decide_unroll_stupid): Likewise.
39492 * lto-streamer-in.c (streamer_read_wi): Add.
39493 (input_cfg): Use wide-int interfaces.
39494 (lto_input_tree_1): Likewise.
39495 * lto-streamer-out.c (streamer_write_wi): Add.
39496 (hash_tree): Use wide-int interfaces.
39497 (output_cfg): Likewise.
39498 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
39499 (GTFILES): Add wide-int.h and signop.h.
39500 (TAGS): Look for .cc files too.
39501 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
39502 * optabs.c (expand_subword_shift): Likewise.
39503 (expand_doubleword_shift): Likewise.
39504 (expand_absneg_bit): Likewise.
39505 (expand_copysign_absneg): Likewise.
39506 (expand_copysign_bit): Likewise.
39507 * postreload.c (reload_cse_simplify_set): Likewise.
39508 * predict.c (predict_iv_comparison): Likewise.
39509 * pretty-print.h: Include wide-int-print.h.
39511 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
39512 * print-tree.c: Include wide-int-print.h.
39513 (print_node_brief): Use wide-int interfaces.
39514 (print_node): Likewise.
39515 * read-rtl.c (validate_const_wide_int): New.
39516 (read_rtx_code): Add CONST_WIDE_INT case.
39517 * real.c: Include wide-int.h.
39518 (real_to_integer2): Delete.
39519 (real_to_integer): New function, returning a wide_int.
39520 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39521 (ten_to_ptwo): Update call to real_from_integer.
39522 (real_digit): Likewise.
39523 * real.h: Include signop.h, wide-int.h and insn-modes.h.
39524 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
39525 (REAL_VALUE_TO_INT): Delete.
39526 (real_to_integer): Declare a wide-int form.
39527 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39528 * recog.c (const_int_operand): Improve comment.
39529 (const_scalar_int_operand): New.
39530 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
39531 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
39532 (split_double): Likewise.
39533 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
39534 (rtx_size): Likewise.
39535 (rtx_alloc_stat_v): New.
39536 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
39537 (cwi_output_hex): New.
39538 (iterative_hash_rtx): Handle CONST_WIDE_INT.
39539 (cwi_check_failed_bounds): New.
39540 * rtl.def (CONST_WIDE_INT): New.
39541 * rtl.h: Include <utility> and wide-int.h.
39542 (struct hwivec_def): New.
39543 (CWI_GET_NUM_ELEM): New.
39544 (CWI_PUT_NUM_ELEM): New.
39545 (struct rtx_def): Add num_elem and hwiv.
39546 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
39547 (CASE_CONST_UNIQUE): Likewise.
39548 (CASE_CONST_ANY): Likewise.
39549 (CONST_SCALAR_INT_P): Likewise.
39550 (CONST_WIDE_INT_P): New.
39552 (HWIVEC_CHECK): New.
39553 (cwi_check_failed_bounds): New.
39555 (HWIVEC_CHECK): New.
39556 (CONST_WIDE_INT_VEC) New.
39557 (CONST_WIDE_INT_NUNITS) New.
39558 (CONST_WIDE_INT_ELT) New.
39559 (rtx_mode_t): New type.
39560 (wi::int_traits <rtx_mode_t>): New.
39562 (wi::min_value): New.
39563 (wi::max_value): New.
39565 (const_wide_int_alloc): New.
39566 (immed_wide_int_const): New.
39567 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
39568 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
39569 * signop.h: New file.
39570 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
39571 (simplify_const_unary_operation): Use wide-int interfaces.
39572 (simplify_binary_operation_1): Likewise.
39573 (simplify_const_binary_operation): Likewise.
39574 (simplify_const_relational_operation): Likewise.
39575 (simplify_immed_subreg): Likewise.
39576 * stmt.c (expand_case): Likewise.
39577 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
39578 signop rather than a bool.
39579 * stor-layout.c (layout_type): Use wide-int interfaces.
39580 (initialize_sizetypes): Update calls to
39581 set_min_and_max_values_for_integral_type.
39582 (set_min_and_max_values_for_integral_type): Take a signop rather
39583 than a bool. Use wide-int interfaces.
39584 (fixup_signed_type): Update accordingly. Remove
39585 HOST_BITS_PER_DOUBLE_INT limit.
39586 (fixup_unsigned_type): Likewise.
39587 * system.h (STATIC_CONSTANT_P): New.
39588 (STATIC_ASSERT): New.
39589 * target.def (can_use_doloop_p): Take widest_ints rather than
39591 * target.h: Include wide-int.h rather than double-int.h.
39592 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
39594 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
39595 rather than INT_CST_LT_UNSIGNED.
39596 (can_use_doloop_if_innermost): Take widest_ints rather than
39598 * tree-affine.c: Include wide-int-print.h.
39599 (double_int_ext_for_comb): Delete.
39600 (wide_int_ext_for_comb): New.
39601 (aff_combination_zero): Use wide-int interfaces.
39602 (aff_combination_const): Take a widest_int instead of a double_int.
39603 (aff_combination_elt): Use wide-int interfaces.
39604 (aff_combination_scale): Take a widest_int instead of a double_int.
39605 (aff_combination_add_elt): Likewise.
39606 (aff_combination_add_cst): Likewise.
39607 (aff_combination_add): Use wide-int interfaces.
39608 (aff_combination_convert): Likewise.
39609 (tree_to_aff_combination): Likewise.
39610 (add_elt_to_tree): Take a widest_int instead of a double_int.
39611 (aff_combination_to_tree): Use wide-int interfaces.
39612 (aff_combination_remove_elt): Likewise.
39613 (aff_combination_add_product): Take a widest_int instead of
39615 (aff_combination_mult): Use wide-int interfaces.
39616 (aff_combination_expand): Likewise.
39617 (double_int_constant_multiple_p): Delete.
39618 (wide_int_constant_multiple_p): New.
39619 (aff_combination_constant_multiple_p): Take a widest_int pointer
39620 instead of a double_int pointer.
39621 (print_aff): Use wide-int interfaces.
39622 (get_inner_reference_aff): Take a widest_int pointer
39623 instead of a double_int pointer.
39624 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
39625 * tree-affine.h: Include wide-int.h.
39626 (struct aff_comb_elt): Change type of coef to widest_int.
39627 (struct affine_tree_combination): Change type of offset to widest_int.
39628 (double_int_ext_for_comb): Delete.
39629 (wide_int_ext_for_comb): New.
39630 (aff_combination_const): Use widest_int instead of double_int.
39631 (aff_combination_scale): Likewise.
39632 (aff_combination_add_elt): Likewise.
39633 (aff_combination_constant_multiple_p): Likewise.
39634 (get_inner_reference_aff): Likewise.
39635 (aff_comb_cannot_overlap_p): Likewise.
39636 (aff_combination_zero_p): Use wide-int interfaces.
39637 * tree.c: Include tree.h.
39638 (init_ttree): Use make_int_cst.
39639 (tree_code_size): Removed code for INTEGER_CST case.
39640 (tree_size): Add INTEGER_CST case.
39641 (make_node_stat): Update comment.
39642 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
39643 (build_int_cst_type): Use wide-int interfaces.
39644 (double_int_to_tree): Likewise.
39645 (double_int_fits_to_tree_p): Delete.
39646 (force_fit_type_double): Delete.
39647 (force_fit_type): New.
39648 (int_cst_hash_hash): Use wide-int interfaces.
39649 (int_cst_hash_eq): Likewise.
39650 (build_int_cst_wide): Delete.
39651 (wide_int_to_tree): New.
39652 (cache_integer_cst): Use wide-int interfaces.
39653 (build_low_bits_mask): Likewise.
39654 (cst_and_fits_in_hwi): Likewise.
39655 (real_value_from_int_cst): Likewise.
39656 (make_int_cst_stat): New.
39657 (integer_zerop): Use wide_int interfaces.
39658 (integer_onep): Likewise.
39659 (integer_all_onesp): Likewise.
39660 (integer_pow2p): Likewise.
39661 (integer_nonzerop): Likewise.
39662 (tree_log2): Likewise.
39663 (tree_floor_log2): Likewise.
39664 (tree_ctz): Likewise.
39665 (int_size_in_bytes): Likewise.
39666 (mem_ref_offset): Return an offset_int rather than a double_int.
39667 (build_type_attribute_qual_variant): Use wide_int interfaces.
39668 (type_hash_eq): Likewise
39669 (tree_int_cst_equal): Likewise.
39670 (tree_int_cst_lt): Delete.
39671 (tree_int_cst_compare): Likewise.
39672 (tree_fits_shwi_p): Use wide_int interfaces.
39673 (tree_fits_uhwi_p): Likewise.
39674 (tree_int_cst_sign_bit): Likewise.
39675 (tree_int_cst_sgn): Likewise.
39676 (tree_int_cst_min_precision): Take a signop rather than a bool.
39677 (simple_cst_equal): Use wide_int interfaces.
39678 (compare_tree_int): Likewise.
39679 (iterative_hash_expr): Likewise.
39680 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
39682 (get_type_static_bounds): Use wide_int interfaces.
39683 (tree_int_cst_elt_check_failed): New.
39684 (build_common_tree_nodes): Reordered to set prec before filling in
39686 (int_cst_value): Check cst_and_fits_in_hwi.
39687 (widest_int_cst_value): Use wide_int interfaces.
39688 (upper_bound_in_type): Likewise.
39689 (lower_bound_in_type): Likewise.
39690 (num_ending_zeros): Likewise.
39691 (drop_tree_overflow): Likewise.
39692 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
39693 (gen_conditions_for_pow_cst_base): Likewise.
39694 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
39695 (group_case_labels_stmt): Use wide-int interfaces.
39696 (verify_gimple_assign_binary): Likewise.
39697 (print_loop): Likewise.
39698 * tree-chrec.c (tree_fold_binomial): Likewise.
39699 * tree-core.h (struct tree_base): Add int_length.
39700 (struct tree_int_cst): Change rep of value.
39701 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
39702 (dr_may_alias_p): Likewise.
39703 (max_stmt_executions_tree): Likewise.
39704 * tree.def (INTEGER_CST): Update comment.
39705 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
39706 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
39707 * tree-dump.c: Include wide-int.h and wide-int-print.h.
39708 (dequeue_and_dump): Use wide-int interfaces.
39709 * tree.h: Include wide-int.h.
39710 (NULL_TREE): Moved to earlier loc in file.
39711 (TREE_INT_CST_ELT_CHECK): New.
39712 (tree_int_cst_elt_check_failed): New.
39714 (TREE_INT_CST): Delete.
39715 (TREE_INT_CST_LOW): Use wide-int interfaces.
39716 (TREE_INT_CST_HIGH): Delete.
39717 (TREE_INT_CST_NUNITS): New.
39718 (TREE_INT_CST_EXT_NUNITS): Likewise.
39719 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
39720 (TREE_INT_CST_ELT): Likewise.
39721 (INT_CST_LT): Delete.
39722 (tree_int_cst_elt_check): New (two forms).
39723 (type_code_size): Update comment.
39724 (make_int_cst_stat, make_int_cst): New.
39725 (tree_to_double_int): Delete.
39726 (double_int_fits_to_tree_p): Delete.
39727 (force_fit_type_double): Delete.
39728 (build_int_cstu): Replace with out-of-line function.
39729 (build_int_cst_wide): Delete.
39730 (tree_int_cst_lt): Define inline.
39731 (tree_int_cst_le): New.
39732 (tree_int_cst_compare): Define inline.
39733 (tree_int_cst_min_precision): Take a signop rather than a bool.
39734 (wi::int_traits <const_tree>): New.
39735 (wi::int_traits <tree>): New.
39736 (wi::extended_tree): New.
39737 (wi::int_traits <wi::extended_tree>): New.
39738 (wi::to_widest): New.
39739 (wi::to_offset): New.
39740 (wi::fits_to_tree_p): New.
39741 (wi::min_value): New.
39742 (wi::max_value): New.
39743 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
39744 (copy_tree_body_r): Likewise.
39745 * tree-object-size.c (compute_object_offset): Likewise.
39746 (addr_object_size): Likewise.
39747 * tree-predcom.c: Include wide-int-print.h.
39748 (struct dref_d): Change type of offset to widest_int.
39749 (dump_dref): Call wide-int printer.
39750 (aff_combination_dr_offset): Use wide-int interfaces.
39751 (determine_offset): Take a widest_int pointer rather than a
39752 double_int pointer.
39753 (split_data_refs_to_components): Use wide-int interfaces.
39754 (suitable_component_p): Likewise.
39755 (order_drefs): Likewise.
39756 (add_ref_to_chain): Likewise.
39757 (valid_initializer_p): Likewise.
39758 (determine_roots_comp): Likewise.
39759 * tree-pretty-print.c: Include wide-int-print.h.
39760 (dump_generic_node): Use wide-int interfaces.
39761 * tree-sra.c (sra_ipa_modify_expr): Likewise.
39762 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
39763 (move_fixed_address_to_symbol): Likewise.
39764 (move_hint_to_base): Likewise.
39765 (move_pointer_to_base): Likewise.
39766 (move_variant_to_index): Likewise.
39767 (most_expensive_mult_to_index): Likewise.
39768 (addr_to_parts): Likewise.
39769 (copy_ref_info): Likewise.
39770 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
39771 (indirect_refs_may_alias_p): Likewise.
39772 (stmt_kills_ref_p_1): Likewise.
39773 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
39774 * tree-ssa-ccp.c: Update comment at top of file. Include
39776 (struct prop_value_d): Change type of mask to widest_int.
39777 (extend_mask): New function.
39778 (dump_lattice_value): Use wide-int interfaces.
39779 (get_default_value): Likewise.
39780 (set_constant_value): Likewise.
39781 (set_value_varying): Likewise.
39782 (valid_lattice_transition): Likewise.
39783 (set_lattice_value): Likewise.
39784 (value_to_double_int): Delete.
39785 (value_to_wide_int): New.
39786 (get_value_from_alignment): Use wide-int interfaces.
39787 (get_value_for_expr): Likewise.
39788 (do_dbg_cnt): Likewise.
39789 (ccp_finalize): Likewise.
39790 (ccp_lattice_meet): Likewise.
39791 (bit_value_unop_1): Use widest_ints rather than double_ints.
39792 (bit_value_binop_1): Likewise.
39793 (bit_value_unop): Use wide-int interfaces.
39794 (bit_value_binop): Likewise.
39795 (bit_value_assume_aligned): Likewise.
39796 (evaluate_stmt): Likewise.
39797 (ccp_fold_stmt): Likewise.
39798 (visit_cond_stmt): Likewise.
39799 (ccp_visit_stmt): Likewise.
39800 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
39801 (constant_pointer_difference): Likewise.
39802 (associate_pointerplus): Likewise.
39803 (combine_conversions): Likewise.
39804 * tree-ssa-loop.h: Include wide-int.h.
39805 (struct tree_niter_desc): Change type of max to widest_int.
39806 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
39807 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
39808 (remove_redundant_iv_tests): Likewise.
39809 (canonicalize_loop_induction_variables): Likewise.
39810 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
39811 (constant_multiple_of): Take a widest_int pointer instead of
39812 a double_int pointer.
39813 (get_computation_aff): Use wide-int interfaces.
39814 (ptr_difference_cost): Likewise.
39815 (difference_cost): Likewise.
39816 (get_loop_invariant_expr_id): Likewise.
39817 (get_computation_cost_at): Likewise.
39818 (iv_elimination_compare_lt): Likewise.
39819 (may_eliminate_iv): Likewise.
39820 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
39821 instead of double_int.
39822 (max_loop_iterations): Likewise.
39823 (max_stmt_executions): Likewise.
39824 (estimated_stmt_executions): Likewise.
39825 * tree-ssa-loop-niter.c: Include wide-int-print.h.
39826 (split_to_var_and_offset): Use wide-int interfaces.
39827 (determine_value_range): Likewise.
39828 (bound_difference_of_offsetted_base): Likewise.
39829 (bounds_add): Take a widest_int instead of a double_int.
39830 (number_of_iterations_ne_max): Use wide-int interfaces.
39831 (number_of_iterations_ne): Likewise.
39832 (number_of_iterations_lt_to_ne): Likewise.
39833 (assert_loop_rolls_lt): Likewise.
39834 (number_of_iterations_lt): Likewise.
39835 (number_of_iterations_le): Likewise.
39836 (number_of_iterations_cond): Likewise.
39837 (number_of_iterations_exit): Likewise.
39838 (finite_loop_p): Likewise.
39839 (derive_constant_upper_bound_assign): Likewise.
39840 (derive_constant_upper_bound): Return a widest_int.
39841 (derive_constant_upper_bound_ops): Likewise.
39842 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
39843 (record_estimate): Take a widest_int rather than a double_int.
39844 (record_nonwrapping_iv): Use wide-int interfaces.
39845 (double_int_cmp): Delete.
39846 (wide_int_cmp): New.
39847 (bound_index): Take a widest_int rather than a double_int.
39848 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
39849 (maybe_lower_iteration_bound): Likewise.
39850 (estimate_numbers_of_iterations_loop): Likewise.
39851 (estimated_loop_iterations): Take a widest_int pointer than than
39852 a double_int pointer.
39853 (estimated_loop_iterations_int): Use wide-int interfaces.
39854 (max_loop_iterations): Take a widest_int pointer than than
39855 a double_int pointer.
39856 (max_loop_iterations_int): Use wide-int interfaces.
39857 (max_stmt_executions): Take a widest_int pointer than than
39858 a double_int pointer.
39859 (estimated_stmt_executions): Likewise.
39860 (n_of_executions_at_most): Use wide-int interfaces.
39861 (scev_probably_wraps_p): Likewise.
39862 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
39863 to real_to_integer.
39864 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
39866 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
39867 double_ints. Adjust for trailing_wide_ints <3> representation.
39868 (set_nonzero_bits): Likewise.
39869 (get_range_info): Return wide_ints rather than double_ints.
39870 Adjust for trailing_wide_ints <3> representation.
39871 (get_nonzero_bits): Likewise.
39872 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
39874 * tree-ssanames.h (struct range_info_def): Replace min, max and
39875 nonzero_bits with a trailing_wide_ints <3>.
39876 (set_range_info): Use wide_int_refs rather than double_ints.
39877 (set_nonzero_bits): Likewise.
39878 (get_range_info): Return wide_ints rather than double_ints.
39879 (get_nonzero_bits): Likewise.
39880 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
39881 * tree-ssa-pre.c (phi_translate_1): Likewise.
39882 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
39883 (acceptable_pow_call): Likewise.
39884 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
39886 (vn_reference_fold_indirect): Likewise.
39887 (vn_reference_maybe_forwprop_address): Likewise.
39888 (valueize_refs_1): Likewise.
39889 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
39890 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
39891 tree_int_cst_lt and tree_int_cst_le.
39892 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
39894 (streamer_alloc_tree): Likewise.
39895 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
39896 (streamer_write_tree_header): Likewise.
39897 (streamer_write_integer_cst): Likewise.
39898 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
39899 (build_constructors): Likewise.
39900 (array_value_type): Likewise.
39901 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
39902 (vect_check_gather): Likewise.
39903 * tree-vect-generic.c (build_replicated_const): Likewise.
39904 (expand_vector_divmod): Likewise.
39905 * tree-vect-loop.c (vect_transform_loop): Likewise.
39906 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
39907 (vect_do_peeling_for_alignment): Likewise.
39908 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
39909 * tree-vrp.c: Include wide-int.h.
39910 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
39911 (extract_range_from_assert): Use wide-int interfaces.
39912 (vrp_int_const_binop): Likewise.
39913 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
39914 double_int pointers.
39915 (ranges_from_anti_range): Use wide-int interfaces.
39916 (quad_int_cmp): Delete.
39917 (quad_int_pair_sort): Likewise.
39918 (extract_range_from_binary_expr_1): Use wide-int interfaces.
39919 (extract_range_from_unary_expr_1): Likewise.
39920 (adjust_range_with_scev): Likewise.
39921 (masked_increment): Take and return wide_ints rather than double_ints.
39922 (register_edge_assert_for_2): Use wide-int interfaces.
39923 (check_array_ref): Likewise.
39924 (search_for_addr_array): Likewise.
39925 (maybe_set_nonzero_bits): Likewise.
39926 (union_ranges): Pass an integer of the correct type instead of
39927 using integer_one_node.
39928 (intersect_ranges): Likewise.
39929 (simplify_truth_ops_using_ranges): Likewise.
39930 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
39931 (range_fits_type_p): Likewise.
39932 (simplify_cond_using_ranges): Likewise. Take a signop rather than
39934 (simplify_conversion_using_ranges): Use wide-int interfaces.
39935 (simplify_float_conversion_using_ranges): Likewise.
39936 (vrp_finalize): Likewise.
39937 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
39938 (gimple_stringops_transform): Likewise.
39939 * varasm.c (decode_addr_const): Likewise.
39940 (const_hash_1): Likewise.
39941 (const_rtx_hash_1): Likewise
39942 (output_constant): Likewise.
39943 (array_size_for_constructor): Likewise.
39944 (output_constructor_regular_field): Likewise.
39945 (output_constructor_bitfield): Likewise.
39946 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
39947 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
39949 * gencheck.c: Define BITS_PER_UNIT.
39950 * wide-int.cc: New.
39952 * wide-int-print.cc: New.
39953 * wide-int-print.h: New.
39955 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39957 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
39959 2014-05-06 Richard Biener <rguenther@suse.de>
39961 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
39962 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
39963 (TODO_verify_all): Adjust.
39964 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
39965 TODO_verify_stmts and TODO_verify_rtl_sharing.
39966 * bb-reorder.c: Likewise.
39967 * cfgexpand.c: Likewise.
39968 * cprop.c: Likewise.
39970 * function.c: Likewise.
39971 * fwprop.c: Likewise.
39972 * gcse.c: Likewise.
39973 * gimple-ssa-isolate-paths.c: Likewise.
39974 * gimple-ssa-strength-reduction.c: Likewise.
39975 * ipa-split.c: Likewise.
39976 * loop-init.c: Likewise.
39977 * loop-unroll.c: Likewise.
39978 * lower-subreg.c: Likewise.
39979 * modulo-sched.c: Likewise.
39980 * postreload-gcse.c: Likewise.
39981 * predict.c: Likewise.
39982 * recog.c: Likewise.
39983 * sched-rgn.c: Likewise.
39984 * store-motion.c: Likewise.
39985 * tracer.c: Likewise.
39986 * trans-mem.c: Likewise.
39987 * tree-call-cdce.c: Likewise.
39988 * tree-cfg.c: Likewise.
39989 * tree-cfgcleanup.c: Likewise.
39990 * tree-complex.c: Likewise.
39991 * tree-eh.c: Likewise.
39992 * tree-emutls.c: Likewise.
39993 * tree-if-conv.c: Likewise.
39994 * tree-into-ssa.c: Likewise.
39995 * tree-loop-distribution.c: Likewise.
39996 * tree-object-size.c: Likewise.
39997 * tree-parloops.c: Likewise.
39998 * tree-pass.h: Likewise.
39999 * tree-sra.c: Likewise.
40000 * tree-ssa-ccp.c: Likewise.
40001 * tree-ssa-copy.c: Likewise.
40002 * tree-ssa-copyrename.c: Likewise.
40003 * tree-ssa-dce.c: Likewise.
40004 * tree-ssa-dom.c: Likewise.
40005 * tree-ssa-dse.c: Likewise.
40006 * tree-ssa-forwprop.c: Likewise.
40007 * tree-ssa-ifcombine.c: Likewise.
40008 * tree-ssa-loop-ch.c: Likewise.
40009 * tree-ssa-loop-ivcanon.c: Likewise.
40010 * tree-ssa-loop.c: Likewise.
40011 * tree-ssa-math-opts.c: Likewise.
40012 * tree-ssa-phiopt.c: Likewise.
40013 * tree-ssa-phiprop.c: Likewise.
40014 * tree-ssa-pre.c: Likewise.
40015 * tree-ssa-reassoc.c: Likewise.
40016 * tree-ssa-sink.c: Likewise.
40017 * tree-ssa-strlen.c: Likewise.
40018 * tree-ssa-tail-merge.c: Likewise.
40019 * tree-ssa-uncprop.c: Likewise.
40020 * tree-switch-conversion.c: Likewise.
40021 * tree-tailcall.c: Likewise.
40022 * tree-vect-generic.c: Likewise.
40023 * tree-vectorizer.c: Likewise.
40024 * tree-vrp.c: Likewise.
40025 * tsan.c: Likewise.
40026 * var-tracking.c: Likewise.
40027 * bt-load.c: Likewise.
40028 * cfgcleanup.c: Likewise.
40029 * combine-stack-adj.c: Likewise.
40030 * combine.c: Likewise.
40031 * compare-elim.c: Likewise.
40032 * config/epiphany/resolve-sw-modes.c: Likewise.
40033 * config/i386/i386.c: Likewise.
40034 * config/mips/mips.c: Likewise.
40035 * config/s390/s390.c: Likewise.
40036 * config/sh/sh_treg_combine.cc: Likewise.
40037 * config/sparc/sparc.c: Likewise.
40040 * final.c: Likewise.
40041 * ifcvt.c: Likewise.
40042 * mode-switching.c: Likewise.
40043 * passes.c: Likewise.
40044 * postreload.c: Likewise.
40046 * reg-stack.c: Likewise.
40047 * regcprop.c: Likewise.
40048 * regrename.c: Likewise.
40051 2014-05-06 Richard Biener <rguenther@suse.de>
40053 PR middle-end/61070
40054 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
40055 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
40057 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
40060 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
40062 2014-05-05 Radovan Obradovic <robradovic@mips.com>
40063 Tom de Vries <tom@codesourcery.com>
40065 * target.def (call_fusage_contains_non_callee_clobbers): New
40067 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
40069 (@node Miscellaneous Register Hooks): New node.
40070 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
40071 * doc/tm.texi: Regenerate.
40073 2014-05-05 Marek Polacek <polacek@redhat.com>
40076 * opts.c (common_handle_option): Call error_at instead of warning_at.
40078 2014-05-05 Richard Biener <rguenther@suse.de>
40080 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
40081 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
40082 under the TODO_verify_il umbrella.
40084 2014-05-05 Richard Biener <rguenther@suse.de>
40086 * passes.c (execute_function_todo): Move TODO_verify_flow under
40087 the TODO_verify_ul umbrella.
40089 2014-05-05 Richard Biener <rguenther@suse.de>
40091 PR middle-end/61010
40092 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
40093 X & CST away from a CST that is the mask of a mode.
40095 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40097 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
40098 int argument to enum machine_mode.
40099 (picochip_class_max_nregs): Ditto.
40100 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
40101 (picochip_class_max_nregs): Ditto.
40103 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40105 * target.def: Add new target hook.
40106 * doc/tm.texi: Regenerate.
40107 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
40108 * targhooks.c (default_keep_leaf_when_profiled): New function.
40110 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
40111 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
40113 2014-05-05 Bin Cheng <bin.cheng@arm.com>
40115 PR tree-optimization/60363
40116 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
40117 (copy_phi_args): New parameters. Call get_value_locus_in_path.
40118 (update_destination_phis): New parameter.
40119 (create_edge_and_update_destination_phis): Ditto.
40120 (ssa_fix_duplicate_block_edges): Pass new arguments.
40121 (thread_single_edge): Ditto.
40123 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
40125 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
40126 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
40127 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
40128 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
40129 Use RS6000_BTM_HARD_FLOAT.
40130 (BU_MISC_2): Likewise.
40131 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
40132 RS6000_BTM_HARD_FLOAT.
40133 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
40134 is explicitly used.
40135 (rs6000_invalid_builtin): Add hard floating builtin support.
40136 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
40137 hard float builtins.
40138 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
40140 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40142 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
40143 Add missing function* argument.
40145 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40147 * lra-constraints.c (valid_address_p): Move earlier in file.
40148 Add a constraint argument to the address_info version.
40149 (satisfies_memory_constraint_p): New function.
40150 (satisfies_address_constraint_p): Likewise.
40151 (process_alt_operands, curr_insn_transform): Use them.
40152 (process_address): Pass the constraint to valid_address_p when
40153 checking address operands.
40155 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40157 * config/mips/mips.c (mips_isa_rev): New variable.
40158 (mips_set_architecture): Set it.
40159 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
40161 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
40162 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
40163 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
40164 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
40165 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
40166 conditions in terms of mips_isa_rev.
40167 (mips_isa_rev): Declare.
40169 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40171 * config/sh/sh-mem.cc: Use tabs instead of spaces.
40172 (prob_unlikely, prob_likely): Make variables const.
40174 2014-05-03 Denis Chertykov <chertykov@gmail.com>
40176 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
40178 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40180 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
40182 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40184 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
40185 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
40186 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
40188 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
40189 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
40191 Replace usage of ROUND_REG with sh_round_reg.
40192 Use CEIL instead of ROUND_ADVANCE.
40194 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40197 * config/sh/sh.c: Include stdlib headers before everything else.
40199 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40201 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
40202 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
40203 (gimplify_adjust_omp_clauses): Simd region is never
40204 directly nested in combined parallel. Instead, for linear
40205 with copyin/copyout, if in combined for simd loop, make decl
40206 firstprivate/lastprivate on OMP_FOR.
40207 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
40208 expand_omp_for_static_chunk): When setting endvar, also set
40209 fd->loop.v to the same value.
40211 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40213 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
40215 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
40217 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
40220 2014-05-02 Marek Polacek <polacek@redhat.com>
40222 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
40224 2014-05-02 Kito Cheng <kito@0xlab.org>
40226 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
40227 to a C expression marco.
40228 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
40229 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
40230 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
40231 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
40232 HONOR_REG_ALLOC_ORDER.
40233 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
40235 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40237 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
40239 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40241 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
40243 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
40245 * tree-if-conv.c (is_cond_scalar_reduction): New function.
40246 (convert_scalar_cond_reduction): Likewise.
40247 (predicate_scalar_phi): Add recognition and transformation
40248 of simple conditioanl reduction to be vectorizable.
40250 2014-05-01 Marek Polacek <polacek@redhat.com>
40253 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
40255 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
40257 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
40258 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
40259 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
40260 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
40261 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
40262 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
40263 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
40264 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
40266 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
40268 * config/arc/arc.opt (mlra): Move comment above option name
40269 to avoid mis-parsing as language options.
40271 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40273 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
40274 * config/sol2.h: ... here.
40275 * config/sol2-10.h: Remove.
40277 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
40278 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
40279 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
40280 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
40281 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
40282 * config/sol2.h: ... here.
40283 (SECTION_NAME_FORMAT): Don't redefine.
40284 (STARTFILE_ARCH32_SPEC): Rename to ...
40285 (STARTFILE_ARCH_SPEC): ... this.
40286 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
40287 * config/sparc/sol2.h: ... here.
40288 (SECTION_NAME_FORMAT): Don't undef.
40289 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
40290 (SUBTARGET_EXTRA_SPECS): Remove.
40291 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
40293 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
40294 (MD_STARTFILE_PREFIX): Remove.
40295 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
40296 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
40297 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
40298 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
40299 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
40300 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
40301 * config/i386/sol2.h: ... here.
40302 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
40303 * config/i386/sol2-bi.h: Remove.
40304 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
40305 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
40307 * config/i386/t-sol2-64: Rename to ...
40308 * config/i386/t-sol2: ... this.
40309 * config/sparc/t-sol2-64: Rename to ...
40310 * config/sparc/t-sol2: ... this.
40312 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
40313 sol2_tm_file_head, sol2_tm_file_tail.
40314 Include ${cpu_type}/sol2.h before sol2.h.
40316 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
40317 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
40318 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
40319 Reflect i386/t-sol2-64 renaming.
40320 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
40321 Reflect sparc/t-sol2-64 renaming.
40323 2014-04-30 Richard Biener <rguenther@suse.de>
40325 * passes.c (execute_function_todo): Move TODO_verify_stmts
40326 and TODO_verify_ssa under the TODO_verify_il umbrella.
40327 * tree-ssa.h (verify_ssa): Adjust prototype.
40328 * tree-ssa.c (verify_ssa): Add parameter to tell whether
40329 we should verify SSA operands.
40330 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
40331 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
40332 whether we should verify whether not throwing stmts have EH info.
40333 * graphite-scop-detection.c (create_sese_edges): Adjust.
40334 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
40335 * tree-eh.c (lower_try_finally_switch): Do not add the
40336 default case label twice.
40338 2014-04-30 Marek Polacek <polacek@redhat.com>
40340 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
40341 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
40342 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
40343 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
40345 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
40347 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
40348 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
40349 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
40350 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
40351 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
40352 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
40353 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
40354 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
40356 2014-04-29 David Malcolm <dmalcolm@redhat.com>
40358 * tree-cfg.c (dump_function_to_file): Dump the return type of
40359 functions, in a line to itself before the function body, mimicking
40360 the layout of a C function.
40362 2014-04-29 Jakub Jelinek <jakub@redhat.com>
40364 PR tree-optimization/60971
40365 * tree-tailcall.c (process_assignment): Reject conversions which
40368 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
40370 * calls.c (initialize_argument_information): Always treat
40371 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
40372 (expand_call): Likewise.
40373 (emit_library_call_calue_1): Likewise.
40374 * expr.c (PUSH_ARGS_REVERSED): Do not define.
40375 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
40378 2014-04-29 Nick Clifton <nickc@redhat.com>
40380 * config/msp430/msp430.md (umulsidi): Fix typo.
40381 (mulhisi3): Enable even inside interrupt handlers.
40382 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
40383 bigger return address pushed in large mode.
40385 2014-04-29 Nick Clifton <nickc@redhat.com>
40387 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
40388 (arc_init_reg_tables): Use a machine_mode enum to iterate over
40390 * config/m32r/m32r.c (init_reg_tables): Likewise.
40391 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
40392 enum to hold the modes.
40394 2014-04-29 Richard Biener <rguenther@suse.de>
40396 * dominance.c (free_dominance_info): Add overload with
40397 function parameter.
40398 (dom_info_state): Likewise.
40399 (dom_info_available_p): Likewise.
40400 * basic-block.h (free_dominance_info, dom_info_state,
40401 dom_info_available_p): Declare overloads.
40402 * passes.c (execute_function_todo): Verify that verifiers
40403 don't change dominator info state. Drop dominator info
40404 for IPA pass invocations.
40405 * cgraph.c (release_function_body): Restore asserts that
40406 dominator information is released.
40408 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
40410 * doc/invoke.texi: Fix typo.
40411 * tree-vrp.c: Fix typos.
40412 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
40414 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40416 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
40418 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40420 * config/aarch64/aarch64-builtins.c
40421 (aarch64_types_storestruct_lane_qualifiers): New.
40422 (TYPES_STORESTRUCT_LANE): Likewise.
40423 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
40424 (st3_lane): Likewise.
40425 (st4_lane): Likewise.
40426 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
40427 (vec_store_lanesci_lane<mode>): Likewise.
40428 (vec_store_lanesxi_lane<mode>): Likewise.
40429 (aarch64_st2_lane<VQ:mode>): Likewise.
40430 (aarch64_st3_lane<VQ:mode>): Likewise.
40431 (aarch64_st4_lane<VQ:mode>): Likewise.
40432 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
40433 * config/aarch64/arm_neon.h
40434 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
40435 use new macro arguments.
40436 (__ST3_LANE_FUNC): Likewise.
40437 (__ST4_LANE_FUNC): Likewise.
40438 * config/aarch64/iterators.md (V_TWO_ELEM): New.
40439 (V_THREE_ELEM): Likewise.
40440 (V_FOUR_ELEM): Likewise.
40442 2014-04-28 David Malcolm <dmalcolm@redhat.com>
40444 * doc/gimple.texi: Replace the description of the now-defunct
40445 union gimple_statement_d with a diagram showing the
40446 gimple_statement_base class hierarchy and its relationships to
40447 the GSS_ and GIMPLE_ enums.
40449 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40451 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
40452 * config/aarch64/aarch64.c
40453 (aarch64_cannot_change_mode_class): Weaken conditions.
40454 (aarch64_modes_tieable_p): New.
40455 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
40457 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
40459 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40460 (loadsync_<mode>): Change mode.
40461 (load_quadpti, store_quadpti): New.
40462 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40463 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40465 2014-04-28 Martin Jambor <mjambor@suse.cz>
40467 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
40468 same alias type as the original statement.
40469 (subreplacement_assignment_data): New type.
40470 (handle_unscalarized_data_in_subtree): New type of parameter,
40471 generate new memory accesses with same alias type as the original
40473 (load_assign_lhs_subreplacements): Likewise.
40474 (sra_modify_constructor_assign): Generate new memory accesses with
40475 same alias type as the original statement.
40477 2014-04-28 Richard Biener <rguenther@suse.de>
40479 * tree-pass.h (TODO_verify_il): Define.
40480 (TODO_verify_all): Complete properly.
40481 * passes.c (execute_function_todo): Move existing loop-closed
40482 SSA verification under TODO_verify_il.
40483 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
40484 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
40485 Fix tree sharing issue.
40487 2014-04-28 Richard Biener <rguenther@suse.de>
40489 PR middle-end/60092
40490 * builtins.def (DEF_C11_BUILTIN): Add.
40491 (BUILT_IN_ALIGNED_ALLOC): Likewise.
40492 * coretypes.h (enum function_class): Add function_c11_misc.
40493 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
40494 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
40495 (call_may_clobber_ref_p_1): Likewise.
40496 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
40497 (mark_all_reaching_defs_necessary_1): Likewise.
40498 (propagate_necessity): Likewise.
40499 (eliminate_unnecessary_stmts): Likewise.
40500 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
40502 2014-04-28 Richard Biener <rguenther@suse.de>
40504 * tree-vrp.c (vrp_var_may_overflow): Remove.
40505 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
40506 with overflow immediately bump to one before that value and
40507 let iteration figure out overflow status.
40509 2014-04-28 Richard Biener <rguenther@suse.de>
40511 * configure.ac: Do valgrind header checks unconditionally.
40512 Add --enable-valgrind-annotations.
40513 * system.h: Guard valgrind header inclusion with
40514 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
40515 * alloc-pool.c (pool_alloc, pool_free): Use
40516 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
40517 to guard possibly dead code.
40518 * config.in: Regenerated.
40519 * configure: Likewise.
40521 2014-04-28 Jeff Law <law@redhat.com>
40523 PR tree-optimization/60902
40524 * tree-ssa-threadedge.c
40525 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
40526 over real defs when invalidating outputs from statements that do not
40527 produce useful outputs for threading.
40529 2014-04-28 Richard Biener <rguenther@suse.de>
40531 PR tree-optimization/60979
40532 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
40533 SCOPs that end in a block with a successor with abnormal
40536 2014-04-28 Richard Biener <rguenther@suse.de>
40538 * tree-pass.h (execute_pass_list): Adjust prototype.
40539 * passes.c (pass_manager::execute_early_local_passes): Adjust.
40540 (do_per_function): Change callback signature, push all actual
40541 work to the callbals.
40542 (do_per_function_toporder): Likewise.
40543 (execute_function_dump): Adjust.
40544 (execute_function_todo): Likewise.
40545 (clear_last_verified): Likewise.
40546 (verify_curr_properties): Likewise.
40547 (update_properties_after_pass): Likewise.
40548 (execute_pass_list_1): Split out from ...
40549 (execute_pass_list): ... here. Adjust.
40550 (execute_ipa_pass_list): Likewise.
40551 * cgraphunit.c (cgraph_add_new_function): Adjust.
40552 (analyze_function): Likewise.
40553 (expand_function): Likewise.
40554 * cgraph.c (release_function_body): Free dominance info
40555 here instead of asserting it was magically freed elsewhere.
40557 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
40559 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
40560 * configure: Regenerate.
40561 * config/sparc/sparc.opt (muser-mode): New option.
40562 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
40564 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
40565 * doc/invoke.texi (SPARC options): Document -muser-mode.
40567 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
40569 * cselib.c (find_slot_memmode): Delete.
40570 (cselib_hasher): Change compare_type to a struct.
40571 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
40573 (preserve_constants_and_equivs): Adjust for new compare_type.
40574 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
40575 (wrap_constant): Delete.
40576 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
40578 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
40580 * doc/install.texi (Building with profile feedback): Remove
40583 2014-04-26 Tom de Vries <tom@codesourcery.com>
40585 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
40588 2014-04-25 Cary Coutant <ccoutant@google.com>
40591 * dwarf2out.c (should_move_die_to_comdat): A type definition
40592 can contain a subprogram definition, but don't move it to a
40594 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
40595 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
40597 (clone_tree_hash): Rename to...
40598 (clone_tree_partial): ...this; change callers. Copy
40599 DW_TAG_subprogram DIEs as declarations.
40600 (copy_decls_walk): Don't copy children of a declaration into a
40603 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
40606 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
40609 2014-04-25 Jiong Wang <jiong.wang@arm.com>
40611 * config/arm/predicates.md (call_insn_operand): Add long_call check.
40612 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
40614 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
40617 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40619 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
40621 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40623 PR tree-optimization/60930
40624 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
40625 creating a multiply candidate by folding two constant
40626 multiplicands when the result overflows.
40628 2014-04-25 Jakub Jelinek <jakub@redhat.com>
40630 PR tree-optimization/60960
40631 * tree-vect-generic.c (expand_vector_operation): Only call
40632 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
40634 2014-04-25 Tom de Vries <tom@codesourcery.com>
40636 * expr.c (clobber_reg_mode): New function.
40637 * expr.h (clobber_reg): New function.
40639 2014-04-25 Tom de Vries <tom@codesourcery.com>
40641 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
40644 2014-04-25 Radovan Obradovic <robradovic@mips.com>
40645 Tom de Vries <tom@codesourcery.com>
40647 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
40649 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
40650 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
40651 new argument to find_all_hard_reg_sets call.
40653 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40655 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
40656 Use HOST_WIDE_INT_C for mask literal.
40657 (aarch_rev16_shleft_mask_imm_p): Likewise.
40659 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
40662 * config/sparc/sparc.md (ashlsi3_extend): Delete.
40664 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
40666 PR preprocessor/56540
40667 * config/i386/i386-c.c (ix86_target_macros): Define
40668 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
40670 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40672 * configure.ac (tga_func): Remove.
40673 (LIB_TLS_SPEC): Remove.
40674 * configure: Regenerate.
40675 * config.in: Regenerate.
40676 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
40678 2014-04-25 Richard Biener <rguenther@suse.de>
40681 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
40682 call stmt use/clobber sets during stmt walk instead of
40683 walking the possibly incomplete set of caller edges.
40685 2014-04-25 Richard Biener <rguenther@suse.de>
40688 * passes.c (apply_ipa_transforms): Inline into only caller ...
40689 (execute_one_pass): ... here. Properly bring in function
40690 bodies for nodes we want to apply IPA transforms to.
40692 2014-04-24 Cong Hou <congh@google.com>
40694 PR tree-optimization/60896
40695 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
40696 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
40697 (vect_mark_pattern_stmts): Set the def type of all statements in
40698 PATTERN_DEF_SEQ as vect_internal_def.
40700 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
40702 * doc/extend.texi (PowerPC Built-in Functions): Document new
40703 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
40704 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
40706 * config/rs6000/predicates.md (const_0_to_3_operand): New
40707 predicate to match 0..3 integer constants.
40709 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
40710 to support adding miscellaneous builtin functions.
40711 (BU_DFP_MISC_2): Likewise.
40712 (BU_P7_MISC_1): Likewise.
40713 (BU_P7_MISC_2): Likewise.
40714 (BU_P8V_MISC_3): Likewise.
40715 (BU_MISC_1): Likewise.
40716 (BU_MISC_2): Likewise.
40717 (DIVWE): Add extended divide builtin functions.
40718 (DIVWEO): Likewise.
40719 (DIVWEU): Likewise.
40720 (DIVWEUO): Likewise.
40722 (DIVDEO): Likewise.
40723 (DIVDEU): Likewise.
40724 (DIVDEUO): Likewise.
40725 (DXEX): Add decimal floating-point builtin functions.
40727 (DDEDPD): Likewise.
40728 (DDEDPDQ): Likewise.
40729 (DENBCD): Likewise.
40730 (DENBCDQ): Likewise.
40734 (DSCLIQ): Likewise.
40736 (DSCRIQ): Likewise.
40737 (CDTBCD): Add new BCD builtin functions.
40738 (CBCDTD): Likewise.
40739 (ADDG6S): Likewise.
40740 (BCDADD): Likewise.
40741 (BCDADD_LT): Likewise.
40742 (BCDADD_EQ): Likewise.
40743 (BCDADD_GT): Likewise.
40744 (BCDADD_OV): Likewise.
40745 (BCDSUB): Likewise.
40746 (BCDSUB_LT): Likewise.
40747 (BCDSUB_EQ): Likewise.
40748 (BCDSUB_GT): Likewise.
40749 (BCDSUB_OV): Likewise.
40750 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
40751 (UNPACK_TD): Likewise.
40752 (PACK_TF): Likewise.
40753 (UNPACK_TF): Likewise.
40754 (UNPACK_TF_0): Likewise.
40755 (UNPACK_TF_1): Likewise.
40756 (PACK_V1TI): Likewise.
40757 (UNPACK_V1TI): Likewise.
40759 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
40760 support for decimal floating point builtin functions.
40761 (rs6000_expand_ternop_builtin): Add checks for the new builtin
40762 functions that take constant arguments.
40763 (rs6000_invalid_builtin): Add decimal floating point builtin support.
40764 (rs6000_init_builtins): Setup long double, _Decimal64, and
40765 _Decimal128 types for new builtin functions.
40766 (builtin_function_type): Set the unsigned flags appropriately for
40767 the new builtin functions.
40768 (rs6000_opt_masks): Add support for decimal floating point builtin
40771 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
40772 floating point builtin functions.
40773 (RS6000_BTM_COMMON): Likewise.
40774 (RS6000_BTI_long_double): Likewise.
40775 (RS6000_BTI_dfloat64): Likewise.
40776 (RS6000_BTI_dfloat128): Likewise.
40777 (long_double_type_internal_node): Likewise.
40778 (dfloat64_type_internal_node): Likewise.
40779 (dfloat128_type_internal_node): Likewise.
40781 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
40782 2.07 bcd arithmetic instructions.
40783 (UNSPEC_BCDSUB): Likewise.
40784 (UNSPEC_BCD_OVERFLOW): Likewise.
40785 (UNSPEC_BCD_ADD_SUB): Likewise.
40786 (bcd_add_sub): Likewise.
40787 (BCD_TEST): Likewise.
40788 (bcd<bcd_add_sub>): Likewise.
40789 (bcd<bcd_add_sub>_test): Likewise.
40790 (bcd<bcd_add_sub>_test2): Likewise.
40791 (bcd<bcd_add_sub>_<code>): Likewise.
40792 (peephole2 for combined bcd ops): Likewise.
40794 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
40795 decimal floating point builtin functions.
40796 (UNSPEC_DENBCD): Likewise.
40797 (UNSPEC_DXEX): Likewise.
40798 (UNSPEC_DIEX): Likewise.
40799 (UNSPEC_DSCLI): Likewise.
40800 (UNSPEC_DSCRI): Likewise.
40801 (D64_D128): Likewise.
40802 (dfp_suffix): Likewise.
40803 (dfp_ddedpd_<mode>): Likewise.
40804 (dfp_denbcd_<mode>): Likewise.
40805 (dfp_dxex_<mode>): Likewise.
40806 (dfp_diex_<mode>): Likewise.
40807 (dfp_dscli_<mode>): Likewise.
40808 (dfp_dscri_<mode>): Likewise.
40810 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
40812 (UNSPEC_CDTBCD): Likewise.
40813 (UNSPEC_CBCDTD): Likewise.
40814 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
40815 (UNSPEC_DIVEO): Likewise.
40816 (UNSPEC_DIVEU): Likewise.
40817 (UNSPEC_DIVEUO): Likewise.
40818 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
40819 pack/unpack 128-bit types.
40820 (UNSPEC_PACK_128BIT): Likewise.
40821 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
40822 (udiv<mode>3): Use idiv_ldiv mode attribute.
40823 (div<mode>3): Likewise.
40824 (addg6s): Add new BCD builtin functions.
40825 (cdtbcd): Likewise.
40826 (cbcdtd): Likewise.
40827 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
40828 (div_extend): Likewise.
40829 (div<div_extend>_<mode>"): Likewise.
40830 (FP128_64): Add support for new builtin functions to pack/unpack
40832 (unpack<mode>): Likewise.
40833 (unpacktf_0): Likewise.
40834 (unpacktf_1): Likewise.
40835 (unpack<mode>_dm): Likewise.
40836 (unpack<mode>_nodm): Likewise.
40837 (pack<mode>): Likewise.
40838 (unpackv1ti): Likewise.
40839 (packv1ti): Likewise.
40841 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
40843 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
40846 2014-04-24 Jakub Jelinek <jakub@redhat.com>
40848 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
40849 * gimplify.c (omp_is_private): Change last argument's type to int.
40850 Only diagnose lastprivate if the simd argument is 1, only diagnose
40851 linear if the simd argument is 2.
40852 (gimplify_omp_for): Adjust omp_is_private callers. When adding
40853 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
40854 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
40855 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
40856 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
40857 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40858 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
40859 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40860 * tree-nested.c (convert_nonlocal_omp_clauses,
40861 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
40863 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
40866 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
40869 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
40871 * flag-types.h (enum ivar_visibility): Add.
40873 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
40875 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
40876 function * argument.
40878 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
40880 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
40882 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40883 Tom de Vries <tom@codesourcery.com>
40885 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
40886 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
40888 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
40889 * emit-rtl.c (try_split): Same.
40891 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40892 Tom de Vries <tom@codesourcery.com>
40894 * common.opt (fuse-caller-save): New option.
40896 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
40898 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
40899 elements for big-endian.
40901 2014-04-24 Richard Biener <rguenther@suse.de>
40903 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
40904 during TER and instead use the sepops interface for expanding
40905 non-GIMPLE_SINGLE_RHS.
40907 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40909 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
40910 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
40912 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40914 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
40915 assembler 64-bit option.
40916 * configure: Regenerate.
40918 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40920 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
40921 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
40922 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
40923 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
40924 (TARGET_CRYPTO): Take TARGET_SIMD into account.
40926 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40928 * config/aarch64/aarch64-builtins.c
40929 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
40930 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
40931 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
40932 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
40934 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
40935 (Vrevsuff): New mode attribute.
40937 2014-04-24 Terry Guo <terry.guo@arm.com>
40939 * config/arm/arm.h (machine_function): Define variable
40940 after_arm_reorg here.
40941 * config/arm/arm.c (after_arm_reorg): Remove the definition.
40942 (arm_split_constant): Update the way to access variable
40944 (arm_reorg): Ditto.
40945 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
40947 2014-04-23 Tom de Vries <tom@codesourcery.com>
40949 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
40951 2014-04-23 David Malcolm <dmalcolm@redhat.com>
40953 * is-a.h: Update comments to reflect the following changes to the
40954 "pointerness" of the API, making the template parameter match the
40955 return type, allowing use of is-a.h with typedefs of pointers.
40956 (is_a_helper::cast): Return a T rather then a pointer to a T, so
40957 that the return type matches the parameter to the is_a_helper.
40959 (dyn_cast): Likewise.
40961 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
40962 pointer from the is-a.h API.
40964 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
40965 (is_a_helper <cgraph_node *>::test): ...this, matching change to
40967 (is_a_helper <varpool_node>::test): Likewise, convert to...
40968 (is_a_helper <varpool_node *>::test): ...this.
40970 (varpool_first_variable): Update for removal of implicit pointer
40971 from the is-a.h API.
40972 (varpool_next_variable): Likewise.
40973 (varpool_first_static_initializer): Likewise.
40974 (varpool_next_static_initializer): Likewise.
40975 (varpool_first_defined_variable): Likewise.
40976 (varpool_next_defined_variable): Likewise.
40977 (cgraph_first_defined_function): Likewise.
40978 (cgraph_next_defined_function): Likewise.
40979 (cgraph_first_function): Likewise.
40980 (cgraph_next_function): Likewise.
40981 (cgraph_first_function_with_gimple_body): Likewise.
40982 (cgraph_next_function_with_gimple_body): Likewise.
40983 (cgraph_alias_target): Likewise.
40984 (varpool_alias_target): Likewise.
40985 (cgraph_function_or_thunk_node): Likewise.
40986 (varpool_variable_node): Likewise.
40987 (symtab_real_symbol_p): Likewise.
40988 * cgraphunit.c (referred_to_p): Likewise.
40989 (analyze_functions): Likewise.
40990 (handle_alias_pairs): Likewise.
40991 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
40992 * gimple-ssa.h (gimple_vuse_op): Likewise.
40993 (gimple_vdef_op): Likewise.
40994 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
40995 * gimple.c (gimple_build_asm_1): Likewise.
40996 (gimple_build_try): Likewise.
40997 (gimple_build_resx): Likewise.
40998 (gimple_build_eh_dispatch): Likewise.
40999 (gimple_build_omp_for): Likewise.
41000 (gimple_omp_for_set_clauses): Likewise.
41002 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
41003 (is_a_helper <gimple_statement_asm *>::test): ...this.
41004 (is_a_helper <gimple_statement_bind>::test): Convert to...
41005 (is_a_helper <gimple_statement_bind *>::test): ...this.
41006 (is_a_helper <gimple_statement_call>::test): Convert to...
41007 (is_a_helper <gimple_statement_call *>::test): ...this.
41008 (is_a_helper <gimple_statement_catch>::test): Convert to...
41009 (is_a_helper <gimple_statement_catch *>::test): ...this.
41010 (is_a_helper <gimple_statement_resx>::test): Convert to...
41011 (is_a_helper <gimple_statement_resx *>::test): ...this.
41012 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
41013 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
41014 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
41015 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
41016 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
41017 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
41018 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
41019 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
41020 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
41021 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
41022 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
41023 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
41024 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
41025 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
41026 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
41027 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
41028 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
41029 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
41030 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
41031 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
41032 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
41033 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
41034 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
41035 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
41036 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
41037 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
41038 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
41039 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
41040 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
41041 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
41042 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
41043 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
41044 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
41045 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
41046 (is_a_helper <gimple_statement_phi>::test): Convert to...
41047 (is_a_helper <gimple_statement_phi *>::test): ...this.
41048 (is_a_helper <gimple_statement_transaction>::test): Convert to...
41049 (is_a_helper <gimple_statement_transaction *>::test): ...this.
41050 (is_a_helper <gimple_statement_try>::test): Convert to...
41051 (is_a_helper <gimple_statement_try *>::test): ...this.
41052 (is_a_helper <gimple_statement_wce>::test): Convert to...
41053 (is_a_helper <gimple_statement_wce *>::test): ...this.
41054 (is_a_helper <const gimple_statement_asm>::test): Convert to...
41055 (is_a_helper <const gimple_statement_asm *>::test): ...this.
41056 (is_a_helper <const gimple_statement_bind>::test): Convert to...
41057 (is_a_helper <const gimple_statement_bind *>::test): ...this.
41058 (is_a_helper <const gimple_statement_call>::test): Convert to...
41059 (is_a_helper <const gimple_statement_call *>::test): ...this.
41060 (is_a_helper <const gimple_statement_catch>::test): Convert to...
41061 (is_a_helper <const gimple_statement_catch *>::test): ...this.
41062 (is_a_helper <const gimple_statement_resx>::test): Convert to...
41063 (is_a_helper <const gimple_statement_resx *>::test): ...this.
41064 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
41065 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
41066 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
41067 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
41068 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
41070 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
41072 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
41074 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
41076 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
41077 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
41078 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
41080 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
41081 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
41083 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
41084 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
41085 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
41086 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
41087 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
41088 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
41090 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
41091 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
41092 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
41093 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
41095 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
41096 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
41097 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
41098 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
41099 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
41100 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
41101 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
41102 (is_a_helper <const gimple_statement_phi>::test): Convert to...
41103 (is_a_helper <const gimple_statement_phi *>::test): ...this.
41104 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
41105 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
41106 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
41107 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
41108 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
41109 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
41110 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
41112 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
41114 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
41115 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
41117 (gimple_use_ops): Update for removal of implicit pointer from the
41119 (gimple_set_use_ops): Likewise.
41120 (gimple_vuse): Likewise.
41121 (gimple_vdef): Likewise.
41122 (gimple_vuse_ptr): Likewise.
41123 (gimple_vdef_ptr): Likewise.
41124 (gimple_set_vuse): Likewise.
41125 (gimple_set_vdef): Likewise.
41126 (gimple_omp_return_set_lhs): Likewise.
41127 (gimple_omp_return_lhs): Likewise.
41128 (gimple_omp_return_lhs_ptr): Likewise.
41129 (gimple_call_fntype): Likewise.
41130 (gimple_call_set_fntype): Likewise.
41131 (gimple_call_set_internal_fn): Likewise.
41132 (gimple_call_use_set): Likewise.
41133 (gimple_call_clobber_set): Likewise.
41134 (gimple_bind_vars): Likewise.
41135 (gimple_bind_set_vars): Likewise.
41136 (gimple_bind_body_ptr): Likewise.
41137 (gimple_bind_set_body): Likewise.
41138 (gimple_bind_add_stmt): Likewise.
41139 (gimple_bind_block): Likewise.
41140 (gimple_bind_set_block): Likewise.
41141 (gimple_asm_ninputs): Likewise.
41142 (gimple_asm_noutputs): Likewise.
41143 (gimple_asm_nclobbers): Likewise.
41144 (gimple_asm_nlabels): Likewise.
41145 (gimple_asm_input_op): Likewise.
41146 (gimple_asm_input_op_ptr): Likewise.
41147 (gimple_asm_output_op): Likewise.
41148 (gimple_asm_output_op_ptr): Likewise.
41149 (gimple_asm_set_output_op): Likewise.
41150 (gimple_asm_clobber_op): Likewise.
41151 (gimple_asm_set_clobber_op): Likewise.
41152 (gimple_asm_label_op): Likewise.
41153 (gimple_asm_set_label_op): Likewise.
41154 (gimple_asm_string): Likewise.
41155 (gimple_catch_types): Likewise.
41156 (gimple_catch_types_ptr): Likewise.
41157 (gimple_catch_handler_ptr): Likewise.
41158 (gimple_catch_set_types): Likewise.
41159 (gimple_catch_set_handler): Likewise.
41160 (gimple_eh_filter_types): Likewise.
41161 (gimple_eh_filter_types_ptr): Likewise.
41162 (gimple_eh_filter_failure_ptr): Likewise.
41163 (gimple_eh_filter_set_types): Likewise.
41164 (gimple_eh_filter_set_failure): Likewise.
41165 (gimple_eh_must_not_throw_fndecl): Likewise.
41166 (gimple_eh_must_not_throw_set_fndecl): Likewise.
41167 (gimple_eh_else_n_body_ptr): Likewise.
41168 (gimple_eh_else_e_body_ptr): Likewise.
41169 (gimple_eh_else_set_n_body): Likewise.
41170 (gimple_eh_else_set_e_body): Likewise.
41171 (gimple_try_eval_ptr): Likewise.
41172 (gimple_try_cleanup_ptr): Likewise.
41173 (gimple_try_set_eval): Likewise.
41174 (gimple_try_set_cleanup): Likewise.
41175 (gimple_wce_cleanup_ptr): Likewise.
41176 (gimple_wce_set_cleanup): Likewise.
41177 (gimple_phi_capacity): Likewise.
41178 (gimple_phi_num_args): Likewise.
41179 (gimple_phi_result): Likewise.
41180 (gimple_phi_result_ptr): Likewise.
41181 (gimple_phi_set_result): Likewise.
41182 (gimple_phi_arg): Likewise.
41183 (gimple_phi_set_arg): Likewise.
41184 (gimple_resx_region): Likewise.
41185 (gimple_resx_set_region): Likewise.
41186 (gimple_eh_dispatch_region): Likewise.
41187 (gimple_eh_dispatch_set_region): Likewise.
41188 (gimple_omp_critical_name): Likewise.
41189 (gimple_omp_critical_name_ptr): Likewise.
41190 (gimple_omp_critical_set_name): Likewise.
41191 (gimple_omp_for_clauses): Likewise.
41192 (gimple_omp_for_clauses_ptr): Likewise.
41193 (gimple_omp_for_set_clauses): Likewise.
41194 (gimple_omp_for_collapse): Likewise.
41195 (gimple_omp_for_index): Likewise.
41196 (gimple_omp_for_index_ptr): Likewise.
41197 (gimple_omp_for_set_index): Likewise.
41198 (gimple_omp_for_initial): Likewise.
41199 (gimple_omp_for_initial_ptr): Likewise.
41200 (gimple_omp_for_set_initial): Likewise.
41201 (gimple_omp_for_final): Likewise.
41202 (gimple_omp_for_final_ptr): Likewise.
41203 (gimple_omp_for_set_final): Likewise.
41204 (gimple_omp_for_incr): Likewise.
41205 (gimple_omp_for_incr_ptr): Likewise.
41206 (gimple_omp_for_set_incr): Likewise.
41207 (gimple_omp_for_pre_body_ptr): Likewise.
41208 (gimple_omp_for_set_pre_body): Likewise.
41209 (gimple_omp_parallel_clauses): Likewise.
41210 (gimple_omp_parallel_clauses_ptr): Likewise.
41211 (gimple_omp_parallel_set_clauses): Likewise.
41212 (gimple_omp_parallel_child_fn): Likewise.
41213 (gimple_omp_parallel_child_fn_ptr): Likewise.
41214 (gimple_omp_parallel_set_child_fn): Likewise.
41215 (gimple_omp_parallel_data_arg): Likewise.
41216 (gimple_omp_parallel_data_arg_ptr): Likewise.
41217 (gimple_omp_parallel_set_data_arg): Likewise.
41218 (gimple_omp_task_clauses): Likewise.
41219 (gimple_omp_task_clauses_ptr): Likewise.
41220 (gimple_omp_task_set_clauses): Likewise.
41221 (gimple_omp_task_child_fn): Likewise.
41222 (gimple_omp_task_child_fn_ptr): Likewise.
41223 (gimple_omp_task_set_child_fn): Likewise.
41224 (gimple_omp_task_data_arg): Likewise.
41225 (gimple_omp_task_data_arg_ptr): Likewise.
41226 (gimple_omp_task_set_data_arg): Likewise.
41227 (gimple_omp_taskreg_clauses): Likewise.
41228 (gimple_omp_taskreg_clauses_ptr): Likewise.
41229 (gimple_omp_taskreg_set_clauses): Likewise.
41230 (gimple_omp_taskreg_child_fn): Likewise.
41231 (gimple_omp_taskreg_child_fn_ptr): Likewise.
41232 (gimple_omp_taskreg_set_child_fn): Likewise.
41233 (gimple_omp_taskreg_data_arg): Likewise.
41234 (gimple_omp_taskreg_data_arg_ptr): Likewise.
41235 (gimple_omp_taskreg_set_data_arg): Likewise.
41236 (gimple_omp_task_copy_fn): Likewise.
41237 (gimple_omp_task_copy_fn_ptr): Likewise.
41238 (gimple_omp_task_set_copy_fn): Likewise.
41239 (gimple_omp_task_arg_size): Likewise.
41240 (gimple_omp_task_arg_size_ptr): Likewise.
41241 (gimple_omp_task_set_arg_size): Likewise.
41242 (gimple_omp_task_arg_align): Likewise.
41243 (gimple_omp_task_arg_align_ptr): Likewise.
41244 (gimple_omp_task_set_arg_align): Likewise.
41245 (gimple_omp_single_clauses): Likewise.
41246 (gimple_omp_single_clauses_ptr): Likewise.
41247 (gimple_omp_single_set_clauses): Likewise.
41248 (gimple_omp_target_clauses): Likewise.
41249 (gimple_omp_target_clauses_ptr): Likewise.
41250 (gimple_omp_target_set_clauses): Likewise.
41251 (gimple_omp_target_child_fn): Likewise.
41252 (gimple_omp_target_child_fn_ptr): Likewise.
41253 (gimple_omp_target_set_child_fn): Likewise.
41254 (gimple_omp_target_data_arg): Likewise.
41255 (gimple_omp_target_data_arg_ptr): Likewise.
41256 (gimple_omp_target_set_data_arg): Likewise.
41257 (gimple_omp_teams_clauses): Likewise.
41258 (gimple_omp_teams_clauses_ptr): Likewise.
41259 (gimple_omp_teams_set_clauses): Likewise.
41260 (gimple_omp_sections_clauses): Likewise.
41261 (gimple_omp_sections_clauses_ptr): Likewise.
41262 (gimple_omp_sections_set_clauses): Likewise.
41263 (gimple_omp_sections_control): Likewise.
41264 (gimple_omp_sections_control_ptr): Likewise.
41265 (gimple_omp_sections_set_control): Likewise.
41266 (gimple_omp_for_set_cond): Likewise.
41267 (gimple_omp_for_cond): Likewise.
41268 (gimple_omp_atomic_store_set_val): Likewise.
41269 (gimple_omp_atomic_store_val): Likewise.
41270 (gimple_omp_atomic_store_val_ptr): Likewise.
41271 (gimple_omp_atomic_load_set_lhs): Likewise.
41272 (gimple_omp_atomic_load_lhs): Likewise.
41273 (gimple_omp_atomic_load_lhs_ptr): Likewise.
41274 (gimple_omp_atomic_load_set_rhs): Likewise.
41275 (gimple_omp_atomic_load_rhs): Likewise.
41276 (gimple_omp_atomic_load_rhs_ptr): Likewise.
41277 (gimple_omp_continue_control_def): Likewise.
41278 (gimple_omp_continue_control_def_ptr): Likewise.
41279 (gimple_omp_continue_set_control_def): Likewise.
41280 (gimple_omp_continue_control_use): Likewise.
41281 (gimple_omp_continue_control_use_ptr): Likewise.
41282 (gimple_omp_continue_set_control_use): Likewise.
41283 (gimple_transaction_body_ptr): Likewise.
41284 (gimple_transaction_label): Likewise.
41285 (gimple_transaction_label_ptr): Likewise.
41286 (gimple_transaction_set_body): Likewise.
41287 (gimple_transaction_set_label): Likewise.
41289 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
41290 * ipa-inline-analysis.c (inline_write_summary): Likewise.
41291 * ipa-ref.c (ipa_record_reference): Likewise.
41292 * ipa-reference.c (analyze_function): Likewise.
41293 (ipa_reference_write_optimization_summary): Likewise.
41294 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
41295 (address_taken_from_non_vtable_p): Likewise.
41296 (comdat_can_be_unshared_p_1): Likewise.
41297 * lto-cgraph.c (lto_output_ref): Likewise.
41298 (add_references): Likewise.
41299 (compute_ltrans_boundary): Likewise.
41300 (output_symtab): Likewise.
41301 (input_ref): Likewise.
41302 (input_cgraph_1): Likewise.
41303 (output_cgraph_opt_summary): Likewise.
41304 * lto-streamer-out.c (lto_output): Likewise.
41305 (output_symbol_p): Likewise.
41306 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
41307 (lsei_start_function_in_partition): Likewise.
41308 (lsei_next_variable_in_partition): Likewise.
41309 (lsei_start_variable_in_partition): Likewise.
41310 * symtab.c (insert_to_assembler_name_hash): Likewise.
41311 (unlink_from_assembler_name_hash): Likewise.
41312 (symtab_unregister_node): Likewise.
41313 (symtab_remove_node): Likewise.
41314 (dump_symtab_node): Likewise.
41315 (verify_symtab_base): Likewise.
41316 (verify_symtab_node): Likewise.
41317 (symtab_make_decl_local): Likewise.
41318 (symtab_alias_ultimate_target): Likewise.
41319 (symtab_resolve_alias): Likewise.
41320 (symtab_get_symbol_partitioning_class): Likewise.
41321 * tree-phinodes.c (allocate_phi_node): Likewise.
41322 (reserve_phi_args_for_new_edge): Likewise.
41323 (remove_phi_args): Likewise.
41324 * varpool.c (varpool_node_for_asm): Likewise.
41325 (varpool_remove_unreferenced_decls): Likewise.
41327 2014-04-23 Jeff Law <law@redhat.com>
41329 PR tree-optimization/60902
41330 * tree-ssa-threadedge.c
41331 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
41332 invalidate outputs from statements that do not produce useful
41333 outputs for threading.
41335 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
41337 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
41338 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
41339 machine descriptions for Stack Smashing Protector.
41341 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
41343 * aarch64.md (<optab>_rol<mode>3): New pattern.
41344 (<optab>_rolsi3_uxtw): Likewise.
41345 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
41347 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
41349 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
41350 (arm_cortex_a12_tune): Likewise.
41352 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41354 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
41356 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41358 * config/arm/arm.md (arm_rev16si2): New pattern.
41359 (arm_rev16si2_alt): Likewise.
41360 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
41362 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41364 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
41365 (rev16<mode>2_alt): Likewise.
41366 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
41367 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
41368 (aarch_rev16_shleft_mask_imm_p): Likewise.
41369 (aarch_rev16_p_1): Likewise.
41370 (aarch_rev16_p): Likewise.
41371 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
41372 (aarch_rev16_shright_mask_imm_p): Likewise.
41373 (aarch_rev16_shleft_mask_imm_p): Likewise.
41375 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41377 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
41378 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
41380 (cortex_a53_extra_costs): Likewise.
41381 (cortex_a57_extra_costs): Likewise.
41382 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
41383 (cortexa7_extra_costs): Likewise.
41384 (cortexa8_extra_costs): Likewise.
41385 (cortexa12_extra_costs): Likewise.
41386 (cortexa15_extra_costs): Likewise.
41387 (v7m_extra_costs): Likewise.
41388 (arm_new_rtx_costs): Handle BSWAP.
41390 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41392 * config/arm/arm.c (cortexa8_extra_costs): New table.
41393 (arm_cortex_a8_tune): New tuning struct.
41394 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
41396 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41398 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
41400 2014-04-23 Richard Biener <rguenther@suse.de>
41402 * Makefile.in (OBJS): Remove loop-unswitch.o.
41403 * tree-pass.h (make_pass_rtl_unswitch): Remove.
41404 * passes.def (pass_rtl_unswitch): Likewise.
41405 * loop-init.c (gate_rtl_unswitch): Likewise.
41406 (rtl_unswitch): Likewise.
41407 (pass_data_rtl_unswitch): Likewise.
41408 (pass_rtl_unswitch): Likewise.
41409 (make_pass_rtl_unswitch): Likewise.
41410 * rtl.h (reversed_condition): Likewise.
41411 (compare_and_jump_seq): Likewise.
41412 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
41414 * loop-unroll.c (compare_and_jump_seq): Likewise.
41416 2014-04-23 Richard Biener <rguenther@suse.de>
41418 PR tree-optimization/60903
41419 * tree-ssa-loop-im.c (analyze_memory_references): Remove
41420 commented code block.
41421 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
41422 loop flags to newly created BBs and edges.
41424 2014-04-23 Nick Clifton <nickc@redhat.com>
41426 * config/msp430/msp430.c (msp430_handle_option): Move function
41428 (msp430_option_override): Simplify mcu and mcpu option handling.
41429 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
41430 support for -mhwmult command line option.
41431 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
41432 -mhwmult command line option.
41433 (msp430_hwmult_enabled): Delete.
41434 (msp43o_output_labelref): Add support for -mhwmult command line option.
41435 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
41436 (umulsidi3): Likewise.
41437 * config/msp430/msp430.opt (mmcu): Add Report attribute.
41438 (mcpu, mlarge, msmall): Likewise.
41439 (mhwmult): New option.
41440 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
41442 (msp430_is_f5_mcu): Remove prototype.
41443 (msp430_use_f5_series_hwmult): Add prototype.
41444 * config/msp430/msp430-opts.h: New file.
41445 * common/config/msp430: New directory.
41446 * common/config/msp430/msp430-common.c: New file.
41447 * config.gcc (msp430): Remove target_has_targetm_common.
41448 * doc/invoke.texi: Document -mhwmult command line option.
41450 2014-04-23 Nick Clifton <nickc@redhat.com>
41452 * config/i386/cygwin.h (ENDFILE_SPEC): Include
41453 default-manifest.o if it can be found in the search path.
41454 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41456 2014-04-23 Terry Guo <terry.guo@arm.com>
41458 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
41460 2014-04-23 Richard Biener <rguenther@suse.de>
41462 PR middle-end/60895
41463 * tree-inline.c (declare_return_variable): Use mark_addressable.
41465 2014-04-23 Richard Biener <rguenther@suse.de>
41467 PR middle-end/60891
41468 * loop-init.c (loop_optimizer_init): Make sure to apply
41469 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
41471 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41474 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
41476 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
41477 if flag_sanitize_undefined_trap_on_error.
41478 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
41479 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
41480 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
41481 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
41482 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
41483 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
41484 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
41485 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
41486 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
41487 * ubsan.c (ubsan_instrument_unreachable): Return
41488 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
41489 (ubsan_expand_null_ifn): Emit __builtin_trap ()
41490 if flag_sanitize_undefined_trap_on_error and
41491 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
41492 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
41493 instrument_bool_enum_load): Emit __builtin_trap () if
41494 flag_sanitize_undefined_trap_on_error and
41495 __builtin_handle_*_abort () if !flag_sanitize_recover.
41496 * doc/invoke.texi (-fsanitize-recover,
41497 -fsanitize-undefined-trap-on-error): Document.
41499 2014-04-22 Christian Bruel <christian.bruel@st.com>
41501 * config/sh/sh.md (mov<mode>): Replace movQIHI.
41502 Force immediates to SImode.
41504 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
41506 * config/nios2/nios2.md (UNSPEC_ROUND): New.
41507 (lroundsfsi2): New.
41508 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
41509 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
41510 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
41511 (nios2_fpu_insn): Add entry for round.
41512 (N2FPU_NO_ERRNO_P): Define.
41513 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
41515 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
41517 2014-04-22 Richard Henderson <rth@redhat.com>
41519 * config/aarch64/aarch64 (addti3, subti3): New expanders.
41520 (add<GPI>3_compare0): Remove leading * from name.
41521 (add<GPI>3_carryin): Likewise.
41522 (sub<GPI>3_compare0): Likewise.
41523 (sub<GPI>3_carryin): Likewise.
41524 (<su_optab>mulditi3): New expander.
41525 (multi3): New expander.
41526 (madd<GPI>): Remove leading * from name.
41528 2014-04-22 Martin Jambor <mjambor@suse.cz>
41530 * cgraphclones.c (cgraph_function_versioning): Copy
41531 ipa_transforms_to_apply instead of asserting it is empty.
41533 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
41536 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
41537 on count_exp to get mode.
41539 2014-04-22 Andrew Pinski <apinski@cavium.com>
41541 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
41542 Handle TLS for ILP32.
41543 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
41544 (tlsie_small_<mode>): this and handle PTR.
41545 (tlsie_small_sidi): New pattern.
41546 (tlsle_small): Change to an expand to handle ILP32.
41547 (tlsle_small_<mode>): New pattern.
41548 (tlsdesc_small): Rename to ...
41549 (tlsdesc_small_<mode>): this and handle PTR.
41551 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41553 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
41555 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41557 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41558 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
41559 (aarch64_types_signed_poly_qualifiers): Likewise.
41560 (aarch64_types_unsigned_signed_qualifiers): Likewise.
41561 (aarch64_types_poly_signed_qualifiers): Likewise.
41562 (TYPES_REINTERP_SS): Type macro added.
41563 (TYPES_REINTERP_SU): Likewise.
41564 (TYPES_REINTERP_SP): Likewise.
41565 (TYPES_REINTERP_US): Likewise.
41566 (TYPES_REINTERP_PS): Likewise.
41567 (aarch64_fold_builtin): New expression folding added.
41568 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
41569 Declarations removed.
41570 (REINTERP_SS): Declarations added.
41571 (REINTERP_US): Likewise.
41572 (REINTERP_PS): Likewise.
41573 (REINTERP_SU): Likewise.
41574 (REINTERP_SP): Likewise.
41575 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
41576 (vreinterpretq_p8_f64): Likewise.
41577 (vreinterpret_p16_f64): Likewise.
41578 (vreinterpretq_p16_f64): Likewise.
41579 (vreinterpret_f32_f64): Likewise.
41580 (vreinterpretq_f32_f64): Likewise.
41581 (vreinterpret_f64_f32): Likewise.
41582 (vreinterpret_f64_p8): Likewise.
41583 (vreinterpret_f64_p16): Likewise.
41584 (vreinterpret_f64_s8): Likewise.
41585 (vreinterpret_f64_s16): Likewise.
41586 (vreinterpret_f64_s32): Likewise.
41587 (vreinterpret_f64_s64): Likewise.
41588 (vreinterpret_f64_u8): Likewise.
41589 (vreinterpret_f64_u16): Likewise.
41590 (vreinterpret_f64_u32): Likewise.
41591 (vreinterpret_f64_u64): Likewise.
41592 (vreinterpretq_f64_f32): Likewise.
41593 (vreinterpretq_f64_p8): Likewise.
41594 (vreinterpretq_f64_p16): Likewise.
41595 (vreinterpretq_f64_s8): Likewise.
41596 (vreinterpretq_f64_s16): Likewise.
41597 (vreinterpretq_f64_s32): Likewise.
41598 (vreinterpretq_f64_s64): Likewise.
41599 (vreinterpretq_f64_u8): Likewise.
41600 (vreinterpretq_f64_u16): Likewise.
41601 (vreinterpretq_f64_u32): Likewise.
41602 (vreinterpretq_f64_u64): Likewise.
41603 (vreinterpret_s64_f64): Likewise.
41604 (vreinterpretq_s64_f64): Likewise.
41605 (vreinterpret_u64_f64): Likewise.
41606 (vreinterpretq_u64_f64): Likewise.
41607 (vreinterpret_s8_f64): Likewise.
41608 (vreinterpretq_s8_f64): Likewise.
41609 (vreinterpret_s16_f64): Likewise.
41610 (vreinterpretq_s16_f64): Likewise.
41611 (vreinterpret_s32_f64): Likewise.
41612 (vreinterpretq_s32_f64): Likewise.
41613 (vreinterpret_u8_f64): Likewise.
41614 (vreinterpretq_u8_f64): Likewise.
41615 (vreinterpret_u16_f64): Likewise.
41616 (vreinterpretq_u16_f64): Likewise.
41617 (vreinterpret_u32_f64): Likewise.
41618 (vreinterpretq_u32_f64): Likewise.
41620 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41622 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41623 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
41624 (vreinterpret_p8_s8): Likewise.
41625 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
41626 (vreinterpret_p8_s16): Likewise.
41627 (vreinterpret_p8_s32): Likewise.
41628 (vreinterpret_p8_s64): Likewise.
41629 (vreinterpret_p8_f32): Likewise.
41630 (vreinterpret_p8_u8): Likewise.
41631 (vreinterpret_p8_u16): Likewise.
41632 (vreinterpret_p8_u32): Likewise.
41633 (vreinterpret_p8_u64): Likewise.
41634 (vreinterpret_p8_p16): Likewise.
41635 (vreinterpretq_p8_s8): Likewise.
41636 (vreinterpretq_p8_s16): Likewise.
41637 (vreinterpretq_p8_s32): Likewise.
41638 (vreinterpretq_p8_s64): Likewise.
41639 (vreinterpretq_p8_f32): Likewise.
41640 (vreinterpretq_p8_u8): Likewise.
41641 (vreinterpretq_p8_u16): Likewise.
41642 (vreinterpretq_p8_u32): Likewise.
41643 (vreinterpretq_p8_u64): Likewise.
41644 (vreinterpretq_p8_p16): Likewise.
41645 (vreinterpret_p16_s8): Likewise.
41646 (vreinterpret_p16_s16): Likewise.
41647 (vreinterpret_p16_s32): Likewise.
41648 (vreinterpret_p16_s64): Likewise.
41649 (vreinterpret_p16_f32): Likewise.
41650 (vreinterpret_p16_u8): Likewise.
41651 (vreinterpret_p16_u16): Likewise.
41652 (vreinterpret_p16_u32): Likewise.
41653 (vreinterpret_p16_u64): Likewise.
41654 (vreinterpret_p16_p8): Likewise.
41655 (vreinterpretq_p16_s8): Likewise.
41656 (vreinterpretq_p16_s16): Likewise.
41657 (vreinterpretq_p16_s32): Likewise.
41658 (vreinterpretq_p16_s64): Likewise.
41659 (vreinterpretq_p16_f32): Likewise.
41660 (vreinterpretq_p16_u8): Likewise.
41661 (vreinterpretq_p16_u16): Likewise.
41662 (vreinterpretq_p16_u32): Likewise.
41663 (vreinterpretq_p16_u64): Likewise.
41664 (vreinterpretq_p16_p8): Likewise.
41665 (vreinterpret_f32_s8): Likewise.
41666 (vreinterpret_f32_s16): Likewise.
41667 (vreinterpret_f32_s32): Likewise.
41668 (vreinterpret_f32_s64): Likewise.
41669 (vreinterpret_f32_u8): Likewise.
41670 (vreinterpret_f32_u16): Likewise.
41671 (vreinterpret_f32_u32): Likewise.
41672 (vreinterpret_f32_u64): Likewise.
41673 (vreinterpret_f32_p8): Likewise.
41674 (vreinterpret_f32_p16): Likewise.
41675 (vreinterpretq_f32_s8): Likewise.
41676 (vreinterpretq_f32_s16): Likewise.
41677 (vreinterpretq_f32_s32): Likewise.
41678 (vreinterpretq_f32_s64): Likewise.
41679 (vreinterpretq_f32_u8): Likewise.
41680 (vreinterpretq_f32_u16): Likewise.
41681 (vreinterpretq_f32_u32): Likewise.
41682 (vreinterpretq_f32_u64): Likewise.
41683 (vreinterpretq_f32_p8): Likewise.
41684 (vreinterpretq_f32_p16): Likewise.
41685 (vreinterpret_s64_s8): Likewise.
41686 (vreinterpret_s64_s16): Likewise.
41687 (vreinterpret_s64_s32): Likewise.
41688 (vreinterpret_s64_f32): Likewise.
41689 (vreinterpret_s64_u8): Likewise.
41690 (vreinterpret_s64_u16): Likewise.
41691 (vreinterpret_s64_u32): Likewise.
41692 (vreinterpret_s64_u64): Likewise.
41693 (vreinterpret_s64_p8): Likewise.
41694 (vreinterpret_s64_p16): Likewise.
41695 (vreinterpretq_s64_s8): Likewise.
41696 (vreinterpretq_s64_s16): Likewise.
41697 (vreinterpretq_s64_s32): Likewise.
41698 (vreinterpretq_s64_f32): Likewise.
41699 (vreinterpretq_s64_u8): Likewise.
41700 (vreinterpretq_s64_u16): Likewise.
41701 (vreinterpretq_s64_u32): Likewise.
41702 (vreinterpretq_s64_u64): Likewise.
41703 (vreinterpretq_s64_p8): Likewise.
41704 (vreinterpretq_s64_p16): Likewise.
41705 (vreinterpret_u64_s8): Likewise.
41706 (vreinterpret_u64_s16): Likewise.
41707 (vreinterpret_u64_s32): Likewise.
41708 (vreinterpret_u64_s64): Likewise.
41709 (vreinterpret_u64_f32): Likewise.
41710 (vreinterpret_u64_u8): Likewise.
41711 (vreinterpret_u64_u16): Likewise.
41712 (vreinterpret_u64_u32): Likewise.
41713 (vreinterpret_u64_p8): Likewise.
41714 (vreinterpret_u64_p16): Likewise.
41715 (vreinterpretq_u64_s8): Likewise.
41716 (vreinterpretq_u64_s16): Likewise.
41717 (vreinterpretq_u64_s32): Likewise.
41718 (vreinterpretq_u64_s64): Likewise.
41719 (vreinterpretq_u64_f32): Likewise.
41720 (vreinterpretq_u64_u8): Likewise.
41721 (vreinterpretq_u64_u16): Likewise.
41722 (vreinterpretq_u64_u32): Likewise.
41723 (vreinterpretq_u64_p8): Likewise.
41724 (vreinterpretq_u64_p16): Likewise.
41725 (vreinterpret_s8_s16): Likewise.
41726 (vreinterpret_s8_s32): Likewise.
41727 (vreinterpret_s8_s64): Likewise.
41728 (vreinterpret_s8_f32): Likewise.
41729 (vreinterpret_s8_u8): Likewise.
41730 (vreinterpret_s8_u16): Likewise.
41731 (vreinterpret_s8_u32): Likewise.
41732 (vreinterpret_s8_u64): Likewise.
41733 (vreinterpret_s8_p8): Likewise.
41734 (vreinterpret_s8_p16): Likewise.
41735 (vreinterpretq_s8_s16): Likewise.
41736 (vreinterpretq_s8_s32): Likewise.
41737 (vreinterpretq_s8_s64): Likewise.
41738 (vreinterpretq_s8_f32): Likewise.
41739 (vreinterpretq_s8_u8): Likewise.
41740 (vreinterpretq_s8_u16): Likewise.
41741 (vreinterpretq_s8_u32): Likewise.
41742 (vreinterpretq_s8_u64): Likewise.
41743 (vreinterpretq_s8_p8): Likewise.
41744 (vreinterpretq_s8_p16): Likewise.
41745 (vreinterpret_s16_s8): Likewise.
41746 (vreinterpret_s16_s32): Likewise.
41747 (vreinterpret_s16_s64): Likewise.
41748 (vreinterpret_s16_f32): Likewise.
41749 (vreinterpret_s16_u8): Likewise.
41750 (vreinterpret_s16_u16): Likewise.
41751 (vreinterpret_s16_u32): Likewise.
41752 (vreinterpret_s16_u64): Likewise.
41753 (vreinterpret_s16_p8): Likewise.
41754 (vreinterpret_s16_p16): Likewise.
41755 (vreinterpretq_s16_s8): Likewise.
41756 (vreinterpretq_s16_s32): Likewise.
41757 (vreinterpretq_s16_s64): Likewise.
41758 (vreinterpretq_s16_f32): Likewise.
41759 (vreinterpretq_s16_u8): Likewise.
41760 (vreinterpretq_s16_u16): Likewise.
41761 (vreinterpretq_s16_u32): Likewise.
41762 (vreinterpretq_s16_u64): Likewise.
41763 (vreinterpretq_s16_p8): Likewise.
41764 (vreinterpretq_s16_p16): Likewise.
41765 (vreinterpret_s32_s8): Likewise.
41766 (vreinterpret_s32_s16): Likewise.
41767 (vreinterpret_s32_s64): Likewise.
41768 (vreinterpret_s32_f32): Likewise.
41769 (vreinterpret_s32_u8): Likewise.
41770 (vreinterpret_s32_u16): Likewise.
41771 (vreinterpret_s32_u32): Likewise.
41772 (vreinterpret_s32_u64): Likewise.
41773 (vreinterpret_s32_p8): Likewise.
41774 (vreinterpret_s32_p16): Likewise.
41775 (vreinterpretq_s32_s8): Likewise.
41776 (vreinterpretq_s32_s16): Likewise.
41777 (vreinterpretq_s32_s64): Likewise.
41778 (vreinterpretq_s32_f32): Likewise.
41779 (vreinterpretq_s32_u8): Likewise.
41780 (vreinterpretq_s32_u16): Likewise.
41781 (vreinterpretq_s32_u32): Likewise.
41782 (vreinterpretq_s32_u64): Likewise.
41783 (vreinterpretq_s32_p8): Likewise.
41784 (vreinterpretq_s32_p16): Likewise.
41785 (vreinterpret_u8_s8): Likewise.
41786 (vreinterpret_u8_s16): Likewise.
41787 (vreinterpret_u8_s32): Likewise.
41788 (vreinterpret_u8_s64): Likewise.
41789 (vreinterpret_u8_f32): Likewise.
41790 (vreinterpret_u8_u16): Likewise.
41791 (vreinterpret_u8_u32): Likewise.
41792 (vreinterpret_u8_u64): Likewise.
41793 (vreinterpret_u8_p8): Likewise.
41794 (vreinterpret_u8_p16): Likewise.
41795 (vreinterpretq_u8_s8): Likewise.
41796 (vreinterpretq_u8_s16): Likewise.
41797 (vreinterpretq_u8_s32): Likewise.
41798 (vreinterpretq_u8_s64): Likewise.
41799 (vreinterpretq_u8_f32): Likewise.
41800 (vreinterpretq_u8_u16): Likewise.
41801 (vreinterpretq_u8_u32): Likewise.
41802 (vreinterpretq_u8_u64): Likewise.
41803 (vreinterpretq_u8_p8): Likewise.
41804 (vreinterpretq_u8_p16): Likewise.
41805 (vreinterpret_u16_s8): Likewise.
41806 (vreinterpret_u16_s16): Likewise.
41807 (vreinterpret_u16_s32): Likewise.
41808 (vreinterpret_u16_s64): Likewise.
41809 (vreinterpret_u16_f32): Likewise.
41810 (vreinterpret_u16_u8): Likewise.
41811 (vreinterpret_u16_u32): Likewise.
41812 (vreinterpret_u16_u64): Likewise.
41813 (vreinterpret_u16_p8): Likewise.
41814 (vreinterpret_u16_p16): Likewise.
41815 (vreinterpretq_u16_s8): Likewise.
41816 (vreinterpretq_u16_s16): Likewise.
41817 (vreinterpretq_u16_s32): Likewise.
41818 (vreinterpretq_u16_s64): Likewise.
41819 (vreinterpretq_u16_f32): Likewise.
41820 (vreinterpretq_u16_u8): Likewise.
41821 (vreinterpretq_u16_u32): Likewise.
41822 (vreinterpretq_u16_u64): Likewise.
41823 (vreinterpretq_u16_p8): Likewise.
41824 (vreinterpretq_u16_p16): Likewise.
41825 (vreinterpret_u32_s8): Likewise.
41826 (vreinterpret_u32_s16): Likewise.
41827 (vreinterpret_u32_s32): Likewise.
41828 (vreinterpret_u32_s64): Likewise.
41829 (vreinterpret_u32_f32): Likewise.
41830 (vreinterpret_u32_u8): Likewise.
41831 (vreinterpret_u32_u16): Likewise.
41832 (vreinterpret_u32_u64): Likewise.
41833 (vreinterpret_u32_p8): Likewise.
41834 (vreinterpret_u32_p16): Likewise.
41835 (vreinterpretq_u32_s8): Likewise.
41836 (vreinterpretq_u32_s16): Likewise.
41837 (vreinterpretq_u32_s32): Likewise.
41838 (vreinterpretq_u32_s64): Likewise.
41839 (vreinterpretq_u32_f32): Likewise.
41840 (vreinterpretq_u32_u8): Likewise.
41841 (vreinterpretq_u32_u16): Likewise.
41842 (vreinterpretq_u32_u64): Likewise.
41843 (vreinterpretq_u32_p8): Likewise.
41844 (vreinterpretq_u32_p16): Likewise.
41846 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41848 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
41850 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
41852 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
41853 (vqnegd_s64): Likewise.
41854 (vqabs_s64): Likewise.
41855 (vqabsd_s64): Likewise.
41857 2014-04-22 Richard Henderson <rth@redhat.com>
41859 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
41860 computation to the top of the loop.
41862 2014-04-22 Renlin <renlin.li@arm.com>
41863 Jiong Wang <jiong.wang@arm.com>
41865 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
41866 * config/aarch64/aarch64.c (aarch64_layout_frame)
41867 (aarch64_initial_elimination_offset): Likewise.
41869 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
41871 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
41874 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
41876 * machmode.h (bitwise_mode_for_mode): Declare.
41877 * stor-layout.h (bitwise_type_for_mode): Likewise.
41878 * stor-layout.c (bitwise_mode_for_mode): New function.
41879 (bitwise_type_for_mode): Likewise.
41880 * builtins.c (fold_builtin_memory_op): Use it instead of
41881 int_mode_for_mode and build_nonstandard_integer_type.
41883 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41885 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
41886 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
41887 (*-*-solaris2*): Simplify.
41888 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
41889 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
41890 *-*-solaris2.9* handling.
41892 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
41894 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
41895 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
41896 handling, simplify.
41897 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
41898 * configure: Regenerate.
41900 * config/i386/sol2-9.h: Remove.
41902 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
41903 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
41904 Remove Solaris 9 references.
41906 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
41908 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
41909 (floatuns<GPI:mode><GPF:mode>2): Remove.
41910 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
41911 and floatuns conversions.
41912 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
41913 and floatuns conversions.
41914 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
41915 (w1,w2): New mode attributes for inequal width conversions.
41917 2014-04-22 Renlin Li <Renlin.Li@arm.com>
41919 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
41920 the output asm format.
41922 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
41924 * config/aarch64/aarch64-simd.md
41925 (aarch64_cm<optab>di): Always split.
41926 (*aarch64_cm<optab>di): New.
41927 (aarch64_cmtstdi): Always split.
41928 (*aarch64_cmtstdi): New.
41930 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41932 PR tree-optimization/60823
41933 * omp-low.c (ipa_simd_modify_function_body): Go through
41934 all SSA_NAMEs and for those refering to vector arguments
41935 which are going to be replaced adjust SSA_NAME_VAR and,
41936 if it is a default definition, change it into a non-default
41937 definition assigned at the beginning of function from new_decl.
41938 (ipa_simd_modify_stmt_ops): Rewritten.
41939 * tree-dfa.c (set_ssa_default_def): When removing default def,
41940 check for NULL loc instead of NULL *loc.
41942 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41944 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
41945 restrictions on core registers for DImode values in Thumb2.
41947 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41949 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
41950 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
41952 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41954 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
41955 (*iordi_notzesidi_di): Likewise.
41956 (*iordi_notsesidi_di): Likewise.
41958 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41960 * config/arm/arm-protos.h (tune_params): New struct members.
41961 * config/arm/arm.c: Initialise tune_params per processor.
41962 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
41963 for speed, based on new tune_params.
41965 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41967 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
41968 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
41969 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
41970 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
41971 * config/aarch64/arm_neon.h (vrnd_f64): Added.
41972 (vrnda_f64): Likewise.
41973 (vrndi_f64): Likewise.
41974 (vrndm_f64): Likewise.
41975 (vrndn_f64): Likewise.
41976 (vrndp_f64): Likewise.
41977 (vrndx_f64): Likewise.
41979 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
41981 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
41982 GET_MODE_SIZE argument is enum machine_mode.
41984 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41987 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
41988 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
41990 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
41992 PR middle-end/60281
41993 * asan.c (asan_emit_stack_protection): Force the base to align to
41994 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
41995 appropriate bits if STRICT_ALIGNMENT.
41996 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
41998 (expand_used_vars): Leave a space in the stack frame for alignment
41999 if STRICT_ALIGNMENT.
42001 2014-04-21 David Malcolm <dmalcolm@redhat.com>
42003 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
42005 (gimple_store_p): Likewise.
42006 (gimple_assign_load_p): Likewise.
42007 (gimple_assign_cast_p): Likewise.
42008 (gimple_clobber_p): Likewise.
42010 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
42011 rather than a gimple.
42012 (gimple_assign_cast_p): Likewise.
42014 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
42017 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
42018 If mode is DDmode and TARGET_E500_DOUBLE allow move.
42020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
42021 more debug information for E500 if -mdebug=reg.
42023 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
42026 * config/i386/i386.c (ix86_expand_builtin)
42027 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
42028 register for target RTX.
42029 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
42031 2014-04-18 Cong Hou <congh@google.com>
42033 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
42034 the widen-mult pattern by handling two operands with different sizes,
42035 and operands whose size is smaller than half of the result type.
42037 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42039 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
42040 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
42041 (do_estimate_edge_time): Compute it.
42042 * ipa-inline.c (want_inline_small_function_p): Bypass
42043 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
42045 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42047 * ipa-inline.c (spec_rem): New static variable.
42048 (dump_overall_stats): New function.
42049 (dump_inline_stats): New function.
42051 2014-04-18 Richard Henderson <rth@redhat.com>
42053 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
42054 to GET_MODE_SIZE, not a reg_class_t.
42056 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42058 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
42059 (vsx_xxmrglw_<mode>): Likewise.
42061 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
42064 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
42065 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
42066 (rs6000_init_hard_regno_mode_ok): Likewise.
42068 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
42070 * ipa-inline.c (inline_small_functions): Account only non-cold
42072 * doc/invoke.texi (inline-unit-growth): Update documentation.
42074 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
42076 * config/rs6000/rs6000.md (addti3, subti3): New.
42078 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
42081 * config/i386/i386.c (ix86_expand_clear): Remove outdated
42082 comment. Check optimize_insn_for_size_p instead of
42083 optimize_insn_for_speed_p.
42085 2014-04-17 Martin Jambor <mjambor@suse.cz>
42087 * gimple-iterator.c (gsi_start_edge): New function.
42088 * gimple-iterator.h (gsi_start_edge): Declare.
42089 * tree-sra.c (single_non_eh_succ): New function.
42090 (disqualify_ops_if_throwing_stmt): Renamed to
42091 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
42092 having one non-EH successor BB.
42093 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
42094 generate loads into replacements.
42095 (sra_modify_assign): Likewise and and also use the simple path for
42097 (sra_modify_function_body): Commit statements on edges.
42099 2014-04-17 Richard Biener <rguenther@suse.de>
42101 PR middle-end/60849
42102 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
42103 comparison results and add clarifying comment.
42105 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42107 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
42108 (blank_mode): Initialize it.
42109 (emit_mode_size_inline, emit_mode_nunits_inline,
42110 emit_mode_inner_inline): New functions.
42111 (emit_insn_modes_h): Call them and surround their output with
42112 #if GCC_VERSION >= 4001 ... #endif.
42113 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
42114 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
42115 mode_* arrays if the argument is __builtin_constant_p.
42116 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
42117 is enum machine_mode.
42119 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42121 * passes.c (opt_pass::execute): Adjust.
42122 (pass_manager::execute_pass_mode_switching): Likewise.
42123 (early_local_passes::execute): Likewise.
42124 (execute_one_pass): Pass cfun to the pass's execute method.
42125 * tree-pass.h (opt_pass::execute): Add function * argument.
42126 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42127 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42128 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42129 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42130 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42131 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
42132 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
42133 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42134 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42135 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
42136 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
42137 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
42138 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
42139 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
42140 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42141 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42142 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42143 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
42144 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
42145 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42146 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42147 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42148 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42149 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42150 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42151 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42152 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42153 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42154 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42157 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42159 * passes.c (opt_pass::gate): Take function * argument.
42160 (gate_all_early_local_passes): Merge into
42161 (early_local_passes::gate): this.
42162 (gate_all_early_optimizations): Merge into
42163 (all_early_optimizations::gate): this.
42164 (gate_all_optimizations): Mege into
42165 (all_optimizations::gate): this.
42166 (gate_all_optimizations_g): Merge into
42167 (all_optimizations_g::gate): this.
42168 (gate_rest_of_compilation): Mege into
42169 (rest_of_compilation::gate): this.
42170 (gate_postreload): Merge into
42171 (postreload::gate): this.
42172 (dump_one_pass): Pass cfun to the pass's gate method.
42173 (execute_ipa_summary_passes): Likewise.
42174 (execute_one_pass): Likewise.
42175 (ipa_write_summaries_2): Likewise.
42176 (ipa_write_optimization_summaries_1): Likewise.
42177 (ipa_read_summaries_1): Likewise.
42178 (ipa_read_optimization_summaries_1): Likewise.
42179 (execute_ipa_stmt_fixups): Likewise.
42180 * tree-pass.h (opt_pass::gate): Add function * argument.
42181 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
42182 combine-stack-adj.c, combine.c, compare-elim.c,
42183 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42184 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
42185 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
42186 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
42187 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42188 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42189 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42190 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
42191 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
42192 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
42193 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42194 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42195 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
42196 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42197 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42198 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42199 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42200 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42201 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42202 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42203 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42204 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42205 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
42206 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
42207 var-tracking.c, vtable-verify.c, web.c: Adjust.
42209 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42211 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
42212 * configure: Regenerate.
42214 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42216 * passes.c (dump_one_pass): don't check pass->has_gate.
42217 (execute_ipa_summary_passes): Likewise.
42218 (execute_one_pass): Likewise.
42219 (ipa_write_summaries_2): Likewise.
42220 (ipa_write_optimization_summaries_1): Likewise.
42221 (ipa_read_optimization_summaries_1): Likewise.
42222 (execute_ipa_stmt_fixups): Likewise.
42223 * tree-pass.h (pass_data::has_gate): Remove.
42224 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42225 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42226 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42227 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42228 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42229 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
42230 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
42231 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
42232 gimple-low.c, gimple-ssa-isolate-paths.c,
42233 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
42234 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
42235 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42236 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
42237 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
42238 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
42239 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
42240 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
42241 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
42242 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42243 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42244 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42245 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42246 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42247 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42248 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42249 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42250 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42251 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42252 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42253 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42254 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42257 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42259 * pass_manager.h (pass_manager::register_dump_files_1): Remove
42261 * passes.c (pass_manager::register_dump_files_1): Merge into
42262 (pass_manager::register_dump_files): this, and remove its handling of
42263 properties since the pass always has the properties anyway.
42264 (pass_manager::pass_manager): Adjust.
42266 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42268 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
42269 * passes.c (pass_manager::register_dump_files_1): Remove dead code
42270 dealing with properties.
42271 (pass_manager::register_dump_files): Adjust.
42273 2014-03-20 Mark Wielaard <mjw@redhat.com>
42275 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
42276 then represent the bound as normal constant value.
42278 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42281 Forward port from 4.8 branch
42282 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
42284 * config/i386/bmiintrin.h (_blsi_u32): New.
42285 (_blsi_u64): Ditto.
42286 (_blsr_u32): Ditto.
42287 (_blsr_u64): Ditto.
42288 (_blsmsk_u32): Ditto.
42289 (_blsmsk_u64): Ditto.
42290 (_tzcnt_u32): Ditto.
42291 (_tzcnt_u64): Ditto.
42293 2014-04-17 Kito Cheng <kito@0xlab.org>
42295 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
42297 2014-04-17 Richard Biener <rguenther@suse.de>
42299 PR middle-end/60849
42300 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
42301 boolean results for comparisons.
42303 2014-04-17 Richard Biener <rguenther@suse.de>
42305 PR tree-optimization/60836
42306 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
42307 initial PHI args to be gimple values.
42309 2014-04-17 Richard Biener <rguenther@suse.de>
42311 PR tree-optimization/60841
42312 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
42313 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
42314 of stmts to SLP build.
42315 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
42316 (vect_analyze_slp): Likewise.
42317 (vect_analyze_slp_instance): Likewise.
42318 (vect_build_slp_tree): Limit overall SLP tree growth.
42319 * tree-vectorizer.h (vect_analyze_data_refs,
42320 vect_analyze_slp): Adjust prototypes.
42322 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42324 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
42327 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42329 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
42330 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
42331 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
42332 for TARGET_SLOW_PSHUFB
42334 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42336 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
42337 * config/i386/i386.c (intel_cost): Ditto.
42339 2014-04-17 Joey Ye <joey.ye@arm.com>
42341 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
42343 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42345 * opts.c (common_handle_option): Disable -fipa-reference coorectly
42346 with -fuse-profile.
42348 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42350 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
42351 (type_all_derivations_known_p): New predicate.
42352 (type_all_ctors_visible_p): New predicate.
42353 (type_possibly_instantiated_p): New predicate.
42354 (get_odr_type): Compute all_derivations_known.
42355 (dump_odr_type): Dump the flag.
42356 (maybe_record_type): Cleanup.
42357 (record_target_from_binfo): Add bases_to_consider array;
42358 record bases for types w/o instances and skip CXX destructor.
42359 (possible_polymorphic_call_targets_1): Add bases_to_consider
42360 and consider_construction parameters; check if type may have instance.
42361 (get_polymorphic_call_info): Set maybe_in_construction to true
42362 when we know nothing.
42363 (record_targets_from_bases): Skip CXX destructors; they are
42364 never called for types in construction.
42365 (possible_polymorphic_call_targets): Do not record target when
42366 type may not have instance.
42368 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42371 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
42372 external aliases alive, too.
42374 2014-04-16 Andrew Pinski <apinski@cavium.com>
42376 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
42379 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42381 * final.c (compute_alignments): Do not apply loop alignment to a block
42382 falling through to the exit.
42384 2014-04-16 Catherine Moore <clm@codesourcery.com>
42386 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
42387 Adjust constraints for microMIPS store patterns.
42389 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42391 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
42393 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42395 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
42396 (append_use): Run at -O0.
42397 (append_vdef): Likewise.
42398 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
42399 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
42401 2014-04-16 Jakub Jelinek <jakub@redhat.com>
42403 PR tree-optimization/60844
42404 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
42405 (propagate_op_to_single_use, remove_visited_stmt_chain,
42406 linearize_expr, repropagate_negates, reassociate_bb): Use it
42407 instead of gsi_remove.
42409 2014-04-16 Martin Jambor <mjambor@suse.cz>
42411 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
42412 ipa_transforms_to_apply.
42413 (cgraph_function_versioning): Assert that old_node has empty
42414 ipa_transforms_to_apply.
42415 * trans-mem.c (ipa_tm_create_version): Likewise.
42416 * tree-inline.c (tree_function_versioning): Do not duplicate
42417 ipa_transforms_to_apply.
42419 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42422 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
42424 Pass necessary as flags on 64-bit Solaris/x86.
42425 Use lowercase relocs for x86_64-*-*.
42426 * configure: Regenerate.
42428 2014-04-15 Jan Hubicka <jh@suse.cz>
42430 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
42431 (maybe_record_node, likely_target_p): Use it.
42433 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42436 Revert following patch
42438 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
42441 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42442 software floating point or no floating point registers, do not
42443 allow any type in the FPRs. Eliminate a test for SPE SIMD types
42444 in GPRs that occurs after we tested for GPRs that would never be
42447 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42448 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42449 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
42450 specifically allow DDmode, since that does not use the SPE SIMD
42453 2014-03-21 Mark Wielaard <mjw@redhat.com>
42455 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
42456 as unsigned or int depending on type and value used.
42458 2014-04-15 Richard Biener <rguenther@suse.de>
42460 PR rtl-optimization/56965
42461 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
42462 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
42464 * alias.c (true_dependence_1): Do not call
42465 nonoverlapping_component_refs_p.
42466 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
42467 nonoverlapping_component_refs_p.
42468 (indirect_refs_may_alias_p): Likewise.
42470 2014-04-15 Teresa Johnson <tejohnson@google.com>
42472 * cfg.c (dump_bb_info): Fix flags check.
42473 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
42475 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42477 PR rtl-optimization/60663
42478 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
42481 2014-04-15 Richard Biener <rguenther@suse.de>
42483 * lto-streamer.h (LTO_major_version): Bump to 4.
42485 2014-04-15 Richard Biener <rguenther@suse.de>
42487 * common.opt (lto_partition_model): New enum.
42488 (flto-partition=): Merge separate options with a single with argument,
42489 add -flto-partition=one support.
42490 * flag-types.h (enum lto_partition_model): Declare.
42491 * opts.c (finish_options): Remove duplicate -flto-partition=
42493 * lto-wrapper.c (run_gcc): Adjust.
42495 2014-04-15 Richard Biener <rguenther@suse.de>
42497 * alias.c (ncr_compar): New function.
42498 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
42500 2014-04-15 Richard Biener <rguenther@suse.de>
42502 * alias.c (record_component_aliases): Do not walk BINFOs.
42504 2014-04-15 Richard Biener <rguenther@suse.de>
42506 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42507 Add struct function argument and adjust.
42508 (find_func_aliases_for_call): Likewise.
42509 (find_func_aliases): Likewise.
42510 (find_func_clobbers): Likewise.
42511 (intra_create_variable_infos): Likewise.
42512 (compute_points_to_sets): Likewise.
42513 (ipa_pta_execute): Adjust. Do not push/pop cfun.
42515 2014-04-15 Richard Biener <rguenther@suse.de>
42517 * tree.c (iterative_hash_expr): Use enum tree_code_class
42518 to store TREE_CODE_CLASS.
42519 (tree_block): Likewise.
42520 (tree_set_block): Likewise.
42521 * tree.h (fold_build_pointer_plus_loc): Use
42522 convert_to_ptrofftype_loc.
42524 2014-04-15 Jakub Jelinek <jakub@redhat.com>
42527 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
42530 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
42532 * cfgloop.h (struct loop): Move force_vectorize down.
42533 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
42534 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
42535 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
42536 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
42537 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
42538 * tree-core.h (enum annot_expr_kind): Add new kind values.
42539 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
42540 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
42542 * tree.def (ANNOTATE_EXPR): Tweak comment.
42544 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42546 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
42549 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
42551 * tree.h (TYPE_IDENTIFIER): Declare.
42552 * tree.c (subrange_type_for_debug_p): Use it.
42553 * godump.c (go_format_type): Likewise.
42554 * dwarf2out.c (is_cxx_auto, modified_type_die,
42555 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
42556 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
42558 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42561 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
42563 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
42565 * config/i386/i386.c (examine_argument): Return bool. Return true if
42566 parameter should be passed in memory.
42567 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
42568 (construct_container): Update calls to examine_argument.
42569 (function_arg_advance_64): Ditto.
42570 (return_in_memory_32): Merge with ix86_return_in_memory.
42571 (return_in_memory_64): Ditto.
42572 (return_in_memory_ms_64): Ditto.
42574 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42576 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
42577 * coverage.c (coverage_compute_profile_id): Handle externally visible
42580 2014-04-14 Martin Jambor <mjambor@suse.cz>
42582 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
42583 DECL_DISREGARD_INLINE_LIMITS functions.
42585 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42588 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
42590 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42593 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
42594 optimize_insn_for_speed_p instead of
42595 optimize_function_for_speed_p.
42597 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
42599 * doc/invoke.texi (free): Document AArch64.
42601 2014-04-14 Richard Biener <rguenther@suse.de>
42603 PR tree-optimization/60042
42604 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
42605 (insert_into_preds_of_block): Do not prevent PHI insertion
42606 for REFERENCE exprs here ...
42607 (eliminate_dom_walker::before_dom_children): ... but prevent
42608 their use here under similar conditions when applied to the
42609 IL after PRE optimizations.
42611 2014-04-14 Richard Biener <rguenther@suse.de>
42613 * passes.def: Move early points-to after early SRA.
42615 2014-04-14 Richard Biener <rguenther@suse.de>
42617 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
42618 check for which sign-changes we allow when forwarding
42619 a converted value into a switch.
42621 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42623 * stor-layout.c (place_field): Finalize non-constant offset for the
42626 2014-04-14 Richard Biener <rguenther@suse.de>
42628 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
42630 (expand_switch_using_bit_tests_p): Likewise.
42631 (process_switch): Compute and pass on speed_p based on the
42633 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
42634 optimize_bb_for_speed_p.
42636 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42638 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
42639 * function.h (struct function): Rename has_force_vect_loops into
42640 has_force_vectorize_loops.
42641 * lto-streamer-in.c (input_cfg): Adjust for renaming.
42642 (input_struct_function_base): Likewise.
42643 * lto-streamer-out.c (output_cfg): Likewise.
42644 (output_struct_function_base): Likewise.
42645 * omp-low.c (expand_omp_simd): Likewise.
42646 * tree-cfg.c (move_sese_region_to_fn): Likewise.
42647 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
42648 (version_loop_for_if_conversion): Likewise.
42649 (tree_if_conversion): Likewise.
42650 (main_tree_if_conversion): Likewise.
42651 (gate_tree_if_conversion): Likewise.
42652 * tree-inline.c (copy_loops): Likewise.
42653 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
42654 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
42655 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
42656 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
42657 * tree-vectorizer.c (vectorize_loops): Likewise.
42658 * tree-vectorizer.h (unlimited_cost_model): Likewise.
42660 2014-04-14 Richard Biener <rguenther@suse.de>
42663 * lto-streamer-out.c (wrap_refs): New function.
42664 (lto_output): Wrap symbol references in global initializes in
42665 type-preserving MEM_REFs.
42667 2014-04-14 Christian Bruel <christian.bruel@st.com>
42669 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
42671 2014-04-14 Christian Bruel <christian.bruel@st.com>
42673 * config/sh/sh.md (setmemqi): New expand pattern.
42674 * config/sh/sh.h (CLEAR_RATIO): Define.
42675 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
42676 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
42678 2014-04-14 Richard Biener <rguenther@suse.de>
42680 PR middle-end/55022
42681 * fold-const.c (negate_expr_p): Don't negate directional rounding
42683 (fold_negate_expr): Likewise.
42685 2014-04-14 Richard Biener <rguenther@suse.de>
42687 PR tree-optimization/59817
42688 PR tree-optimization/60453
42689 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
42690 recursion to catch all CHRECs in the scalar evolution and restrict
42691 the predicate for the remains appropriately.
42693 2014-04-12 Catherine Moore <clm@codesourcery.com>
42695 * config/mips/constraints.md: Add new register constraint "kb".
42696 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
42697 (*movhi_internal): Likewise.
42698 (*movqi_internal): Likewise.
42699 * config/mips/mips.h (M16_STORE_REGS): New register class.
42700 (REG_CLASS_NAMES): Add M16_STORE_REGS.
42701 (REG_CLASS_CONTENTS): Likewise.
42702 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
42704 2014-04-11 Tobias Burnus <burnus@net-b.de>
42707 * doc/invoke.texi (-Wformat-signedness): Document it.
42708 (Wformat=2): Mention that this enables -Wformat-signedness.
42710 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42712 * common/config/epiphany/epiphany-common.c
42713 (epiphany_option_optimization_table): Enable section anchors by
42714 default at -O1 or higher.
42715 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
42716 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
42717 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
42718 carries no extra cost.
42719 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
42720 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
42721 * config/epiphany/predicates.md (memclob_operand): New predicate.
42722 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
42723 Use memclob_operand predicate and X constraint for operand 3.
42725 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42727 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
42728 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
42731 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42733 PR rtl-optimization/60651
42734 * mode-switching.c (optimize_mode_switching): Make sure to emit
42735 sets of a lower numbered entity before sets of a higher numbered
42736 entity to a mode of the same or lower priority.
42737 When creating a seginfo for a basic block that starts with a code
42738 label, move the insertion point past the code label.
42739 (new_seginfo): Document and enforce requirement that
42740 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
42741 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
42742 * doc/tm.texi: Regenerate.
42744 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
42747 * config/arc/arc.c (arc_save_restore): Fix assert typo.
42749 2013-04-11 Jakub Jelinek <jakub@redhat.com>
42751 * BASE-VER: Set to 4.10.0.
42753 2014-04-11 Tobias Burnus <burnus@net-b.de>
42756 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
42757 * doc/gcc.texi (Service): Update description in the @menu
42758 * doc/invoke.texi (Option Summary): Remove misplaced and
42761 2014-04-11 Steve Ellcey <sellcey@mips.com>
42762 Jakub Jelinek <jakub@redhat.com>
42764 PR middle-end/60556
42765 * expr.c (convert_move): Use emit_store_flag_force instead of
42766 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
42769 2014-04-11 Richard Biener <rguenther@suse.de>
42771 PR middle-end/60797
42772 * varasm.c (assemble_alias): Avoid endless error reporting
42773 recursion by setting TREE_ASM_WRITTEN.
42775 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42777 * config/s390/s390.md: Add a splitter for NOT rtx.
42779 2014-04-11 Jakub Jelinek <jakub@redhat.com>
42781 PR rtl-optimization/60663
42782 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
42784 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
42785 Jakub Jelinek <jakub@redhat.com>
42788 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
42789 flag from decl_node to node.
42791 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42794 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
42795 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
42796 ameliorating the cases where it can be.
42798 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
42801 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42803 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42804 (loadsync_<mode>): Change mode.
42805 (load_quadpti, store_quadpti): New.
42806 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42807 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42808 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
42810 2014-04-09 Cong Hou <congh@google.com>
42813 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
42816 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42818 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
42819 instead of vnor to exploit possible fusion opportunity in the
42821 (altivec_expand_vec_perm_const_le): Likewise.
42823 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42825 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42826 (loadsync_<mode>): Change mode.
42827 (load_quadpti, store_quadpti): New.
42828 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42829 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42831 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
42834 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
42835 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
42836 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
42838 2014-04-08 Richard Biener <rguenther@suse.de>
42840 PR middle-end/60706
42841 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
42842 a 64bit widest int print double-int similar to on HWI64 hosts.
42844 2014-04-08 Richard Biener <rguenther@suse.de>
42846 PR tree-optimization/60785
42847 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
42848 default defs properly.
42850 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
42852 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
42853 (Weffc++): Likewise.
42855 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
42857 * ipa-devirt.c (maybe_record_node): When node is not recorded,
42858 set completep to false rather than true.
42860 2014-04-07 Douglas B Rupp <rupp@adacore.com>
42863 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
42864 ARM_TARGET2_DWARF_FORMAT.
42866 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
42869 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
42870 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
42873 2014-04-07 Richard Biener <rguenther@suse.de>
42875 PR tree-optimization/60766
42876 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
42877 (may_eliminate_iv): Convert cand_value_at result to desired type.
42879 2014-04-07 Jason Merrill <jason@redhat.com>
42882 * common.opt (-fno-gnu-unique): Add.
42883 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
42885 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42887 * haifa-sched.c: Fix outdated function reference and minor
42888 grammar errors in introductory comment.
42890 2014-04-07 Richard Biener <rguenther@suse.de>
42892 PR middle-end/60750
42893 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
42894 for noreturn calls.
42895 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
42897 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
42900 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
42901 size accounting for thunks.
42902 (pa_asm_output_mi_thunk): Use final_start_function() and
42903 final_end_function() to output function start and end directives.
42905 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42907 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
42908 device specific ISA/ feature information. Remove short_sp and
42909 errata_skip ds. Add avr_device_specific_features enum to have device
42911 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
42912 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
42913 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
42914 updated device specific info.
42915 * config/avr/avr-mcus.def: Merge device specific details to
42916 dev_attribute field.
42917 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
42919 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
42920 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
42921 assembler if RMW isa supported by current device.
42922 * config/avr/genmultilib.awk: Update as device info structure changed.
42923 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
42925 2014-04-04 Cong Hou <congh@google.com>
42927 PR tree-optimization/60656
42928 * tree-vect-stmts.c (supportable_widening_operation):
42929 Fix a bug that elements in a vector with vect_used_by_reduction
42930 property are incorrectly reordered when the operation on it is not
42931 consistant with the one in reduction operation.
42933 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
42935 PR rtl-optimization/60155
42936 * gcse.c (record_set_data): New function.
42937 (single_set_gcse): New function.
42938 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
42939 (hoist_code): Likewise.
42940 (get_pressure_class_and_nregs): Likewise.
42942 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
42944 * explow.c (probe_stack_range): Emit a final optimization blockage.
42946 2014-04-04 Anthony Green <green@moxielogic.com>
42948 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
42951 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
42954 * lto-cgraph.c (input_overwrite_node): Check that partitioning
42955 flags are set only during streaming.
42956 * ipa.c (process_references, walk_polymorphic_call_targets,
42957 symtab_remove_unreachable_nodes): Drop bodies of always inline
42958 after early inlining.
42959 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
42961 2014-04-04 Jakub Jelinek <jakub@redhat.com>
42962 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42965 * dwarf2out.c (const_ok_for_output_1): Reject expressions
42968 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42971 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
42973 (cortex_a53_fdivd): Likewise.
42975 2014-04-04 Martin Jambor <mjambor@suse.cz>
42978 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
42979 Adjust all callers.
42980 * cgraph.c (clone_of_p): Also return true if thunks match.
42981 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
42982 cgraph_function_or_thunk_node and an obsolete comment.
42983 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
42985 (build_function_decl_skip_args): Likewise.
42986 (set_new_clone_decl_and_node_flags): New function.
42987 (duplicate_thunk_for_node): Likewise.
42988 (redirect_edge_duplicating_thunks): Likewise.
42989 (cgraph_clone_node): New parameter args_to_skip, pass it to
42990 redirect_edge_duplicating_thunks which is called instead of
42991 cgraph_redirect_edge_callee.
42992 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
42993 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
42995 2014-04-04 Jeff Law <law@redhat.com>
42998 * config/arm/predicates.md (const_int_I_operand): New predicate.
42999 (const_int_M_operand): Similarly.
43000 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
43002 (insv_t2, extv_reg, extzv_t2): Likewise.
43003 (load_multiple_with_writeback): Similarly for const_int_I_operand.
43004 (pop_multiple_with_writeback_and_return): Likewise.
43005 (vfp_pop_multiple_with_writeback): Likewise
43007 2014-04-04 Richard Biener <rguenther@suse.de>
43010 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
43011 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
43013 * gimplify.h (gimple_add_tmp_var_fn): Declare.
43014 * gimplify.c (gimple_add_tmp_var_fn): New function.
43015 * gimple-expr.h (create_tmp_reg_fn): Declare.
43016 * gimple-expr.c (create_tmp_reg_fn): New function.
43017 * gimple-low.c (record_vars_into): Don't change cfun.
43018 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
43019 code generation without cfun.
43021 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
43024 * Makefile.in (install-driver): Fix shell scripting.
43026 2014-04-03 Cong Hou <congh@google.com>
43028 PR tree-optimization/60505
43029 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
43030 threshold of number of iterations below which no vectorization
43032 * tree-vect-loop.c (new_loop_vec_info):
43033 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
43034 * tree-vect-loop.c (vect_analyze_loop_operations):
43035 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
43036 * tree-vect-loop.c (vect_transform_loop):
43037 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
43038 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
43039 of iterations of the loop and see if we should build the epilogue.
43041 2014-04-03 Richard Biener <rguenther@suse.de>
43043 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
43044 (streamer_tree_cache_create): Adjust.
43045 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
43046 to allow optional nodes array.
43047 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
43048 (streamer_tree_cache_append): Likewise.
43049 (streamer_tree_cache_create): Create nodes array optionally
43050 as specified by parameter.
43051 * lto-streamer-out.c (create_output_block): Avoid maintaining
43052 the node array in the writer cache.
43053 (DFS_write_tree): Remove assertion.
43054 (produce_asm_for_decls): Free the out decl state hash table early.
43055 * lto-streamer-in.c (lto_data_in_create): Adjust for
43056 streamer_tree_cache_create prototype change.
43058 2014-04-03 Richard Biener <rguenther@suse.de>
43060 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
43061 set TREE_CHAIN to NULL_TREE.
43063 2014-04-03 Richard Biener <rguenther@suse.de>
43065 PR tree-optimization/60740
43066 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
43067 over all GIMPLE_COND operands.
43069 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
43071 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
43072 (Weffc++): Remove Scott's numbering, merge lists and reference
43075 2014-04-03 Nick Clifton <nickc@redhat.com>
43077 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
43080 2014-04-03 Martin Jambor <mjambor@suse.cz>
43082 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
43083 mention gcc_unreachable before failing.
43084 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
43087 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
43090 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
43091 inconsistent code and instead mark the context inconsistent.
43092 (possible_polymorphic_call_targets): For inconsistent contexts
43093 return empty complete list.
43095 2014-04-02 Anthony Green <green@moxielogic.com>
43097 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
43098 (extendqisi2, extendhisi2): Define.
43099 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
43100 (WCHAR_TYPE): Change to unsigned int.
43102 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43104 PR tree-optimization/60733
43105 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
43106 insertion point for PHI candidates to be the end of the feeding
43107 block for the PHI argument.
43109 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
43111 PR rtl-optimization/60650
43112 * lra-constraints.c (process_alt_operands): Decrease reject for
43113 earlyclobber matching.
43115 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43117 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
43119 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43121 * config/spu/spu.c (pad_bb): Do not crash when the last
43122 insn is CODE_FOR_blockage.
43124 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43126 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
43127 lies outside the target mode.
43129 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
43132 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
43133 software floating point or no floating point registers, do not
43134 allow any type in the FPRs. Eliminate a test for SPE SIMD types
43135 in GPRs that occurs after we tested for GPRs that would never be
43138 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
43139 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
43140 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
43141 specifically allow DDmode, since that does not use the SPE SIMD
43144 2014-04-02 Richard Biener <rguenther@suse.de>
43146 PR middle-end/60729
43147 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
43148 MODE_INTs. Properly use negv_optab.
43149 (expand_abs): Likewise.
43151 2014-04-02 Richard Biener <rguenther@suse.de>
43154 * Makefile.in (install-driver): Guard extra installs with special
43157 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
43159 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43160 Document vec_vgbbd.
43162 2014-04-01 Richard Henderson <rth@redhat.com>
43165 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
43166 alternative enabled before register allocation.
43168 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
43170 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
43171 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
43173 (nios2_large_got_address): Remove unneeded 'sym' parameter.
43174 (nios2_got_address): Update nios2_large_got_address call site.
43175 (nios2_delegitimize_address): New function.
43176 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
43177 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
43178 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
43180 2014-04-01 Martin Husemann <martin@duskware.de>
43182 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
43185 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
43187 PR rtl-optimization/60604
43188 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
43189 check from register_operand.
43190 (register_operand): Redefine in terms of general_operand.
43191 (nonmemory_operand): Use register_operand for the non-constant cases.
43193 2014-04-01 Richard Biener <rguenther@suse.de>
43195 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
43197 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
43199 * doc/invoke.texi (mapp-regs): Clarify.
43201 2014-03-31 Ulrich Drepper <drepper@gmail.com>
43203 * config/i386/avx512fintrin.h (__v32hi): Define type.
43204 (__v64qi): Likewise.
43205 (_mm512_set1_epi8): Define.
43206 (_mm512_set1_epi16): Define.
43207 (_mm512_set4_epi32): Define.
43208 (_mm512_set4_epi64): Define.
43209 (_mm512_set4_pd): Define.
43210 (_mm512_set4_ps): Define.
43211 (_mm512_setr4_epi64): Define.
43212 (_mm512_setr4_epi32): Define.
43213 (_mm512_setr4_pd): Define.
43214 (_mm512_setr4_ps): Define.
43215 (_mm512_setzero_epi32): Define.
43217 2014-03-31 Martin Jambor <mjambor@suse.cz>
43219 PR middle-end/60647
43220 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
43221 callsite_arguments_match_p. Updated all callers. Also check types of
43222 corresponding formal parameters and actual arguments.
43223 (not_all_callers_have_enough_arguments_p) Renamed to
43224 some_callers_have_mismatched_arguments_p.
43226 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
43228 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
43230 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
43233 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
43236 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
43238 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
43239 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
43241 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
43242 Use FMAMODE_NOVF512 mode iterator.
43243 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
43244 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
43245 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
43246 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
43248 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
43249 Use VF_128_256 mode iterator.
43250 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
43253 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43255 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
43256 static chain if needed.
43258 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43261 * lra-constraints.c (index_part_to_reg): New.
43262 (process_address): Use it.
43264 2014-03-27 Jeff Law <law@redhat.com>
43265 Jakub Jelinek <jakub@redhat.com>
43268 * expr.c (do_tablejump): Use simplify_gen_binary rather than
43269 gen_rtx_{PLUS,MULT} to build up the address expression.
43271 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
43272 creating non-canonical RTL.
43274 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43277 * ipa-inline.c (want_inline_small_function_p): Short circuit large
43278 functions; reorganize to make cheap checks first.
43279 (inline_small_functions): Do not estimate growth when dumping;
43281 * ipa-inline.h (inline_summary): Add min_size.
43282 (growth_likely_positive): New function.
43283 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
43284 (set_cond_stmt_execution_predicate): Cleanup.
43285 (estimate_edge_size_and_time): Compute min_size.
43286 (estimate_calls_size_and_time): Likewise.
43287 (estimate_node_size_and_time): Likewise.
43288 (inline_update_overall_summary): Update min_size.
43289 (do_estimate_edge_time): Likewise.
43290 (do_estimate_edge_size): Update.
43291 (do_estimate_edge_hints): Update.
43292 (growth_likely_positive): New function.
43294 2014-03-28 Jakub Jelinek <jakub@redhat.com>
43297 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
43298 also if addr has VOIDmode.
43300 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43302 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
43303 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
43305 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
43306 instructions as well as AdvancedSIMD loads.
43308 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43310 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
43311 Use crypto_aese type.
43312 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
43313 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
43314 crypto_aese, crypto_aesmc. Move to types.md.
43315 * config/arm/types.md (crypto_aes): Split into crypto_aese,
43317 * config/arm/iterators.md (crypto_type): Likewise.
43319 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43321 * cgraph.c: Include expr.h and tree-dfa.h.
43322 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
43325 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43328 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
43329 regs from checking multi-reg pseudos.
43331 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43333 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
43335 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43337 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
43338 if it would clobber the stack pointer, even temporarily.
43340 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
43342 * mode-switching.c: Make small adjustments to the top comment.
43344 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
43346 * config/rs6000/constraints.md (wD constraint): New constraint to
43347 match the constant integer to get the top DImode/DFmode out of a
43348 vector in a VSX register.
43350 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
43351 match the constant integer to get the top DImode/DFmode out of a
43352 vector in a VSX register.
43354 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
43357 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
43360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
43361 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
43363 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
43364 Optimize vec_extract of 64-bit values, where the value being
43365 extracted is in the top word, where we can use scalar
43366 instructions. Add direct move and store support. Combine the big
43367 endian/little endian vector select load support into a single insn.
43368 (vsx_extract_<mode>_internal1): Likewise.
43369 (vsx_extract_<mode>_internal2): Likewise.
43370 (vsx_extract_<mode>_load): Likewise.
43371 (vsx_extract_<mode>_store): Likewise.
43372 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
43373 combined into vsx_extract_<mode>_load.
43374 (vsx_extract_<mode>_one_le): Likewise.
43376 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
43377 define the top 64-bit vector element.
43379 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
43382 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43383 Document vec_vbpermq builtin.
43386 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
43387 enable use of xxsldwi and xxpermdi builtin functions.
43388 (vec_xxpermdi): Likewise.
43390 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43391 Document use of vec_xxsldwi and vec_xxpermdi builtins.
43393 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
43395 PR rtl-optimization/60650
43396 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
43398 (find_spills_for): New.
43399 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
43400 Spill all pseudos on the second iteration.
43402 2014-03-27 Marek Polacek <polacek@redhat.com>
43405 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
43408 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43410 * config/s390/s390.c (s390_can_use_return_insn): Check for
43411 call-saved FPRs on 31 bit.
43413 2014-03-27 Jakub Jelinek <jakub@redhat.com>
43415 PR middle-end/60682
43416 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
43417 if they need regimplification, just drop them instead of
43418 calling gimple_regimplify_operands on them.
43420 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
43423 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
43424 (aarch64_frame_pointer_required): Adjust logic.
43425 (aarch64_can_eliminate): Adjust logic.
43426 (aarch64_override_options_after_change): Adjust logic.
43428 2014-03-27 Dehao Chen <dehao@google.com>
43430 * ipa-inline.c (early_inliner): Update node's inline info.
43432 2014-03-26 Dehao Chen <dehao@google.com>
43434 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
43435 compiler inserted conditional jumps for NAN float check.
43437 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43439 * ubsan.h (ubsan_create_data): Change second argument's type
43440 to const location_t *.
43441 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
43443 (ubsan_create_data): Change second argument to const location_t *PLOC.
43444 Create Loc field whenever PLOC is non-NULL.
43445 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
43446 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
43450 * real.c (real_to_integer2): Change type of low to UHWI.
43452 2014-03-26 Tobias Burnus <burnus@net-b.de>
43454 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
43455 (CILK_SELF_SPECS): New define.
43456 (driver_self_specs): Use it.
43458 2014-03-26 Richard Biener <rguenther@suse.de>
43460 * tree-pretty-print.c (percent_K_format): Implement special
43461 case for LTO and its stripped down BLOCK tree.
43463 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43466 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
43468 * tree-vrp.c (simplify_internal_call_using_ranges): If only
43469 one range is range_int_cst_p, but not both, at least optimize
43470 addition/subtraction of 0 and multiplication by 0 or 1.
43471 * gimple-fold.c (gimple_fold_call): Fold
43472 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
43473 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
43474 INTEGER_CSTs, try to fold at least x * 0 and y - y.
43476 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
43478 PR rtl-optimization/60452
43479 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
43480 <case REG>: Return 1 for invalid offsets from the frame pointer.
43482 2014-03-26 Marek Polacek <polacek@redhat.com>
43485 * doc/extend.texi (C Extensions): Mention variable-length arrays in
43488 2014-03-26 Marek Polacek <polacek@redhat.com>
43491 * doc/extend.texi (Designated Inits): Describe what happens to omitted
43494 2014-03-26 Marek Polacek <polacek@redhat.com>
43497 * ira-color.c (update_conflict_hard_regno_costs): Perform the
43498 multiplication in unsigned type.
43500 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43502 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
43504 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43506 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
43508 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43511 * cif-code.def (UNREACHABLE) New code.
43512 * ipa-inline.c (inline_small_functions): Skip edges to
43513 __builtlin_unreachable.
43514 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
43515 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
43516 predicate to __bulitin_unreachable.
43517 (set_cond_stmt_execution_predicate): Fix issue when
43518 invert_tree_comparison returns ERROR_MARK.
43519 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
43520 propagate to inline clones.
43521 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
43523 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
43524 * cgraphclones.c (cgraph_clone_node): If call destination is already
43525 ureachable, do not redirect it back.
43526 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
43529 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43531 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
43532 Do not modify inline clones.
43534 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43536 * config/i386/i386.md (general_sext_operand): New mode attr.
43537 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
43538 don't generate (sign_extend (const_int)).
43539 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
43540 operands[2]. Use We constraint instead of <i> and
43541 <general_sext_operand> predicate instead of <general_operand>.
43542 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
43543 * config/i386/constraints.md (We): New constraint.
43544 * config/i386/predicates.md (x86_64_sext_operand,
43545 sext_operand): New predicates.
43547 2014-03-25 Martin Jambor <mjambor@suse.cz>
43550 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
43551 inconsistent devirtualizations to __builtin_unreachable.
43553 2014-03-25 Marek Polacek <polacek@redhat.com>
43556 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
43558 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
43560 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
43561 order of elements for big-endian.
43563 2014-03-25 Richard Biener <rguenther@suse.de>
43565 PR middle-end/60635
43566 * gimplify-me.c (gimple_regimplify_operands): Update the
43569 2014-03-25 Martin Jambor <mjambor@suse.cz>
43572 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
43573 (lto_output_varpool_node): Likewise.
43574 (input_overwrite_node): Likewise.
43575 (input_varpool_node): Likewise.
43577 2014-03-25 Richard Biener <rguenther@suse.de>
43579 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
43580 (run_gcc): Likewise.
43582 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43584 * combine.c (simplify_compare_const): Add MODE argument.
43585 Handle mode_width 0 as very large mode_width.
43586 (try_combine, simplify_comparison): Adjust callers.
43588 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
43589 type to avoid signed integer overflow.
43590 * explow.c (plus_constant): Likewise.
43592 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
43594 * doc/generic.texi: Correct typos.
43596 2014-03-24 Tobias Burnus <burnus@net-b.de>
43598 * doc/invoke.texi (-flto): Expand section about
43599 using static libraries with LTO.
43601 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43603 PR rtl-optimization/60501
43604 * optabs.def (addptr3_optab): New optab.
43605 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
43606 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
43607 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
43609 * lra.c (emit_add3_insn): Use the addptr pattern if available.
43611 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
43613 2014-03-24 Ulrich Drepper <drepper@gmail.com>
43615 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
43618 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
43619 (_mm256_undefined_ps): Define.
43620 (_mm256_undefined_pd): Define.
43621 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
43622 (_mm_undefined_pd): Define.
43623 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
43624 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
43625 (_mm512_undefined_ps): Define.
43626 (_mm512_undefined_pd): Define.
43627 Use _mm*_undefined_*.
43628 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
43630 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
43632 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
43633 (lshr_simd): DI mode added.
43634 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
43635 (aarch64_ushr_simddi): Likewise.
43636 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
43637 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
43638 (vshrd_n_u64): Likewise.
43640 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43642 * Makefile.in (s-macro_list): Depend on cc1.
43644 2014-03-23 Teresa Johnson <tejohnson@google.com>
43646 * ipa-utils.c (ipa_print_order): Use specified dump file.
43648 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
43650 PR rtl-optimization/60601
43651 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43653 * gcc.c (eval_spec_function): Initialize save_growing_value.
43655 2014-03-22 Jakub Jelinek <jakub@redhat.com>
43658 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
43659 code == MINUS_EXPR, never swap op0 with op1.
43661 * toplev.c (init_local_tick): Avoid signed integer multiplication
43663 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
43664 shift by first operand's bitsize.
43666 2014-03-21 Jakub Jelinek <jakub@redhat.com>
43669 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
43670 redefine to 1 or 0.
43671 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
43672 TARGET_ISA_64BIT_P(x).
43674 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43676 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
43677 pattern for vector nor instead of subtract from splat(-1).
43678 (altivec_expand_vec_perm_const_le): Likewise.
43680 2014-03-21 Richard Henderson <rth@twiddle.net>
43683 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
43684 related insns after epilogue_completed.
43686 2014-03-21 Martin Jambor <mjambor@suse.cz>
43689 * cgraph.h (symtab_node): New flag body_removed.
43690 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
43691 when removing bodies.
43692 * symtab.c (dump_symtab_base): Dump body_removed flag.
43693 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
43694 had their bodies removed.
43696 2014-03-21 Martin Jambor <mjambor@suse.cz>
43699 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
43702 2014-03-21 Richard Biener <rguenther@suse.de>
43704 PR tree-optimization/60577
43705 * tree-core.h (struct tree_base): Document nothrow_flag use
43706 in DECL_NONALIASED.
43707 * tree.h (DECL_NONALIASED): New.
43708 (may_be_aliased): Adjust.
43709 * coverage.c (build_var): Set DECL_NONALIASED.
43711 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43713 * expr.c (expand_expr_real_1): Remove outdated comment.
43715 2014-03-20 Jakub Jelinek <jakub@redhat.com>
43717 PR middle-end/60597
43718 * ira.c (adjust_cleared_regs): Call copy_rtx on
43719 *reg_equiv[REGNO (loc)].src_p before passing it to
43720 simplify_replace_fn_rtx.
43723 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
43724 into CONST, put pic register as first operand of PLUS. Use
43725 gen_const_mem for both 32-bit and 64-bit PIC got loads.
43727 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43729 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
43731 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43733 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
43734 around for store forwarding issue in the FPU on the UT699.
43735 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
43736 loads and operations if -mfix-ut699 is specified.
43737 (divtf3_hq): Tweak attribute.
43738 (sqrttf2_hq): Likewise.
43740 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43742 * calls.c (store_one_arg): Remove incorrect const qualification on the
43743 type of the temporary.
43744 * cfgexpand.c (expand_return): Likewise.
43745 * expr.c (expand_constructor): Likewise.
43746 (expand_expr_real_1): Likewise.
43748 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
43750 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
43753 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
43756 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
43758 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
43760 * config/arm/aarch-common-protos.h
43761 (alu_cost_table): Fix spelling of "extend".
43762 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
43764 2014-03-19 Richard Biener <rguenther@suse.de>
43766 PR middle-end/60553
43767 * tree-core.h (tree_type_common): Re-order pointer members
43768 to reduce recursion depth during GC walks.
43770 2014-03-19 Marek Polacek <polacek@redhat.com>
43773 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
43774 before accessing it.
43776 2014-03-19 Richard Biener <rguenther@suse.de>
43779 * lto-streamer-in.c (input_function): In WPA stage do not drop
43782 2014-03-19 Jakub Jelinek <jakub@redhat.com>
43784 PR tree-optimization/60559
43785 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
43786 with build_zero_cst assignment.
43788 2014-03-18 Kai Tietz <ktietz@redhat.com>
43790 PR rtl-optimization/56356
43791 * sdbout.c (sdbout_parms): Verify that parms'
43792 incoming argument is valid.
43793 (sdbout_reg_parms): Likewise.
43795 2014-03-18 Richard Henderson <rth@redhat.com>
43798 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
43799 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
43800 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
43802 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
43804 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
43805 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
43806 Italicize plugin event names in description. Explain that
43807 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
43808 Remind that no GCC functions should be called after PLUGIN_FINISH.
43809 Explain what pragmas with expansion are.
43811 2014-03-18 Martin Liska <mliska@suse.cz>
43813 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
43814 gimple call statement is update.
43815 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
43816 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
43818 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43821 * ubsan.c (ubsan_instrument_unreachable): Call
43822 initialize_sanitizer_builtins.
43823 (ubsan_pass): Likewise.
43826 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
43827 varpool_finalize_decl instead of rest_of_decl_compilation.
43829 2014-03-18 Richard Biener <rguenther@suse.de>
43831 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
43832 by using bitmap_and_compl instead of bitmap_and_compl_into.
43833 (df_rd_transfer_function): Likewise.
43835 2014-03-18 Richard Biener <rguenther@suse.de>
43837 * doc/lto.texi (fresolution): Fix typo.
43839 2014-03-18 Richard Biener <rguenther@suse.de>
43841 * doc/invoke.texi (flto): Update for changes in 4.9.
43843 2014-03-18 Richard Biener <rguenther@suse.de>
43845 * doc/loop.texi: Remove section on the removed lambda framework.
43846 Update loop docs with recent changes in preserving loop structure.
43848 2014-03-18 Richard Biener <rguenther@suse.de>
43850 * doc/lto.texi (-fresolution): Document.
43852 2014-03-18 Richard Biener <rguenther@suse.de>
43854 * doc/contrib.texi: Adjust my name.
43856 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43859 * internal-fn.c: Include diagnostic-core.h.
43860 (expand_BUILTIN_EXPECT): New function.
43861 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
43862 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
43863 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
43864 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
43865 IFN_BUILTIN_EXPECT.
43866 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
43867 Revert 3 argument __builtin_expect code.
43868 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
43869 * gimple-fold.c (gimple_fold_call): Likewise.
43870 * tree.h (fold_builtin_expect): New prototype.
43871 * builtins.c (build_builtin_expect_predicate): Add predictor
43872 argument, if non-NULL, create 3 argument __builtin_expect.
43873 (fold_builtin_expect): No longer static. Add ARG2 argument,
43874 pass it through to build_builtin_expect_predicate.
43875 (fold_builtin_2): Adjust caller.
43876 (fold_builtin_3): Handle BUILT_IN_EXPECT.
43877 * internal-fn.def (BUILTIN_EXPECT): New.
43879 2014-03-18 Tobias Burnus <burnus@net-b.de>
43882 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
43883 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
43884 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
43886 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
43889 * predict.c (combine_predictions_for_bb): Fix up formatting.
43890 (expr_expected_value_1, expr_expected_value): Add predictor argument,
43891 fill what it points to if non-NULL.
43892 (tree_predict_by_opcode): Adjust caller, use the predictor.
43893 * predict.def (PRED_COMPARE_AND_SWAP): Add.
43895 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
43897 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
43898 proper constant for the store mode.
43900 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
43902 * symtab.c (change_decl_assembler_name): Fix transparent alias
43903 chain construction.
43905 2014-03-16 Renlin Li <Renlin.Li@arm.com>
43907 * config/aarch64/aarch64.c: Correct the comments about the
43908 aarch64 stack layout.
43910 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
43912 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
43913 check for GF_OMP_FOR_KIND_FOR.
43915 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
43917 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
43918 ymm and zmm register names.
43920 2014-03-17 Jakub Jelinek <jakub@redhat.com>
43923 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
43924 note creation for the 2010-08-31 changes.
43926 2014-03-17 Marek Polacek <polacek@redhat.com>
43928 PR middle-end/60534
43929 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
43930 as -fno-tree-loop-vectorize.
43931 (expand_omp_simd): Likewise.
43933 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
43935 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
43936 (eligible_for_call_delay): New prototype.
43937 * config/sparc/sparc.c (tls_call_delay): Rename into...
43938 (eligible_for_call_delay): ...this. Return false if the instruction
43939 cannot be put in the delay slot of a branch.
43940 (eligible_for_restore_insn): Simplify.
43941 (eligible_for_return_delay): Return false if the instruction cannot be
43942 put in the delay slot of a branch and simplify.
43943 (eligible_for_sibcall_delay): Return false if the instruction cannot be
43944 put in the delay slot of a branch.
43945 * config/sparc/sparc.md (fix_ut699): New attribute.
43946 (tls_call_delay): Delete.
43947 (in_call_delay): Reimplement.
43948 (eligible_for_sibcall_delay): Rename into...
43949 (in_sibcall_delay): ...this.
43950 (eligible_for_return_delay): Rename into...
43951 (in_return_delay): ...this.
43952 (in_branch_delay): Reimplement.
43953 (in_uncond_branch_delay): Delete.
43954 (in_annul_branch_delay): Delete.
43956 2014-03-14 Richard Henderson <rth@redhat.com>
43959 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
43960 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
43961 (*floathi<X87MODEF>2_i387_with_temp): Remove.
43962 (floathi splitters): Remove.
43963 (float<SWI48x>xf2): New pattern.
43964 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
43965 code that tried to handle DImode for 32-bit, but which was excluded
43966 by the pattern's condition. Drop allocation of stack temporary.
43967 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
43968 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
43969 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
43970 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
43971 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
43972 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
43973 (*float<SWI48><MODEF>2_sse_interunit): Remove.
43974 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
43975 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
43976 (*float<SWI48x><X87MODEF>2_i387): Remove.
43977 (all float _with_temp splitters): Remove.
43978 (*float<SWI48x><MODEF>2_i387): New pattern.
43979 (*float<SWI48><MODEF>2_sse): New pattern.
43980 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
43981 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
43983 2014-03-14 Jakub Jelinek <jakub@redhat.com>
43984 Marek Polacek <polacek@redhat.com>
43986 PR middle-end/60484
43987 * common.opt (dump_base_name_prefixed): New Variable.
43988 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
43989 if x_dump_base_name_prefixed is already set, set it at the end.
43991 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
43993 PR rtl-optimization/60508
43994 * lra-constraints.c (get_reload_reg): Add new parameter
43996 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
43997 Pass the new parameter values.
43999 2014-03-14 Richard Biener <rguenther@suse.de>
44001 * common.opt: Revert unintented changes from r205065.
44002 * opts.c: Likewise.
44004 2014-03-14 Richard Biener <rguenther@suse.de>
44006 PR middle-end/60518
44007 * cfghooks.c (split_block): Properly adjust all loops the
44008 block was a latch of.
44010 2014-03-14 Martin Jambor <mjambor@suse.cz>
44013 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
44016 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
44019 * config/avr/avr.c (avr_set_current_function): Pass function name
44020 through default_strip_name_encoding before sanity checking instead
44021 of skipping the first char of the assembler name.
44023 2014-03-13 Richard Henderson <rth@redhat.com>
44026 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
44027 (ix86_force_to_memory, ix86_free_from_memory): Remove.
44028 * config/i386/i386-protos.h: Likewise.
44029 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
44030 in the expander instead of a splitter.
44031 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
44032 any possibility of requiring a memory.
44033 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
44034 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
44035 (fp branch splitters): Update for ix86_split_fp_branch.
44036 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
44037 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
44038 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
44039 (*fop_<MODEF>_2_i387): Remove f/r alternative.
44040 (*fop_<MODEF>_3_i387): Likewise.
44041 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
44042 (splitters for the fop_* register patterns): Remove.
44043 (fscalexf4_i387): Rename from *fscalexf4_i387.
44044 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
44046 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44048 PR tree-optimization/59779
44049 * tree-dfa.c (get_ref_base_and_extent): Use double_int
44050 type for bitsize and maxsize instead of HOST_WIDE_INT.
44052 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
44054 PR rtl-optimization/57320
44055 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
44056 the CFG after thread_prologue_and_epilogue_insns.
44058 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
44060 PR rtl-optimization/57189
44061 * lra-constraints.c (process_alt_operands): Disfavor spilling
44064 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
44066 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
44068 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44070 PR tree-optimization/59025
44071 PR middle-end/60418
44072 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
44073 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
44075 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
44078 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
44079 calls of avr_out_plus_1.
44081 2014-03-13 Bin Cheng <bin.cheng@arm.com>
44083 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
44084 BB's single pred and update the father loop's latch info later.
44086 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
44088 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
44092 (VEC_base): Likewise.
44093 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
44094 registers, we need to swap double words in little endian mode.
44096 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
44097 to be a container mode for 128-bit integer operations added in ISA
44098 2.07. Unlike TImode and PTImode, the preferred register set is
44099 the Altivec/VMX registers for the 128-bit operations.
44101 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
44103 (rs6000_split_128bit_ok_p): Likewise.
44105 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
44106 macros for creating ISA 2.07 normal and overloaded builtin
44107 functions with 3 arguments.
44108 (BU_P8V_OVERLOAD_3): Likewise.
44109 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
44110 for use as overloaded functions.
44111 (VPERM_1TI_UNS): Likewise.
44112 (VSEL_1TI): Likewise.
44113 (VSEL_1TI_UNS): Likewise.
44114 (ST_INTERNAL_1ti): Likewise.
44115 (LD_INTERNAL_1ti): Likewise.
44116 (XXSEL_1TI): Likewise.
44117 (XXSEL_1TI_UNS): Likewise.
44118 (VPERM_1TI): Likewise.
44119 (VPERM_1TI_UNS): Likewise.
44120 (XXPERMDI_1TI): Likewise.
44121 (SET_1TI): Likewise.
44122 (LXVD2X_V1TI): Likewise.
44123 (STXVD2X_V1TI): Likewise.
44124 (VEC_INIT_V1TI): Likewise.
44125 (VEC_SET_V1TI): Likewise.
44126 (VEC_EXT_V1TI): Likewise.
44127 (EQV_V1TI): Likewise.
44128 (NAND_V1TI): Likewise.
44129 (ORC_V1TI): Likewise.
44130 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
44131 added in ISA 2.07. Add both normal 'altivec' builtins, and the
44132 overloaded builtin.
44133 (VADDUQM): Likewise.
44134 (VSUBCUQ): Likewise.
44135 (VADDEUQM): Likewise.
44136 (VADDECUQ): Likewise.
44137 (VSUBEUQM): Likewise.
44138 (VSUBECUQ): Likewise.
44140 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
44141 __int128_t and __uint128_t types.
44142 (__uint128_type): Likewise.
44143 (altivec_categorize_keyword): Add support for vector __int128_t,
44144 vector __uint128_t, vector __int128, and vector unsigned __int128
44145 as a container type for TImode operations that need to be done in
44146 VSX/Altivec registers.
44147 (rs6000_macro_to_expand): Likewise.
44148 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
44149 to support 128-bit integer instructions vaddcuq, vadduqm,
44150 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
44151 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
44153 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
44154 for V1TImode, and set up preferences to use VSX/Altivec registers.
44155 Setup VSX reload handlers.
44156 (rs6000_debug_reg_global): Likewise.
44157 (rs6000_init_hard_regno_mode_ok): Likewise.
44158 (rs6000_preferred_simd_mode): Likewise.
44159 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
44160 (easy_altivec_constant): Likewise.
44161 (output_vec_const_move): Likewise.
44162 (rs6000_expand_vector_set): Convert V1TImode set and extract to
44164 (rs6000_expand_vector_extract): Likewise.
44165 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
44167 (rs6000_const_vec): Add support for V1TImode.
44168 (rs6000_emit_le_vsx_load): Swap double words when loading or
44169 storing TImode/V1TImode.
44170 (rs6000_emit_le_vsx_store): Likewise.
44171 (rs6000_emit_le_vsx_move): Likewise.
44172 (rs6000_emit_move): Add support for V1TImode.
44173 (altivec_expand_ld_builtin): Likewise.
44174 (altivec_expand_st_builtin): Likewise.
44175 (altivec_expand_vec_init_builtin): Likewise.
44176 (altivec_expand_builtin): Likewise.
44177 (rs6000_init_builtins): Add support for V1TImode type. Add
44178 support for ISA 2.07 128-bit integer builtins. Define type names
44179 for the VSX/Altivec vector types.
44180 (altivec_init_builtins): Add support for overloaded vector
44181 functions with V1TImode type.
44182 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
44183 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
44185 (rs6000_split_128bit_ok_p): Likewise.
44186 (rs6000_handle_altivec_attribute): Create V1TImode from vector
44187 __int128_t and vector __uint128_t.
44189 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
44190 and mode attributes.
44192 (VSX_M2): Likewise.
44197 (VS_scalar): Likewise.
44198 (VS_double): Likewise.
44199 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
44201 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
44202 we support the ISA 2.07 128-bit integer arithmetic instructions.
44203 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
44204 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
44205 and TImode types for use with the builtin functions.
44206 (V1TI_type_node): Likewise.
44207 (unsigned_V1TI_type_node): Likewise.
44208 (intTI_type_internal_node): Likewise.
44209 (uintTI_type_internal_node): Likewise.
44211 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
44212 128-bit builtin functions.
44213 (UNSPEC_VADDEUQM): Likewise.
44214 (UNSPEC_VADDECUQ): Likewise.
44215 (UNSPEC_VSUBCUQ): Likewise.
44216 (UNSPEC_VSUBEUQM): Likewise.
44217 (UNSPEC_VSUBECUQ): Likewise.
44218 (VM): Add V1TImode to vector mode iterators.
44220 (VI_unit): Likewise.
44221 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
44222 (altivec_vaddcuq): Likewise.
44223 (altivec_vsubuqm): Likewise.
44224 (altivec_vsubcuq): Likewise.
44225 (altivec_vaddeuqm): Likewise.
44226 (altivec_vaddecuq): Likewise.
44227 (altivec_vsubeuqm): Likewise.
44228 (altivec_vsubecuq): Likewise.
44230 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
44232 (BOOL_128): Likewise.
44233 (BOOL_REGS_OUTPUT): Likewise.
44234 (BOOL_REGS_OP1): Likewise.
44235 (BOOL_REGS_OP2): Likewise.
44236 (BOOL_REGS_UNARY): Likewise.
44237 (BOOL_REGS_AND_CR0): Likewise.
44239 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
44240 128-bit integer builtin support.
44241 (vec_vadduqm): Likewise.
44242 (vec_vaddecuq): Likewise.
44243 (vec_vaddeuqm): Likewise.
44244 (vec_vsubecuq): Likewise.
44245 (vec_vsubeuqm): Likewise.
44246 (vec_vsubcuq): Likewise.
44247 (vec_vsubuqm): Likewise.
44249 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
44250 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
44251 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
44252 128-bit integer add/subtract to ISA 2.07.
44254 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
44256 * config/arc/arc.c (arc_predicate_delay_insns):
44257 Fix third argument passed to conditionalize_nonjump.
44259 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
44261 * config/aarch64/aarch64-builtins.c
44262 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
44263 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
44264 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
44265 instead of __builtin_lfloor.
44266 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
44268 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44270 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
44271 (tree_ssa_ifcombine_bb_1): New function.
44272 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
44273 is an empty forwarder block to then_bb or vice versa and then_bb
44274 and else_bb are effectively swapped.
44276 2014-03-12 Christian Bruel <christian.bruel@st.com>
44279 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
44280 REG_CFA_DEF_CFA note.
44281 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
44282 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
44284 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
44286 PR tree-optimization/60454
44287 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
44289 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44291 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
44292 Do not define target_cpu_default2 to generic.
44293 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
44294 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
44295 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
44297 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44298 Marc Glisse <marc.glisse@inria.fr>
44300 PR tree-optimization/60502
44301 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
44302 instead of build_low_bits_mask.
44304 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44306 PR middle-end/60482
44307 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
44308 if there are multiple uses, but op doesn't live on E edge.
44309 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
44310 clobber stmts before __builtin_unreachable.
44312 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
44314 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
44315 hard_frame_pointer_rtx.
44316 * cse.c (cse_insn): Remove volatile check.
44317 * cselib.c (cselib_process_insn): Likewise.
44318 * dse.c (scan_insn): Likewise.
44320 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44322 * config/arc/arc.c (conditionalize_nonjump): New function,
44324 (arc_ifcvt): ... this.
44325 (arc_predicate_delay_insns): Use it.
44327 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44329 * config/arc/predicates.md (extend_operand): During/after reload,
44330 allow const_int_operand.
44331 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
44332 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
44333 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
44335 (umulsi3_highpart_i): Likewise.
44337 2014-03-11 Richard Biener <rguenther@suse.de>
44339 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
44340 Add asserts to guard possible wrong-code bugs.
44342 2014-03-11 Richard Biener <rguenther@suse.de>
44344 PR tree-optimization/60429
44345 PR tree-optimization/60485
44346 * tree-ssa-structalias.c (set_union_with_increment): Properly
44347 take into account all fields that overlap the shifted vars.
44348 (do_sd_constraint): Likewise.
44349 (do_ds_constraint): Likewise.
44350 (get_constraint_for_ptr_offset): Likewise.
44352 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
44354 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
44355 (nios2_compute_frame_layout):
44356 Add calculation of cfun->machine->fp_save_offset.
44357 (nios2_expand_prologue): Correct setting of frame pointer register
44359 (nios2_expand_epilogue): Update recovery of stack pointer from
44360 frame pointer accordingly.
44361 (nios2_initial_elimination_offset): Update calculation of offset
44362 for eliminating to HARD_FRAME_POINTER_REGNUM.
44364 2014-03-10 Jakub Jelinek <jakub@redhat.com>
44367 * ipa.c (symtab_remove_unreachable_nodes): Don't call
44368 cgraph_get_create_node on VAR_DECLs.
44370 2014-03-10 Richard Biener <rguenther@suse.de>
44372 PR middle-end/60474
44373 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
44375 2014-03-08 Douglas B Rupp <rupp@gnat.com>
44377 * config/vms/vms.opt (vms_float_format): New variable.
44379 2014-03-08 Tobias Burnus <burnus@net-b.de>
44381 * doc/invoke.texi (-fcilkplus): Update implementation status.
44383 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
44384 Richard Biener <rguenther@suse.de>
44386 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
44387 consistently accross all TUs.
44388 (run_gcc): Enable -fshort-double automatically at link at link-time
44389 and disallow override.
44391 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
44394 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
44395 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
44396 if they can't be used.
44398 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44400 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
44401 for Solaris 11/x86 ld.
44402 * configure: Regenerate.
44404 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44406 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
44407 (LIB_TLS_SPEC): Save as ld_tls_libs.
44408 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
44409 (HAVE_AS_IX86_TLSLDM): New test.
44410 * configure, config.in: Regenerate.
44411 * config/i386/i386.c (legitimize_tls_address): Fall back to
44412 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
44413 cannot support TLS_MODEL_LOCAL_DYNAMIC.
44414 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
44415 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
44417 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
44419 * common.opt (fira-loop-pressure): Mark as optimization.
44421 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
44423 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
44424 an OpenMP mappable type.
44426 2014-03-06 Matthias Klose <doko@ubuntu.com>
44428 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
44429 MULTILIB_OSDIRNAMES is not defined.
44431 2014-03-06 Jakub Jelinek <jakub@redhat.com>
44432 Meador Inge <meadori@codesourcery.com>
44435 * config/arm/arm.c (arm_tls_symbol_p): Remove.
44436 (arm_legitimize_address): Call legitimize_tls_address for any
44437 arm_tls_referenced_p expression, handle constant addend. Call it
44438 before testing for !TARGET_ARM.
44439 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
44441 2014-03-06 Richard Biener <rguenther@suse.de>
44443 PR middle-end/60445
44447 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44449 * tree-streamer.c (record_common_node): Assert we don't record
44450 nodes with type double.
44451 (preload_common_node): Skip type double, complex double and double
44452 pointer since it is now frontend dependent due to fshort-double option.
44454 2014-03-06 Richard Biener <rguenther@suse.de>
44456 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
44457 or -fno-lto is specified and the linker has full plugin support.
44458 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
44459 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
44460 * lto-wrapper.c (merge_and_complain): Merge compile-time
44461 optimization levels.
44462 (run_gcc): And pass it through to the link options.
44464 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
44468 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44470 * cselib.c (remove_useless_values): Skip to avoid quadratic
44471 behavior if the condition moved from...
44472 (cselib_process_insn): ... here holds.
44474 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44477 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
44478 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
44481 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
44482 (TM_H): Add x86-tune.def.
44484 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44486 * config/aarch64/aarch64.c (generic_tunings):
44487 Use cortexa57_extra_costs.
44489 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44492 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
44493 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
44494 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
44497 2014-03-04 Heiher <r@hev.cc>
44499 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
44500 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
44502 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
44504 * config/i386/predicates.md (const2356_operand): Change to ...
44505 (const2367_operand): ... this.
44506 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
44508 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44509 (*avx512pf_scatterpf<mode>sf): Ditto.
44510 (avx512pf_scatterpf<mode>df): Ditto.
44511 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44512 (*avx512pf_scatterpf<mode>df): Ditto.
44513 * config/i386/i386.c (ix86_expand_builtin): Update
44514 incorrect hint operand error message.
44516 2014-03-04 Richard Biener <rguenther@suse.de>
44518 * lto-section-in.c (lto_get_section_data): Fix const cast.
44520 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44522 * tree-streamer.c (record_common_node): Assert we don't record
44523 nodes with type double.
44524 (preload_common_node): Skip type double, complex double and double
44525 pointer since it is now frontend dependent due to fshort-double option.
44527 2014-03-04 Richard Biener <rguenther@suse.de>
44530 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
44531 (lto_input_toplevel_asms): Likewise.
44532 * lto-section-in.c (lto_get_section_data): Instead do it here
44535 2014-03-04 Richard Biener <rguenther@suse.de>
44537 PR tree-optimization/60382
44538 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
44539 dead PHIs a reduction.
44541 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
44543 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
44545 (_mm_prefetch): Move out of GCC target("sse") pragma.
44546 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
44547 GCC target("prfchw") pragma.
44548 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
44550 * config/i386/i386.c (ix86_option_override_internal): Enable
44551 -mprfchw with -mprefetchwt1.
44553 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44555 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
44558 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44560 * opts.h (CL_PCH_IGNORE): Define.
44561 * targhooks.c (option_affects_pch_p):
44562 Return false for options that have CL_PCH_IGNORE set.
44563 * opt-functions.awk: Process PchIgnore.
44564 * doc/options.texi: Document PchIgnore.
44566 * config/arc/arc.opt (misize): Add PchIgnore property.
44568 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44570 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
44571 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
44572 constraint on constants to permit them being loaded into
44573 GENERAL_REGS or BASE_REGS.
44575 2014-03-03 Nick Clifton <nickc@redhat.com>
44577 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
44578 anti-cacnonical alternatives.
44579 (negandhi3_real): New pattern.
44580 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
44582 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
44584 * config/avr/avr-mcus.def: Remove atxmega16x1.
44585 * config/avr/avr-tables.opt: Regenerate.
44586 * config/avr/t-multilib: Regenerate.
44587 * doc/avr-mmcu.texi: Regenerate.
44589 2014-03-03 Tobias Grosser <tobias@grosser.es>
44590 Mircea Namolaru <mircea.namolaru@inria.fr>
44592 PR tree-optimization/58028
44593 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
44596 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
44598 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
44599 not handled by recognizers.
44601 2014-03-03 Jakub Jelinek <jakub@redhat.com>
44603 PR middle-end/60175
44604 * function.c (expand_function_end): Don't emit
44605 clobber_return_register sequence if clobber_after is a BARRIER.
44606 * cfgexpand.c (construct_exit_block): Append instructions before
44607 return_label to prev_bb.
44609 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44611 * config/rs6000/constraints.md: Document reserved use of "wc".
44613 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44616 * ipa.c (function_and_variable_visibility): When dissolving comdat
44617 group, also set all symbols to local.
44619 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44624 2013-12-14 Jan Hubicka <jh@suse.cz>
44625 PR middle-end/58477
44626 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
44628 2014-03-02 Jon Beniston <jon@beniston.com>
44634 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
44635 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
44636 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
44637 (simple_return, *simple_return): New patterns
44638 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
44639 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
44641 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
44643 * dwarf2out.c (gen_subprogram_die): Tidy.
44645 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
44648 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
44649 (*mov_t_msb_neg_negc): ... this new insn.
44651 2014-02-28 Jason Merrill <jason@redhat.com>
44654 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
44657 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
44660 * dwarf2out.c (decltype_auto_die): New static.
44661 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
44662 (gen_type_die_with_usage): Handle 'decltype(auto)'.
44663 (is_cxx_auto): Likewise.
44665 2014-02-28 Ian Bolton <ian.bolton@arm.com>
44667 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
44668 we are not using general regs only.
44670 2014-02-28 Richard Biener <rguenther@suse.de>
44673 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
44674 previous fix and only allow to remove trivial pre-headers
44675 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
44676 (remove_forwarder_block): Properly update the latch of a loop.
44678 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44681 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
44682 (cselib_preserved_hash_table): New.
44683 (preserve_constants_and_equivs): Move preserved vals to it.
44684 (cselib_find_slot): Look it up first.
44685 (cselib_init): Initialize it.
44686 (cselib_finish): Release it.
44687 (dump_cselib_table): Dump it.
44689 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44692 * cselib.c (remove_useless_values): Skip to avoid quadratic
44693 behavior if the condition moved from...
44694 (cselib_process_insn): ... here holds.
44696 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44699 * var-tracking.c (vt_initialize): Apply the same condition to
44700 preserve the CFA base value.
44702 2014-02-28 Joey Ye <joey.ye@arm.com>
44705 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
44706 if reload in progress or completed.
44708 2014-02-28 Tobias Burnus <burnus@net-b.de>
44710 PR middle-end/60147
44711 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
44714 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
44716 * doc/tm.texi.in (Condition Code Status): Update documention for
44717 relative locations of cc0-setter and cc0-user.
44719 2014-02-27 Jeff Law <law@redhat.com>
44721 PR rtl-optimization/52714
44722 * combine.c (try_combine): When splitting an unrecognized PARALLEL
44723 into two independent simple sets, if I3 is a jump, ensure the
44724 pattern we place into I3 is a (set (pc) ...).
44726 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
44727 Jeff Law <law@redhat.com>
44729 PR rtl-optimization/49847
44730 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
44731 are in different blocks.
44732 * doc/tm.texi (Condition Code Status): Update documention for
44733 relative locations of cc0-setter and cc0-user.
44735 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
44738 * lra.c (lra_emit_add): Check SUBREG too.
44740 2014-02-27 Andreas Schwab <schwab@suse.de>
44742 * config/m68k/m68k.c (m68k_option_override): Disable
44743 -flive-range-shrinkage for classic m68k.
44744 (m68k_override_options_after_change): Likewise.
44746 2014-02-27 Marek Polacek <polacek@redhat.com>
44748 PR middle-end/59223
44749 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
44750 -Wmaybe-uninitialized.
44752 2014-02-27 Alan Modra <amodra@gmail.com>
44755 * reload1.c (emit_input_reload_insns): When reload_override_in,
44756 set old to rl->in_reg when rl->in_reg is a subreg.
44758 2014-02-26 Richard Biener <rguenther@suse.de>
44761 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
44763 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44765 * common/config/i386/predicates.md (const1256_operand): Remove.
44766 (const2356_operand): New.
44767 (const_1_to_2_operand): Remove.
44768 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44769 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44770 (*avx512pf_gatherpf<mode>sf): Ditto.
44771 (avx512pf_gatherpf<mode>df): Ditto.
44772 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44773 (*avx512pf_gatherpf<mode>df): Ditto.
44774 (avx512pf_scatterpf<mode>sf): Ditto.
44775 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44776 (*avx512pf_scatterpf<mode>sf): Ditto.
44777 (avx512pf_scatterpf<mode>df): Ditto.
44778 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44779 (*avx512pf_scatterpf<mode>df): Ditto.
44780 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
44782 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
44784 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
44785 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
44786 (_mm512_mask_testn_epi64_mask): Move to ...
44787 * config/i386/avx512cdintrin.h: Here.
44788 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
44789 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
44790 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
44791 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
44792 TARGET_AVX512F from TARGET_AVX512CD.
44794 2014-02-26 Richard Biener <rguenther@suse.de>
44797 * ipa.c (walk_polymorphic_call_targets): Properly guard
44798 call to inline_update_overall_summary.
44800 2014-02-26 Bin Cheng <bin.cheng@arm.com>
44803 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
44804 and latches only if requested. Fix latch if it is removed.
44805 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
44806 LOOPS_HAVE_PREHEADERS.
44808 2014-02-25 Andrew Pinski <apinski@cavium.com>
44810 * builtins.c (expand_builtin_thread_pointer): Create a new target
44811 when the target is NULL.
44813 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
44815 PR rtl-optimization/60317
44816 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44817 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44818 * lra-assigns.c: Include params.h.
44819 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
44820 other reload pseudos considerations.
44822 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44824 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
44825 to use canonical form for nor<mode>3.
44827 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44830 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
44833 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44835 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
44836 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
44837 (ix86_handle_option): Handle OPT_mprefetchwt1.
44838 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
44839 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
44841 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
44842 OPTION_MASK_ISA_PREFETCHWT1.
44843 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
44844 (PTA_PREFETCHWT1): New.
44845 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
44846 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
44847 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
44848 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
44849 (*prefetch_avx512pf_<mode>_: Change into ...
44850 (*prefetch_prefetchwt1_<mode>: This.
44851 * config/i386/i386.opt (mprefetchwt1): New.
44852 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
44853 (_mm_prefetch): Handle intent to write.
44854 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
44856 2014-02-25 Richard Biener <rguenther@suse.de>
44858 PR middle-end/60291
44859 * emit-rtl.c (mem_attrs_htab): Remove.
44860 (mem_attrs_htab_hash): Likewise.
44861 (mem_attrs_htab_eq): Likewise.
44862 (set_mem_attrs): Always allocate new mem-attrs when something changed.
44863 (init_emit_once): Do not allocate mem_attrs_htab.
44865 2014-02-25 Richard Biener <rguenther@suse.de>
44868 * lto-opts.c (lto_write_options): Output non-explicit conservative
44869 -fwrapv, -fno-trapv and -fno-strict-overflow.
44870 * lto-wrapper.c (merge_and_complain): Handle merging those options.
44871 (run_gcc): And pass them through.
44873 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44875 * sel-sched.c (calculate_new_fences): New parameter ptime.
44876 Calculate it as a maximum over all fence cycles.
44877 (sel_sched_region_2): Adjust the call to calculate_new_fences.
44878 Print the final schedule timing when sched_verbose.
44880 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44882 PR rtl-optimization/60292
44883 * sel-sched.c (fill_vec_av_set): Do not reset target availability
44884 bit fot the fence instruction.
44886 2014-02-24 Alangi Derick <alangiderick@gmail.com>
44888 * calls.h: Fix typo in comment.
44890 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
44892 * config/pa/pa.c (pa_output_move_double): Don't valididate when
44893 adjusting offsetable addresses.
44895 2014-02-24 Guozhi Wei <carrot@google.com>
44897 * sparseset.h (sparseset_pop): Fix the wrong index.
44899 2014-02-24 Walter Lee <walt@tilera.com>
44901 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
44902 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
44904 * common/config/tilegx/tilegx-common.c
44905 (TARGET_DEFAULT_TARGET_FLAGS): Define.
44906 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
44907 (LINK_SPEC): Ditto.
44908 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
44909 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
44910 (tilegx_gimplify_va_arg_expr): Handle big endian.
44911 (tilegx_expand_unaligned_load): Ditto.
44912 (tilegx_expand_unaligned_store): Ditto.
44913 (TARGET_RETURN_IN_MSB): New.
44914 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
44915 (TARGET_ENDIAN_DEFAULT): New.
44916 (TARGET_BIG_ENDIAN): Handle big endian.
44917 (BYTES_BIG_ENDIAN): Ditto.
44918 (WORDS_BIG_ENDIAN): Ditto.
44919 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
44920 (ENDIAN_SPEC): New.
44921 (EXTRA_SPECS): New.
44922 * config/tilegx/tilegx.md (extv): Handle big endian.
44924 (insn_st<n>): Ditto.
44925 (insn_st<n>_add<bitsuffix>): Ditto.
44926 (insn_stnt<n>): Ditto.
44927 (insn_stnt<n>_add<bitsuffix>):Ditto.
44928 (vec_interleave_highv8qi): Handle big endian.
44929 (vec_interleave_highv8qi_be): New.
44930 (vec_interleave_highv8qi_le): New.
44931 (insn_v1int_h): Handle big endian.
44932 (vec_interleave_lowv8qi): Handle big endian.
44933 (vec_interleave_lowv8qi_be): New.
44934 (vec_interleave_lowv8qi_le): New.
44935 (insn_v1int_l): Handle big endian.
44936 (vec_interleave_highv4hi): Handle big endian.
44937 (vec_interleave_highv4hi_be): New.
44938 (vec_interleave_highv4hi_le): New.
44939 (insn_v2int_h): Handle big endian.
44940 (vec_interleave_lowv4hi): Handle big endian.
44941 (vec_interleave_lowv4hi_be): New.
44942 (vec_interleave_lowv4hi_le): New.
44943 (insn_v2int_l): Handle big endian.
44944 (vec_interleave_highv2si): Handle big endian.
44945 (vec_interleave_highv2si_be): New.
44946 (vec_interleave_highv2si_le): New.
44947 (insn_v4int_h): Handle big endian.
44948 (vec_interleave_lowv2si): Handle big endian.
44949 (vec_interleave_lowv2si_be): New.
44950 (vec_interleave_lowv2si_le): New.
44951 (insn_v4int_l): Handle big endian.
44952 * config/tilegx/tilegx.opt (mbig-endian): New option.
44953 (mlittle-endian): New option.
44954 * doc/install.texi: Document tilegxbe-linux.
44955 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
44957 2014-02-24 Martin Jambor <mjambor@suse.cz>
44960 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
44961 there are no parameter descriptors.
44963 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
44965 PR rtl-optimization/60268
44966 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
44967 initialization to ...
44968 (sched_rgn_init): ... here.
44969 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
44971 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44973 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
44976 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
44978 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
44981 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44983 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
44984 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
44986 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
44988 * config/microblaze/predicates.md: Add cmp_op predicate.
44989 * config/microblaze/microblaze.md: Add branch_compare instruction
44990 which uses cmp_op predicate and emits cmp insn before branch.
44991 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
44992 to microblaze_expand_conditional_branch and consolidate logic.
44993 (microblaze_expand_conditional_branch): emit branch_compare
44994 insn instead of handling cmp op separate from branch insn.
44996 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44998 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
45001 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45003 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
45004 define_insn with define_expand and new define_insn
45005 *altivec_lve<VI_char>x_internal.
45006 (altivec_stve<VI_char>x): Replace define_insn with define_expand
45007 and new define_insn *altivec_stve<VI_char>x_internal.
45008 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
45010 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
45012 (altivec_expand_stvex_be): New function.
45014 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
45016 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
45017 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
45018 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
45019 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
45021 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
45024 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
45025 instead of emit_move_insn.
45027 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45029 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
45030 vspltw with vsldoi.
45031 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
45032 gen_altivec_vsumsws.
45034 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45036 * config/rs6000/altivec.md (altivec_lvxl): Rename as
45037 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
45038 (altivec_lvxl_<mode>): New define_expand incorporating
45039 -maltivec=be semantics where needed.
45040 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
45041 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
45042 semantics where needed.
45043 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
45044 (altivec_stvx_<mode>): New define_expand incorporating
45045 -maltivec=be semantics where needed.
45046 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
45047 VM2 iterator instead of V4SI.
45048 (altivec_stvxl_<mode>): New define_expand incorporating
45049 -maltivec=be semantics where needed.
45050 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
45051 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
45052 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
45053 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
45054 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
45055 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
45056 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
45057 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
45058 ALTIVEC_BUILTIN_STVXL.
45059 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
45060 (altivec_expand_stvx_be): Likewise.
45061 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
45062 (altivec_expand_lvx_be): Likewise.
45063 (altivec_expand_stvx_be): Likewise.
45064 (altivec_expand_builtin): Add cases for
45065 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
45066 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
45067 (altivec_init_builtins): Add definitions for
45068 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
45069 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
45071 2014-02-21 Catherine Moore <clm@codesourcery.com>
45073 * doc/invoke.texi (mvirt, mno-virt): Document.
45074 * config/mips/mips.opt (mvirt): New option.
45075 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
45077 2014-02-21 Richard Biener <rguenther@suse.de>
45079 PR tree-optimization/60276
45080 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
45081 (STMT_VINFO_MIN_NEG_DIST): New macro.
45082 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
45083 STMT_VINFO_MIN_NEG_DIST.
45084 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
45085 made for negative dependence distances still hold.
45087 2014-02-21 Richard Biener <rguenther@suse.de>
45089 PR middle-end/60291
45090 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
45091 DECL_INITIAL for globals not in the current function context.
45093 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45095 PR tree-optimization/56490
45096 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
45097 * tree-ssa-uninit.c: Include params.h.
45098 (compute_control_dep_chain): Add num_calls argument, return false
45099 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
45100 num_calls to recursive call.
45101 (find_predicates): Change dep_chain into normal array,
45102 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
45103 variable and adjust compute_control_dep_chain caller.
45104 (find_def_preds): Likewise.
45106 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
45108 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
45109 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
45111 2014-02-21 Nick Clifton <nickc@redhat.com>
45113 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
45114 (pushhi1): Likewise.
45115 (popqi1): Add mode to pre_dec.
45116 (pophi1): Likewise.
45118 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45120 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
45121 mode for mask of V8SFmode permutation.
45123 2014-02-20 Richard Henderson <rth@redhat.com>
45126 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
45127 a new pseudo for OLDVAL.
45129 2014-02-20 Jakub Jelinek <jakub@redhat.com>
45132 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
45133 gen_reg_rtx if d->testing_p.
45134 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
45135 if d->testing_p and we will certainly return true.
45136 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
45139 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
45141 * emit-rtl.c (gen_reg_rtx): Assert that
45142 crtl->emit.regno_pointer_align_length is non-zero.
45144 2014-02-20 Richard Henderson <rth@redhat.com>
45147 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
45148 on failure the store back into EXPECT.
45150 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
45151 Sandra Loosemore <sandra@codesourcery.com>
45153 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
45154 * config/nios2/nios2.c (nios2_function_profiler): Add
45155 -fPIC (flag_pic == 2) support.
45156 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
45157 (nios2_large_offset_p): New function.
45158 (nios2_unspec_reloc_p): Move up position, update to use
45159 nios2_large_offset_p.
45160 (nios2_unspec_address): Remove function.
45161 (nios2_unspec_offset): New function.
45162 (nios2_large_got_address): New function.
45163 (nios2_got_address): Add large offset support.
45164 (nios2_legitimize_tls_address): Update usage of removed and new
45166 (nios2_symbol_binds_local_p): New function.
45167 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
45168 (nios2_legitimize_address): Update to use nios2_large_offset_p.
45169 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
45170 (nios2_print_operand): Merge H/L processing, add hiadj/lo
45171 processing for (const (unspec ...)).
45172 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
45174 2014-02-20 Richard Biener <rguenther@suse.de>
45176 * tree-cfg.c (replace_uses_by): Mark altered BBs before
45177 doing the substitution.
45178 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
45180 2014-02-20 Martin Jambor <mjambor@suse.cz>
45183 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
45184 info when checking whether lattices are bottom.
45186 2014-02-20 Richard Biener <rguenther@suse.de>
45188 PR middle-end/60221
45189 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
45192 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
45195 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
45196 parameter specifying the scaling.
45197 (inline_call): Update.
45198 (want_inline_recursively): Guard division by zero.
45199 (recursive_inlining): Update.
45200 * ipa-inline.h (clone_inlined_nodes): Update.
45202 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45205 * config/i386/i386.c (classify_argument): Pass structures of size
45206 64 bytes or less in register.
45208 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45209 Kirill Yukhin <kirill.yukhin@intel.com>
45211 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
45212 (_mm_rcp28_round_ss): Ditto.
45213 (_mm_rsqrt28_round_sd): Ditto.
45214 (_mm_rsqrt28_round_ss): Ditto.
45215 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
45216 (_mm_rcp14_round_ss): Ditto.
45217 (_mm_rsqrt14_round_sd): Ditto.
45218 (_mm_rsqrt14_round_ss): Ditto.
45219 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
45220 the first input operand, get rid of match_dup.
45221 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
45223 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45225 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
45226 operand as the first input operand, set type attribute.
45227 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45228 Set type attribute.
45229 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
45230 operand as the first input operand, set type attribute.
45232 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45234 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
45237 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
45240 * config/i386/i386.c (construct_container): Remove TFmode check
45241 for X86_64_INTEGER_CLASS.
45243 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
45246 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
45247 only when -Wpsabi is enabled.
45249 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
45252 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
45253 passing arrays in registers are the same as for structs, so remove the
45254 special case for them.
45256 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
45258 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
45259 destination type, extract only the valid bits if the source type is not
45260 integral and has a different mode.
45262 2014-02-19 Richard Biener <rguenther@suse.de>
45265 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
45268 2014-02-19 Richard Biener <rguenther@suse.de>
45271 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
45272 (ipa_modify_call_arguments): Emit an argument load explicitely and
45273 preserve virtual SSA form there and for the replacement call.
45274 Do not update SSA form nor free dominance info.
45276 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45278 * ipa.c (function_and_variable_visibility): Also clear WEAK
45279 flag when disolving COMDAT_GROUP.
45281 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45283 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
45284 * ipa-prop.c (ipa_set_jf_known_type): Return early when
45285 not devirtualizing.
45286 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
45287 do more sanity checks.
45288 (detect_type_change): Return true when giving up early.
45289 (compute_complex_assign_jump_func): Fix type parameter of
45290 ipa_set_ancestor_jf.
45291 (compute_complex_ancestor_jump_func): Likewise.
45292 (update_jump_functions_after_inlining): Fix updating of
45294 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
45296 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45298 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
45299 inline clones when edge disappears.
45301 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
45304 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
45305 Split 64-bit moves into 2 patterns. Do not allow the use of
45306 direct move for TDmode in little endian, since the decimal value
45307 has little endian bytes within a word, but the 64-bit pieces are
45308 ordered in a big endian fashion, and normal subreg's of TDmode are
45310 (mov<mode>_64bit_dm): Likewise.
45311 (movtd_64bit_nodm): Likewise.
45313 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45315 PR tree-optimization/60174
45316 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
45317 statement of an SSA_NAME that occurs in an abnormal PHI node.
45319 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45322 * final.c (SEEN_BB): Remove.
45323 (SEEN_NOTE, SEEN_EMITTED): Renumber.
45324 (final_scan_insn): Don't force_source_line on second
45325 NOTE_INSN_BASIC_BLOCK.
45327 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
45330 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
45331 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
45332 (type_natural_mode): Warn ABI change when %zmm register is not
45333 available for AVX512F vector value passing.
45335 2014-02-18 Kai Tietz <ktietz@redhat.com>
45338 * config/i386/i386.c (ix86_expand_prologue): Use value in
45339 rax register as displacement when restoring %r10 or %rax.
45340 Fix wrong offset when restoring both registers.
45342 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45344 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
45345 assertion with conditional return.
45347 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45348 Uros Bizjak <ubizjak@gmail.com>
45351 * config/i386/driver-i386.c (host_detect_local_cpu): If
45352 YMM state is not saved by the OS, also clear has_f16c. Move
45353 CPUID 0x80000001 handling before YMM state saving checking.
45355 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
45357 PR rtl-optimization/58960
45358 * haifa-sched.c (alloc_global_sched_pressure_data): New,
45359 factored out from ...
45360 (sched_init): ... here.
45361 (free_global_sched_pressure_data): New, factored out from ...
45362 (sched_finish): ... here.
45363 * sched-int.h (free_global_sched_pressure_data): Declare.
45364 * sched-rgn.c (nr_regions_initial): New static global.
45365 (haifa_find_rgns): Initialize it.
45366 (schedule_region): Disable sched-pressure for the newly
45369 2014-02-17 Richard Biener <rguenther@suse.de>
45371 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
45372 release SSA defs of pattern stmts.
45374 2014-02-17 Richard Biener <rguenther@suse.de>
45376 * tree-inline.c (expand_call_inline): Release the virtual
45377 operand defined by the call we are about to inline.
45379 2014-02-17 Richard Biener <rguenther@suse.de>
45381 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
45383 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
45384 Ilya Tocar <ilya.tocar@intel.com>
45386 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
45387 arguments order in builtin.
45388 (_mm512_permutexvar_epi64): Ditto.
45389 (_mm512_mask_permutexvar_epi64): Ditto
45390 (_mm512_maskz_permutexvar_epi32): Ditto
45391 (_mm512_permutexvar_epi32): Ditto
45392 (_mm512_mask_permutexvar_epi32): Ditto
45394 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45396 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
45397 (p8_vmrgow): Likewise.
45399 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45401 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
45404 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
45407 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
45408 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
45409 into 64-bit and 32-bit moves. On 64-bit moves, add support for
45410 using direct move instructions on ISA 2.07. Also adjust
45411 instruction length for 64-bit.
45412 (mov<mode>_64bit, TFmode/TDmode): Likewise.
45413 (mov<mode>_32bit, TFmode/TDmode): Likewise.
45415 2014-02-15 Alan Modra <amodra@gmail.com>
45419 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
45420 find_replacement on parts of insn rtl that might be reloaded.
45422 2014-02-15 Richard Biener <rguenther@suse.de>
45424 PR tree-optimization/60183
45425 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
45426 (tree_ssa_phiprop): Calculate and free post-dominators.
45428 2014-02-14 Jeff Law <law@redhat.com>
45430 PR rtl-optimization/60131
45431 * ree.c (get_extended_src_reg): New function.
45432 (combine_reaching_defs): Use it rather than assuming location of REG.
45433 (find_and_remove_re): Verify first operand of extension is
45434 a REG before adding the insns to the copy list.
45436 2014-02-14 Roland McGrath <mcgrathr@google.com>
45438 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
45439 * configure: Regenerated.
45440 * config.in: Regenerated.
45441 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
45442 instead of ASM_SHORT.
45444 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
45445 Richard Earnshaw <rearnsha@arm.com>
45447 PR rtl-optimization/59535
45448 * lra-constraints.c (process_alt_operands): Encourage alternative
45449 when unassigned pseudo class is superset of the alternative class.
45450 (inherit_reload_reg): Don't inherit when optimizing for code size.
45451 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
45452 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
45453 modes not less than 4 for Thumb1.
45455 2014-02-14 Kyle McMartin <kyle@redhat.com>
45458 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
45460 2014-02-14 Richard Biener <rguenther@suse.de>
45462 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
45463 (get_frame_arg): Drop the assert with langhook types_compatible_p.
45464 Do not strip INDIRECT_REFs.
45466 2014-02-14 Richard Biener <rguenther@suse.de>
45469 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
45470 DECL_FUNCTION_SPECIFIC_TARGET.
45471 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
45472 * tree-streamer-out.c (pack_ts_target_option): Remove.
45473 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
45474 (write_ts_function_decl_tree_pointers): Do not stream
45475 DECL_FUNCTION_SPECIFIC_TARGET.
45476 * tree-streamer-in.c (unpack_ts_target_option): Remove.
45477 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
45478 (lto_input_ts_function_decl_tree_pointers): Do not stream
45479 DECL_FUNCTION_SPECIFIC_TARGET.
45481 2014-02-14 Jakub Jelinek <jakub@redhat.com>
45483 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
45484 (get_initial_def_for_induction, vectorizable_induction): Ignore
45485 debug stmts when looking for exit_phi.
45486 (vectorizable_live_operation): Fix up condition.
45488 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45490 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
45491 nreverse() because it changes the content of original tree list.
45493 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45495 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
45496 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
45498 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45500 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
45501 GNU coding standards.
45503 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45506 * dwarf2out.c (gen_subprogram_die): Don't call
45507 add_calling_convention_attribute if subr_die is old_die.
45509 2014-02-13 Sharad Singhai <singhai@google.com>
45511 * doc/optinfo.texi: Fix order of nodes.
45513 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
45515 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
45516 operands[2], not operands[3].
45518 2014-02-13 Richard Biener <rguenther@suse.de>
45521 * doc/install.texi (ISL): Update recommended version to 0.12.2,
45522 mention the possibility of an in-tree build.
45523 (CLooG): Update recommended version to 0.18.1, mention the
45524 possibility of an in-tree build and clarify that the ISL
45525 bundled with CLooG does not work.
45527 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45530 * expr.c (compress_float_constant): If x is a hard register,
45531 extend into a pseudo and then move to x.
45533 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
45535 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
45536 caused by bad second argument to warning_at() with -mhotpatch and
45537 nested functions (e.g. with gfortran).
45539 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
45541 * opts.c (option_name): Remove "enabled by default" rider.
45543 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
45545 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
45547 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
45548 Uros Bizjak <ubizjak@gmail.com>
45551 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
45552 * configure: Regenerated.
45554 2014-02-12 Richard Biener <rguenther@suse.de>
45556 * vec.c (vec_prefix::calculate_allocation): Move as
45557 inline variant to vec.h.
45558 (vec_prefix::calculate_allocation_1): New out-of-line version.
45559 * vec.h (vec_prefix::calculate_allocation_1): Declare.
45560 (vec_prefix::m_has_auto_buf): Rename to ...
45561 (vec_prefix::m_using_auto_storage): ... this.
45562 (vec_prefix::calculate_allocation): Inline the easy cases
45563 and dispatch to calculate_allocation_1 which doesn't need the
45565 (va_heap::reserve): Use gcc_checking_assert.
45566 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
45567 m_using_auto_storage.
45568 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
45570 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
45571 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
45572 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
45574 2014-02-12 Richard Biener <rguenther@suse.de>
45576 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
45577 when we found a dependence.
45579 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
45581 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
45583 (maybe_fold_stmt): ... into this new function.
45584 * omp-low.c (lower_omp): Update comment.
45586 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
45589 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
45592 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
45594 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
45595 identifiers in comments.
45596 (cortexa53_extra_costs): Likewise.
45597 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
45598 (cortexa7_extra_costs): Likewise.
45599 (cortexa12_extra_costs): Likewise.
45600 (cortexa15_extra_costs): Likewise.
45601 (v7m_extra_costs): Likewise.
45603 2014-02-12 Richard Biener <rguenther@suse.de>
45605 PR middle-end/60092
45606 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
45607 of posix_memalign being successful.
45608 (lower_stmt): Restrict lowering of posix_memalign to when
45609 -ftree-bit-ccp is enabled.
45611 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45613 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
45615 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
45617 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
45619 PR rtl-optimization/60116
45620 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
45621 other_insn once the combination has been validated.
45623 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
45626 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
45628 * ipa-devirt.c: Include demangle.h
45629 (odr_violation_reported): New static variable.
45630 (add_type_duplicate): Update odr_violations.
45631 (maybe_record_node): Add completep parameter; update it.
45632 (record_target_from_binfo): Add COMPLETEP parameter;
45633 update it as needed.
45634 (possible_polymorphic_call_targets_1): Likewise.
45635 (struct polymorphic_call_target_d): Add nonconstruction_targets;
45636 rename FINAL to COMPLETE.
45637 (record_targets_from_bases): Sanity check we found the binfo;
45638 fix COMPLETEP updating.
45639 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
45640 parameter, fix computing of COMPLETEP.
45641 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
45642 at LTO time do demangling.
45643 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
45644 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
45646 (gimple_get_virt_method_for_binfo): Likewise.
45647 * gimple-fold.h (gimple_get_virt_method_for_binfo,
45648 gimple_get_virt_method_for_vtable): Update prototypes.
45650 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
45653 * genautomata.c (add_presence_absence): Fix typo with
45654 {final_}presence_list.
45656 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
45659 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
45660 for VSX/Altivec vectors that land in GPR registers.
45662 2014-02-11 Richard Henderson <rth@redhat.com>
45663 Jakub Jelinek <jakub@redhat.com>
45666 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
45667 around drhs if type conversion to lacc->type is not useless.
45669 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45671 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
45673 (cortex-a57.cortex-a53): Likewise.
45674 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
45676 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45678 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
45681 2014-02-11 Renlin Li <Renlin.Li@arm.com>
45683 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
45684 add_options_for_arm_vfp3.
45686 2014-02-11 Jeff Law <law@redhat.com>
45688 PR middle-end/54041
45689 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
45690 object with an undesirable mode.
45692 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45695 * config/i386/sol2-9.h: New file.
45696 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
45697 *-*-solaris2.9*): Use it.
45699 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45701 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
45702 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
45704 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45706 * config/microblaze/microblaze.c: Extend mcpu version format
45708 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
45710 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
45712 2014-02-10 Richard Henderson <rth@redhat.com>
45715 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
45716 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
45717 ms-abi vs -mno-accumulate-outgoing-args.
45718 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
45719 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
45722 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
45724 PR middle-end/60080
45725 * cfgexpand.c (expand_asm_operands): Attach source location to
45726 ASM_INPUT rtx objects.
45727 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
45729 2014-02-10 Nick Clifton <nickc@redhat.com>
45731 * config/mn10300/mn10300.c (popcount): New function.
45732 (mn10300_expand_prologue): Include saved registers in stack usage
45735 2014-02-10 Jeff Law <law@redhat.com>
45737 PR middle-end/52306
45738 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
45739 when changing the SET_DEST of a prior insn to avoid an input reload.
45741 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45743 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
45744 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
45745 -mcall-openbsd, or -mcall-linux.
45746 (CC1_ENDIAN_BIG_SPEC): Remove.
45747 (CC1_ENDIAN_LITTLE_SPEC): Remove.
45748 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45749 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
45750 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
45751 and %cc1_endian_default.
45752 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45754 2014-02-10 Richard Biener <rguenther@suse.de>
45756 PR tree-optimization/60115
45757 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
45758 MEM_REF handling. Properly verify that the accesses are not
45759 out of the objects bound.
45761 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45763 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
45766 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
45768 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
45769 proper constants and fix formatting.
45770 (possible_polymorphic_call_targets): Fix formatting.
45772 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
45773 Ilya Tocar <ilya.tocar@intel.com>
45775 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
45776 (_mm512_loadu_epi32): Renamed into...
45777 (_mm512_loadu_si512): This.
45778 (_mm512_storeu_epi32): Renamed into...
45779 (_mm512_storeu_si512): This.
45780 (_mm512_maskz_ceil_ps): Removed.
45781 (_mm512_maskz_ceil_pd): Ditto.
45782 (_mm512_maskz_floor_ps): Ditto.
45783 (_mm512_maskz_floor_pd): Ditto.
45784 (_mm512_floor_round_ps): Ditto.
45785 (_mm512_floor_round_pd): Ditto.
45786 (_mm512_ceil_round_ps): Ditto.
45787 (_mm512_ceil_round_pd): Ditto.
45788 (_mm512_mask_floor_round_ps): Ditto.
45789 (_mm512_mask_floor_round_pd): Ditto.
45790 (_mm512_mask_ceil_round_ps): Ditto.
45791 (_mm512_mask_ceil_round_pd): Ditto.
45792 (_mm512_maskz_floor_round_ps): Ditto.
45793 (_mm512_maskz_floor_round_pd): Ditto.
45794 (_mm512_maskz_ceil_round_ps): Ditto.
45795 (_mm512_maskz_ceil_round_pd): Ditto.
45796 (_mm512_expand_pd): Ditto.
45797 (_mm512_expand_ps): Ditto.
45798 * config/i386/i386.c (ix86_builtins): Remove
45799 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
45800 (bdesc_args): Ditto.
45801 * config/i386/predicates.md (const1256_operand): New.
45802 (const_1_to_2_operand): Ditto.
45803 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
45804 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45805 (*avx512pf_gatherpf<mode>sf): Ditto.
45806 (avx512pf_gatherpf<mode>df): Ditto.
45807 (*avx512pf_gatherpf<mode>df_mask): Ditto.
45808 (*avx512pf_gatherpf<mode>df): Ditto.
45809 (avx512pf_scatterpf<mode>sf): Ditto.
45810 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45811 (*avx512pf_scatterpf<mode>sf): Ditto.
45812 (avx512pf_scatterpf<mode>df): Ditto.
45813 (*avx512pf_scatterpf<mode>df_mask): Ditto.
45814 (*avx512pf_scatterpf<mode>df): Ditto.
45815 (avx512f_expand<mode>): Removed.
45816 (<shift_insn><mode>3<mask_name>): Change predicate type.
45818 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45820 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
45821 not at the end of datarefs vector use ordered_remove to avoid
45822 reordering datarefs vector.
45825 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
45826 mark local addressable non-static vars as GOVD_PRIVATE
45827 instead of GOVD_LOCAL.
45828 * omp-low.c (lower_omp_for): Move gimple_bind_vars
45829 and BLOCK_VARS of gimple_bind_block to new_stmt rather
45832 PR middle-end/60092
45833 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
45834 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
45835 assume_aligned or alloc_align attributes.
45836 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
45837 arguments. Handle also assume_aligned and alloc_align attributes.
45838 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
45839 calls to functions with assume_aligned or alloc_align attributes.
45840 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
45842 2014-02-08 Terry Guo <terry.guo@arm.com>
45844 * doc/invoke.texi: Document ARM -march=armv7e-m.
45846 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45848 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
45849 flag on __cilkrts_rethrow builtin.
45852 * ipa-cp.c (determine_versionability): Fail at -O0
45853 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
45854 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
45857 2014-02-04 Jakub Jelinek <jakub@redhat.com>
45860 * tree-inline.c (copy_forbidden): Fail for
45861 __attribute__((optimize (0))) functions.
45863 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45865 * varpool.c: Include pointer-set.h.
45866 (varpool_remove_unreferenced_decls): Variables in other partitions
45867 will not be output; be however careful to not lose information
45868 about partitioning.
45870 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45872 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
45873 lookup in the vtable constructor.
45875 2014-02-07 Jeff Law <law@redhat.com>
45878 * config/m68k/m68k.md (ashldi_extsi): Turn into a
45879 define_insn_and_split.
45881 * ipa-inline.c (inline_small_functions): Fix typos.
45883 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45885 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
45886 (s390_can_use_return_insn): Declare.
45887 * config/s390/s390.h (EPILOGUE_USES): Define.
45888 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
45890 (s390_chunkify_start): Handle return JUMP_LABELs.
45891 (s390_early_mach): Emit a main_pool instruction on the entry edge.
45892 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
45893 (s390_can_use_return_insn): New functions.
45894 (s390_fix_long_loop_prediction): Handle conditional returns.
45895 (TARGET_SET_UP_BY_PROLOGUE): Define.
45896 * config/s390/s390.md (ANY_RETURN): New code iterator.
45897 (*creturn, *csimple_return, return, simple_return): New patterns.
45899 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45901 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
45902 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
45903 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
45904 REG_CFA_RESTORE list when deciding not to restore a register.
45906 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45908 * config/s390/s390.c: Include tree-pass.h and context.h.
45909 (s390_early_mach): New function, split out from...
45910 (s390_emit_prologue): ...here.
45911 (pass_data_s390_early_mach): New pass structure.
45912 (pass_s390_early_mach): New class.
45913 (s390_option_override): Create and register early_mach pass.
45914 Move to end of file.
45916 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45918 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
45919 to match for the exit block.
45921 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45923 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
45924 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
45925 Reject misaligned operands.
45927 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45929 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
45931 2014-02-07 Richard Biener <rguenther@suse.de>
45933 PR middle-end/60092
45934 * gimple-low.c (lower_builtin_posix_memalign): New function.
45935 (lower_stmt): Call it to lower posix_memalign in a way
45936 to make alignment info accessible.
45938 2014-02-07 Jakub Jelinek <jakub@redhat.com>
45941 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
45942 __builtin_setjmp_receiver.
45944 2014-02-07 Richard Biener <rguenther@suse.de>
45946 PR middle-end/60092
45947 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
45948 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
45949 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
45950 Handle BUILT_IN_POSIX_MEMALIGN.
45951 (find_func_clobbers): Likewise.
45952 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
45953 (call_may_clobber_ref_p_1): Likewise.
45955 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45958 * ipa-devirt.c (record_target_from_binfo): Remove overactive
45961 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45964 * lto-cgraph.c (lto_output_node): Use
45965 symtab_get_symbol_partitioning_class.
45966 (lto_output_varpool_node): likewise.
45967 (symtab_get_symbol_partitioning_class): Move here from
45968 lto/lto-partition.c
45969 * cgraph.h (symbol_partitioning_class): Likewise.
45970 (symtab_get_symbol_partitioning_class): Declare.
45972 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45974 * ggc.h (ggc_internal_cleared_alloc): New macro.
45975 * vec.h (vec_safe_copy): Handle memory stats.
45976 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
45977 * target-globals.c (save_target_globals): Likewise.
45979 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45982 * expr.c (emit_move_resolve_push): Export; be bit more selective
45983 on when to clear alias set.
45984 * expr.h (emit_move_resolve_push): Declare.
45985 * function.h (struct function): Add tail_call_marked.
45986 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
45987 * config/i386/i386-protos.h (ix86_expand_push): Remove.
45988 * config/i386/i386.md (TImode move expander): De not call
45990 (FP push expanders): Preserve memory attributes.
45991 * config/i386/sse.md (push<mode>1): Remove.
45992 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
45993 (ix86_expand_push): Remove.
45994 * config/i386/mmx.md (push<mode>1): Remove.
45996 2014-02-06 Jakub Jelinek <jakub@redhat.com>
45998 PR rtl-optimization/60030
45999 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
46000 lopart with paradoxical subreg before shifting it up by hprec.
46002 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46004 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
46005 Remove extra newline at end of file.
46006 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
46007 (arm_issue_rate): Handle cortexa57.
46008 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
46009 (cortex-a57.cortex-a53): Likewise.
46011 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46014 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
46015 don't record in REG_FRAME_RELATED_EXPR registers not set in that
46017 (arm_expand_prologue): Adjust all callers.
46018 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
46019 info, registers also at the lowest numbered registers side. Use
46020 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
46024 * var-tracking.c (adjust_mems): Before adding a SET to
46025 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
46027 2014-02-06 Alan Modra <amodra@gmail.com>
46030 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
46031 change SDmode to DDmode when lra_in_progress.
46033 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46035 PR middle-end/59150
46036 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
46037 free_data_ref on the dr first, and before goto again also set dr
46038 to the next dr. For simd_lane_access, free old datarefs[i] before
46039 overwriting it. For get_vectype_for_scalar_type failure, don't
46040 free_data_ref if simd_lane_access.
46042 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
46045 * tree.h (opts_for_fn): New inline function.
46046 (opt_for_fn): Define.
46047 * config/i386/i386.c (ix86_function_regparm): Use
46048 opt_for_fn (decl, optimize) instead of optimize.
46050 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
46052 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
46053 for SYMBOL_REF in large memory model.
46055 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46057 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
46058 and crypto support.
46059 (cortex-a57): Likewise.
46060 (cortex-a57.cortex-a53): Likewise.
46062 2014-02-06 Yury Gribov <y.gribov@samsung.com>
46063 Kugan Vivekanandarajah <kuganv@linaro.org>
46065 * config/arm/arm.c (arm_vector_alignment_reachable): Check
46067 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
46069 2014-02-06 Richard Biener <rguenther@suse.de>
46071 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
46072 set_loop_copy and initialize_original_copy_tables.
46074 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
46076 * config/aarch64/aarch64-simd.md
46077 (aarch64_ashr_simddi): Change QI to SI.
46079 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46080 Jakub Jelinek <jakub@redhat.com>
46082 PR middle-end/60013
46083 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
46086 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46088 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
46089 CODE_FOR_altivec_vpku[hw]um to
46090 CODE_FOR_altivec_vpku[hw]um_direct.
46091 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
46092 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
46093 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
46094 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
46096 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46098 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
46099 generation for -maltivec=be.
46100 (altivec_vsumsws): Simplify redundant test.
46102 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46104 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
46105 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
46106 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
46107 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
46108 gen_altivec_vpkuwum.
46109 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
46111 (altivec_vpks<VI_char>ss): Likewise.
46112 (altivec_vpks<VI_char>us): Likewise.
46113 (altivec_vpku<VI_char>us): Likewise.
46114 (altivec_vpku<VI_char>um): Likewise.
46115 (altivec_vpku<VI_char>um_direct): New (copy of
46116 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
46118 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
46119 target is little endian and -maltivec=be is not specified.
46120 (*altivec_vupkhs<VU_char>_direct): New (copy of
46121 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
46122 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
46123 target is little endian and -maltivec=be is not specified.
46124 (*altivec_vupkls<VU_char>_direct): New (copy of
46125 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
46126 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
46127 little endian and -maltivec=be is not specified.
46128 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
46129 little endian and -maltivec=be is not specified.
46131 2014-02-05 Richard Henderson <rth@redhat.com>
46134 * combine-stack-adj.c: Revert r206943.
46135 * sched-int.h (struct deps_desc): Add last_args_size.
46136 * sched-deps.c (init_deps): Initialize it.
46137 (sched_analyze_insn): Add OUTPUT dependencies between insns that
46138 contain REG_ARGS_SIZE notes.
46140 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46142 * lto-cgraph.c (asm_nodes_output): Make global.
46143 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
46144 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
46145 (driver_handle_option): Handle OPT_fwpa.
46147 2014-02-05 Jakub Jelinek <jakub@redhat.com>
46150 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
46151 a comment typo and formatting issue. If odr_hash hasn't been
46152 created, return vNULL and set *completep to false.
46154 PR middle-end/57499
46155 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
46156 bb with no successors.
46158 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
46161 * doc/invoke.texi (-march): Clarify documentation for ARM.
46162 (-mtune): Likewise.
46165 2014-02-05 Richard Biener <rguenther@suse.de>
46167 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
46168 when not vectorizing because of too many alias checks.
46169 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
46170 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
46172 2014-02-05 Nick Clifton <nickc@redhat.com>
46174 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
46175 accept extended registers in any mode when compiling for the MN10300.
46177 2014-02-05 Yury Gribov <y.gribov@samsung.com>
46179 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
46180 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
46181 sanitization attributes.
46182 (can_inline_edge_p): Likewise.
46183 (sanitize_attrs_match_for_inline_p): New function.
46185 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46187 * ipa-prop.c (detect_type_change): Shor circuit testing of
46188 type changes on THIS pointer.
46190 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
46193 * config/pa/pa.c (legitimize_tls_address): Return original address
46194 if not passed a SYMBOL_REF rtx.
46195 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
46197 (pa_emit_move_sequence): Simplify TLS source operands.
46198 (pa_legitimate_constant_p): Reject all TLS constants.
46199 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
46200 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
46202 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46204 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
46205 groups when we know they are controlled by LTO.
46206 * varasm.c (default_binds_local_p_1): If object is in other partition,
46207 it will be resolved locally.
46209 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46211 * config/host-linux.c (linux_gt_pch_use_address): Don't
46212 use SSIZE_MAX because it is not always defined.
46214 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
46217 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
46218 threshold for pseudo splitting.
46219 (update_ebb_live_info): Process call argument hard registers and
46220 hard registers from insn definition too.
46221 (max_small_class_regs_num): New constant.
46222 (inherit_in_ebb): Update live hard regs through EBBs. Update
46223 reloads_num only for small register classes. Don't split for
46226 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
46229 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
46232 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46234 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
46235 visibility is safe.
46237 2014-02-04 Marek Polacek <polacek@redhat.com>
46239 * gdbinit.in (pel): Define.
46241 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46243 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
46246 2014-02-04 Richard Biener <rguenther@suse.de>
46249 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
46250 in function context local.
46251 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
46252 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
46253 similar to LTO_imported_decl_ref.
46255 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46257 PR tree-optimization/60002
46258 * cgraphclones.c (build_function_decl_skip_args): Clear
46259 DECL_LANG_SPECIFIC.
46261 PR tree-optimization/60023
46262 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
46263 false to gsi_replace.
46264 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
46265 has been in some EH region and vec_stmt could throw, add
46266 vec_stmt into the same EH region.
46267 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
46268 has no lhs, ignore it.
46269 * internal-fn.c (expand_MASK_LOAD): Likewise.
46272 * tree-inline.c (copy_forbidden): Fail for
46273 __attribute__((optimize (0))) functions.
46276 * omp-low.c (simd_clone_struct_copy): If from->inbranch
46277 is set, copy one less argument.
46278 (expand_simd_clones): Don't subtract clone_info->inbranch
46279 from simd_clone_struct_alloc argument.
46281 PR rtl-optimization/57915
46282 * recog.c (simplify_while_replacing): If all unary/binary/relational
46283 operation arguments are constant, attempt to simplify those.
46285 PR middle-end/59261
46286 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
46287 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
46289 2014-02-04 Richard Biener <rguenther@suse.de>
46291 PR tree-optimization/60012
46292 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
46293 TBAA disambiguation to all DDRs.
46295 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46298 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
46299 (LINK_SPEC): Use it for -shared, -shared-libgcc.
46301 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46304 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
46306 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46308 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
46309 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
46311 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46314 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
46315 to figure out targets of polymorphic calls with known decl.
46316 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46317 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
46318 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
46319 (get_polymorphic_call_info): ... here.
46320 (get_polymorphic_call_info_from_invariant): New function.
46322 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46324 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
46325 lookup via vtable pointer; check for type consistency
46326 and turn inconsitent facts into UNREACHABLE.
46327 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46328 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
46329 type inconsistent querries; return UNREACHABLE instead.
46331 2014-02-03 Richard Henderson <rth@twiddle.net>
46334 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
46335 already processed this node.
46336 (normalize_one_pred_1): Pass along mark_set.
46337 (normalize_one_pred): Create and destroy a pointer_set_t.
46338 (normalize_one_pred_chain): Likewise.
46340 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
46342 PR gcov-profile/58602
46343 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
46345 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46348 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
46349 -fno-devirtualize; try to devirtualize by the knowledge of
46350 virtual table pointer given by aggregate propagation.
46351 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46352 (ipa_print_node_jump_functions): Dump also offset that
46353 is relevant for polymorphic calls.
46354 (determine_known_aggregate_parts): Add arg_type parameter; use it
46355 instead of determining the type from pointer type.
46356 (ipa_compute_jump_functions_for_edge): Update call of
46357 determine_known_aggregate_parts.
46358 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
46359 (gimple_get_virt_method_for_binfo): ... here; simplify using
46360 vtable_pointer_value_to_vtable.
46361 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
46362 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
46363 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
46364 (vtable_pointer_value_to_vtable): Break out from ...; handle also
46366 (vtable_pointer_value_to_binfo): ... here.
46367 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
46369 2014-02-03 Teresa Johnson <tejohnson@google.com>
46371 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
46372 redef of outer loop index variable.
46374 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
46378 * doc/extend.texi (Function Attributes): Typo.
46380 2014-02-03 Cong Hou <congh@google.com>
46382 PR tree-optimization/60000
46383 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
46384 if the vectorized statement is a store. A store statement can only
46385 appear at the end of pattern statements.
46387 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46389 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
46390 (ix86_option_override_internal): Default long double to 64-bit for
46391 32-bit Bionic and to 128-bit for 64-bit Bionic.
46393 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
46394 TARGET_LONG_DOUBLE_128 is true.
46395 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
46397 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
46398 (mlong-double-64): Negate -mlong-double-128.
46399 (mlong-double-128): New option.
46401 * config/i386/i386-c.c (ix86_target_macros): Define
46402 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
46404 * doc/invoke.texi: Document -mlong-double-128.
46406 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46408 PR rtl-optimization/60024
46409 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
46411 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
46413 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
46415 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46417 PR rtl-optimization/57662
46418 * sel-sched.c (code_motion_path_driver): Do not mark already not
46419 existing blocks in the visiting bitmap.
46421 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46423 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
46424 on the insn being emitted.
46426 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
46427 Will Deacon <will.deacon@arm.com>
46429 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
46431 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46433 * config/arm/arm-tables.opt: Regenerate.
46435 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46437 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
46438 for vector types other than V16QImode.
46439 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
46440 define_expand, and call altivec_expand_vec_perm_le when producing
46441 code with little endian element order.
46442 (*altivec_vperm_<mode>_internal): New insn having previous
46443 behavior of altivec_vperm_<mode>.
46444 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
46445 altivec_expand_vec_perm_le when producing code with little endian
46447 (*altivec_vperm_<mode>_uns_internal): New insn having previous
46448 behavior of altivec_vperm_<mode>_uns.
46450 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46452 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
46453 (altivec_vsumsws): Add handling for -maltivec=be with a little
46455 (altivec_vsumsws_direct): New.
46456 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
46457 gen_altivec_vsumsws.
46459 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46461 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
46462 vtable_pointer_value_to_binfo): New functions.
46463 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
46464 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
46466 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
46468 * config/nios2/nios2.md (load_got_register): Initialize GOT
46469 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
46470 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
46472 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46474 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
46475 preserverd by passthrough, do not propagate the type.
46477 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46479 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
46480 (mips_atomic_assign_expand_fenv): New function.
46481 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
46483 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46485 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
46486 (__builtin_mips_set_fcsr): Likewise.
46487 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
46488 MIPS_USI_FTYPE_VOID.
46489 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
46490 (mips16_expand_set_fcsr): Likewise.
46491 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
46492 (mips16_set_fcsr_stub): Likewise.
46493 (mips16_get_fcsr_one_only_stub): New class.
46494 (mips16_set_fcsr_one_only_stub): Likewise.
46495 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
46496 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
46497 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
46498 (hard_float): New availability predicate.
46499 (mips_builtins): Add get_fcsr and set_fcsr.
46500 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
46501 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
46502 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
46503 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
46504 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
46507 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46509 * config/mips/mips.c (mips_one_only_stub): New class.
46510 (mips_need_mips16_rdhwr_p): Replace with...
46511 (mips16_rdhwr_stub): ...this new variable.
46512 (mips16_stub_call_address): New function.
46513 (mips16_rdhwr_one_only_stub): New class.
46514 (mips_expand_thread_pointer): Use mips16_stub_call_address.
46515 (mips_output_mips16_rdhwr): Delete.
46516 (mips_finish_stub): New function.
46517 (mips_code_end): Use it to handle rdhwr stubs.
46519 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
46522 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
46523 when calculating size of integer atomic types.
46525 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
46527 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
46529 2014-02-01 Jakub Jelinek <jakub@redhat.com>
46531 PR tree-optimization/60003
46532 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
46533 * profile.c (branch_prob): Use gimple_call_builtin_p
46534 to check for BUILT_IN_SETJMP_RECEIVER.
46535 * tree-inline.c (copy_bb): Call notice_special_calls.
46537 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
46540 * lra-constraints.c (process_alt_operands): Update reload_sum only
46543 2014-01-31 Richard Henderson <rth@redhat.com>
46545 PR middle-end/60004
46546 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
46547 until after else_eh is processed.
46549 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46551 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
46552 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
46553 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
46554 in smmintrin.h, remove them.
46555 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
46556 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
46557 * config/i386/i386.md (ROUND_SAE): Fix value.
46558 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
46559 (const48_operand): New.
46560 * config/i386/subst.md (round), (round_expand): Use
46561 const_4_or_8_to_11_operand.
46562 (round_saeonly), (round_saeonly_expand): Use const48_operand.
46564 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46566 * config/i386/constraints.md (Yk): Swap meaning with k.
46567 * config/i386/i386.md (movhi_internal): Change Yk to k.
46568 (movqi_internal): Ditto.
46569 (*k<logic><mode>): Ditto.
46572 (kandn<mode>): Ditto.
46573 (*<code>hi_1): Ditto.
46574 (*<code>qi_1): Ditto.
46575 (kxnor<mode>): Ditto.
46576 (kortestzhi): Ditto.
46577 (kortestchi): Ditto.
46579 (*one_cmplhi2_1): Ditto.
46580 (*one_cmplqi2_1): Ditto.
46581 * config/i386/sse.md (): Change k to Yk.
46582 (avx512f_load<mode>_mask): Ditto.
46583 (avx512f_blendm<mode>): Ditto.
46584 (avx512f_store<mode>_mask): Ditto.
46585 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
46586 (avx512f_storedqu<mode>_mask): Ditto.
46587 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
46589 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
46590 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
46591 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
46592 (avx512f_maskcmp<mode>3): Ditto.
46593 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
46594 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
46595 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
46596 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
46597 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
46598 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
46599 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
46600 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
46601 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
46602 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
46603 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
46604 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
46605 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
46606 (vec_extract_lo_<mode>_maskm): Ditto.
46607 (vec_extract_hi_<mode>_maskm): Ditto.
46608 (avx512f_vternlog<mode>_mask): Ditto.
46609 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
46610 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
46611 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
46612 (avx512f_<code>v8div16qi2_mask): Ditto.
46613 (avx512f_<code>v8div16qi2_mask_store): Ditto.
46614 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
46615 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
46616 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
46617 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
46618 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46619 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46620 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46621 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46622 (avx512cd_maskb_vec_dupv8di): Ditto.
46623 (avx512cd_maskw_vec_dupv16si): Ditto.
46624 (avx512f_vpermi2var<mode>3_maskz): Ditto.
46625 (avx512f_vpermi2var<mode>3_mask): Ditto.
46626 (avx512f_vpermi2var<mode>3_mask): Ditto.
46627 (avx512f_vpermt2var<mode>3_maskz): Ditto.
46628 (*avx512f_gathersi<mode>): Ditto.
46629 (*avx512f_gathersi<mode>_2): Ditto.
46630 (*avx512f_gatherdi<mode>): Ditto.
46631 (*avx512f_gatherdi<mode>_2): Ditto.
46632 (*avx512f_scattersi<mode>): Ditto.
46633 (*avx512f_scatterdi<mode>): Ditto.
46634 (avx512f_compress<mode>_mask): Ditto.
46635 (avx512f_compressstore<mode>_mask): Ditto.
46636 (avx512f_expand<mode>_mask): Ditto.
46637 * config/i386/subst.md (mask): Change k to Yk.
46638 (mask_scalar_merge): Ditto.
46641 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
46643 * doc/extend.texi (Vector Extensions): Document ?: in C++.
46645 2014-01-31 Richard Biener <rguenther@suse.de>
46647 PR middle-end/59990
46648 * builtins.c (fold_builtin_memory_op): Make sure to not
46649 use a floating-point mode or a boolean or enumeral type for
46650 the copy operation.
46652 2014-01-30 DJ Delorie <dj@redhat.com>
46654 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
46655 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
46656 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
46657 whenever main() has an epilogue.
46659 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46661 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
46662 unused variable "field".
46663 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
46664 (vsx_mergeh_<mode>): Likewise.
46665 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
46666 (altivec_vmrghh): Likewise.
46667 (altivec_vmrghw): Likewise.
46668 (altivec_vmrglb): Likewise.
46669 (altivec_vmrglh): Likewise.
46670 (altivec_vmrglw): Likewise.
46671 (altivec_vspltb): Add missing uses.
46672 (altivec_vsplth): Likewise.
46673 (altivec_vspltw): Likewise.
46674 (altivec_vspltsf): Likewise.
46676 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46679 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
46680 frame related instructions.
46682 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
46684 PR rtl-optimization/59959
46685 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
46686 any reload of register whose subreg is invalid.
46688 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46690 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
46691 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
46692 Add missing return type - void.
46694 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46696 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
46697 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
46698 remove element index adjustment for endian (now handled in vsx.md
46700 (altivec_expand_vec_perm_const): Use
46701 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
46702 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
46703 (vsx_xxspltw_<mode>): Adjust element index for little endian.
46704 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
46705 define_expand and a new define_insn *altivec_vspltb_internal;
46706 adjust for -maltivec=be on a little endian target.
46707 (altivec_vspltb_direct): New.
46708 (altivec_vsplth): Divide into a define_expand and a new
46709 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
46710 little endian target.
46711 (altivec_vsplth_direct): New.
46712 (altivec_vspltw): Divide into a define_expand and a new
46713 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
46714 little endian target.
46715 (altivec_vspltw_direct): New.
46716 (altivec_vspltsf): Divide into a define_expand and a new
46717 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
46718 a little endian target.
46720 2014-01-30 Richard Biener <rguenther@suse.de>
46722 PR tree-optimization/59993
46723 * tree-ssa-forwprop.c (associate_pointerplus): Check we
46724 can propagate form the earlier stmt and avoid the transform
46725 when the intermediate result is needed.
46727 2014-01-30 Alangi Derick <alangiderick@gmail.com>
46729 * README.Portability: Fix typo.
46731 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
46733 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
46734 comparison_operator with ordered_comparison_operator.
46736 2014-01-30 Nick Clifton <nickc@redhat.com>
46738 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
46739 Rename to mn10300_store_multiple_regs.
46740 * config/mn10300/mn10300.c: Likewise.
46741 * config/mn10300/mn10300.md (store_movm): Fix typo: call
46742 store_multiple_regs.
46743 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
46744 Call mn10300_store_multiple_regs.
46746 2014-01-30 Nick Clifton <nickc@redhat.com>
46747 DJ Delorie <dj@redhat.com>
46749 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
46750 %fp 2 to keep registers after it properly word-aligned.
46751 (rl78_alloc_physical_registers_umul): Handle the case where both
46752 input operands are the same.
46754 2014-01-30 Richard Biener <rguenther@suse.de>
46756 PR tree-optimization/59903
46757 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
46760 2014-01-30 Jason Merrill <jason@redhat.com>
46763 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
46766 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
46768 2014-01-30 Richard Biener <rguenther@suse.de>
46770 PR tree-optimization/59951
46771 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
46773 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
46776 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
46777 SFmode to DFmode case.
46779 2014-01-29 DJ Delorie <dj@redhat.com>
46781 * config/msp430/msp430.opt (-minrt): New.
46782 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
46784 (ENDFILE_SPEC): Likewise.
46786 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
46788 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
46789 (estimate_function_body_sizes): Use it.
46791 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
46794 * dwarf2out.c (is_cxx_auto): New.
46795 (is_base_type): Use it.
46796 (gen_type_die_with_usage): Likewise.
46798 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46800 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
46801 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
46802 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
46803 -maltivec=be with LE targets.
46804 (vsx_mergeh_<mode>): Likewise.
46805 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
46806 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
46807 (altivec_vmrghb): Replace with define_expand and new
46808 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
46809 (altivec_vmrghb_direct): New define_insn.
46810 (altivec_vmrghh): Replace with define_expand and new
46811 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
46812 (altivec_vmrghh_direct): New define_insn.
46813 (altivec_vmrghw): Replace with define_expand and new
46814 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
46815 (altivec_vmrghw_direct): New define_insn.
46816 (*altivec_vmrghsf): Adjust for endianness.
46817 (altivec_vmrglb): Replace with define_expand and new
46818 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
46819 (altivec_vmrglb_direct): New define_insn.
46820 (altivec_vmrglh): Replace with define_expand and new
46821 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
46822 (altivec_vmrglh_direct): New define_insn.
46823 (altivec_vmrglw): Replace with define_expand and new
46824 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
46825 (altivec_vmrglw_direct): New define_insn.
46826 (*altivec_vmrglsf): Adjust for endianness.
46827 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46828 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46829 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46830 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46831 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46832 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46833 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46834 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46836 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
46838 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
46839 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
46842 2014-01-29 Richard Biener <rguenther@suse.de>
46844 PR tree-optimization/58742
46845 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
46846 associate_pointerplus_align.
46847 (associate_pointerplus_diff): New function.
46848 (associate_pointerplus): Likewise. Call associate_pointerplus_align
46849 and associate_pointerplus_diff.
46851 2014-01-29 Richard Biener <rguenther@suse.de>
46853 * lto-streamer.h (LTO_major_version): Bump to 3.
46854 (LTO_minor_version): Reset to 0.
46856 2014-01-29 Renlin Li <Renlin.Li@arm.com>
46858 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
46859 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
46860 (arm_file_start): Generate correct asm header for armv7ve.
46861 * config/arm/bpabi.h: Add multilib support for armv7ve.
46862 * config/arm/driver-arm.c: Change the architectures of cortex-a7
46863 and cortex-a15 to armv7ve.
46864 * config/arm/t-aprofile: Add multilib support for armv7ve.
46865 * doc/invoke.texi: Document -march=armv7ve.
46867 2014-01-29 Richard Biener <rguenther@suse.de>
46869 PR tree-optimization/58742
46870 * tree-ssa-forwprop.c (associate_plusminus): Return true
46871 if we changed sth, defer EH cleanup to ...
46872 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
46873 (simplify_mult): New function.
46875 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46877 PR middle-end/59917
46878 PR tree-optimization/59920
46879 * tree.c (build_common_builtin_nodes): Remove
46880 __builtin_setjmp_dispatcher initialization.
46881 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
46882 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
46883 instead of gsi_after_labels + manually skipping debug stmts.
46884 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
46885 ignore bbs with IFN_ABNORMAL_DISPATCHER.
46886 * tree-inline.c (copy_edges_for_bb): Remove
46887 can_make_abnormal_goto argument, instead add abnormal_goto_dest
46888 argument. Ignore computed_goto_p stmts. Don't call
46889 make_abnormal_goto_edges. If a call might need abnormal edges
46890 for non-local gotos, see if it already has an edge to
46891 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
46892 with true argument, don't do anything then, otherwise add
46893 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
46894 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
46896 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
46897 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
46898 (lower_stmt): Don't set data->calls_builtin_setjmp.
46899 (lower_builtin_setjmp): Adjust comment.
46900 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
46901 * tree-cfg.c (found_computed_goto): Remove.
46902 (factor_computed_gotos): Remove.
46903 (make_goto_expr_edges): Return bool, true for computed gotos.
46904 Don't call make_abnormal_goto_edges.
46905 (build_gimple_cfg): Don't set found_computed_goto, don't call
46906 factor_computed_gotos.
46907 (computed_goto_p): No longer static.
46908 (make_blocks): Don't set found_computed_goto.
46909 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
46910 (make_edges): If make_goto_expr_edges returns true, push bb
46911 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
46912 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
46913 vector. Record mapping between bbs and OpenMP regions if there
46914 are any, adjust make_gimple_omp_edges caller. Call
46915 handle_abnormal_edges.
46916 (make_abnormal_goto_edges): Remove.
46917 * tree-cfg.h (make_abnormal_goto_edges): Remove.
46918 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
46919 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
46920 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
46921 * internal-fn.def (ABNORMAL_DISPATCHER): New.
46922 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
46923 filling *region also set *region_idx to (*region)->entry->index.
46926 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
46927 For REGs set ORIGINAL_REGNO.
46929 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
46931 * doc/md.texi: Mention that a target shouldn't implement
46932 vec_widen_(s|u)mul_even/odd pair if it is less efficient
46935 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46937 PR tree-optimization/59594
46938 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
46939 a copy of the datarefs vector rather than the vector itself.
46941 2014-01-28 Jason Merrill <jason@redhat.com>
46944 * dwarf2out.c (auto_die): New static.
46945 (gen_type_die_with_usage): Handle C++1y 'auto'.
46946 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
46949 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
46952 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
46953 (SPEC_X32): Likewise.
46954 (SPEC_64): Likewise.
46955 * config/i386/i386.c (ix86_option_override_internal): Turn off
46956 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
46958 (x86_file_start): Output .code16gcc for TARGET_16BIT.
46959 * config/i386/i386.h (TARGET_16BIT): New macro.
46960 (TARGET_16BIT_P): Likewise.
46961 * config/i386/i386.opt: Add m16.
46962 * doc/invoke.texi: Document -m16.
46964 2014-01-28 Jakub Jelinek <jakub@redhat.com>
46966 PR preprocessor/59935
46967 * input.c (location_get_source_line): Bail out on when line number
46968 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
46970 2014-01-28 Richard Biener <rguenther@suse.de>
46972 PR tree-optimization/58742
46973 * tree-ssa-forwprop.c (associate_plusminus): Handle
46974 pointer subtraction of the form (T)(P + A) - (T)P.
46976 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46978 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
46981 2014-01-28 Richard Biener <rguenther@suse.de>
46984 2014-01-28 Richard Biener <rguenther@suse.de>
46986 PR rtl-optimization/45364
46987 PR rtl-optimization/59890
46988 * var-tracking.c (local_get_addr_clear_given_value): Handle
46989 already cleared slot.
46990 (val_reset): Handle not allocated local_get_addr_cache.
46991 (vt_find_locations): Use post-order on the inverted CFG.
46993 2014-01-28 Richard Biener <rguenther@suse.de>
46995 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
46997 2014-01-28 Richard Biener <rguenther@suse.de>
46999 PR rtl-optimization/45364
47000 PR rtl-optimization/59890
47001 * var-tracking.c (local_get_addr_clear_given_value): Handle
47002 already cleared slot.
47003 (val_reset): Handle not allocated local_get_addr_cache.
47004 (vt_find_locations): Use post-order on the inverted CFG.
47006 2014-01-28 Alan Modra <amodra@gmail.com>
47008 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
47009 * configure.ac <recursive call for build != host>: Define
47010 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
47011 and LD_FOR_BUILD too.
47012 * configure: Regenerate.
47014 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
47016 * config/i386/i386.c (get_builtin_code_for_version): Separate
47017 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
47018 Broadwell from Haswell.
47020 2014-01-27 Steve Ellcey <sellcey@mips.com>
47022 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
47023 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
47024 * config/mips/mips.c (mips_option_override): Change setting
47026 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
47027 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
47028 Change from Mask to Var.
47030 2014-01-27 Jeff Law <law@redhat.com>
47032 * ipa-inline.c (inline_small_functions): Fix typo.
47034 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
47036 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
47037 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
47038 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
47039 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
47040 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
47041 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
47042 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
47043 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
47044 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
47045 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
47046 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
47047 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
47048 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
47049 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
47050 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
47051 (_mm512_storeu_epi64): Ditto.
47052 (_mm512_cmpge_epi32_mask): Ditto.
47053 (_mm512_cmpge_epu32_mask): Ditto.
47054 (_mm512_cmpge_epi64_mask): Ditto.
47055 (_mm512_cmpge_epu64_mask): Ditto.
47056 (_mm512_cmple_epi32_mask): Ditto.
47057 (_mm512_cmple_epu32_mask): Ditto.
47058 (_mm512_cmple_epi64_mask): Ditto.
47059 (_mm512_cmple_epu64_mask): Ditto.
47060 (_mm512_cmplt_epi32_mask): Ditto.
47061 (_mm512_cmplt_epu32_mask): Ditto.
47062 (_mm512_cmplt_epi64_mask): Ditto.
47063 (_mm512_cmplt_epu64_mask): Ditto.
47064 (_mm512_cmpneq_epi32_mask): Ditto.
47065 (_mm512_cmpneq_epu32_mask): Ditto.
47066 (_mm512_cmpneq_epi64_mask): Ditto.
47067 (_mm512_cmpneq_epu64_mask): Ditto.
47068 (_mm512_expand_pd): Ditto.
47069 (_mm512_expand_ps): Ditto.
47070 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
47071 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
47072 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
47073 * config/i386/i386.c (ix86_builtins): Add
47074 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
47075 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
47076 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
47077 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
47078 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
47079 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
47080 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
47081 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
47082 IX86_BUILTIN_PMOVUSQW512_MEM.
47083 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
47084 __builtin_ia32_pmovsqd512mem_mask,
47085 __builtin_ia32_pmovqd512mem_mask,
47086 __builtin_ia32_pmovusqw512mem_mask,
47087 __builtin_ia32_pmovsqw512mem_mask,
47088 __builtin_ia32_pmovqw512mem_mask,
47089 __builtin_ia32_pmovusdw512mem_mask,
47090 __builtin_ia32_pmovsdw512mem_mask,
47091 __builtin_ia32_pmovdw512mem_mask,
47092 __builtin_ia32_pmovqb512mem_mask,
47093 __builtin_ia32_pmovusqb512mem_mask,
47094 __builtin_ia32_pmovsqb512mem_mask,
47095 __builtin_ia32_pmovusdb512mem_mask,
47096 __builtin_ia32_pmovsdb512mem_mask,
47097 __builtin_ia32_pmovdb512mem_mask.
47098 (bdesc_args): Add __builtin_ia32_expanddf512,
47099 __builtin_ia32_expandsf512.
47100 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
47101 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
47102 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
47103 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
47104 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
47105 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
47106 (avx512f_<code>v8div16qi2_mask_store): This.
47107 (avx512f_expand<mode>): New.
47109 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
47111 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
47113 (_mm512_mask_prefetch_i64gather_pd): Ditto.
47114 (_mm512_prefetch_i32scatter_pd): Ditto.
47115 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
47116 (_mm512_prefetch_i64scatter_pd): Ditto.
47117 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
47118 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
47119 (_mm512_mask_prefetch_i64gather_ps): Ditto.
47120 (_mm512_prefetch_i32scatter_ps): Ditto.
47121 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
47122 (_mm512_prefetch_i64scatter_ps): Ditto.
47123 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
47124 * config/i386/i386-builtin-types.def: Define
47125 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
47126 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
47127 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
47128 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
47129 IX86_BUILTIN_SCATTERPFQPD.
47130 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
47131 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
47132 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
47133 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
47134 __builtin_ia32_scatterpfqps.
47135 (ix86_expand_builtin): Expand new built-ins.
47136 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
47137 fix memory access data type.
47138 (*avx512pf_gatherpf<mode>_mask): Ditto.
47139 (*avx512pf_gatherpf<mode>): Ditto.
47140 (avx512pf_scatterpf<mode>): Ditto.
47141 (*avx512pf_scatterpf<mode>_mask): Ditto.
47142 (*avx512pf_scatterpf<mode>): Ditto.
47143 (GATHER_SCATTER_SF_MEM_MODE): New.
47144 (avx512pf_gatherpf<mode>df): Ditto.
47145 (*avx512pf_gatherpf<mode>df_mask): Ditto.
47146 (*avx512pf_scatterpf<mode>df): Ditto.
47148 2014-01-27 Jakub Jelinek <jakub@redhat.com>
47151 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
47152 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
47155 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47157 * common/config/arm/arm-common.c
47158 (arm_rewrite_mcpu): Handle multiple names.
47160 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47162 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47164 * gimple-builder.h (create_gimple_tmp): Delete.
47166 2014-01-27 Christian Bruel <christian.bruel@st.com>
47168 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
47171 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
47173 * config/pa/pa.md (call): Generate indirect long calls to non-local
47174 functions when outputing 32-bit code.
47175 (call_value): Likewise except for special call to buggy powf function.
47177 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
47178 portable runtime and PIC indirect calls.
47179 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
47180 and PIC call sequences. Use ldo instead of blr to set return register
47181 in PIC call sequence.
47183 2014-01-25 Walter Lee <walt@tilera.com>
47185 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
47186 avoid clobbering a live register.
47188 2014-01-25 Walter Lee <walt@tilera.com>
47190 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
47191 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
47192 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
47193 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
47195 2014-01-25 Walter Lee <walt@tilera.com>
47197 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
47198 arguments on even registers.
47199 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
47201 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
47202 (BIGGEST_ALIGNMENT): Ditto.
47203 (BIGGEST_FIELD_ALIGNMENT): Ditto.
47205 2014-01-25 Walter Lee <walt@tilera.com>
47207 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
47208 insns before bundling.
47209 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47211 2014-01-25 Walter Lee <walt@tilera.com>
47213 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
47214 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
47215 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
47217 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47219 * config/mips/constraints.md (kl): Delete.
47220 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
47221 define expands, using...
47222 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
47223 instructions for MIPS16.
47224 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
47225 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
47227 2014-01-25 Walter Lee <walt@tilera.com>
47229 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
47233 2014-01-25 Walter Lee <walt@tilera.com>
47235 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
47236 (TARGET_EXPAND_TO_RTL_HOOK): Define.
47238 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47240 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
47243 2014-01-25 Jakub Jelinek <jakub@redhat.com>
47245 * print-rtl.c (in_call_function_usage): New var.
47246 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
47247 EXPR_LIST mode as mode and not as reg note name.
47249 PR middle-end/59561
47250 * cfgloopmanip.c (copy_loop_info): If
47251 loop->warned_aggressive_loop_optimizations, make sure
47252 the flag is set in target loop too.
47254 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
47256 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
47258 * builtins.def: Likewise.
47259 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
47260 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
47261 * ira.c (ira_setup_eliminable_regset): Likewise.
47262 * omp-low.c (gate_expand_omp): Likewise.
47263 (execute_lower_omp): Likewise.
47264 (diagnose_sb_0): Likewise.
47265 (gate_diagnose_omp_blocks): Likewise.
47266 (simd_clone_clauses_extract): Likewise.
47269 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47271 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
47272 correction for little endian...
47273 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
47276 2014-01-24 Jeff Law <law@redhat.com>
47278 PR tree-optimization/59919
47279 * tree-vrp.c (find_assert_locations_1): Do not register asserts
47280 for non-returning calls.
47282 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
47284 * common/config/aarch64/aarch64-common.c
47285 (aarch64_rewrite_mcpu): Handle multiple names.
47286 * config/aarch64/aarch64.h
47287 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47289 2014-01-24 Dodji Seketeli <dodji@redhat.com>
47291 * input.c (add_file_to_cache_tab): Handle the case where fopen
47294 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
47297 * config/i386/i386.md (pushsf splitter): Get stack adjustment
47298 from push operand if code of push isn't PRE_DEC.
47300 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47303 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
47304 -mquad-memory-atomic. Update -mquad-memory documentation to say
47305 it is only used for non-atomic loads/stores.
47307 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
47308 -mquad-memory or -mquad-memory-atomic switches.
47310 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
47311 -mquad-memory-atomic to ISA 2.07 support.
47313 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
47314 to separate support of normal quad word memory operations (ldq, stq)
47315 from the atomic quad word memory operations.
47317 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
47318 support to separate non-atomic quad word operations from atomic
47319 quad word operations. Disable non-atomic quad word operations in
47320 little endian mode so that we don't have to swap words after the
47321 load and before the store.
47322 (quad_load_store_p): Add comment about atomic quad word support.
47323 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
47324 options printed with -mdebug=reg.
47326 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
47327 -mquad-memory-atomic as the test for whether we have quad word
47328 atomic instructions.
47329 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
47330 or -mp8-vector are used, allow byte/half-word atomic operations.
47332 * config/rs6000/sync.md (load_lockedti): Insure that the address
47333 is a proper indexed or indirect address for the lqarx instruction.
47334 On little endian systems, swap the hi/lo registers after the lqarx
47336 (load_lockedpti): Use indexed_or_indirect_operand predicate to
47337 insure the address is valid for the lqarx instruction.
47338 (store_conditionalti): Insure that the address is a proper indexed
47339 or indirect address for the stqcrx. instruction. On little endian
47340 systems, swap the hi/lo registers before doing the stqcrx.
47342 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
47343 insure the address is valid for the stqcrx. instruction.
47345 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
47346 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
47347 type of quad memory support is available.
47349 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
47351 PR regression/59915
47352 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
47353 there is a danger of looping.
47355 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
47357 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
47358 force flag_ira_loop_pressure if set via command line.
47360 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47362 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
47363 (ashr_simd): New builtin handling DI mode.
47364 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
47365 (aarch64_sshr_simddi): New match pattern.
47366 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
47367 (vshrd_n_s64): Likewise.
47368 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
47370 2014-01-23 Nick Clifton <nickc@redhat.com>
47372 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
47373 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
47374 favour of mcu specific scripts.
47375 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
47378 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47379 Alex Velenko <Alex.Velenko@arm.com>
47381 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
47382 (vaddv_s16): Likewise.
47383 (vaddv_s32): Likewise.
47384 (vaddv_u8): Likewise.
47385 (vaddv_u16): Likewise.
47386 (vaddv_u32): Likewise.
47387 (vaddvq_s8): Likewise.
47388 (vaddvq_s16): Likewise.
47389 (vaddvq_s32): Likewise.
47390 (vaddvq_s64): Likewise.
47391 (vaddvq_u8): Likewise.
47392 (vaddvq_u16): Likewise.
47393 (vaddvq_u32): Likewise.
47394 (vaddvq_u64): Likewise.
47395 (vaddv_f32): Likewise.
47396 (vaddvq_f32): Likewise.
47397 (vaddvq_f64): Likewise.
47398 (vmaxv_f32): Likewise.
47399 (vmaxv_s8): Likewise.
47400 (vmaxv_s16): Likewise.
47401 (vmaxv_s32): Likewise.
47402 (vmaxv_u8): Likewise.
47403 (vmaxv_u16): Likewise.
47404 (vmaxv_u32): Likewise.
47405 (vmaxvq_f32): Likewise.
47406 (vmaxvq_f64): Likewise.
47407 (vmaxvq_s8): Likewise.
47408 (vmaxvq_s16): Likewise.
47409 (vmaxvq_s32): Likewise.
47410 (vmaxvq_u8): Likewise.
47411 (vmaxvq_u16): Likewise.
47412 (vmaxvq_u32): Likewise.
47413 (vmaxnmv_f32): Likewise.
47414 (vmaxnmvq_f32): Likewise.
47415 (vmaxnmvq_f64): Likewise.
47416 (vminv_f32): Likewise.
47417 (vminv_s8): Likewise.
47418 (vminv_s16): Likewise.
47419 (vminv_s32): Likewise.
47420 (vminv_u8): Likewise.
47421 (vminv_u16): Likewise.
47422 (vminv_u32): Likewise.
47423 (vminvq_f32): Likewise.
47424 (vminvq_f64): Likewise.
47425 (vminvq_s8): Likewise.
47426 (vminvq_s16): Likewise.
47427 (vminvq_s32): Likewise.
47428 (vminvq_u8): Likewise.
47429 (vminvq_u16): Likewise.
47430 (vminvq_u32): Likewise.
47431 (vminnmv_f32): Likewise.
47432 (vminnmvq_f32): Likewise.
47433 (vminnmvq_f64): Likewise.
47435 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47437 * config/aarch64/aarch64-simd.md
47438 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
47439 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
47440 (*aarch64_mul3_elt<mode>): Likewise.
47441 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
47442 (*aarch64_mul3_elt_to_64v2df): Likewise.
47443 (*aarch64_mla_elt<mode>): Likewise.
47444 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
47445 (*aarch64_mls_elt<mode>): Likewise.
47446 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
47447 (*aarch64_fma4_elt<mode>): Likewise.
47448 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
47449 (*aarch64_fma4_elt_to_64v2df): Likewise.
47450 (*aarch64_fnma4_elt<mode>): Likewise.
47451 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
47452 (*aarch64_fnma4_elt_to_64v2df): Likewise.
47453 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
47454 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
47455 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47456 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47457 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
47458 (aarch64_sqdmull_lane<mode>_internal): Likewise.
47459 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
47461 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
47463 * config/aarch64/aarch64-simd.md
47464 (aarch64_be_checked_get_lane<mode>): New define_expand.
47465 * config/aarch64/aarch64-simd-builtins.def
47466 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
47467 New builtin definition.
47468 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
47469 Use new safe be builtin.
47471 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47473 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
47475 (aarch64_be_st1<mode>): Likewise.
47476 (aarch_ld1<VALL:mode>): Define_expand modified.
47477 (aarch_st1<VALL:mode>): Likewise.
47478 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
47479 (UNSPEC_ST1): Likewise.
47481 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
47483 * config/microblaze/microblaze.md: Add trap insn and attribute
47485 2014-01-23 Dodji Seketeli <dodji@redhat.com>
47487 PR preprocessor/58580
47488 * input.h (location_get_source_line): Take an additional line_size
47490 (void diagnostics_file_cache_fini): Declare new function.
47491 * input.c (struct fcache): New type.
47492 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
47493 New static constants.
47494 (diagnostic_file_cache_init, total_lines_num)
47495 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
47496 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
47497 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
47498 (get_next_line, read_next_line, goto_next_line, read_line_num):
47499 New static function definitions.
47500 (diagnostic_file_cache_fini): New function.
47501 (location_get_source_line): Take an additional output line_len
47502 parameter. Re-write using lookup_or_add_file_to_cache_tab and
47504 * diagnostic.c (diagnostic_finish): Call
47505 diagnostic_file_cache_fini.
47506 (adjust_line): Take an additional input parameter for the length
47507 of the line, rather than calculating it with strlen.
47508 (diagnostic_show_locus): Adjust the use of
47509 location_get_source_line and adjust_line with respect to their new
47510 signature. While displaying a line now, do not stop at the first
47511 null byte. Rather, display the zero byte as a space and keep
47512 going until we reach the size of the line.
47513 * Makefile.in: Add vec.o to OBJS-libcommon
47515 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47516 Ilya Tocar <ilya.tocar@intel.com>
47518 * config/i386/avx512fintrin.h (_mm512_kmov): New.
47519 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
47520 (__builtin_ia32_kmov16): Ditto.
47521 * config/i386/i386.md (UNSPEC_KMOV): New.
47524 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47526 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
47527 (_mm512_storeu_si512): Ditto.
47529 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
47532 * rtl.h (get_referenced_operands): Declare.
47533 * recog.c (get_referenced_operands): New function.
47534 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
47535 operands have been referenced when recording LO_SUM references.
47537 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
47539 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
47541 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47543 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
47544 Enable for generic and recent AMD targets.
47546 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47548 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
47549 ARG_SIZE note when adjustment was eliminated.
47551 2014-01-22 Jeff Law <law@redhat.com>
47553 PR tree-optimization/59597
47554 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
47555 in file. Accept new argument REGISTERING and use it to modify
47556 dump output appropriately.
47557 (register_jump_thread): Corresponding changes.
47558 (mark_threaded_blocks): Reinstate code to cancel unprofitable
47559 thread paths involving joiner blocks. Add code to dump cancelled
47560 jump threading paths.
47562 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
47564 PR rtl-optimization/59477
47565 * lra-constraints.c (inherit_in_ebb): Process call for living hard
47566 regs. Update reloads_num and potential_reload_hard_regs for all insns.
47568 2014-01-22 Tom Tromey <tromey@redhat.com>
47570 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
47572 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
47574 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47576 PR rtl-optimization/59896
47577 * lra-constraints.c (process_alt_operands): Check unused note for
47578 matched operands of insn with no output reloads.
47580 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
47582 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
47583 (mips_move_from_gpr_cost): Likewise.
47585 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47587 PR rtl-optimization/59858
47588 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
47589 ira_class_hard_regs_num.
47590 (process_alt_operands): Increase reject for dying matched operand.
47592 2014-01-21 Jakub Jelinek <jakub@redhat.com>
47595 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
47596 smaller than size, perform several stores or loads and stores
47597 at dst + count - size to store or copy all of size bytes, rather
47598 than just last modesize bytes.
47600 2014-01-20 DJ Delorie <dj@redhat.com>
47602 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
47603 that CLOBBERs are REGs before propogating their values.
47605 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
47607 PR middle-end/59789
47608 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
47609 (cgraph_inline_failed_type): New function.
47610 * cgraph.h (DEFCIFCODE): Add type.
47611 (cgraph_inline_failed_type_t): New enum.
47612 (cgraph_inline_failed_type): New prototype.
47613 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
47614 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
47615 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
47616 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
47617 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
47618 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
47619 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
47620 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
47621 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
47622 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
47623 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
47624 OPTIMIZATION_MISMATCH.
47625 * tree-inline.c (expand_call_inline): Emit errors during
47626 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
47628 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47631 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
47632 mode attribute in insn output.
47634 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
47636 * output.h (output_constant): Delete.
47637 * varasm.c (output_constant): Make private.
47639 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
47641 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
47643 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47645 PR middle-end/59860
47646 * tree.h (fold_builtin_strcat): New prototype.
47647 * builtins.c (fold_builtin_strcat): No longer static. Add len
47648 argument, if non-NULL, don't call c_strlen. Optimize
47649 directly into __builtin_memcpy instead of __builtin_strcpy.
47650 (fold_builtin_2): Adjust fold_builtin_strcat caller.
47651 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
47653 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47655 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47656 for SImode_address_operand operands, having only a REG argument.
47658 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
47660 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
47661 loader name using mbig-endian.
47662 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
47664 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47666 * doc/invoke.texi (-march): Clarify documentation for AArch64.
47667 (-mtune): Likewise.
47670 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
47672 * config/aarch64/aarch64-protos.h
47673 (aarch64_cannot_change_mode_class_ptr): Declare.
47674 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
47675 aarch64_cannot_change_mode_class_ptr): New.
47676 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
47677 backend hook aarch64_cannot_change_mode_class.
47679 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47681 * common/config/aarch64/aarch64-common.c
47682 (aarch64_handle_option): Don't handle any option order logic here.
47683 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
47684 selected_cpu, warn on architecture version mismatch.
47685 (aarch64_override_options): Fix parsing order for option strings.
47687 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47688 Iain Sandoe <iain@codesourcery.com>
47691 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
47692 warning. Amend comment to reflect current functionality.
47694 2014-01-20 Richard Biener <rguenther@suse.de>
47696 PR middle-end/59860
47697 * builtins.c (fold_builtin_strcat): Remove case better handled
47698 by tree-ssa-strlen.c.
47700 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
47702 * config/aarch64/aarch64.opt
47703 (mcpu, march, mtune): Make case-insensitive.
47705 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47708 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47709 if operands[1] is a REG or ZERO_EXTEND of a REG.
47711 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
47713 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
47715 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
47717 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
47718 long non-pic millicode calls.
47720 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47722 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
47724 2014-01-19 Kito Cheng <kito@0xlab.org>
47726 * builtins.c (expand_movstr): Check movstr expand done or fail.
47728 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47729 H.J. Lu <hongjiu.lu@intel.com>
47732 * config/i386/i386.md (*lea<mode>): Zero-extend return register
47733 to DImode for zero-extended addresses.
47735 2014-01-19 Jakub Jelinek <jakub@redhat.com>
47737 PR rtl-optimization/57763
47738 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
47739 on the new indirect jump_insn and increment LABEL_NUSES (label).
47741 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
47745 * config.gcc (x86_archs): New variable.
47746 (x86_64_archs): Likewise.
47747 (x86_cpus): Likewise.
47748 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
47749 --with-arch/--with-cpu= options.
47750 Support --with-arch=/--with-cpu={nehalem,westmere,
47751 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
47753 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47755 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
47756 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
47758 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47760 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
47762 2014-01-18 Jakub Jelinek <jakub@redhat.com>
47765 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
47766 clear cpp_get_options (parse_in)->warn_unused_macros for
47767 ix86_target_macros_internal with cpp_define.
47769 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
47771 * jump.c (delete_related_insns): Keep (use (insn))s.
47772 * reorg.c (redundant_insn): Check for barriers too.
47774 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47776 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
47778 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
47780 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
47781 call to $$dyncall when TARGET_LONG_CALLS is true.
47783 2014-01-17 Jeff Law <law@redhat.com>
47785 * ree.c (combine_set_extension): Temporarily disable test for
47786 changing number of hard registers.
47788 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47790 PR middle-end/58125
47791 * ipa-inline-analysis.c (inline_free_summary):
47792 Do not free summary of aliases.
47794 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47796 PR middle-end/59706
47797 * gimplify.c (gimplify_expr): Use create_tmp_var
47798 instead of create_tmp_var_raw. If cond doesn't have
47799 integral type, don't add the IFN_ANNOTATE builtin at all.
47801 2014-01-17 Martin Jambor <mjambor@suse.cz>
47804 * ipa-cp.c (prev_edge_clone): New variable.
47805 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
47806 Also resize prev_edge_clone vector.
47807 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
47808 (ipcp_edge_removal_hook): New function.
47809 (ipcp_driver): Register ipcp_edge_removal_hook.
47811 2014-01-17 Andrew Pinski <apinski@cavium.com>
47812 Steve Ellcey <sellcey@mips.com>
47815 * config/mips/mips.c (mips_print_operand): Check operand mode instead
47818 2014-01-17 Jeff Law <law@redhat.com>
47820 PR middle-end/57904
47821 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
47822 so that pass_ccp runs first.
47824 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47826 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
47827 (ix86_adjust_cost): Use !TARGET_XXX.
47828 (do_reorder_for_imul): Likewise.
47829 (swap_top_of_ready_list): Likewise.
47830 (ix86_sched_reorder): Likewise.
47832 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47834 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
47835 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
47836 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
47837 (intel_memset): New. Duplicate slm_memset.
47838 (intel_cost): New. Duplicate slm_cost.
47839 (m_INTEL): New macro.
47840 (processor_target_table): Add "intel".
47841 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
47842 with PROCESSOR_INTEL for "intel".
47843 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
47844 PROCESSOR_SILVERMONT.
47845 (ix86_issue_rate): Likewise.
47846 (ix86_adjust_cost): Likewise.
47847 (ia32_multipass_dfa_lookahead): Likewise.
47848 (swap_top_of_ready_list): Likewise.
47849 (ix86_sched_reorder): Likewise.
47850 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
47851 instead of TARGET_OPT_AGU.
47852 * config/i386/i386.h (TARGET_INTEL): New.
47853 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
47854 (processor_type): Add PROCESSOR_INTEL.
47855 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
47856 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
47858 2014-01-17 Marek Polacek <polacek@redhat.com>
47861 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
47864 2014-01-17 Richard Biener <rguenther@suse.de>
47866 PR tree-optimization/46590
47867 * opts.c (default_options_table): Add entries for
47868 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
47869 all enabled at -O1 but not for -Og.
47870 * common.opt (fbranch-count-reg): Remove Init(1).
47871 (fmove-loop-invariants): Likewise.
47872 (ftree-pta): Likewise.
47874 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47876 * config/i386/i386.c (ix86_data_alignment): For compatibility with
47877 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
47878 decls to at least the GCC 4.8 used alignments.
47881 * tree-nested.c (convert_nonlocal_reference_stmt,
47882 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
47883 of GIMPLE_BIND stmts, adjust associated decls.
47885 2014-01-17 Richard Biener <rguenther@suse.de>
47887 PR tree-optimization/46590
47888 * vec.h (vec<>::bseach): New member function implementing
47889 binary search according to C89 bsearch.
47890 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
47891 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
47892 bitmap pointer again. Make accesses_in_loop a flat array.
47893 (mem_ref_obstack): New global.
47894 (outermost_indep_loop): Adjust for mem_ref->stored changes.
47895 (mark_ref_stored): Likewise.
47896 (ref_indep_loop_p_2): Likewise.
47897 (set_ref_stored_in_loop): New helper function.
47898 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
47899 (memref_free): Adjust.
47900 (record_mem_ref_loc): Simplify.
47901 (gather_mem_refs_stmt): Adjust.
47902 (sort_locs_in_loop_postorder_cmp): New function.
47903 (analyze_memory_references): Sort accesses_in_loop after
47904 loop postorder number.
47905 (find_ref_loc_in_loop_cmp): New function.
47906 (for_all_locs_in_loop): Find relevant cluster of locs in
47907 accesses_in_loop and iterate without recursion.
47908 (execute_sm): Avoid uninit warning.
47909 (struct ref_always_accessed): Simplify.
47910 (ref_always_accessed::operator ()): Likewise.
47911 (ref_always_accessed_p): Likewise.
47912 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
47913 loop postorder numbers here.
47914 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
47917 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47920 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
47921 on decls for which assemble_alias has been called.
47923 2014-01-17 Nick Clifton <nickc@redhat.com>
47925 * config/msp430/msp430.opt: (mcpu): New option.
47926 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
47927 (msp430_option_override): Parse target_cpu. If the MCU name
47928 matches a generic string, clear target_mcu.
47929 (msp430_attr): Allow numeric interrupt values up to 63.
47930 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
47931 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
47933 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
47935 * config/msp430/msp430.md (popm): Use %J rather than %I.
47936 (addsi3): Use msp430_nonimmediate_operand for operand 2.
47937 (addhi_cy_i): Use immediate_operand for operand 2.
47938 * doc/invoke.texi: Document -mcpu option.
47940 2014-01-17 Richard Biener <rguenther@suse.de>
47942 PR rtl-optimization/38518
47943 * df.h (df_analyze_loop): Declare.
47944 * df-core.c: Include cfgloop.h.
47945 (df_analyze_1): Split out main part of df_analyze.
47946 (df_analyze): Adjust.
47947 (loop_inverted_post_order_compute): New function.
47948 (loop_post_order_compute): Likewise.
47949 (df_analyze_loop): New function avoiding whole-function
47950 postorder computes.
47951 * loop-invariant.c (find_defs): Use df_analyze_loop.
47952 (find_invariants): Adjust.
47953 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
47955 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
47957 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
47958 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
47960 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
47962 * ipa-ref.c (ipa_remove_stmt_references): Fix references
47963 traversal when removing references.
47965 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
47968 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
47970 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
47972 PR middle-end/56791
47973 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
47974 pushing a reload for an autoinc when we had previously reloaded an
47975 inner part of the address.
47977 2014-01-16 Jakub Jelinek <jakub@redhat.com>
47979 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
47981 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
47982 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
47983 when not giving up or versioning for alias only because of
47985 (vect_analyze_data_ref_dependences): Set to true.
47986 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
47988 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
47989 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
47992 PR middle-end/58344
47993 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
47996 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
47997 operand 0 predicate for gathers, use a new pseudo as subtarget.
47999 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48001 PR middle-end/59609
48002 * lra-constraints.c (process_alt_operands): Add printing debug info.
48003 Check absence of input/output reloads for matched operands too.
48005 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48007 PR rtl-optimization/59835
48008 * ira.c (ira_init_register_move_cost): Increase cost for
48011 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
48013 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
48015 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
48018 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
48019 non-register objects. Use gen_(high/low)part more consistently.
48022 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
48025 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
48026 endian support, remove tests for WORDS_BIG_ENDIAN.
48027 (p8_mfvsrd_3_<mode>): Likewise.
48028 (reload_gpr_from_vsx<mode>): Likewise.
48029 (reload_gpr_from_vsxsf): Likewise.
48030 (p8_mfvsrd_4_disf): Likewise.
48032 2014-01-16 Richard Biener <rguenther@suse.de>
48034 PR rtl-optimization/46590
48035 * lcm.c (compute_antinout_edge): Use postorder iteration.
48036 (compute_laterin): Use inverted postorder iteration.
48038 2014-01-16 Nick Clifton <nickc@redhat.com>
48040 PR middle-end/28865
48041 * varasm.c (output_constant): Return the number of bytes actually
48043 (output_constructor_array_range): Update the field size with the
48044 number of bytes emitted by output_constant.
48045 (output_constructor_regular_field): Likewise. Also do not
48046 complain if the total number of bytes emitted is now greater
48047 than the expected fieldpos.
48048 * output.h (output_constant): Update prototype and descriptive comment.
48050 2014-01-16 Marek Polacek <polacek@redhat.com>
48052 PR middle-end/59827
48053 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
48054 it is error_mark_node.
48056 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
48058 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
48059 VALID_AVX256_REG_OR_OI_MODE.
48061 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
48063 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
48064 current procedure should be profiled.
48066 2014-01-15 Andrew Pinski <apinski@cavium.com>
48068 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
48069 of moving from/to the STACK_REG register class.
48071 2014-01-15 Richard Henderson <rth@redhat.com>
48074 * reginfo.c (global_regs_decl): Globalize.
48075 * rtl.h (global_regs_decl): Declare.
48076 * ira.c (do_reload): Diagnose frame_pointer_needed and it
48077 reserved via global_regs.
48079 2014-01-15 Teresa Johnson <tejohnson@google.com>
48081 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
48083 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
48085 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
48086 and vmulosh rather than call gen_vec_widen_smult_*.
48087 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
48088 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
48089 (vec_widen_smult_even_v16qi): Likewise.
48090 (vec_widen_umult_even_v8hi): Likewise.
48091 (vec_widen_smult_even_v8hi): Likewise.
48092 (vec_widen_umult_odd_v16qi): Likewise.
48093 (vec_widen_smult_odd_v16qi): Likewise.
48094 (vec_widen_umult_odd_v8hi): Likewise.
48095 (vec_widen_smult_odd_v8hi): Likewise.
48096 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
48097 vmuloub rather than call gen_vec_widen_umult_*.
48098 (vec_widen_umult_lo_v16qi): Likewise.
48099 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
48100 vmulosb rather than call gen_vec_widen_smult_*.
48101 (vec_widen_smult_lo_v16qi): Likewise.
48102 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
48103 rather than call gen_vec_widen_umult_*.
48104 (vec_widen_umult_lo_v8hi): Likewise.
48105 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
48106 rather than call gen_vec_widen_smult_*.
48107 (vec_widen_smult_lo_v8hi): Likewise.
48109 2014-01-15 Jeff Law <law@redhat.com>
48111 PR tree-optimization/59747
48112 * ree.c (find_and_remove_re): Properly handle case where a second
48113 eliminated extension requires widening a copy created for elimination
48114 of a prior extension.
48115 (combine_set_extension): Ensure that the number of hard regs needed
48116 for a destination register does not change when we widen it.
48118 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
48120 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
48121 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
48122 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
48123 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
48124 (avr-*-rtems*): Likewise.
48125 (bfin*-rtems*): Likewise.
48126 (moxie-*-rtems*): Likewise.
48127 (h8300-*-rtems*): Likewise.
48128 (i[34567]86-*-rtems*): Likewise.
48129 (lm32-*-rtems*): Likewise.
48130 (m32r-*-rtems*): Likewise.
48131 (m68k-*-rtems*): Likewise.
48132 (microblaze*-*-rtems*): Likewise.
48133 (mips*-*-rtems*): Likewise.
48134 (powerpc-*-rtems*): Likewise.
48135 (sh-*-rtems*): Likewise.
48136 (sparc-*-rtems*): Likewise.
48137 (sparc64-*-rtems*): Likewise.
48138 (v850-*-rtems*): Likewise.
48139 (m32c-*-rtems*): Likewise.
48141 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
48143 PR rtl-optimization/59511
48144 * ira.c (ira_init_register_move_cost): Use memory costs for some
48145 cases of register move cost calculations.
48146 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
48147 instead of BB frequency.
48148 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
48149 * lra-assigns.c (find_hard_regno_for): Ditto.
48151 2014-01-15 Richard Biener <rguenther@suse.de>
48153 PR tree-optimization/59822
48154 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
48155 (vectorizable_load): Use it to hoist defs of uses of invariant
48156 loads out of the loop.
48158 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
48159 Kugan Vivekanandarajah <kuganv@linaro.org>
48162 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
48165 2014-01-15 Richard Biener <rguenther@suse.de>
48167 PR rtl-optimization/59802
48168 * lcm.c (compute_available): Use inverted postorder to seed
48169 the initial worklist.
48171 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48174 * config/s390/s390.c (s390_preferred_reload_class): Don't return
48175 ADDR_REGS for invalid symrefs in non-PIC code.
48177 2014-01-15 Jakub Jelinek <jakub@redhat.com>
48180 * builtins.c (determine_block_size): Initialize *probable_max_size
48181 even if len_rtx is CONST_INT.
48183 2014-01-14 Andrew Pinski <apinski@cavium.com>
48185 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
48186 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
48187 (cortexa53_tunings): Likewise.
48188 (aarch64_sched_issue_rate): New function.
48189 (TARGET_SCHED_ISSUE_RATE): Define.
48191 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48193 * ira-costs.c (find_costs_and_classes): Add missed
48194 ira_init_register_move_cost_if_necessary.
48196 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48199 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
48201 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
48204 * config/i386/i386.c (type_natural_mode): Add a bool parameter
48205 to indicate if type is used for function return value. Warn ABI
48206 change if the vector mode isn't available for function return value.
48207 (ix86_function_arg_advance): Pass false to type_natural_mode.
48208 (ix86_function_arg): Likewise.
48209 (ix86_gimplify_va_arg): Likewise.
48210 (function_arg_32): Don't warn ABI change.
48211 (ix86_function_value): Pass true to type_natural_mode.
48212 (ix86_return_in_memory): Likewise.
48213 (ix86_struct_value_rtx): Removed.
48214 (TARGET_STRUCT_VALUE_RTX): Likewise.
48216 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
48218 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
48219 converting a conditional jump into a conditional return.
48221 2014-01-14 Richard Biener <rguenther@suse.de>
48223 PR tree-optimization/58921
48224 PR tree-optimization/59006
48225 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
48226 hoisting invariant stmts.
48227 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
48228 invariant loads on the preheader edge if possible.
48230 2014-01-14 Joey Ye <joey.ye@arm.com>
48232 * doc/plugin.texi (Building GCC plugins): Update to C++.
48234 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
48236 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
48237 (_mm_rcp28_round_ss): Ditto.
48238 (_mm_rsqrt28_round_sd): Ditto.
48239 (_mm_rsqrt28_round_ss): Ditto.
48240 (_mm_rcp28_sd): Ditto.
48241 (_mm_rcp28_ss): Ditto.
48242 (_mm_rsqrt28_sd): Ditto.
48243 (_mm_rsqrt28_ss): Ditto.
48244 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
48245 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
48246 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
48247 (IX86_BUILTIN_RCP28SD): Ditto.
48248 (IX86_BUILTIN_RCP28SS): Ditto.
48249 (IX86_BUILTIN_RSQRT28SD): Ditto.
48250 (IX86_BUILTIN_RSQRT28SS): Ditto.
48251 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
48252 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
48253 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
48254 (ix86_expand_special_args_builtin): Expand new FTYPE.
48255 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
48256 (srcp14<mode>): Make insn unary.
48257 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
48258 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
48259 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
48260 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
48261 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
48262 Fix rounding: make it SAE only.
48263 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
48265 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
48267 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
48268 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
48269 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
48270 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
48271 (round_saeonly_mask_scalar_operand4): Ditto.
48272 (round_saeonly_mask_scalar_op3): Ditto.
48273 (round_saeonly_mask_scalar_op4): Ditto.
48275 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48277 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
48278 Implement -maltivec=be for vec_insert and vec_extract.
48280 2014-01-10 DJ Delorie <dj@redhat.com>
48282 * config/msp430/msp430.md (call_internal): Don't allow memory
48283 references with SP as the base register.
48284 (call_value_internal): Likewise.
48285 * config/msp430/constraints.md (Yc): New. For memory references
48286 that don't use SP as a base register.
48288 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
48289 "an integer without a # prefix"
48290 * config/msp430/msp430.md (epilogue_helper): Use it.
48292 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48295 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
48296 AVX512F gather builtins.
48297 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
48298 on gather decls with INTEGER_TYPE masktype.
48299 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
48300 directly into the builtin rather than hoisting it before loop.
48302 PR tree-optimization/59387
48303 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
48304 (scev_const_prop): If folded_casts and type has undefined overflow,
48305 use force_gimple_operand instead of force_gimple_operand_gsi and
48306 for each added stmt if it is assign with
48307 arith_code_with_undefined_signed_overflow, call
48308 rewrite_to_defined_overflow.
48309 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
48310 gimple-fold.h instead.
48311 (arith_code_with_undefined_signed_overflow,
48312 rewrite_to_defined_overflow): Moved to ...
48313 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
48314 rewrite_to_defined_overflow): ... here. No longer static.
48315 Include gimplify-me.h.
48316 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
48317 rewrite_to_defined_overflow): New prototypes.
48319 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48321 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
48323 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
48325 * builtins.c (get_object_alignment_2): Minor tweak.
48326 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
48328 2014-01-13 Christian Bruel <christian.bruel@st.com>
48330 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
48331 optimized non constant lengths.
48333 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48336 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
48337 load as __atomic_load_N if possible.
48339 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48341 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
48343 (rs6000_expand_builtin): Adjust call.
48345 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48348 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
48349 * config/rs6000/rs6000.c: Include target-globals.h.
48350 (rs6000_set_current_function): Instead of doing target_reinit
48351 unconditionally, use save_target_globals_default_opts and
48352 restore_target_globals.
48354 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
48356 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
48357 (rs6000_expand_builtin): Handle mffs and mtfsf.
48358 (rs6000_init_builtins): Define mffs and mtfsf.
48359 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
48360 (rs6000_mffs): New pattern.
48361 (rs6000_mtfsf): New pattern.
48363 2014-01-11 Bin Cheng <bin.cheng@arm.com>
48365 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
48366 Start narrowing with START. Apply candidate-use pair
48367 and check overall cost in narrowing.
48368 (iv_ca_prune): Pass new argument.
48370 2014-01-10 Jeff Law <law@redhat.com>
48372 PR middle-end/59743
48373 * ree.c (combine_reaching_defs): Ensure the defining statement
48374 occurs before the extension when optimizing extensions with
48375 different source and destination hard registers.
48377 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48380 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
48381 vtables into the type inheritance graph.
48383 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48385 PR rtl-optimization/59754
48386 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
48387 modes in the REGNO != REGNO case.
48389 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48391 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
48393 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48395 PR tree-optimization/59745
48396 * tree-predcom.c (tree_predictive_commoning_loop): Call
48397 free_affine_expand_cache if giving up because components is NULL.
48399 * target-globals.c (save_target_globals): Allocate < 4KB structs using
48400 GC in payload of target_globals struct instead of allocating them on
48401 the heap and the larger structs separately using GC.
48402 * target-globals.h (struct target_globals): Make regs, hard_regs,
48403 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
48404 of GTY((skip)) and change type to void *.
48405 (reset_target_globals): Cast loads from those fields to corresponding
48408 2014-01-10 Steve Ellcey <sellcey@mips.com>
48411 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
48412 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
48413 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
48415 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
48418 * aarch64-modes.def (CC_Zmode): New flags mode.
48419 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
48420 represents an equality.
48421 (aarch64_get_condition_code): Handle CC_Zmode.
48422 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
48424 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48426 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
48427 extraction in good case.
48429 2014-01-10 Richard Biener <rguenther@suse.de>
48431 PR tree-optimization/59374
48432 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
48433 checking after SLP discovery. Mark stmts not participating
48434 in any SLP instance properly.
48436 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48438 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
48439 when handling a SET rtx.
48441 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48443 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
48444 (cortex-a57): Likewise.
48445 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
48447 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48449 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
48450 non-iwmmxt builtins.
48452 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48456 * ipa-devirt.c record_target_from_binfo): Take as argument
48457 stack of binfos and lookup matching one for virtual inheritance.
48458 (possible_polymorphic_call_targets_1): Update.
48460 2014-01-10 Huacai Chen <chenhc@lemote.com>
48462 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
48463 kernel strings for Loongson-2E/2F/3A.
48465 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48467 PR middle-end/59670
48468 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
48469 is_gimple_call before calling gimple_call_internal_p.
48471 2014-01-09 Steve Ellcey <sellcey@mips.com>
48473 * Makefile.in (TREE_FLOW_H): Remove.
48474 (TREE_SSA_H): Add file names from tree-flow.h.
48475 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
48476 * tree.h: Remove tree-flow.h reference.
48477 * hash-table.h: Remove tree-flow.h reference.
48478 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
48479 reference with tree-ssa-loop.h.
48481 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48483 * doc/invoke.texi: Add -maltivec={be,le} options, and document
48484 default element-order behavior for -maltivec.
48485 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
48486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
48487 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
48488 when targeting big endian, at least for now.
48489 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
48491 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48493 PR middle-end/47735
48494 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
48495 var satisfies use_register_for_decl, just take into account type
48496 alignment, rather than decl alignment.
48498 PR tree-optimization/59622
48499 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
48500 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
48501 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
48502 Don't devirtualize for inplace at all. For targets.length () == 1,
48503 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
48505 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48507 * config/i386/i386.md (cpu): Remove the unused btver1.
48509 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48511 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
48513 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48516 * tree-core.h (struct target_globals): New forward declaration.
48517 (struct tree_target_option): Add globals field.
48518 * tree.h (TREE_TARGET_GLOBALS): Define.
48519 (prepare_target_option_nodes_for_pch): New prototype.
48520 * target-globals.h (struct target_globals): Define even if
48521 !SWITCHABLE_TARGET.
48522 * tree.c (prepare_target_option_node_for_pch,
48523 prepare_target_option_nodes_for_pch): New functions.
48524 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
48525 * config/i386/i386.c: Include target-globals.h.
48526 (ix86_set_current_function): Instead of doing target_reinit
48527 unconditionally, use save_target_globals_default_opts and
48528 restore_target_globals.
48530 2014-01-09 Richard Biener <rguenther@suse.de>
48532 PR tree-optimization/59715
48533 * tree-cfg.h (split_critical_edges): Declare.
48534 * tree-cfg.c (split_critical_edges): Export.
48535 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
48537 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
48539 * cfgexpand.c (expand_stack_vars): Optionally disable
48540 asan stack protection.
48541 (expand_used_vars): Likewise.
48542 (partition_stack_vars): Likewise.
48543 * asan.c (asan_emit_stack_protection): Optionally disable
48544 after return stack usage.
48545 (instrument_derefs): Optionally disable memory access instrumentation.
48546 (instrument_builtin_call): Likewise.
48547 (instrument_strlen_call): Likewise.
48548 (asan_protect_global): Optionally disable global variables protection.
48549 * doc/invoke.texi: Added doc for new options.
48550 * params.def: Added new options.
48551 * params.h: Likewise.
48553 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48555 PR rtl-optimization/59724
48556 * ifcvt.c (cond_exec_process_if_block): Don't call
48557 flow_find_head_matching_sequence with 0 longest_match.
48558 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
48559 non-active insns if !stop_after.
48560 (try_head_merge_bb): Revert 2014-01-07 changes.
48562 2014-01-08 Jeff Law <law@redhat.com>
48564 * ree.c (get_sub_rtx): New function, extracted from...
48565 (merge_def_and_ext): Here.
48566 (combine_reaching_defs): Use get_sub_rtx.
48568 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
48570 * cgraph.h (varpool_variable_node): Do not choke on null node.
48572 2014-01-08 Catherine Moore <clm@codesourcery.com>
48574 * config/mips/mips.md (simple_return): Attempt to use JRC
48576 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
48578 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48580 PR rtl-optimization/59137
48581 * reorg.c (steal_delay_list_from_target): Call update_block for
48583 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
48585 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48587 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
48588 two duplicate entries.
48590 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48593 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
48595 * config/mips/mips.c (mips_truncated_op_cost): New function.
48596 (mips_rtx_costs): Adjust test for BADDU.
48597 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
48599 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
48601 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
48602 (*baddu_si): ...this new pattern.
48604 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48607 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
48609 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
48611 PR middle-end/57748
48612 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
48614 (expand_expr, expand_normal): Adjust.
48615 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
48616 inner_reference_p. Use inner_reference_p to expand inner references.
48617 (store_expr): Adjust.
48618 * cfgexpand.c (expand_call_stmt): Adjust.
48620 2014-01-08 Rong Xu <xur@google.com>
48622 * gcov-io.c (gcov_var): Move from gcov-io.h.
48623 (gcov_position): Ditto.
48624 (gcov_is_error): Ditto.
48625 (gcov_rewrite): Ditto.
48626 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
48627 only part to libgcc/libgcov.h.
48629 2014-01-08 Marek Polacek <polacek@redhat.com>
48631 PR middle-end/59669
48632 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
48634 2014-01-08 Marek Polacek <polacek@redhat.com>
48637 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
48639 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48641 PR rtl-optimization/59649
48642 * stor-layout.c (get_mode_bounds): For BImode return
48643 0 and STORE_FLAG_VALUE.
48645 2014-01-08 Richard Biener <rguenther@suse.de>
48647 PR middle-end/59630
48648 * gimple.h (is_gimple_builtin_call): Remove.
48649 (gimple_builtin_call_types_compatible_p): New.
48650 (gimple_call_builtin_p): New overload.
48651 * gimple.c (is_gimple_builtin_call): Remove.
48652 (validate_call): Rename to ...
48653 (gimple_builtin_call_types_compatible_p): ... this and export. Also
48654 check return types.
48655 (validate_type): New static function.
48656 (gimple_call_builtin_p): New overload and adjust.
48657 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
48658 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
48659 (gimple_fold_stmt_to_constant_1): Likewise.
48660 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
48662 2014-01-08 Richard Biener <rguenther@suse.de>
48664 PR middle-end/59471
48665 * gimplify.c (gimplify_expr): Gimplify register-register type
48666 VIEW_CONVERT_EXPRs to separate stmts.
48668 2014-01-07 Jeff Law <law@redhat.com>
48670 PR middle-end/53623
48671 * ree.c (combine_set_extension): Handle case where source
48672 and destination registers in an extension insn are different.
48673 (combine_reaching_defs): Allow source and destination registers
48674 in extension to be different under limited circumstances.
48675 (add_removable_extension): Remove restriction that the
48676 source and destination registers in the extension are the same.
48677 (find_and_remove_re): Emit a copy from the extension's
48678 destination to its source after the defining insn if
48679 the source and destination registers are different.
48681 PR middle-end/59285
48682 * ifcvt.c (merge_if_block): If we are merging a block with more than
48683 one successor with a block with no successors, remove any BARRIER
48684 after the second block.
48686 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
48688 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
48690 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
48693 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
48694 for 14-bit register offsets when INT14_OK_STRICT is false.
48696 2014-01-07 Roland Stigge <stigge@antcom.de>
48697 Michael Meissner <meissner@linux.vnet.ibm.com>
48700 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
48701 Only check TFmode for SPE constants. Don't check TImode or TDmode.
48703 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
48705 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
48708 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
48710 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
48711 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
48712 rtx is const0_rtx or not.
48714 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
48717 * target-globals.c (save_target_globals): Remove this_fn_optab
48719 * toplev.c: Include optabs.h.
48720 (target_reinit): Temporarily restore the global options if another
48721 set of options are in force.
48723 2014-01-07 Jakub Jelinek <jakub@redhat.com>
48725 PR rtl-optimization/58668
48726 * cfgcleanup.c (flow_find_cross_jump): Don't count
48727 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
48728 to determine what is counted.
48729 (flow_find_head_matching_sequence): Use active_insn_p to determine
48731 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
48733 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
48734 determine what is counted.
48736 PR tree-optimization/59643
48737 * tree-predcom.c (split_data_refs_to_components): If one dr is
48738 read and one write, determine_offset fails and the write isn't
48739 in the bad component, just put the read into the bad component.
48741 2014-01-07 Mike Stump <mikestump@comcast.net>
48742 Jakub Jelinek <jakub@redhat.com>
48745 * tree-core.h (struct tree_optimization_option): Change optabs
48746 type from unsigned char * to void *.
48747 * optabs.c (init_tree_optimization_optabs): Adjust
48748 TREE_OPTIMIZATION_OPTABS initialization.
48750 2014-01-06 Jakub Jelinek <jakub@redhat.com>
48753 * config/i386/i386.h (struct machine_function): Add
48754 no_drap_save_restore field.
48755 * config/i386/i386.c (ix86_save_reg): Use
48756 !cfun->machine->no_drap_save_restore instead of
48757 crtl->stack_realign_needed.
48758 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
48759 this function clears frame_pointer_needed. Set
48760 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
48761 and DRAP reg is needed.
48763 2014-01-06 Marek Polacek <polacek@redhat.com>
48766 * doc/implement-c.texi: Mention that other integer types are
48767 permitted as bit-field types in strictly conforming mode.
48769 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
48771 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
48772 is newly allocated.
48774 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
48776 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
48778 2014-01-06 Martin Jambor <mjambor@suse.cz>
48781 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
48783 * ipa-prop.c (ipa_print_node_params): Fix indentation.
48785 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
48789 * var-tracking.c (add_stores): Preserve the value of the source even if
48790 we don't record the store.
48792 2014-01-06 Terry Guo <terry.guo@arm.com>
48794 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
48796 2014-01-05 Iain Sandoe <iain@codesourcery.com>
48799 * config/darwin.c (darwin_function_section): Adjust return values to
48800 correspond to optimisation changes made in r206070.
48802 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
48804 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
48805 from prefetch_block tune setting.
48806 (nocona_cost): Correct size of prefetch block to 64.
48808 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
48810 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
48811 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
48812 used to save the static chain register in the computation of the offset
48813 from which the FP registers need to be restored.
48815 2014-01-04 Jakub Jelinek <jakub@redhat.com>
48817 PR tree-optimization/59519
48818 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
48819 ICE if get_current_def (current_new_name) is already non-NULL, as long
48820 as it is a phi result of some other phi in *new_exit_bb that has
48823 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
48824 or vmovdqu* for misaligned_operand.
48825 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
48826 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
48827 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
48828 aligned_mem for AVX512F masked aligned load and store builtins and for
48829 non-temporal moves.
48831 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
48833 PR tree-optimization/59651
48834 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
48835 Address range for negative step should be added by TYPE_SIZE_UNIT.
48837 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
48839 * config/m68k/m68k.c (handle_move_double): Handle pushes with
48840 overlapping registers also for registers other than the stack pointer.
48842 2014-01-03 Marek Polacek <polacek@redhat.com>
48845 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
48848 2014-01-03 Jakub Jelinek <jakub@redhat.com>
48851 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
48854 * config/i386/i386.md (MODE_SIZE): New mode attribute.
48855 (push splitter): Use <P:MODE_SIZE> instead of
48856 GET_MODE_SIZE (<P:MODE>mode).
48857 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
48858 (mov -1, reg peephole2): Likewise.
48859 * config/i386/sse.md (*mov<mode>_internal,
48860 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
48861 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
48862 *<code><mode>3, *andnot<mode>3<mask_name>,
48863 <mask_codefor><code><mode>3<mask_name>): Likewise.
48864 * config/i386/subst.md (mask_mode512bit_condition,
48865 sd_mask_mode512bit_condition): Likewise.
48867 2014-01-02 Xinliang David Li <davidxl@google.com>
48869 PR tree-optimization/59303
48870 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
48871 (dump_predicates): Better output format.
48872 (pred_equal_p): New function.
48873 (is_neq_relop_p): Ditto.
48874 (is_neq_zero_form_p): Ditto.
48875 (pred_expr_equal_p): Ditto.
48876 (pred_neg_p): Ditto.
48877 (simplify_pred): Ditto.
48878 (simplify_preds_2): Ditto.
48879 (simplify_preds_3): Ditto.
48880 (simplify_preds_4): Ditto.
48881 (simplify_preds): Ditto.
48882 (push_pred): Ditto.
48883 (push_to_worklist): Ditto.
48884 (get_pred_info_from_cmp): Ditto.
48885 (is_degenerated_phi): Ditto.
48886 (normalize_one_pred_1): Ditto.
48887 (normalize_one_pred): Ditto.
48888 (normalize_one_pred_chain): Ditto.
48889 (normalize_preds): Ditto.
48890 (normalize_cond_1): Remove function.
48891 (normalize_cond): Ditto.
48892 (is_gcond_subset_of): Ditto.
48893 (is_subset_of_any): Ditto.
48894 (is_or_set_subset_of): Ditto.
48895 (is_and_set_subset_of): Ditto.
48896 (is_norm_cond_subset_of): Ditto.
48897 (pred_chain_length_cmp): Ditto.
48898 (convert_control_dep_chain_into_preds): Type change.
48899 (find_predicates): Ditto.
48900 (find_def_preds): Ditto.
48901 (destroy_predicates_vecs): Ditto.
48902 (find_matching_predicates_in_rest_chains): Ditto.
48903 (use_pred_not_overlap_with_undef_path_pred): Ditto.
48904 (is_pred_expr_subset): Ditto.
48905 (is_pred_chain_subset_of): Ditto.
48906 (is_included_in): Ditto.
48907 (is_superset_of): Ditto.
48909 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48911 Update copyright years.
48913 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48915 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
48916 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
48917 config/arc/arc.md, config/arc/arc.opt,
48918 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
48919 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
48920 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
48921 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
48922 config/linux-protos.h, config/linux.c, config/winnt-c.c,
48923 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
48924 vtable-verify.c, vtable-verify.h: Use the standard form for the
48927 2014-01-02 Tobias Burnus <burnus@net-b.de>
48929 * gcc.c (process_command): Update copyright notice dates.
48930 * gcov-dump.c: Ditto.
48932 * doc/cpp.texi: Bump @copying's copyright year.
48933 * doc/cppinternals.texi: Ditto.
48934 * doc/gcc.texi: Ditto.
48935 * doc/gccint.texi: Ditto.
48936 * doc/gcov.texi: Ditto.
48937 * doc/install.texi: Ditto.
48938 * doc/invoke.texi: Ditto.
48940 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
48942 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
48944 2014-01-01 Jakub Jelinek <jakub@redhat.com>
48946 * config/i386/sse.md (*mov<mode>_internal): Guard
48947 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
48949 PR rtl-optimization/59647
48950 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
48951 new_rtx into UNSIGNED_FLOAT rtxes.
48953 Copyright (C) 2014 Free Software Foundation, Inc.
48955 Copying and distribution of this file, with or without modification,
48956 are permitted in any medium without royalty provided the copyright
48957 notice and this notice are preserved.