1 2014-12-19 Xingxing Pan <xxingpan@marvell.com>
3 * config/arm/cortex-a9-neon.md (cortex_a9_neon_vmov): Change
4 reservation to cortex_a9_neon_dp.
6 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
8 * config/sh/sh.c (prepare_move_operands): Split HI/QImode load/store
9 to two move insns via r0.
11 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
13 * config/sh/predicates.md (arith_or_int_operand): New predicate.
14 * config/sh/sh.md (addsi3): Use arith_or_int_operand for operand 2.
15 Return fail if operands[0] and operands[1] are overlap when
16 operands[2] is integer constant.
17 (*addsi3_compact): Make it define_insn_and_split which splits
18 reg0 := reg1 + constant to reg0 = constant and reg0 := reg0 + reg1.
20 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
22 * config/sh/sh-protos.h (sh_movsf_ie_ra_split_p): Declare.
23 * config/sh/sh.c (sh_movsf_ie_ra_split_p): New function.
24 * config/sh/sh.md (movsi_ie): Use "mr" constraint for the 8-th
25 altarnative of operand 0.
26 (movesf_ie): Use "X" constraint instead of "Bsc".
27 (movsf_ie_ra): New insn_and_split.
28 (movsf): Use movsfie_ra when lra_in_progress is true.
30 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
32 * config/sh/predicates.md (general_movsrc_operand): Allow only
33 valid plus address expressions.
34 (general_movdst_operand): Likewise.
35 (t_reg_operand): Allow (zero_extend (reg t)).
36 * config/sh/sh-protos.h (sh_hard_regno_caller_save_mode): Declare.
37 * config/sh/sh.c (sh_hard_regno_caller_save_mode): New function.
38 (sh_secondary_reload): Return NO_REGS instead of FPUL_REGS in one
40 * config/sh/sh.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
41 * config/sh/sh.md (untyped_call): Clobber function value
42 registers before call.
44 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
46 * config/sh/sh.c (sh_lra_p): New function.
47 (TARGET_LRA_P): Define.
48 (sh_legitimize_reload_address): Return false if sh_lra_p is true.
49 * config/sh/sh.opt (mlra): New option.
51 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
53 * lra-constraints.c (process_address_1): Try if target can split
54 displacement with targetm.legitimize_address_displacement.
55 * target.def (legitimize_address_displacement): New hook.
56 * targhooks.c (default_legitimize_address_displacement): New function.
57 * targhooks.h (default_legitimize_address_displacement): Declare.
58 * config/sh/sh.c (sh_legitimize_address_displacement): New function.
59 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
60 * doc/tm.texi.in (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): New hook.
61 * doc/tm.texi: Regenerate.
63 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
65 * lra-constraints.c (get_equiv): Don't return memory equivalence
66 when targetm.cannot_substitute_mem_equiv_p is true.
67 * target.def (cannot_substitute_mem_equiv_p): New hook.
68 * config/sh/sh.c (sh_cannot_substitute_mem_equiv_p): New function.
69 (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
70 * doc/tm.texi.in (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): New hook.
71 * doc/tm.texi: Regenerate.
73 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
75 * lra-constraints.c (process_address_1): Swap base_term and
76 index_term if INDEX_REG_CLASS is assigned to base_term already
77 when INDEX_REG_CLASS is a single register class.
79 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
81 * lra-constraints.c (lra-constraints.c): Exchange places of sclass
84 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
86 PR rtl-optimization/64291
87 * lra-remat.c (bad_for_rematerialization_p): Add UNPSEC_VLOATILE.
88 (create_cands): Process only output reload insn with potential
91 2014-12-18 H.J. Lu <hongjiu.lu@intel.com>
93 * config/i386/i386.c (ix86_expand_call): Skip setting up RAX
94 register for -mskip-rax-setup when there are no parameters
95 passed in vector registers.
96 * config/i386/i386.opt (mskip-rax-setup): New option.
97 * doc/invoke.texi: Document -mskip-rax-setup.
99 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
101 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): Handle shift
102 by 64 by moving const0_rtx.
103 (aarch64_ushr_simddi): Delete.
105 * config/aarch64/aarch64.md (enum unspec): Delete UNSPEC_USHR64.
107 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
109 * config/aarch64/aarch64.md (enum "unspec"): Remove UNSPEC_SSHR64.
111 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): Change shift
112 amount to 63 if was 64.
113 (aarch64_sshr_simddi): Remove.
115 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
117 * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
119 (aarch64_min_divisions_for_recip_mul): New function.
121 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
123 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
125 * gcc/config/aarch64/aarch64.c (generic_tunings): Add code alignment
127 (cortexa53_tunings): Likewise.
128 (cortexa57_tunings): Likewise.
129 (thunderx_tunings): Likewise.
130 (aarch64_override_options): Use new alignment tunings.
132 2014-12-18 Martin Liska <mliska@suse.cz>
134 PR tree-optimization/64330
135 * ipa-icf.c (sem_variable::parse): Add checking
136 for externally visible symbols and do not introduce
137 an alias for an external declaration.
139 2014-12-18 Jan Hubicka <hubicka@ucw.cz>
142 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
145 2014-12-18 Martin Liska <mliska@suse.cz>
148 * ipa-icf.c (sem_function::merge): Check for
149 decl_binds_to_current_def_p is newly added to merge operation.
151 2014-12-18 Bin Cheng <bin.cheng@arm.com>
153 PR tree-optimization/62178
154 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function.
155 (iv_ca_replace): New function.
156 (try_improve_iv_set): New parameter try_replace_p.
157 Break local optimal fixed-point by calling iv_ca_replace.
158 (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set.
160 2014-12-17 Dehao Chen <dehao@google.com>
162 * auto-profile.c (afdo_annotate_cfg): Invoke update_ssa in the right
164 (auto_profile): Recompute inline summary after processing cgraph node.
166 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
169 * config/sh/sh_treg_combine.cc (is_conditional_insn): New function.
170 (cbranch_trace): Add member rtx* condition_rtx_in_insn, initialize it
171 accordingly in constructor.
172 (cbranch_trace::branch_condition_rtx_ref): New function.
173 (cbranch_trace::branch_condition_rtx): Use branch_condition_rtx_ref.
174 (sh_treg_combine::try_invert_branch_condition): Invert condition rtx
175 in insn using reversed_comparison_code and validate_change instead of
177 (sh_treg_combine::execute): Look for conditional insns in basic blocks
178 in addition to conditional branches.
179 * config/sh/sh.md (*movsicc_div0s): Remove combine patterns.
181 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
184 * config/sh/sh_treg_combine.cc (sh_treg_combine::try_optimize_cbranch):
185 Combine ccreg inversion and cbranch into inverted cbranch.
187 2014-12-17 Vladimir Makarov <vmakarov@redhat.com>
189 * lra-constraints.c (process_alt_operands): Remove non
190 allocatable hard regs when considering
191 ira_prohibited_class_mode_regs.
193 2014-12-17 Jan Hubicka <hubicka@ucw.cz>
195 * sreal.h (sreal::normalize): Implement inline.
196 (sreal::normalize_up): New function.
197 (sreal::normalize_down): New function.
198 * sreal.c (sreal::normalize): Remove.
200 2014-12-17 James Greenhalgh <james.greenhalgh@arm.com>
202 * config/aarch64/aarch64.md (generic_sched): Delete it.
204 2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
206 * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
207 unused argument warning.
209 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
211 * dwarf2out.h (struct array_descr_info): Remove the base_decl field.
212 * dwarf2out.c (enum dw_scalar_form): New.
213 (struct loc_descr_context): New.
214 (add_scalar_info): New.
215 (add_bound_info): Add a context parameter. Use add_scalar_info.
216 (loc_list_from_tree): Add a context parameter. Handle PLACEHOLDER_EXPR
217 nodes for type-related expressions. Likewise for base declarations.
218 (loc_descriptor_from_tree): Add a context parameter.
219 (subrange_type_die): Update calls to add_bound_info.
220 (tls_mem_loc_descriptor): Likewise.
221 (loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
222 parameter. Update calls to loc_list_from_tree.
223 (add_subscript_info): Update calls to add_bound_info.
224 (gen_array_type_die): Update calls to loc_list_from_tree and to
226 (descr_info_loc): Remove.
227 (add_descr_info_field): Remove.
228 (gen_descr_array_type_die): Switch add_descr_info_field calls into
229 add_scalar_info/add_bound_info ones.
230 (gen_subprogram_die): Update calls to loc_list_from_tree.
231 (gen_variable_die): Likewise.
233 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
235 * dwarf2out.c (print_loc_descr): New.
237 (print_attribute): New.
238 (print_loc_descr): New.
239 (print_die): Use print_dw_val.
240 (debug_dwarf_loc_descr): New.
241 * dwarf2out.h (debug_dwarf_loc_descr): New declaration.
243 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
245 * dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
246 even when (dwarf_version < 3 && dwarf_strict).
247 (gen_descr_array_die): Do not output DW_AT_data_locationn,
248 DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
249 attributes when (dwarf_version < 3 && dwarf_strict).
251 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
253 * dwarf2out.h (enum array_descr_ordering): New.
254 (array_descr_dimen): Add a bounds_type structure field.
255 (struct array_descr_info): Add a field to hold index type information
256 and another one to hold ordering information.
257 * dwarf2out.c (gen_type_die_with_usage): Get the main variant before
258 invoking the array descriptor language hook. Initialize the
259 array_descr_info structure before calling the lang-hook.
260 (gen_descr_array_type_die): Use gen_type_die if not processing the main
261 type variant. Replace Fortran-specific code with generic one using
262 this new field. Add a GNAT descriptive type, if any. Output type
263 information for the array bound subrange, if any.
265 2014-12-17 H.J. Lu <hongjiu.lu@intel.com>
266 Jakub Jelinek <jakub@redhat.com>
267 Uros Bizjak <ubizjak@gmail.com>
270 * config/i386/i386-opts.h (ix86_align_data): New enum.
271 * config/i386/i386.c (ix86_data_alignment): Return the ABI
272 alignment value for -malign-data=abi, the cachine line size
273 for -malign-data=cacheline and the older GCC compatible
274 alignment value for for -malign-data=compat.
275 * config/i386/i386.opt (malign-data=): New.
276 * doc/invoke.texi: Document -malign-data=.
278 2014-12-17 Marek Polacek <polacek@redhat.com>
281 * match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
283 2014-12-17 Jakub Jelinek <jakub@redhat.com>
285 PR tree-optimization/64322
286 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
287 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
289 2014-12-17 Tobias Burnus <burnus@net-b.de>
292 * flag-types.h (gfc_init_local_real, gfc_fcoarray,
293 gfc_convert): New enums; moved from fortran/.
295 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
297 * fibonacci_heap.h (min): Return m_data instead of non-existing data.
299 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
301 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
302 return values of const calls as constants.
303 (estimate_function_body_sizes): Expect calls to have false predicates.
305 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
307 * hwint.c (abs_hwi, absu_hwi): Move to ...
308 * hwint.h (abs_hwi, absu_hwi): ... here; make inline.
310 2014-12-16 Marek Polacek <polacek@redhat.com>
313 * match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
314 ((1 << A) & 1) == 0 -> A != 0.
316 2014-12-16 Richard Biener <rguenther@suse.de>
318 * genmatch.c (parser::parser): Initialize capture_ids.
319 (parser::parse_pattern): Properly allocate capture_ids before
320 using them. Set capture_ids to zero when its lifetime is
322 (parser::parse_simplify): Allocate capture_ids only if
325 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
327 * sreal.c: Include math.h later.
329 2014-12-16 Felix Yang <felix.yang@huawei.com>
331 PR rtl-optimization/64240
332 * ddg.c (mark_mem_use): Check *iter instead of *x.
334 2014-12-16 Martin Liska <mliska@suse.cz>
337 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
339 2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
341 * config/i386/i386.c (ix86_address_cost): Add explicit restriction
342 to RTL level for the check for PIC register.
344 2014-12-16 Uros Bizjak <ubizjak@gmail.com>
346 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ...
347 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ...
348 * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here.
350 2014-12-16 Chung-Ju Wu <jasonwucj@gmail.com>
353 * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber
356 2014-12-15 DJ Delorie <dj@redhat.com>
358 * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND.
360 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
363 * tree-streamer.c (preload_common_nodes): Skip preloading
364 of main_identifier_node, pid_type and optimization/option nodes.
366 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
368 PR rtl-optimization/63397
369 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
371 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
372 * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
373 (ira_reg_cost, ira_mem_cost): Ditto.
374 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
375 (calculate_allocation_cost, do_reload): Use the right
376 format for int64_t values.
378 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
380 * sreal.h (to_double): New method.
381 (shift): Do not ICE on 0.
382 * sreal.c: Include math.h
383 (sreal::to_double): New.
385 2014-12-15 Jakub Jelinek <jakub@redhat.com>
387 PR rtl-optimization/64316
388 * simplify-rtx.c (simplify_relational_operation_1): For
389 (eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
390 CONST0_RTX instead of const0_rtx.
392 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
395 * ira.c (rtx_moveable_p): Prevent UNSPEC_VOLATILE moves.
397 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
399 * ira-int.h (ira_prohibited_class_mode_regs): Remove.
400 (struct target_ira_int): Move x_ira_prohibited_class_mode_regs to
402 * ira.h (struct target_ira): ... here.
403 (ira_prohibited_class_mode_regs): Define.
404 * lra-constraints.c (process_alt_operands): Add one more condition
405 to refuse alternative when reload pseudo of given class can not
406 hold value of given mode.
408 2014-12-15 Richard Biener <rguenther@suse.de>
410 PR tree-optimization/64312
411 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
412 vuse_ssa_val as callback to walk_non_aliased_vuses.
413 (vn_reference_lookup): Likewise.
415 2014-12-15 Segher Boessenkool <segher@kernel.crashing.org>
417 * gcc/config/rs6000/rs6000.md (*add>mode>3_imm_dot,
418 *add<mode>3_imm_dot2): Change the constraint for the second
419 alternative for operand 1 from "r" to "b".
421 2014-12-15 Richard Biener <rguenther@suse.de>
423 * vec.h (vec::safe_grow): Guard against a grow to zero size.
425 2014-12-15 Richard Biener <rguenther@suse.de>
428 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
429 fold_binary to compute the constant to multiply with.
431 2014-12-15 Richard Biener <rguenther@suse.de>
434 * cfgloop.c (mark_loop_for_removal): Make safe against multiple
435 invocations on the same loop.
437 2014-12-15 Marek Polacek <polacek@redhat.com>
440 * fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
442 2014-12-15 Renlin Li <renlin.li@arm.com>
444 * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
445 (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes.
447 2014-12-15 Jakub Jelinek <jakub@redhat.com>
450 * tsan.c (instrument_func_entry): Insert __tsan_func_entry
451 call on edge from entry block to single succ instead
452 of after labels of single succ of entry block.
454 2014-12-15 Richard Biener <rguenther@suse.de>
456 PR tree-optimization/64284
457 * tree-ssa-threadupdate.c (duplicate_seme_region): Mark
458 the loop for removal if we copied the loop header.
460 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
463 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
464 * ipa.c (set_writeonly_bit): Track if reference was removed.
465 (ipa_discover_readonly_nonaddressable_vars): Return true if any
466 references was removed.
467 * ipa-reference.c (propagate): Return TODO_remove_functions if
468 reference was removed.
470 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
472 * ipa.c (process_references): Fix conditoinal on flag_optimize
474 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
477 * symtab.c (symbol_table::insert_to_assembler_name_hash
478 symbol_table::unlink_from_assembler_name_hash): Do not ICE when
479 DECL_ASSEMBLER_NAME is NULL.
481 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
483 * cgraphunit.c (analyze_functions): Always analyze targets of aliases.
485 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
488 * tree.c (virtual_method_call_p): Return false when OTR type has
491 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
493 * cgraphunit.c (analyze_functions): Do not analyze extern inline
494 funtions when not optimizing; skip comdat locals.
496 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
498 PR rtl-optimization/64037
499 * combine.c (setup_incoming_promotions): Pass the argument
500 before any promotions happen to promote_function_mode.
502 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
504 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGN): Define as a C statment.
506 2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
509 * lra-constraints.c (process_alt_operands): Refuse alternative
510 when reload pseudo of given class can not hold value of given
513 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
515 * gimple-walk.c (walk_gimple_op) <GIMPLE_OMP_FOR>: Also check
516 intermediate walk_tree results for for_incr.
517 <GIMPLE_OMP_TARGET>: Walk child_fn and data_arg, too.
518 <GIMPLE_OMP_CRITICAL, GIMPLE_OMP_ATOMIC_STORE>: Pretty printing.
520 2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
523 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
525 * double-int.c (div_and_round_double): Fix handling of unsigned
526 cases. Use same rounding approach as wide-int.h.
528 2014-12-12 Marek Polacek <polacek@redhat.com>
531 * fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
533 2014-12-12 Jakub Jelinek <jakub@redhat.com>
535 PR tree-optimization/64269
536 * tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
537 len2 or diff are too large.
539 2014-12-12 Richard Biener <rguenther@suse.de>
542 * tree-cfg.c (replace_uses_by): Guard assert properly.
544 2014-12-12 Anthony Green <green@moxielogic.com>
546 * config/moxie/moxie.md: Add use of zex instruction.
548 2014-12-12 Marc Glisse <marc.glisse@inria.fr>
550 * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
551 HONOR_SIGN_DEPENDENT_ROUNDING): Replace macros with 3 overloaded
553 * real.c (HONOR_NANS): Fix indentation.
554 (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
555 HONOR_SIGN_DEPENDENT_ROUNDING): Define three overloads.
556 * builtins.c (fold_builtin_cproj, fold_builtin_signbit,
557 fold_builtin_fmin_fmax, fold_builtin_classify): Simplify argument
559 * fold-const.c (operand_equal_p, fold_comparison, fold_binary_loc):
561 * gimple-fold.c (gimple_val_nonnegative_real_p): Likewise.
562 * ifcvt.c (noce_try_move, noce_try_minmax, noce_try_abs): Likewise.
563 * omp-low.c (omp_reduction_init): Likewise.
564 * rtlanal.c (may_trap_p_1): Likewise.
565 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
566 * tree-ssa-dom.c (record_equality, record_edge_info): Likewise.
567 * tree-ssa-phiopt.c (value_replacement, abs_replacement): Likewise.
568 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
569 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
571 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
573 * ipa-inline.c (ipa_inline): Fix condition on when
574 TODO_remove_unreachable_functions is needed.
576 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
578 * ipa-devirt.c (possible_polymorphic_call_targets): Return early
579 if otr_type has no BINFO.
581 2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
583 PR rtl-optimization/63917
584 * ifcvt.c (cc_in_cond): New function.
585 (end_ifcvt_sequence): Make sure new generated insns do not clobber CC.
586 (noce_process_if_block, check_cond_move_block): Check CC references.
588 2014-12-11 Andrew Pinski <apinski@cavium.com>
590 * config/aarch64/aarch64-protos.h (tune_params): Add align field.
591 * config/aarch64/aarch64.c (generic_tunings): Specify align.
592 (cortexa53_tunings): Likewise.
593 (cortexa57_tunings): Likewise.
594 (thunderx_tunings): Likewise.
595 (aarch64_override_options): Set align_loops, align_jumps,
596 align_functions based on what the tuning struct.
598 2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
600 * doc/md.texi (Insn Lengths): Fix description of (pc).
602 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
605 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
606 * ipa-chkp.c (chkp_produce_thunks): Use TODO_remove_functions.
607 * cgraphunit.c (symbol_table::process_new_functions): Add
608 IPA_SSA_AFTER_INLINING.
609 (ipa_passes): Update call of remove_unreachable_nodes.
610 (symbol_table::compile): Remove call of remove_unreachable_nodes.
611 * ipa-inline.c (inline_small_functions): Do not ICE with
613 (ipa_inline): Update symtab->state; fix formatting
614 update call of remove_unreachable_nodes.
615 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
616 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
617 * cgraph.h (enum symtab_state): Add IPA_SSA_AFTER_INLINING.
618 (remove_unreachable_nodes): Update.
619 * ipa.c (process_references): Keep external references only
621 (walk_polymorphic_call_targets): Keep possible polymorphic call
622 target only when devirtualizing.
623 (symbol_table::remove_unreachable_nodes): Remove BEFORE_INLINING_P
625 (ipa_single_use): Update comment.
626 * ipa-pure-const.c (cdtor_p): New function.
627 (propagate_pure_const): Track if some cdtor was turned pure/const.
628 (execute): Return TODO_remove_functions if needed.
629 * ipa-comdats.c (ipa_comdats): Update comment.
631 2014-12-11 Aldy Hernandez <aldyh@redhat.com>
633 * dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
635 (gen_inlined_subroutine_die): Same.
636 (gen_block_die): Same.
637 (decls_for_scope): Same.
639 2014-12-11 Renlin Li <renlin.li@arm.com>
641 * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
642 AARCH64_FL_FOR_ARCH8.
643 * config/aarch64/aarch64.c (all_cores): Use FLAGS from
644 aarch64-cores.def file only.
646 2014-12-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
649 * diagnostic.c (diagnostic_action_after_output): Make it extern.
650 Take diagnostic_t argument instead of diagnostic_info. Count also
651 DK_WERROR towards max_errors.
652 (diagnostic_report_diagnostic): Update call according to the above.
653 (error_recursion): Likewise.
654 * diagnostic.h (diagnostic_action_after_output): Declare.
655 * pretty-print.c (pp_formatted_text_data): Delete.
656 (pp_append_r): Call output_buffer_append_r.
657 (pp_formatted_text): Call output_buffer_formatted_text.
658 (pp_last_position_in_text): Call output_buffer_last_position_in_text.
659 * pretty-print.h (output_buffer_formatted_text): New.
660 (output_buffer_append_r): New.
661 (output_buffer_last_position_in_text): New.
663 2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com
665 * config/aarch64/aarch64.c (aarch64_parse_extension): Update error
666 message to say +no only when removing extension.
668 2014-12-11 Andrew MacLeod <amacleod@redhat.com>
670 * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list
671 for generator file. Add comment indicating it is a generated file.
672 * config/tilepro/mul-tables.c: Update generated file.
673 * config/tilegx/mul-tables.c: Likewise.
675 2014-12-11 Segher Boessenkool <segher@kernel.crashing.org>
677 * combine.c (try_combine): Do not allow combining a PARALLEL I2
678 with a register move I3 if that I2 is an asm.
680 2014-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
682 * config/arm/arm_neon.h (vrndqn_f32): Rename to...
683 (vrndnq_f32): ... this.
684 (vrndqa_f32): Rename to...
685 (vrndaq_f32): ... this.
686 (vrndqp_f32): Rename to...
687 (vrndpq_f32): ... this.
688 (vrndqm_f32): Rename to...
689 (vrndmq_f32): ... this.
690 (vrndx_f32): New intrinsic.
691 (vrndxq_f32): Likewise.
693 2014-12-11 Marek Polacek <polacek@redhat.com>
695 * fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
696 (extract_muldiv_1): Likewise.
697 (maybe_canonicalize_comparison_1): Likewise.
698 (fold_comparison): Likewise.
699 (tree_binary_nonnegative_warnv_p): Likewise.
700 (tree_binary_nonzero_warnv_p): Likewise.
701 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
702 * tree-scalar-evolution.c (simple_iv): Likewise.
703 (scev_const_prop): Likewise.
704 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
705 * tree-vect-generic.c (expand_vector_operation): Likewise.
706 * tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
707 (ANY_INTEGRAL_TYPE_P): Define.
708 (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
709 Add ANY_INTEGRAL_TYPE_CHECK.
710 (any_integral_type_check): New function.
712 2014-12-11 Tobias Burnus <burnus@net-b.de>
713 Manuel López-Ibáñez <manu@gcc.gnu.org>
715 * error.c (gfc_get_terminal_width): Renamed from
716 get_terminal_width and use same-named common function.
717 (gfc_error_init_1): Update call.
719 2014-12-10 Aldy Hernandez <aldyh@redhat.com>
721 * gdbhooks.py (class DWDieRefPrinter): New class.
722 (build_pretty_printer): Register dw_die_ref's.
724 2014-12-10 Ilya Tocar <ilya.tocar@intel.com>
726 * config.gcc: Support "knl".
727 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knl".
728 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
730 * config/i386/i386.c (m_KNL): Define.
731 (processor_target_table): Add "knl".
733 (ix86_issue_rate): Add PROCESSOR_KNL.
734 (ix86_adjust_cost): Ditto.
735 (ia32_multipass_dfa_lookahead): Ditto.
736 (get_builtin_code_for_version): Handle "knl".
737 (fold_builtin_cpu): Ditto.
738 * config/i386/i386.h (TARGET_KNL): Define.
739 (processor_type): Add PROCESSOR_KNL.
740 * config/i386/i386.md (attr "cpu"): Add knl.
741 * config/i386/x86-tune.def: Add m_KNL.
743 2014-12-10 Jan Hubicka <hubicka@ucw.cz>
745 * doc/invoke.texi: (-devirtualize-at-ltrans): Document.
746 * lto-cgraph.c (lto_output_varpool_node): Mark initializer as removed
747 when it is not streamed to the given ltrans.
748 (compute_ltrans_boundary): Make code adding all polymorphic
749 call targets conditional with !flag_wpa || flag_ltrans_devirtualize.
750 * common.opt (fdevirtualize-at-ltrans): New flag.
752 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
754 * varpool.c (varpool_node::get_create): Force output of vars with
755 "omp declare target" attribute.
757 2014-12-10 Marc Glisse <marc.glisse@inria.fr>
759 * real.h (HONOR_NANS): Replace macro with 3 overloaded declarations.
760 * real.c: Include rtl.h and options.h.
761 (HONOR_NANS): Define three overloads.
762 * builtins.c (fold_builtin_classify, fold_builtin_unordered_cmp):
763 Simplify argument of HONOR_NANS.
764 * fold-const.c (combine_comparisons, fold_truth_not_expr,
765 fold_cond_expr_with_comparison, merge_truthop_with_opposite_arm,
766 fold_comparison, fold_binary_loc): Likewise.
767 * ifcvt.c (noce_try_move, noce_try_minmax): Likewise.
768 * ipa-inline-analysis.c (add_clause,
769 set_cond_stmt_execution_predicate): Likewise.
770 * match.pd: Likewise.
771 * rtlanal.c (may_trap_p_1): Likewise.
772 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
773 * tree-if-conv.c (parse_predicate): Likewise.
774 * tree-ssa-ccp.c (valid_lattice_transition): Likewise.
775 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
776 * tree-ssa-phiopt.c (minmax_replacement, neg_replacement): Likewise.
777 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
778 * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
780 2014-12-10 Jakub Jelinek <jakub@redhat.com>
782 PR tree-optimization/62021
783 * omp-low.c (simd_clone_adjust_return_type): Use
784 vector of pointer_sized_int_node types instead vector of pointer
786 (simd_clone_adjust_argument_types): Likewise.
788 2014-12-10 Jakub Jelinek <jakub@redhat.com>
789 Evgeny Stupachenko <evstupac@gmail.com>
792 * config/i386/i386.c (expand_vec_perm_pblendv): If not testing_p,
793 set dcopy.target to a new pseudo.
795 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
797 * config/rs6000/rs6000.md (*add<mode>3): Remove condition.
799 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
801 * config/rs6000/40x.md (ppc403-compare): Remove "compare".
802 config/rs6000/440.md (ppc440-compare): Remove "compare".
803 config/rs6000/476.md (ppc476-compare): Remove "compare".
804 config/rs6000/601.md (ppc601-compare): Remove "compare".
805 config/rs6000/603.md (ppc603-compare): Remove "compare".
806 config/rs6000/6xx.md (ppc604-compare): Remove "compare".
807 config/rs6000/7450.md (ppc7450-compare): Remove "compare".
808 config/rs6000/7xx.md (ppc750-compare): Remove "compare".
809 config/rs6000/8540.md (ppc8540_su): Remove "compare".
810 config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove
812 config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare".
813 config/rs6000/e500mc.md (e500mc_su): Remove "compare".
814 config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare".
815 config/rs6000/e5500.md (e5500_sfx2): Remove "compare".
816 config/rs6000/e6500.md (e6500_sfx2): Remove "compare".
817 config/rs6000/mpc.md (mpccore-compare): Remove "compare".
818 config/rs6000/power4.md (power4-compare): Remove "compare".
819 config/rs6000/power5.md (power5-compare): Remove "compare".
820 config/rs6000/power6.md (power6-compare): Remove "compare".
821 config/rs6000/power7.md (power7-compare): Remove "compare".
822 config/rs6000/power8.md (power8-compare): Remove "compare". Update
824 config/rs6000/rs6000.c (rs6000_adjust_cost) <TYPE_COMPARE>: Remove
826 (is_cracked_insn): Remove TYPE_COMPARE case.
827 (insn_must_be_first_in_group) <TYPE_COMPARE>: Remove (twice).
828 config/rs6000/rs6000.md (type): Remove "compare".
829 (cell_micro): Remove "compare".
830 config/rs6000/rs64.md (rs64a-compare): Remove "compare".
832 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
834 * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2):
835 Change type from "compare" to "two".
837 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
840 * config/rs6000/predicates.md (unsigned_comparison_operator): New.
841 (signed_comparison_operator): New.
842 * config/rs6000/rs6000-protos.h (rs6000_emit_eqne): Declare.
843 * config/rs6000/rs6000.c (rs6000_emit_eqne): New function.
844 (rs6000_emit_sCOND): Remove ISEL test (move it to the expander).
845 * config/rs6000/rs6000.md (add<mode>3 for SDI): Expand DImode
846 add to addc,adde directly, if !TARGET_POWERPC64.
847 (sub<mode>3 for SDI): Expand DImode sub to subfc,subfe directly,
848 if !TARGET_POWERPC64.
849 (neg<mode>2): Delete expander.
850 (*neg<mode>2): Rename to "neg<mode>2".
851 (addti3, subti3): Delete.
852 (addti3, subti3): New expanders.
853 (*adddi3_noppc64, *subdi3_noppc64, *negdi2_noppc64): Delete.
854 (cstore<mode>4_unsigned): New expander.
855 (cstore<mode>4): Allow GPR as output (not just SI). Rewrite.
856 (cstore<mode>4 for FP): Remove superfluous quotes.
857 (*eq<mode>, *eq<mode>_compare, *plus_eqsi and splitter,
858 *compare_plus_eqsi and splitter, *plus_eqsi_compare and splitter,
859 *neg_eq0<mode>, *neg_eq<mode>, *ne0_<mode>, plus_ne0_<mode>,
860 compare_plus_ne0_<mode> and splitter, *compare_plus_ne0_<mode>_1 and
861 splitter, *plus_ne0_<mode>_compare and splitter, *leu<mode>,
862 *leu<mode>_compare and splitter, *plus_leu<mode>, *neg_leu<mode>,
863 *and_neg_leu<mode>, *ltu<mode>, *ltu<mode>_compare, *plus_ltu<mode>,
864 *plus_ltu<mode>_1, *plus_ltu<mode>compare, *neg_ltu<mode>, *geu<mode>,
865 *geu<mode>_compare and splitter, *plus_geu<mode>, *neg_geu<mode>,
866 *and_neg_geu<mode>, *plus_gt0<mode>, *gtu<mode>, *gtu<mode>_compare,
867 *plus_gtu<mode>, *plus_gtu<mode>_1, *plus_gtu<mode>_compare,
868 *neg_gtu<mode>, 12 anonymous insns, and 12 anonymous splitters):
870 (eq<mode>3, ne<mode>3): New.
871 (*neg_eq_<mode>, *neg_ne_<mode>): New.
872 (*plus_eq_<mode>, *plus_ne_<mode>): New.
873 (*minus_eq_<mode>, *minus_ne_<mode>): New.
875 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
878 * config/rs6000/predicates.md (adde_operand): New.
879 * config/rs6000/rs6000.md (add<mode>3_carry): New.
880 (*add<mode>3_imm_carry_pos): New.
881 (*add<mode>3_imm_carry_0): New.
882 (*add<mode>3_imm_carry_m1): New.
883 (*add<mode>3_imm_carry_neg): New.
884 (add<mode>3_carry_in): New.
885 (*add<mode>3_carry_in_internal): New.
886 (add<mode>3_carry_in_0): New.
887 (add<mode>3_carry_in_m1): New.
888 (subf<mode>3_carry): New.
889 (*subf<mode>3_imm_carry_0): New.
890 (*subf<mode>3_imm_carry_m1): New.
891 (subf<mode>3_carry_in): New.
892 (*subf<mode>3_carry_in_internal): New.
893 (subf<mode>3_carry_in_0): New.
894 (subf<mode>3_carry_in_m1): New.
895 (subf<mode>3_carry_in_xx): New.
897 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
900 * config/rs6000/rs6000.md (*add<mode>3_internal1): Rename to
902 (*add<mode>3_internal2, *add<mode>3_internal3, and (their splitters):
904 (*add<mode>3_dot, *add<mode>3_dot2): New.
905 (*add<mode>3_imm_dot, *add<mode>3_imm_dot2): New.
907 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
910 * config/rs6000/rs6000.md (*add<mode>3_internal1): Remove addic
913 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
916 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
917 *ctr<mode>_internal5, *ctr<mode>_internal6): Change "r" alternatives
918 to "b". Increase length.
919 (splitters for these): Split to cmp+addi instead of addic.
921 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
924 * config/rs6000/darwin.md (macho_low_si): Remove "r" alternative.
925 (macho_low_di): Ditto.
926 * config/rs6000/rs6000.md (*largetoc_low): Ditto.
927 (tocref<mode>): Ditto.
929 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0_elf_low_be): Ditto.
930 (mov_si<mode>_e500_subreg0_elf_low_le): Ditto.
931 (mov_si<mode>_e500_subreg4_elf_low_be): Ditto. Reformat condition.
932 (mov_si<mode>_e500_subreg4_elf_low_le): Ditto.
934 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
937 * config/rs6000/rs6000.c (TARGET_MD_ASM_CLOBBERS): Define.
938 (rs6000_md_asm_clobbers): New function.
940 2014-12-10 Felix Yang <felix.yang@huawei.com>
942 * config/aarch64/aarch64-protos.h (aarch64_function_profiler): Remove
943 declaration of removed function.
945 2014-12-10 Richard Biener <rguenther@suse.de>
948 (move_computations_dom_walker::before_dom_children): Clear
949 SSA_NAME_RANGE_INFO on moved stmts.
951 2014-12-10 Martin Liska <mliska@suse.cz>
953 * sreal.c (sreal::shift_right): New implementation
954 for int64_t as m_sig.
955 (sreal::normalize): Likewise.
956 (sreal::to_int): Likewise.
957 (sreal::operator+): Likewise.
958 (sreal::operator-): Likewise.
959 (sreal::operator*): Likewise.
960 (sreal::operator/): Likewise.
961 (sreal::signedless_minus): Removed.
962 (sreal::signedless_plus): Removed.
963 (sreal::debug): const keyword is added.
964 * sreal.h (sreal::operator<): New implementation
965 for int64_t as m_sig.
966 * ipa-inline.c (recursive_inlining): LONG_MIN is replaced
969 2014-12-10 Martin Liska <mliska@suse.cz>
971 * gimple-iterator.h (gsi_start_bb_nondebug): New function.
972 * ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
973 replaces loop based on precomputed number of non-debug statements.
975 2014-12-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
977 * config/linux.c (linux_has_ifunc_p): Remove.
978 * config/linux.h (TARGET_HAS_IFUNC_P): Use default version.
980 2014-12-10 Mantas Mikaitis <mantas.mikaitis@arm.com>
982 * contrib/check_GNU_style.sh (col): Got rid of cut operation
983 from the pipe chain and instead added cut inside awk command.
985 2014-12-10 Richard Biener <rguenther@suse.de>
987 PR tree-optimization/64191
988 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
989 mark clobbers as necessary.
990 (eliminate_unnecessary_stmts): Keep clobbers live if we can.
992 2014-12-10 Jakub Jelinek <jakub@redhat.com>
995 * config/i386/sse.md (vec_dupv4sf): Move after
996 <mask_codefor><avx512>_vec_dup_gpr<mode><mask_name> pattern.
997 (*vec_dupv4si, *vec_dupv2di): Likewise.
998 (<mask_codefor><avx512>_vec_dup_mem<mode><mask_name>): Merge into ...
999 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>): ... this
1001 (*vec_dup<mode> AVX2_VEC_DUP_MODE splitter): Disable for
1002 TARGET_AVX512VL (for QI/HI scalar modes only if TARGET_AVX512BW
1004 * config/i386/i386.c (enum ix86_builtins): Remove
1005 IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
1006 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK and
1007 IX86_BUILTIN_PBROADCASTQ512_MEM.
1008 (bdesc_args): Use __builtin_ia32_pbroadcastq512_gpr_mask,
1009 __builtin_ia32_pbroadcastq256_gpr_mask and
1010 __builtin_ia32_pbroadcastq128_gpr_mask instead of *_mem_mask
1011 regardless of OPTION_MASK_ISA_64BIT.
1012 * config/i386/avx512fintrin.h (_mm512_set1_epi64,
1013 _mm512_mask_set1_epi64, _mm512_maskz_set1_epi64): Use *_gpr_mask
1014 builtins regardless of whether TARGET_64BIT is defined or not.
1015 * config/i386/avx512vlintrin.h (_mm256_mask_set1_epi64,
1016 _mm256_maskz_set1_epi64, _mm_mask_set1_epi64, _mm_maskz_set1_epi64):
1019 * config/i386/sse.md (*mov<mode>_internal, *avx512f_gatherdi<mode>_2):
1020 Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
1022 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1025 * doc/extend.texi (__builtin_sh_set_fpscr): Fix typo.
1027 2014-12-10 Marek Polacek <polacek@redhat.com>
1029 PR tree-optimization/61686
1030 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
1033 2014-12-10 Kito Cheng <kito@0xlab.org>
1035 * doc/libgcc.texi: Update text to match implementation in
1038 2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
1040 * plugin.c, plugin.def, ggc.h, ggc-common.c, gengtype.h, gengtype.c,
1041 gengtype-state.c, gengtype-parse.c, gentype-lex.l, gcc-plugin.h,
1042 doc/plugins.texi, doc/gty.texi: Remove support for if_marked and
1045 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1048 * doc/extend.texi (__builtin_sh_get_fpscr, __builtin_sh_get_fpscr):
1051 2014-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1054 * tree-ssa-reassoc.c (acceptable_pow_call): Disable transformation
1055 for BUILT_IN_POW when flag_errno_math is present.
1057 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
1059 * lto-wrapper.c (compile_offload_image): Start processing in_argv
1060 from 0 instead of 1.
1061 (run_gcc): Put offload objects into offload_argv, put LTO objects and
1062 possible preceding arguments into lto_argv.
1063 Pass offload_argv to compile_images_for_offload_targets instead of argv.
1064 Use lto_argv for LTO recompilation instead of argv.
1066 2014-12-09 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1068 * doc/install.texi: Describe --with-aix-soname option.
1070 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1072 * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
1074 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1077 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
1079 * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
1081 * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
1082 vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
1083 (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
1084 __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
1085 __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
1086 __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
1087 __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
1088 __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
1089 __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
1090 __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
1091 __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
1092 __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
1093 __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
1094 __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
1095 (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
1097 (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
1098 __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
1099 __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
1100 __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
1101 __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
1102 __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
1103 __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
1104 __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
1105 __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
1106 __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
1107 __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
1108 __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
1109 to __aarch64_vdup_lane_any.
1110 (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
1111 vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
1112 vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
1113 vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
1114 vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
1115 vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
1116 vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
1117 vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
1118 vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
1119 vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
1120 vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
1121 vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
1122 vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
1123 vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
1124 vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
1125 vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
1126 vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
1127 vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
1128 vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
1129 vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
1130 vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
1131 vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
1132 vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
1133 vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
1134 vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
1135 vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
1136 vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
1137 vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
1138 vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
1139 vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
1140 __aarch64_vget_lane_any.
1142 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1145 * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
1146 message for SIMD_ARG_CONSTANT.
1148 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1151 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
1152 TYPES_BINOPV): Delete.
1153 (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
1154 AARCH64_SIMD_PATTERN_START.
1155 (aarch64_init_simd_builtins): Register
1156 __builtin_aarch64_im_lane_boundsi; use AARCH64_SIMD_PATTERN_START.
1157 (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
1158 AARCH64_SIMD_PATTERN_START.
1160 * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
1161 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
1163 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
1164 (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
1165 __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
1166 vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
1167 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
1168 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
1169 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
1170 vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
1172 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1175 * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
1177 (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
1178 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1179 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1180 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
1182 (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
1183 vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
1184 vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
1185 __aarch64_vset_lane_any rather than vset_lane_xxx.
1187 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1189 * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
1190 earlyclobbering result operand.
1192 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1193 Remove final qualifier_internal.
1194 (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
1196 2014-12-09 Wilco Dijkstra <wilco.dijkstra@arm.com>
1198 * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
1200 * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
1202 (aarch64_reassociation_width): New function.
1203 (generic_tunings): Add reassociation tuning parameters.
1204 (cortexa53_tunings): Likewise.
1205 (cortexa57_tunings): Likewise.
1206 (thunderx_tunings): Likewise.
1208 2014-12-09 Andrew Pinski <apinski@cavium.com>
1209 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1211 * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
1212 (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
1213 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
1215 2014-12-09 David Malcolm <dmalcolm@redhat.com>
1218 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
1220 (gcc::dump_manager::get_dump_file_name): Split out bulk of
1221 implementation into a new overloaded variant taking a
1223 * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
1225 (gcc::dump_manager::get_dump_file_name): New overloaded variant of
1226 this function, taking a dump_file_info *.
1228 2014-12-09 Uros Bizjak <ubizjak@gmail.com>
1232 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
1234 PR rtl-optimization/64037
1235 * combine.c (setup_incoming_promotions): Pass the argument
1236 before any promotions happen to promote_function_mode.
1238 2014-12-09 Richard Biener <rguenther@suse.de>
1240 PR tree-optimization/64193
1241 * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
1242 and valueize the VUSE before looking up the def stmt.
1243 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1244 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
1245 to walk_non_aliased_vuses.
1246 (vn_reference_lookup): Likewise.
1247 * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
1248 callback to walk_non_aliased_vuses.
1250 2014-12-09 Richard Biener <rguenther@suse.de>
1253 * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
1255 2014-12-09 Richard Biener <rguenther@suse.de>
1257 PR tree-optimization/64191
1258 * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
1259 not relevant (nor are their uses).
1261 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1263 * lto/lto-partition.c (privatize_symbol_name): Correctly
1264 privatize instrumentation clones.
1266 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1268 * lto-cgraph.c (input_cgraph_1): Don't break existing
1269 instrumentation clone references.
1270 * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
1271 instrumented_version references appropriately.
1273 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1276 * tree-chkp.c (chkp_make_static_bounds): Share bounds var
1277 between nodes sharing assembler name.
1279 2014-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1282 * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
1283 constant moves if -mupper-regs-df.
1285 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
1287 (movtd_64bit_nodm): Likewise.
1288 (mov<mode>_32bit, FMOVE128 case): Likewise.
1290 2014-12-08 Sandra Loosemore <sandra@codesourcery.com>
1292 * simplify-rtx.c (simplify_relational_operation_1): Handle
1293 simplification identities for BICS patterns.
1295 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1297 * config/nvptx/nvptx.c: Convert htabs to hash_table.
1299 2014-12-08 David Edelsohn <dje.gcc@gmail.com>
1302 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
1303 [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
1304 TARGET_TOC. Always use rs6000_emit_move.
1306 2014-12-08 Mark Wielaard <mjw@redhat.com>
1309 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
1311 2014-11-15 David Wohlferd <dw@LimeGreenSocks.com>
1314 * cfgexpand.c (expand_asm_operands): Count all inline asm params.
1316 2014-12-08 David Malcolm <dmalcolm@redhat.com>
1319 * cgraph.h (xstrdup_for_dump): New function.
1320 * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
1321 within fprintf with xstrdup_for_dump.
1322 (cgraph_edge::make_speculative): Likewise.
1323 (cgraph_edge::resolve_speculation): Likewise.
1324 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1325 (cgraph_node::dump): Likewise.
1326 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1327 * ipa-cp.c (perhaps_add_new_callers): Likewise.
1328 * ipa-inline.c (report_inline_failed_reason): Likewise.
1329 (want_early_inline_function_p): Likewise.
1330 (edge_badness): Likewise.
1331 (update_edge_key): Likewise.
1332 (flatten_function): Likewise.
1333 (inline_always_inline_functions): Likewise.
1334 * ipa-profile.c (ipa_profile): Likewise.
1335 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1336 (ipa_make_edge_direct_to_target): Likewise.
1337 (remove_described_reference): Likewise.
1338 (propagate_controlled_uses): Likewise.
1339 * ipa-utils.c (ipa_merge_profiles): Likewise.
1341 2014-12-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1344 * ipa-polymorphic-call.c
1345 (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
1347 2014-12-08 Alex Velenko <Alex.Velenko@arm.com>
1349 * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
1351 * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
1354 2014-12-08 Felix Yang <felix.yang@huawei.com>
1355 Haijian Zhang <z.zhanghaijian@huawei.com>
1356 Jiji Jiang <jiangjiji@huawei.com>
1357 Pengfei Sui <suipengfei@huawei.com>
1359 * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
1361 (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
1362 vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
1363 (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
1364 vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
1365 vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
1366 vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
1367 vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
1368 vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
1369 vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
1370 vrsubhn_high_u64): Likewise.
1371 * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
1372 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
1373 * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
1374 * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
1375 subhn2, rsubhn2, urecpe): New builtins.
1377 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1379 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
1380 * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
1382 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1384 * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
1385 (expand_vec_perm_vpermi2_vpshub2): New.
1386 (ix86_expand_vec_perm_const_1): Use it.
1387 (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
1388 * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
1390 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1392 * tree-chkp.c (chkp_build_returned_bound): Don't predict
1393 return bounds for strchr calls.
1395 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1397 * tree-chkp.c (chkp_call_returns_bounds_p): New.
1398 (chkp_build_returned_bound): Use zero bounds as
1399 returned by calls not returning bounds.
1401 2014-12-08 Richard Biener <rguenther@suse.de>
1403 * builtins.c (fold_builtin_0): Remove unused ignore parameter.
1404 (fold_builtin_1): Likewise.
1405 (fold_builtin_3): Likewise.
1406 (fold_builtin_varargs): Likewise.
1407 (fold_builtin_2): Likewise. Do not fold stpcpy here.
1408 (fold_builtin_n): Adjust.
1409 (fold_builtin_stpcpy): Move to gimple-fold.c.
1410 (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
1411 (gimple_fold_builtin): Fold stpcpy here.
1413 2014-12-07 Trevor Saunders <tsaunders@mozilla.com>
1415 * symtab.c (symtab_node::verify): Check for section attribute before
1416 asserting something isn't in a section and a comdat group.
1418 2014-12-07 Oleg Endo <olegendo@gcc.gnu.org>
1421 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
1423 2014-12-07 Eric Botcazou <ebotcazou@adacore.com>
1425 * compare-elim.c: Fix head comment.
1426 (conforming_compare): Remove redundant test.
1427 (can_eliminate_compare): New function extracted from...
1428 (before_dom_children): ...here. Use it, replace direct uses of
1429 flag_non_call_exceptions and tidy up.
1430 (maybe_select_cc_mode): Tidy up.
1432 2014-12-07 Felix Yang <felix.yang@huawei.com>
1433 Shanyao Chen <chenshanyao@huawei.com>
1435 * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
1437 * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
1439 * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
1440 vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
1441 vcntq_u8): Rewrite using builtin functions.
1443 2014-12-07 Jan Hubicka <hubicka@ucw.cz>
1445 * symtab.c (symtab_node::equal_address_to): New function.
1446 * cgraph.h (symtab_node::equal_address_to): Declare.
1447 * fold-const.c (fold_comparison, fold_binary_loc): Use it.
1448 * c-family/c-common.c: Refuse weaks for symbols that can not change
1451 2014-12-07 Jonathan Wakely <jwakely@redhat.com>
1453 * doc/invoke.texi (Warning Options): Fix spelling and grammar.
1455 2014-12-06 James Greenhalgh <james.greenhalgh@arm.com>
1456 Sebastian Pop <s.pop@samsung.com>
1457 Brian Rzycki <b.rzycki@samsung.com>
1459 PR tree-optimization/54742
1460 * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
1461 max-fsm-thread-paths): New.
1463 * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
1464 max-fsm-thread-paths): Documented.
1466 * tree-cfg.c (split_edge_bb_loc): Export.
1467 * tree-cfg.h (split_edge_bb_loc): Declared extern.
1469 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
1470 original value of cond when simplification fails.
1471 (fsm_find_thread_path): New.
1472 (fsm_find_control_statement_thread_paths): New.
1473 (thread_through_normal_block): Call find_control_statement_thread_paths.
1475 * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
1478 (duplicate_seme_region): New.
1479 (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
1480 calling duplicate_seme_region.
1482 * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
1484 2014-12-06 H.J. Lu <hongjiu.lu@intel.com>
1487 * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
1488 for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
1490 2014-12-05 Jakub Jelinek <jakub@redhat.com>
1493 * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
1494 non-NULL, call maybe_get_dominating_check on it even if g is
1497 2014-12-05 Jeff Law <law@redhat.com>
1499 * doc/md.texi: Note problems using function calls to determine
1500 insn lengths and point readers to a potential workaround.
1502 2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
1504 * combine.c (is_parallel_of_n_reg_sets)
1505 (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
1507 2014-12-05 Andrew Pinski <apinski@cavium.com>
1509 * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
1510 than CF10 so 2 is appended on the code.
1511 * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
1512 (bswap<mode>2): This so it matches for the optabs.
1514 2014-12-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1516 * regrename.c (find_best_rename_reg): Rename to ...
1517 (find_rename_reg): This. Also add a parameter to skip tick check.
1518 * regrename.h: Likewise.
1519 * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
1521 2014-12-05 Martin Jambor <mjambor@suse.cz>
1524 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
1525 from bits to bytes after checking they are byte-aligned.
1527 2014-12-05 Renlin Li <renlin.li@arm.com>
1529 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
1530 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1531 * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
1534 2014-12-05 Bin Cheng <bin.cheng@arm.com>
1536 * config/aarch64/aarch64.md (load_pair<mode>): Split to
1537 load_pairsi, load_pairdi, load_pairsf and load_pairdf.
1538 (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
1539 from load_pair<mode>. New alternative to support int/fp
1540 registers in fp/int mode patterns.
1541 (store_pair<mode>:): Split to store_pairsi, store_pairdi,
1542 store_pairsf and store_pairdi.
1543 (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
1544 from store_pair<mode>. New alternative to support int/fp
1545 registers in fp/int mode patterns.
1546 (*load_pair_extendsidi2_aarch64): New pattern.
1547 (*load_pair_zero_extendsidi2_aarch64): New pattern.
1548 (aarch64-ldpstp.md): Include.
1549 * config/aarch64/aarch64-ldpstp.md: New file.
1550 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
1552 (extract_base_offset_in_addr): New.
1553 (aarch64_operands_ok_for_ldpstp): New.
1554 (aarch64_operands_adjust_ok_for_ldpstp): New.
1555 * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
1556 (TARGET_SCHED_FUSION_PRIORITY): New hook.
1557 (fusion_load_store): New functon.
1558 (extract_base_offset_in_addr): New function.
1559 (aarch64_gen_adjusted_ldpstp): New function.
1560 (aarch64_sched_fusion_priority): New function.
1561 (aarch64_operands_ok_for_ldpstp): New function.
1562 (aarch64_operands_adjust_ok_for_ldpstp): New function.
1564 2014-12-05 Olivier Hainque <hainque@adacore.com>
1566 * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
1567 * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
1568 DWARF_REG_TO_UNWIND_COLUMN.
1570 2014-12-05 Olivier Hainque <hainque@adacore.com>
1572 * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
1573 one particular reg for expand_builtin_init_dwarf_reg_sizes.
1574 (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
1575 account for dwarf register spans.
1577 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1580 * config/i386/i386.md (*jcc_1_bnd): New.
1583 (*jcc_1): Remove bnd prefix.
1587 2014-12-05 Renlin Li <renlin.li@arm.com>
1589 * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
1591 (aarch64_override_options): Use selected_cpu's tuning.
1593 2014-12-05 David Edelsohn <dje.gcc@gmail.com>
1595 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
1596 alignment to section name. Increase default alignment to word.
1598 2014-12-05 Martin Jambor <mjambor@suse.cz>
1600 * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
1601 (cgraph_edge): New method redirect_callee_duplicating_thunks.
1602 * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
1604 (redirect_edge_duplicating_thunks): Turned into edge method
1605 redirect_callee_duplicating_thunks.
1606 (cgraph_node::expand_all_artificial_thunks): New method.
1607 (create_clone): Call expand_all_artificial_thunks.
1608 * ipa-cp.c (perhaps_add_new_callers): Call
1609 redirect_callee_duplicating_thunks instead of redirect_callee.
1610 Also call expand_all_artificial_thunks.
1612 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1615 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target
1618 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1620 * diagnostic.h (diagnostic_expand_location): New inline function.
1621 * diagnostic.c (diagnostic_build_prefix): Use it.
1622 (diagnostic_show_locus): Likewise.
1624 2014-12-04 H.J. Lu <hongjiu.lu@intel.com>
1627 * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
1628 * configure: Regenerated.
1630 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1632 * diagnostic.c (diagnostic_color_init): New.
1633 * diagnostic.h: Declare.
1634 * gcc.c (driver::global_initializations): Use it.
1635 (driver_handle_option): Handle -fdiagnostics-color_.
1636 * toplev.c: Do not include diagnostic-color.h.
1637 (process_options): Do not initialize color diagnostics here.
1638 * common.opt (fdiagnostics-color=): Add Driver.
1639 * opts-global.c (init_options_once): Initialize color here.
1640 * opts.c (common_handle_option): Use diagnostics_color_init.
1641 * diagnostic-color.h: Fix comment.
1643 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1645 * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
1647 (buffer): Rename this variable to...
1650 (do_niy): Rename param from "buffer" to "pp".
1651 (dump_decl_name): Likewise.
1652 (dump_function_name): Likewise.
1653 (dump_function_declaration): Likewise.
1654 (dump_array_domain): Likewise.
1655 (dump_omp_clause): Likewise.
1656 (dump_omp_clauses): Likewise.
1657 (dump_location): Likewise.
1658 (dump_block_node): Likewise.
1659 (dump_generic_node): Likewise.
1660 (print_declaration): Likewise.
1661 (print_struct_decl): Likewise.
1662 (print_call_name): Likewise.
1663 (pretty_print_string): Likewise.
1664 (newline_and_indent): Likewise.
1666 (print_generic_decl): Update for renaming of "buffer" to
1668 (print_generic_stmt): Likewise.
1669 (print_generic_stmt_indented): Likewise.
1670 (print_generic_expr): Likewise.
1671 (maybe_init_pretty_print): Likewise.
1673 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1676 * tree-pretty-print.c: Eliminate include of <new>.
1677 (buffer): Convert this variable from a pretty_printer to a
1679 (initialized): Eliminate this variable in favor of the NULL-ness
1681 (print_generic_decl): Update for "buffer" becoming a pointer.
1682 (print_generic_stmt): Likewise.
1683 (print_generic_stmt_indented): Likewise.
1684 (print_generic_expr): Likewise.
1685 (maybe_init_pretty_print): Likewise, allocating "buffer" on the
1686 heap and using its non-NULL-ness to ensure idempotency.
1688 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1691 * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
1692 ipa_add_new_function on function_insertion_hook_holder being
1694 * ipa-reference.c (ipa_reference_c_finalize): Remove
1695 node_removal_hook_holder and node_duplication_hook_holder if
1696 they've been added to symtab.
1697 * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
1698 before cgraph_c_finalize so that the former can access "symtab".
1700 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1702 * doc/cfg.texi (GIMPLE statement iterators): Add note about
1703 gphi_iterator, and use one in the example.
1704 * doc/gimple.texi (Tuple specific accessors): Add missing
1705 GIMPLE_GOTO section and menu item.
1706 (gimple_build_asm, gimple gimple_build_assign_with_ops)
1707 gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
1708 description of removed functions.
1709 (gimple_build_assign, gimple_build_bind, gimple_build_call,
1710 gimple_build_call_from_tree, gimple_build_call_vec,
1711 gimple_build_catch, gimple_build_cond,
1712 gimple_build_cond_from_tree, gimple_build_debug_bind,
1713 gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
1714 gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
1715 gimple_build_omp_continue, gimple_build_omp_critical,
1716 gimple_build_omp_for, gimple_build_omp_parallel,
1717 gimple_build_omp_sections, gimple_build_omp_single,
1718 gimple_build_return, gimple_build_resx, gimple_build_switch,
1719 gimple_build_try): Update return type within description to
1720 reflect changes in gimple.h to using gimple subclasses.
1721 (gimple_build_asm_vec): Update return type, params and
1723 (gimple_asm_ninputs): Update param.
1724 (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
1725 gimple_asm_set_input_op, gimple_asm_output_op
1726 gimple_asm_set_output_op, gimple_asm_clobber_op,
1727 gimple_asm_set_clobber_op, gimple_asm_string,
1728 gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
1729 gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
1730 gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
1731 gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
1732 gimple_call_return_type, gimple_call_set_chain,
1733 gimple_call_set_tail, gimple_call_tail_p,
1734 gimple_call_copy_skip_args, gimple_catch_types,
1735 gimple_catch_types_ptr, gimple_catch_handler,
1736 gimple_catch_set_types, gimple_catch_set_handler,
1737 gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
1738 gimple_cond_true_label, gimple_cond_set_true_label,
1739 gimple_cond_set_false_label, gimple_cond_false_label,
1740 gimple_cond_make_false, gimple_cond_make_true,
1741 gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
1742 gimple_eh_must_not_throw_fndecl,
1743 gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
1744 gimple_label_set_label, gimple_goto_set_dest,
1745 gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
1746 gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
1747 gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
1748 gimple_omp_continue_control_def,
1749 gimple_omp_continue_control_def_ptr,
1750 gimple_omp_continue_set_control_def,
1751 gimple_omp_continue_control_use,
1752 gimple_omp_continue_control_use_ptr,
1753 gimple_omp_continue_set_control_use, gimple_omp_critical_name,
1754 gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
1755 gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
1756 gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
1757 gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
1758 gimple_omp_parallel_data_arg_ptr,
1759 gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
1760 gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
1761 gimple_resx_set_region, gimple_return_retval,
1762 gimple_return_set_retval, gimple_switch_num_labels,
1763 gimple_switch_set_num_labels, gimple_switch_index,
1764 gimple_switch_set_index, gimple_switch_label,
1765 gimple_switch_set_label, gimple_switch_default_label,
1766 gimple_switch_set_default_label, gimple_try_set_eval,
1767 gimple_try_set_cleanup): Update initial param within description
1768 to reflect changes in gimple.h to using gimple subclasses.
1769 (Adding a new GIMPLE statement code): Update to reflect gimple
1770 statement subclassing.
1772 2014-12-04 Sriraman Tallam <tmsriram@google.com>
1773 H.J. Lu <hongjiu.lu@intel.com>
1775 * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
1776 Linux/x86-64 linker supports PIE with copy reloc.
1777 * config.in: Regenerated.
1778 * configure: Likewise.
1780 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1781 pc-relative address for undefined, non-weak, non-function
1782 symbol reference in 64-bit PIE if linker supports PIE with
1785 * doc/sourcebuild.texi: Document pie_copyreloc target.
1787 2014-12-04 Marek Polacek <polacek@redhat.com>
1790 * fold-const.c (fold_unary_loc): Perform the negation in A's type
1791 when transforming ~ (A - 1) or ~ (A + -1) to -A.
1793 2014-12-04 Tobias Burnus <burnus@net-b.de>
1795 * Makefile.in: Remove CLOOGLIB and CLOOGINC.
1797 2014-12-04 Richard Biener <rguenther@suse.de>
1799 * doc/match-and-simplify.texi: Update for recent changes.
1801 2014-12-04 Martin Jambor <mjambor@suse.cz>
1803 * ipa-prop.h (ipa_alignment): New type.
1804 (ipa_jump_func): New field alignment.
1805 (ipcp_transformation_summary) New type.
1806 (ipcp_grow_transformations_if_necessary): Declare.
1807 (ipa_node_agg_replacements): Removed.
1808 (ipcp_transformations): Declare.
1809 (ipcp_get_transformation_summary): New function.
1810 (ipa_get_agg_replacements_for_node): Use it.
1811 * ipa-cp.c (ipcp_param_lattices): New field alignment.
1812 (print_all_lattices): Also print alignment.
1813 (alignment_bottom_p): New function.
1814 (set_alignment_to_bottom): Likewise.
1815 (set_all_contains_variable): Also set alignment to bottom.
1816 (initialize_node_lattices): Likewise.
1817 (propagate_alignment_accross_jump_function): New function.
1818 (propagate_constants_accross_call): Call it.
1819 (ipcp_store_alignment_results): New function.
1820 (ipcp_driver): Call it.
1821 * ipa-prop.c (ipa_node_agg_replacements): Removed.
1822 (ipcp_transformations): New.
1823 (ipa_print_node_jump_functions_for_edge): Also print alignment.
1824 (ipa_set_jf_unknown): New function.
1825 (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
1826 (ipa_compute_jump_functions_for_edge): Also calculate alignment.
1827 (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
1828 (ipcp_grow_transformations_if_necessary): New function.
1829 (ipa_set_node_agg_value_chain): Use ipcp_transformations.
1830 (ipa_node_removal_hook): Likewise.
1831 (ipa_node_duplication_hook): Also duplicate alignment results.
1832 (ipa_write_jump_function): Also stream alignments.
1833 (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
1835 (write_agg_replacement_chain): Renamed to
1836 write_ipcp_transformation_info, also stream alignments.
1837 (read_agg_replacement_chain): Renamed to
1838 read_ipcp_transformation_info, also stream alignments.
1839 (ipa_prop_write_all_agg_replacement): Renamed to
1840 ipcp_write_transformation_summaries. Stream always.
1841 (ipa_prop_read_all_agg_replacement): Renamed to
1842 ipcp_read_transformation_summaries.
1843 (ipcp_update_alignments): New function.
1844 (ipcp_transform_function): Call it, free also alignments.
1846 2014-12-04 Richard Biener <rguenther@suse.de>
1848 * gimple-fold.c (replace_stmt_with_simplification): Properly
1849 fail when maybe_push_res_to_seq fails.
1851 2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1853 * config/aarch64/aarch64.md (define_insn "prefetch"): New.
1855 2014-12-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1857 * doc/install.texi: Remove mentions of cloog and ppl.
1858 * doc/invoke.texi: Likewise
1860 2014-12-04 Jakub Jelinek <jakub@redhat.com>
1863 * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
1864 Handle COMPOUND_EXPR.
1866 2014-12-04 Richard Biener <rguenther@suse.de>
1868 * builtins.c (target_newline): Export.
1869 (target_percent_s_newline): Likewise.
1870 (fold_builtin_1): Do not fold printf functions here.
1871 (fold_builtin_2): Likewise.
1872 (fold_builtin_3): Likewise, do not fold strncat.
1873 (fold_builtin_strncat): Move to gimple-fold.c.
1874 (fold_builtin_printf): Likewise.
1875 * builtins.h (target_newline): Declare.
1876 (target_percent_s_newline): Likewise.
1877 * gimple-fold.c (gimple_fold_builtin_strncat): Move from
1878 builtins.c and gimplify.
1879 (gimple_fold_builtin_printf): Likewise.
1880 (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
1881 vprintf, printf_chk and vprintf_chk here.
1883 2014-12-03 David Edelsohn <dje.gcc@gmail.com>
1885 * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
1886 (floatunssidf2_internal): Same.
1887 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
1888 (rs6000_emit_int_cmove): Same.
1889 (rs6000_sched_reorder): Same.
1890 (altivec_expand_vec_perm_const): Same.
1891 (rs6000_expand_vec_perm_const_1): Same.
1893 2014-12-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1895 PR rtl-optimization/64010
1896 * reload.c (push_reload): Before reusing a register contained
1897 in an operand as input reload register, ensure that it is not
1898 used in CALL_INSN_FUNCTION_USAGE.
1900 2014-12-03 Ulrich Drepper <drepper@gmail.com>
1902 * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
1905 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1907 * expmed.c (expand_mult): Use std::swap.
1910 * expmed.c (expand_widening_mult): Return const0_rtx if
1913 * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
1914 (gimple_build_assign): Document the new overloads.
1916 2014-12-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1919 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1920 not create LO_SUM address for constant addresses if the type can
1921 go in Altivec registers.
1923 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1926 * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
1927 (pp_flush): Flush only if flush_p.
1928 (pp_really_flush): New.
1929 * pretty-print.h (struct output_buffer): Add flush_p.
1930 (pp_really_flush): Declare.
1932 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1934 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
1935 gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
1936 (GENGTYPE_OBJS): New.
1937 (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
1938 Remove explicit dependencies.
1939 (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
1940 CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
1941 instead of -DGENERATOR_FILE.
1942 (CFLAGS-errors.o): New.
1943 * gengtype.c: Instead of testing GENERATOR_FILE define, test
1944 HOST_GENERATOR_FILE. If defined, include config.h and define
1945 GENERATOR_FILE afterwards, otherwise include bconfig.h.
1946 * gengtype-parse.c: Likewise.
1947 * gengtype-state.c: Likewise.
1948 * gengtype-lex.l: Likewise.
1949 * errors.c: Likewise.
1951 2014-12-03 Joern Rennecke <joern.rennecke@embecosm.com>
1953 * config/epiphany/epiphany.c (epiphany_override_options):
1954 If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
1955 * config/epiphany/epiphany.md (mov<mode>cc): Don't use
1956 reverse_condition_maybe_unordered if flag_finite_math_only is set.
1958 2014-12-03 Andrew Stubbs <ams@codesourcery.com>
1962 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1963 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1964 when architecture is older than ARMv7.
1966 2014-12-03 Richard Biener <rguenther@suse.de>
1968 * builtins.c (target_percent_c): Export.
1969 (fold_builtin_fprintf): Move to gimple-fold.c.
1970 (fold_builtin_2): Do not fold fprintf functions.
1971 (fold_builtin_3): Likewise.
1972 (fold_builtin_4): Remove.
1973 (fold_builtin_n): Do not call fold_builtin_4.
1974 * builtins.h (target_percent_c): Declare.
1975 * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
1976 builtins.c and gimplify.
1977 (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
1978 fprintf_chk and vfprintf_chk here.
1980 2014-12-03 Martin Jambor <mjambor@suse.cz>
1983 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
1984 type sizes before view_converting.
1986 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
1988 PR rtl-optimization/64151
1989 PR rtl-optimization/64156
1990 * ira-costs.c (scan_one_insn): Revert r218266.
1992 2014-12-03 Richard Biener <rguenther@suse.de>
1994 * builtins.c (fold_builtin_fpclassify): Change to take
1995 array of arguments instead of CALL_EXPR tree.
1996 (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
1997 (fold_builtin_n): Dispatch to fold_builtin_varargs.
1998 (fold_call_expr): Always use fold_builtin_n.
1999 (fold_builtin_call_array): Change to not build the unfolded call,
2000 always use fold_builtin_n.
2001 (fold_builtin_varargs): Change to take array of arguments instead
2003 (fold_call_stmt): Always use fold_builtin_n.
2004 * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
2005 * fold-const.c (fold_build_call_array_loc): Build the call
2006 if fold_builtin_call_array returned NULL_TREE.
2007 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
2008 a CALL_EXPR and use fold_builtin_call_array instead of
2011 2014-12-03 Alan Lawrence <alan.lawrence@arm.com>
2013 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
2014 bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
2015 ior<mode>3, xor<mode>3, one_cmpl<mode>2,
2016 aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
2017 aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
2018 aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
2019 ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
2020 reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
2021 vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
2022 Change VDQ to VDQ_I.
2024 (mul<mode>3): Change VDQM to VDQ_BHSI.
2025 (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
2026 aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
2027 aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
2029 (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
2030 aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
2031 aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
2032 Change VDW to VD_BHSI.
2033 (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
2034 Change VDIC to VD_BHSI.
2036 * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
2037 saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
2038 ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
2040 * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
2041 VDIC, VDQQHS): Remove.
2042 (Vwtype): Update comment (changing VDW to VD_BHSI).
2044 2014-12-03 Richard Biener <rguenther@suse.de>
2047 * builtins.c (fold_builtin_logarithm): Implement simplifications ...
2048 * match.pd: ... here as patterns.
2050 2014-12-03 Prachi Godbole <prachi.godbole@imgtec.com>
2052 * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
2053 p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
2054 (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
2057 2014-12-03 Tom de Vries <tom@codesourcery.com>
2059 PR rtl-optimization/63957
2060 * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
2061 * final.c (rest_of_handle_final): Replace flag_use_caller_save with
2063 (get_call_reg_set_usage): Same.
2064 * lra-assigns.c (lra_assign): Same.
2065 * lra-constraints.c (need_for_call_save_p): Same.
2066 * lra-lives.c (process_bb_lives): Same.
2067 * lra.c (lra): Same.
2068 * calls.c (expand_call): Same.
2069 (emit_library_call_value_1): Same.
2070 * config/arm/arm.c (arm_option_override): Same.
2071 * opts.c (default_options_table): Replace OPT_fuse_caller_save with
2073 * target.def (call_fusage_contains_non_callee_clobbers): Replace
2074 fuse-caller-save with fipa-ra.
2075 * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
2078 2014-12-03 Yury Gribov <y.gribov@samsung.com>
2080 * sanopt.c (maybe_get_single_definition): New function.
2081 (maybe_get_dominating_check): Ditto.
2082 (can_remove_asan_check): Ditto.
2083 (struct tree_map_traits): New struct.
2084 (struct sanopt_ctx): Use custom traits for asan_check_map.
2085 (maybe_optimize_ubsan_null_ifn): Move code to
2086 maybe_get_dominating_check.
2087 (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
2088 into account when optimizing.
2089 (sanopt_optimize_walker): Optimize ASan checks even when
2092 2014-12-03 Ilya Enkovich <ilya.enkovich@intel.com>
2094 * config/i386/constraints.md (Yr): New.
2095 * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
2096 (REG_CLASS_NAMES): Likewise.
2097 (REG_CLASS_CONTENTS): Likewise.
2098 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
2099 which use only NO_REX_SSE_REGS.
2100 (vec_set<mode>_0): Likewise.
2101 (*vec_setv4sf_sse4_1): Likewise.
2102 (sse4_1_insertps): Likewise.
2103 (*sse4_1_extractps): Likewise.
2104 (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
2105 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
2106 (*sse4_1_<code><mode>3<mask_name>): Likewise.
2107 (*sse4_1_<code><mode>3): Likewise.
2108 (*sse4_1_eqv2di3): Likewise.
2109 (sse4_2_gtv2di3): Likewise.
2110 (*vec_extractv4si): Likewise.
2111 (*vec_concatv2si_sse4_1): Likewise.
2112 (vec_concatv2di): Likewise.
2113 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
2114 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
2115 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
2116 (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
2117 (<sse4_1_avx2>_mpsadbw): Likewise.
2118 (<sse4_1_avx2>packusdw<mask_name>): Likewise.
2119 (<sse4_1_avx2>_pblendvb): Likewise.
2120 (sse4_1_pblendw): Likewise.
2121 (sse4_1_phminposuw): Likewise.
2122 (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
2123 (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
2124 (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
2125 (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
2126 (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
2127 (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2128 (sse4_1_ptest): Likewise.
2129 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
2130 (sse4_1_round<ssescalarmodesuffix>): Likewise.
2131 * config/i386/subst.md (mask_prefix4): New.
2132 * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
2134 2014-12-03 Segher Boessenkool <segher@kernel.crashing.org>
2136 PR rtl-optimization/52714
2137 * combine.c (try_combine): Allow combining two insns into two
2138 new insns if at least one of those is a noop.
2140 2014-12-03 Bin Cheng <bin.cheng@arm.com>
2142 * target.def (fusion_priority): Wrap code with @smallexample.
2143 * doc/tm.texi: Regenerated.
2145 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2147 * diagnostic.c (diagnostic_show_locus): Honor override_column when
2150 2014-12-02 Dmitry Vyukov <dvyukov@google.com>
2152 * asan.c: (asan_finish_file): Use default priority for constructors
2155 2014-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2158 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
2159 invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
2161 2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
2164 * config/i386/i386.c (decide_alg): Stop only if there aren't
2165 any usable algorithms.
2167 2014-12-02 Tom de Vries <tom@codesourcery.com>
2169 PR rtl-optimization/63718
2170 * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
2173 2014-12-02 Richard Biener <rguenther@suse.de>
2175 * match.pd: When combining divisions exclude the degenerate
2176 case involving INT_MIN from overflow handling.
2178 2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
2180 * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2182 2014-12-02 Martin Jambor <mjambor@suse.cz>
2185 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
2186 (cgraph_edge_brings_value_p): New parameter dest, use
2187 same_node_or_its_all_contexts_clone_p and check availability.
2188 (cgraph_edge_brings_value_p): Likewise.
2189 (get_info_about_necessary_edges): New parameter dest, pass it to
2190 cgraph_edge_brings_value_p. Update caller.
2191 (gather_edges_for_value): Likewise.
2192 (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
2193 both the destination and availability.
2195 2014-12-02 Uros Bizjak <ubizjak@gmail.com>
2198 * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
2199 using post-reload splitter. Use peephole2 pass instead.
2200 (call_value_osf_tlsldm): Ditto.
2201 (TLS_CALL): New int iterator.
2202 (tls): New int attribute.
2203 (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
2204 and call_value_tlsldm using TLS_CALL int iterator.
2206 2014-12-02 Richard Biener <rguenther@suse.de>
2207 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2209 * genmatch.c: Include hash-set.h.
2210 (fatal_at): Add source_location overload.
2211 (parser::record_operlist): New method.
2212 (parser::push_simplify): Likewise.
2213 (parser::oper_lists_set): New member.
2214 (parser::oper_lists): Likewise.
2215 (parser::parse_operation): Record seen operator list references.
2216 (parser::parse_c_expr): Likewise.
2217 (parser::parse_simplify): Init oper_lists_set and oper_lists
2218 and use push_simplify.
2219 (parser::parser): Init oper_lists_set and oper_lists.
2221 2014-12-02 Richard Biener <rguenther@suse.de>
2223 * match.pd: Restrict division combining to trunc_div and
2226 2014-12-02 Jakub Jelinek <jakub@redhat.com>
2228 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
2229 Remove NULL last argument from create_tmp_var calls.
2230 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
2231 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
2232 * config/i386/i386.c (add_condition_to_bb,
2233 ix86_atomic_assign_expand_fenv): Likewise.
2234 * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
2235 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2236 * config/aarch64/aarch64-builtins.c
2237 (aarch64_atomic_assign_expand_fenv): Likewise.
2238 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2240 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
2241 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
2242 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2244 * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
2245 gimple_build_assign instead of gimple_build_assign_with_ops and swap
2246 the order of first two arguments.
2247 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2248 Likewise. Remove last NULL_TREE argument.
2250 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2252 PR rtl-optimization/59278
2253 * combine (reg_dead_at_p): Consider REG_UNUSED notes.
2255 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2257 * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2259 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2261 * combine.c (is_parallel_of_n_reg_sets): New function.
2262 (can_split_parallel_of_n_reg_sets): New function.
2263 (try_combine): If I2 is a PARALLEL of two SETs, split it into
2264 two insns if possible.
2266 2014-12-01 Tobias Burnus <burnus@net-b.de>
2267 Jack Howarth <howarth@bromo.med.uc.edu>
2270 * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
2272 * doc/install.texi (ISL): Permit ISL 0.14.
2273 * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
2274 Conditionally use ISL 0.13+ functions.
2275 * graphite-interchange.c: Make 'extern "C"' conditional.
2276 * graphite-isl-ast-to-gimple.c: Ditto.
2277 * graphite-poly.c: Ditto.
2278 * graphite-sese-to-poly.c: Ditto.
2279 * config.in: Regenerate.
2280 * gcc/configure: Regenerate.
2282 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2284 * combine.c (distribute_links): Handle multiple SETs.
2286 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2288 * combine.c (struct insn_link): New field `regno'.
2289 (alloc_insn_link): New parameter `regno'. Use it.
2290 (find_single_use): Check the new field.
2291 (can_combine_def_p, can_combine_use_p): New functions. Split
2293 (create_log_links): ... here. Correct data type of `regno'.
2294 Adjust call to alloc_insn_link.
2295 (adjust_for_new_dest): Find regno, use it in call to
2297 (try_combine): Check reg_used_between_p when combining a PARALLEL
2298 as earlier insn. Adjust call to alloc_insn_link.
2299 (distribute_links): Check the new field.
2301 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2304 * real.c (real_from_string): Add missing mpfr_clear.
2306 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2309 * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
2310 release of stmts by converting it to an auto_vec.
2312 2014-12-01 Richard Biener <rguenther@suse.de>
2314 * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
2315 -Wno-unused-variable and -Wno-unused-but-set-variable to restore
2316 bootstrap with old GCC.
2317 (generic-match.o-warn): Likewise.
2319 2014-12-01 Richard Biener <rguenther@suse.de>
2321 * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
2322 Properly handle FIXED_CST shifts by INTEGER_CST.
2323 (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
2324 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
2325 VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
2326 VEC_WIDEN_MULT_ODD_EXPR handling here from ...
2327 (fold_binary_loc): ... here. Call const_binop overload
2330 2014-12-01 Marek Polacek <polacek@redhat.com>
2331 Jakub Jelinek <jakub@redhat.com>
2334 * ubsan.c (instrument_object_size): Stop searching if the base
2335 occurs in abnormal phi.
2337 2014-12-01 Marek Polacek <polacek@redhat.com>
2340 * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
2342 2014-12-01 Jakub Jelinek <jakub@redhat.com>
2344 * gimple.h (gimple_build_assign_stat): Remove prototype.
2345 (gimple_build_assign): Remove define. Add overload prototypes
2346 with tree lhs and either a tree rhs, or enum tree_code and
2347 1, 2 or 3 tree operands.
2348 * gimple.c (gimple_build_assign_stat): Renamed to...
2349 (gimple_build_assign): ... this. Add overloads with
2350 enum tree_code and 1, 2 or 3 tree operands.
2351 (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
2352 Rename the 3 operand overload to ...
2353 (gimple_build_assign_1): ... this. Make it static inline.
2354 * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
2355 instead of gimple_build_assign_with_ops, swap the order of first
2356 two arguments and adjust formatting where necessary.
2357 * tree-vect-slp.c (vect_get_constant_vectors,
2358 vect_create_mask_and_perm): Likewise.
2359 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2360 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2361 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2362 * tsan.c (instrument_builtin_call): Likewise.
2363 * tree-chkp.c (chkp_compute_bounds_for_assignment,
2364 chkp_generate_extern_var_bounds): Likewise.
2365 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2366 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2367 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2368 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2369 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
2370 gimple_mod_subtract): Likewise.
2371 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2372 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2373 vect_recog_sad_pattern, vect_handle_widen_op_by_const,
2374 vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
2375 vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
2376 vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
2377 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2378 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2379 adjust_bool_pattern_cast, adjust_bool_pattern,
2380 vect_recog_bool_pattern): Likewise.
2381 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
2382 insert_initializers, introduce_cast_before_cand,
2383 replace_one_candidate): Likewise.
2384 * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
2385 powi_as_mults, build_and_insert_binop, build_and_insert_cast,
2386 pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
2388 * tree-tailcall.c (adjust_return_value_with_ops,
2389 update_accumulator_with_ops): Likewise.
2390 * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
2391 * tree-ssa-reassoc.c (build_and_add_sum,
2392 optimize_range_tests_to_bit_test, update_ops,
2393 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2394 negate_value, repropagate_negates, attempt_builtin_powi,
2395 reassociate_bb): Likewise.
2396 * tree-vect-loop.c (vect_is_simple_reduction_1,
2397 get_initial_def_for_induction, vect_create_epilog_for_reduction):
2399 * ipa-split.c (split_function): Likewise.
2400 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2401 abs_replacement, neg_replacement): Likewise.
2402 * tree-profile.c (gimple_gen_edge_profiler): Likewise.
2403 * tree-vrp.c (simplify_truth_ops_using_ranges,
2404 simplify_float_conversion_using_ranges,
2405 simplify_internal_call_using_ranges): Likewise.
2406 * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
2407 * tree-vect-generic.c (expand_vector_divmod,
2408 optimize_vector_constructor): Likewise.
2409 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
2410 instrument_bool_enum_load): Likewise.
2411 * tree-ssa-loop-manip.c (create_iv): Likewise.
2412 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2413 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2414 expand_cilk_for, simd_clone_adjust): Likewise.
2415 * trans-mem.c (expand_transaction): Likewise.
2416 * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
2417 vect_setup_realignment, vect_permute_load_chain,
2418 vect_shift_permute_load_chain): Likewise.
2419 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2420 vectorizable_simd_clone_call, vect_gen_widened_results_half,
2421 vect_create_vectorized_demotion_stmts, vectorizable_conversion,
2422 vectorizable_shift, vectorizable_operation, vectorizable_store,
2423 permute_vec_elements, vectorizable_load): Likewise.
2425 2014-12-01 Richard Biener <rguenther@suse.de>
2428 * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
2429 htab_hash_pointer to not break PCH.
2431 2014-12-01 Richard Biener <rguenther@suse.de>
2433 PR tree-optimization/15346
2434 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
2435 add -Wno-unused-but-set-variable.
2436 * match.pd: Combine two successive divisions.
2438 2014-12-01 Richard Biener <rguenther@suse.de>
2441 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
2443 * fold-const.c (fold_binary_loc): Remove transforms here.
2445 2014-12-01 Maciej W. Rozycki <macro@codesourcery.com>
2447 * config/mips/mips.c (mips16_build_call_stub): Move the save of
2448 the return address in $18 ahead of passing arguments to FPRs.
2450 2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
2453 * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
2454 values in array domain.
2456 2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2458 PR tree-optimization/63941
2459 * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
2460 DOM_BB has non-true predicate, conditionally set non-true predicate
2463 2014-12-01 Martin Jambor <mjambor@suse.cz>
2466 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
2467 value of the argument to the type of the value in the condition.
2469 2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
2473 * config/sh/sh.c (sh_unspec_insn_p,
2474 sh_insn_operands_modified_between_p): New functions.
2475 (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
2476 are modified or if it has side effects, may trap or is volatile.
2478 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2480 * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
2481 create_tmp_reg): Add default NULL value to last argument.
2482 * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
2483 * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
2484 last argument from create_tmp_var_raw, create_tmp_var,
2485 create_tmp_reg, make_ssa_name and copy_ssa_name calls.
2486 * tree-ssa-strlen.c (get_string_length): Likewise.
2487 * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
2488 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2489 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2490 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2491 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2492 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2493 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2494 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2495 * tsan.c (instrument_expr, instrument_builtin_call,
2496 instrument_func_entry): Likewise.
2497 * varpool.c (add_new_static_var): Likewise.
2498 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2499 * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
2500 gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
2501 gimplify_init_ctor_eval_range, gimplify_init_constructor,
2502 gimplify_omp_atomic, gimplify_expr): Likewise.
2503 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2504 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
2505 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
2506 vect_loop_versioning): Likewise.
2507 * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
2508 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2509 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2510 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2511 vect_recog_over_widening_pattern): Likewise.
2512 * tree-sra.c (build_ref_for_offset, create_access_replacement):
2514 * tree-cfg.c (make_blocks): Likewise.
2515 * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
2517 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2518 * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
2520 * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
2521 * tree-tailcall.c (update_accumulator_with_ops): Likewise.
2522 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
2523 execute_load_motion, reassociate_to_the_same_stmt): Likewise.
2524 * tree-ssa-reassoc.c (build_and_add_sum,
2525 optimize_range_tests_to_bit_test, update_ops,
2526 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2527 negate_value, repropagate_negates): Likewise.
2528 * tree-vect-loop.c (vect_is_simple_reduction_1,
2529 vect_create_epilog_for_reduction): Likewise.
2530 * ipa-split.c (split_function): Likewise.
2531 * tree-inline.c (remap_ssa_name, setup_one_parameter,
2532 declare_return_variable, tree_function_versioning): Likewise.
2533 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2534 * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
2536 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2537 neg_replacement): Likewise.
2538 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2540 * tree-vrp.c (simplify_truth_ops_using_ranges,
2541 simplify_float_conversion_using_ranges,
2542 simplify_internal_call_using_ranges): Likewise.
2543 * tree-switch-conversion.c (emit_case_bit_tests,
2544 build_one_array, build_arrays, gen_def_assigns): Likewise.
2545 * gimple-fold.c (gimple_fold_builtin_memory_op,
2546 gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
2547 * tree-vect-generic.c (expand_vector_divmod,
2548 optimize_vector_constructor): Likewise.
2549 * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
2550 ubsan_expand_objsize_ifn, instrument_si_overflow,
2551 instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
2552 * tree-outof-ssa.c (insert_backedge_copies): Likewise.
2553 * tree-ssa-loop-manip.c (create_iv,
2554 tree_transform_and_unroll_loop): Likewise.
2555 * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
2556 lower_rec_input_clauses, lower_lastprivate_clauses,
2557 expand_parallel_call, expand_omp_for_static_chunk,
2558 expand_omp_atomic_pipeline, expand_omp_target,
2559 maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
2560 lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
2561 lower_depend_clauses, lower_omp_target, lower_omp_1,
2562 ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
2563 * tree-parloops.c (take_address_of, create_phi_for_local_result,
2564 create_call_for_reduction_1, separate_decls_in_region,
2565 create_parallel_loop): Likewise.
2566 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
2567 handle_scalar_deps_crossing_scop_limits): Likewise.
2568 * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
2569 expand_assign_tm, expand_call_tm, expand_transaction,
2570 ipa_tm_insert_gettmclone_call): Likewise.
2571 * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
2573 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2574 vectorizable_call, vectorizable_simd_clone_call,
2575 vectorizable_conversion, vectorizable_store, permute_vec_elements,
2576 vectorizable_load): Likewise.
2578 2014-11-29 Tobias Burnus <burnus@net-b.de>
2579 Manuel López-Ibáñez <manu@gcc.gnu.org>
2581 * opt-functions.awk (lang_enabled_by): Support || for
2583 * optc-gen.awk: Ditto.
2584 * doc/options.texi (LangEnabledBy, EnabledBy): Document the
2587 2014-11-28 Mike Stump <mikestump@comcast.net>
2589 * bitmap.c (bitmap_ior): Zap current as it could be deleted.
2590 (bitmap_ior_and_compl): Likewise.
2592 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2595 * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
2598 2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2601 * config/rs6000/rs6000.md (and<mode>3): Don't generate
2602 and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2604 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2606 PR rtl-optimization/64087
2607 * lra-lives.c (process_bb_lives): Add debug output.
2608 (lra_create_live_ranges): Don't remove dead insn on the second
2609 call of lra_create_live_ranges_1.
2611 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
2613 PR rtl-optimization/64037
2614 * combine.c (setup_incoming_promotions): Pass the argument
2615 before any promotions happen to promote_function_mode.
2617 2014-11-28 Evgeny Stupachenko <evstupac@gmail.com>
2619 * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
2620 permutations to loads group of size 3.
2622 2014-11-28 Jiong Wang <jiong.wang@arm.com>
2624 * config/arm/arm.md (copysignsf3): New pattern.
2625 (copysigndf3): Likewise.
2627 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2628 Ilya Verbin <ilya.verbin@intel.com>
2630 * omp-low.c (lower_omp_critical): Mark critical sections
2631 inside target functions as offloadable.
2633 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2635 * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
2636 file contains sections with LTO and offload IR, respectively.
2638 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2640 * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
2641 (symbol_table::compile): Set flag_generate_offload if there is something
2643 * common.opt (flag_generate_offload): New Variable declaration.
2644 * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
2645 * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
2646 flag_generate_offload is set.
2647 * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
2648 * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
2650 * toplev.c (compile_file): Emit LTO marker if offload info has been
2651 previously emitted. Do not emit lto_slim marker if
2652 flag_generate_offload is without flag_generate_lto.
2653 * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
2655 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2657 * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
2658 * config/arm/arm-tables.opt: Regenerate.
2659 * config/arm/arm-tune.md: Regenerate.
2660 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
2661 * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
2664 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2666 * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
2667 Include cortex-a17.md.
2668 * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
2669 * config/arm/arm-cores.def (cortex-a17): New entry.
2670 * config/arm/arm-tables.opt: Regenerate.
2671 * config/arm/arm-tune.md: Regenerate.
2672 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
2673 * config/arm/cortex-a17.md: New file.
2674 * config/arm/cortex-a17-neon.md: New file.
2675 * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
2676 * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
2678 2014-11-28 Richard Biener <rguenther@suse.de>
2681 * genmatch.c (dt_node::gen_kids_1): New function, split out
2682 from dt_node::gen_kids.
2683 (decision_tree::cmp_node): DT_TRUE are generally not equal.
2684 (decision_tree::find_node): Treat DT_TRUE as barrier for
2685 node CSE on the same level.
2686 (dt_node::append_node): Do not keep DT_TRUE last.
2687 (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
2689 2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2691 * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
2694 2014-11-27 Uros Bizjak <ubizjak@gmail.com>
2696 * config/i386/i386.md (preferred_for_size): New attribute
2697 (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size
2698 attribute to conditionally disable alternative 1.
2699 (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size
2700 and prefered_for_speed attributes to conditionally disable
2702 (*movxf_internal): Split Yx*r constraints to r,*r. Use
2703 preferred_for_size attribute to conditionally disable
2704 alternatives 3 and 4.
2705 (*movdf_internal): Split Yd*r constraints to r,*r. Use
2706 preferred_for_size and prefered_for_speed attributes to conditionally
2707 disable alternatives 3 and 4.
2708 * config/i386/constraints.md (Yd, Yx): Remove register constraints.
2710 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2712 * dwarf2out.c (set_block_origin_self): Skip nested functions.
2714 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
2717 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
2719 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
2721 2014-11-27 Martin Liska <mliska@suse.cz>
2722 David Malcolm <dmalcolm@redhat.com>
2724 * ipa-icf.c (sem_function::equals_private): int* is replaced with
2726 (sem_function::bb_dict_test): Likewise.
2727 * ipa-icf.h: Likewise.
2729 2014-11-27 Richard Biener <rguenther@suse.de>
2732 * fold-const.c (const_unop): Re-instantiate missing condition
2733 before calling fold_abs_const.
2735 PR tree-optimization/64088
2736 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
2737 the stmt break from the loop over use operands.
2739 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
2741 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
2743 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
2744 (fold_builtin_cpu): Ditto.
2745 * doc/extend.texi: Documment it.
2747 2014-11-27 Jakub Jelinek <jakub@redhat.com>
2750 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
2751 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
2752 not only if modifier is EXPAND_INITIALIZER, but whenever
2753 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
2755 PR tree-optimization/64024
2756 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
2757 field. Add simd_clone_info field.
2758 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
2759 (STMT_VINFO_SIMD_CLONE_INFO): Define.
2760 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
2761 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
2762 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
2763 base and linear_step from analysis phase and use it during transform
2764 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
2765 multiplied by linear_step.
2766 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
2769 * alias.c (find_base_term): Use std::swap. Prefer tmp2
2770 if it is CONSTANT_P other than CONST_INT.
2772 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2775 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
2777 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
2778 make it TARGET_EITHER.
2779 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
2780 and move HFmode handling from consttable_4 to it.
2781 (consttable_4): Move HFmode handling to consttable_2 pattern.
2782 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
2783 (consttable_2): Ditto.
2785 2014-11-27 Richard Biener <rguenther@suse.de>
2787 * tree-ssa-sccvn.c (try_to_simplify): Allow
2788 gimple_fold_stmt_to_constant_1 to follow SSA edges.
2790 2014-11-27 Richard Biener <rguenther@suse.de>
2792 PR tree-optimization/64083
2793 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2794 forcibly mark loop for removal the wrong way.
2796 2014-11-27 Richard Biener <rguenther@suse.de>
2799 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
2800 and instead return false when !fstrict-aliasing.
2802 2014-11-27 Richard Biener <rguenther@suse.de>
2804 PR tree-optimization/61634
2805 * tree-vect-slp.c: Include gimple-walk.h.
2806 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
2807 down the SLP tree for one scalar statement.
2808 (vect_detect_hybrid_slp_1): New walker function.
2809 (vect_detect_hybrid_slp_2): Likewise.
2810 (vect_detect_hybrid_slp): Properly handle pattern statements
2811 in a pre-scan over all loop stmts.
2813 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2816 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2817 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2818 aarch64_convert_mode, aarch64_gen_ccmp_first,
2819 aarch64_gen_ccmp_next): New functions.
2820 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
2822 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2824 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
2825 without -pie or -shared, error on -fsanitize=thread -static instead.
2827 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
2830 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
2831 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2832 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
2833 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
2834 Add new optional parameter exclude_virtual_thunks.
2835 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
2836 optional parameter exclude_virtual_thunks.
2837 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
2838 (cgraph_node::set_pure_flag): Likewise.
2839 (cgraph_node::function_symbol): Simplified.
2840 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2841 * ipa-pure-const.c (analyze_function): For virtual thunks set
2842 pure_const_state to IPA_NEITHER.
2843 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
2845 2014-11-26 Richard Biener <rguenther@suse.de>
2848 * tree-data-ref.c (split_constant_offset_1): Do not follow
2849 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2851 2014-11-26 Richard Biener <rguenther@suse.de>
2853 * fold-const.h (const_unop): Declare.
2854 (const_binop): Likewise.
2855 * fold-const.c (const_binop): Export overload that expects
2856 a type parameter and dispatches to fold_relational_const as well.
2857 Check both operand kinds for guarding the transforms.
2858 (const_unop): New function, with constant folding from fold_unary_loc.
2859 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
2860 Remove constant folding done there from the simplifications.
2861 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
2862 (fold_negate_expr): Remove dead code from the REAL_CST case.
2863 Avoid building garbage in the COMPLEX_CST case.
2864 * gimple-match-head.c (gimple_resimplify1): Dispatch to
2866 (gimple_resimplify2): Dispatch to const_binop.
2867 (gimple_simplify): Likewise.
2869 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2872 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
2873 debug statement when searching for a new position for
2874 bounds load/creation statement.
2876 2014-11-26 Marek Polacek <polacek@redhat.com>
2879 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
2880 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
2881 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
2883 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2886 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
2887 proper size for function_code bitfield.
2888 (pack_ts_function_decl_value_fields): Likewise.
2890 2014-11-21 Mark Wielaard <mjw@redhat.com>
2892 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
2893 * opts.c (common_handle_option): Accept -gdwarf-5.
2894 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
2895 DW_LANG_C_plus_plus_14.
2896 (lower_bound_default): Likewise. Plus DW_LANG_C11.
2897 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
2898 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
2899 (output_compilation_unit_header): Output at most a DWARFv4 header.
2900 (output_skeleton_debug_sections): Likewise.
2901 (output_line_info): Likewise.
2902 (output_aranges): Document header version number.
2904 2014-11-26 Richard Biener <rguenther@suse.de>
2906 * gimple-fold.c (get_symbol_constant_value): Allow all
2907 GIMPLE register type zero-constants.
2909 2014-11-26 Mark Wielaard <mjw@redhat.com>
2911 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
2912 function decl has TREE_THIS_VOLATILE.
2914 2014-11-26 Richard Biener <rguenther@suse.de>
2916 PR tree-optimization/62238
2917 * tree-predcom.c (ref_at_iteration): Unshare the expression
2918 before gimplifying it.
2919 (prepare_initializers_chain): Discard unused seq.
2921 2014-11-26 Prachi Godbole <prachi.godbole@imgtec.com>
2923 * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
2926 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2928 * ira-lives.c (process_bb_node_lives): Make code with conditional
2929 REAL_PIC_OFFSET_TABLE_REGNUM.
2931 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2934 * ira-lives.c (process_bb_node_lives): Check and remove conflict
2935 of pic pseudo with pic hard reg.
2937 2014-11-25 Rohit <rohitarulraj@freescale.com>
2940 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
2941 added GCC hard register numbers for SPE high registers.
2943 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2945 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
2946 before removing it, not after.
2948 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2950 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
2953 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2955 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
2958 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2960 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
2961 (rest of file): Replace those with code resp. CODE.
2963 2014-11-25 Tom de Vries <tom@codesourcery.com>
2965 * tree-cfg.c (verify_sese): New function.
2966 (move_sese_region_to_fn): Call verify_sese.
2967 * tree-cfg.h (verify_sese): Declare.
2969 2014-11-25 Richard Biener <rguenther@suse.de>
2972 * lto-streamer-out.c (output_struct_function_base): Stream
2974 * lto-streamer-in.c (input_struct_function_base): Likewise.
2976 2014-11-25 Martin Liska <mliska@suse.cz>
2980 * sreal.c (sreal::operator+): Addition fixed.
2981 (sreal::signedless_plus): Negative numbers are
2983 (sreal::operator-): Subtraction is fixed.
2984 (sreal::signedless_minus): Negative numbers are
2986 * sreal.h (sreal::operator<): Equal negative numbers
2987 are compared correctly.
2988 (sreal::shift): New checking asserts are introduced.
2991 2014-11-25 Richard Biener <rguenther@suse.de>
2993 PR tree-optimization/61927
2994 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
2995 of group and pattern analysis to the one in GCC 4.8.
2997 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
2998 Jakub Jelinek <jakub@redhat.com>
3000 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
3002 * lto-wrapper.c (append_offload_options): Likewise.
3004 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
3006 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
3007 load the static chain if the call was originally direct.
3009 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
3012 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
3013 devirtualization is disabled.
3015 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3018 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3019 Altivec & -16 mask if the type is not valid for Altivec registers.
3020 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3021 reg) that occurs during push_reload processing.
3023 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3024 alternative for moving constant vectors which are easy altivec
3025 constants to GPRs. Set the length attribute each of the
3028 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
3029 work in progress patch was committed instead of the fixes for
3031 * config/rs6000/rs6000.c: Likewise.
3033 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3036 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
3037 and -fno-devirtualize more carefully.
3038 (can_remove_node_now_p): Update.
3040 2014-11-24 Andrew Pinski <apinski@cavium.com>
3043 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
3045 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3047 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
3049 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3051 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
3052 Refactor by combining switch statements and make arrays into scalars.
3054 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
3057 * dbxout.c: Include stringpool.h
3058 (dbxout_type) [default]: Ignore auto type.
3060 2014-11-24 Richard Biener <rguenther@suse.de>
3062 PR tree-optimization/63679
3063 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
3064 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
3065 to properly leave off at -1.
3066 (fully_constant_vn_reference_p): Generalize folding from
3067 constant initializers.
3068 (vn_reference_lookup_3): When looking through aggregate copies
3069 handle offsetted reads and try simplifying the result to
3071 * gimple-fold.h (fold_ctor_reference): Export.
3072 * gimple-fold.c (fold_ctor_reference): Likewise.
3074 2014-11-24 Petr Murzin <petr.murzin@intel.com>
3076 * simplify-rtx.c (simplify_ternary_operation): Simplify
3077 vec_merge (vec_duplicate (vec_select)).
3079 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3081 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
3082 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
3083 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
3085 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3087 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
3088 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
3089 (cortexa57_tunings): Likewise.
3090 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
3092 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3094 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
3095 in the not conditional jump case.
3096 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3097 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3099 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3101 * config/aarch64/aarch64.c: Include tm-constrs.h
3102 (AARCH64_FUSE_ADRP_ADD): Define.
3103 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
3104 (cortexa53_tunings): Likewise.
3105 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
3107 2014-11-24 Martin Liska <mliska@suse.cz>
3109 * ipa-inline.c (edge_badness): long is replaced by sreal
3110 as fibonacci_heap template type.
3111 (update_edge_key): Likewise.
3112 (inline_small_functions): Likewise.
3114 2014-11-24 Martin Liska <mliska@suse.cz>
3116 * predict.c (propagate_freq): More elegant sreal API is used.
3117 (estimate_bb_frequencies): Precomputed constants replaced by integer
3119 * sreal.c (sreal::normalize): New function.
3120 (sreal::to_int): Likewise.
3121 (sreal::operator+): Likewise.
3122 (sreal::operator-): Likewise.
3123 (sreal::signedless_plus): Likewise.
3124 (sreal::signedless_minus): Likewise.
3125 (sreal::operator/): Negative number support is added.
3126 * sreal.h: Definition of new functions added.
3127 (inline sreal operator<<): New function.
3128 (inline sreal operator>>): Likewise.
3130 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3132 * config/aarch64/aarch64-protos.h (struct tune_params): Add
3134 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
3135 (cortexa53_tunings): Likewise.
3136 (cortexa57_tunings): Likewise.
3137 (thunderx_tunings): Likewise.
3138 (aarch64_macro_fusion_p): New function.
3139 (aarch_macro_fusion_pair_p): Likewise.
3140 (TARGET_SCHED_MACRO_FUSION_P): Define.
3141 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3142 (AARCH64_FUSE_MOV_MOVK): Likewise.
3143 (AARCH64_FUSE_NOTHING): Likewise.
3145 2014-11-24 Martin Liska <mliska@suse.cz>
3148 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
3149 with replace_key method.
3150 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
3151 (fibonacci_heap::replace_key_data): Likewise.
3152 (fibonacci_heap::replace_key): New method that can even increment key,
3153 this operation costs O(log N).
3154 (fibonacci_heap::extract_min): New argument.
3155 (fibonacci_heap::delete_node): Likewise.
3157 2014-11-24 Richard Biener <rguenther@suse.de>
3159 PR tree-optimization/55334
3160 * function.h (struct function): Add last_clique member.
3161 * tree-inline.c (remap_dependence_clique): New function.
3162 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
3163 (copy_tree_body_r): Likewise.
3164 (copy_cfg_body): Free dependence map.
3165 (copy_gimple_seq_and_replace_locals): Likewise.
3166 * tree-pretty-print.c (dump_generic_node): Dump
3168 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
3169 to answer alias query.
3170 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
3171 tree-pretty-print.h and gimple-walk.h.
3172 (struct variable_info): Add is_restrict_var flag and ruid
3174 (new_var_info): Initialize is_restrict_var.
3175 (make_constraint_from_restrict): Likewise.
3176 (create_variable_info_for): Exclude restricts from global vars
3178 (intra_create_variable_infos): But not those from parameters.
3179 (visit_loadstore): New function.
3180 (maybe_set_dependence_info): Likewise.
3181 (compute_dependence_clique): Likewise.
3182 (compute_may_aliases): Call compute_dependence_clique.
3183 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
3185 (dr_may_alias_p): Use recorded dependence info to answer
3187 * tree-core.h (struct tree_base): Add clique, base struct in
3189 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
3190 (MR_DEPENDENCE_BASE): Likewise.
3191 * tree-inline.h (dependence_hasher): New hash-map kind.
3192 (struct copy_body_data): Add dependence_map pointer.
3193 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
3194 throwing away dependence info.
3195 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
3196 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
3198 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
3201 * config/sh/sh_optimize_sett_clrt.cc
3202 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
3203 of void. Abort at complex edges.
3204 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
3207 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
3210 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
3212 * configure: Regenerated.
3213 * config.in: Regenerated.
3215 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3217 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
3218 clones as having abstract origin used.
3219 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
3221 (clone_inlined_nodes): Copy abstract originflag.
3222 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
3223 abstract origin node.
3225 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
3227 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
3228 * config/i386/i386.c (ix86_option_override_internal): Do not increase
3229 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3231 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3235 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
3236 Do not emit bitwise not insn. Emit logical not insn sequence instead.
3237 Adjust related comments throughout the file.
3239 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3243 * config/sh/sh.c (sh_is_logical_t_store_expr,
3244 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
3245 (sh_split_movrt_negc_to_movt_xor): New function.
3246 (sh_find_set_of_reg): Move to ...
3247 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
3248 to template function.
3249 (set_of_reg): Use rtx_insn* for insn member.
3250 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
3251 rtx_insn* for insn argument.
3252 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
3253 sequence using new sh_split_movrt_negc_to_movt_xor function.
3254 (movrt_xor): Allow also for SH2A.
3255 (*movt_movrt): Delete insns and splits.
3257 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
3259 PR tree-optimization/60770
3260 * tree-sra.c (clobber_subtree): New function.
3261 (sra_modify_constructor_assign): Call it.
3263 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
3266 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
3268 (process_bb_lives): Rename dead_insn_p on remove_p
3269 and global_live_info_p on dead_insn_p. Calculate local live info
3270 unconditionally. Remove last argument in calls mark_regno_live and
3271 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
3272 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
3273 Return bool. Rename global_live_info_p on dead_insn_p. Return
3274 flag of live info change.
3275 (lra_create_live_ranges): New.
3277 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3281 * internal-fn.c (expand_arith_overflow_result_store,
3282 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
3283 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
3284 adjust arguments to those functions. Use unsignedp = true for
3285 EQ, NE, GEU, LEU, LTU and GTU comparisons.
3287 PR tree-optimization/64006
3288 * tree-vrp.c (stmt_interesting_for_vrp): Return true
3289 for {ADD,SUB,MUL}_OVERFLOW internal calls.
3290 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
3291 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
3292 immediate uses would change their value ranges and return
3293 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
3294 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
3295 interesting for vrp.
3297 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3300 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3301 Altivec & -16 mask if the type is not valid for Altivec registers.
3302 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3303 reg) that occurs during push_reload processing.
3305 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3306 alternative for moving constant vectors which are easy altivec
3307 constants to GPRs. Set the length attribute each of the
3310 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
3312 * configure.ac: When checking for MIPS .module support ensure that
3313 o32 FPXX is supported to avoid a second configure check.
3314 * configure: Regenerate.
3316 2014-11-21 Jiong Wang <jiong.wang@arm.com>
3318 * config/aarch64/iterators.md (VS): New mode iterator.
3319 (vsi2qi): New mode attribute.
3321 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
3322 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
3323 * config/aarch64/aarch64-builtins.c
3324 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
3326 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3329 * configure: Regenerated.
3331 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3333 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
3335 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3337 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3338 OPTION_MASK_ISA_PCOMMIT_SET): New.
3339 (ix86_handle_option): Handle OPT_mpcommit.
3340 * config.gcc: Add pcommitintrin.h
3341 * config/i386/pcommitintrin.h: New file.
3342 * config/i386/cpuid.h (bit_PCOMMIT): Define.
3343 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
3344 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3346 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
3347 (PTA_PCOMMIT): Define.
3348 (ix86_option_override_internal): Handle new option.
3349 (ix86_valid_target_attribute_inner_p): Add pcommit.
3350 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
3351 (bdesc_special_args): Add __builtin_ia32_pcommit.
3352 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
3353 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
3354 (pcommit): New instruction.
3355 * config/i386/i386.opt: Add mpcommit.
3356 * config/i386/x86intrin.h: Include pcommitintrin.h.
3358 2014-11-20 Mark Wielaard <mjw@redhat.com>
3361 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
3362 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
3363 (darwin_override_options): Likewise.
3364 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3366 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3368 * dbxout.c (get_lang_number): Likewise.
3369 (dbxout_type): Likewise.
3370 (dbxout_symbol_location): Likewise.
3371 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
3372 also for DW_LANG_{C,C99,ObjC}.
3373 (highest_c_language): New function.
3374 (gen_compile_unit_die): Call highest_c_language to merge LTO
3375 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
3376 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
3377 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
3378 * langhooks.h (struct lang_hooks): Add version comment to name.
3379 (lang_GNU_C): New function declaration.
3380 (lang_GNU_CXX): Likewise.
3381 * langhooks.c (lang_GNU_C): New function.
3382 (lang_GNU_CXX): Likewise.
3383 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
3385 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3387 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
3388 OPTION_MASK_ISA_CLWB_SET): New.
3389 (ix86_handle_option): Handle OPT_mclwb.
3390 * config.gcc: Add clwbintrin.h.
3391 * config/i386/clwbintrin.h: New file.
3392 * config/i386/cpuid.h (bit_CLWB): Define.
3393 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
3394 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3396 * config/i386/i386.c (ix86_target_string): Add -mclwb.
3398 (ix86_option_override_internal): Handle new option.
3399 (ix86_valid_target_attribute_inner_p): Add clwb.
3400 (ix86_builtins): Add IX86_BUILTIN_CLWB.
3401 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
3402 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
3403 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
3404 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
3405 (clwb): New instruction.
3406 * config/i386/i386.opt: Add mclwb.
3407 * config/i386/x86intrin.h: Include clwbintrin.h.
3409 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3411 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
3412 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
3413 (ix86_handle_option): Handle OPT_mavx512vbmi.
3414 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
3415 * config/i386/avx512vbmiintrin.h: New file.
3416 * config/i386/avx512vbmivlintrin.h: Ditto.
3417 * config/i386/cpuid.h (bit_AVX512VBMI): New.
3418 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
3419 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3421 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
3422 (PTA_AVX512VBMI): Define.
3423 (ix86_option_override_internal): Handle new options.
3424 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
3425 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
3426 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
3427 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
3428 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
3429 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
3430 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
3431 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
3432 IX86_BUILTIN_VPERMI2VARQI128.
3433 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
3434 __builtin_ia32_vpmultishiftqb256_mask,
3435 __builtin_ia32_vpmultishiftqb128_mask,
3436 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
3437 __builtin_ia32_vpermt2varqi512_maskz,
3438 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
3439 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
3440 __builtin_ia32_vpermt2varqi256_maskz,
3441 __builtin_ia32_vpermt2varqi128_mask,
3442 __builtin_ia32_vpermt2varqi128_maskz,
3443 __builtin_ia32_vpermi2varqi256_mask,
3444 __builtin_ia32_vpermi2varqi128_mask.
3445 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
3446 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
3447 * config/i386/i386.opt: Add mavx512vbmi.
3448 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
3449 avx512vbmivlintrin.h.
3450 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
3451 (VI1_AVX512VL): New iterator.
3452 (<avx512>_permvar<mode><mask_name>): Use it.
3453 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
3454 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
3455 (<avx512>_vpermi2var<mode>3_mask): Ditto.
3456 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
3457 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
3458 (<avx512>_vpermt2var<mode>3_mask): Ditto.
3459 (vpmultishiftqb<mode><mask_name>): Ditto.
3461 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3463 PR rtl-optimization/63952
3464 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
3465 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
3466 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
3468 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3470 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
3471 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
3472 (ix86_handle_option): Handle OPT_mavx512ifma.
3473 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
3474 * config/i386/avx512ifmaintrin.h: New file.
3475 * config/i386/avx512ifmaivlntrin.h: Ditto.
3476 * config/i386/cpuid.h (bit_AVX512IFMA): New.
3477 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3479 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3481 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
3482 (PTA_AVX512IFMA): Define.
3483 (ix86_option_override_internal): Handle new options.
3484 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
3485 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
3486 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
3487 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
3488 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
3489 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
3490 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
3491 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
3492 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
3493 __builtin_ia32_vpmadd52luq512_maskz,
3494 __builtin_ia32_vpmadd52huq512_mask,
3495 __builtin_ia32_vpmadd52huq512_maskx,
3496 __builtin_ia32_vpmadd52luq256_mask,
3497 __builtin_ia32_vpmadd52luq256_maskz,
3498 __builtin_ia32_vpmadd52huq256_mask,
3499 __builtin_ia32_vpmadd52huq256_maskz,
3500 __builtin_ia32_vpmadd52luq128_mask,
3501 __builtin_ia32_vpmadd52luq128_maskz,
3502 __builtin_ia32_vpmadd52huq128_mask,
3503 __builtin_ia32_vpmadd52huq128_maskz,
3504 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
3505 * config/i386/i386.opt: Add mavx512ifma.
3506 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
3507 avx512ifmavlintrin.h.
3508 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
3510 (VPMADD52): New iterator.
3511 (vpmadd52type): New attribute.
3512 (vpamdd52huq<mode>_maskz): New.
3513 (vpamdd52luq<mode>_maskz): Ditto.
3514 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
3515 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
3517 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
3520 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3521 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3523 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
3525 * config/mips/mips.c (mips_process_sync_loop): Place a
3526 nop in the delay slot of the branch likely instruction.
3527 (mips_output_sync_loop): Ensure mips_branch_likely is
3528 set before calling mips_output_sync_loop.
3529 (mips_sync_loop_insns): Likewise.
3531 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3534 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
3535 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
3538 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
3540 Forward-port from 2014-10-30 4_9-branch r216934
3543 * config/avr/avr-protos.h (regmask): New inline function.
3544 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
3545 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
3546 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
3547 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
3548 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
3549 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
3550 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
3551 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
3552 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
3553 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
3554 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
3555 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
3556 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
3559 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3562 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
3563 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
3565 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
3567 * config/aarch64/aarch64-simd.md
3568 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
3569 output mnemonic and operands.
3570 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
3571 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
3573 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3575 * config/i386/i386.c (ix86_option_override_internal): Increase
3576 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3578 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3581 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
3582 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
3583 replace for V16QI, V16HI and V32QI modes.
3584 (ix86_expand_vec_perm_const_1): Add new expand.
3586 2014-11-21 Nick Clifton <nickc@redhat.com>
3588 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
3589 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
3590 (rl78_expand_prologue): Save the ES register in interrupt handlers
3592 (rl78_expand_epilogue): Restore the ES register if necessary.
3593 (rl78_start_function): Mention if the function uses the ES
3595 (rl78_lo16): Record the use of the ES register.
3596 (transcode_memory_rtx): Likewise.
3598 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3600 PR tree-optimization/61773
3601 * tree-ssa-strlen.c (get_string_length): Don't assert
3602 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
3605 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
3606 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
3607 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
3609 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3611 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
3612 HOST_WIDE_INT_M1U instead of ~0.
3613 (includes_rldicr_lshift_p): Likewise.
3615 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3617 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
3618 we need to look into its operand to determine if it is a valid
3621 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3623 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
3624 vaarg_p argument and create correct CFI info.
3625 (nds32_expand_prologue): Pass true or false to
3626 nds32_emit_stack_push_multiple function.
3628 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3630 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
3631 as RTX_FRAME_RELATED_P rtx.
3633 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3635 * config/nds32/nds32.opt (march): Add help message.
3637 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
3639 * tree-vrp.c (test_for_singularity): New parameter
3640 strict_overflow_p. Set *strict_overflow_p to true if signed
3641 overflow must be undefined for the return value to satisfy the
3643 (simplify_cond_using_ranges): Don't perform the simplification
3644 if it violates overflow rules.
3646 2014-11-20 Marek Polacek <polacek@redhat.com>
3648 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
3650 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3652 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3653 condition would be removed due to undefined behaviour.
3655 2014-11-20 Andrew Pinski <apinski@cavium.com>
3659 * ipa-polymorphic-call.c (possible_placement_new):
3660 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
3661 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3662 (extr_type_from_vtbl_ptr_store): Likewise.
3664 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
3666 * config/rs6000/constraints.md: Avoid signed integer overflows.
3667 * config/rs6000/predicates.md: Likewise.
3668 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
3669 (includes_rldic_lshift_p): Likewise.
3670 (includes_rldicr_lshift_p): Likewise.
3671 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
3672 * loop-iv.c (determine_max_iter): Likewise.
3673 (iv_number_of_iterations): Likewise.
3674 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
3675 * varasm.c (get_section_anchor): Likewise.
3677 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
3680 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
3681 expression to aarch64_simd_lane_bounds.
3682 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
3684 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
3685 call to aarch64_simd_lane_bounds.
3686 (aarch64_get_lanedi): Likewise.
3687 (aarch64_ld2_lane<mode>): Likewise.
3688 (aarch64_ld3_lane<mode>): Likewise.
3689 (aarch64_ld4_lane<mode>): Likewise.
3690 (aarch64_im_lane_boundsi): Likewise.
3691 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
3692 parameter. Report calling function in error message if exp is non-NULL.
3694 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3697 * config/sh/sh.c: Use signed char for signed field.
3699 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3701 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
3704 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3706 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
3707 tree-scalar-evolution.c: Replace htab with hash_table.
3709 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3711 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
3712 (lto_free_function_in_decl_state): Likewise.
3713 * lto-streamer-out.c (copy_function_or_variable): Likewise.
3714 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
3715 (lto_file_decl_data_num_ ## name ## s): Likewise.
3716 (struct lto_tree_ref_table): Remove.
3717 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
3719 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3721 * hash-map.h (hash_map::iterator): New class.
3722 (hash_map::begin): New method.
3723 (hash_map::end): Likewise.
3724 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
3725 replace splay_tree with hash_map.
3727 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3729 * hash-table.h (hash_table::hash_table): Call alloc_entries.
3730 (hash_table::alloc_entries): new method.
3731 (hash_table::expand): Call alloc_entries.
3732 (hash_table::empty): Likewise.
3734 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3736 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
3737 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
3739 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3741 * doc/gty.texi: Document the new cache gty attribute.
3742 * gengtype.c (finish_cache_funcs): New function.
3743 (write_roots): Call gt_clear_cache on global variables with the cache
3745 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
3746 * ggc.h (gt_clear_caches): New declaration.
3747 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
3749 (gt_cleare_cache): New function.
3750 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
3752 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3754 * combine.c (try_combine): Prefer to delete dead SETs inside
3755 a PARALLEL over keeping them.
3757 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3759 * combine.c (combine_validate_cost): Always print the insn costs
3762 2014-11-20 Richard Henderson <rth@redhat.com>
3765 * config/i386/i386.c (ix86_static_chain): Reinstate the check
3766 for DECL_STATIC_CHAIN.
3768 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
3770 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
3772 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
3773 aarch64_cannot_force_const_mem, aarch64_classify_address,
3774 aarch64_classify_symbolic_expression): Fixup call to
3775 aarch64_classify_symbol.
3776 (aarch64_classify_symbol): Add range-checking for
3777 symbol + offset addressing for tiny and small models.
3779 2014-11-20 Richard Biener <rguenther@suse.de>
3782 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
3783 Guard with single-use operand 0.
3785 2014-11-20 Richard Biener <rguenther@suse.de>
3787 PR tree-optimization/63677
3788 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
3789 (avail_exprs_stack): Make a vector of pairs.
3790 (struct hash_expr_elt): Replace stmt member with vop member.
3791 (expr_elt_hasher::equal): Simplify.
3792 (initialize_hash_element): Adjust.
3793 (initialize_hash_element_from_expr): Likewise.
3794 (dom_opt_dom_walker::thread_across_edge): Likewise.
3795 (record_cond): Likewise.
3796 (dom_opt_dom_walker::before_dom_children): Likewise.
3797 (print_expr_hash_elt): Likewise.
3798 (remove_local_expressions_from_table): Restore previous state
3800 (record_equivalences_from_stmt): Record &x + CST as constant
3801 &MEM[&x, CST] for further propagation.
3802 (vuse_eq): New function.
3803 (lookup_avail_expr): For loads use the alias oracle to see
3804 whether a candidate from the expr hash is usable.
3805 (avail_expr_hash): Do not hash VUSEs.
3807 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3810 * config/arm/arm.md (*movhi_insn): Use right formatting
3813 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
3816 * function.c (assign_parms): Move init of pic_offset_table_rtx
3818 * cfgexpand.c (expand_used_vars): ...here.
3820 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3822 * tree.c (free_lang_data_in_type): If BINFO has no important
3823 information in it, set it to NULL.
3824 (get_binfo_at_offset): Do not walk fields, only bases.
3825 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
3827 * ipa-polymorphic-call.c (record_known_type): Likewise.
3829 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3832 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
3833 congruence_class_group *.
3835 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3838 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
3839 Output "b" and "nb" suffix for FP mode.
3841 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3844 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream
3845 out DECL_FUNCTION_SPECIFIC_TARGET
3846 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream
3847 in DECL_FUNCTION_SPECIFIC_TARGET.
3849 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3852 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
3854 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3857 * lra.c (lra): After creating live ranges in preparation for call
3858 to lra_inheritance, set live_p to true.
3860 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3863 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
3865 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
3867 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3870 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
3871 vec<> to auto_vec<> to fix a leak.
3873 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3876 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
3878 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3881 * ira-costs.c (ira_costs_c_finalize): New function.
3882 * ira.h (ira_costs_c_finalize): New prototype.
3883 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
3885 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3888 * ipa-reference.c (ipa_reference_c_finalize): Release
3889 optimization_summary_obstack.
3891 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3894 * toplev.c (toplev::finalize): Free opts_obstack.
3896 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3899 * toplev.c (toplev::finalize): Clean up save_decoded_options.
3901 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3905 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
3906 local bbs_in_hot_partition from vec<> to auto_vec<>.
3908 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3911 * config/alpha/alpha.c (alpha_option_override): Remove static from
3912 "handle_trap_shadows_info" and "align_insns_info".
3913 * config/i386/i386.c (ix86_option_override): Likewise for
3914 "insert_vzeroupper_info".
3915 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
3916 "rl78_devirt_info" and "rl78_move_elim_info".
3917 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
3918 "analyze_swaps_info".
3919 * context.c (gcc::context::~context): New.
3920 * context.h (gcc::context::~context): New.
3921 * dumpfile.c (dump_files): Add "false" initializers for new field
3923 (gcc::dump_manager::~dump_manager): New.
3924 (gcc::dump_manager::dump_register): Add param "take_ownership".
3925 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
3926 (gcc::dump_manager::~dump_manager): New.
3927 (gcc::dump_manager::dump_register): Add param "take_ownership".
3928 * pass_manager.h (gcc::pass_manager::operator delete): New.
3929 (gcc::pass_manager::~pass_manager): New.
3930 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
3931 new "owns_strings" argument to dump_register.
3932 (pass_manager::operator delete): New.
3933 (delete_pass_tree): New function.
3934 (pass_manager::~pass_manager): New.
3935 * statistics.c (statistics_early_init): Pass "false" to
3936 new "owns_strings" argument to dump_register.
3937 * toplev.c (toplev::finalize): Clean up the context and thus the
3940 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3943 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
3944 obstack_free when cleaning up valid_mode_changes_obstack.
3946 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3949 * opts.c (finalize_options_struct): New.
3950 * opts.h (finalize_options_struct): New.
3951 * toplev.c (toplev::finalize): Call finalize_options_struct
3952 on global_options and global_options_set.
3954 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3955 Jakub Jelinek <jakub@redhat.com>
3959 * gcc.c (process_command): Don't check for input/output
3960 filename equality if output is HOST_BIT_BUCKET.
3961 * toplev.c (init_asm_output): Likewise.
3963 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3965 Merger of git branch "gimple-classes-v2-option-3".
3967 * ChangeLog.gimple-classes: New.
3969 * coretypes.h (struct gcond): Add forward decl.
3970 (struct gdebug): Likewise.
3971 (struct ggoto): Likewise.
3972 (struct glabel): Likewise.
3973 (struct gswitch): Likewise.
3974 (struct gassign): Likewise.
3975 (struct gasm): Likewise.
3976 (struct gcall): Likewise.
3977 (struct gtransaction): Likewise.
3978 (struct greturn): Likewise.
3979 (struct gbind): Likewise.
3980 (struct gcatch): Likewise.
3981 (struct geh_filter): Likewise.
3982 (struct geh_mnt): Likewise.
3983 (struct geh_else): Likewise.
3984 (struct gresx): Likewise.
3985 (struct geh_dispatch): Likewise.
3986 (struct gphi): Likewise.
3987 (struct gtry): Likewise.
3988 (struct gomp_atomic_load): Likewise.
3989 (struct gomp_atomic_store): Likewise.
3990 (struct gomp_continue): Likewise.
3991 (struct gomp_critical): Likewise.
3992 (struct gomp_for): Likewise.
3993 (struct gomp_parallel): Likewise.
3994 (struct gomp_task): Likewise.
3995 (struct gomp_sections): Likewise.
3996 (struct gomp_single): Likewise.
3997 (struct gomp_target): Likewise.
3998 (struct gomp_teams): Likewise.
4000 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
4001 for renaming of gimple subclasses.
4003 * gdbhooks.py: Update.
4005 * gimple-iterator.c (gsi_for_phi): New.
4006 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4008 * gimple-iterator.h (struct gphi_iterator): New subclass of
4009 gimple_stmt_iterator.
4010 (gsi_for_phi): New prototype.
4011 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4013 (gsi_next_nonvirtual_phi): Strengthen param from
4014 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
4017 * gsstruct.def: Update for renamings of classes.
4019 * gimple.c (gimple_build_return): Strengthen return type from
4020 gimple to greturn *.
4021 (gimple_call_reset_alias_info): Strengthen param to gcall *.
4022 (gimple_build_call_1): Strengthen return type from gimple to
4024 (gimple_build_call_vec): Likewise.
4025 (gimple_build_call): Likewise.
4026 (gimple_build_call_valist): Likewise.
4027 (gimple_build_call_internal_1): Likewise.
4028 (gimple_build_call_internal): Likewise.
4029 (gimple_build_call_internal_vec): Likewise.
4030 (gimple_build_call_from_tree): Likewise.
4031 (gimple_build_assign_stat): Strengthen return type from gimple to
4033 (gimple_build_assign_with_ops): Likewise.
4034 (gimple_build_assign_with_ops): Likewise.
4035 (gimple_build_cond): Strengthen return type from gimple to
4037 (gimple_build_cond_from_tree): Likewise.
4038 (gimple_cond_set_condition_from_tree): Require a gcond *.
4039 (gimple_build_label): Strengthen return type from gimple to
4041 (gimple_build_goto): Strengthen return type from gimple to
4043 (gimple_build_bind): Strengthen return type from gimple to
4045 (gimple_build_asm_1): Strengthen return type from gimple to
4047 (gimple_build_asm_vec): Likewise.
4048 (gimple_build_catch): Strengthen return type from gimple to
4050 (gimple_build_eh_filter): Strengthen return type from gimple to
4052 (gimple_build_eh_must_not_throw): Strengthen return type from
4053 gimple to geh_mnt *.
4054 (gimple_build_eh_else): Strengthen return type from gimple to
4056 (gimple_build_try): Update for renaming of gimple_statement_try to
4058 (gimple_build_resx): Strengthen return type from gimple to
4060 (gimple_build_switch_nlabels): Strengthen return type from gimple
4062 (gimple_build_switch): Likewise.
4063 (gimple_build_eh_dispatch): Strengthen return type from gimple to
4065 (gimple_build_debug_bind_stat): Strengthen return type from gimple
4067 (gimple_build_debug_source_bind_stat): Strengthen return type from
4069 (gimple_build_omp_critical): Strengthen return type from gimple to
4071 (gimple_build_omp_for): Strengthen return type from gimple to
4073 (gimple_build_omp_parallel): Strengthen return type from gimple to
4075 (gimple_build_omp_task): Strengthen return type from gimple to
4077 (gimple_build_omp_continue): Strengthen return type from gimple to
4079 (gimple_build_omp_sections): Strengthen return type from gimple to
4081 (gimple_build_omp_single): Strengthen return type from gimple to
4083 (gimple_build_omp_target): Strengthen return type from gimple to
4085 (gimple_build_omp_teams): Strengthen return type from gimple to
4087 (gimple_build_omp_atomic_load): Strengthen return type from gimple
4088 to gomp_atomic_load *.
4089 (gimple_build_omp_atomic_store): Strengthen return type from gimple
4090 to gomp_atomic_store *.
4091 (gimple_build_transaction): Strengthen return type from gimple
4093 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
4094 (gimple_call_fnspec): Require a const gcall *.
4095 (gimple_call_arg_flags): Likewise.
4096 (gimple_call_return_flags): Likewise.
4097 (gimple_set_bb): Add a checked cast.
4098 (gimple_copy): Within the cases, add locals of the appropriate
4099 subclass and use in place of "stmt" and "copy" for typesafety.
4100 (gimple_has_side_effects): Add a checked cast.
4101 (gimple_could_trap_p_1): Likewise.
4102 (gimple_call_copy_skip_args): Require a gcall *, and return one.
4103 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4104 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
4105 dyn_cast, introducing local "return_stmt" and using ti in place
4108 * gimple.h (gimple_vec): Eliminate this typedef.
4109 (struct gimple_statement_call): Rename to...
4110 (struct gcall): ...this.
4111 (struct gimple_statement_bind): Rename to...
4112 (struct gbind): ...this.
4113 (struct gimple_statement_catch): Rename to...
4114 (struct gcatch): ...this.
4115 (struct gimple_statement_eh_filter): Rename to...
4116 (struct geh_filter): ...this.
4117 (struct gimple_statement_eh_else): Rename to...
4118 (struct geh_else): ...this.
4119 (struct gimple_statement_eh_mnt): Rename to...
4120 (struct geh_mnt): ...this.
4121 (struct gimple_statement_phi): Rename to...
4122 (struct gphi): ...this.
4123 (struct gimple_statement_resx): Rename to...
4124 (struct gresx): ...this.
4125 (struct gimple_statement_eh_dispatch): Rename to...
4126 (struct geh_dispatch): ...this.
4127 (struct gimple_statement_try): Rename to...
4128 (struct gtry): ...this.
4129 (struct gimple_statement_asm): Rename to...
4130 (struct gasm): ...this.
4131 (struct gimple_statement_omp_critical): Rename to...
4132 (struct gomp_critical): ...this.
4133 (struct gimple_statement_omp_for): Rename to...
4134 (struct gomp_for): ...this.
4135 (struct gimple_statement_omp_parallel): Rename to...
4136 (struct gomp_parallel): ...this.
4137 (struct gimple_statement_omp_target): Rename to...
4138 (struct gomp_target): ...this.
4139 (struct gimple_statement_omp_task): Rename to...
4140 (struct gomp_task): ...this.
4141 (struct gimple_statement_omp_sections): Rename to...
4142 (struct gomp_sections): ...this.
4143 (struct gimple_statement_omp_continue): Rename to...
4144 (struct gomp_continue): ...this.
4145 (struct gimple_statement_omp_single): Rename to...
4146 (struct gomp_single): ...this.
4147 (struct gimple_statement_omp_teams): Rename to...
4148 (struct gomp_teams): ...this.
4149 (struct gimple_statement_omp_atomic_load): Rename to...
4150 (struct gomp_atomic_load): ...this.
4151 (struct gimple_statement_omp_atomic_store :): Rename to...
4152 (struct gomp_atomic_store :): ...this.
4153 (struct gimple_statement_transaction): Rename to...
4154 (struct gtransaction): ...this.
4155 (struct gcond): New subclass.
4156 (struct gdebug): New subclass.
4157 (struct ggoto): New subclass.
4158 (struct glabel): New subclass.
4159 (struct gswitch): New subclass.
4160 (struct gassign): New subclass.
4161 (struct greturn): New subclass.
4162 (is_a_helper <gimple_statement_asm *>::test): Rename to...
4163 (is_a_helper <gasm *>::test): ...this.
4164 (is_a_helper <gimple_statement_bind *>::test): Rename to...
4165 (is_a_helper <gbind *>::test): ...this.
4166 (is_a_helper <gassign *>::test): New.
4167 (is_a_helper <gimple_statement_call *>::test): Rename to...
4168 (is_a_helper <gcall *>::test): ...this.
4169 (is_a_helper <gimple_statement_catch *>::test): Rename to...
4170 (is_a_helper <gcatch *>::test): ...this.
4171 (is_a_helper <gimple_statement_resx *>::test): Rename to...
4172 (is_a_helper <gresx *>::test): ...this.
4173 (is_a_helper <gcond *>::test): New.
4174 (is_a_helper <gdebug *>::test): New.
4175 (is_a_helper <ggoto *>::test): New.
4176 (is_a_helper <glabel *>::test): New.
4177 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
4178 (is_a_helper <geh_dispatch *>::test): ...this.
4179 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
4180 (is_a_helper <geh_else *>::test): ...this.
4181 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
4182 (is_a_helper <geh_filter *>::test): ...this.
4183 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
4184 (is_a_helper <geh_mnt *>::test): ...this.
4185 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
4186 (is_a_helper <gomp_atomic_load *>::test): ...this.
4187 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
4188 (is_a_helper <gomp_atomic_store *>::test): ...this.
4189 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
4190 (is_a_helper <gomp_continue *>::test): ...this.
4191 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
4192 (is_a_helper <gomp_critical *>::test): ...this.
4193 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
4194 (is_a_helper <gomp_for *>::test): ...this.
4195 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
4196 (is_a_helper <gomp_parallel *>::test): ...this.
4197 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
4198 (is_a_helper <gomp_target *>::test): ...this.
4199 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
4200 (is_a_helper <gomp_sections *>::test): ...this.
4201 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
4202 (is_a_helper <gomp_single *>::test): ...this.
4203 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
4204 (is_a_helper <gomp_teams *>::test): ...this.
4205 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
4206 (is_a_helper <gomp_task *>::test): ...this.
4207 (is_a_helper <gimple_statement_phi *>::test): Rename to...
4208 (is_a_helper <gphi *>::test): ...this.
4209 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
4210 (is_a_helper <gtransaction *>::test): ...this.
4211 (is_a_helper <greturn *>::test): New.
4212 (is_a_helper <gswitch *>::test): New.
4213 (is_a_helper <gimple_statement_try *>::test): Rename to...
4214 (is_a_helper <gtry *>::test): ...this.
4215 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
4216 (is_a_helper <const gasm *>::test): ...this.
4217 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
4218 (is_a_helper <const gbind *>::test): ...this.
4219 (is_a_helper <const gimple_statement_call *>::test): Rename to...
4220 (is_a_helper <const gcall *>::test): ...this.
4221 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
4222 (is_a_helper <const gcatch *>::test): ...this.
4223 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
4224 (is_a_helper <const gresx *>::test): ...this.
4225 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
4226 (is_a_helper <const geh_dispatch *>::test): ...this.
4227 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
4228 (is_a_helper <const geh_filter *>::test): ...this.
4229 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
4231 (is_a_helper <const gomp_atomic_load *>::test): ...this.
4232 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
4234 (is_a_helper <const gomp_atomic_store *>::test): ...this.
4235 (is_a_helper <const gimple_statement_omp_continue *>::test):
4237 (is_a_helper <const gomp_continue *>::test): ...this.
4238 (is_a_helper <const gimple_statement_omp_critical *>::test):
4240 (is_a_helper <const gomp_critical *>::test): ...this.
4241 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
4242 (is_a_helper <const gomp_for *>::test): ...this.
4243 (is_a_helper <const gimple_statement_omp_parallel *>::test):
4245 (is_a_helper <const gomp_parallel *>::test): ...this.
4246 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
4247 (is_a_helper <const gomp_target *>::test): ...this.
4248 (is_a_helper <const gimple_statement_omp_sections *>::test):
4250 (is_a_helper <const gomp_sections *>::test): ...this.
4251 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
4252 (is_a_helper <const gomp_single *>::test): ...this.
4253 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
4254 (is_a_helper <const gomp_teams *>::test): ...this.
4255 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
4256 (is_a_helper <const gomp_task *>::test): ...this.
4257 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
4258 (is_a_helper <const gphi *>::test): ...this.
4259 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
4260 (is_a_helper <const gtransaction *>::test): ...this.
4261 (gimple_build_return): Strengthen return type to greturn *.
4262 (gimple_call_reset_alias_info): Require a gcall *.
4263 (gimple_build_call_vec): Return a gcall *.
4264 (gimple_build_call): Likewise.
4265 (gimple_build_call_valist): Likewise.
4266 (gimple_build_call_internal): Likewise.
4267 (gimple_build_call_internal_vec): Likewise.
4268 (gimple_build_call_from_tree): Likewise.
4269 (gimple_build_assign_stat): Return a gassign *.
4270 (gimple_build_assign_with_ops): Likewise.
4271 (gimple_build_cond): Return a gcond *.
4272 (gimple_build_cond_from_tree): Likewise.
4273 (gimple_cond_set_condition_from_tree): Require a gcond *.
4274 (gimple_build_label): Return a glabel *.
4275 (gimple_build_goto): Return a ggoto *.
4276 (gimple_build_bind): Return a gbind *.
4277 (gimple_build_asm_vec): Return a gasm *.
4278 (gimple_build_catch): Return a gcatch *.
4279 (gimple_build_eh_filter): Return a geh_filter *.
4280 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
4281 (gimple_build_eh_else): Return a geh_else *.
4282 (gimple_build_try): Return a gtry *.
4283 (gimple_build_resx): Return a gresx *.
4284 (gimple_build_switch_nlabels): Return a gswitch *.
4285 (gimple_build_switch): Return a gswitch *.
4286 (gimple_build_eh_dispatch): Return a geh_dispatch *.
4287 (gimple_build_debug_bind_stat): Return a gdebug *.
4288 (gimple_build_debug_source_bind_stat): Return a gdebug *.
4289 (gimple_build_omp_critical): Return a gomp_critical *.
4290 (gimple_build_omp_for): Return a gomp_for *.
4291 (gimple_build_omp_parallel): Return a gomp_parallel *.
4292 (gimple_build_omp_task): Return a gomp_task *.
4293 (gimple_build_omp_continue): Return a gomp_continue *.
4294 (gimple_build_omp_sections): Return a gomp_sections *.
4295 (gimple_build_omp_single): Return a gomp_single *.
4296 (gimple_build_omp_target): Return a gomp_target *.
4297 (gimple_build_omp_teams): Return a gomp_teams *.
4298 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
4299 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
4300 (gimple_build_transaction): Return a gtransaction *.
4301 (gimple_call_arg_flags): Require a const gcall *.
4302 (gimple_call_return_flags): Likewise.
4303 (gimple_call_copy_skip_args): Require and return a gcall *.
4304 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4305 (gimple_seq_first_stmt_as_a_bind): New.
4306 (gimple_assign_nontemporal_move_p): Require a const gassign *
4307 rather than a const_gimple.
4308 (gimple_call_internal_fn): Update for renaming to gcall.
4309 (gimple_call_fntype): Likewise.
4310 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
4311 (gimple_call_set_fn): Likewise.
4312 (gimple_call_set_internal_fn): Likewise.
4313 (gimple_call_set_chain): Likewise.
4314 (gimple_call_set_tail): Likewise.
4315 (gimple_call_tail_p): Likewise.
4316 (gimple_call_set_return_slot_opt): Likewise.
4317 (gimple_call_return_slot_opt_p): Likewise.
4318 (gimple_call_set_from_thunk): Likewise.
4319 (gimple_call_from_thunk_p): Likewise.
4320 (gimple_call_set_va_arg_pack): Likewise.
4321 (gimple_call_va_arg_pack_p): Likewise.
4322 (gimple_call_set_nothrow): Likewise.
4323 (gimple_call_nothrow_p): Likewise.
4324 (gimple_call_set_alloca_for_var): Likewise.
4325 (gimple_call_alloca_for_var_p): Likewise.
4326 (gimple_call_use_set): Likewise.
4327 (gimple_call_clobber_set): Likewise.
4328 (gimple_call_return_type): Require a const gcall * rather than a
4330 (gimple_call_chain_ptr): Likewise.
4331 (gimple_call_copy_flags): Require a pair of gcall *.
4332 (gimple_cond_set_code): Require a gcond * rather than a gimple
4333 (gimple_cond_set_lhs): Likewise.
4334 (gimple_cond_set_rhs): Likewise.
4335 (gimple_cond_set_true_label): Likewise.
4336 (gimple_cond_set_false_label): Likewise.
4337 (gimple_cond_make_false): Likewise.
4338 (gimple_cond_make_true): Likewise.
4339 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
4341 (gimple_cond_rhs_ptr): Likewise.
4342 (gimple_cond_true_label): Likewise.
4343 (gimple_cond_false_label): Likewise.
4344 (gimple_cond_true_p): Likewise.
4345 (gimple_cond_false_p): Likewise.
4346 (gimple_cond_set_condition): Likewise.
4347 (gimple_label_label): Require a const glabel *.
4348 (gimple_label_set_label): Require a glabel *.
4349 (gimple_goto_set_dest): Require a ggoto *.
4350 (gimple_bind_vars): Require a const gbind *.
4351 (gimple_bind_block): Likewise.
4352 (gimple_bind_set_vars): Require a gbind *.
4353 (gimple_bind_append_vars): Likewise.
4354 (gimple_bind_body_ptr): Likewise.
4355 (gimple_bind_body): Likewise.
4356 (gimple_bind_set_body): Likewise.
4357 (gimple_bind_add_stmt): Likewise.
4358 (gimple_bind_add_seq): Likewise.
4359 (gimple_bind_set_block): Likewise.
4360 (gimple_asm_ninputs): Require a const gasm *.
4361 (gimple_asm_noutputs): Likewise.
4362 (gimple_asm_nclobbers): Likewise.
4363 (gimple_asm_nlabels): Likewise.
4364 (gimple_asm_input_op): Likewise.
4365 (gimple_asm_input_op_ptr): Likewise.
4366 (gimple_asm_output_op): Likewise.
4367 (gimple_asm_output_op_ptr): Likewise.
4368 (gimple_asm_clobber_op): Likewise.
4369 (gimple_asm_label_op): Likewise.
4370 (gimple_asm_string): Likewise.
4371 (gimple_asm_volatile_p): Likewise.
4372 (gimple_asm_input_p): Likewise.
4373 (gimple_asm_set_input_op): Require a gasm *.
4374 (gimple_asm_set_output_op): Likewise.
4375 (gimple_asm_set_clobber_op): Likewise.
4376 (gimple_asm_set_label_op): Likewise.
4377 (gimple_asm_set_volatile): Likewise.
4378 (gimple_asm_set_input): Likewise.
4379 (gimple_catch_types): Require a const gcatch *.
4380 (gimple_catch_types_ptr): Require a gcatch *.
4381 (gimple_catch_handler_ptr): Likewise.
4382 (gimple_catch_handler): Likewise.
4383 (gimple_catch_set_types): Likewise.
4384 (gimple_catch_set_handler): Likewise.
4385 (gimple_eh_filter_types): Update for renaming of subclass to
4387 (gimple_eh_filter_types_ptr): Likewise.
4388 (gimple_eh_filter_failure_ptr): Likewise.
4389 (gimple_eh_filter_set_types): Require a geh_filter *.
4390 (gimple_eh_filter_set_failure): Likewise.
4391 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
4392 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4393 (gimple_eh_else_n_body_ptr): Require a geh_else *.
4394 (gimple_eh_else_n_body): Likewise.
4395 (gimple_eh_else_e_body_ptr): Likewise.
4396 (gimple_eh_else_e_body): Likewise.
4397 (gimple_eh_else_set_n_body): Likewise.
4398 (gimple_eh_else_set_e_body): Likewise.
4399 (gimple_try_set_kind): Require a gtry *.
4400 (gimple_try_set_catch_is_cleanup): Likewise.
4401 (gimple_try_set_eval): Likewise.
4402 (gimple_try_set_cleanup): Likewise.
4403 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
4404 (gimple_try_cleanup_ptr): Likewise.
4405 (gimple_phi_capacity): Update for renaming of subclass to gphi.
4406 (gimple_phi_num_args): Likewise.
4407 (gimple_phi_result): Likewise.
4408 (gimple_phi_result_ptr): Likewise.
4409 (gimple_phi_arg): Likewise.
4410 (gimple_phi_set_result): Require a gphi *.
4411 (gimple_phi_set_arg): Likewise.
4412 (gimple_phi_arg_def_ptr): Likewise.
4413 (gimple_phi_arg_edge): Likewise.
4414 (gimple_phi_arg_location): Likewise.
4415 (gimple_phi_arg_location_from_edge): Likewise.
4416 (gimple_phi_arg_set_location): Likewise.
4417 (gimple_phi_arg_has_location): Likewise.
4418 (gimple_resx_region): Require a const gresx *.
4419 (gimple_resx_set_region): Require a gresx *.
4420 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
4421 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
4422 (gimple_switch_num_labels): Require a const gswitch *.
4423 (gimple_switch_set_num_labels): Likewise.
4424 (gimple_switch_index): Likewise.
4425 (gimple_switch_index_ptr): Likewise.
4426 (gimple_switch_label): Likewise.
4427 (gimple_switch_default_label): Likewise.
4428 (gimple_switch_set_index): Require a gswitch *.
4429 (gimple_switch_set_label): Likewise.
4430 (gimple_switch_set_default_label): Likewise.
4431 (gimple_omp_critical_name): Require a const gomp_critical *.
4432 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
4433 (gimple_omp_critical_set_name): Likewise.
4434 (gimple_omp_for_set_kind): Require a gomp_for *.
4435 (gimple_omp_for_set_combined_p): Likewise.
4436 (gimple_omp_for_set_combined_into_p): Likewise.
4437 (gimple_omp_for_clauses): Update for renaming of subclass to
4439 (gimple_omp_for_clauses_ptr): Likewise.
4440 (gimple_omp_for_set_clauses): Likewise.
4441 (gimple_omp_for_collapse): Likewise.
4442 (gimple_omp_for_index): Likewise.
4443 (gimple_omp_for_index_ptr): Likewise.
4444 (gimple_omp_for_set_index): Likewise.
4445 (gimple_omp_for_initial): Likewise.
4446 (gimple_omp_for_initial_ptr): Likewise.
4447 (gimple_omp_for_set_initial): Likewise.
4448 (gimple_omp_for_final): Likewise.
4449 (gimple_omp_for_final_ptr): Likewise.
4450 (gimple_omp_for_set_final): Likewise.
4451 (gimple_omp_for_incr): Likewise.
4452 (gimple_omp_for_incr_ptr): Likewise.
4453 (gimple_omp_for_set_incr): Likewise.
4454 (gimple_omp_for_pre_body): Likewise.
4455 (gimple_omp_for_set_pre_body): Likewise.
4456 (gimple_omp_parallel_clauses): Update for renaming of subclass to
4458 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
4459 (gimple_omp_parallel_set_clauses): Likewise.
4460 (gimple_omp_parallel_child_fn_ptr): Likewise.
4461 (gimple_omp_parallel_set_child_fn): Likewise.
4462 (gimple_omp_parallel_data_arg_ptr): Likewise.
4463 (gimple_omp_parallel_set_data_arg): Likewise.
4464 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
4465 (gimple_omp_parallel_data_arg): Likewise.
4466 (gimple_omp_task_clauses): Update for renaming of subclass to
4468 (gimple_omp_task_clauses_ptr): Likewise.
4469 (gimple_omp_task_set_clauses): Likewise.
4470 (gimple_omp_task_child_fn): Likewise.
4471 (gimple_omp_task_child_fn_ptr): Likewise.
4472 (gimple_omp_task_set_child_fn): Likewise.
4473 (gimple_omp_task_data_arg): Likewise.
4474 (gimple_omp_task_data_arg_ptr): Likewise.
4475 (gimple_omp_task_set_data_arg): Likewise.
4476 (gimple_omp_taskreg_clauses): Whitespace fixes.
4477 (gimple_omp_taskreg_clauses_ptr): Likewise.
4478 (gimple_omp_taskreg_set_clauses): Likewise.
4479 (gimple_omp_taskreg_child_fn): Likewise.
4480 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4481 (gimple_omp_taskreg_set_child_fn): Likewise.
4482 (gimple_omp_taskreg_data_arg): Likewise.
4483 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4484 (gimple_omp_taskreg_set_data_arg): Likewise.
4485 (gimple_omp_task_copy_fn): Update for renaming of subclass to
4487 (gimple_omp_task_copy_fn_ptr): Likewise.
4488 (gimple_omp_task_set_copy_fn): Likewise.
4489 (gimple_omp_task_arg_size): Likewise.
4490 (gimple_omp_task_arg_size_ptr): Likewise.
4491 (gimple_omp_task_set_arg_size): Likewise.
4492 (gimple_omp_task_arg_align): Likewise.
4493 (gimple_omp_task_arg_align_ptr): Likewise.
4494 (gimple_omp_task_set_arg_align): Likewise.
4495 (gimple_omp_single_clauses): Update for renaming of subclass to
4497 (gimple_omp_single_clauses_ptr): Likewise.
4498 (gimple_omp_single_set_clauses): Likewise.
4499 (gimple_omp_target_clauses): Update for renaming of subclass to
4501 (gimple_omp_target_clauses_ptr): Likewise.
4502 (gimple_omp_target_set_clauses): Require a gomp_target *.
4503 (gimple_omp_target_set_kind): Likewise.
4504 (gimple_omp_target_child_fn_ptr): Likewise.
4505 (gimple_omp_target_set_child_fn): Likewise.
4506 (gimple_omp_target_data_arg_ptr): Likewise.
4507 (gimple_omp_target_set_data_arg): Likewise.
4508 (gimple_omp_target_child_fn): Require a const gomp_target *.
4509 (gimple_omp_target_data_arg): Likewise.
4510 (gimple_omp_teams_clauses): Update for renaming of subclass to
4512 (gimple_omp_teams_clauses_ptr): Likewise.
4513 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
4514 (gimple_omp_sections_clauses): Update for renaming of subclass to
4516 (gimple_omp_sections_clauses_ptr): Likewise.
4517 (gimple_omp_sections_set_clauses): Likewise.
4518 (gimple_omp_sections_control): Likewise.
4519 (gimple_omp_sections_control_ptr): Likewise.
4520 (gimple_omp_sections_set_control): Likewise.
4521 (gimple_omp_for_set_cond): Likewise.
4522 (gimple_omp_for_cond): Likewise.
4523 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
4524 (gimple_omp_atomic_store_val_ptr): Likewise.
4525 (gimple_omp_atomic_load_set_lhs): Likewise.
4526 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
4527 (gimple_omp_atomic_load_lhs): Likewise.
4528 (gimple_omp_atomic_load_rhs): Likewise.
4529 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
4530 (gimple_omp_atomic_load_set_rhs): Likewise.
4531 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4532 (gimple_omp_continue_control_def): Require a const gomp_continue *.
4533 (gimple_omp_continue_control_use): Likewise.
4534 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
4535 (gimple_omp_continue_set_control_def): Likewise.
4536 (gimple_omp_continue_control_use_ptr): Likewise.
4537 (gimple_omp_continue_set_control_use): Likewise.
4538 (gimple_transaction_body_ptr): Require a gtransaction *.
4539 (gimple_transaction_body): Likewise.
4540 (gimple_transaction_label_ptr): Likewise.
4541 (gimple_transaction_label): Require a const gtransaction *.
4542 (gimple_transaction_subcode): Likewise.
4543 (gimple_transaction_set_body): Require a gtransaction *.
4544 (gimple_transaction_set_label): Likewise.
4545 (gimple_transaction_set_subcode): Likewise.
4546 (gimple_return_retval_ptr): Require a const greturn *.
4547 (gimple_return_retval): Likewise.
4548 (gimple_return_set_retval): Require a greturn *.
4549 (gimple_expr_type): Introduce local "call_stmt" and use in place of
4550 "stmt" for typesafety.
4552 * asan.c: Use gimple subclasses.
4553 * auto-profile.c: Likewise.
4554 * builtins.c: Likewise.
4555 * builtins.h: Likewise.
4556 * cfgexpand.c: Likewise.
4557 * cfgloop.c: Likewise.
4558 * cfgloopmanip.c: Likewise.
4559 * cgraph.c: Likewise.
4560 * cgraph.h: Likewise.
4561 * cgraphbuild.c: Likewise.
4562 * cgraphclones.c: Likewise.
4563 * cgraphunit.c: Likewise.
4565 * gimple-builder.c: Likewise.
4566 * gimple-builder.h: Likewise.
4567 * gimple-fold.c: Likewise.
4568 * gimple-low.c: Likewise.
4569 * gimple-pretty-print.c: Likewise.
4570 * gimple-ssa-isolate-paths.c: Likewise.
4571 * gimple-ssa-strength-reduction.c: Likewise.
4572 * gimple-streamer-in.c: Likewise.
4573 * gimple-streamer-out.c: Likewise.
4574 * gimple-walk.c: Likewise.
4575 * gimplify-me.c: Likewise.
4576 * gimplify.c: Likewise.
4577 * gimplify.h: Likewise.
4578 * graphite-scop-detection.c: Likewise.
4579 * graphite-sese-to-poly.c: Likewise.
4580 * internal-fn.c: Likewise.
4581 * internal-fn.def:: Likewise.
4582 * internal-fn.h: Likewise.
4583 * ipa-icf-gimple.c: Likewise.
4584 * ipa-icf-gimple.h: Likewise.
4585 * ipa-icf.c: Likewise.
4586 * ipa-inline-analysis.c: Likewise.
4587 * ipa-prop.c: Likewise.
4588 * ipa-prop.h: Likewise.
4589 * ipa-pure-const.c: Likewise.
4590 * ipa-split.c: Likewise.
4591 * lto-streamer-in.c: Likewise.
4592 * lto-streamer-out.c: Likewise.
4593 * omp-low.c: Likewise.
4594 * predict.c: Likewise.
4595 * sanopt.c: Likewise.
4597 * ssa-iterators.h: Likewise.
4599 * trans-mem.c: Likewise.
4600 * tree-call-cdce.c: Likewise.
4601 * tree-cfg.c: Likewise.
4602 * tree-cfg.h: Likewise.
4603 * tree-cfgcleanup.c: Likewise.
4604 * tree-chkp.c: Likewise.
4605 * tree-chkp.h: Likewise.
4606 * tree-complex.c: Likewise.
4607 * tree-data-ref.c: Likewise.
4608 * tree-dfa.c: Likewise.
4609 * tree-eh.c: Likewise.
4610 * tree-eh.h: Likewise.
4611 * tree-emutls.c: Likewise.
4612 * tree-if-conv.c: Likewise.
4613 * tree-inline.c: Likewise.
4614 * tree-inline.h: Likewise.
4615 * tree-into-ssa.c: Likewise.
4616 * tree-into-ssa.h: Likewise.
4617 * tree-loop-distribution.c: Likewise.
4618 * tree-nrv.c: Likewise.
4619 * tree-object-size.c: Likewise.
4620 * tree-outof-ssa.c: Likewise.
4621 * tree-parloops.c: Likewise.
4622 * tree-phinodes.c: Likewise.
4623 * tree-phinodes.h: Likewise.
4624 * tree-predcom.c: Likewise.
4625 * tree-profile.c: Likewise.
4626 * tree-scalar-evolution.c: Likewise.
4627 * tree-scalar-evolution.h
4628 * tree-sra.cn_function):
4629 * tree-ssa-alias.c: Likewise.
4630 * tree-ssa-alias.h: Likewise.
4631 * tree-ssa-ccp.c: Likewise.
4632 * tree-ssa-coalesce.c: Likewise.
4633 * tree-ssa-copy.c: Likewise.
4634 * tree-ssa-copyrename.c: Likewise.
4635 * tree-ssa-dce.c: Likewise.
4636 * tree-ssa-dom.c: Likewise.
4637 * tree-ssa-forwprop.c: Likewise.
4638 * tree-ssa-ifcombine.c: Likewise.
4639 * tree-ssa-live.c: Likewise.
4640 * tree-ssa-loop-im.c: Likewise.
4641 * tree-ssa-loop-ivcanon.c: Likewise.
4642 * tree-ssa-loop-ivopts.c: Likewise.
4643 * tree-ssa-loop-manip.c: Likewise.
4644 * tree-ssa-loop-niter.c: Likewise.
4645 * tree-ssa-loop-prefetch.c: Likewise.
4646 * tree-ssa-loop-unswitch.c: Likewise.
4647 * tree-ssa-math-opts.c: Likewise.
4648 * tree-ssa-operands.c: Likewise.
4649 * tree-ssa-phiopt.c: Likewise.
4650 * tree-ssa-phiprop.c: Likewise.
4651 * tree-ssa-pre.c: Likewise.
4652 * tree-ssa-propagate.c: Likewise.
4653 * tree-ssa-propagate.h: Likewise.
4654 * tree-ssa-reassoc.c: Likewise.
4655 * tree-ssa-sccvn.c: Likewise.
4656 * tree-ssa-sccvn.h: Likewise.
4657 * tree-ssa-sink.c: Likewise.
4659 * tree-ssa-structalias.c
4660 * tree-ssa-tail-merge.c: Likewise.
4661 * tree-ssa-ter.c: Likewise.
4662 * tree-ssa-threadedge.c: Likewise.
4663 * tree-ssa-threadedge.h: Likewise.
4664 * tree-ssa-threadupdate.c: Likewise.
4665 * tree-ssa-uncprop.c: Likewise.
4666 * tree-ssa-uninit.c: Likewise.
4667 * tree-ssa.c: Likewise.
4668 * tree-stdarg.c: Likewise.
4669 * tree-switch-conversion.c: Likewise.
4670 * tree-tailcall.c: Likewise.
4671 * tree-vect-data-refs.c: Likewise.
4672 * tree-vect-generic.c: Likewise.
4673 * tree-vect-loop-manip.c: Likewise.
4674 * tree-vect-loop.c: Likewise.
4675 * tree-vect-patterns.c: Likewise.
4676 * tree-vect-slp.c: Likewise.
4677 * tree-vect-stmts.c: Likewise.
4678 * tree-vectorizer.h: Likewise.
4679 * tree-vrp.c: Likewise.
4681 * ubsan.c: Likewise.
4682 * value-prof.c: Likewise.
4683 * value-prof.h: Likewise.
4684 * vtable-verify.c: Likewise.
4686 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4688 * config/rs6000/constraints.md: Avoid signed integer overflows.
4689 * config/rs6000/predicates.md: Likewise.
4691 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4694 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
4696 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4699 * ira.c (ira): Update preferred class.
4701 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4703 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
4704 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4705 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
4706 inline overload to use it. Add unary arg overload.
4707 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
4708 (gimple_assign_set_rhs_from_tree): Use
4709 gimple_assign_set_rhs_with_ops instead of
4710 gimple_assign_set_rhs_with_ops_1.
4711 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4712 (gimple_assign_set_rhs_with_ops): ... this.
4713 * ipa-split.c (split_function): Remove last NULL argument
4714 from gimple_build_assign_with_ops call.
4715 * tree-ssa-loop-im.c
4716 (move_computations_dom_walker::before_dom_children): Likewise.
4717 * tsan.c (instrument_builtin_call): Likewise.
4718 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
4719 vectorizable_conversion, vectorizable_load): Likewise.
4720 * tree-vect-loop.c (vect_is_simple_reduction_1,
4721 get_initial_def_for_induction): Likewise.
4722 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4723 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
4724 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
4725 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
4726 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
4727 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
4728 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
4729 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
4730 neg_replacement): Likewise.
4731 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
4732 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
4733 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4734 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
4735 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4736 simd_clone_adjust): Likewise.
4737 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4738 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
4739 replace_one_candidate): Likewise.
4740 * gimple-builder.c (build_type_cast): Likewise.
4741 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
4742 (forward_propagate_addr_expr_1): Remove last NULL argument
4743 from gimple_assign_set_rhs_with_ops call.
4744 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
4745 instead of gimple_assign_set_rhs_with_ops_1.
4746 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
4747 argument from gimple_build_assign_with_ops call.
4748 (repropagate_negates): Remove last NULL argument from
4749 gimple_assign_set_rhs_with_ops call.
4750 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
4751 last NULL argument from gimple_build_assign_with_ops call.
4752 (instrument_bool_enum_load): Likewise. Remove last NULL argument
4753 from gimple_assign_set_rhs_with_ops call.
4754 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
4755 Remove last NULL argument from gimple_build_assign_with_ops call.
4756 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
4757 of gimple_assign_set_rhs_with_ops_1.
4758 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
4759 instead of gimple_assign_set_rhs_with_ops_1.
4760 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
4761 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
4762 from gimple_build_assign_with_ops call.
4763 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
4764 from gimple_assign_set_rhs_with_ops call.
4765 * tree-vrp.c (simplify_truth_ops_using_ranges,
4766 simplify_bit_ops_using_ranges): Remove last NULL argument from
4767 gimple_assign_set_rhs_with_ops call.
4768 (simplify_float_conversion_using_ranges,
4769 simplify_internal_call_using_ranges): Remove last NULL argument from
4770 gimple_build_assign_with_ops call.
4772 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
4775 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
4778 2014-11-19 Marek Polacek <polacek@redhat.com>
4781 * ubsan.c (instrument_object_size): Check for MEM_REF.
4783 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
4786 * cgraph.c (cgraph_node::create): Guard g->have_offload with
4787 ifdef ENABLE_OFFLOADING.
4788 * omp-low.c (create_omp_child_function): Likewise.
4789 (expand_omp_target): Guard node->mark_force_output and offload_funcs
4790 with ifdef ENABLE_OFFLOADING.
4791 * varpool.c (varpool_node::get_create): Guard g->have_offload and
4792 offload_vars with ifdef ENABLE_OFFLOADING.
4794 2014-11-19 Felix Yang <felix.yang@huawei.com>
4795 Shanyao Chen <chenshanyao@huawei.com>
4798 * config/arm/arm.md (define_attr "arch"): Add v6t2.
4799 (define_attr "arch_enabled"): Add test for the above.
4800 (*movhi_insn_arch4): Add new alternative.
4802 2014-11-19 Richard Henderson <rth@redhat.com>
4804 * c-family/c-common.c (c_common_reswords): Add
4805 __builtin_call_with_static_chain.
4806 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
4807 * c/c-parser.c (c_parser_postfix_expression): Handle it.
4808 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
4810 * calls.c (prepare_call_address): Allow decl or type for first arg.
4811 (expand_call): Pass type to prepare_call_address if no decl.
4812 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
4813 the function doesn't use it; fold it otherwise.
4814 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
4815 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
4818 * targhooks.c (default_static_chain): Remove check for
4820 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4821 * config/i386/i386.c (ix86_static_chain): Allow decl or type
4822 as the first argument.
4823 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
4824 of the unused first parameter.
4825 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
4827 * target.def (static_chain): Likewise.
4829 2014-11-19 Renlin Li <renlin.li@arm.com>
4831 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4832 __ARM_FP_FAST, __ARM_FEATURE_FMA, __ARM_FP,
4833 __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
4835 2014-11-19 Marek Polacek <polacek@redhat.com>
4838 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
4839 !TYPE_OVERFLOW_SANITIZED.
4840 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
4841 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
4844 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
4846 * collect2.c (main): Don't call fatal_error before
4847 diagnostic_initialize.
4848 * lto-wrapper.c (main): Likewise.
4850 2014-11-19 Tom de Vries <tom@codesourcery.com>
4852 PR tree-optimization/62167
4853 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
4855 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
4858 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4860 PR tree-optimization/63915
4861 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
4862 true instead of false as last argument to gsi_replace.
4865 * internal-fn.c (expand_ubsan_result_store): New function.
4866 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
4867 Use it instead of just emit_move_insn.
4869 2014-11-19 Richard Biener <rguenther@suse.de>
4871 PR tree-optimization/63844
4872 * omp-low.c (fixup_child_record_type): Use a restrict qualified
4873 referece type for the receiver parameter.
4875 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4878 * ubsan.c: Include tree-eh.h.
4879 (instrument_bool_enum_load): Handle loads that can throw.
4881 PR rtl-optimization/63843
4882 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
4883 optimization of ashiftrt of subreg of lshiftrt, check that code
4886 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
4888 * attribs.c (decl_attributes): Remove always true condition,
4889 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
4891 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4894 * target.def (use_by_pieces_infrastructure_p): Take unsigned
4895 HOST_WIDE_INT as the size parameter.
4896 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
4897 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
4898 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
4899 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
4900 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
4901 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
4902 * config/aarch64/aarch64.c
4903 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
4904 * doc/tm.texi: Regenerate.
4906 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
4908 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
4909 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
4910 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
4911 (good_cloning_opportunity_p): Likewise.
4912 (ipa-cp gate): Enable ipa-cp with LTO.
4913 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
4914 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
4916 * ipa-inline-transform.c (inline_transform): Check if there are inlines
4917 to apply even at -O0.
4918 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
4919 (analyze_functions): Build type inheritance graph.
4920 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
4921 (want_early_inline_function_p, want_inline_small_function_p):
4923 (check_callers): Likewise.
4924 (edge_badness): Likewise.
4925 (inline_small_functions): Always be ready for indirect inlining
4927 (ipa_inline): Always use want_inline_function_to_all_callers_p.
4928 (early_inline_small_functions): Use opt_for_fn.
4929 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
4930 (estimate_function_body_sizes): Likewise.
4931 (compute_inline_parameters): Likewise.
4932 (estimate_edge_devirt_benefit): Likewise.
4933 (inline_analyze_function): Likewise.
4934 * ipa-devirt.c (ipa_devirt): Likewise.
4935 (gate): Use in_lto_p.
4936 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
4937 (try_make_edge_direct_virtual_call): Likewise.
4938 (update_indirect_edges_after_inlining): Likewise.
4939 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
4940 * common.opt (findirect-inlining): Turn into optimization.
4941 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
4942 (pure_const_generate_summary): Likewise.
4943 (gate_pure_const): Always enable with in_lto_p.
4945 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4947 * config/mips/mips.md (compression): Add `micromips32' setting.
4948 (enabled, length): Handle it.
4949 (shift_compression): Replace `micromips' with `micromips32' in
4950 the `compression' attribute.
4951 (*add<mode>3, sub<mode>3): Likewise.
4953 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4955 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
4956 range, a jump otherwise.
4958 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4960 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
4962 (cortex_a15_gp_to_vfp): ...This.
4963 (cortex_a15_fp_to_gp): ...And this.
4964 Define and comment bypass from vfp operations to fp->gp moves.
4966 2014-11-18 Martin Liska <mliska@suse.cz>
4968 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
4970 2014-11-18 Martin Liska <mliska@suse.cz>
4972 * bt-load.c (add_btr_def): New fibonacci_heap is used.
4973 (migrate_btr_defs): Likewise.
4975 2014-11-18 Martin Liska <mliska@suse.cz>
4977 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
4979 2014-11-18 Martin Liska <mliska@suse.cz>
4981 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
4982 (find_traces): Likewise.
4983 (find_traces_1_round): Likewise.
4985 2014-11-18 Martin Liska <mliska@suse.cz>
4987 * fibonacci_heap.h: New file.
4988 (fibonacci_heap::insert): Created from fibheap_insert.
4989 (fibonacci_heap::empty): Created from fibheap_empty.
4990 (fibonacci_heap::nodes): Created from fibheap_nodes.
4991 (fibonacci_heap::min_key): Created from fibheap_min_key.
4992 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
4993 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
4994 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
4995 (fibonacci_heap::min): Created from fibheap_min.
4996 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
4997 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
4998 (fibonacci_heap::union_with): Created from fibheap_union.
4999 * ipa-inline.c (update_edge_key): New heap API is used.
5000 (update_caller_keys): Likewise.
5001 (update_callee_keys): Likewise.
5002 (lookup_recursive_calls): Likewise.
5003 (recursive_inlining): Likewise.
5004 (add_new_edges_to_heap): Likewise.
5005 (heap_edge_removal_hook): Likewise.
5006 (inline_small_functions): Likewise.
5008 2014-11-18 Marek Polacek <polacek@redhat.com>
5011 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
5012 put it into TYPE_NAME and TYPE_STUB_DECL.
5013 * ubsan.c (ubsan_type_descriptor_type): New variable.
5014 Function renamed to ...
5015 (ubsan_get_type_descriptor_type): ... this. Cache
5016 return value in ubsan_type_descriptor_type variable.
5017 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
5018 TYPE_NAME and TYPE_STUB_DECL.
5019 (ubsan_get_source_location_type): Create a TYPE_DECL for
5020 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
5021 (ubsan_type_descriptor, ubsan_create_data): Call
5022 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
5023 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
5025 2014-11-18 Felix Yang <felix.yang@huawei.com>
5027 * config/aarch64/aarch64.c (doloop_end): New pattern.
5028 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
5030 2014-11-18 Jason Merrill <jason@redhat.com>
5032 * tree.c (warn_deprecated_use): Show declaration with inform.
5034 2014-11-18 Richard Biener <rguenther@suse.de>
5036 PR tree-optimization/63914
5037 * tree-ssa-ccp.c (canonicalize_value): Remove float value
5039 (valid_lattice_transition): Allow (partial) transition
5040 from NaN to non-NaN if !HONOR_NANS.
5041 (set_lattice_value): Check for valid lattice transitions
5042 only when checking is enabled.
5044 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
5046 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
5048 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
5050 * config/arm/neon-testgen.ml (emit_prologue): Handle new
5051 compile_test_optim argument.
5052 (emit_automatics): Rename to emit_variables. Support variable
5053 indentation of its output.
5054 (compile_test_optim): New function.
5055 (test_intrinsic): Call compile_test_optim.
5056 * config/arm/neon.ml (features): Add Compiler_optim.
5057 (ops): Add Compiler_optim feature to Vbic and Vorn.
5058 (type_in_crypto_only): Replace 'or' by '||'.
5059 (reinterp): Likewise.
5060 (reinterpq): Likewise.
5062 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
5064 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
5065 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
5066 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
5067 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
5068 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
5069 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
5070 pointer dereference.
5072 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
5074 * tree.c (element_mode, integer_truep): New functions.
5075 * tree.h (element_mode, integer_truep): Declare them.
5076 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
5077 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
5078 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
5079 fold_strip_sign_ops): Use element_mode.
5080 (fold_binary_loc): Use element_mode and element_precision.
5081 * match.pd: Use integer_truep, element_mode, element_precision,
5082 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
5083 vectors. Simplify A/-A.
5085 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5087 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
5088 manual swapping implementation.
5089 (movcond_addsi): Likewise.
5090 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
5091 (arm_select_dominance_cc_mode): Likewise.
5092 (arm_reload_out_hi): Likewise.
5093 (gen_operands_ldrd_strd): Likewise.
5094 (output_move_double): Likewise.
5095 (arm_print_operand_address): Likewise.
5096 (thumb_output_move_mem_multiple): Likewise.
5099 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5101 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
5102 (COPYSIGNF_QUALIFIERS): Likewise.
5103 (CREATE_QUALIFIERS): Likewise.
5104 (DUP_QUALIFIERS): Likewise.
5105 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5106 (FLOAT_NARROW_QUALIFIERS): Likewise.
5107 (REINTERP_QUALIFIERS): Likewise.
5108 (RINT_QUALIFIERS): Likewise.
5109 (SPLIT_QUALIFIERS): Likewise.
5110 (FIXCONV_QUALIFIERS): Likewise.
5111 (SCALARMUL_QUALIFIERS): Likewise.
5112 (SCALARMULL_QUALIFIERS): Likewise.
5113 (SCALARMULH_QUALIFIERS): Likewise.
5114 (SELECT_QUALIFIERS): Likewise.
5115 (VTBX_QUALIFIERS): Likewise.
5116 (SHIFTIMM_QUALIFIERS): Likewise.
5117 (SCALARMAC_QUALIFIERS): Likewise.
5118 (LANEMUL_QUALIFIERS): Likewise.
5119 (LANEMULH_QUALIFIERS): Likewise.
5120 (LANEMULL_QUALIFIERS): Likewise.
5121 (SHIFTACC_QUALIFIERS): Likewise.
5122 (SHIFTINSERT_QUALIFIERS): Likewise.
5123 (VTBL_QUALIFIERS): Likewise.
5124 (LOADSTRUCT_QUALIFIERS): Likewise.
5125 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5126 (STORESTRUCT_QUALIFIERS): Likewise.
5127 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5128 (neon_builtin_type_mode): Delete.
5129 (v8qi_UP): Map to V8QImode.
5130 (v8qi_UP): Map to V8QImode.
5131 (v4hi_UP): Map to V4HImode.
5132 (v4hf_UP): Map to V4HFmode.
5133 (v2si_UP): Map to V2SImode.
5134 (v2sf_UP): Map to V2SFmode.
5135 (di_UP): Map to DImode.
5136 (v16qi_UP): Map to V16QImode.
5137 (v8hi_UP): Map to V8HImode.
5138 (v4si_UP): Map to V4SImode.
5139 (v4sf_UP): Map to V4SFmode.
5140 (v2di_UP): Map to V2DImode.
5141 (ti_UP): Map to TImode.
5142 (ei_UP): Map to EImode.
5143 (oi_UP): Map to OImode.
5144 (neon_itype): Delete.
5145 (neon_builtin_datum): Remove itype, make mode a machine_mode.
5146 (VAR1): Update accordingly.
5147 (arm_init_neon_builtins): Use machine_mode directly.
5148 (neon_dereference_pointer): Likewise.
5149 (arm_expand_neon_args): Use qualifiers to decide operand types.
5150 (arm_expand_neon_builtin): Likewise.
5151 * config/arm/arm_neon_builtins.def: Remap operation type for
5154 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5156 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
5157 (enum arm_simd_type): Likewise.
5158 (struct arm_simd_type_info): Likewise
5159 (arm_mangle_builtin_scalar_type): Likewise.
5160 (arm_mangle_builtin_vector_type): Likewise.
5161 (arm_mangle_builtin_type): Likewise.
5162 (arm_simd_builtin_std_type): Likewise.
5163 (arm_lookup_simd_builtin_type): Likewise.
5164 (arm_simd_builtin_type): Likewise.
5165 (arm_init_simd_builtin_types): Likewise.
5166 (arm_init_simd_builtin_scalar_types): Likewise.
5167 (arm_init_neon_builtins): Rewrite using qualifiers.
5168 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
5169 * config/arm/arm-simd-builtin-types.def: New file.
5170 * config/arm/t-arm (arm-builtins.o): Depend on it.
5171 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
5172 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
5173 (int16x4_t): Likewise.
5174 (int32x2_t): Likewise.
5175 (float16x4_t): Likewise.
5176 (float32x2_t): Likewise.
5177 (poly8x8_t): Likewise.
5178 (poly16x4_t): Likewise.
5179 (uint8x8_t): Likewise.
5180 (uint16x4_t): Likewise.
5181 (uint32x2_t): Likewise.
5182 (int8x16_t): Likewise.
5183 (int16x8_t): Likewise.
5184 (int32x4_t): Likewise.
5185 (int64x2_t): Likewise.
5186 (float32x4_t): Likewise.
5187 (poly8x16_t): Likewise.
5188 (poly16x8_t): Likewise.
5189 (uint8x16_t): Likewise.
5190 (uint16x8_t): Likewise.
5191 (uint32x4_t): Likewise.
5192 (uint64x2_t): Likewise.
5194 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5196 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
5197 (neon_itype): Add new types corresponding to the types used in
5199 (arm_unop_qualifiers): New.
5200 (arm_bswap_qualifiers): Likewise.
5201 (arm_binop_qualifiers): Likewise.
5202 (arm_ternop_qualifiers): Likewise.
5203 (arm_getlane_qualifiers): Likewise.
5204 (arm_lanemac_qualifiers): Likewise.
5205 (arm_setlane_qualifiers): Likewise.
5206 (arm_combine_qualifiers): Likewise.
5207 (arm_load1_qualifiers): Likewise.
5208 (arm_load1_lane_qualifiers): Likewise.
5209 (arm_store1_qualifiers): Likewise.
5210 (arm_storestruct_lane_qualifiers): Likewise.
5211 (UNOP_QUALIFIERS): Likewise.
5212 (DUP_QUALIFIERS): Likewise.
5213 (SPLIT_QUALIFIERS): Likewise.
5214 (CONVERT_QUALIFIERS): Likewise.
5215 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5216 (FLOAT_NARROW_QUALIFIERS): Likewise.
5217 (RINT_QUALIFIERS): Likewise.
5218 (COPYSIGNF_QUALIFIERS): Likewise.
5219 (CREATE_QUALIFIERS): Likewise.
5220 (REINTERP_QUALIFIERS): Likewise.
5221 (BSWAP_QUALIFIERS): Likewise.
5222 (BINOP_QUALIFIERS): Likewise.
5223 (FIXCONV_QUALIFIERS): Likewise.
5224 (SCALARMUL_QUALIFIERS): Likewise.
5225 (SCALARMULL_QUALIFIERS): Likewise.
5226 (SCALARMULH_QUALIFIERS): Likewise.
5227 (TERNOP_QUALIFIERS): Likewise.
5228 (SELECT_QUALIFIERS): Likewise.
5229 (VTBX_QUALIFIERS): Likewise.
5230 (GETLANE_QUALIFIERS): Likewise.
5231 (SHIFTIMM_QUALIFIERS): Likewise.
5232 (LANEMAC_QUALIFIERS): Likewise.
5233 (SCALARMAC_QUALIFIERS): Likewise.
5234 (SETLANE_QUALIFIERS): Likewise.
5235 (SHIFTINSERT_QUALIFIERS): Likewise.
5236 (SHIFTACC_QUALIFIERS): Likewise.
5237 (LANEMUL_QUALIFIERS): Likewise.
5238 (LANEMULL_QUALIFIERS): Likewise.
5239 (LANEMULH_QUALIFIERS): Likewise.
5240 (COMBINE_QUALIFIERS): Likewise.
5241 (VTBL_QUALIFIERS): Likewise.
5242 (LOAD1_QUALIFIERS): Likewise.
5243 (LOADSTRUCT_QUALIFIERS): Likewise.
5244 (LOAD1LANE_QUALIFIERS): Likewise.
5245 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5246 (STORE1_QUALIFIERS): Likewise.
5247 (STORESTRUCT_QUALIFIERS): Likewise.
5248 (STORE1LANE_QUALIFIERS): Likewise.
5249 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5250 (neon_builtin_datum): Keep track of qualifiers.
5253 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5255 * config/arm/arm-builtins.c (VAR1): Add a comma.
5256 (VAR2): Rewrite in terms of VAR1.
5257 (VAR3-10): Likewise.
5258 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
5259 * config/arm/arm_neon_builtins.def: Remove trailing commas.
5261 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5263 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
5264 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
5265 * config/arm/arm-builtins.c: New.
5266 * config/arm/t-arm (arm_builtins.o): New.
5267 * config/arm/arm-protos.h (arm_expand_builtin): New.
5268 (arm_builtin_decl): Likewise.
5269 (arm_init_builtins): Likewise.
5270 (arm_atomic_assign_expand_fenv): Likewise.
5271 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
5272 (arm_init_builtins): Likewise.
5273 (arm_init_iwmmxt_builtins): Likewise
5274 (safe_vector_operand): Likewise
5275 (arm_expand_binop_builtin): Likewise
5276 (arm_expand_unop_builtin): Likewise
5277 (arm_expand_builtin): Likewise
5278 (arm_builtin_decl): Likewise
5279 (insn_flags): Remove static.
5280 (tune_flags): Likewise.
5281 (enum arm_builtins): Move to config/arm/arm-builtins.c.
5282 (arm_init_neon_builtins): Likewise.
5283 (struct builtin_description): Likewise.
5284 (arm_init_iwmmxt_builtins): Likewise.
5285 (arm_init_fp16_builtins): Likewise.
5286 (arm_init_crc32_builtins): Likewise.
5287 (arm_init_builtins): Likewise.
5288 (arm_builtin_decl): Likewise.
5289 (safe_vector_operand): Likewise.
5290 (arm_expand_ternop_builtin): Likewise.
5291 (arm_expand_binop_builtin): Likewise.
5292 (arm_expand_unop_builtin): Likewise.
5293 (neon_dereference_pointer): Likewise.
5294 (arm_expand_neon_args): Likewise.
5295 (arm_expand_neon_builtin): Likewise.
5296 (neon_split_vcombine): Likewise.
5297 (arm_expand_builtin): Likewise.
5298 (arm_builtin_vectorized_function): Likewise.
5299 (arm_atomic_assign_expand_fenv): Likewise.
5301 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5303 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
5304 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
5305 (FL_ARCH3M): Likewise.
5306 (FL_MODE26): Likewise.
5307 (FL_MODE32): Likewise.
5308 (FL_ARCH4): Likewise.
5309 (FL_ARCH5): Likewise.
5310 (FL_THUMB): Likewise.
5311 (FL_LDSCHED): Likewise.
5312 (FL_STRONG): Likewise.
5313 (FL_ARCH5E): Likewise.
5314 (FL_XSCALE): Likewise.
5315 (FL_ARCH6): Likewise.
5316 (FL_VFPV2): Likewise.
5317 (FL_WBUF): Likewise.
5318 (FL_ARCH6K): Likewise.
5319 (FL_THUMB2): Likewise.
5320 (FL_NOTM): Likewise.
5321 (FL_THUMB_DIV): Likewise.
5322 (FL_VFPV3): Likewise.
5323 (FL_NEON): Likewise.
5324 (FL_ARCH7EM): Likewise.
5325 (FL_ARCH7): Likewise.
5326 (FL_ARM_DIV): Likewise.
5327 (FL_ARCH8): Likewise.
5328 (FL_CRC32): Likewise.
5329 (FL_SMALLMUL): Likewise.
5330 (FL_IWMMXT): Likewise.
5331 (FL_IWMMXT2): Likewise.
5332 (FL_TUNE): Likewise.
5333 (FL_FOR_ARCH2): Likewise.
5334 (FL_FOR_ARCH3): Likewise.
5335 (FL_FOR_ARCH3M): Likewise.
5336 (FL_FOR_ARCH4): Likewise.
5337 (FL_FOR_ARCH4T): Likewise.
5338 (FL_FOR_ARCH5): Likewise.
5339 (FL_FOR_ARCH5T): Likewise.
5340 (FL_FOR_ARCH5E): Likewise.
5341 (FL_FOR_ARCH5TE): Likewise.
5342 (FL_FOR_ARCH5TEJ): Likewise.
5343 (FL_FOR_ARCH6): Likewise.
5344 (FL_FOR_ARCH6J): Likewise.
5345 (FL_FOR_ARCH6K): Likewise.
5346 (FL_FOR_ARCH6Z): Likewise.
5347 (FL_FOR_ARCH6ZK): Likewise.
5348 (FL_FOR_ARCH6T2): Likewise.
5349 (FL_FOR_ARCH6M): Likewise.
5350 (FL_FOR_ARCH7): Likewise.
5351 (FL_FOR_ARCH7A): Likewise.
5352 (FL_FOR_ARCH7VE): Likewise.
5353 (FL_FOR_ARCH7R): Likewise.
5354 (FL_FOR_ARCH7M): Likewise.
5355 (FL_FOR_ARCH7EM): Likewise.
5356 (FL_FOR_ARCH8A): Likewise.
5357 * config/arm/arm-protos.h: Take definitions moved from arm.c.
5359 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5361 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
5362 parameter, rearrange switch statement accordingly.
5363 (arm_evpc_neon_vrev): Remove "Magic Word".
5364 * config/arm/unspecs.md (unspec): Split many UNSPECs to
5365 rounding, or signed/unsigned variants.
5366 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
5367 (vcondu<mode><mode>): Likewise.
5368 (neon_vadd): Remove "Magic Word" operand.
5369 (neon_vaddl): Remove "Magic Word" operand, convert to use
5370 signed/unsigned iterator.
5371 (neon_vaddw): Likewise.
5372 (neon_vhadd): Likewise, also iterate over "rounding" forms.
5373 (neon_vqadd): Remove "Magic Word" operand, convert to use
5374 signed/unsigned iterator.
5375 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
5376 over "rounding" forms.
5377 (neon_vmul): Remove "Magic Word" operand, iterate over
5378 polynomial/float instruction forms.
5379 (neon_vmla): Remove "Magic Word" operand.
5380 (neon_vfma): Likewise.
5381 (neon_vfms): Likewise.
5382 (neon_vmls): Likewise.
5383 (neon_vmlal): Remove "Magic Word" operand, iterate over
5384 signed/unsigned forms.
5385 (neon_vmlsl): Likewise.
5386 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
5388 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
5389 signed/unsigned forms.
5390 (neon_vqdmlsl): Likewise.
5391 (neon_vmull): Likewise.
5392 (neon_vqdmull): Remove "Magic Word" operand.
5393 (neon_vsub): Remove "Magic Word" operand.
5394 (neon_vsubl): Remove "Magic Word" operand, convert to use
5395 signed/unsigned iterator.
5396 (neon_vsubw): Likewise.
5397 (neon_vhsub): Likewise.
5398 (neon_vqsub): Likewise.
5399 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
5400 over "rounding" forms.
5401 (neon_vceq): Remove "Magic Word" operand.
5402 (neon_vcge): Likewise.
5403 (neon_vcgeu): Likewise.
5404 (neon_vcgt): Likewise.
5405 (neon_vcgtu): Likewise.
5406 (neon_vcle): Likewise.
5407 (neon_vclt): Likewise.
5408 (neon_vcage): Likewise.
5409 (neon_vcagt): Likewise.
5410 (neon_vabd): Remove "Magic Word" operand, iterate over
5411 signed/unsigned forms, and split out...
5412 (neon_vabdf): ...this as new.
5413 (neon_vabdl): Remove "Magic Word" operand, iterate over
5414 signed/unsigned forms.
5415 (neon_vaba): Likewise.
5416 (neon_vmax): Remove "Magic Word" operand, iterate over
5417 signed/unsigned and max/min forms, and split out...
5418 (neon_v<maxmin>f): ...this as new.
5419 (neon_vmin): Delete.
5420 (neon_vpadd): Remove "Magic Word" operand.
5421 (neon_vpaddl): Remove "Magic Word" operand, iterate over
5422 signed/unsigned variants.
5423 (neon_vpadal): Likewise.
5424 (neon_vpmax): Remove "Magic Word" operand, iterate over
5425 signed/unsigned and max/min forms, and split out...
5426 (neon_vp<maxmin>f): ...this as new.
5427 (neon_vpmin): Delete.
5428 (neon_vrecps): Remove "Magic Word" operand.
5429 (neon_vrsqrts): Likewise.
5430 (neon_vabs): Likewise.
5431 (neon_vqabs): Likewise.
5432 (neon_vneg): Likewise.
5433 (neon_vqneg): Likewise.
5434 (neon_vcls): Likewise.
5435 (neon_vcnt): Likewise.
5436 (neon_vrecpe): Likewise.
5437 (neon_vrsqrte): Likewise.
5438 (neon_vmvn): Likewise.
5439 (neon_vget_lane): Likewise.
5440 (neon_vget_laneu): New.
5441 (neon_vget_lanedi): Remove "Magic Word" operand.
5442 (neon_vget_lanev2di): Likewise.
5443 (neon_vcvt): Remove "Magic Word" operand, iterate over
5444 signed/unsigned variants.
5445 (neon_vcvt_n): Likewise.
5446 (neon_vmovn): Remove "Magic Word" operand.
5447 (neon_vqmovn): Remove "Magic Word" operand, iterate over
5448 signed/unsigned variants.
5449 (neon_vmovun): Remove "Magic Word" operand.
5450 (neon_vmovl): Remove "Magic Word" operand, iterate over
5451 signed/unsigned variants.
5452 (neon_vmul_lane): Remove "Magic Word" operand.
5453 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
5454 signed/unsigned variants.
5455 (neon_vqdmull_lane): Remove "Magic Word" operand.
5456 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
5458 (neon_vmla_lane): Remove "Magic Word" operand.
5459 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
5460 signed/unsigned variants.
5461 (neon_vqdmlal_lane): Remove "Magic Word" operand.
5462 (neon_vmls_lane): Likewise.
5463 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
5464 signed/unsigned variants.
5465 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
5466 (neon_vmul_n): Remove "Magic Word" operand.
5467 (neon_vmull_n): Rename to...
5468 (neon_vmulls_n): ...this, remove "Magic Word" operand.
5469 (neon_vmullu_n): New.
5470 (neon_vqdmull_n): Remove "Magic Word" operand.
5471 (neon_vqdmulh_n): Likewise.
5472 (neon_vqrdmulh_n): New.
5473 (neon_vmla_n): Remove "Magic Word" operand.
5474 (neon_vmls_n): Likewise.
5475 (neon_vmlal_n): Rename to...
5476 (neon_vmlals_n): ...this, remove "Magic Word" operand.
5477 (neon_vmlalu_n): New.
5478 (neon_vqdmlal_n): Remove "Magic Word" operand.
5479 (neon_vmlsl_n): Rename to...
5480 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
5481 (neon_vmlslu_n): New.
5482 (neon_vqdmlsl_n): Remove "Magic Word" operand.
5483 (neon_vrev64): Remove "Magic Word" operand.
5484 (neon_vrev32): Likewise.
5485 (neon_vrev16): Likewise.
5486 (neon_vshl): Remove "Magic Word" operand, iterate over
5487 signed/unsigned and "rounding" forms.
5488 (neon_vqshl): Likewise.
5489 (neon_vshr_n): Likewise.
5490 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
5492 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
5493 signed/unsigned and "rounding" forms.
5494 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
5496 (neon_vshl_n): Remove "Magic Word" operand.
5497 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
5498 signed/unsigned variants.
5499 (neon_vqshlu_n): Remove "Magic Word" operand.
5500 (neon_vshll_n): Remove "Magic Word" operand, iterate over
5501 signed/unsigned variants.
5502 (neon_vsra_n): Remove "Magic Word" operand, iterate over
5503 signed/unsigned and "rounding" forms.
5504 * config/arm/iterators.md (VPF): New.
5511 (VMLAL_LANE): Likewise.
5513 (VMLSL_LANE): Likewise.
5514 (VQDMULH): Likewise,
5515 (VQDMULH_LANE): Likewise.
5517 (VMULL_LANE): Likewise.
5525 (VMAXMIN): Likewise.
5526 (VMAXMINF): Likewise.
5529 (VPMAXMIN): Likewise.
5530 (VPMAXMINF): Likewise.
5531 (VCVT_US): Likewise.
5532 (VCVT_US_N): Likewise.
5538 (VSHRN_N): Likewise.
5539 (VQSHRN_N): Likewise.
5540 (VQSHRUN_N): Likewise.
5541 (VQSHL_N): Likewise.
5542 (VSHLL_N): Likewise.
5548 (shift_op): Likewise.
5549 * config/arm/arm_neon_builtins.def (vaddl): Split to...
5550 (vaddls): ...this and...
5552 (vaddw): Split to...
5553 (vaddws): ...this and...
5555 (vhadd): Split to...
5556 (vhadds): ...this and...
5557 (vhaddu): ...this and...
5558 (vrhadds): ...this and...
5560 (vqadd): Split to...
5561 (vqadds): ...this and...
5563 (vaddhn): Split to itself and...
5566 (vmulf): ...this and...
5568 (vmlal): Split to...
5569 (vmlals): ...this and...
5571 (vmlsl): Split to...
5572 (vmlsls): ...this and...
5574 (vqdmulh): Split to itself and...
5575 (vqrdmulh): ...this.
5576 (vmull): Split to...
5577 (vmullp): ...this and...
5578 (vmulls): ...this and...
5580 (vmull_n): Split to...
5581 (vmulls_n): ...this and...
5582 (vmullu_n): ...this.
5583 (vmull_lane): Split to...
5584 (vmulls_lane): ...this and...
5585 (vmullu_lane): ...this.
5586 (vqdmulh_n): Split to itself and...
5587 (vqrdmulh_n): ...this.
5588 (vqdmulh_lane): Split to itself and...
5589 (vqrdmulh_lane): ...this.
5591 (vshls): ...this and...
5592 (vshlu): ...this and...
5593 (vrshls): ...this and...
5595 (vqshl): Split to...
5596 (vqshls): ...this and...
5597 (vqrshlu): ...this and...
5598 (vqrshls): ...this and...
5600 (vshr_n): Split to...
5601 (vshrs_n): ...this and...
5602 (vshru_n): ...this and...
5603 (vrshrs_n): ...this and...
5604 (vrshru_n): ...this.
5605 (vshrn_n): Split to itself and...
5606 (vrshrn_n): ...this.
5607 (vqshrn_n): Split to...
5608 (vqshrns_n): ...this and...
5609 (vqshrnu_n): ...this and...
5610 (vqrshrns_n): ...this and...
5611 (vqrshrnu_n): ...this.
5612 (vqshrun_n): Split to itself and...
5613 (vqrshrun_n): ...this.
5614 (vqshl_n): Split to...
5615 (vqshl_s_n): ...this and...
5616 (vqshl_u_n): ...this.
5617 (vshll_n): Split to...
5618 (vshlls_n): ...this and...
5619 (vshllu_n): ...this.
5620 (vsra_n): Split to...
5621 (vsras_n): ...this and...
5622 (vsrau_n): ...this and.
5623 (vrsras_n): ...this and...
5624 (vrsrau_n): ...this and.
5625 (vsubl): Split to...
5626 (vsubls): ...this and...
5628 (vsubw): Split to...
5629 (vsubws): ...this and...
5631 (vqsub): Split to...
5632 (vqsubs): ...this and...
5634 (vhsub): Split to...
5635 (vhsubs): ...this and...
5637 (vsubhn): Split to itself and...
5640 (vabds): ...this and...
5641 (vabdu): ...this and...
5643 (vabdl): Split to...
5644 (vabdls): ...this and...
5647 (vabas): ...this and...
5648 (vabau): ...this and...
5649 (vabal): Split to...
5650 (vabals): ...this and...
5653 (vmaxs): ...this and...
5654 (vmaxu): ...this and...
5657 (vmins): ...this and...
5658 (vminu): ...this and...
5660 (vpmax): Split to...
5661 (vpmaxs): ...this and...
5662 (vpmaxu): ...this and...
5664 (vpmin): Split to...
5665 (vpmins): ...this and...
5666 (vpminu): ...this and...
5668 (vpaddl): Split to...
5669 (vpaddls): ...this and...
5671 (vpadal): Split to...
5672 (vpadals): ...this and...
5675 (vqmovn): Split to...
5676 (vqmovns): ...this and...
5678 (vmovl): Split to...
5679 (vmovls): ...this and...
5681 (vmlal_lane): Split to...
5682 (vmlals_lane): ...this and...
5683 (vmlalu_lane): ...this.
5684 (vmlsl_lane): Split to...
5685 (vmlsls_lane): ...this and...
5686 (vmlslu_lane): ...this.
5687 (vmlal_n): Split to...
5688 (vmlals_n): ...this and...
5689 (vmlalu_n): ...this.
5690 (vmlsl_n): Split to...
5691 (vmlsls_n): ...this and...
5692 (vmlslu_n): ...this.
5693 (vext): Make type "SHIFTINSERT".
5695 (vcvts): ...this and...
5697 (vcvt_n): Split to...
5698 (vcvts_n): ...this and...
5700 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
5701 (vaddl_s16): Likewise.
5702 (vaddl_s32): Likewise.
5703 (vaddl_u8): Likewise.
5704 (vaddl_u16): Likewise.
5705 (vaddl_u32): Likewise.
5706 (vaddw_s8): Likewise.
5707 (vaddw_s16): Likewise.
5708 (vaddw_s32): Likewise.
5709 (vaddw_u8): Likewise.
5710 (vaddw_u16): Likewise.
5711 (vaddw_u32): Likewise.
5712 (vhadd_s8): Likewise.
5713 (vhadd_s16): Likewise.
5714 (vhadd_s32): Likewise.
5715 (vhadd_u8): Likewise.
5716 (vhadd_u16): Likewise.
5717 (vhadd_u32): Likewise.
5718 (vhaddq_s8): Likewise.
5719 (vhaddq_s16): Likewise.
5720 (vhaddq_s32): Likewise.
5721 (vhaddq_u8): Likewise.
5722 (vhaddq_u16): Likewise.
5723 (vrhadd_s8): Likewise.
5724 (vrhadd_s16): Likewise.
5725 (vrhadd_s32): Likewise.
5726 (vrhadd_u8): Likewise.
5727 (vrhadd_u16): Likewise.
5728 (vrhadd_u32): Likewise.
5729 (vrhaddq_s8): Likewise.
5730 (vrhaddq_s16): Likewise.
5731 (vrhaddq_s32): Likewise.
5732 (vrhaddq_u8): Likewise.
5733 (vrhaddq_u16): Likewise.
5734 (vrhaddq_u32): Likewise.
5735 (vqadd_s8): Likewise.
5736 (vqadd_s16): Likewise.
5737 (vqadd_s32): Likewise.
5738 (vqadd_s64): Likewise.
5739 (vqadd_u8): Likewise.
5740 (vqadd_u16): Likewise.
5741 (vqadd_u32): Likewise.
5742 (vqadd_u64): Likewise.
5743 (vqaddq_s8): Likewise.
5744 (vqaddq_s16): Likewise.
5745 (vqaddq_s32): Likewise.
5746 (vqaddq_s64): Likewise.
5747 (vqaddq_u8): Likewise.
5748 (vqaddq_u16): Likewise.
5749 (vqaddq_u32): Likewise.
5750 (vqaddq_u64): Likewise.
5751 (vaddhn_s16): Likewise.
5752 (vaddhn_s32): Likewise.
5753 (vaddhn_s64): Likewise.
5754 (vaddhn_u16): Likewise.
5755 (vaddhn_u32): Likewise.
5756 (vaddhn_u64): Likewise.
5757 (vraddhn_s16): Likewise.
5758 (vraddhn_s32): Likewise.
5759 (vraddhn_s64): Likewise.
5760 (vraddhn_u16): Likewise.
5761 (vraddhn_u32): Likewise.
5762 (vraddhn_u64): Likewise.
5763 (vmul_p8): Likewise.
5764 (vmulq_p8): Likewise.
5765 (vqdmulh_s16): Likewise.
5766 (vqdmulh_s32): Likewise.
5767 (vqdmulhq_s16): Likewise.
5768 (vqdmulhq_s32): Likewise.
5769 (vqrdmulh_s16): Likewise.
5770 (vqrdmulh_s32): Likewise.
5771 (vqrdmulhq_s16): Likewise.
5772 (vqrdmulhq_s32): Likewise.
5773 (vmull_s8): Likewise.
5774 (vmull_s16): Likewise.
5775 (vmull_s32): Likewise.
5776 (vmull_u8): Likewise.
5777 (vmull_u16): Likewise.
5778 (vmull_u32): Likewise.
5779 (vmull_p8): Likewise.
5780 (vqdmull_s16): Likewise.
5781 (vqdmull_s32): Likewise.
5782 (vmla_s8): Likewise.
5783 (vmla_s16): Likewise.
5784 (vmla_s32): Likewise.
5785 (vmla_f32): Likewise.
5786 (vmla_u8): Likewise.
5787 (vmla_u16): Likewise.
5788 (vmla_u32): Likewise.
5789 (vmlaq_s8): Likewise.
5790 (vmlaq_s16): Likewise.
5791 (vmlaq_s32): Likewise.
5792 (vmlaq_f32): Likewise.
5793 (vmlaq_u8): Likewise.
5794 (vmlaq_u16): Likewise.
5795 (vmlaq_u32): Likewise.
5796 (vmlal_s8): Likewise.
5797 (vmlal_s16): Likewise.
5798 (vmlal_s32): Likewise.
5799 (vmlal_u8): Likewise.
5800 (vmlal_u16): Likewise.
5801 (vmlal_u32): Likewise.
5802 (vqdmlal_s16): Likewise.
5803 (vqdmlal_s32): Likewise.
5804 (vmls_s8): Likewise.
5805 (vmls_s16): Likewise.
5806 (vmls_s32): Likewise.
5807 (vmls_f32): Likewise.
5808 (vmls_u8): Likewise.
5809 (vmls_u16): Likewise.
5810 (vmls_u32): Likewise.
5811 (vmlsq_s8): Likewise.
5812 (vmlsq_s16): Likewise.
5813 (vmlsq_s32): Likewise.
5814 (vmlsq_f32): Likewise.
5815 (vmlsq_u8): Likewise.
5816 (vmlsq_u16): Likewise.
5817 (vmlsq_u32): Likewise.
5818 (vmlsl_s8): Likewise.
5819 (vmlsl_s16): Likewise.
5820 (vmlsl_s32): Likewise.
5821 (vmlsl_u8): Likewise.
5822 (vmlsl_u16): Likewise.
5823 (vmlsl_u32): Likewise.
5824 (vqdmlsl_s16): Likewise.
5825 (vqdmlsl_s32): Likewise.
5826 (vfma_f32): Likewise.
5827 (vfmaq_f32): Likewise.
5828 (vfms_f32): Likewise.
5829 (vfmsq_f32): Likewise.
5830 (vsubl_s8): Likewise.
5831 (vsubl_s16): Likewise.
5832 (vsubl_s32): Likewise.
5833 (vsubl_u8): Likewise.
5834 (vsubl_u16): Likewise.
5835 (vsubl_u32): Likewise.
5836 (vsubw_s8): Likewise.
5837 (vsubw_s16): Likewise.
5838 (vsubw_s32): Likewise.
5839 (vsubw_u8): Likewise.
5840 (vsubw_u16): Likewise.
5841 (vsubw_u32): Likewise.
5842 (vhsub_s8): Likewise.
5843 (vhsub_s16): Likewise.
5844 (vhsub_s32): Likewise.
5845 (vhsub_u8): Likewise.
5846 (vhsub_u16): Likewise.
5847 (vhsub_u32): Likewise.
5848 (vhsubq_s8): Likewise.
5849 (vhsubq_s16): Likewise.
5850 (vhsubq_s32): Likewise.
5851 (vhsubq_u8): Likewise.
5852 (vhsubq_u16): Likewise.
5853 (vhsubq_u32): Likewise.
5854 (vqsub_s8): Likewise.
5855 (vqsub_s16): Likewise.
5856 (vqsub_s32): Likewise.
5857 (vqsub_s64): Likewise.
5858 (vqsub_u8): Likewise.
5859 (vqsub_u16): Likewise.
5860 (vqsub_u32): Likewise.
5861 (vqsub_u64): Likewise.
5862 (vqsubq_s8): Likewise.
5863 (vqsubq_s16): Likewise.
5864 (vqsubq_s32): Likewise.
5865 (vqsubq_s64): Likewise.
5866 (vqsubq_u8): Likewise.
5867 (vqsubq_u16): Likewise.
5868 (vqsubq_u32): Likewise.
5869 (vqsubq_u64): Likewise.
5870 (vsubhn_s16): Likewise.
5871 (vsubhn_s32): Likewise.
5872 (vsubhn_s64): Likewise.
5873 (vsubhn_u16): Likewise.
5874 (vsubhn_u32): Likewise.
5875 (vsubhn_u64): Likewise.
5876 (vrsubhn_s16): Likewise.
5877 (vrsubhn_s32): Likewise.
5878 (vrsubhn_s64): Likewise.
5879 (vrsubhn_u16): Likewise.
5880 (vrsubhn_u32): Likewise.
5881 (vrsubhn_u64): Likewise.
5882 (vceq_s8): Likewise.
5883 (vceq_s16): Likewise.
5884 (vceq_s32): Likewise.
5885 (vceq_f32): Likewise.
5886 (vceq_u8): Likewise.
5887 (vceq_u16): Likewise.
5888 (vceq_u32): Likewise.
5889 (vceq_p8): Likewise.
5890 (vceqq_s8): Likewise.
5891 (vceqq_s16): Likewise.
5892 (vceqq_s32): Likewise.
5893 (vceqq_f32): Likewise.
5894 (vceqq_u8): Likewise.
5895 (vceqq_u16): Likewise.
5896 (vceqq_u32): Likewise.
5897 (vceqq_p8): Likewise.
5898 (vcge_s8): Likewise.
5899 (vcge_s16): Likewise.
5900 (vcge_s32): Likewise.
5901 (vcge_f32): Likewise.
5902 (vcge_u8): Likewise.
5903 (vcge_u16): Likewise.
5904 (vcge_u32): Likewise.
5905 (vcgeq_s8): Likewise.
5906 (vcgeq_s16): Likewise.
5907 (vcgeq_s32): Likewise.
5908 (vcgeq_f32): Likewise.
5909 (vcgeq_u8): Likewise.
5910 (vcgeq_u16): Likewise.
5911 (vcgeq_u32): Likewise.
5912 (vcle_s8): Likewise.
5913 (vcle_s16): Likewise.
5914 (vcle_s32): Likewise.
5915 (vcle_f32): Likewise.
5916 (vcle_u8): Likewise.
5917 (vcle_u16): Likewise.
5918 (vcle_u32): Likewise.
5919 (vcleq_s8): Likewise.
5920 (vcleq_s16): Likewise.
5921 (vcleq_s32): Likewise.
5922 (vcleq_f32): Likewise.
5923 (vcleq_u8): Likewise.
5924 (vcleq_u16): Likewise.
5925 (vcleq_u32): Likewise.
5926 (vcgt_s8): Likewise.
5927 (vcgt_s16): Likewise.
5928 (vcgt_s32): Likewise.
5929 (vcgt_f32): Likewise.
5930 (vcgt_u8): Likewise.
5931 (vcgt_u16): Likewise.
5932 (vcgt_u32): Likewise.
5933 (vcgtq_s8): Likewise.
5934 (vcgtq_s16): Likewise.
5935 (vcgtq_s32): Likewise.
5936 (vcgtq_f32): Likewise.
5937 (vcgtq_u8): Likewise.
5938 (vcgtq_u16): Likewise.
5939 (vcgtq_u32): Likewise.
5940 (vclt_s8): Likewise.
5941 (vclt_s16): Likewise.
5942 (vclt_s32): Likewise.
5943 (vclt_f32): Likewise.
5944 (vclt_u8): Likewise.
5945 (vclt_u16): Likewise.
5946 (vclt_u32): Likewise.
5947 (vcltq_s8): Likewise.
5948 (vcltq_s16): Likewise.
5949 (vcltq_s32): Likewise.
5950 (vcltq_f32): Likewise.
5951 (vcltq_u8): Likewise.
5952 (vcltq_u16): Likewise.
5953 (vcltq_u32): Likewise.
5954 (vcage_f32): Likewise.
5955 (vcageq_f32): Likewise.
5956 (vcale_f32): Likewise.
5957 (vcaleq_f32): Likewise.
5958 (vcagt_f32): Likewise.
5959 (vcagtq_f32): Likewise.
5960 (vcalt_f32): Likewise.
5961 (vcaltq_f32): Likewise.
5962 (vtst_s8): Likewise.
5963 (vtst_s16): Likewise.
5964 (vtst_s32): Likewise.
5965 (vtst_u8): Likewise.
5966 (vtst_u16): Likewise.
5967 (vtst_u32): Likewise.
5968 (vtst_p8): Likewise.
5969 (vtstq_s8): Likewise.
5970 (vtstq_s16): Likewise.
5971 (vtstq_s32): Likewise.
5972 (vtstq_u8): Likewise.
5973 (vtstq_u16): Likewise.
5974 (vtstq_u32): Likewise.
5975 (vtstq_p8): Likewise.
5976 (vabd_s8): Likewise.
5977 (vabd_s16): Likewise.
5978 (vabd_s32): Likewise.
5979 (vabd_f32): Likewise.
5980 (vabd_u8): Likewise.
5981 (vabd_u16): Likewise.
5982 (vabd_u32): Likewise.
5983 (vabdq_s8): Likewise.
5984 (vabdq_s16): Likewise.
5985 (vabdq_s32): Likewise.
5986 (vabdq_f32): Likewise.
5987 (vabdq_u8): Likewise.
5988 (vabdq_u16): Likewise.
5989 (vabdq_u32): Likewise.
5990 (vabdl_s8): Likewise.
5991 (vabdl_s16): Likewise.
5992 (vabdl_s32): Likewise.
5993 (vabdl_u8): Likewise.
5994 (vabdl_u16): Likewise.
5995 (vabdl_u32): Likewise.
5996 (vaba_s8): Likewise.
5997 (vaba_s16): Likewise.
5998 (vaba_s32): Likewise.
5999 (vaba_u8): Likewise.
6000 (vaba_u16): Likewise.
6001 (vaba_u32): Likewise.
6002 (vabaq_s8): Likewise.
6003 (vabaq_s16): Likewise.
6004 (vabaq_s32): Likewise.
6005 (vabaq_u8): Likewise.
6006 (vabaq_u16): Likewise.
6007 (vabaq_u32): Likewise.
6008 (vabal_s8): Likewise.
6009 (vabal_s16): Likewise.
6010 (vabal_s32): Likewise.
6011 (vabal_u8): Likewise.
6012 (vabal_u16): Likewise.
6013 (vabal_u32): Likewise.
6014 (vmax_s8): Likewise.
6015 (vmax_s16): Likewise.
6016 (vmax_s32): Likewise.
6017 (vmax_f32): Likewise.
6018 (vmax_u8): Likewise.
6019 (vmax_u16): Likewise.
6020 (vmax_u32): Likewise.
6021 (vmaxq_s8): Likewise.
6022 (vmaxq_s16): Likewise.
6023 (vmaxq_s32): Likewise.
6024 (vmaxq_f32): Likewise.
6025 (vmaxq_u8): Likewise.
6026 (vmaxq_u16): Likewise.
6027 (vmaxq_u32): Likewise.
6028 (vmin_s8): Likewise.
6029 (vmin_s16): Likewise.
6030 (vmin_s32): Likewise.
6031 (vmin_f32): Likewise.
6032 (vmin_u8): Likewise.
6033 (vmin_u16): Likewise.
6034 (vmin_u32): Likewise.
6035 (vminq_s8): Likewise.
6036 (vminq_s16): Likewise.
6037 (vminq_s32): Likewise.
6038 (vminq_f32): Likewise.
6039 (vminq_u8): Likewise.
6040 (vminq_u16): Likewise.
6041 (vminq_u32): Likewise.
6042 (vpadd_s8): Likewise.
6043 (vpadd_s16): Likewise.
6044 (vpadd_s32): Likewise.
6045 (vpadd_f32): Likewise.
6046 (vpadd_u8): Likewise.
6047 (vpadd_u16): Likewise.
6048 (vpadd_u32): Likewise.
6049 (vpaddl_s8): Likewise.
6050 (vpaddl_s16): Likewise.
6051 (vpaddl_s32): Likewise.
6052 (vpaddl_u8): Likewise.
6053 (vpaddl_u16): Likewise.
6054 (vpaddl_u32): Likewise.
6055 (vpaddlq_s8): Likewise.
6056 (vpaddlq_s16): Likewise.
6057 (vpaddlq_s32): Likewise.
6058 (vpaddlq_u8): Likewise.
6059 (vpaddlq_u16): Likewise.
6060 (vpaddlq_u32): Likewise.
6061 (vpadal_s8): Likewise.
6062 (vpadal_s16): Likewise.
6063 (vpadal_s32): Likewise.
6064 (vpadal_u8): Likewise.
6065 (vpadal_u16): Likewise.
6066 (vpadal_u32): Likewise.
6067 (vpadalq_s8): Likewise.
6068 (vpadalq_s16): Likewise.
6069 (vpadalq_s32): Likewise.
6070 (vpadalq_u8): Likewise.
6071 (vpadalq_u16): Likewise.
6072 (vpadalq_u32): Likewise.
6073 (vpmax_s8): Likewise.
6074 (vpmax_s16): Likewise.
6075 (vpmax_s32): Likewise.
6076 (vpmax_f32): Likewise.
6077 (vpmax_u8): Likewise.
6078 (vpmax_u16): Likewise.
6079 (vpmax_u32): Likewise.
6080 (vpmin_s8): Likewise.
6081 (vpmin_s16): Likewise.
6082 (vpmin_s32): Likewise.
6083 (vpmin_f32): Likewise.
6084 (vpmin_u8): Likewise.
6085 (vpmin_u16): Likewise.
6086 (vpmin_u32): Likewise.
6087 (vrecps_f32): Likewise.
6088 (vrecpsq_f32): Likewise.
6089 (vrsqrts_f32): Likewise.
6090 (vrsqrtsq_f32): Likewise.
6091 (vshl_s8): Likewise.
6092 (vshl_s16): Likewise.
6093 (vshl_s32): Likewise.
6094 (vshl_s64): Likewise.
6095 (vshl_u8): Likewise.
6096 (vshl_u16): Likewise.
6097 (vshl_u32): Likewise.
6098 (vshl_u64): Likewise.
6099 (vshlq_s8): Likewise.
6100 (vshlq_s16): Likewise.
6101 (vshlq_s32): Likewise.
6102 (vshlq_s64): Likewise.
6103 (vshlq_u8): Likewise.
6104 (vshlq_u16): Likewise.
6105 (vshlq_u32): Likewise.
6106 (vshlq_u64): Likewise.
6107 (vrshl_s8): Likewise.
6108 (vrshl_s16): Likewise.
6109 (vrshl_s32): Likewise.
6110 (vrshl_s64): Likewise.
6111 (vrshl_u8): Likewise.
6112 (vrshl_u16): Likewise.
6113 (vrshl_u32): Likewise.
6114 (vrshl_u64): Likewise.
6115 (vrshlq_s8): Likewise.
6116 (vrshlq_s16): Likewise.
6117 (vrshlq_s32): Likewise.
6118 (vrshlq_s64): Likewise.
6119 (vrshlq_u8): Likewise.
6120 (vrshlq_u16): Likewise.
6121 (vrshlq_u32): Likewise.
6122 (vrshlq_u64): Likewise.
6123 (vqshl_s8): Likewise.
6124 (vqshl_s16): Likewise.
6125 (vqshl_s32): Likewise.
6126 (vqshl_s64): Likewise.
6127 (vqshl_u8): Likewise.
6128 (vqshl_u16): Likewise.
6129 (vqshl_u32): Likewise.
6130 (vqshl_u64): Likewise.
6131 (vqshlq_s8): Likewise.
6132 (vqshlq_s16): Likewise.
6133 (vqshlq_s32): Likewise.
6134 (vqshlq_s64): Likewise.
6135 (vqshlq_u8): Likewise.
6136 (vqshlq_u16): Likewise.
6137 (vqshlq_u32): Likewise.
6138 (vqshlq_u64): Likewise.
6139 (vqrshl_s8): Likewise.
6140 (vqrshl_s16): Likewise.
6141 (vqrshl_s32): Likewise.
6142 (vqrshl_s64): Likewise.
6143 (vqrshl_u8): Likewise.
6144 (vqrshl_u16): Likewise.
6145 (vqrshl_u32): Likewise.
6146 (vqrshl_u64): Likewise.
6147 (vqrshlq_s8): Likewise.
6148 (vqrshlq_s16): Likewise.
6149 (vqrshlq_s32): Likewise.
6150 (vqrshlq_s64): Likewise.
6151 (vqrshlq_u8): Likewise.
6152 (vqrshlq_u16): Likewise.
6153 (vqrshlq_u32): Likewise.
6154 (vqrshlq_u64): Likewise.
6155 (vshr_n_s8): Likewise.
6156 (vshr_n_s16): Likewise.
6157 (vshr_n_s32): Likewise.
6158 (vshr_n_s64): Likewise.
6159 (vshr_n_u8): Likewise.
6160 (vshr_n_u16): Likewise.
6161 (vshr_n_u32): Likewise.
6162 (vshr_n_u64): Likewise.
6163 (vshrq_n_s8): Likewise.
6164 (vshrq_n_s16): Likewise.
6165 (vshrq_n_s32): Likewise.
6166 (vshrq_n_s64): Likewise.
6167 (vshrq_n_u8): Likewise.
6168 (vshrq_n_u16): Likewise.
6169 (vshrq_n_u32): Likewise.
6170 (vshrq_n_u64): Likewise.
6171 (vrshr_n_s8): Likewise.
6172 (vrshr_n_s16): Likewise.
6173 (vrshr_n_s32): Likewise.
6174 (vrshr_n_s64): Likewise.
6175 (vrshr_n_u8): Likewise.
6176 (vrshr_n_u16): Likewise.
6177 (vrshr_n_u32): Likewise.
6178 (vrshr_n_u64): Likewise.
6179 (vrshrq_n_s8): Likewise.
6180 (vrshrq_n_s16): Likewise.
6181 (vrshrq_n_s32): Likewise.
6182 (vrshrq_n_s64): Likewise.
6183 (vrshrq_n_u8): Likewise.
6184 (vrshrq_n_u16): Likewise.
6185 (vrshrq_n_u32): Likewise.
6186 (vrshrq_n_u64): Likewise.
6187 (vshrn_n_s16): Likewise.
6188 (vshrn_n_s32): Likewise.
6189 (vshrn_n_s64): Likewise.
6190 (vshrn_n_u16): Likewise.
6191 (vshrn_n_u32): Likewise.
6192 (vshrn_n_u64): Likewise.
6193 (vrshrn_n_s16): Likewise.
6194 (vrshrn_n_s32): Likewise.
6195 (vrshrn_n_s64): Likewise.
6196 (vrshrn_n_u16): Likewise.
6197 (vrshrn_n_u32): Likewise.
6198 (vrshrn_n_u64): Likewise.
6199 (vqshrn_n_s16): Likewise.
6200 (vqshrn_n_s32): Likewise.
6201 (vqshrn_n_s64): Likewise.
6202 (vqshrn_n_u16): Likewise.
6203 (vqshrn_n_u32): Likewise.
6204 (vqshrn_n_u64): Likewise.
6205 (vqrshrn_n_s16): Likewise.
6206 (vqrshrn_n_s32): Likewise.
6207 (vqrshrn_n_s64): Likewise.
6208 (vqrshrn_n_u16): Likewise.
6209 (vqrshrn_n_u32): Likewise.
6210 (vqrshrn_n_u64): Likewise.
6211 (vqshrun_n_s16): Likewise.
6212 (vqshrun_n_s32): Likewise.
6213 (vqshrun_n_s64): Likewise.
6214 (vqrshrun_n_s16): Likewise.
6215 (vqrshrun_n_s32): Likewise.
6216 (vqrshrun_n_s64): Likewise.
6217 (vshl_n_s8): Likewise.
6218 (vshl_n_s16): Likewise.
6219 (vshl_n_s32): Likewise.
6220 (vshl_n_s64): Likewise.
6221 (vshl_n_u8): Likewise.
6222 (vshl_n_u16): Likewise.
6223 (vshl_n_u32): Likewise.
6224 (vshl_n_u64): Likewise.
6225 (vshlq_n_s8): Likewise.
6226 (vshlq_n_s16): Likewise.
6227 (vshlq_n_s32): Likewise.
6228 (vshlq_n_s64): Likewise.
6229 (vshlq_n_u8): Likewise.
6230 (vshlq_n_u16): Likewise.
6231 (vshlq_n_u32): Likewise.
6232 (vshlq_n_u64): Likewise.
6233 (vqshl_n_s8): Likewise.
6234 (vqshl_n_s16): Likewise.
6235 (vqshl_n_s32): Likewise.
6236 (vqshl_n_s64): Likewise.
6237 (vqshl_n_u8): Likewise.
6238 (vqshl_n_u16): Likewise.
6239 (vqshl_n_u32): Likewise.
6240 (vqshl_n_u64): Likewise.
6241 (vqshlq_n_s8): Likewise.
6242 (vqshlq_n_s16): Likewise.
6243 (vqshlq_n_s32): Likewise.
6244 (vqshlq_n_s64): Likewise.
6245 (vqshlq_n_u8): Likewise.
6246 (vqshlq_n_u16): Likewise.
6247 (vqshlq_n_u32): Likewise.
6248 (vqshlq_n_u64): Likewise.
6249 (vqshlu_n_s8): Likewise.
6250 (vqshlu_n_s16): Likewise.
6251 (vqshlu_n_s32): Likewise.
6252 (vqshlu_n_s64): Likewise.
6253 (vqshluq_n_s8): Likewise.
6254 (vqshluq_n_s16): Likewise.
6255 (vqshluq_n_s32): Likewise.
6256 (vqshluq_n_s64): Likewise.
6257 (vshll_n_s8): Likewise.
6258 (vshll_n_s16): Likewise.
6259 (vshll_n_s32): Likewise.
6260 (vshll_n_u8): Likewise.
6261 (vshll_n_u16): Likewise.
6262 (vshll_n_u32): Likewise.
6263 (vsra_n_s8): Likewise.
6264 (vsra_n_s16): Likewise.
6265 (vsra_n_s32): Likewise.
6266 (vsra_n_s64): Likewise.
6267 (vsra_n_u8): Likewise.
6268 (vsra_n_u16): Likewise.
6269 (vsra_n_u32): Likewise.
6270 (vsra_n_u64): Likewise.
6271 (vsraq_n_s8): Likewise.
6272 (vsraq_n_s16): Likewise.
6273 (vsraq_n_s32): Likewise.
6274 (vsraq_n_s64): Likewise.
6275 (vsraq_n_u8): Likewise.
6276 (vsraq_n_u16): Likewise.
6277 (vsraq_n_u32): Likewise.
6278 (vsraq_n_u64): Likewise.
6279 (vrsra_n_s8): Likewise.
6280 (vrsra_n_s16): Likewise.
6281 (vrsra_n_s32): Likewise.
6282 (vrsra_n_s64): Likewise.
6283 (vrsra_n_u8): Likewise.
6284 (vrsra_n_u16): Likewise.
6285 (vrsra_n_u32): Likewise.
6286 (vrsra_n_u64): Likewise.
6287 (vrsraq_n_s8): Likewise.
6288 (vrsraq_n_s16): Likewise.
6289 (vrsraq_n_s32): Likewise.
6290 (vrsraq_n_s64): Likewise.
6291 (vrsraq_n_u8): Likewise.
6292 (vrsraq_n_u16): Likewise.
6293 (vrsraq_n_u32): Likewise.
6294 (vrsraq_n_u64): Likewise.
6295 (vabs_s8): Likewise.
6296 (vabs_s16): Likewise.
6297 (vabs_s32): Likewise.
6298 (vabs_f32): Likewise.
6299 (vabsq_s8): Likewise.
6300 (vabsq_s16): Likewise.
6301 (vabsq_s32): Likewise.
6302 (vabsq_f32): Likewise.
6303 (vqabs_s8): Likewise.
6304 (vqabs_s16): Likewise.
6305 (vqabs_s32): Likewise.
6306 (vqabsq_s8): Likewise.
6307 (vqabsq_s16): Likewise.
6308 (vqabsq_s32): Likewise.
6309 (vneg_s8): Likewise.
6310 (vneg_s16): Likewise.
6311 (vneg_s32): Likewise.
6312 (vneg_f32): Likewise.
6313 (vnegq_s8): Likewise.
6314 (vnegq_s16): Likewise.
6315 (vnegq_s32): Likewise.
6316 (vnegq_f32): Likewise.
6317 (vqneg_s8): Likewise.
6318 (vqneg_s16): Likewise.
6319 (vqneg_s32): Likewise.
6320 (vqnegq_s8): Likewise.
6321 (vqnegq_s16): Likewise.
6322 (vqnegq_s32): Likewise.
6323 (vmvn_s8): Likewise.
6324 (vmvn_s16): Likewise.
6325 (vmvn_s32): Likewise.
6326 (vmvn_u8): Likewise.
6327 (vmvn_u16): Likewise.
6328 (vmvn_u32): Likewise.
6329 (vmvn_p8): Likewise.
6330 (vmvnq_s8): Likewise.
6331 (vmvnq_s16): Likewise.
6332 (vmvnq_s32): Likewise.
6333 (vmvnq_u8): Likewise.
6334 (vmvnq_u16): Likewise.
6335 (vmvnq_u32): Likewise.
6336 (vmvnq_p8): Likewise.
6337 (vcls_s8): Likewise.
6338 (vcls_s16): Likewise.
6339 (vcls_s32): Likewise.
6340 (vclsq_s8): Likewise.
6341 (vclsq_s16): Likewise.
6342 (vclsq_s32): Likewise.
6343 (vclz_s8): Likewise.
6344 (vclz_s16): Likewise.
6345 (vclz_s32): Likewise.
6346 (vclz_u8): Likewise.
6347 (vclz_u16): Likewise.
6348 (vclz_u32): Likewise.
6349 (vclzq_s8): Likewise.
6350 (vclzq_s16): Likewise.
6351 (vclzq_s32): Likewise.
6352 (vclzq_u8): Likewise.
6353 (vclzq_u16): Likewise.
6354 (vclzq_u32): Likewise.
6355 (vcnt_s8): Likewise.
6356 (vcnt_u8): Likewise.
6357 (vcnt_p8): Likewise.
6358 (vcntq_s8): Likewise.
6359 (vcntq_u8): Likewise.
6360 (vcntq_p8): Likewise.
6361 (vrecpe_f32): Likewise.
6362 (vrecpe_u32): Likewise.
6363 (vrecpeq_f32): Likewise.
6364 (vrecpeq_u32): Likewise.
6365 (vrsqrte_f32): Likewise.
6366 (vrsqrte_u32): Likewise.
6367 (vrsqrteq_f32): Likewise.
6368 (vrsqrteq_u32): Likewise.
6369 (vget_lane_s8): Likewise.
6370 (vget_lane_s16): Likewise.
6371 (vget_lane_s32): Likewise.
6372 (vget_lane_f32): Likewise.
6373 (vget_lane_u8): Likewise.
6374 (vget_lane_u16): Likewise.
6375 (vget_lane_u32): Likewise.
6376 (vget_lane_p8): Likewise.
6377 (vget_lane_p16): Likewise.
6378 (vget_lane_s64): Likewise.
6379 (vget_lane_u64): Likewise.
6380 (vgetq_lane_s8): Likewise.
6381 (vgetq_lane_s16): Likewise.
6382 (vgetq_lane_s32): Likewise.
6383 (vgetq_lane_f32): Likewise.
6384 (vgetq_lane_u8): Likewise.
6385 (vgetq_lane_u16): Likewise.
6386 (vgetq_lane_u32): Likewise.
6387 (vgetq_lane_p8): Likewise.
6388 (vgetq_lane_p16): Likewise.
6389 (vgetq_lane_s64): Likewise.
6390 (vgetq_lane_u64): Likewise.
6391 (vcvt_s32_f32): Likewise.
6392 (vcvt_f32_s32): Likewise.
6393 (vcvt_f32_u32): Likewise.
6394 (vcvt_u32_f32): Likewise.
6395 (vcvtq_s32_f32): Likewise.
6396 (vcvtq_f32_s32): Likewise.
6397 (vcvtq_f32_u32): Likewise.
6398 (vcvtq_u32_f32): Likewise.
6399 (vcvt_n_s32_f32): Likewise.
6400 (vcvt_n_f32_s32): Likewise.
6401 (vcvt_n_f32_u32): Likewise.
6402 (vcvt_n_u32_f32): Likewise.
6403 (vcvtq_n_s32_f32): Likewise.
6404 (vcvtq_n_f32_s32): Likewise.
6405 (vcvtq_n_f32_u32): Likewise.
6406 (vcvtq_n_u32_f32): Likewise.
6407 (vmovn_s16): Likewise.
6408 (vmovn_s32): Likewise.
6409 (vmovn_s64): Likewise.
6410 (vmovn_u16): Likewise.
6411 (vmovn_u32): Likewise.
6412 (vmovn_u64): Likewise.
6413 (vqmovn_s16): Likewise.
6414 (vqmovn_s32): Likewise.
6415 (vqmovn_s64): Likewise.
6416 (vqmovn_u16): Likewise.
6417 (vqmovn_u32): Likewise.
6418 (vqmovn_u64): Likewise.
6419 (vqmovun_s16): Likewise.
6420 (vqmovun_s32): Likewise.
6421 (vqmovun_s64): Likewise.
6422 (vmovl_s8): Likewise.
6423 (vmovl_s16): Likewise.
6424 (vmovl_s32): Likewise.
6425 (vmovl_u8): Likewise.
6426 (vmovl_u16): Likewise.
6427 (vmovl_u32): Likewise.
6428 (vmul_lane_s16): Likewise.
6429 (vmul_lane_s32): Likewise.
6430 (vmul_lane_f32): Likewise.
6431 (vmul_lane_u16): Likewise.
6432 (vmul_lane_u32): Likewise.
6433 (vmulq_lane_s16): Likewise.
6434 (vmulq_lane_s32): Likewise.
6435 (vmulq_lane_f32): Likewise.
6436 (vmulq_lane_u16): Likewise.
6437 (vmulq_lane_u32): Likewise.
6438 (vmla_lane_s16): Likewise.
6439 (vmla_lane_s32): Likewise.
6440 (vmla_lane_f32): Likewise.
6441 (vmla_lane_u16): Likewise.
6442 (vmla_lane_u32): Likewise.
6443 (vmlaq_lane_s16): Likewise.
6444 (vmlaq_lane_s32): Likewise.
6445 (vmlaq_lane_f32): Likewise.
6446 (vmlaq_lane_u16): Likewise.
6447 (vmlaq_lane_u32): Likewise.
6448 (vmlal_lane_s16): Likewise.
6449 (vmlal_lane_s32): Likewise.
6450 (vmlal_lane_u16): Likewise.
6451 (vmlal_lane_u32): Likewise.
6452 (vqdmlal_lane_s16): Likewise.
6453 (vqdmlal_lane_s32): Likewise.
6454 (vmls_lane_s16): Likewise.
6455 (vmls_lane_s32): Likewise.
6456 (vmls_lane_f32): Likewise.
6457 (vmls_lane_u16): Likewise.
6458 (vmls_lane_u32): Likewise.
6459 (vmlsq_lane_s16): Likewise.
6460 (vmlsq_lane_s32): Likewise.
6461 (vmlsq_lane_f32): Likewise.
6462 (vmlsq_lane_u16): Likewise.
6463 (vmlsq_lane_u32): Likewise.
6464 (vmlsl_lane_s16): Likewise.
6465 (vmlsl_lane_s32): Likewise.
6466 (vmlsl_lane_u16): Likewise.
6467 (vmlsl_lane_u32): Likewise.
6468 (vqdmlsl_lane_s16): Likewise.
6469 (vqdmlsl_lane_s32): Likewise.
6470 (vmull_lane_s16): Likewise.
6471 (vmull_lane_s32): Likewise.
6472 (vmull_lane_u16): Likewise.
6473 (vmull_lane_u32): Likewise.
6474 (vqdmull_lane_s16): Likewise.
6475 (vqdmull_lane_s32): Likewise.
6476 (vqdmulhq_lane_s16): Likewise.
6477 (vqdmulhq_lane_s32): Likewise.
6478 (vqdmulh_lane_s16): Likewise.
6479 (vqdmulh_lane_s32): Likewise.
6480 (vqrdmulhq_lane_s16): Likewise.
6481 (vqrdmulhq_lane_s32): Likewise.
6482 (vqrdmulh_lane_s16): Likewise.
6483 (vqrdmulh_lane_s32): Likewise.
6484 (vmul_n_s16): Likewise.
6485 (vmul_n_s32): Likewise.
6486 (vmul_n_f32): Likewise.
6487 (vmul_n_u16): Likewise.
6488 (vmul_n_u32): Likewise.
6489 (vmulq_n_s16): Likewise.
6490 (vmulq_n_s32): Likewise.
6491 (vmulq_n_f32): Likewise.
6492 (vmulq_n_u16): Likewise.
6493 (vmulq_n_u32): Likewise.
6494 (vmull_n_s16): Likewise.
6495 (vmull_n_s32): Likewise.
6496 (vmull_n_u16): Likewise.
6497 (vmull_n_u32): Likewise.
6498 (vqdmull_n_s16): Likewise.
6499 (vqdmull_n_s32): Likewise.
6500 (vqdmulhq_n_s16): Likewise.
6501 (vqdmulhq_n_s32): Likewise.
6502 (vqdmulh_n_s16): Likewise.
6503 (vqdmulh_n_s32): Likewise.
6504 (vqrdmulhq_n_s16): Likewise.
6505 (vqrdmulhq_n_s32): Likewise.
6506 (vqrdmulh_n_s16): Likewise.
6507 (vqrdmulh_n_s32): Likewise.
6508 (vmla_n_s16): Likewise.
6509 (vmla_n_s32): Likewise.
6510 (vmla_n_f32): Likewise.
6511 (vmla_n_u16): Likewise.
6512 (vmla_n_u32): Likewise.
6513 (vmlaq_n_s16): Likewise.
6514 (vmlaq_n_s32): Likewise.
6515 (vmlaq_n_f32): Likewise.
6516 (vmlaq_n_u16): Likewise.
6517 (vmlaq_n_u32): Likewise.
6518 (vmlal_n_s16): Likewise.
6519 (vmlal_n_s32): Likewise.
6520 (vmlal_n_u16): Likewise.
6521 (vmlal_n_u32): Likewise.
6522 (vqdmlal_n_s16): Likewise.
6523 (vqdmlal_n_s32): Likewise.
6524 (vmls_n_s16): Likewise.
6525 (vmls_n_s32): Likewise.
6526 (vmls_n_f32): Likewise.
6527 (vmls_n_u16): Likewise.
6528 (vmls_n_u32): Likewise.
6529 (vmlsq_n_s16): Likewise.
6530 (vmlsq_n_s32): Likewise.
6531 (vmlsq_n_f32): Likewise.
6532 (vmlsq_n_u16): Likewise.
6533 (vmlsq_n_u32): Likewise.
6534 (vmlsl_n_s16): Likewise.
6535 (vmlsl_n_s32): Likewise.
6536 (vmlsl_n_u16): Likewise.
6537 (vmlsl_n_u32): Likewise.
6538 (vqdmlsl_n_s16): Likewise.
6539 (vqdmlsl_n_s32): Likewise.
6541 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6543 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
6544 Add cost of alu.arith in simple SImode case.
6546 2014-11-18 Jiong Wang <jiong.wang@arm.com>
6548 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
6551 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
6553 * opts.c (finish_options): Disable aggressive opts for sanitizer.
6554 (common_handle_option): Move code to finish_options.
6556 2014-11-18 Yury Gribov <y.gribov@samsung.com>
6559 * stor-layout.c (min_align_of_type): Respect user alignment
6562 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6564 * passes.c (remove_cgraph_node_from_order): New.
6565 (do_per_function_toporder): Register cgraph removal
6568 2014-11-17 Terry Guo <terry.guo@arm.com>
6570 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
6571 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
6572 (generic_vfp): Likewise.
6573 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
6575 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
6577 PR rtl-optimization/63906
6578 * lra-remat.c (operand_to_remat): Check SP and
6579 frame_pointer_required.
6581 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
6583 * doc/invoke.texi (floop-unroll-and-jam): Document
6584 (loop-unroll-jam-size): Likewise.
6585 (loop-unroll-jam-depth): Likewise.
6586 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
6587 (getScheduleForBandList): Replaced unsafe union_map reuse.
6589 2014-11-17 Andrew Pinski <apinski@cavium.com>
6591 * config/aarch64/thunderx.md: Remove copyright which should not
6594 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6595 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6597 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
6598 Altivec style vector loads that ignore the bottom 3 bits of the
6600 (rs6000_debug_addr_mask): New function to print the addr_mask
6601 values if debugging.
6602 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
6604 (rs6000_setup_reg_addr_masks): Add support for Altivec style
6605 vector loads that ignore the bottom 3 bits of the address. Allow
6606 pre-increment and pre-decrement on floating point, even if the
6607 -mupper-regs-{sf,df} options were used.
6608 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
6609 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
6610 placement for direct move support.
6611 (rs6000_option_override_internal): Add checks for -mupper-regs-df
6612 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
6613 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
6614 depending on the underlying cpu.
6615 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
6616 (rs6000_secondary_reload_toc_costs): Helper function to identify
6617 costs of a TOC load for secondary reload support.
6618 (rs6000_secondary_reload_memory): Helper function for secondary
6619 reload, to determine if a particular memory operation is directly
6620 handled by the hardware, or if it needs support from secondary
6621 reload to create a valid address.
6622 (rs6000_secondary_reload): Rework code, to be clearer. If the
6623 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
6624 reload scalar values, since the FPR registers have D-form
6625 addressing. Move most of the code handling memory to the function
6626 rs6000_secondary_reload_memory, and use the reg_addr structure to
6627 determine what type of address modes are supported. Print more
6628 debug information if -mdebug=addr.
6629 (rs6000_secondary_reload_inner): Rework entire function to be more
6630 general. Use the reg_addr bits to determine what type of
6631 addressing is supported.
6632 (rs6000_preferred_reload_class): Rework. Move constant handling
6633 into a single place. Prefer using FLOAT_REGS for scalar floating
6635 (rs6000_secondary_reload_class): Use a FPR register to move a
6636 value from an Altivec register to a GPR, and vice versa. Move VSX
6637 handling above traditional floating point.
6639 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
6640 Delete some spaces in the constraints.
6641 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
6642 allow using FPR registers to load/store an Altivec register for
6643 scalar floating point types.
6644 (SF->SF move peephole2): Likewise.
6645 (DFmode splitter): Add a define_split to move floating point
6646 constants to the constant pool before register allocation.
6647 Normally constants are put into the pool immediately, but
6648 -ffast-math delays putting them into the constant pool for the
6649 reciprocal approximation support.
6650 (SFmode splitter): Likewise.
6652 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
6653 (-mupper-regs-sf): Likewise.
6655 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6656 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
6658 (-mupper-regs): New combination option that sets -mupper-regs-sf
6659 and -mupper-regs-df by default if the cpu supports the instructions.
6661 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6662 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
6664 * config/rs6000/predicates.md (memory_fp_constant): New predicate
6665 to return true if the operand is a floating point constant that
6666 must be put into the constant pool, before register allocation
6669 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
6670 -mupper-regs-df by default.
6671 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
6672 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
6673 various -mcpu=... options.
6674 (power7 cpu): Enable -mupper-regs-df by default.
6676 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6679 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6681 * ira-conflicts.c (build_conflict_bit_table): Add the current
6682 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
6684 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6686 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
6687 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
6688 (devirtualization_time_bonus): Use it.
6689 (ipcp_discover_new_direct_edges): Likewise.
6690 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
6691 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
6693 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6695 * tree.c (free_lang_data_in_decl): Set
6696 DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.
6698 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6700 * cgraphunit.c (analyze_functions): Use opt_for_fn.
6701 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
6703 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6705 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
6706 (cgraph_node::cannot_return_p): Likewise.
6707 (cgraph_edge::cannot_lead_to_return_p): Likewise.
6708 (cgraph_edge::maybe_hot_p): Likewise.
6710 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6712 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
6713 (optimize_function_for_size_p): Likewise.
6714 (probably_never_executed): Likewise; replace cfun by fun.
6716 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6718 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
6719 variant reading from memory and assembling to ld1.
6721 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
6722 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
6723 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
6724 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
6725 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
6726 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
6727 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
6729 2014-11-17 Jason Merrill <jason@redhat.com>
6731 * tree-inline.c (copy_fn): New.
6732 * tree-inline.h: Declare it.
6734 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6736 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
6737 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
6738 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
6739 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
6740 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
6741 * config/aarch64/iterators.md (VD1): Remove.
6743 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6745 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
6746 AARCH64_FL_CRYPTO from feature flags.
6747 (cortex-a57): Likewise.
6748 (cortex-a57.cortex-a53): Likewise.
6750 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6752 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
6753 DECL_FUNCTION_SPECIFIC_TARGET.
6754 * i386.c (ix86_set_current_function): Handle explicit default options.
6756 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6758 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
6760 (expand_builtin_mempcpy_with_bounds): Likewise.
6761 (expand_builtin_memset_with_bounds): Likewise.
6763 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6765 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
6766 ipa-ref.h, plugin-api.h.
6767 (get_string_length): Handle calls with bounds.
6768 (adjust_last_stmt): Likewise.
6769 (handle_builtin_strchr): Likewise.
6770 (handle_builtin_strcpy): Likewise.
6771 (handle_builtin_memcpy): Likewise.
6772 (handle_builtin_strcat): Likewise.
6774 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6776 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
6777 (chkp_get_nochk_fndecl): New.
6778 (chkp_optimize_string_function_calls): New.
6779 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
6780 * tree-cfg.h (insert_cond_bb): New.
6781 * tree-cfg.c (insert_cond_bb): New.
6783 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6785 * tree-core.h (built_in_class): Add builtin codes to be used
6786 by Pointer Bounds Checker for instrumented builtin functions.
6787 * tree-streamer-in.c: Include ipa-chkp.h.
6788 (streamer_get_builtin_tree): Created instrumented decl if
6790 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
6791 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
6793 (chkp_maybe_clone_builtin_fndecl): New.
6794 (chkp_maybe_create_clone): Support builtin function decls.
6795 (chkp_versioning): Clone builtin functions.
6796 * tree-chkp.c (chkp_instrument_normal_builtin): New.
6797 (chkp_add_bounds_to_call_stmt): Support builtin functions.
6798 (chkp_replace_function_pointer): Likewise.
6799 * builtins.c (expand_builtin_memcpy_args): New.
6800 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
6801 (expand_builtin_memcpy_with_bounds): New.
6802 (expand_builtin_mempcpy_with_bounds): New.
6803 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
6804 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
6805 (expand_builtin_memset_with_bounds): New.
6806 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
6807 (expand_builtin_with_bounds): New.
6808 * builtins.h (expand_builtin_with_bounds): New.
6809 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
6811 2014-11-17 Dodji Seketeli <dodji@redhat.com>
6813 * gimple.h (gimple_set_visited, gimple_visited_p)
6814 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
6815 comments to these accessors.
6817 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
6819 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
6820 Set avr_log_details to "all".
6822 2014-11-17 Richard Biener <rguenther@suse.de>
6825 * match.pd: Guard X / CST -> X * CST' transform against
6828 2014-11-17 Terry Guo <terry.guo@arm.com>
6830 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
6833 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
6835 * ifcvt.c (HAVE_cbranchcc4): Define.
6836 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6837 Use HAVE_cbranchcc4.
6839 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6841 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
6842 aarch64_convert_mode, aarch64_gen_ccmp_first,
6843 aarch64_gen_ccmp_next): New functions.
6844 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
6846 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6848 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
6849 * aarch64.c (aarch64_nzcv_codes): New data.
6850 (aarch64_ccmp_mode_to_code): New.
6851 (aarch64_print_operand): Output nzcv.
6852 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
6854 (cstore<mode>4): Handle ccmp_cc_register.
6855 * config/aarch64/predicates.md (const0_operand): New.
6857 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6859 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
6860 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
6861 extacted from aarch64_get_condition_code.
6862 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
6863 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
6865 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6867 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
6868 aarch64_ccmp_operand): New constraints.
6870 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6872 * Makefile.in: Add ccmp.o.
6875 * expr.c: include "ccmp.h"
6876 (expand_cond_expr_using_cmove): Handle VOIDmode.
6877 (expand_expr_real_1): Try to expand ccmp.
6879 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6881 * cfgexpand.c (expand_gimple_cond): Check ccmp.
6882 * expmed.c (emit_cstore): Make it global.
6883 * expmed.h: #include "insn-codes.h"
6884 (emit_cstore): New prototype.
6885 * expr.c (expand_operands): Make it global.
6886 * expr.h (expand_operands): New prototype.
6887 * optabs.c (get_rtx_code): Make it global.
6888 * optabs.h (get_rtx_code): New prototype.
6890 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6892 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
6893 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6894 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6896 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
6899 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
6900 Always combine comparisons or conversions from booleans.
6902 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6904 * ipa-polymorphic-call.c
6905 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
6906 (ipa_polymorphic_call_context::meet_speculation_with): New function.
6907 (ipa_polymorphic_call_context::combine_with): Handle types in
6908 construction better.
6909 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
6911 (ipa_polymorphic_call_context::meet_with): New function.
6912 * cgraph.h (class ipa_polymorphic_call_context): Add
6913 meet_width, meet_speculation_with; constify speculation_consistent_p.
6914 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine
6915 with incomming context.
6916 (propagate_context_accross_jump_function): Likewise; be more cureful.
6917 about set_contains_variable.
6918 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
6919 (find_more_scalar_values_for_callers_subset): Fix.
6920 (find_more_contexts_for_caller_subset): Perform meet operation.
6922 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6924 * passes.c (execute_one_pass): Do not apply all transforms prior
6925 every simple IPA pass.
6926 * cgraphunit.c: Do not include fibheap.h
6927 (expand_thunk): Use get_untransformed_body.
6928 (cgraph_node::expand): Likewise.
6929 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
6930 * cgraph.c (release_function_body): Do not push cfun when CFG
6932 (cgraph_node::get_untransformed_body): Break out from ...
6933 (cgraph_node::get_body): ... here; add code to apply all transforms.
6934 * cgraph.h (cgraph_node): Add get_untransformed_body.
6935 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
6936 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6937 * tree-inline.c (expand_call_inline): LIkewise.
6938 * i386.c (ix86_reset_to_default_globals): Break out from ...
6939 (ix86_set_current_function): ... here;
6940 (ix86_reset_previous_fndecl): Use it.
6941 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
6943 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
6945 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
6946 * doc/tm.texi: Regenerate.
6948 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
6950 * config/sh/sh.c: Do not include algorithm.
6951 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
6953 (sh_emit_compare_and_branch): Ditto.
6954 (sh_emit_compare_and_set): Ditto.
6955 * config/sh/sh.md (replacement peephole2): Ditto.
6956 (cstore4_media): Ditto.
6959 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6961 * lra-remat.c (cand_transf_func): Process regno for
6962 rematerialization too.
6963 * lra.c (lra): Switch on rematerialization pass.
6965 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6967 * lra.c (lra): Switch off rematerialization pass.
6969 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
6971 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
6972 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
6973 instead of builtins.
6974 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
6976 (_mm_sqrt_sd): Fix comment.
6977 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6978 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6979 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6980 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
6981 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
6982 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
6983 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
6984 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
6985 Use vector extensions instead of builtins.
6986 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
6987 _mm_mullo_epi32): Likewise.
6988 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
6990 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
6991 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
6992 Use vector extensions instead of builtins.
6993 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
6994 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
6995 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
6996 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
6997 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
6998 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
6999 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
7000 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
7002 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
7003 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
7004 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
7005 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
7006 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
7007 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
7008 _mm512_div_ps): Use vector extensions instead of builtins.
7009 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
7010 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
7011 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
7012 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
7015 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
7017 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
7018 * lto-streamer.h (cl_optimization_stream_out,
7019 cl_optimization_stream_in): Declare.
7020 * optc-save-gen.awk: Generate cl_optimization LTO streaming
7021 and hashing routines.
7022 * opth-gen.awk: Add prototype of cl_optimization_hash.
7023 * tree-streamer-in.c (unpack_ts_optimization): Remove.
7024 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
7025 * tree-streamer-out.c (pack_ts_optimization): Remove.
7026 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
7028 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
7030 * common.opt (flag_loop_unroll_and_jam): New flag.
7031 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
7033 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
7034 * graphite-poly.h (struct poly_bb:map_sepclass): New field
7035 * graphite-poly.c (new_poly_bb): Initialization for new field.
7036 (apply_poly_transforms): Support for unroll and jam flag.
7037 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
7039 (generate_luj_sepclass_opt): Build the separation class option.
7040 (generate_luj_options): Set unroll and jam options.
7041 (set_options): Support for unroll and jam options.
7042 (scop_to_isl_ast): Likewise
7043 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
7044 computing the separating class map.
7045 (optimize_isl): Support for the separating class map.
7046 (apply_schedule_map_to_scop): Likewise.
7047 (getScheduleMap): Likewise.
7048 (getScheduleForBand): Likewise.
7049 (getScheduleForBandList): Likewise.
7050 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
7051 * toplev.c (process_options) Likewise.
7053 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7055 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
7057 (replace_loop_annotate): ...here. Call it on the header and on the
7058 latch block, if any. Restore proper behavior of final cleanup.
7060 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7062 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
7063 for max-completely-peeled-insns limit.
7065 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7067 * ipa-prop.h (ipa_known_type_data): Remove.
7068 (ipa_binfo_from_known_type_jfunc): Remove.
7070 2014-11-14 Andrew Pinski <apinski@cavium.com>
7072 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
7074 * config/aarch64/aarch64.md: Include thunderx.md.
7075 (generic_sched): Set to no for thunderx.
7076 * config/aarch64/thunderx.md: New file.
7078 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7080 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
7083 * config/rs6000/vector.md (VEC_R): Move secondary reload support
7084 insns to rs6000.md from vector.md.
7085 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
7086 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
7087 (vec_reload_and_plus_<mptrsize>): Likewise.
7089 * config/rs6000/rs6000.md (Fa): New mode attribute to give
7090 constraint for the Altivec registers for a type.
7091 (RELOAD): New mode iterator for all of the types that have
7092 secondary reload address support to load up a base register.
7093 (extendsfdf2_fpr): Use correct constraint.
7094 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
7096 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
7097 Generate the non-VSX instruction if all registers were FPRs. Do
7098 not use the patterns in vsx.md for scalar operations.
7099 (floatsi<mode>2_lfiwax_mem): Likewise.
7100 (floatunssi<mode>2_lfiwzx): Likewise.
7101 (floatunssi<mode>2_lfiwzx_mem): Likewise.
7102 (fix_trunc<mode>di2_fctidz): Likewise.
7103 (fixuns_trunc<mode>di2_fctiduz): Likewise.
7104 (fctiwz_<mode>): Likewise.
7105 (fctiwuz_<mode>): Likewise.
7107 (floatdidf2_fpr): Likewise.
7108 (floatdidf2_mem): Likewise.
7109 (floatunsdidf2): Likewise.
7110 (floatunsdidf2_fcfidu): Likewise.
7111 (floatunsdidf2_mem): Likewise.
7112 (floatdisf2_fcfids): Likewise.
7113 (floatdisf2_mem): Likewise.
7114 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
7115 it more obvious that the code is for pre-ISA 2.06 machines.
7116 (floatdisf2_internal2): Likewise.
7117 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
7118 Generate the non-VSX instruction if all registers were FPRs. Do
7119 not use the patterns in vsx.md for scalar operations.
7120 (floatunsdisf2_mem): Likewise.
7121 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
7122 handlers here from vector.md, and expand the types we generate
7123 reload handlers for.
7124 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
7125 (vec_reload_and_plus_<mptrsize>): Likewise.
7127 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
7128 vector forms of the instructions. Move VSX scalar forms to
7129 rs6000.md, and add support for -mupper-regs-sf.
7130 (vsx_floatuns<VSi><mode>2): Likewise.
7131 (vsx_fix_trunc<mode><VSi>2): Likewise.
7132 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7133 (vsx_float_fix_<mode>2): Delete DF version, rename to
7134 vsx_float_fix_v2df2.
7135 (vsx_float_fix_v2df2): Likewise.
7137 2014-11-14 Martin Jambor <mjambor@suse.cz>
7139 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
7140 (ipa_pass_through_data): Removed field type_preserved.
7141 (ipa_ancestor_jf_data): removed fields type and type_preserved.
7142 (ipa_jump_func): Removed field known_type.
7143 (ipa_get_jf_known_type_offset): Removed.
7144 (ipa_get_jf_known_type_base_type): Likewise.
7145 (ipa_get_jf_known_type_component_type): Likewise.
7146 (ipa_get_jf_ancestor_type): Likewise.
7147 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
7148 (ipa_get_jf_pass_through_result): Likewise.
7149 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
7150 (values_equal_for_ipcp_p): Removed BINFO handling.
7151 (ipa_get_indirect_edge_target_1): Updated comment.
7152 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
7153 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
7154 (ipa_set_jf_known_type): Removed.
7155 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
7157 (ipa_set_jf_arith_pass_through): Likewise.
7158 (ipa_set_ancestor_jf): Likewise.
7159 (ipa_binfo_from_known_type_jfunc): Removed.
7160 (prop_type_change_info): Removed fields known_current_type and
7161 multiple_types_encountered.
7162 (extr_type_from_vtbl_ptr_store): Removed.
7163 (check_stmt_for_type_change): Do not attempt to identify changed type.
7164 (detect_type_change_from_memory_writes): Do not set the removed fields,
7165 always set jfunc to unknown.
7166 (compute_complex_assign_jump_func): Do not detect dynamic type change.
7167 (compute_complex_ancestor_jump_func): Likewise.
7168 (compute_known_type_jump_func): Removed.
7169 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
7170 change. Do not comute known type jump functions.
7171 (combine_known_type_and_ancestor_jfs): Removed.
7172 (update_jump_functions_after_inlining): Removed handling of
7173 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
7174 (ipa_write_jump_function): Do not stream removed fields or known type
7176 (ipa_read_jump_function): Likewise.
7178 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
7180 * lra-int.h (lra_create_live_ranges): Add parameter.
7181 * lra-lives.c (temp_bitmap): Move higher.
7182 (initiate_live_solver): Move temp_bitmap initialization into
7183 lra_live_ranges_init.
7184 (finish_live_solver): Move temp_bitmap clearing into
7186 (process_bb_lives): Add parameter. Use it to control live info
7187 update and dead insn elimination. Pass it to mark_regno_live and
7189 (lra_create_live_ranges): Add parameter. Pass it to
7191 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
7192 initiate_live_solver and finish_live_solver.
7193 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
7194 Use temp_bitmap to update avail_cands.
7195 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
7196 check with lra_need_for_spill_p after live range pass. Switch on
7197 rematerialization pass.
7199 2014-11-14 Martin Jambor <mjambor@suse.cz>
7201 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
7202 agg_preserved flag instead.
7203 (ipa_get_jf_ancestor_type_preserved): Likewise.
7204 (ipa_node_params): Rename known_vals to known_csts, update all users.
7205 New field known_contexts.
7206 (ipa_get_indirect_edge_target): Update prototype.
7207 (ipcp_poly_ctx_values_pool): Declare.
7208 (ipa_context_from_jfunc): Likewise.
7209 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
7210 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
7211 parameter newline of method dump.
7212 * ipa-cp.c (ctxlat): New field.
7213 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
7214 (ipcp_poly_ctx_values_pool):New variable.
7215 (ipa_get_poly_ctx_lat): New function.
7216 (print_ipcp_constant_value): New overloaded function for contexts.
7217 (print_all_lattices): Also print contexts.
7218 (ipa_topo_info): New field contexts;
7219 (set_all_contains_variable): Also set the flag in the context lattice.
7220 (initialize_node_lattices): Likewise for flag bottom.
7221 (ipa_get_jf_ancestor_result): Removed BINFO handling.
7222 (ipa_value_from_jfunc): Likewise.
7223 (ipa_context_from_jfunc): New function.
7224 (values_equal_for_ipcp_p): New overloaded function for contexts.
7225 (allocate_and_init_ipcp_value): Construct the value.
7226 (allocate_and_init_ipcp_value): New overloaded function for contexts.
7227 (propagate_scalar_accross_jump_function): Removed handling of
7228 KNOWN_TYPE jump functions.
7229 (propagate_context_accross_jump_function): New function.
7230 (propagate_constants_accross_call): Also propagate contexts.
7231 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
7232 (ipa_get_indirect_edge_target): Likewise.
7233 (devirtualization_time_bonus): Likewise.
7234 (gather_context_independent_values): Create and populate known_contexts
7235 vector rather than known_binfos.
7236 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
7237 (estimate_local_effects): Likewise.
7238 (add_all_node_vals_to_toposort): Also add contexts to teir topological
7240 (ipcp_propagate_stage): Also propagate effects of contexts.
7241 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
7242 ipa_get_indirect_edge_target_1.
7243 (cgraph_edge_brings_value_p): New overloaded function for contexts.
7244 (create_specialized_node): Work on contexts rather than BINFOs.
7245 (find_more_contexts_for_caller_subset): New function.
7246 (known_contexts_useful_p): New function.
7247 (copy_useful_known_contexts): Likewise.
7248 (modify_known_vectors_with_val): Likewise.
7249 (ipcp_val_in_agg_replacements_p): Renamed to
7250 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
7252 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
7253 (decide_about_value): Work on contexts rather than BINFOs.
7254 (decide_whether_version_node): Likewise.
7255 (ipcp_driver): Initialize the new alloc pool.
7256 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
7257 printing of edge contexts.
7258 (ipa_set_ancestor_jf): Replace assert with conditional setting of
7259 type_preserved to false.
7260 (update_jump_functions_after_inlining): Use access function instead of
7261 reading agg_preserved directly. Store combined context in the ancestor
7263 (try_make_edge_direct_virtual_call): Work on contexts rather than
7265 (update_indirect_edges_after_inlining): Get context from
7266 ipa_context_from_jfunc.
7267 (ipa_free_node_params_substructures): Free also known_contexts.
7268 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
7269 (ipa_free_all_structures_after_iinln): Likewise.
7270 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
7271 contexts rather than BINFOs.
7272 (estimate_edge_devirt_benefit): Likewise.
7273 (estimate_edge_size_and_time): Likewise.
7274 (estimate_calls_size_and_time): Likewise.
7275 (estimate_node_size_and_time): Likewise.
7276 (estimate_ipcp_clone_size_and_time): Likewise.
7277 (do_estimate_edge_time): Likewise.
7278 (do_estimate_edge_size): Likewise.
7279 (do_estimate_edge_hints): Likewise.
7280 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
7281 parameter newline, ouput newline only when it is set.
7282 (ipa_polymorphic_call_context::equal_to): New method.
7284 2014-11-14 Martin Jambor <mjambor@suse.cz>
7286 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
7287 users converted to the same specialization as the using class/function
7288 or specialization on tree.
7289 (ipcp_value): Likewise.
7290 (ipcp_lattice): Likewise.
7291 (ipcp_agg_lattice): Now derived from tree specialization of
7293 (values_topo): Moved to new class value_topo_info.
7294 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
7295 Updated all callers.
7296 (print_lattice): Turned into ipcp_lattice::print. Updated all
7298 (value_topo_info): New class template.
7299 (ipa_topo_info): New field constants. New constructor.
7300 (build_toporder_info): Do not clear stack_top, only checkign assert
7302 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
7303 Updated all callers.
7304 (set_lattice_contains_variable): Turned into
7305 ipcp_lattice::set_contains_variable. Updated all callers.
7306 (add_value_source): Turned into ipcp_value::add_source. Updated all
7308 (allocate_and_init_ipcp_value): New function.
7309 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
7310 parameter got default a value. Updated all callers.
7311 (add_scalar_value_to_lattice): Removed, users converted to using
7312 ipcp_lattice::add_value with default value of the last parameter.
7313 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
7315 (propagate_effects): Made method of value_topo_info.
7316 (cgraph_edge_brings_value_p): Now a template function.
7317 (get_info_about_necessary_edges): Likewise.
7318 (gather_edges_for_value): Likewise.
7319 (perhaps_add_new_callers): Likewise.
7320 (decide_about_value): Likewise.
7321 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
7323 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7325 * doc/install.texi (--with-diagnostics-color=): Document.
7327 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
7328 IFN_GOMP_SIMD_LANE without lhs as useless.
7330 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
7331 (varying_state): Add true for can_free.
7332 (check_call): For builtin or internal !nonfreeing_call_p set
7334 (check_stmt): For asm volatile and asm with "memory" set
7336 (analyze_function): Clear local->can_free initially, continue
7337 calling check_stmt until all flags are computed, dump can_free
7339 (pure_const_write_summary): Write can_free flag.
7340 (pure_const_read_summary): Read it back.
7341 (propagate_pure_const): Propagate also can_free flag, set
7342 w->nonfreeing_fn if it is false after propagation.
7343 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
7344 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
7345 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
7346 Also return true for IFN_ABNORMAL_DISPATCHER.
7347 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
7348 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
7349 (input_overwrite_node): Read it back.
7351 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7352 Marek Polacek <polacek@redhat.com>
7354 * sanopt.c: Include tree-ssa-operands.h.
7355 (struct sanopt_info): Add has_freeing_call_p,
7356 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
7357 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
7358 being_visited_p fields.
7359 (struct sanopt_ctx): Add asan_check_map field.
7360 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
7361 maybe_optimize_asan_check_ifn): New functions.
7362 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
7364 (pass_sanopt::execute): Call sanopt_optimize even for
7366 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
7369 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7371 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
7372 'if (extract_scalar_result)' to the only place that it is true.
7374 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
7376 * config.gcc (default_gnu_indirect_function): Set to yes
7377 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
7380 2014-11-14 Felix Yang <felix.yang@huawei.com>
7381 Jiji Jiang <jiangjiji@huawei.com>
7383 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
7384 VALL mode iterator instead of VALLDI.
7386 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7388 * optc-save-gen.awk: Output cl_target_option_eq,
7389 cl_target_option_hash, cl_target_option_stream_out,
7390 cl_target_option_stream_in functions.
7391 * opth-gen.awk: Output prototypes for
7392 cl_target_option_eq and cl_target_option_hash.
7393 * lto-streamer.h (cl_target_option_stream_out,
7394 cl_target_option_stream_in): Declare.
7395 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
7396 (cl_option_hash_eq): Use cl_target_option_eq.
7397 * tree-streamer-in.c (unpack_value_fields): Stream in
7399 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
7400 DECL_FUNCTION_SPECIFIC_TARGET.
7401 (hash_tree): Hash TREE_TARGET_OPTION; visit
7402 DECL_FUNCTION_SPECIFIC_TARGET.
7403 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
7405 (streamer_write_tree_body): Output TS_TARGET_OPTION.
7407 2014-11-14 Richard Biener <rguenther@suse.de>
7409 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
7410 valueization hook defaulted to no_follow_ssa_edges.
7411 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
7412 2nd valueization hook to gimple_simplify.
7413 * tree-ssa-ccp.c (valueize_op_1): New function to be
7414 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7416 * tree-vrp.c (vrp_valueize_1): New function to be
7417 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7418 (vrp_visit_assignment_or_call): Adjust.
7420 2014-11-14 Marek Polacek <polacek@redhat.com>
7422 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
7423 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
7424 folding with TYPE_OVERFLOW_SANITIZED.
7426 2014-11-14 Marek Polacek <polacek@redhat.com>
7429 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
7430 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7431 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
7433 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
7434 instrument BUILT_IN_UNREACHABLE here.
7435 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
7437 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
7438 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
7439 SANITIZE_UNREACHABLE.
7440 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
7441 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
7443 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7445 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
7446 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
7448 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7450 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
7452 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
7453 vect_create_epilog_for_reduction): Likewise.
7454 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
7456 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7459 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
7460 numerical immediate handling to...
7461 (aarch64_internal_mov_immediate): ...this. New.
7462 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
7463 (aarch64_mov_operand_p): Relax predicate.
7464 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
7465 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
7467 (*movdi_aarch64): Likewise.
7469 2014-11-14 Richard Biener <rguenther@suse.de>
7471 * match.pd: Implement more binary patterns exercised by
7473 * fold-const.c (sing_bit_p): Export.
7474 (exact_inverse): Likewise.
7475 (fold_binary_loc): Remove patterns here.
7476 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7477 * fold-const.h (sing_bit_p): Declare.
7478 (exact_inverse): Likewise.
7480 2014-11-14 Marek Polacek <polacek@redhat.com>
7482 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
7484 2014-11-14 Richard Biener <rguenther@suse.de>
7486 * genmatch.c (add_operator): Allow CONSTRUCTOR.
7487 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
7488 (parser::parse_op): Allow to iterate over predicates.
7490 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7492 * configure.ac (--with-diagnostics-color): New configure
7493 option, default to --with-diagnostics-color=auto.
7494 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
7495 to determine -fdiagnostics-color= option default.
7496 * doc/invoke.texi (-fdiagnostics-color=): Document new
7498 * configure: Regenerated.
7499 * config.in: Regenerated.
7501 2014-11-13 Teresa Johnson <tejohnson@google.com>
7503 PR tree-optimization/63841
7504 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7506 2014-11-14 Bin Cheng <bin.cheng@arm.com>
7508 * timevar.def (TV_SCHED_FUSION): New time var.
7509 * passes.def (pass_sched_fusion): New pass.
7510 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
7511 (extract_base_offset_in_addr, fusion_load_store): New.
7512 (arm_sched_fusion_priority): New.
7513 (arm_option_override): Disable scheduling fusion by default
7514 on non-armv7 processors or ldrd/strd isn't preferred.
7515 * sched-int.h (struct _haifa_insn_data): New field.
7516 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
7517 * sched-rgn.c (rest_of_handle_sched_fusion): New.
7518 (pass_data_sched_fusion, pass_sched_fusion): New.
7519 (make_pass_sched_fusion): New.
7520 * haifa-sched.c (sched_fusion): New.
7521 (insn_cost): Handle sched_fusion.
7522 (priority): Handle sched_fusion by calling target hook.
7523 (enum rfs_decision): New enum value.
7524 (rfs_str): New element for RFS_FUSION.
7525 (rank_for_schedule): Support sched_fusion.
7526 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
7527 (schedule_block, fix_tick_ready): Handle sched_fusion.
7528 * common.opt (flag_schedule_fusion): New.
7529 * tree-pass.h (make_pass_sched_fusion): New.
7530 * target.def (fusion_priority): New.
7531 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
7532 * doc/tm.texi: Regenerated.
7533 * doc/invoke.texi (-fschedule-fusion): New.
7535 2014-11-13 Rong Xu <xur@google.com>
7538 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
7539 footer, instead of unconditionally overwritten.
7541 2014-11-14 Martin Jambor <mjambor@suse.cz>
7543 * cgraph.h (clear_outer_type): Make public. Fix comment.
7544 * ipa-devirt.c (possible_polymorphic_call_targets): Use
7545 clear_outer_type when resetting the context.
7547 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
7550 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
7551 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
7553 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7555 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
7556 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7557 * tree-inline.c (estimate_operator_cost): Likewise.
7558 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
7561 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
7562 against VEC_RSHIFT_EXPR.
7564 * optabs.h (expand_vec_shift_expr): Remove.
7565 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
7566 (expand_vec_shift_expr): Remove.
7567 * tree.def (VEC_RSHIFT_EXPR): Remove
7569 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7571 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
7572 (shift_amt_for_vec_perm_mask): New.
7573 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
7574 and mask appropriate.
7576 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
7577 (have_whole_vector_shift): New.
7578 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
7579 looking for vec_shr_optab.
7580 (vect_create_epilog_for_reduction): Likewise; also rename local variable
7581 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
7582 instead of VEC_RSHIFT_EXPRs.
7584 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
7586 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7588 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
7589 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
7591 * tree_vec_data_refs.c (vect_permute_load_chain,
7592 vec_permute_store_chain, vec_shift_permute_load_chain): Replace
7593 vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
7595 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
7597 (vect_gen_perm_mask_checked): New.
7598 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
7599 (vect_gen_perm_mask_any): ...this.
7600 (perm_mask_for_reverse): Call can_vec_perm_p and
7601 vect_gen_perm_mask_checked.
7603 2014-11-13 Felix Yang <felix.yang@huawei.com>
7605 * ipa-utils.h: Fix typo in comments.
7606 * ipa-profile.c: Likewise.
7607 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
7609 2014-11-13 Teresa Johnson <tejohnson@google.com>
7611 PR tree-optimization/63841
7612 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7614 2014-11-13 Teresa Johnson <tejohnson@google.com>
7616 PR tree-optimization/63841
7617 * tree.c (initializer_zerop): A clobber does not zero initialize.
7619 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7621 * optabs.c (prepare_operand): Gracefully fail if the mode of X
7622 does not match the operand mode expected by the insn pattern.
7624 2014-11-13 Richard Biener <rguenther@suse.de>
7626 * match.pd: Add tcc_comparison, inverted_tcc_comparison
7627 and inverted_tcc_comparison_with_nans operator lists.
7628 Use tcc_comparison in the truth_valued_p predicate definition.
7629 Restrict logical_inverted_value with bit_xor to integral types.
7630 Build a boolean true for simplifying x |^ !x because of
7631 vector types. Implement patterns from forward_propagate_comparison
7632 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
7633 (get_prop_dest_stmt): Likewise.
7634 (pass_forwprop::execute): Do not call it.
7635 * fold-const.c (fold_unary_loc): Remove the pattern here.
7637 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7638 Andrey Turetskiy <andrey.turetskiy@intel.com>
7640 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
7642 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
7643 accelerator compiler.
7644 * config/i386/intelmic-mkoffload.c: New file.
7645 * config/i386/t-intelmic: Ditto.
7647 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7648 Andrey Turetskiy <andrey.turetskiy@intel.com>
7649 Ilya Verbin <ilya.verbin@intel.com>
7651 * common.opt (foffload, foffload-abi): New options.
7652 * config/i386/i386.c (ix86_offload_options): New static function.
7653 (TARGET_OFFLOAD_OPTIONS): Define.
7654 * coretypes.h (enum offload_abi): New enum.
7655 * doc/tm.texi: Regenerate.
7656 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
7657 * gcc.c (offload_targets): New static variable.
7658 (handle_foffload_option): New static function.
7659 (driver_handle_option): Handle OPT_foffload_.
7660 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
7661 according to offload_targets.
7662 * hooks.c (hook_charptr_void_null): New hook.
7663 * hooks.h (hook_charptr_void_null): Declare.
7664 * lto-opts.c: Include lto-section-names.h.
7665 (lto_write_options): Append options from target offload_options hook and
7666 store them to offload_lto section. Do not store target-specific,
7667 driver and diagnostic options in offload_lto section.
7668 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
7670 (append_compiler_options, append_linker_options)
7671 (append_offload_options): New static functions.
7672 (compile_offload_image): Add new arguments with options.
7673 Call append_compiler_options and append_offload_options.
7674 (compile_images_for_offload_targets): Add new arguments with options.
7675 (find_and_merge_options): New static function.
7676 (run_gcc): Outline options handling into the new functions:
7677 find_and_merge_options, append_compiler_options, append_linker_options.
7678 * opts.c (common_handle_option): Don't handle OPT_foffload_.
7679 Forbid OPT_foffload_abi_ for non-offload compiler.
7680 * target.def (offload_options): New target hook.
7682 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7683 Bernd Schmidt <bernds@codesourcery.com>
7684 Andrey Turetskiy <andrey.turetskiy@intel.com>
7685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7687 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
7688 (process_command): Tweak path construction for the possibility
7689 of being configured as an offload compiler.
7690 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
7691 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
7692 (driver::set_up_specs): Tweak path construction for the possibility of
7693 being configured as an offload compiler.
7694 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
7695 (offload_names, offloadbegin, offloadend): New static variables.
7696 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
7697 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
7698 New static functions.
7699 (run_gcc): Determine whether offload sections are present. If so, run
7700 compile_images_for_offload_targets and return the names of new generated
7701 objects to linker. If there are offload sections, but no LTO sections,
7702 then return the copies of input objects without link-time recompilation.
7704 2014-11-13 Richard Biener <rguenther@suse.de>
7706 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
7708 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7709 Bernd Schmidt <bernds@codesourcery.com>
7710 Andrey Turetskiy <andrey.turetskiy@intel.com>
7711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7713 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
7714 * cgraphunit.c: Include omp-low.h.
7715 * doc/tm.texi: Regenerate.
7716 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
7717 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
7718 * lto-cgraph.c (output_offload_tables): New function.
7719 (input_offload_tables): Likewise.
7720 * lto-section-in.c (lto_section_name): Add "offload_table".
7721 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
7722 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
7723 * lto-streamer-out.c (lto_output): Call output_offload_tables.
7724 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
7725 (output_offload_tables, input_offload_tables): Declare.
7726 * omp-low.c: Include common/common-target.h and lto-section-names.h.
7727 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
7728 (expand_omp_target): Add child_fn into offload_funcs vector.
7729 (add_decls_addresses_to_decl_constructor): New function.
7730 (omp_finish_file): Likewise.
7731 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
7732 * target.def (record_offload_symbol): New DEFHOOK.
7733 * toplev.c: Include omp-low.h.
7734 (compile_file): Call omp_finish_file.
7735 * varpool.c: Include omp-low.h.
7736 (varpool_node::get_create): Add decl into offload_vars vector.
7738 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7739 Ilya Tocar <ilya.tocar@intel.com>
7740 Andrey Turetskiy <andrey.turetskiy@intel.com>
7741 Bernd Schmidt <bernds@codesourcery.com>
7743 * cgraph.c: Include context.h.
7744 (cgraph_node::create): Set node->offloadable and g->have_offload if
7745 decl have "omp declare target" attribute.
7746 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
7747 * cgraphunit.c: Include lto-section-names.h.
7748 (ipa_passes): Call ipa_write_summaries if there is something to write to
7749 OFFLOAD_SECTION_NAME_PREFIX sections.
7750 (symbol_table::compile): Set flag_generate_lto if there is something to
7752 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
7753 * context.c (gcc::context::context): Initialize have_offload with false.
7754 * context.h (class context): Add have_offload flag.
7755 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
7757 (inline_free_summary): Always remove hooks.
7758 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
7759 from non-offloadable nodes while streaming a node into offload section.
7760 (reachable_from_other_partition_p): Likewise.
7761 (select_what_to_stream): New function.
7762 (compute_ltrans_boundary): Do not call
7763 lto_set_symtab_encoder_in_partition if the node should not be streamed.
7764 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
7765 (section_name_prefix): Declare.
7766 * lto-streamer.c (section_name_prefix): New variable.
7767 (lto_get_section_name): Use section_name_prefix instead of
7768 LTO_SECTION_NAME_PREFIX.
7769 * lto-streamer.h (select_what_to_stream): Declare.
7770 * omp-low.c: Include context.h.
7771 (is_targetreg_ctx): New function.
7772 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
7773 (create_omp_child_function, check_omp_nesting_restrictions): Use new
7774 is_targetreg_ctx function. Replace usage of "omp declare target"
7775 attribute with a cgraph_node flag offloadable.
7776 (expand_omp_target): Set mark_force_output for offloadable functions.
7777 (lower_omp_critical): Set offloadable flag for omp critical symbol.
7778 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
7779 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
7780 if the node should not be streamed out.
7781 * tree-pass.h (ipa_write_summaries): New bool argument.
7782 * varpool.c: Include context.h.
7783 (varpool_node::get_create): Set node->offloadable and g->have_offload if
7784 decl have "omp declare target" attribute.
7786 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7787 Thomas Schwinge <thomas@codesourcery.com>
7788 Ilya Verbin <ilya.verbin@intel.com>
7789 Andrey Turetskiy <andrey.turetskiy@intel.com>
7791 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
7792 (enable_as_accelerator): New variables substituted by configure.
7793 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
7794 being configured as an offload compiler.
7795 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
7797 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
7798 install for the offload compiler.
7799 * config.in: Regenerate.
7800 * configure: Regenerate.
7801 * configure.ac (real_target_noncanonical, accel_dir_suffix)
7802 (enable_as_accelerator): Compute new variables.
7803 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
7804 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7805 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
7806 * doc/install.texi (Options specification): Document
7807 --enable-as-accelerator-for and --enable-offload-targets.
7809 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
7811 PR tree-optimization/63828
7812 * ipa-polymorphic-call.c (possible_placement_new): Check
7813 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
7815 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
7817 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
7818 (REVERSIBLE_CC_MODE): Fix example.
7819 (REVERSE_CONDITION): Fix typo.
7820 * doc/tm.texi: Regenerate.
7822 2014-11-13 Tom de Vries <tom@codesourcery.com>
7824 * omp-low.c (pass_data_expand_omp): Set properties_provided to
7826 (pass_expand_omp::gate): Remove function. Move gate expression to ...
7827 (pass_expand_omp::execute): ... here, as new variable gate. Add early
7828 exit if gate is false.
7829 (pass_data pass_data_expand_omp_ssa): New pass_data.
7830 (class pass_expand_omp_ssa): New pass.
7831 (make_pass_expand_omp_ssa): New function.
7832 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
7833 instead of NEXT_PASS.
7834 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
7835 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
7836 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
7837 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
7838 cfun->omp_expand_needed.
7839 * tree-pass.h: Add define PROP_gimple_eomp.
7840 (make_pass_expand_omp_ssa): Declare.
7842 2014-11-13 Marek Polacek <polacek@redhat.com>
7844 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
7845 * fold-const.c (fold_binary_loc): Use it.
7846 * match.pd: Likewise.
7848 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7850 * lra-lives.c (struct bb_data): Rename to ...
7851 (struct bb_data_pseudos): ... this.
7852 (initiate_live_solver): Update struct name.
7854 2014-11-13 Richard Biener <rguenther@suse.de>
7856 * match.pd: Implement conditional expression patterns.
7857 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
7859 (combine_cond_exprs): Remove.
7860 (pass_forwprop::execute): Do not call combine_cond_exprs.
7861 * fold-const.c (fold_ternary_loc): Remove patterns here.
7862 (pedantic_omit_one_operand_loc): Remove.
7864 2014-12-13 Richard Biener <rguenther@suse.de>
7867 * match.pd: Implement bswap patterns for transforms checked by
7868 gcc.dg/builtin-bswap-8.c.
7870 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
7872 * lra.c (lra): Switch off rematerialization pass.
7874 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
7876 * common.opt (flra-remat): New.
7877 * opts.c (default_options_table): Add entry for flra_remat.
7878 * timevar_def (TV_LRA_REMAT): New.
7879 * doc/invoke.texi (-flra-remat): Add description of the new
7881 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
7882 lra-saves.c. Add lra-remat.c.
7883 * Makefile.in (OBJS): Add lra-remat.o.
7884 * lra-remat.c: New file.
7885 * lra.c: Add info about the rematerialization pass in the top
7887 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
7888 Process unallocatable regs too.
7889 (lra_constraint_new_insn_uid_start): Remove.
7890 (lra): Add code for calling rematerialization sub-pass.
7891 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
7892 (lra_constrain_insn, lra_remat): New prototypes.
7893 (lra_eliminate_regs_1): Add parameter.
7894 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
7895 Process unallocatable hard regs too.
7896 (process_bb_lives): Ditto.
7897 * lra-spills.c (remove_pseudos): Add argument to
7898 lra_eliminate_regs_1 call.
7899 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
7900 for sp offset calculation.
7901 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
7902 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
7904 (process_insn_for_elimination): Add argument for
7905 eliminate_regs_in_insn call.
7906 * lra-constraints.c (get_equiv_with_elimination): Add argument
7907 for lra_eliminate_regs_1 call.
7908 (process_addr_reg): Add parameter. Use it.
7909 (process_address_1): Ditto. Add argument for process_addr_reg
7911 (process_address): Ditto.
7912 (curr_insn_transform): Add parameter. Use it. Add argument for
7913 process_address calls.
7914 (lra_constrain_insn): New function.
7915 (lra_constraints): Add argument for curr_insn_transform call.
7917 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7919 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
7920 (print_ignored_options): Fix quoting.
7921 * opts.c (common_handle_option): Likewise.
7922 (set_debug_level): Likewise.
7923 * toplev.c (process_options): Likewise.
7925 2014-11-12 Jakub Jelinek <jakub@redhat.com>
7928 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
7929 chain instead of node->indirect_calls. Put !can_throw into
7930 conditions of all the loops.
7932 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7934 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
7935 set pic_offset_table_rtx.
7937 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
7939 * common/config/mips/mips-common.c (mips_handle_option): Ensure
7940 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
7941 * config.gcc (--with-fp-32): New option.
7942 (--with-odd-spreg-32): Likewise.
7943 * config.in (HAVE_AS_DOT_MODULE): New config define.
7944 * config/mips/mips-protos.h
7945 (mips_secondary_memory_needed): New prototype.
7946 (mips_hard_regno_caller_save_mode): Likewise.
7947 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
7948 (mips_get_arg_info): Assert that V2SFmode is only handled specially
7949 with TARGET_PAIRED_SINGLE_FLOAT.
7950 (mips_return_mode_in_fpr_p): Likewise.
7951 (mips16_call_stub_mode_suffix): Likewise.
7952 (mips_get_reg_raw_mode): New static function.
7953 (mips_return_fpr_pair): O32 return values span two registers.
7954 (mips16_build_call_stub): Likewise.
7955 (mips_function_value_regno_p): Support both FP return registers.
7956 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
7957 specific cases for TARGET_FPXX to move via memory.
7958 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
7959 than UNITS_PER_FPREG 'span' one register.
7960 (mips_dwarf_frame_reg_mode): New static function.
7961 (mips_file_start): Switch to using .module instead of .gnu_attribute.
7962 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
7963 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
7964 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
7965 slots with two CFI directives even for O32 FP64.
7966 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
7967 saving/restoring callee-saved registers.
7968 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
7969 (mips_secondary_memory_needed): New function.
7970 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
7971 odd-numbered single-precision registers when using TARGET_FLOATXX.
7972 Implement -modd-spreg and defaults.
7973 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
7974 callee-saved behaviour.
7975 (mips_hard_regno_caller_save_mode): Implement.
7976 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
7977 (TARGET_GET_RAW_ARG_MODE): Define target hook.
7978 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
7979 * config/mips/mips.h (TARGET_FLOAT32): New macro.
7980 (TARGET_O32_FP64A_ABI): Likewise.
7981 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
7982 _MIPS_SPFPSET builtin define.
7983 (MIPS_FPXX_OPTION_SPEC): New macro.
7984 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
7985 --with-odd-spreg-32=* to -m[no-]odd-spreg.
7986 (ISA_HAS_ODD_SPREG): New macro.
7987 (ISA_HAS_MXHC1): True for anything other than -mfp32.
7988 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
7989 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
7990 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
7991 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7992 (SECONDARY_MEMORY_NEEDED): Likewise.
7993 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
7994 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
7995 FP64A ABI extensions.
7996 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
7998 * config/mips/mips.opt (mfpxx): New target option.
7999 (modd-spreg): Likewise.
8000 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
8001 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
8003 * config/mips/t-mti-elf: Remove fp64 multilib.
8004 * config/mips/t-mti-linux: Likewise.
8005 * configure.ac: Detect .module support.
8006 * configure: Regenerate.
8007 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
8008 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
8011 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
8014 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
8016 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
8017 (x86_output_mi_thunk): Set PIC register to %r11. Call
8018 ix86_init_large_pic_reg to initialize PIC register.
8020 2014-11-12 Kai Tietz <ktietz@redhat.com>
8022 * sdbout.c (sdbout_symbol): Eliminate register only
8023 if decl isn't a global variable.
8025 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
8027 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
8029 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
8030 qualifier_lane_index.
8031 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
8032 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
8033 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
8035 (aarch64_types_getlane_qualifiers): Rename to...
8036 (aarch64_types_binop_imm_qualifiers): ...this.
8037 (TYPES_SHIFTIMM): Follow renaming.
8038 (TYPES_GETLANE): Rename to...
8039 (TYPE_GETREG): ...this.
8041 (aarch64_types_setlane_qualifiers): Rename to...
8042 (aarch64_type_ternop_imm_qualifiers): ...this.
8043 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
8044 (TYPES_SETLANE): Follow renaming above, and rename self to...
8045 (TYPE_SETREG): ...this.
8047 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
8048 (aarch64_simd_expand_args): Add range check and endianness-flip.
8050 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
8052 * config/aarch64/aarch64-simd.md
8053 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
8054 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
8055 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
8057 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
8058 (aarch64_sq<r>dmulh_lane<mode>): ...this.
8060 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
8061 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
8063 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
8064 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
8066 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
8067 (aarch64_sqdmull_lane<mode>): ...this.
8069 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
8070 (aarch64_sqdmull_laneq<mode>): ...this.
8072 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
8073 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
8074 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
8075 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
8077 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
8078 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
8079 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
8080 bounds check and lane flip.
8082 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
8083 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
8084 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
8086 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
8087 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
8088 renaming of TERNOP_LANE to QUADOP_LANE.
8090 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
8091 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
8092 qualifiers to TERNOP_LANE.
8094 2014-11-12 Tobias Burnus <burnus@net-b.de>
8096 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
8097 * configure.ac: Ditto.
8098 * graphite-interchange.c: Remove HAVE_CLOOG block.
8099 * config.in: Regenerate.
8100 * configure: Regenerate.
8102 2014-11-12 Jiong Wang <jiong.wang@arm.com>
8104 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
8106 (EPILOGUE_USES): Guard the check by epilogue_completed.
8107 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
8109 (aarch64_can_eliminate): Check LR_REGNUM liveness.
8111 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8113 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
8115 2014-11-12 Marek Polacek <polacek@redhat.com>
8117 * fold-const.c (fold_binary_loc): Don't fold if the result
8119 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
8120 -(-A) -> A): Likewise.
8122 2014-11-12 Richard Biener <rguenther@suse.de>
8124 Merge from match-and-simplify branch
8125 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8127 * genmatch.c (user_id): Add new member is_oper_list.
8128 (user_id::user_id): Add new default argument.
8129 (parser::parse_operator_list): New function.
8130 (parser::parse_for): Allow operator-list.
8131 (parser::parse_pattern): Call parser::parse_operator_list.
8132 (parser::parse_operation): Reject operator-list.
8133 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
8135 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8137 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
8139 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8141 * genmatch.c (parser::parse_op): Check if predicate is used in
8144 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8146 * genmatch.c (parser::parse_for): Make sure to have a valid
8147 token to report errors at.
8149 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8151 * genmatch.c (parser): Add new member parsing_match_operand.
8152 (parser::parse_operation): Check for conditional convert in result
8154 (parser::parse_expr): Check for commutative operator in result operand.
8155 Check for :type in match operand.
8156 (parser::parse_simplify): Set/unset parsing_match_operand.
8157 (parser::parser): Initialize parsing_match_operand.
8159 2014-10-28 Richard Biener <rguenther@suse.de>
8161 * genmatch.c (parser::parse_for): Properly check for already
8164 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8166 * genmatch.c (error_cb): Adjust for printing warnings.
8167 (warning_at): New function.
8168 (user_id): Add new member used.
8169 (get_operator): Mark user_id as used.
8170 (parse_for): Warn for unused operators.
8172 2014-11-12 Richard Biener <rguenther@suse.de>
8174 * match.pd: Implement simple complex operations cancelling.
8175 * fold-const.c (fold_unary_loc): Remove them here.
8177 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8179 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
8180 Define __NO_MATH_ERRNO__ if -fno-math-errno.
8181 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
8183 2014-11-12 Richard Biener <rguenther@suse.de>
8185 * genmatch.c (::gen_transform): Add capture_info and
8186 expand_compares arguments.
8187 (struct expr): Add is_generic flag.
8188 (lower_cond): New functions lowering [VEC_]COND_EXPR
8189 conditions to a GENERIC and a GIMPLE variant.
8190 (lower): Call lower_cond.
8191 (cmp_operand): Also compare the is_generic flag.
8192 (capture_info::cinfo): Add cond_expr_cond_p flag.
8193 (capture_info::capture_info): Pass down whether the
8194 expression argument is a COND_EXPR condition.
8195 (capture_info::walk_match): Likewise, mark captures
8196 capturing COND_EXPR conditions with cond_expr_cond_p.
8197 (expr::gen_transform): Pass down whether we need to
8198 expand compares from COND_EXPR conditions.
8199 (capture::gen_transform): Expand compares substituted
8200 from COND_EXPR conditions into non-COND_EXPR conditions.
8201 (dt_operand::gen_gimple_expr): Handle explicitely marked
8202 GENERIC expressions as generic.
8203 (dt_simplify::gen): Pass whether we need to expand
8204 conditions to gen_transform. Handle capture results
8205 which are from COND_EXPR conditions.
8206 (main): Pass gimple flag down to lower.
8208 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8211 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
8212 * builtins.c (fold_builtin_arith_overflow): New function.
8213 (fold_builtin_3): Use it.
8214 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
8215 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
8216 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
8217 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
8218 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
8219 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
8220 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
8221 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
8222 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
8223 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
8224 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
8225 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
8226 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
8227 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
8228 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
8229 * expr.c (write_complex_part): Remove prototype, no longer static.
8230 * expr.h (write_complex_part): New prototype.
8231 * function.c (aggregate_value_p): For internal functions return 0.
8232 * gimple-fold.c (arith_overflowed_p): New functions.
8233 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
8234 * gimple-fold.h (arith_overflowed_p): New prototype.
8235 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
8236 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
8238 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
8239 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
8241 * gimplify.c (gimplify_call_expr): Handle gimplification of
8242 internal calls with lhs.
8243 * internal-fn.c (get_range_pos_neg, get_min_precision,
8244 expand_arith_overflow_result_store): New functions.
8245 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
8246 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8247 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8248 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
8249 (ubsan_expand_si_overflow_neg_check): Renamed to ...
8250 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
8251 arguments, remove STMT argument. Handle SUB_OVERFLOW with
8252 0 as first argument expansion.
8253 (ubsan_expand_si_overflow_mul_check): Renamed to ...
8254 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8255 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8256 Handle MUL_OVERFLOW expansion.
8257 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
8259 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
8260 expand_neg_overflow, prepare arguments for it.
8261 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
8263 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
8264 expand_MUL_OVERFLOW): New functions.
8265 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
8267 * tree-vrp.c (check_for_binary_op_overflow): New function.
8268 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
8269 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
8270 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
8272 * optabs.def (umulv4_optab): New optab.
8273 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
8274 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
8275 * doc/extend.texi (Integer Overflow Builtins): Document
8276 __builtin_*_overflow.
8278 2014-11-12 Richard Biener <rguenther@suse.de>
8280 * genmatch.c (capture_info::capture_info): Add missing
8282 (capture_info::walk_match): Fix COND_EXPR handling.
8283 (capture_info::walk_result): Likewise.
8285 2014-11-12 Richard Biener <rguenther@suse.de>
8288 * match.pd: Add missing conversion to the -(T)-X pattern.
8290 2014-11-12 Richard Biener <rguenther@suse.de>
8293 * hash-table.h: Include ggc.h also for generator programs.
8294 * genmatch.c (ggc_internal_cleared_alloc): Properly define
8295 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
8297 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8299 PR tree-optimization/63761
8300 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
8301 rather than taking it as a parameter. Add some comments to explain the
8302 gsi_move_before in case of load and why canonicalization of bswap into
8303 a rotation is only done for 16bit values.
8304 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
8305 refer to the statement just before cur_stmt. Ignore 16bit bswap that
8306 are already in canonical form. Adapt bswap_replace to removal of its
8309 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
8311 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
8312 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
8313 (for_each_rtx_in_insn): Delete.
8314 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
8315 * df-core.c: Remove reference to for_each_rtx in comment.
8317 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
8319 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
8320 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
8321 * doc/aarch64-acle-intrinsics.texi: Remove.
8322 * doc/arm-acle-intrinsics.texi: Remove.
8323 * doc/arm-neon-intrinsics.texi: Remove.
8324 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
8325 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
8326 Extension section. Add references to public ACLE specification.
8328 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
8330 * tree-vrp.c (register_edge_assert_for_2): Change return type to
8331 void and adjust accordingly.
8332 (register_edge_assert_for_1): Likewise.
8333 (register_edge_assert_for): Likewise.
8334 (find_conditional_asserts): Likewise.
8335 (find_switch_asserts): Likewise.
8336 (find_assert_locations_1): Likewise.
8337 (find_assert_locations): Likewise.
8338 (insert_range_insertions): Inspect the need_assert_for bitmap.
8340 2014-11-11 Andrew Pinski <apinski@cavium.com>
8343 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
8345 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
8346 at the end of the file.
8348 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
8349 Manuel López-Ibáñez <manu@gcc.gnu.org>
8352 * diagnostic-core.h: Add prototype for fatal_error.
8353 * diagnostic.c (fatal_error): New function fatal_error.
8354 * gcc.c (store_arg): Remove have_o_argbuf_index.
8355 (process_command): Check if input and output files are the same.
8356 * toplev.c (init_asm_output): Check if input and output files are
8359 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8361 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
8363 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8366 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
8367 smaller than 8 bytes.
8368 (sparc_function_arg_1): Tweak.
8369 (sparc_function_value_1): Tweak.
8371 2014-11-11 David Malcolm <dmalcolm@redhat.com>
8373 * ChangeLog.jit: New.
8374 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
8375 sphinx is installed, falling back to "texinfo" otherwise.
8376 (FULL_DRIVER_NAME): New variable, adapted from the
8377 install-driver target. New target, a symlink within the builddir,
8378 linked to "xgcc", for use when running the JIT library from the
8380 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
8381 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
8383 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
8384 sphinx is installed, falling back to "texinfo" otherwise.
8385 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
8386 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
8387 * configure: Regenerate.
8388 * doc/install.texi (--enable-host-shared): Specify that this is
8389 required when building libgccjit.
8390 (Tools/packages necessary for modifying GCC): Add Sphinx.
8391 * timevar.def (TV_JIT_REPLAY): New.
8396 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8399 * configure: Regenerate.
8401 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
8403 * config/aarch64/aarch64-simd.md
8404 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
8405 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
8406 are punning between float vectors and integer vectors.
8408 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8410 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
8411 open-coded swap with std::swap to swap values.
8412 (alpha_emit_setcc): Ditto.
8413 (alpha_emit_conditional_move): Ditto.
8414 (alpha_split_tmode_pair): Ditto.
8416 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
8418 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
8419 permutations on power of 2 cases.
8421 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8423 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
8424 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
8426 2014-11-11 Richard Biener <rguenther@suse.de>
8428 * tree-core.h (pedantic_lvalues): Remove.
8429 * fold-const.c (pedantic_lvalues): Likewise.
8430 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
8432 2014-11-11 Martin Liska <mliska@suse.cz>
8436 * ipa-icf.c (sem_function::merge): Add new target symbol alias
8438 (sem_variable::merge): Likewise.
8439 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
8441 2014-11-11 Richard Biener <rguenther@suse.de>
8443 * match.pd: Implement patterns from associate_plusminus
8444 and factor in differences from the fold-const.c implementation.
8445 * fold-const.c (fold_binary_loc): Remove patterns here.
8446 * tree-ssa-forwprop.c (associate_plusminus): Remove.
8447 (pass_forwprop::execute): Don't call it.
8448 * tree.c (tree_nop_conversion_p): New function, factored
8449 from tree_nop_conversion.
8450 * tree.h (tree_nop_conversion_p): Declare.
8452 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8454 * system.h: Include algorithm and utility.
8455 * rtl.h: Do not include utility here.
8456 * wide-int.h: Ditto.
8457 * tree-vect-data-refs.c (swap): Remove template.
8458 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
8460 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8464 * system.h: Include <string> before "safe-ctype.h"
8465 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
8466 calls to min/max with wi namespace.
8467 * ipa-chkp.c: Don't include <string>.
8469 2014-11-11 Terry Guo <terry.guo@arm.com>
8471 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
8472 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
8474 (*thumb1_movhf): Likewise.
8476 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8478 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
8479 instead of INT64_MAX.
8481 2014-11-11 Tobias Burnus <burnus@net-b.de>
8483 * doc/install.texi (Prerequisites): Remove CLooG.
8485 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
8487 * ipa-inline.c (edge_badness): Adjust.
8488 (inline_small_functions): Likewise.
8489 * predict.c (propagate_freq): Likewise.
8490 (estimate_bb_frequencies): Likewise.
8491 * sreal.c (sreal::dump): Rename from dump_sreal.
8493 (copy): Remove function.
8494 (sreal::shift_right): Rename from sreal_sift_right.
8495 (sreal::normalize): Rename from normalize.
8496 (sreal_init): Remove function.
8497 (sreal::to_int): Rename from sreal_to_int.
8498 (sreal_compare): Remove function.
8499 (sreal::operator+): Rename from sreal_add.
8500 (sreal::operator-): Rename from sreal_sub.
8501 (sreal::operator*): Rename from sreal_mul.
8502 (sreal::operator/): Rename from sreal_div.
8503 * sreal.h (class sreal): Adjust.
8504 (inline sreal &operator+=): New operator.
8505 (inline sreal &operator-=): Likewise.
8506 (inline sreal &operator/=): Likewise.
8507 (inline sreal &operator*=): Likewise.
8508 (inline bool operator!=): Likewise.
8509 (inline bool operator>): Likewise.
8510 (inline bool operator<=): Likewise.
8511 (inline bool operator>=): Likewise.
8513 2014-11-11 Bin Cheng <bin.cheng@arm.com>
8515 * sched-deps.c (sched_analyze_1): Check pending list if it is not
8516 less than MAX_PENDING_LIST_LENGTH.
8517 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
8519 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8521 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
8522 swap with std::swap to swap values.
8523 (ix86_fixup_binary_operands): Ditto.
8524 (ix86_binary_operator_ok): Ditto.
8525 (ix86_prepare_fp_compare_args): Ditto.
8526 (ix86_expand_branch): Ditto.
8527 (ix86_expand_carry_flag_compare): Ditto.
8528 (ix86_expand_int_movcc): Ditto.
8529 (ix86_prepare_sse_fp_compare_args): Ditto.
8530 (ix86_expand_sse_fp_minmax): Ditto.
8531 (ix86_expand_int_vcond): Ditto.
8532 (ix86_split_long_move): Ditto.
8533 (ix86_expand_sse_comi): Ditto.
8534 (ix86_expand_sse_compare_and_jump): Ditto.
8535 (ix86_expand_sse_compare_mask): Ditto.
8536 * config/i386/i386.md (*add<mode>_1): Ditto.
8537 (addsi_1_zext): Ditto.
8540 (*add<mode>_2): Ditto.
8541 (*addsi_2_zext): Ditto.
8542 (*add<mode>_3): Ditto.
8543 (*addsi_3_zext): Ditto.
8544 (*add<mode>_5): Ditto.
8545 (absneg splitter): Ditto.
8547 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8550 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
8553 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8554 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8555 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8556 be reloaded through memory.
8560 2014-11-11 Jakub Jelinek <jakub@redhat.com>
8561 Martin Liska <mliska@suse.cz>
8563 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
8564 (func_checker::compare_gimple_call): Compare gimple_call_fn,
8565 gimple_call_chain, gimple_call_fntype and call flags.
8567 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
8569 PR rtl-optimization/63620
8570 PR rtl-optimization/63799
8571 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
8572 and setting PIC pseudo insns.
8573 (lra_create_live_ranges): Fix the typo.
8575 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
8578 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
8579 SSA copies whose source and destination names both occur in
8582 2014-11-10 Roman Gareev <gareevroman@gmail.com>
8584 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
8585 * common.opt: Remove using of fgraphite-code-generator flag.
8586 * flag-types.h: Likewise.
8587 * graphite.c: Remove using of CLooG.
8588 * graphite-blocking.c: Likewise.
8589 * graphite-dependences.c: Likewise.
8590 * graphite-poly.c: Likewise.
8591 * graphite-poly.h: Likewise.
8592 * graphite-scop-detection.c: Likewise.
8593 * graphite-sese-to-poly.c: Likewise.
8594 * graphite-clast-to-gimple.c: Removed.
8595 * graphite-clast-to-gimple.h: Likewise.
8596 * graphite-htab.h: Likewise.
8598 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8600 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
8603 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8605 * config/frv/frv.c (frv_io_handle_use_1): Delete.
8606 (frv_io_handle_use): Use find_all_hard_regs.
8608 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8610 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
8611 than an rtx *. Take the regstate_t directly rather than via a void *.
8612 Return a bool rather than an int. Iterate over all subrtxes here.
8613 (frv_registers_conflict_p): Update accordingly.
8615 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8617 * config/frv/frv.c: Include rtl-iter.h.
8618 (frv_acc_group_1): Delete.
8619 (frv_acc_group): Use FOR_EACH_SUBRTX.
8621 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8623 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
8624 (frv_clear_registers_used): Delete.
8625 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
8627 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
8630 * calls.c (initialize_argument_information): When emitting thunk call
8631 use original memory placement of the argument.
8633 2014-11-10 Renlin Li <renlin.li@arm.com>
8636 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
8638 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
8640 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
8641 bswaphi if available.
8643 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
8645 * config/nvptx/nvptx.c: New file.
8646 * config/nvptx/nvptx.h: New file.
8647 * config/nvptx/nvptx-protos.h: New file.
8648 * config/nvptx/nvptx.md: New file.
8649 * config/nvptx/t-nvptx: New file.
8650 * config/nvptx/nvptx.opt: New file.
8651 * common/config/nvptx/nvptx-common.c: New file.
8652 * config.gcc: Handle nvptx-*-*.
8654 2014-11-10 Richard Biener <rguenther@suse.de>
8656 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
8657 released operands on the free list.
8659 2014-11-10 Richard Biener <rguenther@suse.de>
8661 * match.pd: Implement pattern from simplify_mult.
8662 * tree-ssa-forwprop.c (simplify_mult): Remove.
8663 (pass_forwprop::execute): Do not call simplify_mult.
8665 2014-11-10 Richard Biener <rguenther@suse.de>
8667 PR tree-optimization/63800
8668 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
8669 we can restore the previous availability in after_dom_children.
8670 (eliminate_dom_walker::after_dom_children): Restore
8671 previous availability.
8673 2014-11-10 Richard Biener <rguenther@suse.de>
8676 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
8677 properly treat the embedded multiplication as commutative
8678 when looking for feeding negates.
8680 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
8682 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
8684 2014-11-10 Martin Liska <mliska@suse.cz>
8686 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
8687 for the test because of default char signedness
8688 on powerpc64 target.
8690 2014-11-10 Richard Biener <rguenther@suse.de>
8692 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
8693 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
8694 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
8696 2014-11-10 Richard Biener <rguenther@suse.de>
8698 * match.pd: Move rest of the conversion combining patterns
8699 from tree-ssa-forwprop.c.
8700 * tree-ssa-forwprop.c (combine_conversions): Remove.
8701 (pass_forwprop::execute): Do not call it.
8703 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
8705 * gimple-low.c (lower_function_body): Clear the location of the first
8706 inserted representative return if it also fills in for the fallthru.
8708 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8710 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
8711 that bb is always executed to early exit. Use predicate of
8712 cd-equivalent block for join blocks if it exists.
8713 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
8714 (tree_if_conversion): Free post-dominance information.
8716 2014-11-09 Jason Merrill <jason@redhat.com>
8718 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
8719 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
8720 (_mm_mask_cvtusepi32_storeu_epi16)
8721 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
8723 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
8725 * config/avr/predicates.md (low_io_address_operand): Fix typo.
8727 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
8729 PR rtl-optimization/63620
8730 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
8731 name. Move to lra.c. Make it external.
8732 (substitute_pseudo_within_insn): Ditto.
8733 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
8735 (undo_optional_reloads): Ditto.
8736 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
8738 (lra_substitute_pseudo_within_insn): Ditto.
8739 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
8740 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
8741 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
8743 (struct bb_data, bb_data_t, bb_data): New.
8744 (get_bb_data, get_bb_data_by_index): Ditto.
8745 (all_hard_regs_bitmap): New.
8746 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
8747 (initiate_live_solver, finish_live_solver): New.
8748 (process_bb_lives): Change return type. Add code updating local
8749 live data and removing dead insns. Pass new argument to
8750 mark_regno_live and mark_regno_dead. Check changing bb pseudo
8751 life info. Return the result.
8752 (lra_create_live_ranges): Add code to do global pseudo live
8754 (lra_live_ranges_init): Call initiate_live_solver.
8755 (lra_live_ranges_finish): Call finish_live_solver.
8756 * lra.c (lra_dump_bitmap_with_title): New.
8757 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
8758 from lra-constraints.c.
8760 2014-11-09 Richard Biener <rguenther@suse.de>
8762 * match.pd: Add patterns convering two conversions in a row
8764 * fold-const.c (fold_unary_loc): Remove them here.
8765 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8766 * genmatch.c (dt_node::gen_kids): Check whether we may
8767 follow SSA use-def chains.
8769 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8771 * config/aarch64/aarch64.c: Include rtl-iter.h.
8772 (aarch64_tls_operand_p_1): Delete.
8773 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
8775 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8777 * config/arm/arm.c (arm_note_pic_base): Delete.
8778 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
8780 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8782 * config/arm/arm.c: Include rtl-iter.h.
8783 (arm_tls_referenced_p_1): Delete.
8784 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
8786 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8788 * config/arm/aarch-common.c: Include rtl-iter.h.
8789 (search_term, arm_find_sub_rtx_with_search_term): Delete.
8790 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
8791 (arm_get_set_operands): Pass the insn pattern rather than the
8793 (arm_no_early_store_addr_dep): Likewise.
8795 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
8797 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
8799 (thumb_set_return_address): Likewise.
8801 2014-11-07 Jeff Law <law@redhat.com>
8803 PR tree-optimization/61515
8804 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
8805 stack rather than looking at every SSA_NAME's value.
8807 2014-11-07 Richard Biener <rguenther@suse.de>
8809 PR tree-optimization/63605
8810 * fold-const.c (fold_binary_loc): Properly use element_precision
8811 for types that may not be scalar.
8813 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
8816 * config/i386/i386.md (builtin_setjmp_receiver): Use
8817 pic_offset_table_rtx for PIC register.
8818 (nonlocal_goto_receiver): Delete.
8820 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
8822 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
8823 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
8825 2014-11-07 Martin Liska <mliska@suse.cz>
8828 * cgraphunit.c (cgraph_node::create_wrapper):
8829 TREE_ADDRESSABLE is set to false for a newly created thunk.
8831 2014-11-07 Martin Liska <mliska@suse.cz>
8834 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
8835 Missing checking for CASE_LOW and CASE_HIGH added.
8837 2014-11-07 Martin Liska <mliska@suse.cz>
8840 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
8841 is correctly handled for thunks created by IPA ICF.
8843 2014-11-07 Jiong Wang <jiong.wang@arm.com>
8844 2014-11-07 Richard Biener <rguenther@suse.de>
8846 PR tree-optimization/63676
8847 * gimple-fold.c (fold_gimple_assign): Do not fold node when
8848 TREE_CLOBBER_P be true.
8850 2014-11-07 Richard Biener <rguenther@suse.de>
8853 * match.pd: Guard conflicting GENERIC pattern properly.
8855 2014-11-07 Richard Biener <rguenther@suse.de>
8857 * match.pd: Add patterns for POINTER_PLUS_EXPR association
8858 and special patterns from tree-ssa-forwprop.c
8859 * fold-const.c (fold_binary_loc): Remove them here.
8860 * tree-ssa-forwprop.c (to_purge): New global bitmap.
8861 (fwprop_set_lattice_val): New function.
8862 (fwprop_invalidate_lattice): Likewise.
8863 (remove_prop_source_from_use): Instead of purging dead EH
8864 edges record blocks to do that in to_purge.
8865 (tidy_after_forward_propagate_addr): Likewise.
8866 (forward_propagate_addr_expr): Invalidate the lattice for
8867 SSA names we release.
8868 (simplify_conversion_from_bitmask): Likewise.
8869 (simplify_builtin_call): Likewise.
8870 (associate_pointerplus_align): Remove.
8871 (associate_pointerplus_diff): Likewise.
8872 (associate_pointerplus): Likewise.
8873 (fold_all_stmts): Merge with ...
8874 (pass_forwprop::execute): ... the original loop over all
8875 basic-blocks. Delay purging dead EH edges and invalidate
8876 the lattice for SSA names we release.
8878 2014-11-07 Terry Guo <terry.guo@arm.com>
8880 * config/arm/arm.opt (masm-syntax-unified): New option.
8881 * doc/invoke.texi (-masm-syntax-unified): Document new option.
8882 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
8883 (ASM_APP_ON): Redefined.
8884 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
8885 code always use UAL syntax.
8886 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
8887 * config/arm/thumb1.md: Likewise.
8889 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
8891 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
8892 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
8895 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
8897 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
8898 Set default_mips_arch and default_mips_abi instead of tm_defines.
8899 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
8901 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
8902 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
8903 based on MIPS_ABI_DEFAULT.
8904 (STANDARD_STARTFILE_PREFIX_2): Ditto.
8906 2014-11-06 Joseph Myers <joseph@codesourcery.com>
8908 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
8909 cases of extended identifiers.
8911 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
8913 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
8915 2014-11-06 DJ Delorie <dj@redhat.com>
8917 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
8919 (movhicc_<code>_<mode>): Likewise.
8920 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
8922 (m32c_eh_return_data_regno): Change to using memregs to avoid
8923 tying up all the compute regs.
8924 (m32c_legitimate_address_p) Subregs are not valid addresses.
8926 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
8928 * function.c (thread_prologue_and_epilogue_insns): No longer static.
8929 * function.h (thread_prologue_and_epilogue_insns): Declare.
8931 * target.def (assemble_undefined_decl): New hooks.
8932 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
8933 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
8934 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
8935 * doc/tm.texi: Regenerate.
8936 * output.h (assemble_undefined_decl): Declare.
8937 (get_fnname_from_decl): Declare.
8938 * varasm.c (assemble_undefined_decl): New function.
8939 (get_fnname_from_decl): New function.
8940 * final.c (rest_of_handle_final): Use it.
8941 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
8942 for nodes without a definition.
8944 * target.def (call_args, end_call_args): New hooks.
8945 * hooks.c (hook_void_rtx_tree): New empty function.
8946 * hooks.h (hook_void_rtx_tree): Declare.
8947 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
8948 * doc/tm.texi: Regenerate.
8949 * calls.c (expand_call): Slightly rearrange the code. Use the two new
8951 (expand_library_call_value_1): Use the two new hooks.
8953 * expr.c (use_reg_mode): Just return for pseudo registers.
8955 * combine.c (try_combine): Don't allow a call as one of the source
8958 * target.def (decl_end): New hook.
8959 * varasm.c (assemble_variable_contents, assemble_constant_contents):
8961 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
8962 * doc/tm.texi: Regenerate.
8964 2014-11-06 Renlin Li <renlin.li@arm.com>
8966 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
8967 (processor): New architecture_version field.
8968 (aarch64_override_options): Initialize aarch64_architecture_version.
8969 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
8970 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
8972 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8974 * params.def (sra-max-scalarization-size-Ospeed): New.
8975 (sra-max-scalarization-size-Osize): Likewise.
8976 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
8977 (sra-max-scalarization-size-Osize): Likewise.
8978 * toplev.c (process_options): Set default values for new
8980 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
8981 * targhooks.c (get_move_ratio): Remove static designator.
8982 * target.h (get_move_ratio): Declare.
8984 2014-11-06 Marek Polacek <polacek@redhat.com>
8986 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
8987 Remove vector limit.
8989 2014-11-06 Richard Biener <rguenther@suse.de>
8991 * match.pd: Implement bitwise binary and unary simplifications
8992 from tree-ssa-forwprop.c.
8993 * fold-const.c (fold_unary_loc): Remove them here.
8994 (fold_binary_loc): Likewise.
8995 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
8996 (truth_valued_ssa_name): Likewise.
8997 (lookup_logical_inverted_value): Likewise.
8998 (simplify_bitwise_binary_1): Likewise.
8999 (hoist_conversion_for_bitop_p): Likewise.
9000 (simplify_bitwise_binary_boolean): Likewise.
9001 (simplify_bitwise_binary): Likewise.
9002 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
9003 and simplify_bitwise_binary.
9004 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
9005 (decision_tree::insert): Also insert non-expressions.
9007 2014-11-06 Hale Wang <hale.wang@arm.com>
9009 * config/arm/arm-cores.def: Add support for
9010 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9011 cortex-m1.small-multiply.
9012 * config/arm/arm-tables.opt: Regenerate.
9013 * config/arm/arm-tune.md: Regenerate.
9014 * config/arm/arm.c: Update the rtx-costs for MUL.
9015 * config/arm/bpabi.h: Handle
9016 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9017 cortex-m1.small-multiply.
9018 * doc/invoke.texi: Document
9019 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9020 cortex-m1.small-multiply.
9022 2014-11-06 Hale Wang <hale.wang@arm.com>
9024 * config/arm/arm.c: Add cortex-m7 tune.
9025 * config/arm/arm-cores.def: Use cortex-m7 tune.
9027 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
9030 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
9031 (ix86_encode_section_info): Do not check for non-automatic varibles
9032 when setting SYMBOL_FLAG_FAR_ADDR flag.
9033 (x86_64_elf_select_section): Do not check ix86_cmodel here.
9034 (x86_64_elf_unique_section): Ditto.
9035 (x86_elf_aligned_common): Emit tab before .largecomm.
9037 2014-11-05 Joseph Myers <joseph@codesourcery.com>
9039 PR preprocessor/9449
9040 * doc/cpp.texi (Character sets, Tokenization)
9041 (Implementation-defined behavior): Don't refer to UCNs in
9042 identifiers requiring -fextended-identifiers.
9043 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
9044 by default for C99 and later and C++.
9045 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
9046 identifiers needing -fextended-identifiers.
9048 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
9050 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
9051 for 512-bit wide modes.
9052 (expand_vec_perm_1): Use correct versions of patterns.
9053 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
9054 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
9056 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
9062 * tree-chkp-opt.c: New.
9065 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
9067 (GTFILES): Add tree-chkp.c.
9068 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9069 * tree.def (POINTER_BOUNDS_TYPE): New.
9070 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9071 (POINTER_BOUNDS_MODE): New.
9072 (make_pointer_bounds_mode): New.
9073 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9074 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9075 (layout_type): Support POINTER_BOUNDS_TYPE.
9076 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9077 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9078 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9079 (type_contains_placeholder_1): Likewise.
9080 (build_common_tree_nodes): Initialize
9081 pointer_bounds_type_node.
9082 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9083 (pointer_bounds_type_node): New.
9084 (POINTER_BOUNDS_P): New.
9085 (BOUNDED_TYPE_P): New.
9087 (CALL_WITH_BOUNDS_P): New.
9088 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
9089 (gimple_call_with_bounds_p): New.
9090 (gimple_call_set_with_bounds): New.
9091 (gimple_return_retbnd): New.
9092 (gimple_return_set_retbnd): New
9093 * gimple.c (gimple_build_return): Increase number of ops
9094 for return statement.
9095 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
9097 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9098 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
9099 * gimplify.c (gimplify_init_constructor): Avoid infinite
9100 loop during gimplification of bounds initializer.
9101 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
9102 (special_function_p): Use original decl name when analyzing
9103 instrumentation clone.
9104 (arg_data): Add fields special_slot, pointer_arg and
9106 (store_bounds): New.
9107 (emit_call_1): Propagate instrumentation flag for CALL.
9108 (initialize_argument_information): Compute pointer_arg,
9109 pointer_offset and special_slot for pointer bounds arguments.
9110 (finalize_must_preallocate): Preallocate when storing bounds
9112 (compute_argument_addresses): Skip pointer bounds.
9113 (expand_call): Store bounds into tables separately. Return
9114 result joined with resulting bounds.
9115 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
9116 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
9117 (expand_return): Add returned bounds arg. Handle returned bounds.
9118 (expand_gimple_stmt_1): Adjust to new expand_return signature.
9119 (gimple_expand_cfg): Reset rtx bounds map.
9120 * expr.c: Include tree-chkp.h, rtl-chkp.h.
9121 (expand_assignment): Handle returned bounds.
9122 (store_expr_with_bounds): New. Replaces store_expr with new bounds
9123 target argument. Handle bounds returned by calls.
9124 (store_expr): Now wraps store_expr_with_bounds.
9125 * expr.h (store_expr_with_bounds): New.
9126 * function.c: Include tree-chkp.h, rtl-chkp.h.
9127 (bounds_parm_data): New.
9128 (use_register_for_decl): Do not registerize decls used for bounds
9130 (assign_parms_augmented_arg_list): Add bounds of the result
9131 structure pointer as the second argument.
9132 (assign_parm_find_entry_rtl): Mark bounds are never passed on
9134 (assign_parm_is_stack_parm): Likewise.
9135 (assign_parm_load_bounds): New.
9136 (assign_bounds): New.
9137 (assign_parms): Load bounds and determine a location for
9139 (diddle_return_value_1): New.
9140 (diddle_return_value): Handle returned bounds.
9141 * function.h (rtl_data): Add field for returned bounds.
9142 * varasm.c: Include tree-chkp.h.
9143 (output_constant): Support POINTER_BOUNDS_TYPE.
9144 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
9145 (ultimate_transparent_alias_target): Move up.
9146 (make_decl_rtl): For instrumented function use
9147 name of the original decl.
9148 (assemble_start_function): Mark function as global
9149 in case it is instrumentation clone of the global
9151 (do_assemble_alias): Follow transparent alias chain
9152 for identifier. Check if original alias is public.
9153 (maybe_assemble_visibility): Use visibility of the
9154 original function for instrumented version.
9155 (default_unique_section): Likewise.
9156 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
9157 (init_emit_once): Build pointer bounds zero constants.
9158 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
9159 * target.def (builtin_chkp_function): New.
9160 (chkp_bound_type): New.
9161 (chkp_bound_mode): New.
9162 (chkp_make_bounds_constant): New.
9163 (chkp_initialize_bounds): New.
9164 (load_bounds_for_arg): New.
9165 (store_bounds_for_arg): New.
9166 (load_returned_bounds): New.
9167 (store_returned_bounds): New.
9168 (chkp_function_value_bounds): New.
9169 (setup_incoming_vararg_bounds): New.
9170 (function_arg): Update hook description with new possible return
9172 * targhooks.h (default_load_bounds_for_arg): New.
9173 (default_store_bounds_for_arg): New.
9174 (default_load_returned_bounds): New.
9175 (default_store_returned_bounds): New.
9176 (default_chkp_bound_type): New.
9177 (default_chkp_bound_mode): New.
9178 (default_builtin_chkp_function): New.
9179 (default_chkp_function_value_bounds): New.
9180 (default_chkp_make_bounds_constant): New.
9181 (default_chkp_initialize_bounds): New.
9182 (default_setup_incoming_vararg_bounds): New.
9183 * targhooks.c (default_load_bounds_for_arg): New.
9184 (default_store_bounds_for_arg): New.
9185 (default_load_returned_bounds): New.
9186 (default_store_returned_bounds): New.
9187 (default_chkp_bound_type): New.
9188 (default_chkp_bound_mode); New.
9189 (default_builtin_chkp_function): New.
9190 (default_chkp_function_value_bounds): New.
9191 (default_chkp_make_bounds_constant): New.
9192 (default_chkp_initialize_bounds): New.
9193 (default_setup_incoming_vararg_bounds): New.
9194 * builtin-types.def (BT_BND): New.
9195 (BT_FN_PTR_CONST_PTR): New.
9196 (BT_FN_CONST_PTR_CONST_PTR): New.
9197 (BT_FN_BND_CONST_PTR): New.
9198 (BT_FN_CONST_PTR_BND): New.
9199 (BT_FN_PTR_CONST_PTR_SIZE): New.
9200 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9201 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9202 (BT_FN_VOID_CONST_PTR_SIZE): New.
9203 (BT_FN_VOID_PTR_BND): New.
9204 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
9205 (BT_FN_BND_CONST_PTR_SIZE): New.
9206 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9207 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
9208 * chkp-builtins.def: New.
9209 * builtins.def: include chkp-builtins.def.
9210 (DEF_CHKP_BUILTIN): New.
9211 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
9212 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9213 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9214 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9215 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9216 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9217 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9218 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9219 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9220 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
9221 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9222 (std_expand_builtin_va_start): Init bounds for va_list.
9223 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
9224 __CHKP__ macro when Pointer Bounds Checker is on.
9225 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
9226 * passes.def (pass_ipa_chkp_versioning): New.
9227 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
9228 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
9229 (pass_chkp_instrumentation_passes): New.
9230 (pass_ipa_chkp_produce_thunks): New.
9231 (pass_local_optimization_passes): New.
9232 (pass_chkp_opt): New.
9233 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
9234 (make_pass_ipa_chkp_produce_thunks): New.
9235 (make_pass_chkp): New.
9236 (make_pass_chkp_opt): New.
9237 (make_pass_early_local_passes): Renamed to ...
9238 (make_pass_build_ssa_passes): This.
9239 (make_pass_chkp_instrumentation_passes): New.
9240 (make_pass_local_optimization_passes): New.
9241 * passes.c (pass_manager::execute_early_local_passes): Execute
9242 early passes in three steps.
9243 (execute_all_early_local_passes): Renamed to ...
9244 (execute_build_ssa_passes): This.
9245 (pass_data_early_local_passes): Renamed to ...
9246 (pass_data_build_ssa_passes): This.
9247 (pass_early_local_passes): Renamed to ...
9248 (pass_build_ssa_passes): This.
9249 (pass_data_chkp_instrumentation_passes): New.
9250 (pass_chkp_instrumentation_passes): New.
9251 (pass_data_local_optimization_passes): New.
9252 (pass_local_optimization_passes): New.
9253 (make_pass_early_local_passes): Renamed to ...
9254 (make_pass_build_ssa_passes): This.
9255 (make_pass_chkp_instrumentation_passes): New.
9256 (make_pass_local_optimization_passes): New.
9257 * c-family/c.opt (fcheck-pointer-bounds): New.
9258 (fchkp-check-incomplete-type): New.
9259 (fchkp-zero-input-bounds-for-main): New.
9260 (fchkp-first-field-has-own-bounds): New.
9261 (fchkp-narrow-bounds): New.
9262 (fchkp-narrow-to-innermost-array): New.
9263 (fchkp-optimize): New.
9264 (fchkp-use-fast-string-functions): New.
9265 (fchkp-use-nochk-string-functions): New.
9266 (fchkp-use-static-bounds): New.
9267 (fchkp-use-static-const-bounds): New.
9268 (fchkp-treat-zero-dynamic-size-as-infinite): New.
9269 (fchkp-check-read): New.
9270 (fchkp-check-write): New.
9271 (fchkp-store-bounds): New.
9272 (fchkp-instrument-calls): New.
9273 (fchkp-instrument-marked-only): New.
9275 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9276 (handle_bnd_legacy): New.
9277 (handle_bnd_instrument): New.
9278 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
9279 and bnd_instrument. Fix documentation.
9280 (c_common_format_attribute_table): Likewsie.
9281 * toplev.c: include tree-chkp.h.
9282 (process_options): Check Pointer Bounds Checker is supported.
9283 (compile_file): Add chkp_finish_file call.
9284 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
9285 to handle instrumentation clones properly.
9286 (propagate_constants_accross_call): Do not propagate
9287 through instrumentation thunks.
9288 * ipa-pure-const.c (propagate_pure_const): Support
9290 * ipa-inline.c (early_inliner): Check edge has summary allocated.
9291 * ipa-split.c: Include tree-chkp.h.
9293 (split_part_set_ssa_name_p): New.
9294 (consider_split): Do not split retbnd and retval
9296 (insert_bndret_call_after): new.
9297 (split_function): Propagate Pointer Bounds Checker
9298 instrumentation marks and handle returned bounds.
9299 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
9300 into bit field and add with_bounds field.
9301 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
9302 with_bounds field for instrumented calls.
9303 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
9304 CALL_WITH_BOUNDS_P flag for calls.
9305 * tree-ssa-ccp.c: Include tree-chkp.h.
9306 (insert_clobber_before_stack_restore): Handle
9307 BUILT_IN_CHKP_BNDRET calls.
9308 * tree-ssa-dce.c: Include tree-chkp.h.
9309 (propagate_necessity): For free call fed by alloc check
9310 bounds are also provided by the same alloc.
9311 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
9313 * tree-inline.c: Include tree-chkp.h.
9314 (declare_return_variable): Add arg holding
9315 returned bounds slot. Create and initialize returned bounds var.
9316 (remap_gimple_stmt): Handle returned bounds.
9317 Return sequence of statements instead of a single statement.
9318 (insert_init_stmt): Add declaration.
9319 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
9320 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
9321 Properly handle bounds in va_arg_pack and va_arg_pack_len.
9322 (expand_call_inline): Handle returned bounds. Add bounds copy
9323 for generated mem to mem assignments.
9324 * tree-inline.h (copy_body_data): Add fields retbnd and
9326 * value-prof.c: Include tree-chkp.h.
9327 (gimple_ic): Support returned bounds.
9328 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9329 with "chkp ctor" and "bnd_legacy" attributes.
9330 (symtab_remove_unreachable_nodes): Keep initial values for
9331 pointer bounds to be used for checks eliminations.
9332 (process_references): Handle IPA_REF_CHKP.
9333 (walk_polymorphic_call_targets): Likewise.
9334 * ipa-visibility.c (cgraph_externally_visible_p): Mark
9335 instrumented 'main' as externally visible.
9336 (function_and_variable_visibility): Filter instrumentation
9338 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
9340 (cgraph_node): Add instrumented_version, orig_decl and
9341 instrumentation_clone fields.
9342 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
9343 (varpool_node): Add need_bounds_init field.
9344 (cgraph_local_p): New.
9345 * cgraph.c: Include tree-chkp.h.
9346 (cgraph_node::remove): Fix instrumented_version
9347 of the referenced node if any.
9348 (cgraph_node::dump): Dump instrumentation_clone and
9349 instrumented_version fields.
9350 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
9351 references and instrumentation thunks.
9352 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
9353 all not instrumented instrumentation clones alive.
9354 (cgraph_redirect_edge_call_stmt_to_callee): Support
9356 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
9358 (cgraph_rebuild_references): Likewise.
9359 * cgraphunit.c: Include tree-chkp.h.
9360 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
9362 (varpool_finalize_decl): Register statically initialized decls
9363 in Pointer Bounds Checker.
9364 (walk_polymorphic_call_targets): Do not mark generated call to
9365 __builtin_unreachable as with_bounds.
9366 (output_weakrefs): If there are both instrumented and original
9367 versions, output only one of them.
9368 (cgraph_node::expand_thunk): Set with_bounds flag
9369 for created call statement.
9370 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
9371 (ipa_ref): increase size of use field.
9372 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
9373 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
9374 (ctor_for_folding): Do not fold constant bounds vars.
9375 * lto-streamer.h (LTO_minor_version): Change minor version from
9377 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
9379 (lto_output_node): Output instrumentation_clone,
9380 thunk.add_pointer_bounds_args and orig_decl field.
9381 (lto_output_ref): Adjust to new ipa_ref::use field size.
9382 (input_overwrite_node): Read instrumentation_clone field.
9383 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
9385 (input_ref): Adjust to new ipa_ref::use field size.
9386 (input_cgraph_1): Compute instrumented_version fields and restore
9387 IDENTIFIER_TRANSPARENT_ALIAS chains.
9388 (lto_output_varpool_node): Output
9389 need_bounds_init value.
9390 (input_varpool_node): Read need_bounds_init value.
9391 * lto-partition.c (add_symbol_to_partition_1): Keep original
9392 and instrumented versions together.
9393 (privatize_symbol_name): Restore transparent alias chain if required.
9394 (add_references_to_partition): Add references to pointer bounds vars.
9395 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
9396 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
9397 (gen_type_die_with_usage): Skip pointer bounds.
9398 (dwarf2out_global_decl): Likewise.
9399 (is_base_type): Support POINTER_BOUNDS_TYPE.
9400 (gen_formal_types_die): Skip pointer bounds.
9401 (gen_decl_die): Likewise.
9402 * var-tracking.c (vt_add_function_parameters): Skip
9404 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
9406 (sem_variable::merge): Reset need_bounds_init flag.
9407 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
9409 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9410 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9411 (TARGET_LOAD_RETURNED_BOUNDS): New.
9412 (TARGET_STORE_RETURNED_BOUNDS): New.
9413 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9414 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9415 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9416 (TARGET_CHKP_BOUND_TYPE): New.
9417 (TARGET_CHKP_BOUND_MODE): New.
9418 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9419 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9420 * doc/tm.texi: Regenerated.
9421 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9424 * doc/invoke.texi (-mmpx): New.
9426 (chkp-max-ctor-size): New.
9427 * config/i386/constraints.md (w): New.
9430 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9431 * config/i386/i386-modes.def (BND32): New.
9433 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9434 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
9435 (regclass_map): Add bound registers.
9436 (dbx_register_map): Likewise.
9437 (dbx64_register_map): Likewise.
9438 (svr4_dbx_register_map): Likewise.
9439 (isa_opts): Add -mmpx.
9441 (ix86_option_override_internal): Support MPX ISA.
9442 (ix86_conditional_register_usage): Support bound registers.
9443 (ix86_code_end): Add MPX bnd prefix.
9444 (output_set_got): Likewise.
9445 (print_reg): Avoid prefixes for bound registers.
9446 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9447 (ix86_print_operand_punct_valid_p): Likewise.
9448 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9450 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
9451 (ix86_class_likely_spilled_p): Add bound regs support.
9452 (ix86_hard_regno_mode_ok): Likewise.
9453 (x86_order_regs_for_local_alloc): Likewise.
9454 (ix86_bnd_prefixed_insn_p): New.
9455 (ix86_builtins): Add
9456 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
9457 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
9458 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
9459 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
9460 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
9461 IX86_BUILTIN_BNDUPPER.
9462 (builtin_isa): Add leaf_p and nothrow_p fields.
9463 (def_builtin): Initialize leaf_p and nothrow_p.
9464 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
9467 (bdesc_mpx_const): New.
9468 (ix86_init_mpx_builtins): New.
9469 (ix86_init_builtins): Call ix86_init_mpx_builtins.
9470 (ix86_emit_cmove): New.
9471 (ix86_emit_move_max): New.
9472 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
9473 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
9474 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
9475 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
9476 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
9477 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
9478 (ix86_function_value_bounds): New.
9479 (ix86_builtin_mpx_function): New.
9480 (ix86_get_arg_address_for_bt): New.
9481 (ix86_load_bounds): New.
9482 (ix86_store_bounds): New.
9483 (ix86_load_returned_bounds): New.
9484 (ix86_store_returned_bounds): New.
9485 (ix86_mpx_bound_mode): New.
9486 (ix86_make_bounds_constant): New.
9487 (ix86_initialize_bounds):
9488 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9489 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9490 (TARGET_LOAD_RETURNED_BOUNDS): New.
9491 (TARGET_STORE_RETURNED_BOUNDS): New.
9492 (TARGET_CHKP_BOUND_MODE): New.
9493 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9494 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9495 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9496 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9497 (ix86_option_override_internal): Do not
9498 support x32 with MPX.
9499 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
9501 (function_arg_advance_32): Return number of used integer
9503 (function_arg_advance_64): Likewise.
9504 (function_arg_advance_ms_64): Likewise.
9505 (ix86_function_arg_advance): Handle pointer bounds.
9506 (ix86_function_arg): Likewise.
9507 (ix86_function_value_regno_p): Mark fisrt bounds registers as
9508 possible function value.
9509 (ix86_function_value_1): Handle pointer bounds type/mode
9510 (ix86_return_in_memory): Likewise.
9511 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
9512 (ix86_expand_call): Generate returned bounds.
9513 (ix86_setup_incoming_vararg_bounds): New.
9514 (ix86_va_start): Initialize bounds for pointers in va_list.
9515 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9516 * config/i386/i386.h (TARGET_MPX): New.
9517 (TARGET_MPX_P): New.
9518 (FIRST_PSEUDO_REGISTER): Fix to new value.
9519 (FIXED_REGISTERS): Add bound registers.
9520 (CALL_USED_REGISTERS): Likewise.
9521 (REG_ALLOC_ORDER): Likewise.
9522 (HARD_REGNO_NREGS): Likewise.
9523 (VALID_BND_REG_MODE): New.
9524 (FIRST_BND_REG): New.
9525 (LAST_BND_REG): New.
9526 (reg_class): Add BND_REGS.
9527 (REG_CLASS_NAMES): Likewise.
9528 (REG_CLASS_CONTENTS): Likewise.
9530 (ANY_BND_REG_P): New.
9532 (HI_REGISTER_NAMES): Add bound registers.
9533 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
9535 * config/i386/i386.md (UNSPEC_BNDMK): New.
9536 (UNSPEC_BNDMK_ADDR): New.
9537 (UNSPEC_BNDSTX): New.
9538 (UNSPEC_BNDLDX): New.
9539 (UNSPEC_BNDLDX_ADDR): New.
9540 (UNSPEC_BNDCL): New.
9541 (UNSPEC_BNDCU): New.
9542 (UNSPEC_BNDCN): New.
9543 (UNSPEC_MPX_FENCE): New.
9544 (UNSPEC_SIZEOF): New.
9547 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9548 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9549 (prefix_rep): Check for bnd prefix.
9550 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9551 (length_nobnd): New.
9552 (length): Use length_nobnd when specified.
9553 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9558 (*jcc_1): Add MPX bnd prefix.
9561 (*indirect_jump): Likewise.
9562 (*tablejump_1): Likewise.
9563 (simple_return_internal): Likewise.
9564 (simple_return_internal_long): Likewise.
9565 (simple_return_pop_internal): Likewise.
9566 (simple_return_indirect_internal): Likewise.
9570 (*mov<mode>_internal_mpx): New.
9571 (<mode>_<bndcheck>): New.
9572 (*<mode>_<bndcheck>): New.
9577 move_size_reloc_<mode>): New.
9578 * config/i386/predicates.md (address_mpx_no_base_operand): New.
9579 (address_mpx_no_index_operand): New.
9580 (bnd_mem_operator): New.
9581 (symbol_operand): New.
9582 (x86_64_immediate_size_operand): New.
9583 * config/i386/i386.opt (mmpx): New.
9584 * config/i386/i386-builtin-types.def (BND): New.
9586 (BND_FTYPE_PCVOID_ULONG): New.
9587 (VOID_FTYPE_BND_PCVOID): New.
9588 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
9589 (BND_FTYPE_PCVOID_PCVOID): New.
9590 (BND_FTYPE_PCVOID): New.
9591 (BND_FTYPE_BND_BND): New.
9592 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
9593 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
9594 (ULONG_FTYPE_VOID): New.
9595 (PVOID_FTYPE_BND): New.
9597 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
9599 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
9600 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
9601 pass_cleanup_barriers, pass_delay_slots,
9602 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
9603 pass_shorten_branches, pass_est_nothrow_function_flags,
9604 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
9605 into pass_late_compilation.
9606 (pass_late_compilation): Add.
9607 * passes.c (pass_data_late_compilation, pass_late_compilation,
9608 make_pass_late_compilation): New.
9609 * timevar.def (TV_LATE_COMPILATION): New.
9611 * target.def (omit_struct_return_reg): New data hook.
9612 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
9613 * doc/tm.texi: Regenerate.
9614 * function.c (expand_function_end): Use it.
9616 * target.def (no_register_allocation): New data hook.
9617 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
9618 * doc/tm.texi: Regenerate.
9619 * ira.c (gate_ira): New function.
9620 (pass_data_ira): Set has_gate.
9621 (pass_ira): Add a gate function.
9622 (pass_data_reload): Likewise.
9623 (pass_reload): Add a gate function.
9625 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
9626 no register allocation happens on the target and return.
9627 * final.c (alter_subreg): Ensure register is not a pseudo before
9628 calling simplify_subreg.
9629 (output_operand): Assert that x isn't a pseudo only if doing
9630 register allocation.
9632 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
9635 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
9638 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
9640 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
9641 * rtl.h (SUBREG_P): New macro added.
9643 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
9645 * config/aarch64/aarch64-builtins.c
9646 (aarch64_build_scalar_type): Remove.
9647 (aarch64_scalar_builtin_types, aarch64_simd_type,
9648 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
9649 aarch64_mangle_builtin_vector_type,
9650 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
9651 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
9652 aarch64_init_simd_builtin_types,
9653 aarch64_init_simd_builtin_scalar_types): New.
9654 (aarch64_init_simd_builtins): Refactor.
9655 (aarch64_init_crc32_builtins): Fixup with qualifier.
9656 * config/aarch64/aarch64-protos.h
9657 (aarch64_mangle_builtin_type): Export.
9658 * config/aarch64/aarch64-simd-builtin-types.def: New.
9659 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
9660 (aarch64_mangle_type): Refactor.
9661 * config/aarch64/arm_neon.h: Declare vector types based on
9663 * config/aarch64/t-aarch64: Update dependency.
9665 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
9667 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
9668 atomic_update_decl): Guard declaration with #ifdef.
9670 2014-11-04 Marek Polacek <polacek@redhat.com>
9672 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
9674 2014-11-04 Marek Polacek <polacek@redhat.com>
9676 * Makefile.in (OBJS): Add sanopt.o.
9677 (GTFILES): Add sanopt.c.
9678 * asan.h (asan_expand_check_ifn): Declare.
9679 * asan.c (asan_expand_check_ifn): No longer static.
9680 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
9681 * sanopt.c: ...here. New file.
9683 2014-11-04 Jiong Wang <jiong.wang@arm.com>
9684 Wilco Dijkstra <wilco.dijkstra@arm.com>
9687 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
9690 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
9692 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
9693 also verify that mode is equal to the mode of op0.
9695 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
9696 emit into a sequence instead.
9698 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9700 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
9702 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9704 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
9705 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
9706 (reduc_smax_<mode> *2): Rename to...
9707 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
9708 (reduc_umin_<mode> *2): Rename to...
9709 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
9710 (reduc_umax_<mode> *2): Rename to...
9711 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
9713 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9715 config/arm/neon.md (reduc_plus_*): Rename to...
9716 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
9718 2014-11-04 Michael Collison <michael.collison@linaro.org>
9720 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
9721 to support constraints for CONST_INT in atomic operations.
9722 * config/aarch64/atomics.md
9723 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
9724 (atomic_nand<mode>): Likewise.
9725 (atomic_fetch_<atomic_optab><mode>): Likewise.
9726 (atomic_fetch_nand<mode>): Likewise.
9727 (atomic_<atomic_optab>_fetch<mode>): Likewise.
9728 (atomic_nand_fetch<mode>): Likewise.
9730 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9732 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
9733 of __ARM_FEATURE_IDIV.
9735 2014-11-04 Marek Polacek <polacek@redhat.com>
9737 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
9739 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9741 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
9743 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
9746 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9747 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9748 Allow CC mode if HAVE_cbranchcc4.
9750 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9752 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
9753 with -fdump-go-spec. Anonymous substructures are now flattened and
9754 replaced by their fields (record) or the first named, non-bitfield
9757 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9759 * input.c (expand_location_to_spelling_point): Fix typo.
9760 (expansion_point_location_if_in_system_header): Fix comment.
9762 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9764 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
9766 2014-11-03 Richard Biener <rguenther@suse.de>
9768 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
9769 like ordinary operations.
9770 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
9773 2014-11-03 Joseph Myers <joseph@codesourcery.com>
9775 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
9777 * configure, config.h.in: Regenerate.
9778 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
9779 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9780 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9781 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
9782 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9783 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9784 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
9785 (atomic_update_decl): New static variables.
9786 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
9787 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
9788 and __atomic_feupdateenv for soft-float and no-FPRs.
9790 2014-11-03 Richard Biener <rguenther@suse.de>
9792 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
9793 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
9794 * fold-const.c (fold_unary_loc): Remove them here.
9795 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9796 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
9797 GIMPLE_UNARY_RHS case.
9798 (gimple_fold_stmt_to_constant_1): Likewise.
9799 (replace_stmt_with_simplification): Fix inverted comparison.
9801 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9803 PR tree-optimization/60770
9804 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
9805 statement should be removed.
9806 (maybe_register_def): Likewise. Replace clobbers with default
9808 (rewrite_dom_walker::before_dom_children): Remove statement if
9809 rewrite_update_stmt says so.
9810 * tree-ssa-live.c: Include tree-ssa.h.
9811 (set_var_live_on_entry): Do not mark undefined variables as live.
9812 (verify_live_on_entry): Do not check undefined variables.
9813 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
9814 of partially undefined variables.
9815 * tree-ssa.c (ssa_undefined_value_p): Likewise.
9816 (execute_update_addresses_taken): Do not drop clobbers.
9818 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9820 PR tree-optimization/63666
9821 * fold-const.c: Include "optabs.h".
9822 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
9823 can_vec_perm_p permutation to one that is not.
9825 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9827 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
9829 2014-11-03 Andrew Pinski <apinski@cavium.com>
9831 * config/mips/mips-cpus.def (octeon3): New cpu.
9832 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
9833 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
9834 of the comparison no longer matches mode of the operands.
9835 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
9836 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
9837 (TARGET_OCTEON2): Likewise.
9838 (TUNE_OCTEON): Add Octeon3.
9839 * config/mips/mips.md (processor): Add octeon3.
9840 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
9841 (octeon_arith): Add octeon3.
9842 (octeon_condmove): Remove.
9843 (octeon_condmove_o1): New reservation.
9844 (octeon_condmove_o2): New reservation.
9845 (octeon_condmove_o3_int_on_cc): New reservation.
9846 (octeon_load_o2): Add octeon3.
9847 (octeon_cop_o2): Likewise.
9848 (octeon_store): Likewise.
9849 (octeon_brj_o2): Likewise.
9850 (octeon_imul3_o2): Likewise.
9851 (octeon_imul_o2): Likewise.
9852 (octeon_mfhilo_o2): Likewise.
9853 (octeon_imadd_o2): Likewise.
9854 (octeon_idiv_o2_si): Likewise.
9855 (octeon_idiv_o2_di): Likewise.
9856 (octeon_fpu): Add to the automaton.
9857 (octeon_fpu): New cpu unit.
9858 (octeon_condmove_o2): Check for non floating point modes.
9859 (octeon_load_o2): Add prefetchx.
9860 (octeon_cop_o2): Don't check for octeon3.
9861 (octeon3_faddsubcvt): New reservation.
9862 (octeon3_fmul): Likewise.
9863 (octeon3_fmadd): Likewise.
9864 (octeon3_div_sf): Likewise.
9865 (octeon3_div_df): Likewise.
9866 (octeon3_sqrt_sf): Likewise.
9867 (octeon3_sqrt_df): Likewise.
9868 (octeon3_rsqrt_sf): Likewise.
9869 (octeon3_rsqrt_df): Likewise.
9870 (octeon3_fabsnegmov): Likewise.
9871 (octeon_fcond): Likewise.
9872 (octeon_fcondmov): Likewise.
9873 (octeon_fpmtc1): Likewise.
9874 (octeon_fpmfc1): Likewise.
9875 (octeon_fpload): Likewise.
9876 (octeon_fpstore): Likewise.
9877 * config/mips/mips-tables.opt: Regenerate.
9878 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
9880 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9882 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9883 Allow CC mode if HAVE_cbranchcc4.
9885 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9887 * config/arc/arc.c (write_ext_corereg_1): Delete.
9888 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
9890 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9892 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
9893 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
9895 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9897 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
9898 (small_data_pattern_1): Delete.
9899 (small_data_pattern): Use FOR_EACH_SUBRTX.
9901 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9903 * config/arc/arc.c: Include rtl-iter.h.
9904 (arc_rewrite_small_data_1): Delete.
9905 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
9907 2014-11-02 Michael Collison <michael.collison@linaro.org>
9909 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
9910 to support vector modes.
9911 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9913 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
9915 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
9916 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
9917 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
9918 * optabs.c: (gen_move_insn): Move to expr.c.
9919 * expr.h: Move protypes and enums to optabs.h.
9920 * expr.c: (gen_move_insn): Relocate from optabs.c.
9921 * genemit.c (main): Include insn-codes.h.
9922 * gengtype.c (open_base_files): Include insn-codes.h.
9923 * asan.c: Include insn-codes.h.
9924 * bb-reorder.c: Ditto.
9925 * builtins.c: Ditto.
9927 * cfgexpand.c: Ditto.
9928 * cilk-common.c: Ditto.
9935 * function.c: Ditto.
9937 * internal-fn.c: Ditto.
9938 * loop-unroll.c: Ditto.
9940 * modulo-sched.c: Ditto.
9942 * postreload.c: Ditto.
9946 * shrink-wrap.c: Ditto.
9947 * simplify-rtx.c: Ditto.
9949 * target-globals.c: Ditto.
9950 * targhooks.c: Ditto.
9952 * tree-if-conv.c: Ditto.
9953 * tree-ssa-forwprop.c: Ditto.
9954 * tree-ssa-loop-prefetch.c: Ditto.
9955 * tree-ssa-math-opts.c: Ditto.
9956 * tree-ssa-phiopt.c: Ditto.
9957 * tree-ssa-reassoc.c: Ditto.
9958 * tree-switch-conversion.c: Ditto.
9959 * tree-vect-data-refs.c: Ditto.
9960 * tree-vect-generic.c: Ditto.
9961 * tree-vect-loop.c: Ditto.
9962 * tree-vect-patterns.c: Ditto.
9963 * tree-vect-slp.c: Ditto.
9964 * tree-vect-stmts.c: Ditto.
9965 * tree-vrp.c: Ditto.
9966 * value-prof.c: Ditto.
9967 * config/aarch64/aarch64-builtins.c: Ditto.
9968 * config/alpha/alpha.c: Ditto.
9969 * config/arm/arm.c: Ditto.
9970 * config/cris/cris.c: Ditto.
9971 * config/epiphany/epiphany.c: Ditto.
9972 * config/frv/frv.c: Ditto.
9973 * config/h8300/h8300.c: Ditto.
9974 * config/ia64/ia64.c: Ditto.
9975 * config/iq2000/iq2000.c: Ditto.
9976 * config/m32c/m32c.c: Ditto.
9977 * config/mep/mep.c: Ditto.
9978 * config/microblaze/microblaze.c: Ditto.
9979 * config/mips/mips.c: Ditto.
9980 * config/mn10300/mn10300.c: Ditto.
9981 * config/moxie/moxie.c: Ditto.
9982 * config/msp430/msp430.c: Ditto.
9983 * config/nios2/nios2.c: Ditto.
9984 * config/pa/pa.c: Ditto.
9985 * config/rl78/rl78.c: Ditto.
9986 * config/rs6000/rs6000.c: Ditto.
9987 * config/rx/rx.c: Ditto.
9988 * config/s390/s390.c: Ditto.
9989 * config/sh/sh.c: Ditto.
9990 * config/sh/sh_treg_combine.cc: Ditto.
9991 * config/spu/spu.c: Ditto.
9992 * config/stormy16/stormy16.c: Ditto.
9993 * config/tilegx/mul-tables.c: Ditto.
9994 * config/tilegx/tilegx.c: Ditto.
9995 * config/tilepro/mul-tables.c: Ditto.
9996 * config/tilepro/tilepro.c: Ditto.
9997 * config/vax/vax.c: Ditto.
9999 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10001 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
10002 (CLEAR_BY_PIECES_P): Likewise.
10003 (SET_BY_PIECES_P): Likewise.
10004 (STORE_BY_PIECES_P): Likewise.
10005 * doc/tm.texi: Regenerate.
10006 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
10007 SET_BY_PIECES_P, STORE_BY_PIECES_P.
10008 * expr.c (MOVE_BY_PIECES_P): Remove.
10009 (CLEAR_BY_PIECES_P): Likewise.
10010 (SET_BY_PIECES_P): Likewise.
10011 (STORE_BY_PIECES_P): Likewise.
10012 (can_move_by_pieces): Rewrite in terms of
10013 targetm.use_by_pieces_infrastructure_p.
10014 (emit_block_move_hints): Likewise.
10015 (can_store_by_pieces): Likewise.
10016 (store_by_pieces): Likewise.
10017 (clear_storage_hints): Likewise.
10018 (emit_push_insn): Likewise.
10019 (expand_constructor): Likewise.
10021 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10023 * config/aarch64/aarch64.c
10024 (aarch64_use_by_pieces_infrastructre_p): New.
10025 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
10026 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
10028 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10030 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
10031 (STORE_BY_PIECES_P): Likewise.
10032 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10033 (mips_move_by_pieces_p): Rename to...
10034 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
10035 parameters, use the default hook implementation as a
10038 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10040 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10041 (sh_use_by_pieces_infrastructure_p): Likewise.
10042 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
10043 (STORE_BY_PIECES_P): Likewise.
10044 (SET_BY_PIECES_P): Likewise.
10046 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10048 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10049 (arc_use_by_pieces_infrastructure_p): Likewise.
10050 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
10051 (CAN_MOVE_BY_PIECES): Likewise.
10053 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10055 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
10056 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
10057 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
10058 (CLEAR_BY_PIECES): Likewise.
10059 (SET_BY_PIECES): Likewise.
10060 (STORE_BY_PIECES): Likewise.
10062 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10064 * target.def (use_by_pieces_infrastructure_p): New.
10065 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
10067 (STORE_BY_PIECES_P): Likewise.
10068 (CLEAR_BY_PIECES_P): Likewise.
10069 (SET_BY_PIECES_P): Likewise.
10070 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
10071 * doc/tm.texi: Regenerate.
10072 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
10073 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
10074 (STORE_BY_PIECES_P): Likewise.
10075 (CLEAR_BY_PIECES_P): Likewise.
10076 (SET_BY_PIECES_P): Likewise.
10077 (STORE_MAX_PIECES): Move to...
10078 * defaults.h (STORE_MAX_PIECES): ...here.
10079 * targhooks.c (get_move_ratio): New.
10080 (default_use_by_pieces_infrastructure_p): Likewise.
10081 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
10082 * target.h (by_pieces_operation): New.
10084 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10087 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
10088 assignment to 'nargs' variable.
10090 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10093 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
10094 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
10095 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
10096 be reloaded through memory.
10100 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10102 PR rtl-optimization/63659
10103 * ree.c (update_reg_equal_equiv_notes): New function.
10104 (combine_set_extension, transform_ifelse): Use it.
10106 2014-10-31 Jeff Law <law@redhat.com>
10108 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
10109 and Jonny Grant (collect2).
10111 2014-10-31 Richard Biener <rguenther@suse.de>
10113 * builtins.c (fold_builtin_atomic_always_lock_free): Use
10114 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
10116 (fold_builtin_expect): Likewise.
10117 (integer_valued_real_p): Likewise.
10118 * cfgexpand.c (expand_debug_expr): Likewise.
10119 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
10120 (find_foldable_builtin_expect): Likewise.
10121 * trans-mem.c (thread_private_new_memory): Likewise.
10122 * tree-affine.c (aff_combination_expand): Likewise.
10123 * tree-data-ref.c (initialize_matrix_A): Likewise.
10124 * tree-inline.c (copy_bb): Likewise.
10125 * tree-pretty-print.c (dump_function_name): Likewise.
10126 (print_call_name): Likewise.
10127 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
10128 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
10129 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10130 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
10131 (vect_recog_widen_mult_pattern): Likewise.
10132 (vect_operation_fits_smaller_type): Likewise.
10133 * tree-vrp.c (find_assert_locations_1): Likewise.
10134 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10135 converts to NOP_EXPR.
10137 2014-10-31 Richard Biener <rguenther@suse.de>
10139 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
10140 CONVERT_EXPRs in generated code.
10141 (dt_simplify::gen): Likewise.
10143 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
10146 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
10147 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
10148 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
10149 using mcount in 32bit PIC mode.
10150 (ix86_elim_entry_set_got): New.
10151 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
10152 in PROLOGUE, delete initial if possible.
10154 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
10156 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
10157 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
10159 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10161 PR tree-optimization/63259
10162 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
10163 rotation left if it is a 16 bit byte swap.
10164 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
10165 and RROTATE_EXPR statements if it is a byte rotation.
10167 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10170 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
10171 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
10172 instead of vr0.min - vr1.min and vr0.max - vr1.max.
10174 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
10177 * ipa-icf.c (sem_function::~sem_function): Change free to delete
10178 to avoid alloc-dealloc mismatch with new, called in
10179 ipa_icf::sem_function::init.
10181 2014-10-30 Felix Yang <felix.yang@huawei.com>
10183 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
10184 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
10185 (xtensa_reorg, xtensa_reorg_loops): New.
10186 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
10187 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
10188 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
10189 (xtensa_doloop_hooks): Define.
10190 * config/xtensa/xtensa.md (doloop_end, loop_end): New
10191 (zero_cost_loop_start): Rewritten.
10192 (zero_cost_loop_end): Likewise.
10194 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
10196 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
10198 2014-10-30 Richard Biener <rguenther@suse.de>
10200 * genmatch.c: Remove <map>, <utility> and <string> includes.
10201 Include ggc.h and hash-map.h.
10202 (ggc_internal_cleared_alloc): Provide stub definition.
10203 (ggc_free): Likewise.
10204 (struct capture_id_map_hasher): New traits for hash_map.
10205 (cid_map_t): New typedef.
10206 (everywhere else): Replace std::map use with cid_map_t.
10207 * hash-map.h (hash_map::elements): New member function.
10208 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
10209 hash-map.h and $(GGC_H) as dependency.
10211 2014-10-30 Richard Biener <rguenther@suse.de>
10213 * genmatch.c (capture_info::walk_c_expr): Ignore capture
10214 uses inside TREE_TYPE ().
10215 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
10216 (find_candidates_dom_walker::before_dom_children): Likewise.
10217 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
10218 (replace_profitable_candidates): Likewise.
10219 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10220 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
10221 * convert.c (convert_to_integer): Use CASE_CONVERT.
10223 2014-10-30 Richard Biener <rguenther@suse.de>
10225 * match.pd: Implement more patterns that simplify to a single value.
10226 * fold-const.c (fold_binary_loc): Remove them here.
10227 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
10228 (fwprop_ssa_val): Remove restriction on single uses.
10230 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10232 * config/avr/driver-avr.c (avr_set_current_device): Remove.
10234 2014-10-30 Martin Liska <mliska@suse.cz>
10238 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
10239 (func_checker::compare_gimple_label): Simlified comparison introduced.
10240 * ipa-icf-gimple.h: Missing comment added.
10242 2014-10-30 Jeff Law <law@redhat.com>
10244 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
10245 argument from rtx to rtx_insn *.
10246 (compute_movmem_length, compute_clrmem_length): Likewise.
10247 (copy_fp_args, length_fp_args): Likewise.
10248 * config/pa/pa.c (legitimize_pic_address): Promote local variable
10249 "insn" from rtx to rtx_insn *.
10250 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
10251 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
10252 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
10253 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
10254 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
10255 (compute_movmem_length, compute_clrmem_length): Likewise.
10256 (copy_fp-args, length_fp_args): Likewise.
10258 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10260 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
10262 (CUMULATIVE_ARGS): Guard against target includes.
10263 (machine_function): Likewise.
10265 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10267 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
10268 recog state after aarch64_prev_real_insn call.
10270 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10272 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
10274 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10276 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
10277 (struct machine_function): Gate definition on
10278 !defined(USED_FOR_TARGET).
10280 2014-10-29 DJ Delorie <dj@redhat.com>
10282 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
10284 2014-10-29 Martin Liska <mliska@suse.cz>
10287 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
10288 to local declarations.
10289 * function.c (add_local_decl): Implementation moved from header
10290 file, assert introduced for tree type.
10291 * function.h: Likewise.
10293 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10295 * godump.c (go_format_type): Represent "float _Complex" and
10296 "double _Complex" as complex64 or complex128 in Go, as appropriate.
10298 2014-10-29 Richard Biener <rguenther@suse.de>
10300 * match.pd: Implement a first set of conversion patterns.
10301 * fold-const.c (fold_unary_loc): Remove them here.
10302 * tree-ssa-forwprop.c (simplify_vce): Remove.
10303 (pass_forwprop::execute): Do not call simplify_vce.
10305 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10307 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
10308 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
10309 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
10310 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
10311 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
10312 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
10313 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
10314 config/arc/arc.h, config/arc/predicates.md,
10315 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
10316 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10317 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
10318 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
10319 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
10320 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
10321 config/cr16/cr16-protos.h, config/cr16/cr16.c,
10322 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
10323 config/darwin-protos.h, config/darwin.c,
10324 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
10325 config/epiphany/epiphany.md, config/fr30/fr30.c,
10326 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
10327 config/h8300/h8300-protos.h, config/h8300/h8300.c,
10328 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
10329 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
10330 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
10331 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
10332 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
10333 config/lm32/lm32-protos.h, config/lm32/lm32.c,
10334 config/m32c/m32c-protos.h, config/m32c/m32c.c,
10335 config/m32r/m32r-protos.h, config/m32r/m32r.c,
10336 config/m68k/m68k-protos.h, config/m68k/m68k.c,
10337 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10338 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
10339 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
10340 config/mips/mips-protos.h, config/mips/mips.c,
10341 config/mmix/mmix-protos.h, config/mmix/mmix.c,
10342 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
10343 config/moxie/moxie.c, config/msp430/msp430-protos.h,
10344 config/msp430/msp430.c, config/nds32/nds32-cost.c,
10345 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
10346 config/nds32/nds32-protos.h, config/nds32/nds32.c,
10347 config/nios2/nios2-protos.h, config/nios2/nios2.c,
10348 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
10349 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
10350 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
10351 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10352 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
10353 config/s390/predicates.md, config/s390/s390-protos.h,
10354 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
10355 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
10356 config/sh/sh.md, config/sparc/predicates.md,
10357 config/sparc/sparc-protos.h, config/sparc/sparc.c,
10358 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
10359 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10360 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
10361 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
10362 config/tilepro/tilepro.c, config/v850/v850-protos.h,
10363 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
10364 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
10365 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
10366 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
10367 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
10368 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
10369 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
10370 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
10371 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
10372 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
10373 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
10374 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
10375 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
10376 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
10377 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
10378 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
10379 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
10380 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
10381 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
10382 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
10383 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
10384 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
10385 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
10386 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
10387 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
10388 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
10389 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
10390 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
10391 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
10392 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
10393 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
10394 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
10395 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
10396 var-tracking.c, varasm.c: Remove redundant enum from
10398 * gengtype.c (main): Treat machine_mode as a scalar typedef.
10399 * genmodes.c (emit_insn_modes_h): Hide inline functions if
10402 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10404 PR rtl-optimization/63340 (part 2)
10405 * rtl.h (invalid_mode_change_p): Delete.
10406 (valid_mode_changes_for_regno): New function.
10407 * reginfo.c (invalid_mode_change_p): Delete.
10408 (valid_mode_changes_for_regno): New function.
10409 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
10410 classes to registers that are allowed by valid_mode_changes_for_regno.
10411 (setup_regno_cost_classes_by_mode): Likewise.
10412 (print_allocno_costs): Remove invalid_mode_change_p test.
10413 (print_pseudo_costs, find_costs_and_classes): Likewise.
10415 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10417 PR rtl-optimization/63340 (part 1)
10418 * ira-costs.c (all_cost_classes): New variable.
10419 (complete_cost_classes): New function, split out from...
10420 (setup_cost_classes): ...here.
10421 (initiate_regno_cost_classes): Set up all_cost_classes.
10422 (restrict_cost_classes): New function.
10423 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
10424 registers that are valid for the register's mode.
10425 (setup_regno_cost_classes_by_mode): Model the mode cache as a
10426 restriction of all_cost_classes to a particular mode.
10427 (print_allocno_costs): Remove contains_reg_of_mode check.
10428 (print_pseudo_costs, find_costs_and_classes): Likewise.
10430 2014-10-29 Richard Biener <rguenther@suse.de>
10432 PR tree-optimization/63666
10433 * tree-vect-slp.c (vect_get_mask_element): Properly handle
10434 accessing out-of-bound elements.
10436 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10437 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10438 Anna Tikhonova <anna.tikhonova@intel.com>
10439 Ilya Tocar <ilya.tocar@intel.com>
10440 Andrey Turetskiy <andrey.turetskiy@intel.com>
10441 Ilya Verbin <ilya.verbin@intel.com>
10442 Kirill Yukhin <kirill.yukhin@intel.com>
10443 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10445 * config/i386/i386.md
10446 (movhi_internal): Always detect maskmov.
10447 (movqi_internal): Fix target check.
10449 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10451 Anna Tikhonova <anna.tikhonova@intel.com>
10452 Ilya Tocar <ilya.tocar@intel.com>
10453 Andrey Turetskiy <andrey.turetskiy@intel.com>
10454 Ilya Verbin <ilya.verbin@intel.com>
10455 Kirill Yukhin <kirill.yukhin@intel.com>
10456 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10458 * config/i386/avx512bwintrin.h: Add new intrinsics.
10459 * config/i386/avx512vlbwintrin.h: Ditto.
10460 * config/i386/avx512vlintrin.h: Ditto.
10462 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10464 * godump.c (precision_to_units): New helper function.
10465 (go_append_artificial_name): Ditto.
10466 (go_append_decl_name): Ditto.
10467 (go_append_bitfield): Ditto.
10468 (go_get_uinttype_for_precision): Ditto.
10469 (go_append_padding): Ditto.
10470 (go_force_record_alignment): Ditto.
10471 (go_format_type): Represent unions with an array of uints of the size
10472 of the alignment in go. This fixes the 'random' size of the union's
10473 representation using just the first field.
10474 (go_format_type): Add argument that indicates whether a record is
10475 nested (used for generation of artificial go names).
10476 (go_output_fndecl): Adapt to new go_format_type signature.
10477 (go_output_typedef): Ditto.
10478 (go_output_var): Ditto.
10479 (go_output_var): Prefer to output type as alias (typedef).
10480 (go_format_type): Bitfields in records are simulated as arrays of bytes
10483 * godump.c (go_format_type): Fix handling of arrays with zero elements.
10485 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
10487 * cgraph.h: Flatten. Remove all include files.
10488 (symbol_table::initialize): Move to cgraph.c.
10489 * cgraph.c: Adjust include files.
10490 (symbol_table::initialize): Relocate from cgraph.h.
10491 * gengtype.c (open_base_files): Adjust include files.
10492 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
10494 * ipa-inline.h: Remove all include files.
10495 * ipa-prop.h: Ditto.
10496 * ipa-reference.h: Ditto.
10497 * ipa-utils.h: Ditto:
10498 * lto-streamer.h: Remove cgraph.h from include list.
10499 * asan.c: Adjust include files.
10500 * auto-profile.c: Ditto.
10501 * bb-reorder.c: Ditto.
10503 * cfgexpand.c: Ditto.
10504 * cgraphbuild.c: Ditto.
10505 * cgraphclones.c: Ditto.
10506 * cgraphunit.c: Ditto.
10507 * combine.c: Ditto.
10508 * coverage.c: Ditto.
10509 * data-streamer.c: Ditto.
10510 * data-streamer-in.c: Ditto.
10511 * data-streamer-out.c: Ditto.
10513 * dwarf2out.c: Ditto.
10517 * fold-const.c: Ditto.
10518 * ggc-page.c: Ditto.
10519 * gimple-fold.c: Ditto.
10520 * gimple-iterator.c: Ditto.
10521 * gimple-pretty-print.c: Ditto.
10522 * gimple-streamer-in.c: Ditto.
10523 * gimple-streamer-out.c: Ditto.
10524 * gimplify.c: Ditto.
10526 * ipa-comdats.c: Ditto.
10528 * ipa-devirt.c: Ditto.
10529 * ipa-icf.c: Ditto.
10530 * ipa-icf-gimple.c: Ditto.
10531 * ipa-inline-analysis.c: Ditto.
10532 * ipa-inline.c: Ditto.
10533 * ipa-inline-transform.c: Ditto.
10534 * ipa-polymorphic-call.c: Ditto.
10535 * ipa-profile.c: Ditto.
10536 * ipa-prop.c: Ditto.
10537 * ipa-pure-const.c: Ditto.
10538 * ipa-ref.c: Ditto.
10539 * ipa-reference.c: Ditto.
10540 * ipa-split.c: Ditto.
10541 * ipa-utils.c: Ditto.
10542 * ipa-visibility.c: Ditto.
10543 * langhooks.c: Ditto.
10544 * lto-cgraph.c: Ditto.
10545 * lto-compress.c: Ditto.
10546 * lto-opts.c: Ditto.
10547 * lto-section-in.c: Ditto.
10548 * lto-section-out.c: Ditto.
10549 * lto-streamer.c: Ditto.
10550 * lto-streamer-in.c: Ditto.
10551 * lto-streamer-out.c: Ditto.
10552 * omp-low.c: Ditto.
10553 * opts-global.c: Ditto.
10555 * predict.c: Ditto.
10556 * print-tree.c: Ditto.
10557 * profile.c: Ditto.
10559 * stor-layout.c: Ditto.
10562 * trans-mem.c: Ditto.
10564 * tree-cfg.c: Ditto.
10565 * tree-eh.c: Ditto.
10566 * tree-emutls.c: Ditto.
10567 * tree-inline.c: Ditto.
10568 * tree-nested.c: Ditto.
10569 * tree-pretty-print.c: Ditto.
10570 * tree-profile.c: Ditto.
10571 * tree-sra.c: Ditto.
10572 * tree-ssa-alias.c: Ditto.
10573 * tree-ssa-loop-ivcanon.c: Ditto.
10574 * tree-ssa-loop-ivopts.c: Ditto.
10575 * tree-ssa-pre.c: Ditto.
10576 * tree-ssa-structalias.c: Ditto.
10577 * tree-streamer.c: Ditto.
10578 * tree-streamer-in.c: Ditto.
10579 * tree-streamer-out.c: Ditto.
10580 * tree-switch-conversion.c: Ditto.
10581 * tree-tailcall.c: Ditto.
10582 * tree-vect-data-refs.c: Ditto.
10583 * tree-vectorizer.c: Ditto.
10584 * tree-vect-stmts.c: Ditto.
10587 * value-prof.c: Ditto.
10589 * varpool.c: Ditto.
10590 * config/arm/arm.c: Ditto.
10591 * config/bfin/bfin.c: Ditto.
10592 * config/c6x/c6x.c: Ditto.
10593 * config/cris/cris.c: Ditto.
10594 * config/darwin.c: Ditto.
10595 * config/darwin-c.c: Ditto.
10596 * config/i386/i386.c: Ditto.
10597 * config/i386/winnt.c: Ditto.
10598 * config/microblaze/microblaze.c: Ditto.
10599 * config/mips/mips.c: Ditto.
10600 * config/rs6000/rs6000.c: Ditto.
10601 * config/rx/rx.c: Ditto.
10603 2014-10-28 Richard Biener <rguenther@suse.de>
10605 * gimple-fold.h (follow_single_use_edges): Declare.
10606 * gimple-fold.c (follow_single_use_edges): New function.
10607 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
10608 * tree-ssa-propagate.c
10609 (substitute_and_fold_dom_walker::before_dom_children): Allow
10610 following single-use edges when folding stmts we propagated into.
10612 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10613 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10614 Anna Tikhonova <anna.tikhonova@intel.com>
10615 Ilya Tocar <ilya.tocar@intel.com>
10616 Andrey Turetskiy <andrey.turetskiy@intel.com>
10617 Ilya Verbin <ilya.verbin@intel.com>
10618 Kirill Yukhin <kirill.yukhin@intel.com>
10619 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10621 * config/i386/avx512bwintrin.h: New.
10622 * config/i386/avx512dqintrin.h: Ditto.
10623 * config/i386/avx512vlbwintrin.h: Ditto.
10624 * config/i386/avx512vldqintrin.h: Ditto.
10625 * config/i386/avx512vlintrin.h: Ditto.
10626 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
10627 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
10629 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10631 Anna Tikhonova <anna.tikhonova@intel.com>
10632 Ilya Tocar <ilya.tocar@intel.com>
10633 Andrey Turetskiy <andrey.turetskiy@intel.com>
10634 Ilya Verbin <ilya.verbin@intel.com>
10635 Kirill Yukhin <kirill.yukhin@intel.com>
10636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10638 * config/i386/i386.c
10639 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
10640 avx_shufpd256_mask, avx_vpermilv2df_mask.
10642 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10643 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10644 Anna Tikhonova <anna.tikhonova@intel.com>
10645 Ilya Tocar <ilya.tocar@intel.com>
10646 Andrey Turetskiy <andrey.turetskiy@intel.com>
10647 Ilya Verbin <ilya.verbin@intel.com>
10648 Kirill Yukhin <kirill.yukhin@intel.com>
10649 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10651 * config/i386/i386.c
10652 (ix86_init_mmx_sse_builtins):
10653 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
10654 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
10655 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
10656 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
10657 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
10658 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
10659 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
10660 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
10661 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
10662 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
10663 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
10664 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
10665 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
10666 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
10667 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
10668 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
10669 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
10670 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
10672 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10673 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10674 Anna Tikhonova <anna.tikhonova@intel.com>
10675 Ilya Tocar <ilya.tocar@intel.com>
10676 Andrey Turetskiy <andrey.turetskiy@intel.com>
10677 Ilya Verbin <ilya.verbin@intel.com>
10678 Kirill Yukhin <kirill.yukhin@intel.com>
10679 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10681 * config/i386/i386.c
10682 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
10683 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
10684 IX86_BUILTIN_GATHER3ALTDIV8SI.
10685 (ix86_expand_builtin):
10686 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
10687 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
10688 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
10689 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
10690 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10691 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
10692 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
10693 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
10694 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10695 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
10696 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
10697 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
10698 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
10699 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
10700 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
10701 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10702 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
10703 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
10704 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
10705 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
10707 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10708 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10709 Anna Tikhonova <anna.tikhonova@intel.com>
10710 Ilya Tocar <ilya.tocar@intel.com>
10711 Andrey Turetskiy <andrey.turetskiy@intel.com>
10712 Ilya Verbin <ilya.verbin@intel.com>
10713 Kirill Yukhin <kirill.yukhin@intel.com>
10714 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10716 * config/i386/i386-builtin-types.def
10735 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
10736 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10737 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10738 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10739 (V16SF_FTYPE_V16HI): Ditto.
10740 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10741 (V16SF_FTYPE_V16SI): Ditto.
10742 (V4DI_FTYPE_V4DI): Ditto.
10743 (V16SI_FTYPE_V16SF): Ditto.
10744 (V8DI_FTYPE_PV2DI): Ditto.
10745 (V8DF_FTYPE_PV2DF): Ditto.
10746 (V4DI_FTYPE_PV2DI): Ditto.
10747 (V4DF_FTYPE_PV2DF): Ditto.
10748 (V16SI_FTYPE_PV2SI): Ditto.
10749 (V16SF_FTYPE_PV2SF): Ditto.
10750 (V8SF_FTYPE_FLOAT): Ditto.
10751 (V4SF_FTYPE_FLOAT): Ditto.
10752 (V4DF_FTYPE_DOUBLE): Ditto.
10753 (V8SF_FTYPE_PV4SF): Ditto.
10754 (V8SI_FTYPE_PV4SI): Ditto.
10755 (V4SI_FTYPE_PV2SI): Ditto.
10756 (V8SF_FTYPE_PV2SF): Ditto.
10757 (V8SI_FTYPE_PV2SI): Ditto.
10758 (V16SF_FTYPE_PV8SF): Ditto.
10759 (V16SI_FTYPE_PV8SI): Ditto.
10760 (V8DI_FTYPE_V8SF): Ditto.
10761 (V4DI_FTYPE_V4SF): Ditto.
10762 (V2DI_FTYPE_V4SF): Ditto.
10763 (V64QI_FTYPE_QI): Ditto.
10764 (V32HI_FTYPE_HI): Ditto.
10765 (V16UHI_FTYPE_V16UHI): Ditto.
10766 (V32UHI_FTYPE_V32UHI): Ditto.
10767 (V2UDI_FTYPE_V2UDI): Ditto.
10768 (V4UDI_FTYPE_V4UDI): Ditto.
10769 (V8UDI_FTYPE_V8UDI): Ditto.
10770 (V4USI_FTYPE_V4USI): Ditto.
10771 (V16USI_FTYPE_V16USI): Ditto.
10772 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10773 (V2DF_FTYPE_V8DF_INT): Ditto.
10774 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10775 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10776 (V8DF_FTYPE_V8DF_INT): Ditto.
10777 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10778 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10779 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10780 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10781 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10782 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10783 (V8DI_FTYPE_V8DI_INT): Ditto.
10784 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10785 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10786 (V8SF_FTYPE_V16SF_INT): Ditto.
10787 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10788 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10789 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10790 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
10791 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10792 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
10793 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
10794 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
10795 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10796 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10797 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10798 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
10799 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10800 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10801 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10802 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10803 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10804 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10805 (V32HI_FTYPE_V32HI_INT): Ditto.
10806 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10807 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10808 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10809 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10810 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10811 (V8SI_FTYPE_V16SI_INT): Ditto.
10812 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10813 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10814 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10815 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10816 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
10817 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
10818 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10819 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10820 (V8DI_FTYPE_V64QI_V64QI): Ditto.
10821 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10822 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10823 (V2DI_FTYPE_V8DI_INT): Ditto.
10824 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10825 (QI_FTYPE_QI): Ditto.
10826 (SI_FTYPE_SI): Ditto.
10827 (DI_FTYPE_DI): Ditto.
10828 (HI_FTYPE_V16QI): Ditto.
10829 (SI_FTYPE_V32QI): Ditto.
10830 (DI_FTYPE_V64QI): Ditto.
10831 (QI_FTYPE_V8HI): Ditto.
10832 (HI_FTYPE_V16HI): Ditto.
10833 (SI_FTYPE_V32HI): Ditto.
10834 (QI_FTYPE_V4SI): Ditto.
10835 (QI_FTYPE_V8SI): Ditto.
10836 (HI_FTYPE_V16SI): Ditto.
10837 (QI_FTYPE_V2DI): Ditto.
10838 (QI_FTYPE_V4DI): Ditto.
10839 (QI_FTYPE_V8DI): Ditto.
10840 (V16QI_FTYPE_HI): Ditto.
10841 (V32QI_FTYPE_SI): Ditto.
10842 (V64QI_FTYPE_DI): Ditto.
10843 (V8HI_FTYPE_QI): Ditto.
10844 (V16HI_FTYPE_HI): Ditto.
10845 (V32HI_FTYPE_SI): Ditto.
10846 (V4SI_FTYPE_QI): Ditto.
10847 (V4SI_FTYPE_HI): Ditto.
10848 (V8SI_FTYPE_QI): Ditto.
10849 (V8SI_FTYPE_HI): Ditto.
10850 (V2DI_FTYPE_QI): Ditto.
10851 (V4DI_FTYPE_QI): Ditto.
10852 (QI_FTYPE_QI_QI): Ditto.
10853 (SI_FTYPE_SI_SI): Ditto.
10854 (DI_FTYPE_DI_DI): Ditto.
10855 (QI_FTYPE_QI_INT): Ditto.
10856 (SI_FTYPE_SI_INT): Ditto.
10857 (DI_FTYPE_DI_INT): Ditto.
10858 (HI_FTYPE_V16QI_V16QI): Ditto.
10859 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10860 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10861 (SI_FTYPE_V32QI_V32QI): Ditto.
10862 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10863 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10864 (DI_FTYPE_V64QI_V64QI): Ditto.
10865 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10866 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10867 (QI_FTYPE_V8HI_V8HI): Ditto.
10868 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10869 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10870 (HI_FTYPE_V16HI_V16HI): Ditto.
10871 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10872 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10873 (SI_FTYPE_V32HI_V32HI): Ditto.
10874 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10875 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10876 (QI_FTYPE_V4SI_V4SI): Ditto.
10877 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10878 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10879 (QI_FTYPE_V8SI_V8SI): Ditto.
10880 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10881 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10882 (QI_FTYPE_V2DI_V2DI): Ditto.
10883 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10884 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10885 (QI_FTYPE_V4DI_V4DI): Ditto.
10886 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10887 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10888 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10889 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
10890 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10891 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10892 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10893 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
10894 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10895 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10896 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10897 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10898 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10899 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10900 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10901 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10902 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10903 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10904 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10905 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10906 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10907 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10908 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10909 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10910 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10911 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10912 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10913 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10914 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10915 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10916 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10917 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10918 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10919 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10920 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10921 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10922 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10923 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10924 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10925 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10926 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10927 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10928 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10929 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10930 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10931 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10932 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10933 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10934 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10935 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10936 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10937 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10938 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10939 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10940 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10941 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10942 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10943 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10944 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10945 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10946 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10947 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10948 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10949 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10950 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10951 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10952 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10953 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10954 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10955 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10956 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10957 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10958 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10959 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10960 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10961 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
10962 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10963 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10964 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
10965 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10966 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10967 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
10968 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10969 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10970 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10971 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10972 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10973 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10974 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10975 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10976 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10977 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10978 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10979 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10980 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10981 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10982 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10983 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10984 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10985 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10986 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10987 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10988 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10989 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10990 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10991 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10992 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10993 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10994 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10995 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
10996 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
10997 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10998 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10999 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11000 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
11001 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11002 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11003 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
11004 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11005 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
11006 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11007 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
11008 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
11009 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
11010 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11011 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
11012 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
11013 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
11014 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
11015 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
11016 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
11017 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
11018 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
11019 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11020 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11021 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11022 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11023 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11024 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11025 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11026 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11027 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11028 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11029 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11030 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11031 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11032 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11033 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11034 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11035 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11036 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11037 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11038 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11039 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11040 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11041 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11042 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11043 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11044 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11045 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11046 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11047 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11048 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11049 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11050 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11051 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11052 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11053 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11054 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11055 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11056 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11057 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11058 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11059 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11060 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11061 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11062 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11063 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11064 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11065 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11066 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11067 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11068 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11069 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11070 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11071 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11072 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11073 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11074 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11075 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11076 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11077 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11078 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11079 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11080 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11081 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11082 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11083 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11084 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11085 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11086 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11087 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11088 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11089 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11090 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11091 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11092 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11093 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11094 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11095 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11096 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11097 (QI_FTYPE_V8DF_INT): Ditto.
11098 (QI_FTYPE_V4DF_INT): Ditto.
11099 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11100 (QI_FTYPE_V2DF_INT): Ditto.
11101 (HI_FTYPE_V16SF_INT): Ditto.
11102 (QI_FTYPE_V8SF_INT): Ditto.
11103 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11104 (QI_FTYPE_V4SF_INT): Ditto.
11105 (QI_FTYPE_V8DF_INT_QI): Ditto.
11106 (QI_FTYPE_V4DF_INT_QI): Ditto.
11107 (QI_FTYPE_V2DF_INT_QI): Ditto.
11108 (HI_FTYPE_V16SF_INT_HI): Ditto.
11109 (QI_FTYPE_V8SF_INT_QI): Ditto.
11110 (QI_FTYPE_V4SF_INT_QI): Ditto.
11111 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
11112 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
11113 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
11114 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
11115 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11116 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11117 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
11118 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
11119 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
11120 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
11121 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
11122 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
11123 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
11124 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
11125 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
11126 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
11127 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
11128 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
11129 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
11130 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
11131 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
11132 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
11133 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
11134 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
11135 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
11136 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
11137 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
11138 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
11139 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
11140 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
11141 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
11142 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
11143 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
11144 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
11145 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
11146 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
11147 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
11148 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
11149 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
11150 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
11151 (V8DI_FTYPE_V8DI_INT): Ditto.
11152 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11153 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11154 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11155 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11156 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
11157 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
11158 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
11159 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
11160 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
11161 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
11162 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
11163 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
11164 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
11165 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
11166 * config/i386/i386.c (ix86_builtins):
11167 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
11168 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
11169 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
11170 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
11171 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
11172 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
11173 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
11174 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
11175 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
11176 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
11177 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
11178 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
11179 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
11180 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
11181 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
11182 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
11183 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
11184 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
11185 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
11186 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
11187 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
11188 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
11189 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
11190 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
11191 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
11192 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
11193 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
11194 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
11195 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
11196 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
11197 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
11198 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
11199 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
11200 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
11201 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
11202 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
11203 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
11204 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
11205 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
11206 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
11207 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
11208 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
11209 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
11210 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
11211 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
11212 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
11213 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
11214 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
11215 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
11216 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
11217 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
11218 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
11219 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
11220 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
11221 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
11222 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
11223 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
11224 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
11225 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
11226 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
11227 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
11228 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
11229 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
11230 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
11231 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
11232 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
11233 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
11234 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
11235 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
11236 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
11237 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
11238 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
11239 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
11240 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
11241 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
11242 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
11243 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
11244 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
11245 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
11246 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
11247 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
11248 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
11249 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
11250 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
11251 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
11252 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
11253 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
11254 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
11255 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
11256 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
11257 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
11258 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
11259 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
11260 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
11261 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
11262 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
11263 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
11264 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
11265 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
11266 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
11267 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
11268 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
11269 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
11270 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
11271 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
11272 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
11273 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
11274 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
11275 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
11276 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
11277 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
11278 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
11279 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
11280 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
11281 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
11282 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
11283 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
11284 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
11285 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
11286 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
11287 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
11288 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
11289 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
11290 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
11291 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
11292 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
11293 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
11294 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
11295 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
11296 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
11297 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
11298 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
11299 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
11300 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
11301 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
11302 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
11303 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
11304 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
11305 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
11306 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
11307 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
11308 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
11309 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
11310 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
11311 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
11312 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
11313 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
11314 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
11315 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
11316 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
11317 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
11318 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
11319 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
11320 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
11321 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
11322 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
11323 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
11324 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
11325 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
11326 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
11327 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
11328 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
11329 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
11330 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
11331 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
11332 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
11333 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
11334 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
11335 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
11336 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
11337 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
11338 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
11339 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
11340 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
11341 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
11342 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
11343 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
11344 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
11345 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
11346 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
11347 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
11348 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
11349 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
11350 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
11351 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
11352 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
11353 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
11354 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
11355 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
11356 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
11357 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
11358 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
11359 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
11360 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
11361 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
11362 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
11363 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
11364 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
11365 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
11366 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
11367 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
11368 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
11369 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
11370 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
11371 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
11372 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
11373 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
11374 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
11375 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
11376 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
11377 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
11378 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
11379 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
11380 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
11381 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
11382 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
11383 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
11384 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
11385 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
11386 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
11387 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
11388 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
11389 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
11390 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
11391 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
11392 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
11393 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
11394 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
11395 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
11396 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
11397 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
11398 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
11399 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
11400 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
11401 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
11402 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
11403 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
11404 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
11405 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
11406 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
11407 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
11408 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
11409 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
11410 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
11411 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
11412 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
11413 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
11414 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
11415 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
11416 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
11417 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
11418 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
11419 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
11420 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
11421 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
11422 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
11423 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
11424 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
11425 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
11426 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
11427 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
11428 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
11429 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
11430 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
11431 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
11432 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
11433 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
11434 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
11435 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
11436 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
11437 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
11438 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
11439 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
11440 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
11441 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
11442 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
11443 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
11444 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
11445 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
11446 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
11447 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
11448 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
11449 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
11450 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
11451 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
11452 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
11453 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
11454 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
11455 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
11456 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
11457 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
11458 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
11459 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
11460 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
11461 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
11462 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
11463 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
11464 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
11465 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
11466 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
11467 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
11468 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
11469 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
11470 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
11471 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
11472 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
11473 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
11474 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
11475 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
11476 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
11477 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
11478 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
11479 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
11480 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
11481 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
11482 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
11483 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
11484 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
11485 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
11486 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
11487 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
11488 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
11489 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
11490 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
11491 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
11492 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
11493 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
11494 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
11495 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
11496 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
11497 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
11498 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
11499 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
11500 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
11501 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
11502 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
11503 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
11504 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
11505 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
11506 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
11507 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
11508 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
11509 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
11510 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
11511 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
11512 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
11513 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
11514 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
11515 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
11516 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
11517 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
11518 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
11519 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
11520 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
11521 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
11522 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
11523 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
11524 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
11525 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
11526 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
11527 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
11528 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
11529 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
11530 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
11531 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
11532 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
11533 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
11534 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
11535 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
11536 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
11537 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
11538 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
11539 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
11540 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
11541 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
11542 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
11543 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
11544 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
11545 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
11546 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
11547 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
11548 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
11549 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
11550 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
11551 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
11552 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
11553 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
11554 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
11555 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
11556 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
11557 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
11558 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
11559 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
11560 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
11561 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
11562 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
11563 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
11564 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
11565 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
11566 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
11567 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
11568 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
11569 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
11570 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
11571 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
11572 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
11573 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
11574 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
11575 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
11576 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
11577 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
11578 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
11579 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
11580 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
11581 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
11582 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
11583 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
11584 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
11585 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
11586 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
11587 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
11588 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
11589 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
11590 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
11591 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
11592 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
11593 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
11594 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
11595 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
11596 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
11597 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
11598 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
11599 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
11600 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
11601 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
11602 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
11603 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
11604 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
11605 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
11606 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
11607 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
11608 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
11609 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
11610 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
11611 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
11612 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
11613 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
11614 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
11615 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
11616 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
11617 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
11618 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
11619 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
11620 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
11621 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
11622 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
11623 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
11624 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
11625 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
11626 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
11627 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
11628 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
11629 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
11630 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
11631 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
11632 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
11633 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
11634 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
11635 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
11636 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
11637 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
11638 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
11639 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
11640 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
11641 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
11642 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
11643 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
11644 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
11645 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
11646 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
11647 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
11648 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
11649 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
11650 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
11651 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
11652 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
11653 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
11654 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
11655 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
11656 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
11657 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
11658 (bdesc_special_args):
11659 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
11660 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
11661 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
11662 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
11663 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
11664 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
11665 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
11666 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
11667 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
11668 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
11669 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
11670 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
11671 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
11672 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
11673 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
11674 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
11675 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
11676 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
11677 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
11678 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
11679 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
11680 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
11681 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
11682 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
11683 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
11684 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
11685 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
11686 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
11687 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
11688 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
11689 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
11690 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
11691 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
11692 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
11693 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
11694 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
11695 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
11696 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
11697 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
11698 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
11699 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
11700 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
11701 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
11702 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
11703 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
11704 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
11705 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
11706 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
11707 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
11708 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
11709 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
11710 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
11711 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
11712 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
11713 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
11714 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
11715 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
11716 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
11717 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
11718 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
11719 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
11720 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
11721 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
11722 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
11723 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
11724 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
11725 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
11726 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
11727 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
11728 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
11729 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
11730 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
11731 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
11732 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
11733 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
11734 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
11735 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
11736 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
11737 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
11738 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
11739 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
11740 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
11741 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
11742 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
11743 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
11744 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
11745 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
11746 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
11747 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
11748 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
11749 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
11750 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
11751 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
11752 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
11753 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
11754 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
11755 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
11756 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
11757 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
11758 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
11759 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
11760 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
11761 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
11762 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
11763 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
11764 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
11765 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
11766 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
11767 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
11768 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
11769 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
11770 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
11771 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
11772 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
11773 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
11774 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
11775 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
11776 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
11777 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
11778 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
11779 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
11780 __builtin_ia32_reducesd, __builtin_ia32_reducess,
11781 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
11782 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
11783 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
11784 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
11785 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
11786 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
11787 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
11788 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
11789 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
11790 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
11791 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
11792 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
11793 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
11794 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
11795 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
11796 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
11797 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
11798 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
11799 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
11800 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
11801 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
11802 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
11803 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
11804 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
11805 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
11806 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
11807 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
11808 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
11809 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
11810 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
11811 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
11812 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
11813 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
11814 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
11815 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
11816 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
11817 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
11818 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
11819 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
11820 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
11821 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
11822 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
11823 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
11824 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
11825 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
11826 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
11827 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
11828 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
11829 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
11830 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
11831 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
11832 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
11833 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
11834 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
11835 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
11836 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
11837 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
11838 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
11839 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
11840 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
11841 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
11842 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
11843 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
11844 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
11845 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
11846 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
11847 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
11848 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
11849 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
11850 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
11851 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
11852 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
11853 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
11854 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
11855 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
11856 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
11857 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
11858 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
11859 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
11860 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
11861 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
11862 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
11863 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
11864 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
11865 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
11866 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
11867 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
11868 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
11869 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
11870 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
11871 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
11872 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
11873 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
11874 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
11875 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
11876 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
11877 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
11878 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
11879 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
11880 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
11881 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
11882 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
11883 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
11884 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
11885 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
11886 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
11887 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
11888 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
11889 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
11890 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
11891 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
11892 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
11893 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
11894 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
11895 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
11896 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
11897 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
11898 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
11899 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
11900 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
11901 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
11902 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
11903 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
11904 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
11905 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
11906 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
11907 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
11908 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
11909 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
11910 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
11911 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
11912 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
11913 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
11914 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
11915 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
11916 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
11917 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
11918 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
11919 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
11920 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
11921 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
11922 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
11923 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
11924 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
11925 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
11926 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
11927 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
11928 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
11929 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
11930 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
11931 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
11932 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
11933 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
11934 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
11935 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
11936 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
11937 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
11938 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
11939 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
11940 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
11941 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
11942 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
11943 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
11944 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
11945 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
11946 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
11947 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
11948 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
11949 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
11950 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
11951 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
11952 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
11953 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
11954 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
11955 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
11956 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
11957 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
11958 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
11959 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
11960 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
11961 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
11962 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
11963 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
11964 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
11965 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
11966 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
11967 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
11968 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
11969 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
11970 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
11971 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
11972 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
11973 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
11974 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
11975 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
11976 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
11977 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
11978 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
11979 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
11980 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
11981 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
11982 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
11983 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
11984 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
11985 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
11986 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
11987 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
11988 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
11989 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
11990 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
11991 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
11992 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
11993 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
11994 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
11995 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
11996 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
11997 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
11998 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
11999 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
12000 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
12001 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
12002 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
12003 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
12004 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
12005 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
12006 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
12007 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
12008 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
12009 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
12010 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
12011 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
12012 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
12013 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
12014 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
12015 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
12016 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
12017 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
12018 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
12019 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
12020 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
12021 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
12022 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
12023 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
12024 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
12025 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
12026 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
12027 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
12028 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
12029 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
12030 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
12031 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
12032 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
12033 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
12034 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
12035 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
12036 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
12037 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
12038 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
12039 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
12040 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
12041 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
12042 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
12043 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
12044 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
12045 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
12046 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
12047 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
12048 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
12049 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
12050 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
12051 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
12052 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
12053 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
12054 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
12055 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
12056 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
12057 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
12058 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
12059 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
12060 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
12061 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
12062 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
12063 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
12064 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
12065 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
12066 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
12067 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
12068 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
12069 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
12070 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
12071 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
12072 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
12073 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
12074 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
12075 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
12076 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
12077 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
12078 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
12079 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
12080 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
12081 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
12082 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
12083 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
12084 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
12085 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
12086 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
12087 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
12088 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
12089 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
12090 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
12091 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
12092 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
12093 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
12094 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
12095 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
12096 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
12097 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
12098 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
12099 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
12100 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
12101 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
12102 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
12103 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
12104 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
12105 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
12106 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
12107 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
12108 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
12109 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
12110 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
12111 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
12112 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
12113 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
12114 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
12115 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
12116 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
12117 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
12118 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
12119 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
12120 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
12121 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
12122 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
12123 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
12124 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
12125 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
12126 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
12127 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
12128 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
12129 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
12130 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
12131 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
12132 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
12133 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
12134 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
12135 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
12136 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
12137 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
12138 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
12139 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
12140 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
12141 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
12142 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
12143 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
12144 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
12145 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
12146 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
12147 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
12148 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
12149 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
12150 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
12151 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
12152 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
12153 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
12154 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
12155 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
12156 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
12157 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
12158 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
12159 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
12160 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
12161 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
12162 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
12163 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
12164 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
12165 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
12166 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
12167 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
12168 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
12169 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
12170 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
12171 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
12172 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
12173 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
12174 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
12175 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
12176 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
12177 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
12178 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
12179 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
12180 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
12181 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
12182 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
12183 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
12184 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
12185 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
12186 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
12187 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
12188 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
12189 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
12190 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
12191 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
12192 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
12193 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
12194 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
12195 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
12196 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
12197 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
12198 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
12199 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
12200 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
12201 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
12202 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
12203 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
12204 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
12205 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
12206 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
12207 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
12208 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
12209 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
12210 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
12211 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
12212 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
12213 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
12214 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
12215 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
12216 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
12217 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
12218 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
12219 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
12220 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
12221 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
12222 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
12223 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
12224 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
12225 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
12226 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
12227 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
12228 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
12229 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
12230 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
12231 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
12232 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
12233 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
12234 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
12235 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
12236 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
12237 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
12238 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
12239 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
12240 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
12241 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
12242 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
12243 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
12244 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
12245 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
12246 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
12247 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
12248 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
12249 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
12250 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
12251 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
12252 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
12253 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
12254 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
12255 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
12256 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
12257 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
12258 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
12259 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
12260 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
12261 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
12262 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
12263 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
12264 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
12265 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
12266 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
12267 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
12269 2014-10-28 Jakub Jelinek <jakub@redhat.com>
12271 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
12272 type for the left shift in CASE_CONVERT case.
12274 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
12276 * asan.h (asan_intercepted_p): New function.
12277 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
12278 hash value construction. Call iterative_hash_expr instead of explicit
12280 (asan_mem_ref_hasher::equal): Change condition.
12281 (has_mem_ref_been_instrumented): Likewise.
12282 (update_mem_ref_hash_table): Likewise.
12283 (maybe_update_mem_ref_hash_table): New function.
12284 (instrument_strlen_call): Removed.
12285 (get_mem_refs_of_builtin_call): Handle new parameter.
12286 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
12287 of instrument_mem_region_access if intercepted_p is true.
12288 (instrument_mem_region_access): Instrument only base with len instead of
12289 base and end with 1.
12290 (build_check_stmt): Remove start_instrumented and end_instrumented
12292 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
12293 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
12294 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
12295 * builtins.c (expand_builtin): Include asan.h. Don't expand
12296 string/memory builtin functions that have interceptors if ASan is
12299 2014-10-28 Richard Biener <rguenther@suse.de>
12301 PR middle-end/63665
12302 * fold-const.c (fold_comparison): Properly guard simplifying
12303 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
12305 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
12307 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
12308 * fold-const.c (const_binop): Likewise.
12309 * cfgexpand.c (expand_debug_expr): Likewise.
12310 * tree-inline.c (estimate_operator_cost): Likewise.
12311 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12312 * optabs.c (optab_for_tree_code): Likewise.
12313 (expand_vec_shift_expr): Likewise, update comment.
12314 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
12315 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12316 * optabs.def: Remove vec_shl_optab.
12317 * doc/md.texi: Remove references to vec_shr_m.
12319 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12321 * asan.c (report_error_func): Add noabort path.
12322 (check_func): Ditto. Formatting.
12323 (asan_expand_check_ifn): Handle noabort path.
12324 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
12326 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
12327 * opts.c (finish_options): Reword comment.
12328 * sanitizer.def: Add noabort ASan builtins.
12330 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12332 * asan.c (set_asan_shadow_offset): New function.
12333 (asan_shadow_offset): Likewise.
12334 (asan_emit_stack_protection): Call asan_shadow_offset.
12335 (build_shadow_mem_access): Likewise.
12336 * asan.h (set_asan_shadow_offset): Declare.
12337 * common.opt (fasan-shadow-offset): New option.
12338 (frandom-seed): Fixed parameter name.
12339 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
12340 (frandom-seed): Fixed parameter name.
12341 * opts-global.c (handle_common_deferred_options): Handle
12342 -fasan-shadow-offset.
12343 * opts.c (common_handle_option): Likewise.
12345 2014-10-27 Jiong Wang <jiong.wang@arm.com>
12348 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
12350 2014-10-27 DJ Delorie <dj@redhat.com>
12352 * tree.c (build_common_tree_nodes): Don't even store the
12353 __int128 types if they're not supported.
12355 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12357 * config/i386/i386.c (ix86_loop_memcount): Delete.
12358 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
12360 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12362 * config/i386/i386.c (find_constant_1): Delete.
12363 (find_constant): Use FOR_EACH_SUBRTX.
12365 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12367 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
12368 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
12370 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12372 * config/i386/i386.c: Include rtl-iter.h
12373 (ix86_check_avx256_register): Take a const_rtx and return a bool.
12374 (ix86_check_avx256_stores): Update call accordingly.
12375 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12376 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
12378 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12380 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
12381 Take an rtx and return a bool.
12382 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
12383 Use FOR_EACH_SUBRTX_VAR.
12384 * config/alpha/predicates.md (some_small_symbolic_operand): Update
12387 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12389 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
12391 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
12392 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
12394 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12396 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
12397 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
12399 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12401 * config/alpha/alpha.c: Include rtl-iter.h.
12402 (split_small_symbolic_operand_1): Delete.
12403 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
12405 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12407 * config/s390/s390.c: Include rtl-iter.h.
12408 (check_dpu): Delete.
12409 (s390_loop_unroll_adjust): Only iterate over patterns.
12410 Use FOR_EACH_SUBRTX.
12412 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12414 * config/spu/spu.c: Include rtl-iter.h
12415 (ea_symbol_ref): Replace with...
12416 (ea_symbol_ref_p): ...this new function.
12417 (spu_legitimate_address_p): Update call accordingly.
12418 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
12420 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
12421 Tom Tromey <tromey@redhat.com>
12423 * aclocal.m4, configure: Rebuild.
12424 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
12425 * configure.ac: Use GCC_ENABLE_PLUGINS.
12426 * stor-layout.c (finish_bitfield_layout): Now public. Change
12427 argument type to 'tree'.
12428 (finish_record_layout): Update.
12429 * stor-layout.h (finish_bitfield_layout): Declare.
12431 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12433 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
12434 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12435 Restore, enable for bigendian, update to use __builtin..._scal...
12437 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12439 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
12440 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
12441 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
12442 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
12444 * config/aarch64/aarch64-simd.md
12445 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
12446 (reduc_<maxmin_uns>_internal<mode>): ...this.
12447 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
12448 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
12450 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
12451 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
12452 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
12454 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
12455 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
12456 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
12457 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
12458 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
12459 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
12460 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
12461 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
12463 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12465 * config/aarch64/aarch64-simd-builtins.def
12466 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
12468 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
12470 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
12471 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
12473 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
12474 (aarch64_reduc_plus_internal<mode>): ...this.
12476 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
12477 (aarch64_reduc_plus_internalv2si): ...this.
12479 (reduc_splus_<mode>/V2F): Rename to...
12480 (aarch64_reduc_plus_internal<mode>): ...this.
12482 * config/aarch64/iterators.md
12483 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
12484 (UNSPEC_ADDV): New.
12485 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
12487 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
12488 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
12489 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
12490 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
12491 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
12493 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12495 PR tree-optimization/61114
12496 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
12497 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
12499 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
12500 back to old reduc_... + BIT_FIELD_REF only if not.
12502 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
12503 return the reduce-to-scalar (reduc_..._scal) optab.
12504 (scalar_reduc_to_vector): New.
12506 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
12507 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
12510 * optabs.h (scalar_reduc_to_vector): Declare.
12512 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
12513 to either scalar or vector.
12515 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12517 PR tree-optimization/61114
12518 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
12519 extract_bit_field around optab result.
12521 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
12524 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
12525 for REDUC_{MIN,MAX,PLUS}_EXPR.
12527 * tree-vect-loop.c (vect_analyze_loop): Update comment.
12528 (vect_create_epilog_for_reduction): For direct vector reduction, use
12529 result of tree code directly without extract_bit_field.
12531 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
12534 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
12536 * basic-block.h: Remove all includes.
12537 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
12538 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
12539 * Makefile.in (GTFILES): Add cfg.h to list.
12540 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
12541 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
12542 * genconditions.c (write_header): Add predict.h and basic-block.h to
12544 * genemit.c (main): Ditto.
12545 * genpreds.c (write_insn_preds_c): Ditto.
12546 * genrecog.c (write_header): Ditto.
12547 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
12548 to list of includes.
12549 * alias.c: Adjust include files.
12551 * auto-inc-dec.c: Ditto.
12552 * auto-profile.c: Ditto.
12553 * bb-reorder.c: Ditto.
12554 * bt-load.c: Ditto.
12555 * builtins.c: Ditto.
12556 * caller-save.c: Ditto.
12559 * cfganal.c: Ditto.
12560 * cfgbuild.c: Ditto.
12561 * cfgcleanup.c: Ditto.
12562 * cfgexpand.c: Ditto.
12563 * cfghooks.c: Ditto.
12564 * cfgloop.c: Ditto.
12565 * cfgloopanal.c: Ditto.
12566 * cfgloopmanip.c: Ditto.
12568 * cgraphbuild.c: Ditto.
12569 * cgraphclones.c: Ditto.
12570 * cgraphunit.c: Ditto.
12571 * combine-stack-adj.c: Ditto.
12572 * combine.c: Ditto.
12573 * compare-elim.c: Ditto.
12574 * coverage.c: Ditto.
12578 * data-streamer-in.c: Ditto.
12579 * data-streamer-out.c: Ditto.
12580 * data-streamer.c: Ditto.
12584 * df-core.c: Ditto.
12585 * df-problems.c: Ditto.
12586 * df-scan.c: Ditto.
12589 * dominance.c: Ditto.
12590 * domwalk.c: Ditto.
12592 * dwarf2cfi.c: Ditto.
12593 * emit-rtl.c: Ditto.
12594 * et-forest.c: Ditto.
12599 * fold-const.c: Ditto.
12600 * function.c: Ditto.
12602 * gcc-plugin.h: Ditto.
12604 * generic-match-head.c: Ditto.
12605 * ggc-page.c: Ditto.
12606 * gimple-builder.c: Ditto.
12607 * gimple-expr.c: Ditto.
12608 * gimple-fold.c: Ditto.
12609 * gimple-iterator.c: Ditto.
12610 * gimple-low.c: Ditto.
12611 * gimple-match-head.c: Ditto.
12612 * gimple-pretty-print.c: Ditto.
12613 * gimple-ssa-isolate-paths.c: Ditto.
12614 * gimple-ssa-strength-reduction.c: Ditto.
12615 * gimple-streamer-in.c: Ditto.
12616 * gimple-streamer-out.c: Ditto.
12617 * gimple-streamer.h: Ditto.
12618 * gimple-walk.c: Ditto.
12620 * gimplify-me.c: Ditto.
12621 * gimplify.c: Ditto.
12623 * graphite-blocking.c: Ditto.
12624 * graphite-clast-to-gimple.c: Ditto.
12625 * graphite-dependences.c: Ditto.
12626 * graphite-interchange.c: Ditto.
12627 * graphite-isl-ast-to-gimple.c: Ditto.
12628 * graphite-optimize-isl.c: Ditto.
12629 * graphite-poly.c: Ditto.
12630 * graphite-scop-detection.c: Ditto.
12631 * graphite-sese-to-poly.c: Ditto.
12632 * graphite.c: Ditto.
12633 * haifa-sched.c: Ditto.
12634 * hw-doloop.c: Ditto.
12636 * init-regs.c: Ditto.
12637 * internal-fn.c: Ditto.
12639 * ipa-devirt.c: Ditto.
12640 * ipa-icf-gimple.c: Ditto.
12641 * ipa-icf.c: Ditto.
12642 * ipa-inline-analysis.c: Ditto.
12643 * ipa-inline.c: Ditto.
12644 * ipa-polymorphic-call.c: Ditto.
12645 * ipa-profile.c: Ditto.
12646 * ipa-prop.c: Ditto.
12647 * ipa-pure-const.c: Ditto.
12648 * ipa-reference.c: Ditto.
12649 * ipa-split.c: Ditto.
12650 * ipa-utils.c: Ditto.
12652 * ira-build.c: Ditto.
12653 * ira-color.c: Ditto.
12654 * ira-conflicts.c: Ditto.
12655 * ira-costs.c: Ditto.
12656 * ira-emit.c: Ditto.
12657 * ira-lives.c: Ditto.
12661 * loop-doloop.c: Ditto.
12662 * loop-init.c: Ditto.
12663 * loop-invariant.c: Ditto.
12664 * loop-iv.c: Ditto.
12665 * loop-unroll.c: Ditto.
12666 * lower-subreg.c: Ditto.
12667 * lra-assigns.c: Ditto.
12668 * lra-coalesce.c: Ditto.
12669 * lra-constraints.c: Ditto.
12670 * lra-eliminations.c: Ditto.
12671 * lra-lives.c: Ditto.
12672 * lra-spills.c: Ditto.
12674 * lto-cgraph.c: Ditto.
12675 * lto-compress.c: Ditto.
12676 * lto-opts.c: Ditto.
12677 * lto-section-in.c: Ditto.
12678 * lto-section-out.c: Ditto.
12679 * lto-streamer-in.c: Ditto.
12680 * lto-streamer-out.c: Ditto.
12681 * lto-streamer.c: Ditto.
12683 * mode-switching.c: Ditto.
12684 * modulo-sched.c: Ditto.
12685 * omp-low.c: Ditto.
12687 * opts-global.c: Ditto.
12689 * postreload-gcse.c: Ditto.
12690 * postreload.c: Ditto.
12691 * predict.c: Ditto.
12692 * print-rtl.c: Ditto.
12693 * profile.c: Ditto.
12696 * reg-stack.c: Ditto.
12697 * regcprop.c: Ditto.
12698 * regcprop.h: Ditto.
12699 * reginfo.c: Ditto.
12700 * regrename.c: Ditto.
12701 * regstat.c: Ditto.
12703 * reload1.c: Ditto.
12705 * resource.c: Ditto.
12706 * rtlanal.c: Ditto.
12707 * sched-deps.c: Ditto.
12708 * sched-ebb.c: Ditto.
12709 * sched-int.h: Ditto.
12710 * sched-rgn.c: Ditto.
12711 * sched-vis.c: Ditto.
12712 * sel-sched-dump.c: Ditto.
12713 * sel-sched-ir.c: Ditto.
12714 * sel-sched-ir.h: Ditto.
12715 * sel-sched.c: Ditto.
12717 * shrink-wrap.c: Ditto.
12718 * stack-ptr-mod.c: Ditto.
12720 * store-motion.c: Ditto.
12724 * trans-mem.c: Ditto.
12725 * tree-affine.c: Ditto.
12726 * tree-call-cdce.c: Ditto.
12727 * tree-cfg.c: Ditto.
12728 * tree-cfgcleanup.c: Ditto.
12729 * tree-chrec.c: Ditto.
12730 * tree-complex.c: Ditto.
12731 * tree-data-ref.c: Ditto.
12732 * tree-dfa.c: Ditto.
12733 * tree-eh.c: Ditto.
12734 * tree-emutls.c: Ditto.
12735 * tree-if-conv.c: Ditto.
12736 * tree-inline.c: Ditto.
12737 * tree-into-ssa.c: Ditto.
12738 * tree-loop-distribution.c: Ditto.
12739 * tree-nested.c: Ditto.
12740 * tree-nrv.c: Ditto.
12741 * tree-object-size.c: Ditto.
12742 * tree-outof-ssa.c: Ditto.
12743 * tree-parloops.c: Ditto.
12744 * tree-phinodes.c: Ditto.
12745 * tree-predcom.c: Ditto.
12746 * tree-pretty-print.c: Ditto.
12747 * tree-profile.c: Ditto.
12748 * tree-scalar-evolution.c: Ditto.
12749 * tree-sra.c: Ditto.
12750 * tree-ssa-address.c: Ditto.
12751 * tree-ssa-alias.c: Ditto.
12752 * tree-ssa-ccp.c: Ditto.
12753 * tree-ssa-coalesce.c: Ditto.
12754 * tree-ssa-copy.c: Ditto.
12755 * tree-ssa-copyrename.c: Ditto.
12756 * tree-ssa-dce.c: Ditto.
12757 * tree-ssa-dom.c: Ditto.
12758 * tree-ssa-dse.c: Ditto.
12759 * tree-ssa-forwprop.c: Ditto.
12760 * tree-ssa-ifcombine.c: Ditto.
12761 * tree-ssa-live.c: Ditto.
12762 * tree-ssa-loop-ch.c: Ditto.
12763 * tree-ssa-loop-im.c: Ditto.
12764 * tree-ssa-loop-ivcanon.c: Ditto.
12765 * tree-ssa-loop-ivopts.c: Ditto.
12766 * tree-ssa-loop-manip.c: Ditto.
12767 * tree-ssa-loop-niter.c: Ditto.
12768 * tree-ssa-loop-prefetch.c: Ditto.
12769 * tree-ssa-loop-unswitch.c: Ditto.
12770 * tree-ssa-loop.c: Ditto.
12771 * tree-ssa-math-opts.c: Ditto.
12772 * tree-ssa-operands.c: Ditto.
12773 * tree-ssa-phiopt.c: Ditto.
12774 * tree-ssa-phiprop.c: Ditto.
12775 * tree-ssa-pre.c: Ditto.
12776 * tree-ssa-propagate.c: Ditto.
12777 * tree-ssa-reassoc.c: Ditto.
12778 * tree-ssa-sccvn.c: Ditto.
12779 * tree-ssa-sink.c: Ditto.
12780 * tree-ssa-strlen.c: Ditto.
12781 * tree-ssa-structalias.c: Ditto.
12782 * tree-ssa-tail-merge.c: Ditto.
12783 * tree-ssa-ter.c: Ditto.
12784 * tree-ssa-threadedge.c: Ditto.
12785 * tree-ssa-threadupdate.c: Ditto.
12786 * tree-ssa-uncprop.c: Ditto.
12787 * tree-ssa-uninit.c: Ditto.
12788 * tree-ssa.c: Ditto.
12789 * tree-ssanames.c: Ditto.
12790 * tree-stdarg.c: Ditto.
12791 * tree-streamer-in.c: Ditto.
12792 * tree-streamer-out.c: Ditto.
12793 * tree-streamer.c: Ditto.
12794 * tree-switch-conversion.c: Ditto.
12795 * tree-tailcall.c: Ditto.
12796 * tree-vect-data-refs.c: Ditto.
12797 * tree-vect-generic.c: Ditto.
12798 * tree-vect-loop-manip.c: Ditto.
12799 * tree-vect-loop.c: Ditto.
12800 * tree-vect-patterns.c: Ditto.
12801 * tree-vect-slp.c: Ditto.
12802 * tree-vect-stmts.c: Ditto.
12803 * tree-vectorizer.c: Ditto.
12804 * tree-vrp.c: Ditto.
12808 * valtrack.c: Ditto.
12809 * valtrack.h: Ditto.
12810 * value-prof.c: Ditto.
12811 * var-tracking.c: Ditto.
12813 * varpool.c: Ditto.
12814 * vtable-verify.c: Ditto.
12816 * config/aarch64/aarch64-builtins.c: Ditto.
12817 * config/aarch64/aarch64.c: Ditto.
12818 * config/alpha/alpha.c: Ditto.
12819 * config/arc/arc.c: Ditto.
12820 * config/arm/arm.c: Ditto.
12821 * config/avr/avr.c: Ditto.
12822 * config/bfin/bfin.c: Ditto.
12823 * config/c6x/c6x.c: Ditto.
12824 * config/cr16/cr16.c: Ditto.
12825 * config/cris/cris.c: Ditto.
12826 * config/darwin-c.c: Ditto.
12827 * config/darwin.c: Ditto.
12828 * config/epiphany/epiphany.c: Ditto.
12829 * config/epiphany/mode-switch-use.c: Ditto.
12830 * config/epiphany/resolve-sw-modes.c: Ditto.
12831 * config/fr30/fr30.c: Ditto.
12832 * config/frv/frv.c: Ditto.
12833 * config/h8300/h8300.c: Ditto.
12834 * config/i386/i386.c: Ditto.
12835 * config/i386/winnt.c: Ditto.
12836 * config/ia64/ia64.c: Ditto.
12837 * config/iq2000/iq2000.c: Ditto.
12838 * config/lm32/lm32.c: Ditto.
12839 * config/m32c/m32c.c: Ditto.
12840 * config/m32r/m32r.c: Ditto.
12841 * config/m68k/m68k.c: Ditto.
12842 * config/mcore/mcore.c: Ditto.
12843 * config/mep/mep.c: Ditto.
12844 * config/microblaze/microblaze.c: Ditto.
12845 * config/mips/mips.c: Ditto.
12846 * config/mmix/mmix.c: Ditto.
12847 * config/mn10300/mn10300.c: Ditto.
12848 * config/moxie/moxie.c: Ditto.
12849 * config/msp430/msp430.c: Ditto.
12850 * config/nds32/nds32-cost.c: Ditto.
12851 * config/nds32/nds32-fp-as-gp.c: Ditto.
12852 * config/nds32/nds32-intrinsic.c: Ditto.
12853 * config/nds32/nds32-isr.c: Ditto.
12854 * config/nds32/nds32-md-auxiliary.c: Ditto.
12855 * config/nds32/nds32-memory-manipulation.c: Ditto.
12856 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
12857 * config/nds32/nds32-predicates.c: Ditto.
12858 * config/nds32/nds32.c: Ditto.
12859 * config/nios2/nios2.c: Ditto.
12860 * config/pa/pa.c: Ditto.
12861 * config/pdp11/pdp11.c: Ditto.
12862 * config/rl78/rl78.c: Ditto.
12863 * config/rs6000/rs6000.c: Ditto.
12864 * config/rx/rx.c: Ditto.
12865 * config/s390/s390.c: Ditto.
12866 * config/sh/sh-mem.cc: Ditto.
12867 * config/sh/sh.c: Ditto.
12868 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
12869 * config/sh/sh_treg_combine.cc: Ditto.
12870 * config/sparc/sparc.c: Ditto.
12871 * config/spu/spu.c: Ditto.
12872 * config/stormy16/stormy16.c: Ditto.
12873 * config/tilegx/tilegx.c: Ditto.
12874 * config/tilepro/tilepro.c: Ditto.
12875 * config/v850/v850.c: Ditto.
12876 * config/vax/vax.c: Ditto.
12877 * config/xtensa/xtensa.c: Ditto.
12879 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12881 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
12882 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12883 Remove using preprocessor directives.
12885 2014-10-27 Richard Biener <rguenther@suse.de>
12887 * match.pd (0 % X): Properly use the iterator iterating over
12888 all modulo operators.
12891 2014-10-27 Richard Biener <rguenther@suse.de>
12893 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
12894 (lattice): New global.
12895 (fwprop_ssa_val): New function.
12896 (fold_all_stmts): Likewise.
12897 (pass_forwprop::execute): Finally fold all stmts.
12899 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12902 * doc/invoke.texi (fmessage-length): Update text to match reality.
12904 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12906 * config/microblaze/microblaze.c: Include rtl-iter.h.
12907 (microblaze_tls_referenced_p_1): Delete.
12908 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
12910 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12912 * config/mips/mips.c (mips_at_reg_p): Delete.
12913 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
12915 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12917 * config/mips/mips.c (mips_record_lo_sum): Replace with...
12918 (mips_record_lo_sums): ...this new function.
12919 (mips_reorg_process_insns): Update accordingly.
12921 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12923 * config/mips/mips.c (mips_sim_insn): Update comment.
12924 (mips_sim_wait_regs_2): Delete.
12925 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
12927 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12929 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
12930 and return a bool. Iterate over all subrtxes here.
12931 (r10k_needs_protection_p): Update accordingly.
12933 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12935 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
12936 rather than an rtx pointer. Change type of insn from "void *"
12937 to its real type. Return bool rather than int. Iterate over
12939 (r10k_needs_protection_p_store): Update accordingly.
12940 (r10k_needs_protection_p): Likewise.
12942 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12944 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
12945 (mips16_rewrite_pool_refs): Take the insn and constant pool as
12946 parameters. Iterate over the instruction's pattern and return void.
12947 (mips16_lay_out_constants): Update accordingly.
12949 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12951 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
12952 (mips_refers_to_kernel_reg_p): ...this new function.
12953 (mips_expand_prologue): Update accordingly.
12955 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12957 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
12958 as a parameter instead of the containing MEM. Iterate over all
12959 subrtxes. Don't return a value.
12960 (mips_rewrite_small_data): Update call accordingly.
12962 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12964 * config/mips/mips.c: Include rtl-iter.h.
12965 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
12966 Take the context as a parameter instead of the containing MEM.
12967 Iterate over all subrtxes.
12968 (mips_small_data_pattern_p): Update call accordingly.
12970 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12972 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
12973 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
12975 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12977 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
12978 return a bool. Replace "void *" with specific type. Iterate
12980 (mep_store_data_bypass_1): Update calls accordingly.
12982 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12984 * config/mep/mep.c: Include rtl-iter.h.
12985 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
12986 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
12988 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12990 * config/xtensa/xtensa.c: Include rtl-iter.h.
12991 (xtensa_tls_referenced_p_1): Delete.
12992 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
12994 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12996 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
12997 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
12999 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13001 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
13002 rtx as argument and return the number of changes.
13003 * config/sh/sh.c: Include rtl-iter.h.
13004 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
13005 over all subrtxes. Return the number of changes made.
13006 * config/sh/sh.md: Update caller accordingly.
13008 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13010 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
13011 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
13013 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13015 * config/m68k/m68k.c: Include rtl-iter.h.
13016 (m68k_final_prescan_insn_1): Delete.
13017 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
13019 2014-10-25 Jakub Jelinek <jakub@redhat.com>
13021 PR tree-optimization/63641
13022 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
13023 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
13025 2014-10-25 Alan Modra <amodra@gmail.com>
13027 PR rtl-optimization/63615
13028 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
13029 decomposing PLUS or MINUS if operands are not placed adjacent
13030 in the "ops" array.
13032 2014-10-25 Joseph Myers <joseph@codesourcery.com>
13034 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
13035 not allow e500 double in registers not satisyfing
13038 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
13040 * dwarf2out.c (declare_in_namespace): Only emit external
13041 declarations in the local scope once.
13043 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
13045 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
13047 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13049 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
13050 update uses to use new macro arguments.
13051 (__LD3_LANE_FUNC): Likewise.
13052 (__LD4_LANE_FUNC): Likewise.
13054 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13056 * config/aarch64/aarch64-builtins.c
13057 (aarch64_types_loadstruct_lane_qualifiers): Define.
13058 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
13059 ld4_lane): New builtins.
13060 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
13062 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13063 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13064 (aarch64_ld2_lane<mode>): New expand.
13065 (aarch64_ld3_lane<mode>): Likewise.
13066 (aarch64_ld4_lane<mode>): Likewise.
13067 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13068 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
13070 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
13072 * avr-protos.h (avr_out_sign_extend): New.
13073 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
13074 (avr_out_sign_extend): New function.
13075 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
13076 (extendhisi2, extendpsisi2): Use it.
13077 (adjust_len) [sext]: New.
13079 2014-10-24 Martin Liska <mliska@suse.cz>
13081 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
13084 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13086 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
13087 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13088 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
13089 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13091 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13093 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
13095 * config/aarch64/aarch64.c (is_mem_p): Delete.
13096 (is_memory_op): Rename to...
13097 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
13098 (dep_between_memop_and_curr): Assert that the input is a SET.
13099 (aarch64_madd_needs_nop): Add comment. Do not call
13100 dep_between_memop_and_curr on NULL body.
13101 (aarch64_final_prescan_insn): Add comment.
13102 Include rtl-iter.h.
13104 2014-10-24 Richard Biener <rguenther@suse.de>
13106 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
13107 to genmatch BUILD_LIBS instead.
13109 2014-10-24 Richard Biener <rguenther@suse.de>
13111 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
13112 and build_call_expr_loc.
13113 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
13114 non_lvalue_loc to build it for GENERIC.
13115 (decision_tree::gen_generic): Add location argument to
13116 generic_simplify prototype.
13117 (capture_info): New class.
13118 (capture_info::capture_info): New constructor.
13119 (capture_info::walk_match): New method.
13120 (capture_info::walk_result): New method.
13121 (capture_info::walk_c_expr): New method.
13122 (dt_simplify::gen): Handle preserving side-effects for
13123 GENERIC code generation.
13124 (decision_tree::gen_generic): Do not reject operands
13125 with TREE_SIDE_EFFECTS.
13126 * generic-match.h: New file.
13127 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
13128 * match.pd: Add some constant folding patterns from fold-const.c.
13129 * fold-const.c: Include generic-match.h.
13130 (fold_unary_loc): Dispatch to generic_simplify.
13131 (fold_ternary_loc): Likewise.
13132 (fold_binary_loc): Likewise. Remove patterns now implemented
13133 by generic_simplify.
13134 * gimple-fold.c (replace_stmt_with_simplification): New function.
13135 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
13136 (no_follow_ssa_edges): New function.
13137 (fold_stmt): New overload with valueization hook. Use
13138 no_follow_ssa_edges for the overload without hook.
13139 (fold_stmt_inplace): Likewise.
13140 * gimple-fold.h (no_follow_ssa_edges): Declare.
13142 2014-10-24 Felix Yang <felix.yang@huawei.com>
13143 Jiji Jiang <jiangjiji@huawei.com>
13146 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
13147 (__LD3R_FUNC): Ditto.
13148 (__LD4R_FUNC): Ditto.
13149 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
13150 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
13151 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
13152 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
13153 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
13154 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
13155 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
13156 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
13157 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
13158 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
13159 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
13160 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
13161 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
13162 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
13163 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
13164 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
13165 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
13166 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
13167 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13168 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
13169 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
13171 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
13172 (aarch64_simd_ld3r<mode>): Likewise.
13173 (aarch64_simd_ld4r<mode>): Likewise.
13174 (aarch64_ld2r<mode>): New expand.
13175 (aarch64_ld3r<mode>): Likewise.
13176 (aarch64_ld4r<mode>): Likewise.
13178 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13180 * rtlanal.c (get_base_term): Handle SCRATCH.
13182 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13184 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
13187 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13189 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
13190 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
13191 (max_issue, choose_ready, sched_init): Update.
13193 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13195 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
13196 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
13197 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
13198 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
13199 (print_rank_for_schedule_stats): Print out elements of ready list that
13200 ended up on their respective places due to each of the sorting
13202 (ready_sort): Update.
13203 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
13204 (schedule_block): Update.
13206 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13208 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
13209 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
13210 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
13211 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
13212 (model_start_schedule): Update.
13213 (sched_pressure_start_bb): New static function. Calculate
13214 sched_class_regs_num.
13215 (schedule_block): Use it.
13216 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
13218 2014-10-24 Richard Biener <rguenther@suse.de>
13220 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
13221 host library and make sure to pull in the required libintl
13222 and libiconv dependencies.
13224 2014-10-24 Richard Biener <rguenther@suse.de>
13226 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
13228 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13231 * collect2.c (main): Filter out -fno-lto.
13233 2014-10-24 Martin Liska <mliska@suse.cz>
13235 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13236 division by zero in dumps.
13237 (sem_item_optimizer::merge_classes): Ditto.
13239 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
13241 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
13243 2014-10-23 Ian Lance Taylor <iant@google.com>
13245 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
13247 2014-10-23 Ian Lance Taylor <iant@google.com>
13249 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
13251 2014-10-23 Jakub Jelinek <jakub@redhat.com>
13254 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
13255 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
13256 instead of only handling autoinc in dest if it is a MEM.
13257 (vt_stack_adjustments): Fix up formatting.
13259 2014-10-23 DJ Delorie <dj@redhat.com>
13261 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
13262 independend of -mlarge.
13263 * config/msp430/constraints.md (Ys): Update comment.
13265 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
13269 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
13270 while it is pseudo.
13271 * dse.c (deletable_insn_p): Likewise.
13273 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
13275 * config/avr/avr.c: Fix GNU coding rules and typos.
13276 * config/avr/avr.h: Dito.
13277 * config/avr/avr-c.c: Dito.
13278 * config/avr/avr.md: Dito.
13280 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13282 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
13284 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
13286 (define_expand "abs<mode>2"): Ditto.
13288 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13290 * tree-core.h (tree_var_decl): Extend `function_code' field
13291 by one bit, move `regdecl_flag' field to ...
13292 (tree_decl_with_vis): Here.
13293 * tree.h (DECL_STATIC_CHAIN): Update struct name.
13295 2014-10-23 Richard Biener <rguenther@suse.de>
13297 * Makefile.in (BUILD_CPPLIB): Add.
13298 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
13301 2014-10-23 Richard Biener <rguenther@suse.de>
13303 * fold-const.c (fold_binary_loc): Preserve side-effects of
13304 X - X when simplifying to 0.
13305 * stor-layout.c (finish_bitfield_representative): Strip
13306 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
13308 2014-10-22 Richard Biener <rguenther@suse.de>
13309 Tobias Burnus <burnus@net-b.de>
13312 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
13314 2014-10-22 Dehao Chen <dehao@google.com>
13316 * auto-profile.c: Change order of header files.
13318 2014-10-22 Guozhi Wei <carrot@google.com>
13320 PR tree-optimization/63530
13321 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
13322 pointer alignment according to DR_MISALIGNMENT.
13324 2014-10-22 David Malcolm <dmalcolm@redhat.com>
13326 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
13328 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
13330 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
13331 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
13332 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
13333 * dominance.h: New. Add prototypes for dominance.c.
13334 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
13335 * cfghooks.h: (struct profile_record) Relocate here.
13336 Relocate 2 prototypes from basic-block.h.
13337 * basic-block.h: Move prototypes and struct to new header files.
13338 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
13339 * rtl.h: Move a few prototypes to new header files.
13340 * cfgcleanup.c (merge_memattrs): Make static.
13341 * genopinit.c (main): Add predict.h to list of includes.
13342 * predict.h: Update prototype list to match predict.c.
13343 * predict.c (maybe_hot_count_p): Export.
13344 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
13345 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
13346 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
13347 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
13348 * profile.h: Adjust prototypes.
13349 * ifcvt.h: New. Relocate struct ce_if_block here.
13350 * ifcvt.c: Include ifcvt.h.
13351 * config/frv/frv.c: Include ifcvt.h.
13352 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
13354 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13356 * lra.c (lra): Remove call to recog_init.
13357 * config/i386/i386.md (preferred_for_speed): New attribute
13358 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
13359 "enabled". Remove check for sched1.
13361 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13363 * recog.h (recog_data_d): Remove enabled_alternatives.
13364 * recog.c (extract_insn): Don't set it.
13365 * reload.c (find_reloads): Call get_enabled_alternatives.
13367 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13369 * recog.h (constrain_operands): Add an alternative_mask parameter.
13370 (constrain_operands_cached): Likewise.
13371 (get_preferred_alternatives): Declare new form.
13372 * recog.c (get_preferred_alternatives): New bb-taking instance.
13373 (constrain_operands): Take the set of available alternatives as
13375 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
13376 (extract_constrain_insn_cached): Update calls to constrain_operands.
13377 * caller-save.c (reg_save_code): Likewise.
13378 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13379 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13380 * ree.c (combine_reaching_defs): Likewise.
13381 * reload.c (can_reload_into): Likewise.
13382 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
13383 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
13384 (emit_insn_if_valid_for_reload): Likewise.
13385 * reorg.c (fill_slots_from_thread): Likewise.
13386 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
13387 * config/pa/pa.c (pa_can_combine_p): Likewise.
13388 * config/rl78/rl78.c (insn_ok_now): Likewise.
13389 * config/sh/sh.md (define_peephole2): Likewise.
13390 * final.c (final_scan_insn): Update call to constrain_operands_cached.
13392 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13394 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
13396 * genattr.c (main): Handle "preferred_for_size" and
13397 "preferred_for_speed" in the same way as "enabled".
13398 * recog.h (bool_attr): New enum.
13399 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
13400 (get_preferred_alternatives, check_bool_attrs): Declare.
13401 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
13402 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
13404 (get_enabled_alternatives): Use get_bool_attr_mask.
13405 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
13406 instead of recog_data.enabled_alternatives.
13407 * ira.c (ira_setup_alts): Likewise.
13408 * postreload.c (reload_cse_simplify_operands): Likewise.
13409 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13410 * ira-lives.c (preferred_alternatives): New variable.
13411 (process_bb_node_lives): Set it.
13412 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
13413 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
13414 of recog_data.enabled_alternatives.
13415 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
13416 to preferred_alternatives.
13417 * lra-constraints.c (process_alt_operands): Update accordingly.
13418 * lra.c (lra_set_insn_recog_data): Likewise.
13419 (lra_update_insn_recog_data): Assert check_bool_attrs.
13421 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13423 * recog.h (extract_constrain_insn): Declare.
13424 * recog.c (extract_constrain_insn): New function.
13425 * lra.c (check_rtl): Use it.
13426 * postreload.c (reload_cse_simplify_operands): Likewise.
13427 * reg-stack.c (check_asm_stack_operands): Likewise.
13428 (subst_asm_stack_regs): Likewise.
13429 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13430 * regrename.c (build_def_use): Likewise.
13431 * sel-sched.c (get_reg_class): Likewise.
13432 * config/arm/arm.c (note_invalid_constants): Likewise.
13433 * config/s390/predicates.md (execute_operation): Likewise.
13435 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13436 Yury Gribov <y.gribov@samsung.com>
13438 * common.opt (flag_sanitize_recover): New variable.
13439 (fsanitize-recover): Remove Var/Init, deprecate.
13440 (fsanitize-recover=): New option.
13441 * doc/invoke.texi (fsanitize-recover): Update docs.
13442 * opts.c (finish_options): Use opts->x_flag_sanitize
13443 instead of flag_sanitize. Prohibit -fsanitize-recover
13444 for anything besides UBSan. Formatting.
13445 (common_handle_option): Handle OPT_fsanitize_recover_
13446 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13447 instead of flag_sanitize.
13448 * asan.c (pass_sanopt::execute): Fix up formatting.
13449 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
13450 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
13451 instrument_bool_enum_load, ubsan_instrument_float_cast,
13452 instrument_nonnull_arg, instrument_nonnull_return): Check
13453 bits in flag_sanitize_recover bitmask instead of
13454 flag_sanitize_recover as bool flag.
13456 2014-10-22 Jiong Wang <jiong.wang@arm.com>
13458 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
13460 2014-10-22 Renlin Li <renlin.li@arm.com>
13462 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
13463 __ARM_FEATURE_IDIV__.
13465 2014-10-22 Richard Biener <rguenther@suse.de>
13467 * Makefile.in (s-match): Adjust dependencies to only catch
13470 2014-10-22 Richard Biener <rguenther@suse.de>
13471 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
13473 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
13474 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
13475 (gimple-match.c): Generate by triggering s-match.
13476 (generic-match.c): Likewise.
13477 (s-match): Rule to build gimple-match.c and generic-match.c
13478 by running the genmatch generator program.
13479 (build/hash-table.o): Dependencies to build hash-table.c for the host.
13480 (build/genmatch.o): Dependencies to build genmatch.
13481 (genprog): Add match.
13482 (build/genmatch): Likewise.
13483 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
13484 * generic-match-head.c: New file.
13485 * gimple-match-head.c: Likewise.
13486 * gimple-match.h: Likewise.
13487 * genmatch.c: Likewise.
13488 * match.pd: Likewise.
13489 * builtins.h (fold_builtin_n): Export.
13490 * builtins.c (fold_builtin_n): Likewise.
13491 * gimple-fold.h (gimple_build): Declare various overloads.
13492 (gimple_simplify): Likewise.
13493 (gimple_convert): Re-implement in terms of gimple_build.
13494 * gimple-fold.c (gimple_convert): Remove.
13495 (gimple_build): New functions.
13496 * doc/match-and-simplify.texi: New file.
13497 * doc/gccint.texi: Add menu item Match and Simplify and include
13498 match-and-simplify.texi.
13500 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13503 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
13504 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
13505 even for just TARGET_AVX2, not only for
13506 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
13507 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
13508 otherwise build it using concatenation of 256-bit
13510 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
13511 avx512 broadcast patterns.
13512 (vec_dup<mode>): Likewise. For avx2 use
13513 v<sseintprefix>broadcast<bcstscalarsuff> instead of
13514 vbroadcast<ssescalarmodesuffix>.
13515 (AVX2_VEC_DUP_MODE): New mode iterator.
13516 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
13517 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
13520 * config/i386/i386.c (ix86_pic_register_p): Also return
13521 true if x is a hard register with ORIGINAL_REGNO equal to
13522 pic_offset_table_rtx pseudo REGNO.
13523 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
13524 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
13526 2014-10-22 Alan Modra <amodra@gmail.com>
13528 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
13529 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
13530 (gcc_obstack_init): Use obstack_specify_allocation in place of
13532 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
13533 (regexp_representation): Likewise.
13534 * godump.c (go_output_type): Likewise.
13536 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
13538 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
13539 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
13540 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
13542 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13544 * doc/invoke.texi (pedantic-errors): Explain better.
13546 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
13547 Vidya Praveen <vidya.praveen@atmel.com>
13548 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
13549 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
13550 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
13552 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
13553 __MEMX for avrtiny.
13554 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
13555 (avr_nonconst_pointer_addrspace): Likewise.
13556 * config/avr/avr.h (AVR_HAVE_LPM): Define.
13558 Added AVRTINY architecture to avr target.
13559 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
13560 (base_arch_s): member added for AVRTINY architecture.
13561 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
13562 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
13563 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
13564 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
13565 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
13566 in callee saved register list.
13567 (avr_option_override): CCP address updated for AVRTINY.
13568 (avr_init_expanders): tmp and zero rtx initialized as per arch.
13569 Reset avr_have_dimode if AVRTINY.
13570 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
13571 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
13572 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
13573 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
13574 (expand_epilogue): Likewise.
13575 (avr_print_operand): Print CCP address in case of AVRTINY also.
13577 (function_arg_regno_p): Check different register list for arguments
13579 (init_cumulative_args): Check for AVRTINY to update number of argument
13581 (tiny_valid_direct_memory_access_range): New function. Return false if
13582 direct memory access range is not in accepted range for AVRTINY.
13583 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
13584 indirect load (with displacement) for AVRTINY.
13585 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
13586 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
13587 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
13588 indirect load (no displacement) for AVRTINY.
13589 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
13590 indirect load (with displacement) for AVRTINY.
13591 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
13592 indirect load for pre-decrement address.
13593 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
13594 functions. Update instruction length for AVRTINY.
13595 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
13597 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
13598 (out_movsi_r_mr): Likewise, for SImode.
13599 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
13600 indirect store (no displacement) for AVRTINY.
13601 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
13602 indirect store (with displacement) for AVRTINY.
13603 (out_movsi_mr_r): Emit out insn for IO address store. Update store
13604 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
13606 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
13607 indirect load (no displacement) for PSImode in AVRTINY.
13608 (avr_out_load_psi_reg_disp_tiny): New function to handle register
13609 indirect load (with displacement) for PSImode in AVRTINY.
13610 (avr_out_load_psi): Call PSImode register indirect load functions for
13611 AVRTINY. Update instruction length for AVRTINY.
13612 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
13613 indirect store (no displacement) for PSImode in AVRTINY.
13614 (avr_out_store_psi_reg_disp_tiny): New function to handle register
13615 indirect store (with displacement) for PSImode in AVRTINY.
13616 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
13617 register indirect store functions for AVRTINY.
13618 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
13619 register indirect store (with displacement) for AVRTINY.
13620 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
13621 register indirect store function for QImode in AVRTINY.
13622 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
13623 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
13624 indirect store (no displacement) for HImode in AVRTINY.
13625 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
13626 indirect store (with displacement) for HImode in AVRTINY.
13627 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
13628 indirect store for post-increment address in HImode.
13629 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
13630 register indirect store function for HImode in AVRTINY.
13631 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
13632 in case of AVRTINY.
13633 (order_regs_for_local_alloc): Updated register allocation order for
13635 (avr_conditional_register_usage): New function. It is a target hook
13636 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
13637 used registers list and register allocation order for AVRTINY.
13638 (avr_return_in_memory): Update return value size for AVRTINY.
13639 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
13640 for AVRTINY arch and tiny program memory base address.
13641 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
13642 (avr_texinfo): Added description for AVRTINY arch.
13643 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
13644 STATIC_CHAIN_REGNUM for AVRTINY.
13645 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
13646 * config/avr/avr.md: Added constants for tmp/ zero registers in
13647 AVRTINY. Attributes for AVRTINY added.
13648 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
13649 memory access range.
13650 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
13651 in AVRTINY memory access range.
13652 (*mov<mode>): Likewise for HImode and SImode.
13653 (*movsf): Likewise for SFmode.
13654 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
13656 * config/avr/avr-protos.h: Added function prototype for
13657 tiny_valid_direct_memory_access_range.
13658 * config/avr/avr-tables.opt: Regenerate.
13659 * gcc/config/avr/t-multilib: Regenerate.
13660 * doc/avr-mmcu.texi: Regenerate.
13662 2014-10-21 Andrew Pinski <apinski@cavium.com>
13664 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
13665 available option also.
13666 * config/aarch64/aarch64-cost-tables.h: New file.
13667 * config/aarch64/aarch64-cores.def (thunderx): New core.
13668 * config/aarch64/aarch64-tune.md: Regenerate.
13669 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
13670 of config/arm/aarch-cost-tables.h.
13671 (thunderx_regmove_cost): New variable.
13672 (thunderx_tunings): New variable.
13674 2014-10-21 Dehao Chen <dehao@google.com>
13676 * auto-profile.c: New file.
13677 * auto-profile.h: New file.
13678 * basic-block.h (maybe_hot_count_p): New export func.
13679 (add_working_set): New export func.
13680 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
13681 (GCOV_TAG_AFDO_FUNCTION): Likewise.
13682 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
13683 * opts.c (enable_fdo_optimizations): New func.
13684 (common_handle_option): Handle -fauto-profile flag.
13685 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
13686 (class pass_early_inline): Export early_inliner.
13687 (early_inliner): Likewise.
13688 (pass_early_inline::execute): Likewise.
13689 * ipa-inline.h (early_inliner): Likewise.
13690 * predict.c (maybe_hot_count_p): New export func.
13691 (counts_to_freqs): AutoFDO logic.
13692 (rebuild_frequencies): Likewise.
13693 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
13694 * profile.c (add_working_set): New func.
13695 * Makefile.in (auto-profile.o): New object file.
13696 * passes.def (pass_ipa_auto_profile): New pass.
13697 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
13698 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
13699 * toplev.c (compile_file): AutoFDO logic.
13700 * doc/invoke.texi (-fauto-profile): New doc.
13701 * coverage.c (coverage_init): AutoFDO logic.
13702 * common.opt (-fauto-profile): New flag.
13703 * timevar.def (TV_IPA_AUTOFDO): New tag.
13704 * value-prof.c (gimple_alloc_histogram_value): New export func.
13705 (check_ic_target): Likewise.
13706 * value-prof.h (gimple_alloc_histogram_value): Likewise.
13707 (check_ic_target): Likewise.
13709 2014-10-21 David Malcolm <dmalcolm@redhat.com>
13711 * cgraph.c (cgraph_c_finalize): New function.
13712 * cgraph.h (cgraph_c_finalize): New prototype.
13713 (cgraphunit_c_finalize): New prototype.
13714 * cgraphunit.c (first_analyzed): Move from analyze_functions
13716 (first_analyzed_var): Likewise.
13717 (analyze_functions): Move static variables into file-scope.
13718 (cgraphunit_c_finalize): New function.
13719 * diagnostic.c (diagnostic_finish): Free the memory for
13720 context->classify_diagnostic and context->printer, running the
13721 destructor for the latter.
13722 (bt_stop): Use toplev::main.
13723 * dwarf2out.c (dwarf2out_finalize): New function.
13724 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
13725 * gcse.c (gcse_c_finalize): New function.
13726 * gcse.h (gcse_c_finalize): New prototype.
13727 * ggc-page.c (init_ggc): Make idempotent.
13728 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
13729 * ipa-cp.c (ipa_cp_c_finalize): New function.
13730 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
13731 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
13732 a field of class pass_ipa_pure_const.
13733 (node_duplication_hook_holder): Likewise.
13734 (node_removal_hook_holder): Likewise.
13735 (register_hooks): Convert to method...
13736 (pass_ipa_pure_const::register_hooks): ...here, converting
13737 static variable init_p into...
13738 (pass_ipa_pure_const::init_p): ...new field.
13739 (pure_const_generate_summary): Update invocation of
13740 register_hooks to invoke as a method of current_pass.
13741 (pure_const_read_summary): Likewise.
13742 (propagate): Convert to...
13743 (pass_ipa_pure_const::execute): ...method.
13744 * ipa-reference.c (ipa_init): Move static bool init_p from here
13746 (ipa_init_p): New file-scope variable, so that it can be reset
13747 when repeatedly invoking the compiler within one process by...
13748 (ipa_reference_c_finalize): New function.
13749 * ipa-reference.h (ipa_reference_c_finalize): New.
13750 * main.c (main): Replace invocation of toplev_main with
13751 construction of a toplev instance, and call its "main" method.
13752 * params.c (global_init_params): Add an assert that
13753 params_finished is false.
13754 (params_c_finalize): New.
13755 * params.h (params_c_finalize): New.
13756 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
13757 invoking generate_summary, for the benefit of pass_ipa_pure_const.
13758 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
13759 before calling write_summary hook.
13760 (ipa_write_optimization_summaries_1): Likewise when calling
13761 write_optimization_summary hook.
13762 (ipa_read_summaries_1): Likewise for read_summary hook.
13763 (ipa_read_optimization_summaries_1): Likewise for
13764 read_optimization_summary hook.
13765 (execute_ipa_stmt_fixups): Likewise.
13766 * stringpool.c (init_stringpool): Clean up if we're called more
13768 * timevar.c (timevar_init): Ignore repeated calls.
13769 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
13771 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
13772 (initialize_rtl): Move static local "initialized_once"
13773 into file scope, and rename to...
13774 (rtl_initialized): New variable.
13775 (do_compile): Move timevar initialization from here to
13776 toplev::start_timevars.
13777 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
13778 toplev::finalize): New functions.
13779 (toplev_main): Rename to...
13780 (toplev::main): ...this.
13781 * toplev.h (class toplev): New class.
13783 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13785 * loop-doloop.c: Include loop-unroll.h.
13787 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13789 * cfg.h: New. Header file for cfg.c.
13790 * cfganal.h: New. Header file for cfganal.c.
13791 * lcm.h: New. Header file for lcm.c.
13792 * loop-unroll.h: New. Header file for loop-unroll.h.
13793 * cfgloop.h: (unroll_loops): Remove prototype.
13794 * basic-block.h: Move prototypes and structs to new header files.
13795 Include cfg.h, cfganal.h, and lcm.h.
13796 * loop-init.c: Include loop-unroll.h.
13797 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
13798 * modulo-sched.c: Include loop-unroll.h.
13800 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13802 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
13803 MARKER_BYTE_UNKNOWN markers when handling casts.
13805 2014-10-21 Richard Biener <rguenther@suse.de>
13807 * tree-ssa-phiopt.c (value_replacement): Properly verify we
13808 are the non-singleton PHI.
13810 2014-10-21 Jakub Jelinek <jakub@redhat.com>
13812 PR tree-optimization/63563
13813 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
13814 if either dra or drb stmts are not normal loads/stores.
13816 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
13818 * config/i386/i386.c (expand_vec_perm_1): Fix
13819 expand_vec_perm_palignr case.
13820 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
13823 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
13825 * cfgloopanal.c (seq_cost): Delete.
13826 * rtl.h (seq_cost): New prototype.
13827 * rtlanal.c (seq_cost): New function.
13828 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
13830 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
13832 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
13833 * basic-block.h: Remove prototypes for cfgrtl.c.
13834 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
13835 prototypes to cfgrtl.h.
13836 * profile.h (profile_info): Add extern export declaration.
13837 * rtl.h: Remove prototypes for cfgrtl.h.
13838 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
13839 * ipa-inline.c: Include profile.h.
13840 * loop-unroll.c: Ditto.
13841 * modulo-sched.c: Ditto.
13842 * postreload-gcse.c: Ditto.
13843 * predict.c: Ditto.
13844 * sched-ebb.c: Ditto.
13845 * sched-rgn.c: Ditto.
13847 * tree-ssa-loop-ivcanon.c: Ditto.
13849 2014-10-20 Richard Biener <rguenther@suse.de>
13851 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
13852 operands to get a def operand kind match. Signal mismatches
13853 to the parent so we can try swapping its operands.
13854 (vect_build_slp_tree): Try swapping operands if they have
13855 a mismatched operand kind.
13857 2014-10-20 Alan Modra <amodra@gmail.com>
13860 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
13861 Increase "ops" array size. Correct array size tests. Init
13862 n_constants in loop. Break out of innermost loop when finding
13863 a trivial CONST expression.
13865 2014-10-20 Martin Liska <mliska@suse.cz>
13868 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
13869 Gimple tempate string is compared.
13871 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
13873 * varasm.c (const_alias_set): Remove.
13874 (init_varasm_once): Remove initialization of const_alias_set.
13875 (build_constant_desc): Do not set alias set to const_alias_set.
13877 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
13879 * configure: Regenerate.
13880 * configure.ac: Move the test for section attribute specifier "e" in GAS
13881 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
13882 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
13883 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
13884 ifdef HAVE_GAS_SECTION_EXCLUDE.
13886 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
13888 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
13889 match_operand expression.
13891 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13892 David Edelsohn <dje.gcc@gmail.com>
13894 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
13896 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13898 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13900 * doc/invoke.texi (Options to Request or Suppress Warnings):
13901 Explain options precedence.
13902 (Wtrampolines): Do not indent paragraph.
13904 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
13906 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
13907 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
13908 (pa_jump_in_call_delay): Likewise.
13909 * config/pa/pa.c (pa_option_override): Remove jump in call delay
13911 (pa_output_millicode_call): Remove support for jump in call delay.
13912 (pa_output_call): Likewise.
13913 (pa_jump_in_call_delay): Delete.
13914 (pa_following_call): Likewise.
13915 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
13916 (uncond_branch): Remove following call check from attribute length.
13918 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
13921 * config/sh/sh-modes.def (PSI): Remove.
13922 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
13923 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
13924 (sh_reorg): Remove commented out FPSCR code.
13925 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
13926 insn instead of move insn.
13927 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
13928 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
13930 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
13931 (sh1_builtin_p): Uncomment.
13932 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
13933 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
13934 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
13935 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
13936 (general_movsrc_operand, general_movdst_operand): Disallow
13938 * config/sh/sh.md (FPSCR_FR): New constant.
13939 (push_fpscr): Emit sts_fpscr insn.
13940 (pop_fpscr): Emit lds_fpscr_insn.
13941 (movsi_ie): Disallow FPSCR operands.
13942 (fpu_switch, unnamed related split, extend_psi_si,
13943 truncate_si_psi): Remove insns.
13944 (lds_fpscr, sts_fpscr): New insns.
13945 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
13947 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
13949 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
13950 (clone_inlined_nodes): Do not overwrite the clone if above predicate
13953 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
13955 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
13956 (expand_vec_perm_d): Ditto.
13957 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
13958 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
13960 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
13961 (ix86_expand_sse_unpack): Handle V64QImode.
13962 (expand_vec_perm_blend): Update conditions for TARGET, handle
13963 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
13964 (expand_vec_perm_pshufb): Handle V64QImode.
13965 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
13966 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
13967 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
13968 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
13969 (ix86_expand_vecop_qihi): Handle V64QImode.
13970 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
13971 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
13972 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
13973 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
13974 (mul<mode>3): Use VI1_AVX512.
13975 (<sse2_avx2>_packsswb): Ditto.
13976 (<sse2_avx2>_packuswb): Ditto.
13977 (<ssse3_avx2>_pshufb<mode>3): Ditto.
13978 (<shift_insn><mode>3): Ditto.
13980 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
13982 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
13983 conditions to fix bootstrap.
13985 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
13987 gcc-plugin.h: Add tm.h and flattened includes from function.h.
13989 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13990 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13991 Anna Tikhonova <anna.tikhonova@intel.com>
13992 Ilya Tocar <ilya.tocar@intel.com>
13993 Andrey Turetskiy <andrey.turetskiy@intel.com>
13994 Ilya Verbin <ilya.verbin@intel.com>
13995 Kirill Yukhin <kirill.yukhin@intel.com>
13996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13998 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
13999 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
14000 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
14001 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
14002 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
14003 (define_expand "vec_init<mode>"): Use VF48_I1248.
14005 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
14006 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14007 Anna Tikhonova <anna.tikhonova@intel.com>
14008 Ilya Tocar <ilya.tocar@intel.com>
14009 Andrey Turetskiy <andrey.turetskiy@intel.com>
14010 Ilya Verbin <ilya.verbin@intel.com>
14011 Kirill Yukhin <kirill.yukhin@intel.com>
14012 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14014 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
14015 expand_sse2_mulvxdi3.
14017 2014-10-17 Richard Biener <rguenther@suse.de>
14019 * fold-const.c (fold_comparison): Remove redundant constant
14020 folding and operand swapping.
14021 (fold_binary_loc): Do comparison operand swapping here.
14022 (fold_ternary_loc): Canonicalize operand order for
14023 commutative ternary operations.
14024 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
14027 2014-10-17 Jakub Jelinek <jakub@redhat.com>
14029 PR tree-optimization/63464
14030 * gimple.h (gimple_seq_discard): New prototype.
14031 * gimple.c: Include stringpool.h and tree-ssanames.h.
14032 (gimple_seq_discard): New function.
14033 * optabs.h (lshift_cheap_p): New prototype.
14034 * optabs.c (lshift_cheap_p): New function, moved from...
14035 * tree-switch-conversion.c (lshift_cheap_p): ... here.
14036 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
14037 (reassoc_branch_fixups): New variable.
14038 (update_range_test): Add otherrangep and seq arguments.
14039 Unshare exp. If otherrange is NULL, use for other ranges
14040 array of pointers pointed by otherrangep instead.
14041 Emit seq before gimplified statements for tem.
14042 (optimize_range_tests_diff): Adjust update_range_test
14044 (optimize_range_tests_xor): Likewise. Fix up comment.
14045 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
14047 (optimize_range_tests): Adjust update_range_test caller.
14048 Call optimize_range_tests_to_bit_test.
14049 (branch_fixup): New function.
14050 (execute_reassoc): Call branch_fixup.
14052 PR tree-optimization/63302
14053 * tree-ssa-reassoc.c (optimize_range_tests_xor,
14054 optimize_range_tests_diff): Use !integer_pow2p () instead of
14057 2014-10-17 Martin Liska <mliska@suse.cz>
14059 * ipa-icf.c (sem_function::merge): Local flags are set to false
14060 to enforce equal calling convention to be used.
14061 * opts.c (common_handle_option): Indentation fix.
14063 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
14065 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
14067 2014-10-17 Tom de Vries <tom@codesourcery.com>
14069 PR rtl-optimization/61605
14070 * regcprop.c (copyprop_hardreg_forward_1): Use
14071 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
14073 2014-10-17 Tom de Vries <tom@codesourcery.com>
14075 PR rtl-optimization/61605
14076 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.
14077 Don't notice stores for noops. Don't regard noops as copies.
14079 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
14081 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
14082 register in a special way.
14083 (__cpuid_count): Ditto.
14084 * config/i386/driver-i386.h: Protect with
14085 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
14086 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
14087 is required to compile the function.
14089 2014-10-16 DJ Delorie <dj@redhat.com>
14091 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
14094 * config/rs6000/rs6000-c.c (rid_int128): New.
14095 (rs6000_macro_to_expand): Use instead of RID_INT128.
14097 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
14099 * function.h: Flatten file. Remove includes, adjust prototypes to
14100 reflect only what is in function.h.
14101 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14102 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
14104 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
14105 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
14106 prototypes to predict.h.
14107 (init_varasm_status): Move prototype to varasm.h.
14108 * expr.h: Adjust include files.
14109 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14110 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
14112 (locate_and_pad_parm): Move prototype to function.h.
14113 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
14114 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
14115 assign_temp, reposition_prologue_and_epilogue_notes,
14116 prologue_epilogue_contains, sibcall_epilogue_contains,
14117 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
14118 set_return_jump_label): Move prototypes to function.h.
14119 * predict.h (optimize_function_for_size_p,
14120 optimize_function_for_speed_p): Relocate prototypes from function.h.
14121 * shrink-wrap.h (emit_return_into_block, active_insn_between,
14122 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
14124 * varasm.h (init_varasm_status): Relocate prototype from function.h.
14125 * genattrtab.c (write_header): Add predict.h to include list.
14126 * genconditions.c (write_header): Add predict.h to include list.
14127 * genemit.c (main): Adjust header file includes.
14128 * gengtype.c (ifiles): Add flattened function.h header files.
14129 * genoutput.c (output_prologue): Add predict.h to include list.
14130 * genpreds.c (write_insn_preds_c): Adjust header file includes.
14131 * genrecog.c (write_header): Add flattened function.h header files.
14132 * alias.c: Adjust include files.
14133 * auto-inc-dec.c: Likewise.
14134 * basic-block.h: Likewise.
14135 * bb-reorder.c: Likewise.
14136 * bt-load.c: Likewise.
14137 * builtins.c: Likewise.
14138 * caller-save.c: Likewise.
14139 * calls.c: Likewise.
14140 * cfgbuild.c: Likewise.
14141 * cfgcleanup.c: Likewise.
14142 * cfgexpand.c: Likewise.
14143 * cfgloop.c: Likewise.
14144 * cfgloop.h: Likewise.
14145 * cfgrtl.c: Likewise.
14146 * cgraph.h: Likewise.
14147 * cgraphclones.c: Likewise.
14148 * cgraphunit.c: Likewise.
14149 * combine-stack-adj.c: Likewise.
14150 * combine.c: Likewise.
14151 * coverage.c: Likewise.
14152 * cprop.c: Likewise.
14154 * cselib.c: Likewise.
14155 * dbxout.c: Likewise.
14157 * df-core.c: Likewise.
14158 * df-problems.c: Likewise.
14159 * df-scan.c: Likewise.
14160 * dojump.c: Likewise.
14161 * dwarf2cfi.c: Likewise.
14162 * dwarf2out.c: Likewise.
14163 * emit-rtl.c: Likewise.
14164 * except.c: Likewise.
14165 * explow.c: Likewise.
14166 * expr.c: Likewise.
14167 * final.c: Likewise.
14168 * function.c: Likewise.
14169 * gcse.c: Likewise.
14170 * gimple-fold.c: Likewise.
14171 * gimple-low.c: Likewise.
14172 * gimple-streamer.h: Likewise.
14173 * haifa-sched.c: Likewise.
14174 * ifcvt.c: Likewise.
14176 * jump.c: Likewise.
14178 * loop-invariant.c: Likewise.
14179 * lra-assigns.c: Likewise.
14180 * lra-coalesce.c: Likewise.
14181 * lra-constraints.c: Likewise.
14182 * lra-eliminations.c: Likewise.
14183 * lra-lives.c: Likewise.
14184 * lra-spills.c: Likewise.
14186 * lto-cgraph.c: Likewise.
14187 * lto-section-in.c: Likewise.
14188 * lto-section-out.c: Likewise.
14189 * lto-streamer-in.c: Likewise.
14190 * lto-streamer-out.c: Likewise.
14191 * mode-switching.c: Likewise.
14192 * modulo-sched.c: Likewise.
14193 * omp-low.c: Likewise.
14194 * optabs.c: Likewise.
14195 * passes.c: Likewise.
14196 * postreload-gcse.c: Likewise.
14197 * postreload.c: Likewise.
14198 * predict.c: Likewise.
14199 * profile.c: Likewise.
14200 * recog.c: Likewise.
14202 * reg-stack.c: Likewise.
14203 * regcprop.c: Likewise.
14204 * reginfo.c: Likewise.
14205 * regrename.c: Likewise.
14206 * reload.c: Likewise.
14207 * reload1.c: Likewise.
14208 * reorg.c: Likewise.
14209 * resource.c: Likewise.
14210 * rtlanal.c: Likewise.
14211 * sched-deps.c: Likewise.
14212 * sched-ebb.c: Likewise.
14213 * sched-rgn.c: Likewise.
14214 * sel-sched-dump.c: Likewise.
14215 * sel-sched-ir.c: Likewise.
14216 * sel-sched.c: Likewise.
14217 * shrink-wrap.c: Likewise.
14218 * simplify-rtx.c: Likewise.
14219 * statistics.c: Likewise.
14220 * stmt.c: Likewise.
14221 * stor-layout.c: Likewise.
14222 * store-motion.c: Likewise.
14223 * symtab.c: Likewise.
14224 * targhooks.c: Likewise.
14225 * toplev.c: Likewise.
14226 * trans-mem.c: Likewise.
14227 * tree-cfg.c: Likewise.
14228 * tree-cfgcleanup.c: Likewise.
14229 * tree-dfa.c: Likewise.
14230 * tree-eh.c: Likewise.
14231 * tree-inline.c: Likewise.
14232 * tree-into-ssa.c: Likewise.
14233 * tree-nested.c: Likewise.
14234 * tree-nrv.c: Likewise.
14235 * tree-profile.c: Likewise.
14236 * tree-ssa-alias.c: Likewise.
14237 * tree-ssa-ccp.c: Likewise.
14238 * tree-ssa-copy.c: Likewise.
14239 * tree-ssa-copyrename.c: Likewise.
14240 * tree-ssa-dom.c: Likewise.
14241 * tree-ssa-operands.c: Likewise.
14242 * tree-ssa-propagate.c: Likewise.
14243 * tree-ssa-structalias.c: Likewise.
14244 * tree-ssa-tail-merge.c: Likewise.
14245 * tree-ssa-threadedge.c: Likewise.
14246 * tree-ssa-threadupdate.c: Likewise.
14247 * tree-ssa-uncprop.c: Likewise.
14248 * tree-ssa-uninit.c: Likewise.
14249 * tree-ssa.c: Likewise.
14250 * tree-stdarg.c: Likewise.
14251 * tree-tailcall.c: Likewise.
14252 * tree.c: Likewise.
14253 * tsan.c: Likewise.
14254 * valtrack.c: Likewise.
14255 * varasm.c: Likewise.
14256 * vmsdbgout.c: Likewise.
14258 * config/aarch64/aarch64.c: Add flattened includes from function.h.
14259 * config/alpha/alpha.c: Likewise.
14260 * config/arc/arc.c: Likewise.
14261 * config/arm/arm.c: Likewise.
14262 * config/avr/avr-log.c: Likewise.
14263 * config/avr/avr.c: Likewise.
14264 * config/bfin/bfin.c: Likewise.
14265 * config/c6x/c6x.c: Likewise.
14266 * config/cr16/cr16.c: Likewise.
14267 * config/cris/cris.c: Likewise.
14268 * config/darwin.c: Likewise.
14269 * config/epiphany/epiphany.c: Likewise.
14270 * config/epiphany/mode-switch-use.c: Likewise.
14271 * config/epiphany/resolve-sw-modes.c: Likewise.
14272 * config/fr30/fr30.c: Likewise.
14273 * config/frv/frv.c: Likewise.
14274 * config/h8300/h8300.c: Likewise.
14275 * config/i386/i386.c: Likewise.
14276 * config/ia64/ia64.c: Likewise.
14277 * config/iq2000/iq2000.c: Likewise.
14278 * config/lm32/lm32.c: Likewise.
14279 * config/m32c/m32c.c: Likewise.
14280 * config/m32r/m32r.c: Likewise.
14281 * config/m68k/m68k.c: Likewise.
14282 * config/mcore/mcore.c: Likewise.
14283 * config/mep/mep-pragma.c: Likewise.
14284 * config/mep/mep.c: Likewise.
14285 * config/microblaze/microblaze.c: Likewise.
14286 * config/mips/mips.c: Likewise.
14287 * config/mmix/mmix.c: Likewise.
14288 * config/mn10300/mn10300.c: Likewise.
14289 * config/moxie/moxie.c: Likewise.
14290 * config/msp430/msp430.c: Likewise.
14291 * config/nds32/nds32-cost.c: Likewise.
14292 * config/nds32/nds32-fp-as-gp.c: Likewise.
14293 * config/nds32/nds32-intrinsic.c: Likewise.
14294 * config/nds32/nds32-isr.c: Likewise.
14295 * config/nds32/nds32-md-auxiliary.c: Likewise.
14296 * config/nds32/nds32-memory-manipulation.c: Likewise.
14297 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14298 * config/nds32/nds32-predicates.c: Likewise.
14299 * config/nds32/nds32.c: Likewise.
14300 * config/nios2/nios2.c: Likewise.
14301 * config/pa/pa.c: Likewise.
14302 * config/pdp11/pdp11.c: Likewise.
14303 * config/rl78/rl78.c: Likewise.
14304 * config/rs6000/rs6000.c: Likewise.
14305 * config/rx/rx.c: Likewise.
14306 * config/s390/s390.c: Likewise.
14307 * config/score/score.c: Likewise.
14308 * config/sh/sh.c: Likewise.
14309 * config/sparc/sparc.c: Likewise.
14310 * config/spu/spu.c: Likewise.
14311 * config/stormy16/stormy16.c: Likewise.
14312 * config/tilegx/tilegx.c: Likewise.
14313 * config/tilepro/tilepro.c: Likewise.
14314 * config/v850/v850.c: Likewise.
14315 * config/vax/vax.c: Likewise.
14316 * config/xtensa/xtensa.c: Likewise.
14318 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
14320 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
14321 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
14323 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14325 * config/sh/sh-protos.h (fldi_ok): Remove.
14326 * config/sh/sh.c (fldi_ok): Likewise.
14327 (sh_secondary_reload): Don't use fldi_ok.
14328 * config/sh/constraints.md (G constraint, H constraint): Don't use
14331 2014-10-16 Martin Liska <mliska@suse.cz>
14333 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
14334 Cast to unsigned long.
14335 (sem_item_optimizer::dump_cong_classes): Likewise.
14337 2014-10-16 Tom de Vries <tom@codesourcery.com>
14339 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
14340 with SSA_NAME_IN_FREELIST.
14342 2014-10-16 Richard Biener <rguenther@suse.de>
14344 PR middle-end/63554
14345 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
14346 (fold_builtin_strncat_chk): Move ...
14347 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
14348 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
14350 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14353 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
14356 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14357 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14358 Anna Tikhonova <anna.tikhonova@intel.com>
14359 Ilya Tocar <ilya.tocar@intel.com>
14360 Andrey Turetskiy <andrey.turetskiy@intel.com>
14361 Ilya Verbin <ilya.verbin@intel.com>
14362 Kirill Yukhin <kirill.yukhin@intel.com>
14363 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14365 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
14368 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14369 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14370 Anna Tikhonova <anna.tikhonova@intel.com>
14371 Ilya Tocar <ilya.tocar@intel.com>
14372 Andrey Turetskiy <andrey.turetskiy@intel.com>
14373 Ilya Verbin <ilya.verbin@intel.com>
14374 Kirill Yukhin <kirill.yukhin@intel.com>
14375 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14377 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
14378 V16SI, V32HI, V64QI modes.
14380 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14383 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
14384 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
14386 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
14387 to match fp insn patterns.
14388 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
14390 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
14391 expand_df_unop, expand_df_binop): Remove.
14392 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
14393 FPSCR_STAT_REG as not call clobbered.
14394 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
14395 invoking fpscr_set_from_mem.
14397 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
14398 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
14400 (REGISTER_NAMES): Adjust.
14401 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14402 (FIRST_PSEUDO_REGISTER): Increase to 156.
14403 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
14404 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
14406 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
14407 FPSCR_MODES_REG and FPSCR_STAT_REG.
14408 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14410 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
14411 FPSCR_SZ): Add new constants.
14412 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
14414 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
14415 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
14416 Use TARGET_FPU_ANY condition.
14417 (fpu_switch peephole2): Remove.
14418 (fpu_switch split): Use simple_mem_operand to capture the mem and
14419 adjust split implementation.
14420 (extend_psi_si, truncate_si_psi): New insns.
14421 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
14422 set of FPSCR_MODES_REG.
14424 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
14425 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
14426 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
14427 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
14428 call_value_compact, call_value_compact_rettramp, call,
14429 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
14430 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
14431 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
14432 sibcall_value_compact, sibcall_value, call_value_pop_compact,
14433 call_value_pop_compact_rettramp, various unnamed splits):
14434 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
14437 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
14438 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
14439 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
14440 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
14441 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
14443 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
14444 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
14445 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
14446 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
14447 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
14448 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
14449 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
14451 2014-10-16 Martin Liska <mliska@suse.cz>
14452 Jan Hubicka <hubicka@ucw.cz>
14454 * Makefile.in: New object files included.
14455 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
14457 (verify_edge_corresponds_to_fndecl): More sensitive verification
14458 of nodes that are merged by IPA ICF.
14459 * cgraph.h (cgraph_node::num_references): New function.
14460 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
14461 * common.opt: New options ipa-icf, ipa-icf-functions and
14462 ipa-icf-variables introduced.
14463 * doc/invoke.texi: Documentation of new options introduced.
14464 * ipa-icf-gimple.c: New file.
14465 * ipa-icf-gimple.h: New file.
14466 * ipa-icf.c: New file.
14467 * ipa-icf.h: New file.
14468 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
14469 (input_overwrite_node): Likewise.
14470 * lto-section-in.c: New icf section added.
14471 * lto-streamer.h (enum lto_section_type): Likewise.
14472 * opts.c (common_handle_option): New option added.
14473 * passes.def: New pass included.
14474 * timevar.def: Time variable for IPA ICF added.
14475 * tree-pass.h: New IPA ICF pass entry point added.
14477 2014-10-16 Richard Biener <rguenther@suse.de>
14479 PR tree-optimization/63168
14480 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
14481 latches if after merging they are no longer simple.
14482 * cfghooks.c (merge_blocks): Handle merging a latch block
14483 into another block.
14485 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14487 Anna Tikhonova <anna.tikhonova@intel.com>
14488 Ilya Tocar <ilya.tocar@intel.com>
14489 Andrey Turetskiy <andrey.turetskiy@intel.com>
14490 Ilya Verbin <ilya.verbin@intel.com>
14491 Kirill Yukhin <kirill.yukhin@intel.com>
14492 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14494 * config/i386/sse.md
14495 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
14496 support AVX-512VL instructions.
14498 2014-10-16 DJ Delorie <dj@redhat.com>
14500 * tree-core.h: Fix comment to not assume pointers are multiples of
14503 2014-10-15 Tom Tromey <tromey@redhat.com>
14505 * timevar.h (class auto_timevar): New class.
14507 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
14510 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14511 Remove the second alternative.
14512 (regprefix): Remove mode attribute.
14513 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
14514 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
14517 2013-11-05 Ian Lance Taylor <iant@google.com>
14519 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14520 If possible, add .cfi directives to record change to bx.
14521 * config/i386/i386.c (ix86_emit_cfi): New function.
14522 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
14524 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
14527 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
14529 * lto-streamer-out.c (lto_output): Handle correctly thunks that was
14532 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
14534 PR rtl-optimization/63448
14535 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
14536 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
14537 (LRA_MAX_INHERITANCE_PASSES): Use it.
14538 (lra_constraint_iter_after_spill): Remove.
14539 (lra_assignment_iter): New.
14540 (lra_assignment_iter_after_spill): New.
14541 * lra-assigns.c (lra_assignment_iter): New.
14542 (lra_assignment_iter_after_spill): New.
14543 (former_reload_pseudo_spill_p): New.
14544 (spill_for): Set up former_reload_pseudo_spill_p.
14545 (setup_live_pseudos_and_spill_after_risky): Ditto.
14546 (assign_by_spills): Ditto.
14547 (lra_assign): Increment lra_assignment_iter. Print the iteration
14548 number. Reset former_reload_pseudo_spill_p. Check
14549 lra_assignment_iter_after_spill.
14550 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
14551 lra_assignment_iter and lra_assignment_iter_after_spill.
14552 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
14553 (lra_constraints): Remove code with
14554 lra_assignment_iter_after_spill.
14556 2014-10-15 Teresa Johnson <tejohnson@google.com>
14559 * tree-ssa-threadupdate.c (recompute_probabilities): Better
14562 2014-10-15 Renlin Li <renlin.li@arm.com>
14564 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14565 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
14566 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
14567 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
14569 2014-10-15 Richard Biener <rguenther@suse.de>
14571 * gimple-fold.c (gimple_fold_call): Properly keep virtual
14572 SSA form up-to-date when devirtualizing a call to
14573 __builtin_unreachable and avoid fixing up EH info here.
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/sse.md (define_mode_iterator VI_AVX2): Extend
14585 to support AVX-512BW.
14586 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
14587 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
14588 (define_insn "*<plusminus_insn><mode>3"): Ditto.
14589 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
14590 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14591 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
14592 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14593 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
14594 (define_insn "*andnot<mode>3"): Ditto.
14595 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
14596 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
14597 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14598 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
14599 (define_insn "*abs<mode>2"): Remove masking support.
14600 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
14601 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
14602 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
14604 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14605 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14606 Anna Tikhonova <anna.tikhonova@intel.com>
14607 Ilya Tocar <ilya.tocar@intel.com>
14608 Andrey Turetskiy <andrey.turetskiy@intel.com>
14609 Ilya Verbin <ilya.verbin@intel.com>
14610 Kirill Yukhin <kirill.yukhin@intel.com>
14611 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14613 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
14614 * config/i386/sse.md
14615 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
14616 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
14617 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
14618 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14619 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14620 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14621 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14623 2014-10-15 Renlin Li <renlin.li@arm.com>
14625 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
14627 2014-10-15 Jakub Jelinek <jakub@redhat.com>
14629 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
14630 MINUS_EXPR in unsigned type to avoid undefined behavior.
14632 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
14634 * stor-layout.c (self_referential_size): Do not promote arguments.
14636 2014-10-15 Marek Polacek <polacek@redhat.com>
14638 * doc/invoke.texi: Update to reflect that GNU11 is the default
14640 * c-common.h (c_language_kind): Update comment.
14642 2014-10-15 Richard Biener <rguenther@suse.de>
14644 * hash-table.c: Include bconfig.h if building for the host.
14645 * hash-table.h: Do not include ggc.h on the host but just declare
14646 a few ggc allocation templates.
14648 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
14649 Jeff Law <law@redhat.com>
14651 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
14652 multiple hard registers, use smaller mode derived from MODE.
14654 2014-10-15 Andreas Schwab <schwab@suse.de>
14656 * explow.c (convert_memory_address_addr_space_1): Mark in_const
14657 as ATTRIBUTE_UNUSED.
14659 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
14661 * loop-unroll.c (decide_unrolling_and_peeling): Rename to
14662 (decide_unrolling): ... this one.
14663 (peel_loops_completely): Remove.
14664 (decide_peel_simple): Remove.
14665 (decide_peel_once_rolling): Remove.
14666 (decide_peel_completely): Remove.
14667 (peel_loop_simple): Remove.
14668 (peel_loop_completely): Remove.
14669 (unroll_and_peel_loops): Rename to ...
14670 (unroll_loops): ... this one; handle only unrolling.
14671 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and LPT_PEEL_SIMPLE.
14672 (UAP_PEEL): Remove.
14673 (unroll_and_peel_loops): Remove.
14674 (unroll_loops): New.
14675 * passes.def: Replace pass_rtl_unroll_and_peel_loops
14676 by pass_rtl_unroll_loops.
14677 * loop-init.c (gate_rtl_unroll_and_peel_loops,
14678 rtl_unroll_and_peel_loops): Rename to ...
14679 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
14680 (pass_rtl_unroll_and_peel_loops): Rename to ...
14681 (pass_rtl_unroll_loops): ... this one.
14682 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
14683 (make_pass_rtl_unroll_loops): New.
14684 * tree-ssa-loop-ivcanon.c (estimated_peeled_sequence_size,
14685 try_peel_loop): New.
14686 (canonicalize_loop_induction_variables): Update.
14688 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14690 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
14691 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
14692 !TARGET_HARD_FLOAT_POSTINC.
14693 (*lsip, *ssip): new instructions.
14695 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14697 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
14700 2014-10-14 Andrew Pinski <apinski@cavium.com>
14702 * explow.c (convert_memory_address_addr_space): Rename to ...
14703 (convert_memory_address_addr_space_1): This. Add in_const argument.
14704 Inside a CONST RTL, permute the conversion and addition of constant
14705 for zero and sign extended pointers.
14706 (convert_memory_address_addr_space): New function.
14708 2014-10-14 Andrew Pinski <apinski@cavium.com>
14711 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14713 PR middle-end/49721
14714 * explow.c (convert_memory_address_addr_space): Also permute the
14715 conversion and addition of constant for zero-extend.
14717 2014-10-14 DJ Delorie <dj@redhat.com>
14719 * config/msp430/msp430-modes.def (PSI): Add.
14721 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding):
14723 (msp430_hard_regno_nregs_with_padding): New.
14724 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
14725 (msp430_hard_regno_nregs_has_padding): New.
14726 (msp430_hard_regno_nregs_with_padding): New.
14727 (msp430_unwind_word_mode): Use PSImode instead of SImode.
14728 (msp430_addr_space_legitimate_address_p): New.
14729 (msp430_asm_integer): New.
14730 (msp430_init_dwarf_reg_sizes_extra): New.
14731 (msp430_print_operand): Use X suffix for PSImode even in small model.
14732 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
14733 (PTR_SIZE): ...but 4 bytes for EH.
14734 (SIZE_TYPE): Use __int20.
14735 (PTRDIFF_TYPE): Likewise.
14736 (INCOMING_FRAME_SP_OFFSET): Adjust.
14737 * config/msp430/msp430.md (movqi_topbyte): New.
14738 (movpsi): Use fixed suffixes.
14739 (movsipsi2): Enable for 430X, not large model.
14740 (extendhipsi2): Likewise.
14741 (zero_extendhisi2): Likewise.
14742 (zero_extendhisipsi2): Likewise.
14743 (extend_and_shift1_hipsi2): Likewise.
14744 (extendpsisi2): Likewise.
14745 (*bitbranch<mode>4_z): Fix suffix logic.
14747 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
14750 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
14751 do not choke on null node.
14752 <VAR_DECL>: Likewise.
14754 2014-10-14 DJ Delorie <dj@redhat.com>
14756 * machmode.h (int_n_data_t): New.
14757 (int_n_enabled_p): New.
14759 * tree.c (int_n_enabled_p): New.
14760 (int_n_trees): New.
14761 (make_or_reuse_type): Check for all __intN types, not just __int128.
14762 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
14764 * tree.h (int128_integer_type_node): Remove.
14765 (int128_unsigned_type_node): Remove.
14766 (int_n_trees_t): New.
14767 (int_n_enabled_p): New.
14768 (int_n_trees): New.
14769 * toplev.c (standard_type_bitsize): New.
14770 (do_compile): Check which __intN types are enabled for the current run.
14771 * builtin-types.def (BT_INT128): Remove.
14772 (BT_UINT128): Remove.
14773 * machmode.def: Add macro to create __int128 for all targets.
14774 * stor-layout.c (mode_for_size): Support __intN types.
14775 (smallest_mode_for_size): Likewise.
14776 (initialize_sizetypes): Support __intN types.
14777 * genmodes.c (struct mode_data): Add int_n field.
14778 (blank_mode): Likewise.
14781 (emit_insn_modes_h): Count __intN entries and define NUM_INT_N_ENTS.
14782 (emit_mode_int_n): New.
14783 (emit_insn_modes_c): Call it.
14784 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
14785 types, not just __int128.
14786 * tree-core.h (integer_type_kind): Remove __int128-specific
14787 entries, reserve spots for __intN entries.
14789 * config/msp430/msp430-modes.def (PSI): Add.
14791 2014-10-14 Kito Cheng <kito@0xlab.org>
14793 * ira.c: Fix typo in comment.
14795 * ira-build.c: Ditto.
14796 * ira-color.c: Ditto.
14797 * ira-emit.c: Ditto.
14798 * ira-int.h: Ditto.
14799 * ira-lives.c: Ditto.
14801 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
14803 PR rtl-optimization/63475
14804 * alias.c (true_dependence_1): Always use get_addr to extract
14805 true address operands from x_addr and mem_addr. Use extracted
14806 address operands to check for references with alignment ANDs.
14807 Use extracted address operands with find_base_term and
14808 base_alias_check. For noncanonicalized operands call canon_rtx with
14809 extracted address operand.
14810 (write_dependence_1): Ditto.
14811 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
14813 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
14816 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
14819 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14821 Anna Tikhonova <anna.tikhonova@intel.com>
14822 Ilya Tocar <ilya.tocar@intel.com>
14823 Andrey Turetskiy <andrey.turetskiy@intel.com>
14824 Ilya Verbin <ilya.verbin@intel.com>
14825 Kirill Yukhin <kirill.yukhin@intel.com>
14826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14828 * config/i386/i386.c
14829 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
14830 (ix86_expand_int_vcond): Ditto.
14832 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14833 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14834 Anna Tikhonova <anna.tikhonova@intel.com>
14835 Ilya Tocar <ilya.tocar@intel.com>
14836 Andrey Turetskiy <andrey.turetskiy@intel.com>
14837 Ilya Verbin <ilya.verbin@intel.com>
14838 Kirill Yukhin <kirill.yukhin@intel.com>
14839 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14841 * config/i386/i386.c
14842 (emit_reduc_half): Handle V64QI and V32HI mode.
14843 * config/i386/sse.md
14844 (define_mode_iterator VI_AVX512BW): New.
14845 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
14847 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14848 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14849 Anna Tikhonova <anna.tikhonova@intel.com>
14850 Ilya Tocar <ilya.tocar@intel.com>
14851 Andrey Turetskiy <andrey.turetskiy@intel.com>
14852 Ilya Verbin <ilya.verbin@intel.com>
14853 Kirill Yukhin <kirill.yukhin@intel.com>
14854 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14856 * config/i386/sse.md
14857 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
14859 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14860 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14861 Anna Tikhonova <anna.tikhonova@intel.com>
14862 Ilya Tocar <ilya.tocar@intel.com>
14863 Andrey Turetskiy <andrey.turetskiy@intel.com>
14864 Ilya Verbin <ilya.verbin@intel.com>
14865 Kirill Yukhin <kirill.yukhin@intel.com>
14866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14868 * config/i386/i386.c
14869 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
14870 * config/i386/sse.md
14871 (define_mode_iterator VI): Add V64QI and V32HI modes.
14873 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14874 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14875 Anna Tikhonova <anna.tikhonova@intel.com>
14876 Ilya Tocar <ilya.tocar@intel.com>
14877 Andrey Turetskiy <andrey.turetskiy@intel.com>
14878 Ilya Verbin <ilya.verbin@intel.com>
14879 Kirill Yukhin <kirill.yukhin@intel.com>
14880 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14882 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
14884 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14885 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14886 Anna Tikhonova <anna.tikhonova@intel.com>
14887 Ilya Tocar <ilya.tocar@intel.com>
14888 Andrey Turetskiy <andrey.turetskiy@intel.com>
14889 Ilya Verbin <ilya.verbin@intel.com>
14890 Kirill Yukhin <kirill.yukhin@intel.com>
14891 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14893 * config/i386/sse.md
14894 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
14895 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
14897 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14898 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14899 Anna Tikhonova <anna.tikhonova@intel.com>
14900 Ilya Tocar <ilya.tocar@intel.com>
14901 Andrey Turetskiy <andrey.turetskiy@intel.com>
14902 Ilya Verbin <ilya.verbin@intel.com>
14903 Kirill Yukhin <kirill.yukhin@intel.com>
14904 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14906 * config/i386/sse.md
14907 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
14908 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
14910 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14911 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14912 Anna Tikhonova <anna.tikhonova@intel.com>
14913 Ilya Tocar <ilya.tocar@intel.com>
14914 Andrey Turetskiy <andrey.turetskiy@intel.com>
14915 Ilya Verbin <ilya.verbin@intel.com>
14916 Kirill Yukhin <kirill.yukhin@intel.com>
14917 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14919 * config/i386/sse.md
14920 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
14921 (define_mode_iterator VI2_AVX2): Add V32HI mode.
14922 (define_expand "mul<mode>3<mask_name>"): Add masking.
14923 (define_insn "*mul<mode>3<mask_name>"): Ditto.
14924 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
14925 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
14926 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
14927 (define_mode_attr SDOT_PMADD_SUF): Ditto.
14928 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
14929 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
14930 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
14931 (define_insn "avx2_packusdw"): Delete.
14932 (define_insn "sse4_1_packusdw"): Ditto.
14933 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
14935 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14936 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14937 Anna Tikhonova <anna.tikhonova@intel.com>
14938 Ilya Tocar <ilya.tocar@intel.com>
14939 Andrey Turetskiy <andrey.turetskiy@intel.com>
14940 Ilya Verbin <ilya.verbin@intel.com>
14941 Kirill Yukhin <kirill.yukhin@intel.com>
14942 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14944 * config/i386/sse.md
14945 (define_insn "vec_dup<mode>"): Update constraints.
14947 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14949 Anna Tikhonova <anna.tikhonova@intel.com>
14950 Ilya Tocar <ilya.tocar@intel.com>
14951 Andrey Turetskiy <andrey.turetskiy@intel.com>
14952 Ilya Verbin <ilya.verbin@intel.com>
14953 Kirill Yukhin <kirill.yukhin@intel.com>
14954 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14956 * config/i386/sse.md
14957 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
14958 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
14959 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
14961 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14962 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14963 Anna Tikhonova <anna.tikhonova@intel.com>
14964 Ilya Tocar <ilya.tocar@intel.com>
14965 Andrey Turetskiy <andrey.turetskiy@intel.com>
14966 Ilya Verbin <ilya.verbin@intel.com>
14967 Kirill Yukhin <kirill.yukhin@intel.com>
14968 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14970 * config/i386/sse.md
14971 (define_expand "mul<mode>3<mask_name>"): Add masking.
14973 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14975 Anna Tikhonova <anna.tikhonova@intel.com>
14976 Ilya Tocar <ilya.tocar@intel.com>
14977 Andrey Turetskiy <andrey.turetskiy@intel.com>
14978 Ilya Verbin <ilya.verbin@intel.com>
14979 Kirill Yukhin <kirill.yukhin@intel.com>
14980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14982 * config/i386/sse.md
14983 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
14984 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
14986 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14988 Anna Tikhonova <anna.tikhonova@intel.com>
14989 Ilya Tocar <ilya.tocar@intel.com>
14990 Andrey Turetskiy <andrey.turetskiy@intel.com>
14991 Ilya Verbin <ilya.verbin@intel.com>
14992 Kirill Yukhin <kirill.yukhin@intel.com>
14993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14995 * config/i386/sse.md
14996 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
14997 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
14998 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
15001 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15002 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15003 Anna Tikhonova <anna.tikhonova@intel.com>
15004 Ilya Tocar <ilya.tocar@intel.com>
15005 Andrey Turetskiy <andrey.turetskiy@intel.com>
15006 Ilya Verbin <ilya.verbin@intel.com>
15007 Kirill Yukhin <kirill.yukhin@intel.com>
15008 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15010 * config/i386/sse.md
15011 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
15012 use VF_128_256 mode iterator and update assembler emit code.
15013 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
15014 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
15015 Add masking, use VF_128_256 mode iterator.
15016 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
15017 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
15018 Add masking, use VF_128_256 mode iterator and update assembler emit
15020 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
15021 (define_mode_attr avx512flogicsuff): Delete.
15022 (define_insn "avx512f_<logic><mode>"): Ditto.
15023 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
15025 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
15027 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15028 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15029 Anna Tikhonova <anna.tikhonova@intel.com>
15030 Ilya Tocar <ilya.tocar@intel.com>
15031 Andrey Turetskiy <andrey.turetskiy@intel.com>
15032 Ilya Verbin <ilya.verbin@intel.com>
15033 Kirill Yukhin <kirill.yukhin@intel.com>
15034 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15036 * config/i386/sse.md
15037 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
15038 (define_expand "vashr<mode>3<mask_name>"): Add masking,
15039 use VI12_128 mode iterator.
15040 (define_expand "ashrv2di3<mask_name>"): New.
15042 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15043 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15044 Anna Tikhonova <anna.tikhonova@intel.com>
15045 Ilya Tocar <ilya.tocar@intel.com>
15046 Andrey Turetskiy <andrey.turetskiy@intel.com>
15047 Ilya Verbin <ilya.verbin@intel.com>
15048 Kirill Yukhin <kirill.yukhin@intel.com>
15049 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15051 * config/i386/i386.c
15052 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
15053 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
15054 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
15055 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
15056 CODE_FOR_avx512vl_ucmpv4si3_mask.
15057 * config/i386/sse.md
15058 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
15059 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
15061 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
15062 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
15063 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
15064 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
15065 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
15066 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
15068 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15069 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15070 Anna Tikhonova <anna.tikhonova@intel.com>
15071 Ilya Tocar <ilya.tocar@intel.com>
15072 Andrey Turetskiy <andrey.turetskiy@intel.com>
15073 Ilya Verbin <ilya.verbin@intel.com>
15074 Kirill Yukhin <kirill.yukhin@intel.com>
15075 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15077 * config/i386/sse.md
15078 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
15079 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
15080 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
15081 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
15082 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
15083 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
15084 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15085 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15086 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
15088 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15089 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15090 Anna Tikhonova <anna.tikhonova@intel.com>
15091 Ilya Tocar <ilya.tocar@intel.com>
15092 Andrey Turetskiy <andrey.turetskiy@intel.com>
15093 Ilya Verbin <ilya.verbin@intel.com>
15094 Kirill Yukhin <kirill.yukhin@intel.com>
15095 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15097 * config/i386/sse.md
15098 (define_insn "avx512f_blendm<mode>"): Delete.
15099 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
15100 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
15101 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
15102 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
15104 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15107 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15110 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15112 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
15113 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
15114 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
15115 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
15118 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
15121 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
15123 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
15126 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
15129 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
15132 2014-10-14 Richard Biener <rguenther@suse.de>
15134 PR tree-optimization/63512
15135 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
15138 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
15141 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
15142 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
15144 (negsf2_i): Rename to *negsf2_i.
15145 (abssf2_i): Rename to *abssf2_i.
15146 (negdf2_i): Rename to *negdf2_i.
15147 (absdf2_i): Rename to *absdf2_i.
15149 2014-10-14 Felix Yang <felix.yang@huawei.com>
15150 Jeff Law <law@redhat.com>
15152 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
15153 "replace" into boolean bitfields; turn member "loop_depth" into a short
15154 integer; add new member "no_equiv" and "reserved".
15155 (no_equiv): Set no_equiv of struct equivalence if register is marked
15156 as having no known equivalence.
15157 (update_equiv_regs): Check all definitions for a multiple-set
15158 register to make sure that the RHS have the same value.
15160 2014-10-13 Richard Henderson <rth@redhat.com>
15162 * combine-stack-adj.c (no_unhandled_cfa): New.
15163 (maybe_merge_cfa_adjust): New.
15164 (combine_stack_adjustments_for_block): Use them.
15166 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
15168 * Makefile.in (TAGS): Tag ../include files.
15170 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15172 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
15173 to rs6000_dbx_register_number.
15174 (DWARF_FRAME_REGNUM): Redefine as identity map.
15175 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
15176 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
15177 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
15178 argument to handle .debug_frame and .eh_frame directly. Always
15179 translate SPE high register numbers. Add special treatment for CR,
15180 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
15182 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
15183 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
15184 (RS6000_USE_DWARF_NUMBERING): Define.
15185 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
15186 (RS6000_USE_DWARF_NUMBERING): Define.
15187 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
15188 (RS6000_USE_DWARF_NUMBERING): Define.
15189 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
15190 (RS6000_USE_DWARF_NUMBERING): Define.
15191 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
15192 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
15194 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15196 * config/i386/i386.c (ix86_address_cost): Lower cost for
15197 when address contains GOT register.
15199 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
15200 Vladimir Makarov <vmakarov@redhat.com>
15203 PR middle-end/47602
15204 PR rtl-optimization/55458
15205 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
15206 (ix86_init_pic_reg): New.
15207 (ix86_select_alt_pic_regnum): Add check on pseudo register.
15208 (ix86_save_reg): Likewise.
15209 (ix86_expand_prologue): Remove PIC register initialization
15210 now performed in ix86_init_pic_reg.
15211 (ix86_output_function_epilogue): Add check on pseudo register.
15212 (set_pic_reg_ever_alive): New.
15213 (legitimize_pic_address): Replace df_set_regs_ever_live with new
15214 set_pic_reg_ever_alive.
15215 (legitimize_tls_address): Likewise.
15216 (ix86_pic_register_p): New check.
15217 (ix86_delegitimize_address): Add check on pseudo register.
15218 (ix86_expand_call): Insert move from pseudo PIC register to ABI
15219 defined REAL_PIC_OFFSET_TABLE_REGNUM.
15220 (TARGET_INIT_PIC_REG): New.
15221 (TARGET_USE_PSEUDO_PIC_REG): New.
15222 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
15223 if pic_offset_table_rtx exists.
15224 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
15226 * doc/tm.texi: Regenerate.
15227 * function.c (assign_parms): Generate pseudo register for PIC.
15228 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
15230 * ira-color.c (color_pass): Add check on pseudo register.
15231 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
15233 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
15235 (ira): Add target specific PIC register initialization.
15236 (do_reload): Keep PIC pseudo register.
15237 * lra-assigns.c (spill_for): Add checks on pseudo register.
15238 * lra-constraints.c (contains_symbol_ref_p): New.
15239 (lra_constraints): Enable lra risky transformations when PIC is pseudo
15241 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
15242 * target.def (use_pseudo_pic_reg): New.
15243 (init_pic_reg): New.
15245 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15247 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
15248 Remove m_SILVERMONT and m_INTEL from the tune.
15250 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15252 PR libfortran/63471
15253 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15254 when _HPUX_SOURCE is defined.
15256 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15258 PR tree-optimization/62127
15259 * tree.c (remap_type_1): When remapping array, remap
15262 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
15264 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
15265 longer impact parallelization.
15267 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15270 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
15272 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
15274 * asan.c (instrument_derefs): BIT_FIELD_REF added.
15276 2014-10-13 Richard Biener <rguenther@suse.de>
15278 PR tree-optimization/63419
15279 * gimple-fold.h (gimple_convert): New function.
15280 * gimple-fold.c (gimple_convert): Likewise.
15281 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
15282 to split out required conversions early.
15284 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
15286 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
15287 Add the parts of an insn in reverse order, with the pattern at
15288 the top of the queue. Detect when we're iterating over a SEQUENCE
15289 pattern and in that case just consider patterns of subinstructions.
15291 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15294 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
15296 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
15298 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
15299 address. Use def chains to handle GBR clobbering call insns.
15301 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
15303 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
15304 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
15305 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
15306 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
15307 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
15308 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
15309 * doc/gty.texi (for_user): Document new option.
15310 * gengtype.c (create_user_defined_type): Don't try to get a struct for
15312 (walk_type): Don't error out on for_user option.
15313 (write_func_for_structure): Emit user marking routines if requested by
15315 (write_local_func_for_structure): Likewise.
15316 (main): Mark types with for_user option as used.
15317 * ggc.h (gt_pch_nx): Add overload for unsigned int.
15318 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
15319 * hash-table.h (ggc_hasher): New struct.
15320 (hash_table::create_ggc): New function.
15321 (gt_pch_nx): New overload for hash_table.
15323 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
15325 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
15326 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
15327 * config/sh/sh.c: Likewise.
15328 * config/sh/sh-mem.cc: Likewise.
15329 * config/sh/sh.md: Likewise.
15330 * config/sh/predicates.md: Likewise.
15331 * config/sh/sync.md: Likewise.
15333 2014-10-11 Martin Liska <mliska@suse.cz>
15335 PR middle-end/63376
15336 * cgraphunit.c (symbol_table::process_new_functions): Missing call
15337 for call_cgraph_insertion_hooks added.
15339 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15342 * stor-layout.c (min_align_of_type): Don't decrease alignment
15343 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
15344 TYPE_USER_ALIGN is set.
15346 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
15348 PR rtl-optimization/63483
15349 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
15350 references when alignment ANDs are involved.
15351 (write_dependence_p): Ditto.
15352 (may_alias_p): Ditto.
15354 2014-10-10 Marek Polacek <polacek@redhat.com>
15356 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
15357 * doc/invoke.texi: Document -fsanitize=object-size.
15358 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
15359 or it into SANITIZE_UNDEFINED.
15360 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
15361 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
15362 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
15363 * opts.c (common_handle_option): Handle -fsanitize=object-size.
15364 * ubsan.c: Include tree-object-size.h.
15365 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
15366 (ubsan_expand_bounds_ifn): Use false instead of 0.
15367 (ubsan_expand_objsize_ifn): New function.
15368 (instrument_object_size): New function.
15369 (pass_ubsan::execute): Add object size instrumentation.
15370 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
15372 2014-10-10 Richard Henderson <rth@redhat.com>
15375 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
15376 Restrict the set of expressions we're willing to move.
15378 2014-10-10 Jeff Law <law@redhat.com>
15380 * ira.c (struct equivalence): Promote INIT_INSNs field to
15381 an rtx_insn_list. Add comments.
15382 (no_equiv): Promote LIST to an rtx_insn_list. Update
15383 testing for and creating the special marker. Use methods
15384 to extract the insn and next pointers. Promote INSN to an
15386 (update_equiv_regs): Update test for special marker in the
15389 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15391 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
15392 * configure: Regenerate.
15393 * config/aarch64/aarch64.c (aarch64_override_options): Handle
15394 TARGET_FIX_ERR_A53_835769_DEFAULT.
15395 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
15397 * doc/install.texi (aarch64*-*-*): Document
15398 new --enable-fix-cortex-a53-835769 option.
15400 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15401 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15403 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
15404 (ADJUST_INSN_LENGTH): Define.
15405 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
15406 * config/aarch64/aarch64.c (is_mem_p): New function.
15407 (is_memory_op): Likewise.
15408 (aarch64_prev_real_insn): Likewise.
15409 (is_madd_op): Likewise.
15410 (dep_between_memop_and_curr): Likewise.
15411 (aarch64_madd_needs_nop): Likewise.
15412 (aarch64_final_prescan_insn): Likewise.
15413 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
15414 and -mno-fix-cortex-a53-835769 options.
15416 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15418 PR tree-optimization/63464
15419 * tree-switch-conversion.c (struct case_bit_test): Remove
15420 hi and lo fields, add wide_int mask field.
15421 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
15422 hi/lo fields into wide_int mask operations, optimize by pretending
15423 minval to be 0 if maxval is small enough.
15424 (process_switch): Adjust caller.
15426 2014-10-10 Richard Biener <rguenther@suse.de>
15428 PR tree-optimization/63379
15429 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
15430 a neutral operand for min/max when it is not a reduction chain.
15432 2014-10-10 Richard Biener <rguenther@suse.de>
15434 PR tree-optimization/63476
15435 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
15436 (BB_LIVE_VOP_ON_EXIT): New define.
15437 (create_expression_by_pieces): Assign VUSEs to stmts.
15438 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
15439 (pass_pre::execute): Assert virtual SSA form is up-to-date
15442 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
15444 * lra-assigns.c (assign_by_spills): Error out on spill failure.
15446 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
15448 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
15451 2014-10-09 Richard Biener <rguenther@suse.de>
15453 PR tree-optimization/63380
15454 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
15457 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
15459 * config/avr/avr.opt (mmcu=): Change to have a string value.
15460 (mn-flash=, mskip-bug, march=, mrmw): New options.
15461 (HeaderInclude): New.
15462 (mmcu=): Remove Var / Init clauses.
15463 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
15465 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
15466 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
15467 (SYMBOL_FLAG_IO_LOW): Define.
15468 (avr_device_to_as, avr_device_to_ld): Don't declare.
15469 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
15470 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
15471 (EXTRA_SPEC_FUNCTIONS): Don't define.
15472 (ASM_SPEC): Translate -arch= option to -mmcu= option.
15473 (LINK_SPEC): Translate -arch= option to -m= option.
15474 Don't use device_to_ld / device_to_data_start.
15475 (STARTFILE_SPEC): Now empty.
15476 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
15477 * config/avr/gen-avr-mmcu-specs.c: New file.
15478 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
15479 (s-device-specs): Likewise.
15480 (GCC_PASSES): Add s-device-specs.
15481 (install-driver): Depend on install-device-specs.
15482 (install-device-specs): New rule.
15483 * config/avr/avr.c (avr_option_override): Look up mcu arch by
15484 avr_arch_index and provide fallback initialization for avr_n_flash.
15485 (varasm.h): #include.
15486 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
15487 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
15488 (avr_attribute_table): Add "io", "address" and "io_low".
15489 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
15490 Add special handling for symbols with "io" and/or "address" attributes.
15491 (avr_asm_asm_output_aligned_bss): New function.
15492 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
15493 as appropriate. Handle io_low attribute.
15494 (avr_out_sbxx_branch): Handle symbolic io addresses.
15495 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
15496 avr_n_flash instead of avr_current_device->n_flash.
15497 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
15498 (avr_emit_movmemhi): Likewise.
15499 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
15500 Use TARGET_RMW instead of avr_current_device->dev_attributes.
15501 Don't define avr_current_device->macro (that's the specfile's job).
15502 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
15503 * config/avr/avr.c (avr_2word_insn_p): Likewise.
15504 * config/avr/avr.md (*cpse.ne): Likewise.
15505 (mov<mode>): Use avr_eval_addr_attrib.
15506 (cbi): Change constraint for low_io_address_operand operand to "i".
15507 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
15508 * config/avr/predicates.md (io_address_operand):
15509 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
15510 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
15511 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
15513 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
15514 * config/avr/genmultilib.awk: Use -march=.
15515 Remove Multilib matches processing.
15516 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
15517 * config/avr/avr-arch.h: Add double include guard.
15518 (avr_mcu_t) <library_name>: Update comment.
15519 * config/avr/driver-avr.c (avr_device_to_as): Delete.
15520 (avr_device_to_ld, avr_device_to_data_start): Likewise.
15521 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
15522 (avr_device_to_sp8): Likewise.
15523 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
15525 * doc/extend.texi (io, address): Document new AVR variable attributes.
15526 (io_low): Likewise.
15528 2014-10-09 Marek Polacek <polacek@redhat.com>
15530 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
15532 2014-10-08 Richard Biener <rguenther@suse.de>
15534 PR tree-optimization/61969
15535 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
15538 2014-10-09 Richard Biener <rguenther@suse.de>
15540 PR tree-optimization/63445
15541 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
15542 overflow for non-equality compares.
15544 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
15546 PR rtl-optimization/57003
15547 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15548 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
15549 killing regs_invalidated_by_call.
15551 2014-10-08 Teresa Johnson <tejohnson@google.com>
15553 PR bootstrap/63432.
15554 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
15555 (ssa_fix_duplicate_block_edges): Invoke it.
15556 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
15558 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
15561 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15562 atomic_fetch_<fetchop_name>si_hard,
15563 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
15564 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
15565 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
15566 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
15568 2014-10-08 Rong Xu <xur@google.com>
15570 * gcov-tool.c (profile_overlap): New driver function
15571 to compute profile overlap.
15572 (print_overlap_usage_message): New.
15573 (overlap_usage): New.
15575 (print_usage): Add calls to overlap function.
15577 * doc/gcov-tool.texi: Add documentation.
15579 2014-10-08 Steve Ellcey <sellcey@mips.com>
15581 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
15582 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
15584 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
15586 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
15587 pattern matching of MEM_REF.
15588 (check_stmt_for_type_change): Update.
15590 2014-10-08 Steve Ellcey <sellcey@mips.com>
15592 * config/mips/linux64.h: Remove.
15593 * config/mips/gnu-user64.h: Remove.
15594 * gcc.config (mips*-*-*): Remove references to linux64.h and
15596 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
15597 with modified version from gnu-user64.h.
15598 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
15599 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
15600 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
15602 (GNU_USER_LINK_EMULATION64): Ditto.
15603 (GNU_USER_LINK_EMULATIONN32): Ditto.
15604 (GLIBC_DYNAMIC_LINKER32): Ditto.
15605 (GLIBC_DYNAMIC_LINKER64): Ditto.
15606 (GLIBC_DYNAMIC_LINKERN32): Ditto.
15607 (UCLIBC_DYNAMIC_LINKER32): Ditto.
15608 (UCLIBC_DYNAMIC_LINKER64): Ditto.
15609 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
15610 (BIONIC_DYNAMIC_LINKERN32): Ditto.
15611 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
15612 (GLIBC_DYNAMIC_LINKER): Delete.
15613 (UCLIBC_DYNAMIC_LINKER): Delete.
15615 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
15616 Richard Biener <rguenther@suse.de>
15618 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
15619 Get address space from operand 0 (BASE).
15621 2014-10-07 Iain Sandoe <iain@codesourcery.com>
15624 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
15626 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
15628 * dwarf2out.c: Remove current_function_has_inlines.
15629 (gen_subprogram_die): Same.
15630 (gen_inlined_subroutine_die): Same.
15632 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
15634 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
15636 (_addcarry_u64): Ditto.
15637 (_addcarryx_u64): Ditto.
15639 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15641 * cgraph.h (cgraph_node::get_fun): Declare.
15642 * cgraph.c (cgraph_node::get_fun): New method.
15643 * ipa-inline.c (can_inline_edge_p): Use it.
15645 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15647 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
15648 and -ftrapping-math.
15649 * lto-wrapper.c (merge_and_complain): Likewise.
15650 (run_gcc): Likewise.
15652 2014-10-06 Rong Xu <xur@google.com>
15654 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
15655 * tree-profile.c: (params.h): New include.
15656 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
15657 and __gcov_indirect_call_topn_counters for
15658 indirect_call_topn_profile.
15659 (gimple_init_edge_profiler): New decls for
15660 __gcov_indirect_call_topn_profiler.
15661 (gimple_gen_ic_profiler): Generate the correct profiler call.
15662 (gimple_gen_ic_func_profiler): Fix format.
15663 * value-prof.c (params.h): New include.
15664 (dump_histogram_value): Hanlde indirect_call_topn counters.
15665 (stream_in_histogram_value): Ditto.
15666 (gimple_indirect_call_to_profile): Use indirect_call_topn
15667 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
15668 (gimple_find_values_to_profile): Hanlde indirect_call_topn
15670 * value-prof.h (enum hist_type): Histrogram type for
15671 indirect_call_topn counters.
15672 * profile.c (instrument_values): Instrument
15673 indirect_call_topn counters.
15675 2014-10-06 Rong Xu <xur@google.com>
15677 * Makefile.in: Fix dependence.
15678 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
15679 indirect call topn profiler.
15680 * gcov-io.h: Ditto.
15682 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15684 * calls.c (expand_call): Do not use the target as the return slot if
15685 it is not sufficiently aligned.
15687 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15689 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
15690 discussion of permutes and why we don't handle them.
15692 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15694 * config/sparc/predicates.md (int_register_operand): Delete.
15696 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15698 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
15700 2014-10-06 Jakub Jelinek <jakub@redhat.com>
15702 * ubsan.h (ubsan_get_source_location): New prototype.
15703 * ubsan.c (ubsan_source_location_type): New variable.
15704 Function renamed to ...
15705 (ubsan_get_source_location_type): ... this. Cache
15706 return value in ubsan_source_location_type variable.
15707 (ubsan_source_location, ubsan_create_data): Use
15708 ubsan_get_source_location_type instead of
15709 ubsan_source_location_type.
15710 * asan.c (asan_protect_global): Don't protect globals
15711 with ubsan_get_source_location_type () type.
15712 (asan_add_global): Provide global decl location info
15715 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15717 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
15720 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15722 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
15724 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
15726 (ipa_polymorphic_call_context::dump): Fix formating.
15727 (walk_ssa_copies): Add logic avoiding loops; update uses.
15728 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
15730 2014-10-02 Mark Wielaard <mjw@redhat.com>
15733 * dwarf2out.c (gen_subprogram_die): When a member function is
15734 explicitly deleted then add a DW_AT_GNU_deleted attribute.
15735 * langhooks.h (struct lang_hooks_for_decls): Add
15736 function_decl_deleted_p langhook.
15737 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
15738 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
15740 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15742 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
15743 NULL pointer checks.
15744 (ipa_polymorphic_call_context::get_dynamic_type): Return true
15745 if type doesn't change.
15746 * cgraph.h (cgraph_indirect_call_info): New flag.
15747 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
15748 (cgraph_node::dump): Dump it.
15749 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
15750 of context.get_dynamic_type.
15751 (ipa_make_edge_direct_to_target): Do not speculate
15752 edge that is already speuclative.
15753 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15754 speculate to __builtin_unreachable
15755 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
15757 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
15759 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15761 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
15762 get_dynamic_type; drop TODO.
15763 * ipa-polymorphic-call.c
15764 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
15765 for otr_type to be unknown.
15767 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15769 * common/config/score/score-common.c: Remove.
15770 * config.gcc: Remove support for score-*.
15771 * config/score/constraints.md: Remove.
15772 * config/score/elf.h: Remove.
15773 * config/score/predicates.md: Remove.
15774 * config/score/score-conv.h: Remove.
15775 * config/score/score-generic.md: Remove.
15776 * config/score/score-modes.def: Remove.
15777 * config/score/score-protos.h: Remove.
15778 * config/score/score.c: Remove.
15779 * config/score/score.h: Remove.
15780 * config/score/score.md: Remove.
15781 * config/score/score.opt: Remove.
15782 * doc/md.texi: Don't document score-*.
15784 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15787 * genconditions.c: Directly include ggc.h before rtl.h.
15789 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15791 * ipa-polymorphic-call.c
15792 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
15793 code determining speculative type.
15794 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
15796 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15798 * altivec.md (altivec_lvsl): New define_expand.
15799 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
15800 (altivec_lvsr): New define_expand.
15801 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
15802 * rs6000.c (rs6000_expand_builtin): Change to use
15803 altivec_lvs[lr]_direct; remove commented-out code.
15805 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15807 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15808 Issue a warning message when vec_lvsl or vec_lvsr is used with a
15809 little endian target.
15811 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15813 * tree-pretty-print.c (dump_location): Make it extern. Dump also
15815 * tree-pretty-print.h (dump_location): Declare.
15816 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
15817 (pp_gimple_stmt_1): Likewise.
15818 (dump_implicit_edges): Likewise.
15819 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
15823 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15825 * gcc.c (driver::global_initializations): Remove "const" so
15826 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
15827 and decoded_options_count.
15829 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
15831 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
15833 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
15834 TARGET_E500_DOUBLE case here.
15836 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
15841 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
15843 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15845 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
15846 * lto-cgraph.c (lto_output_edge, input_edge): Stream
15847 in_polymorphic_cdtor
15848 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
15849 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
15850 * cgraphclones.c (cgraph_edge::clone): Likewise.
15851 * ipa-prop.c (update_jump_functions_after_inlining,
15852 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
15853 to possible_dynamic_type_change.
15854 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
15855 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15856 IN_POLY_CDOTR argument.
15858 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
15859 for BASE and OUTER_TYPE being NULL.
15860 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15861 in_poly_cdtor parameter.
15863 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15865 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
15866 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
15868 (expand_vec_perm_1): Likewise.
15870 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15871 Uros Bizjak <ubizjak@gmail.com>
15873 PR tree-optimization/61403
15874 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
15875 error in comment. Also optimize 256-bit vectors for AVX2
15876 or AVX (floating vectors only), provided the first permutation
15877 can be performed in one insn.
15879 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15881 * gcc.c (class driver): New class.
15882 (main): Reimplement in terms of driver::main, moving most of the
15883 locals to be locals within individual methods of class driver.
15884 The remaining locals "explicit_link_files", "decoded_options" and
15885 "decoded_options_count" are used by multiple driver:: methods, and
15886 so become member data. Doing so isolates the argc/argv reads and
15887 writes. Replace "goto out" with a special exit code from
15888 new method driver::prepare_infiles. Split out the old
15889 implementation of main into the following...
15890 (driver::main): New function, corresponding to the old "main"
15892 (driver::set_progname): New function, taken from the old
15893 "main" implementation.
15894 (driver::expand_at_files): Likewise.
15895 (driver::decode_argv): Likewise.
15896 (driver::global_initializations): Likewise.
15897 (driver::build_multilib_strings): Likewise.
15898 (driver::set_up_specs): Likewise.
15899 (driver::putenv_COLLECT_GCC): Likewise.
15900 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
15901 (driver::handle_unrecognized_options): Likewise.
15902 (driver::maybe_print_and_exit): Likewise.
15903 (driver::prepare_infiles): Likewise.
15904 (driver::do_spec_on_infiles): Likewise.
15905 (driver::maybe_run_linker): Likewise.
15906 (driver::final_actions): Likewise.
15907 (driver::get_exit_code): Likewise.
15909 2014-10-03 Yury Gribov <y.gribov@samsung.com>
15911 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
15912 don't emit empty ctors.
15914 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
15916 * convert.c (convert_to_integer): Do not introduce useless conversions
15917 between integral types.
15919 2014-10-03 David Sherwood <david.sherwood@arm.com>
15921 * ira-int.h (ira_allocno): Mark hard_regno as signed.
15923 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
15925 * lra-constraints.c (inherit_in_ebb): Handle calls with
15926 multiple return values.
15927 * caller-save.c (save_call_clobbered_regs): Likewise.
15929 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15931 * tree-vect-data-refs.c (vect_permute_load_chain,
15932 vect_shift_permute_load_chain): Fix a typo in temporary var names,
15933 suffle3 to shuffle3.
15936 * omp-low.c (taskreg_contexts): New variable.
15937 (scan_omp_parallel): Push newly created context into taskreg_contexts
15938 vector and move record layout code to finish_taskreg_scan.
15939 (scan_omp_task): Likewise.
15940 (finish_taskreg_scan): New function.
15941 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
15942 vector elements and release it.
15945 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
15946 of palignr arguments can't be used due to min 0 or max - min
15947 too high, try also op0, op1 order of palignr arguments.
15949 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
15951 * cgraph.h (ipa_polymorphic_call_context):
15952 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
15953 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
15954 * ipa-polymorphic-call.c
15955 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
15956 past end of dynamic types.
15957 (ipa_polymorphic_call_context::stream_out,
15958 speculative_outer_type): Stream dynamic flag.
15959 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
15960 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
15962 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
15964 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
15965 * ipa-prop.c (update_jump_functions_after_inlining,
15966 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
15968 2014-10-02 Teresa Johnson <tejohnson@google.com>
15970 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
15971 up when synthesizing counts to avoid rounding errors.
15973 2014-10-02 Teresa Johnson <tejohnson@google.com>
15975 PR middle-end/63422
15976 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
15977 asserts to handle incoming insanities.
15979 2014-10-02 Martin Jambor <mjambor@suse.cz>
15981 PR tree-optimization/63375
15982 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
15985 2014-10-02 Olivier Hainque <hainque@adacore.com>
15987 * Makefile.in (CROSS): Define, to @CROSS.
15989 2014-10-02 Jakub Jelinek <jakub@redhat.com>
15992 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
15993 if it expands to a single insn only.
15994 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
15995 fail unless in_order is true. Add forward declaration.
15996 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
15997 is useful for one_operand_p.
15998 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
16000 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16002 * cgraphclones.c (build_function_type_skip_args): Do not make new
16003 type variant of old.
16005 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16007 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
16008 when speculation is added.
16009 (ipa_edge_args): Add polymorphic_call_contexts.
16010 (ipa_get_ith_polymorhic_call_context): New accesor.
16011 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
16012 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
16013 (ipa_compute_jump_functions_for_edge): Compute contexts.
16014 (update_jump_functions_after_inlining): Update contexts.
16015 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
16016 update dumping; add speculative edge creation.
16017 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
16019 (update_indirect_edges_after_inlining): Pass down context.
16020 (ipa_edge_duplication_hook): Duplicate contexts.
16021 (ipa_write_node_info): Stream out contexts.
16022 (ipa_read_node_info): Stream in contexts.
16023 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
16025 (try_speculative_devirtualization): New function.
16026 * ipa-utils.h (try_speculative_devirtualization): Declare.
16028 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16030 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
16031 dumping during WPA.
16033 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16035 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
16038 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16040 * ipa-polymorphic-call.c
16041 (ipa_polymorphic_call_context::restrict_to_inner_class):
16042 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
16043 use speculation_consistent_p to do so; Add CONSDER_BASES
16044 and CONSIDER_PLACEMENT_NEW parameters.
16045 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
16046 short circuit obvious cases.
16047 (ipa_polymorphic_call_context::dump): Improve formatting.
16048 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
16049 combine_speculation_with to record speculations; Do not ICE when
16050 object is located in pointer type decl; do not ICE for methods
16051 of UNION_TYPE; do not record nonpolymorphic types.
16052 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
16053 (ipa_polymorphic_call_context::combine_speculation_with): New method.
16054 (ipa_polymorphic_call_context::combine_with): New method.
16055 (ipa_polymorphic_call_context::make_speculative): Move here; use
16056 combine speculation.
16057 * cgraph.h (ipa_polymorphic_call_context): Update
16058 restrict_to_inner_class prototype; add offset_by, make_speculative,
16059 combine_with, useless_p, combine_speculation_with and
16060 speculation_consistent_p methods.
16061 (ipa_polymorphic_call_context::offset_by): New method.
16062 (ipa_polymorphic_call_context::useless_p): New method.
16064 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
16066 PR rtl-optimization/62151
16067 * combine.c (can_combine_p): Allow the destination register of INSN
16068 to be clobbered in I3.
16069 (subst): Do not substitute into clobbers of registers.
16071 2014-10-01 Jakub Jelinek <jakub@redhat.com>
16074 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
16075 offset, TARGET_MEM_REF and SSA_NAME.
16077 * config/i386/i386.c (expand_vec_perm_palignr): Handle
16078 256-bit vectors for TARGET_AVX2.
16080 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
16081 dfirst permutation.
16084 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
16085 argument to avx2_permv2ti.
16087 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16089 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
16091 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
16093 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
16094 (fmod<mode>3): Ditto.
16095 (fpremxf4_i387): Ditto.
16096 (reminderxf3): Ditto.
16097 (reminder<mode>3): Ditto.
16098 (fprem1xf4_i387): Ditto.
16100 2014-09-30 Teresa Johnson <tejohnson@google.com>
16102 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
16103 duplicate_blocks bitmap.
16104 (remove_ctrl_stmt_and_useless_edges): Ditto.
16105 (create_block_for_threading): Ditto.
16106 (compute_path_counts): New function.
16107 (update_profile): Ditto.
16108 (recompute_probabilities): Ditto.
16109 (update_joiner_offpath_counts): Ditto.
16110 (freqs_to_counts_path): Ditto.
16111 (clear_counts_path): Ditto.
16112 (ssa_fix_duplicate_block_edges): Update profile info.
16113 (ssa_create_duplicates): Pass new parameter.
16114 (ssa_redirect_edges): Remove old profile update.
16115 (thread_block_1): New duplicate_blocks bitmap,
16116 remove old profile update.
16117 (thread_single_edge): Pass new parameter.
16119 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
16121 PR middle-end/62120
16122 * varasm.c (decode_reg_name_and_count): Check availability for
16123 registers from ADDITIONAL_REGISTER_NAMES.
16125 2014-09-30 David Malcolm <dmalcolm@redhat.com>
16128 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
16129 (PLUGIN_HEADERS): Add pass-instances.def.
16131 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
16133 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
16135 * config/aarch64/aarch64-simd.md
16136 (aarch64_sqdmull_laneq<mode>): Expand iterator.
16137 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
16138 (vqdmulls_lane_s32): Fix return type.
16139 (vqdmulls_laneq_s32): New.
16141 2014-09-30 Jakub Jelinek <jakub@redhat.com>
16143 PR inline-asm/63282
16144 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
16145 or invert_jump_1 if jump isn't any_condjump_p.
16147 2014-09-30 Terry Guo <terry.guo@arm.com>
16149 * config/arm/arm-cores.def (cortex-m7): New core name.
16150 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
16152 * config/arm/arm-tables.opt: Regenerated.
16153 * config/arm/arm-tune.md: Regenerated.
16154 * config/arm/arm.h (TARGET_VFP5): New macro.
16155 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
16156 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
16157 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
16158 * doc/invoke.texi: Document new cpu and fpu names.
16160 2014-09-30 Jiong Wang <jiong.wang@arm.com>
16162 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
16163 before sinking insn.
16165 2014-09-30 David Sherwood <david.sherwood@arm.com>
16167 * ira-int.h (ira_allocno): Add "wmode" field.
16168 * ira-build.c (create_insn_allocnos): Add new "parent" function
16170 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
16171 that cannot be accessed in wmode.
16173 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
16175 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
16178 2014-09-29 Andi Kleen <ak@linux.intel.com>
16180 * opts.c (print_filtered_help): Print --param min/max/default
16183 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
16185 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
16187 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
16189 * tree-vrp.c (get_single_symbol): New function.
16190 (build_symbolic_expr): Likewise.
16191 (symbolic_range_based_on_p): New predicate.
16192 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
16193 for PLUS and MINUS. Do not drop symbolic ranges at the end.
16194 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
16195 operand is symbolic and based on the other operand.
16197 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
16199 * config/microblaze/microblaze.md (call_internal1): Use VOID
16200 instead of SI to fix "((void (*)(void)) 0)()" issue
16202 2014-09-29 Nick Clifton <nickc@redhat.com>
16204 * config/msp430/msp430.c (msp430_expand_prologue): Return a
16205 CLOBBER rtx for naked functions.
16206 (msp430_expand_epilogue): Likewise.
16207 (msp430_use_f5_series_hwmult): Cache result.
16208 (use_32bit_hwmult): Cache result.
16209 (msp430_no_hwmult): New function.
16210 (msp430_output_labelref): Use it.
16212 2014-09-29 Jakub Jelinek <jakub@redhat.com>
16214 PR middle-end/63247
16215 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
16216 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
16217 use the alignment of avar rather than ovar.
16219 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
16221 * config/pa/pa.c (pa_output_function_epilogue): Only update
16222 last_address when a nonnote insn is found.
16224 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16227 * ipa-devirt.c (possible_polymorphic_call_targets): Silence
16230 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16233 * ipa-polymorphic-call.c
16234 (ipa_polymorphic_call_context::restrict_to_inner_class): Fix pasto
16235 in checking array size.
16237 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16239 PR middle-end/35545
16240 * passes.def (pass_tracer): Move before last dominator pass.
16242 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
16244 * gcc.c (try_generate_repro): Remove argument "prog". Change all
16246 (run_attempt): Handle errors of "pex_run" invocation.
16248 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
16250 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
16251 (CC1_SPEC): Define.
16252 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
16253 (TARGET_ASAN_SHADOW_OFFSET): Define.
16255 2014-09-26 Martin Liska <mliska@suse.cz>
16257 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
16259 * cgraph.h: Likewise.
16260 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new
16261 argument introduced.
16262 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos
16264 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function
16265 transformed to global.
16266 * tree-ssa-alias.h: Likewise.
16268 2014-09-26 Jakub Jelinek <jakub@redhat.com>
16269 Max Ostapenko <m.ostapenko@partner.samsung.com>
16271 * common.opt: New option.
16272 * doc/invoke.texi: Describe new option.
16273 * gcc.c (execute): Don't free first string early, but at the end
16274 of the function. Call retry_ice if compiler exited with
16276 (main): Factor out common code.
16277 (print_configuration): New function.
16278 (files_equal_p): Likewise.
16279 (check_repro): Likewise.
16280 (run_attempt): Likewise.
16281 (do_report_bug): Likewise.
16282 (append_text): Likewise.
16283 (try_generate_repro): Likewise
16285 2014-09-25 Andi Kleen <ak@linux.intel.com>
16287 * config/i386/i386.c (x86_print_call_or_nop): New function.
16288 (x86_function_profiler): Support -mnop-mcount and
16290 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
16291 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
16293 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16295 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
16296 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
16297 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
16300 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16302 * ipa-utils.h (subbinfo_with_vtable_at_offset,
16303 type_all_derivations_known_p, type_known_to_have_no_deriavations_p,
16304 types_must_be_same_for_odr, types_odr_comparable): Declare.
16305 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
16306 * ipa-polymorphic-call.c: New file.
16307 (contains_polymorphic_type_p, possible_placement_new,
16308 ipa_polymorphic_call_context::restrict_to_inner_class,
16309 contains_type_p, decl_maybe_in_construction_p,
16310 ipa_polymorphic_call_context::stream_out,
16311 ipa_polymorphic_call_context::debug,
16312 ipa_polymorphic_call_context::stream_in,
16313 ipa_polymorphic_call_context::set_by_decl,
16314 ipa_polymorphic_call_context::set_by_invariant,
16316 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16317 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16318 extr_type_from_vtbl_ptr_store, record_known_type
16319 check_stmt_for_type_change,
16320 ipa_polymorphic_call_context::get_dynamic_type): Move here from
16322 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
16323 and streamer-hooks.h
16324 (contains_polymorphic_type_p, possible_placement_new,
16325 ipa_polymorphic_call_context::restrict_to_inner_class,
16326 contains_type_p, decl_maybe_in_construction_p,
16327 ipa_polymorphic_call_context::stream_out,
16328 ipa_polymorphic_call_context::debug,
16329 ipa_polymorphic_call_context::stream_in,
16330 ipa_polymorphic_call_context::set_by_decl,
16331 ipa_polymorphic_call_context::set_by_invariant,
16333 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16334 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16335 extr_type_from_vtbl_ptr_store, record_known_type
16336 check_stmt_for_type_change,
16337 ipa_polymorphic_call_context::get_dynamic_type): Move to
16338 ipa-polymorphic-call.c
16339 (type_all_derivations_known_p, types_odr_comparable,
16340 types_must_be_same_for_odr): Export.
16341 (type_known_to_have_no_deriavations_p): New function.
16342 * Makefile.in: Add ipa-polymorphic-call.c
16344 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16346 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
16347 for better storage.
16348 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
16349 (possible_polymorphic_call_targets): Instead of computing both
16350 speculative and non-speculative answers, do just one at a time.
16351 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
16352 (dump_targets): Break out from ...
16353 (dump_possible_polymorphic_call_targets): ... here; dump both
16354 speculative and non-speculative lists.
16355 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
16356 * ipa-utils.h (possible_polymorphic_call_targets): Update.
16358 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
16360 PR rtl-optimization/63348
16361 * emit-rtl.c (try_split): Do not emit extra barrier.
16363 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
16365 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
16366 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
16368 (aarch64_<sur>shll2_n<mode>): Likewise.
16369 (aarch64_<sur>shr_n<mode>): Likewise.
16370 (aarch64_<sur>sra_n<mode>: Likewise.
16371 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
16372 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
16373 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
16374 * config/aarch64/iterators.md (ve_mode): New.
16375 (offsetlr): Remap to infix text for use in new predicates.
16376 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
16377 (aarch64_simd_shift_imm_hi): Likewise.
16378 (aarch64_simd_shift_imm_si): Likewise.
16379 (aarch64_simd_shift_imm_di): Likewise.
16380 (aarch64_simd_shift_imm_offset_qi): Likewise.
16381 (aarch64_simd_shift_imm_offset_hi): Likewise.
16382 (aarch64_simd_shift_imm_offset_si): Likewise.
16383 (aarch64_simd_shift_imm_offset_di): Likewise.
16384 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
16385 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
16386 (aarch64_simd_shift_imm_bitsize_si): Likewise.
16387 (aarch64_simd_shift_imm_bitsize_di): Likewise.
16389 2014-09-25 Jiong Wang <jiong.wang@arm.com>
16391 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
16392 new created BB as the intersection of live-in from "old_dest" and
16393 live-out from "bb".
16395 2014-09-25 Felix Yang <felix.yang@huawei.com>
16397 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
16398 * genautomata.c (merge_states): Ditto.
16400 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
16403 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
16404 in instruction sequence.
16406 2014-09-25 Nick Clifton <nickc@redhat.com>
16409 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
16410 in instruction sequence.
16412 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16415 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
16416 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
16418 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16419 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16420 Anna Tikhonova <anna.tikhonova@intel.com>
16421 Ilya Tocar <ilya.tocar@intel.com>
16422 Andrey Turetskiy <andrey.turetskiy@intel.com>
16423 Ilya Verbin <ilya.verbin@intel.com>
16424 Kirill Yukhin <kirill.yukhin@intel.com>
16425 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16427 * config/i386/sse.md
16428 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
16429 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
16430 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
16431 (define_expand "<avx512>_perm<mode>_mask"): ... this.
16432 Use VI8F_256_512 mode iterator.
16433 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
16434 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
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
16446 (define_insn "avx_movshdup256<mask_name>"): Add masking.
16447 (define_insn "sse3_movshdup<mask_name>"): Ditto.
16448 (define_insn "avx_movsldup256<mask_name>"): Ditto.
16449 (define_insn "sse3_movsldup<mask_name>"): Ditto.
16450 (define_insn "vec_dupv2df<mask_name>"): Ditto.
16451 (define_insn "*vec_concatv2df"): Add EVEX version.
16453 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16454 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16455 Anna Tikhonova <anna.tikhonova@intel.com>
16456 Ilya Tocar <ilya.tocar@intel.com>
16457 Andrey Turetskiy <andrey.turetskiy@intel.com>
16458 Ilya Verbin <ilya.verbin@intel.com>
16459 Kirill Yukhin <kirill.yukhin@intel.com>
16460 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16462 * config/i386/sse.md
16463 (define_insn "vec_set<mode>_0"): Add EVEX version.
16465 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16467 Anna Tikhonova <anna.tikhonova@intel.com>
16468 Ilya Tocar <ilya.tocar@intel.com>
16469 Andrey Turetskiy <andrey.turetskiy@intel.com>
16470 Ilya Verbin <ilya.verbin@intel.com>
16471 Kirill Yukhin <kirill.yukhin@intel.com>
16472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16474 * config/i386/sse.md
16476 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
16478 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16479 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
16480 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
16481 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
16482 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
16483 (define_expand "sse2_cvtpd2ps_mask): New.
16484 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
16485 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
16487 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16488 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16489 Anna Tikhonova <anna.tikhonova@intel.com>
16490 Ilya Tocar <ilya.tocar@intel.com>
16491 Andrey Turetskiy <andrey.turetskiy@intel.com>
16492 Ilya Verbin <ilya.verbin@intel.com>
16493 Kirill Yukhin <kirill.yukhin@intel.com>
16494 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16496 * config/i386/i386.c
16497 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
16498 (ufix_notruncv8dfv8si2_mask_round): ... this.
16499 * config/i386/sse.md
16500 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
16501 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
16502 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
16503 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
16504 (define_expand "sse2_cvtpd2dq"): Delete.
16505 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
16506 make 2nd operand const0 vector.
16507 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
16509 (define_mode_attr pd2udqsuff): New.
16511 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
16512 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
16513 (define_insn "*avx_cvttpd2dq256_2"): Delete.
16514 (define_expand "sse2_cvttpd2dq"): Ditto.
16515 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
16516 make 2nd operand const0 vector.
16518 2014-09-25 Jakub Jelinek <jakub@redhat.com>
16520 PR tree-optimization/63341
16521 * tree-vectorizer.h (vect_create_data_ref_ptr,
16522 vect_create_addr_base_for_vector_ref): Add another tree argument
16523 defaulting to NULL_TREE.
16524 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
16525 argument, pass it down to vect_create_addr_base_for_vector_ref.
16526 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
16527 add that to base_offset too if non-NULL.
16528 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
16529 for dr_explicit_realign_optimized set it to vector byte size
16530 - 1 instead of setting offset, pass byte_offset down to
16531 vect_create_data_ref_ptr.
16533 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16535 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
16536 forgotten debug output; canonicalize querries more wtih LTO.
16538 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16540 * cgraph.h (class ipa_polymorphic_call_context): Move here from
16541 ipa-utils.h; add stream_int and stream_out methods.
16542 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
16543 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
16544 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
16546 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16547 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16548 ipa_polymorphic_call_context::clear_speculation,
16549 ipa_polymorphic_call_context::clear_outer_type): Move here from
16551 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
16552 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16553 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16554 ipa_polymorphic_call_context::clear_speculation,
16555 ipa_polymorphic_call_context::clear_outer_type): Likewise.
16556 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
16558 (ipa_polymorphic_call_context::stream_out): New method.
16559 (ipa_polymorphic_call_context::stream_in): New method.
16560 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
16561 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
16563 (ipa_analyze_call_uses): Simplify.
16564 (update_indirect_edges_after_inlining): Do not care about outer_type.
16565 (ipa_write_indirect_edge_info): Update.
16566 (ipa_write_indirect_edge_info): Likewise.
16567 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
16568 (dump_edge_flags): Break out from ...
16569 (cgraph_node::dump): ... here; dump indirect edges.
16571 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16573 * ipa-utils.h (polymorphic_call_context): Add
16574 metdhos dump, debug and clear_outer_type.
16575 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16576 (ipa_polymorphic_call_context::clear_outer_type): New method.
16577 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
16578 * ipa-devirt.c (types_odr_comparable): New function.
16579 (types_must_be_same_for_odr): New function.
16580 (odr_subtypes_equivalent_p): Simplify.
16581 (possible_placement_new): Break out from ...
16582 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
16583 be more cuatious about returning false in cases the context may be
16584 valid in derived type or via placement new.
16585 (contains_type_p): Clear maybe_derived_type
16586 (ipa_polymorphic_call_context::dump): New method.
16587 (ipa_polymorphic_call_context::debug): New method.
16588 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
16589 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
16590 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16591 (possible_polymorphic_call_targets): Trust
16592 context.restrict_to_inner_class to suceed on all valid cases;
16593 remove confused sanity check.
16594 (dump_possible_polymorphic_call_targets): Simplify.
16596 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
16598 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
16599 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
16600 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
16601 varpool.c: Rename all instances of DECL_ABSTRACT to
16604 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16606 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
16607 special handling for stores whose SET_SRC is an UNSPEC (such as
16610 2014-09-24 Jiong Wang <jiong.wang@arm.com>
16612 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
16613 !REG_P (src) to release more instruction sink opportunities.
16615 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
16617 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
16618 move costs for 128-bit types.
16620 2014-09-24 Martin Jambor <mjambor@suse.cz>
16622 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
16623 when duplicating a PASS_THROUGH jump function when creating a
16626 2014-09-24 Marek Polacek <polacek@redhat.com>
16630 * asan.c (maybe_instrument_call): Add default case.
16631 * ipa-pure-const.c (special_builtin_state): Likewise.
16632 * predict.c (expr_expected_value_1): Likewise.
16633 * lto-streamer-out.c (write_symbol): Initialize variable.
16635 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16637 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
16639 (vmuld_laneq_f64): Likewise.
16640 (vmuls_lane_f32): Likewise.
16641 (vmuls_laneq_f32): Likewise.
16643 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
16646 * varpool.c (varpool_node::add): Pass decl attributes
16647 to lookup_attribute.
16649 2014-09-24 Jakub Jelinek <jakub@redhat.com>
16652 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
16654 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16656 PR tree-optimization/63266
16657 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
16658 marker for unknown byte value.
16659 (MARKER_MASK): New macro.
16660 (MARKER_BYTE_UNKNOWN): New macro.
16661 (HEAD_MARKER): New macro.
16662 (do_shift_rotate): Mark bytes with unknown values due to sign
16663 extension when doing an arithmetic right shift. Replace hardcoded
16664 mask for marker by new MARKER_MASK macro.
16665 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
16666 numbers accordingly.
16668 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16670 Anna Tikhonova <anna.tikhonova@intel.com>
16671 Ilya Tocar <ilya.tocar@intel.com>
16672 Andrey Turetskiy <andrey.turetskiy@intel.com>
16673 Ilya Verbin <ilya.verbin@intel.com>
16674 Kirill Yukhin <kirill.yukhin@intel.com>
16675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16677 * config/i386/sse.md
16679 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
16681 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
16682 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
16684 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16685 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16686 Anna Tikhonova <anna.tikhonova@intel.com>
16687 Ilya Tocar <ilya.tocar@intel.com>
16688 Andrey Turetskiy <andrey.turetskiy@intel.com>
16689 Ilya Verbin <ilya.verbin@intel.com>
16690 Kirill Yukhin <kirill.yukhin@intel.com>
16691 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16693 * config/i386/sse.md
16694 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
16695 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
16696 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
16697 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
16698 (define_expand "avx512vl_pshuflw_mask"): New.
16699 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
16700 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
16701 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
16702 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
16703 (define_expand "avx512vl_pshufhw_mask"): New.
16704 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
16706 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16707 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16708 Anna Tikhonova <anna.tikhonova@intel.com>
16709 Ilya Tocar <ilya.tocar@intel.com>
16710 Andrey Turetskiy <andrey.turetskiy@intel.com>
16711 Ilya Verbin <ilya.verbin@intel.com>
16712 Kirill Yukhin <kirill.yukhin@intel.com>
16713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16715 * config/i386/i386.c
16716 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
16717 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
16718 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
16719 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
16720 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
16721 * config/i386/sse.md
16722 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
16724 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
16725 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
16727 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
16728 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
16729 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
16730 (define_expand "avx512vl_pshufd_mask"): New.
16731 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
16733 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16734 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16735 Anna Tikhonova <anna.tikhonova@intel.com>
16736 Ilya Tocar <ilya.tocar@intel.com>
16737 Andrey Turetskiy <andrey.turetskiy@intel.com>
16738 Ilya Verbin <ilya.verbin@intel.com>
16739 Kirill Yukhin <kirill.yukhin@intel.com>
16740 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16742 * config/i386/i386.c
16743 (CODE_FOR_avx2_extracti128): Rename to ...
16744 (CODE_FOR_avx_vextractf128v4di): this.
16745 (CODE_FOR_avx2_inserti128): Rename to ...
16746 (CODE_FOR_avx_vinsertf128v4di): this.
16747 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
16748 CODE_FOR_avx_vextractf128v4di.
16749 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
16750 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
16751 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
16752 CODE_FOR_avx512vl_vinsertv8si.
16753 * config/i386/sse.md
16755 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
16756 AVX512_VEC mode iterator.
16758 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
16761 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
16762 AVX512_VEC_2 mode iterator.
16763 (define_insn "vec_set_lo_<mode><mask_name>"): New.
16764 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16765 (define_expand "avx512vl_vinsert<mode>"): Ditto.
16766 (define_insn "avx2_vec_set_lo_v4di"): Delete.
16767 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
16768 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
16769 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16770 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
16771 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16772 (define_expand "avx2_extracti128"): Delete.
16773 (define_expand "avx2_inserti128"): Ditto.
16775 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16776 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16777 Anna Tikhonova <anna.tikhonova@intel.com>
16778 Ilya Tocar <ilya.tocar@intel.com>
16779 Andrey Turetskiy <andrey.turetskiy@intel.com>
16780 Ilya Verbin <ilya.verbin@intel.com>
16781 Kirill Yukhin <kirill.yukhin@intel.com>
16782 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16784 * config/i386/sse.md
16785 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
16786 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
16787 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
16788 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
16789 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
16790 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
16791 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
16792 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
16793 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
16794 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
16795 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
16796 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
16797 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
16799 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
16801 PR rtl-optimization/63210
16802 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
16803 HARD_REGNO is not available for CONFLICT_A.
16805 2014-09-23 Andi Kleen <ak@linux.intel.com>
16807 * cgraph.h (symtab_node): Add no_reorder attribute.
16808 (symbol_table::output_asm_statements): Remove.
16809 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
16810 (cgraph_node::create_version_clone): Dito.
16811 (symbol_table::output_asm_statements): Remove.
16812 * trans-mem.c (ipa_tm_create_version_alias): Dito.
16813 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
16814 (output_in_order): Add no_reorder flag. Only handle no_reorder
16816 (symbol_table::compile): Add separate pass for no_reorder nodes.
16817 (process_common_attributes): Set no_reorder flag in symtab node.
16819 (process_function_and_variable_attributes): Pass symtab nodes to
16820 process_common_attributes.
16821 * doc/extend.texi (no_reorder): Document no_reorder attribute.
16822 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
16823 (lto_output_varpool_node): Dito.
16824 (input_overwrite_node): Dito.
16825 (input_varpool_node): Dito.
16826 * varpool.c (varpool_node::add): Set no_reorder attribute.
16827 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
16828 (symbol_table::output_variables): Dito.
16829 * symtab.c (symtab_node::dump_base): Print no_reorder.
16831 2014-09-23 Jiong Wang <jiong.wang@arm.com>
16833 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM
16834 not be INVALID_REGNUM.
16836 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
16838 * configure: Regenerate.
16840 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
16842 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
16843 when result_mode == shift_mode.
16845 2014-09-23 Kostya Serebryany <kcc@google.com>
16847 Update to match the changed asan API.
16848 * asan.c (asan_global_struct): Update the __asan_global definition
16849 to match the new API.
16850 (asan_add_global): Ditto.
16851 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
16854 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16856 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
16857 refine the constraints used on 32/64-bit floating point moves.
16858 (f32_av): Likewise.
16859 (f64_vsx): Likewise.
16860 (f64_dm): Likewise.
16861 (f64_av): Likewise.
16862 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
16863 (BOOL_REGS_OP1): Likewise.
16864 (BOOL_REGS_OP2): Likewise.
16865 (BOOL_REGS_UNARY): Likewise.
16866 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
16867 32/64-bit floating point moves. Do not use wa, instead use ww/ws
16868 for moves involving VSX registers. Do not use constraints that
16869 target VSX registers for decimal types.
16870 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
16871 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
16873 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
16875 * tree.h (int_bit_position): Turn into inline function;
16876 implement using wide int.
16877 * tree.c (int_bit_position): Remove.
16879 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
16882 * target-globals.c (target_globals::~target_globals): Fix location
16883 of ira_int destruction.
16885 2014-09-23 Renlin Li <renlin.li@arm.com>
16887 * config/aarch64/aarch64.md (return): New.
16888 (simple_return): Likewise.
16889 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
16890 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
16892 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
16894 * common/config/aarch64/aarch64-common.c:
16895 (default_options aarch_option_optimization_table):
16896 Default to -fsched-pressure.
16898 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
16900 * cfgcleanup.c (try_optimize_cfg): Do not remove label
16901 with LABEL_PRESERVE_P flag set.
16903 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16905 Anna Tikhonova <anna.tikhonova@intel.com>
16906 Ilya Tocar <ilya.tocar@intel.com>
16907 Andrey Turetskiy <andrey.turetskiy@intel.com>
16908 Ilya Verbin <ilya.verbin@intel.com>
16909 Kirill Yukhin <kirill.yukhin@intel.com>
16910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16912 * config/i386/sse.md
16913 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
16914 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
16915 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
16916 (define_insn "sse2_shufpd_v2df_mask"): New.
16918 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16920 Anna Tikhonova <anna.tikhonova@intel.com>
16921 Ilya Tocar <ilya.tocar@intel.com>
16922 Andrey Turetskiy <andrey.turetskiy@intel.com>
16923 Ilya Verbin <ilya.verbin@intel.com>
16924 Kirill Yukhin <kirill.yukhin@intel.com>
16925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16927 * config/i386/sse.md
16928 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
16929 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
16930 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
16931 (define_insn "sse_shufps_v4sf_mask"): New.
16933 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16934 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16935 Anna Tikhonova <anna.tikhonova@intel.com>
16936 Ilya Tocar <ilya.tocar@intel.com>
16937 Andrey Turetskiy <andrey.turetskiy@intel.com>
16938 Ilya Verbin <ilya.verbin@intel.com>
16939 Kirill Yukhin <kirill.yukhin@intel.com>
16940 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16942 * config/i386/sse.md
16943 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
16944 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
16945 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
16946 (define_insn "unpcklps128_mask"): New.
16948 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16950 Anna Tikhonova <anna.tikhonova@intel.com>
16951 Ilya Tocar <ilya.tocar@intel.com>
16952 Andrey Turetskiy <andrey.turetskiy@intel.com>
16953 Ilya Verbin <ilya.verbin@intel.com>
16954 Kirill Yukhin <kirill.yukhin@intel.com>
16955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16957 * config/i386/sse.md
16958 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
16959 (define_insn "avx512vl_unpckhpd128_mask"): New.
16960 (define_expand "avx_movddup256<mask_name>"): Add masking.
16961 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
16962 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
16963 (define_insn "avx512vl_unpcklpd128_mask"): New.
16965 2014-09-22 Joseph Myers <joseph@codesourcery.com>
16967 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16968 * doc/tm.texi: Regenerate.
16969 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
16970 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16971 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16973 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16974 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16975 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16976 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16977 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16979 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16980 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16981 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16982 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16983 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16984 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16985 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16986 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16987 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16988 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16989 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16992 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
16994 * tree-ssa-ccp.c (prop_value_d): Rename to ...
16995 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
16996 * ipa-prop.c (struct type_change_info): Rename to ...
16997 (prop_type_change_info): ... this; update uses.
16998 * ggc-page.c (globals): Rename to ...
16999 (static struct ggc_globals): ... this; update uses.
17000 * tree-ssa-loop-im.c (mem_ref): Rename to ...
17001 (im_mem_ref): ... this; update uses.
17002 * ggc-common.c (loc_descriptor): Rename to ...
17003 (ggc_loc_descriptor): ... this; update uses.
17004 * lra-eliminations.c (elim_table): Rename to ...
17005 (lra_elim_table): ... this; update uses.
17006 * bitmap.c (output_info): Rename to ...
17007 (bitmap_output_info): ... this; update uses.
17008 * gcse.c (expr): Rename to ...
17009 (gcse_expr) ... this; update uses.
17010 (occr): Rename to ...
17011 (gcse_occr): .. this; update uses.
17012 * tree-ssa-copy.c (prop_value_d): Rename to ...
17013 (prop_value_t): ... this.
17014 * predict.c (block_info_def): Rename to ...
17015 (block_info): ... this; update uses.
17016 (edge_info_def): Rename to ...
17017 (edge_info): ... this; update uses.
17018 * profile.c (bb_info): Rename to ...
17019 (bb_profile_info): ... this; update uses.
17020 * alloc-pool.c (output_info): Rename to ...
17021 (pool_output_info): ... this; update uses.
17022 * ipa-cp.c (topo_info): Rename to ..
17023 (ipa_topo_info): ... this; update uses.
17024 * tree-nrv.c (nrv_data): Rename to ...
17025 (nrv_data_t): ... this; update uses.
17026 * ipa-split.c (bb_info): Rename to ...
17027 (split_bb_info): ... this one.
17028 * profile.h (edge_info): Rename to ...
17029 (edge_profile_info): ... this one; update uses.
17030 * dse.c (bb_info): Rename to ...
17031 (dse_bb_info): ... this one; update uses.
17032 * cprop.c (occr): Rename to ...
17033 (cprop_occr): ... this one; update uses.
17034 (expr): Rename to ...
17035 (cprop_expr): ... this one; update uses.
17037 2014-09-22 Jason Merrill <jason@redhat.com>
17039 * Makefile.in (check-parallel-%): Add @.
17041 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17043 * config/aarch64/geniterators.sh: New.
17044 * config/aarch64/iterators.md (VDQF_DF): New.
17045 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
17046 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
17048 2014-09-22 Peter A. Bigot <pab@pabigot.com>
17050 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
17051 -lnosys when -msim absent.
17053 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
17055 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
17057 2014-09-22 Richard Biener <rguenther@suse.de>
17059 * gimplify.c (gimplify_init_constructor): Do not leave
17060 non-GIMPLE vector constructors around.
17061 * tree-cfg.c (verify_gimple_assign_single): Verify that
17062 CONSTRUCTORs have gimple elements.
17064 2014-09-22 Jakub Jelinek <jakub@redhat.com>
17067 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
17068 insert a debug source bind stmt setting DEBUG_EXPR_DECL
17069 instead of a normal gimple assignment stmt.
17071 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17073 * config/bfin/bfin.md: Fix use of constraints in define_split.
17075 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17077 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
17078 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
17080 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17082 * hard-reg-set.h: Include hash-table.h.
17083 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
17085 * target-globals.c (target_globals::~target_globals): Call
17086 hard_regs->finalize.
17087 * rtl.h (subreg_shape): New structure.
17088 (shape_of_subreg): New function.
17089 (simplifiable_subregs): Declare.
17090 * reginfo.c (simplifiable_subreg): New structure.
17091 (simplifiable_subregs_hasher): Likewise.
17092 (simplifiable_subregs): New function.
17093 (invalid_mode_changes): Delete.
17094 (alid_mode_changes, valid_mode_changes_obstack): New variables.
17095 (record_subregs_of_mode): Remove subregs_of_mode parameter.
17096 Record valid mode changes in valid_mode_changes.
17097 (find_subregs_of_mode): Remove subregs_of_mode parameter.
17098 Update calls to record_subregs_of_mode.
17099 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
17100 handling. Initialize new variables. Update call to
17101 find_subregs_of_mode.
17102 (invalid_mode_change_p): Check new variables instead of
17103 invalid_mode_changes.
17104 (finish_subregs_of_mode): Finalize new variables instead of
17105 invalid_mode_changes.
17106 (target_hard_regs::finalize): New function.
17107 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
17108 even when CLASS_CANNOT_CHANGE_MODE is undefined.
17110 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17112 * combine.c (subst): Use simplify_subreg_regno rather than
17113 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
17115 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17117 * rtl.h (subreg_info): Expand commentary
17118 * rtlanal.c (subreg_get_info): Likewise.
17120 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17122 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
17123 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
17124 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
17126 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
17128 * config/arm/arm.c: #include "tm-constrs.h"
17129 (thumb1_size_rtx_costs): Adjust rtx costs.
17131 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
17133 * configure.ac (target_header_dir): Move block defining
17134 this to before the block setting inhibit_libc.
17135 (inhibit_libc): When considering $with_headers, just
17136 check it it's explicitly "no". If not, also check if
17137 $target_header_dir/stdio.h is present. If not, set
17139 * configure: Regenerate.
17141 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
17143 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
17145 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17147 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
17148 insn for divides by integer powers of two.
17149 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
17150 (mod<mode>3): Fix formatting.
17151 (three anonymous define_insn and two define_split): Delete.
17153 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17155 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
17156 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
17157 (floatdisf2_internal2): Ditto.
17158 (ashrdi3_no_power): Ditto. Fix formatting.
17160 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17162 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
17163 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
17166 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17168 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
17169 constant, use addsi3 directly.
17170 (three anonymous define_insn, two define_split): Delete.
17171 (sub<mode>3): Move. Do not allow constant second operand.
17172 Generate different insn for constant first operand.
17173 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
17174 (subf<mode>3_imm): New.
17175 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
17176 (*plus_ltu<mode>): Only handle registers.
17177 (*plus_ltu<mode>_1): New. Handle integer third operand.
17178 (*plus_gtu<mode>): Only handle registers.
17179 (*plus_gtu<mode>_1): New. Handle integer third operand.
17181 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17183 * config/rs6000/rs6000.md (iorxor): New code_iterator.
17184 (iorxor): New code_attr.
17185 (IORXOR): New code_attr.
17186 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
17187 (ior<mode>3, xor<mode>3): Delete.
17188 (<iorxor><mode>3): New.
17189 (splitter for "big" integer ior, xor): New.
17190 (*bool<mode>3): Move. Also handle AND.
17191 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
17192 (splitter for "big" integer ior, xor): Delete.
17194 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17196 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
17197 (two anonymous define_insn and two define_split): Delete.
17198 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
17200 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17202 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
17203 (two anonymous define_insn and two define_split): Delete.
17204 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
17206 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17208 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
17210 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17212 * config/rs6000/predicates.md (ca_operand): Allow subregs.
17213 (input_operand): Do not allow ca_operand.
17214 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
17215 carry bit, allow SImode and Pmode.
17216 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
17218 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
17220 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
17221 clobbered registers using clobber_reg. Remove UNSPEC decoration.
17222 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
17223 (*call_rex64_ms_sysv): Remove.
17224 (*call_value_rex64_ms_sysv): Ditto.
17225 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
17227 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
17229 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
17230 operand 3 to "CnL".
17232 2014-09-20 Andreas Schwab <schwab@suse.de>
17234 * config/ia64/ia64.md: Remove constraints from define_split
17237 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17239 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class;
17241 (possible_polymorphic_call_targets,
17242 dump_possible_polymorphic_call_targets,
17243 possible_polymorphic_call_target_p,
17244 possible_polymorphic_call_target_p): Simplify.
17245 (get_dynamic_type): Remove.
17246 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17247 (clear_speculation): Bring to ipa-deivrt.h
17248 (get_class_context): Rename to ...
17249 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17250 (contains_type_p): Update.
17251 (get_dynamic_type): Rename to ...
17252 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17253 (possible_polymorphic_call_targets): UPdate.
17254 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17255 * ipa-prop.c (ipa_analyze_call_uses): Update.
17257 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17259 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
17260 privatize dynamic TLS variables.
17262 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17264 * diagnostic.c (warning_n): New function.
17265 * diagnostic-core.h (warning_n): Declare.
17266 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
17267 output dynamic counts when available.
17269 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17271 PR tree-optimization/63255
17272 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
17273 issue in setting body_removed flag.
17275 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17278 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
17279 that visibility change is possible
17280 (handle_weakref_attribute): Likewise.
17281 * cgraph.h (symtab_node): Add method get_create and
17282 field refuse_visibility_changes.
17283 (symtab_node::get_create): New method.
17284 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17285 * varasm.c (mark_weak): Verify that visibility change is possible.
17287 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17289 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
17290 for base_reg_operand to be common between LO_SUM and PLUS.
17291 (fusion_gpr_mem_combo): New predicate to match a fused address
17292 that combines the addis and memory offset address.
17294 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
17296 (emit_fusion_gpr_load): Likewise.
17298 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
17299 signature to pass each argument separately, rather than
17300 using an operands array. Rewrite the insns found by peephole2 to
17301 be a single insn, rather than hoping the insns will still be
17302 together when the peephole pass is done. Drop being called via a
17304 (emit_fusion_gpr_load): Change calling signature to be called from
17305 the fusion_gpr_load_<mode> insns with a combined memory address
17306 instead of the peephole pass passing the addis and offset
17309 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
17311 (power8 fusion peephole): Drop support for doing power8 via a
17312 normal peephole that was created by the peephole2 pass.
17313 (power8 fusion peephole2): Create a new insn with the fused
17314 address, so that the fused operation is kept together after
17315 register allocation is done.
17316 (fusion_gpr_load_<mode>): Likewise.
17318 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17321 * tree.c (need_assembler_name_p): Do not mangle variadic types.
17323 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
17325 * recog.c (scratch_operand): Do not simply allow all hard registers:
17326 only allow those that are allocatable.
17328 2014-09-19 Felix Yang <felix.yang@huawei.com>
17330 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
17331 comments and fix spacing to conform to coding style.
17333 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17335 * genrecog.c (validate_pattern): Allow empty constraints in
17338 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
17340 * dwarf2out.c (decl_ultimate_origin): Update comment.
17341 * tree.c (block_ultimate_origin): Same.
17343 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17345 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17346 Update GCC version name to GCC 5.
17347 (rs6000_function_arg_boundary): Likewise.
17348 (rs6000_function_arg): Likewise.
17350 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17352 * config/sh/sh.md: Fix use of constraints in define_split.
17354 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
17357 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
17359 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17361 * doc/md.texi (Modifiers): Consistently use "read/write"
17362 nomenclature rather than "input/output".
17363 * genrecog.c (constraints_supported_in_insn_p): New.
17364 (validate_pattern): If needed, also check constraints on
17365 MATCH_SCRATCH operands.
17366 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
17367 operands with no '=' or '+' modifier.
17369 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17371 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
17372 scratch register as written.
17374 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17376 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
17379 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17381 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
17384 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17387 * config/s390/s390.c (s390_emit_epilogue): When doing the return
17388 address load optimization force s390_optimize_prologue to leave it
17389 that way. Only do the optimization if we already decided to push
17390 r14 into a stack slot.
17392 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
17394 * asan.c (build_check_stmt): Alignment arg was added.
17395 (asan_expand_check_ifn): Optimization for alignment >= 8.
17397 2014-09-19 Olivier Hainque <hainque@adacore.com>
17399 * config/i386/vxworksae.h: Remove obsolete definitions.
17400 (STACK_CHECK_PROTECT): Define.
17401 * config/i386/vx-common.h: Remove. Merge contents within
17402 config/i386/vxworks.h.
17403 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
17406 2014-09-19 Olivier Hainque <hainque@adacore.com>
17408 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
17409 * config/rs6000/t-vxworksmils: New file.
17410 * config/rs6000/vxworksmils.h: New file.
17412 2014-09-19 Olivier Hainque <hainque@adacore.com>
17414 * varasm.c (default_section_type_flags): Flag .persistent.bss
17415 sections as SECTION_BSS.
17417 2014-09-19 Nick Clifton <nickc@redhat.com>
17419 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
17420 pop'ed registers so that DCE does not eliminate them.
17422 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
17425 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
17427 2014-09-18 Joseph Myers <joseph@codesourcery.com>
17429 * system.h (LIBGCC2_TF_CEXT): Poison.
17430 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
17431 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
17432 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
17433 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
17434 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
17435 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
17436 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
17437 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
17438 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
17440 2014-09-19 Kito Cheng <kito@0xlab.org>
17442 * except.h: Fix header guard.
17443 * addresses.h: Add missing header guard.
17444 * cfghooks.h: Likewise.
17445 * collect-utils.h: Likewise.
17446 * collect2-aix.h: Likewise.
17447 * conditions.h: Likewise.
17448 * cselib.h: Likewise.
17449 * dwarf2asm.h: Likewise.
17450 * graphds.h: Likewise.
17451 * graphite-scop-detection.h: Likewise.
17452 * gsyms.h: Likewise.
17453 * hw-doloop.h: Likewise.
17454 * incpath.h: Likewise.
17455 * ipa-inline.h: Likewise.
17456 * ipa-ref.h: Likewise.
17457 * ira-int.h: Likewise.
17459 * lra-int.h: Likewise.
17461 * lto-section-names.h: Likewise.
17462 * read-md.h: Likewise.
17463 * reload.h: Likewise.
17464 * rtl-error.h: Likewise.
17465 * sdbout.h: Likewise.
17466 * targhooks.h: Likewise.
17467 * tree-affine.h: Likewise.
17468 * xcoff.h: Likewise.
17469 * xcoffout.h: Likewise.
17471 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17474 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
17477 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17480 * lra.c (lra): Call recog_init.
17482 2014-09-18 Jakub Jelinek <jakub@redhat.com>
17485 * asan.c (transform_statements): Don't instrument clobber statements.
17487 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17489 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
17490 to neon_load1_1reg<q>.
17492 2014-09-17 Jakub Jelinek <jakub@redhat.com>
17495 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
17496 if there are only debug stmts after the noreturn call, instead
17497 remove the debug stmts.
17499 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
17501 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
17502 (odr_types_equivalent_p): Use pair hash.
17503 (odr_subtypes_equivalent_p): Likewise, do structural compare
17504 on ODR types that may be mismatched.
17505 (warn_odr): Support warning when only one field is given.
17506 (odr_types_equivalent_p): Strenghten comparsions made;
17508 (add_type_duplicate): Update VISITED hash set.
17510 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17512 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
17513 Enable selection of 'posix' or no thread model.
17515 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
17517 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
17518 when architecture is older than ARMv7.
17520 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
17523 * config/pa/pa.c (pa_function_value): Directly handle aggregates
17524 that fit exactly in a word or double word.
17526 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
17528 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
17529 zmm/k regs support.
17531 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
17532 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17533 Anna Tikhonova <anna.tikhonova@intel.com>
17534 Ilya Tocar <ilya.tocar@intel.com>
17535 Andrey Turetskiy <andrey.turetskiy@intel.com>
17536 Ilya Verbin <ilya.verbin@intel.com>
17537 Kirill Yukhin <kirill.yukhin@intel.com>
17538 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17540 * config/i386/i386.c
17541 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
17542 * config/i386/sse.md
17543 (define_mode_iterator VI48F_256): New.
17544 (define_mode_attr extract_type): Ditto.
17545 (define_mode_attr extract_suf): Ditto.
17546 (define_mode_iterator AVX512_VEC): Ditto.
17548 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
17550 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
17552 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
17554 (define_mode_attr extract_type_2): Ditto.
17555 (define_mode_attr extract_suf_2): Ditto.
17556 (define_mode_iterator AVX512_VEC_2): Ditto.
17558 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
17559 AVX512_VEC_2 mode iterator.
17560 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17561 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
17562 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17563 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17564 (define_split for V16FI mode): Ditto.
17565 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17566 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17567 (define_split for VI8F_256 mode): Ditto.
17568 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17569 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17570 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17571 (define_split for VI4F_256 mode): Ditto.
17572 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
17573 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17574 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17575 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
17576 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
17577 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
17578 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
17579 Update `type' attribute, remove explicit `memory' attribute calculation.
17581 2014-09-16 Kito Cheng <kito@0xlab.org>
17583 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
17584 ira_spilled_reg_stack_slots_num if using lra.
17585 (do_reload): Remove release ira_spilled_reg_stack_slots part.
17586 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
17587 make sure not using lra.
17588 (ira_reuse_stack_slot): Likewise.
17589 (ira_mark_new_stack_slot): Likewise.
17591 2014-09-15 Andi Kleen <ak@linux.intel.com>
17593 * function.c (allocate_struct_function): Force
17594 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
17595 profiling is disabled.
17597 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17599 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
17600 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
17601 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
17602 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
17603 macro with statically checked member functions.
17604 * rtl.h (rtx_insn::deleted): New method.
17605 (rtx_insn::set_deleted): Likewise.
17606 (rtx_insn::set_undeleted): Likewise.
17607 (INSN_DELETED_P): Remove.
17609 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17611 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
17612 result of emit_jump_insn_before to a new variable.
17613 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
17614 (mark_jump_label_1): Likewise.
17615 (mark_jump_label_asm): Likewise.
17616 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
17617 * rtl.h (mark_jump_label): Adjust.
17619 2014-09-15 Jakub Jelinek <jakub@redhat.com>
17621 * Makefile.in (dg_target_exps): Remove.
17622 (check_gcc_parallelize): Change to just an upper bound number.
17623 (check-%-subtargets): Always print the non-parallelized goals.
17624 (check_p_vars, check_p_comma, check_p_subwork): Remove.
17625 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
17626 check_p_numbers3, check_p_numbers4, check_p_numbers5,
17627 check_p_numbers6): New variables.
17628 (check_p_numbers): Set to sequence from 1 to 9999.
17629 (check_p_subdirs): Set to sequence from 1 to minimum of
17630 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
17632 (check-%, check-parallel-%): Rewritten so that for parallelized
17633 testing each job runs all the *.exp files, with
17634 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
17636 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17638 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
17640 (arc_sets_cc_p): Likewise.
17641 * config/arc/arc.c (arc_print_operand): Use methods of
17642 "final_sequence" for clarity, and to enable strengthening of
17643 locals "jump" and "delay" from rtx to rtx_insn *.
17644 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
17645 rtx_insn *; use method of rtx_sequence for typesafety.
17646 (arc_get_insn_variants): Use insn method of rtx_sequence for
17648 (arc_pad_return): Likewise.
17649 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
17650 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
17651 dyn_cast to rtx_sequence *, using insn method for typesafety.
17652 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
17653 rtx_sequence * and use insn method when invoking get_attr_length.
17654 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
17655 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
17656 rtx_sequence *, introducing a local "seq", using its insn method
17657 from typesafety and clarity.
17658 (add_sched_insns_for_speculation): Strengthen local "next" from
17660 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
17661 (predicate_insn): Likewise.
17662 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
17664 * config/cris/cris.c (cris_notice_update_cc): Likewise.
17665 * config/epiphany/epiphany-protos.h
17666 (extern void epiphany_insert_mode_switch_use): Likewise for param
17668 (get_attr_sched_use_fpu): Likewise for param.
17669 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
17670 Likewise for param "insn".
17671 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
17672 param "insn" of "target_insert_mode_switch_use" callback.
17673 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
17674 (frv_issues_to_branch_unit_p): Likewise.
17675 (frv_pack_insn_p): Likewise.
17676 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
17677 const rtx * (i.e. mutable rtx_def * const *) to
17678 rtx_insn * const *.
17679 * config/i386/i386-protos.h (standard_sse_constant_opcode):
17680 Strengthen first param from rtx to rtx_insn *.
17681 (output_fix_trunc): Likewise.
17682 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
17683 (output_fix_trunc): Likewise.
17684 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
17686 (min_insn_size): Likewise for param "insn".
17687 (get_mem_group): Likewise.
17688 (is_cmp): Likewise.
17689 (get_insn_path): Likewise.
17690 (get_insn_group): Likewise.
17691 (count_num_restricted): Likewise.
17692 (fits_dispatch_window): Likewise.
17693 (add_insn_window): Likewise.
17694 (add_to_dispatch_window): Likewise.
17695 (debug_insn_dispatch_info_file): Likewise.
17696 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
17698 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
17699 "cmp" and local "prev".
17700 (m32c_output_compare): Likewise for param "insn".
17701 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
17702 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
17703 (define_predicate "large_insn_p"): Likewise.
17704 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
17705 param from rtx to rtx_insn *.
17706 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
17707 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
17708 (m68k_sched_attr_size): Likewise.
17709 (sched_get_opxy_mem_type): Likewise for param "insn".
17710 (m68k_sched_attr_op_mem): Likewise.
17711 (sched_mem_operand_p): Likewise.
17712 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
17713 * config/mep/mep.c (mep_multi_slot): Likewise.
17714 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
17716 (mips_sync_loop_insns): Likewise.
17717 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
17718 method of "final_sequence" for typesafety.
17719 (mips_process_sync_loop): Strengthen param "insn" from rtx to
17721 (mips_output_sync_loop): Likewise.
17722 (mips_sync_loop_insns): Likewise.
17723 (mips_74k_agen_init): Likewise.
17724 (mips_sched_init): Use NULL rather than NULL_RTX when working with
17726 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
17727 Strengthen param "insn" from rtx to rtx_insn *.
17728 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
17730 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for param.
17731 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
17732 "insn". Use method of rtx_sequence for typesafety.
17733 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
17735 (branch_needs_nop_p): Likewise.
17736 (use_skip_p): Likewise.
17737 (pa_insn_refs_are_delayed): Likewise.
17738 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
17739 for locals "insn", "ninsn".
17740 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
17742 (is_cracked_insn): Likewise.
17743 (is_branch_slot_insn): Likewise.
17744 (is_nonpipeline_insn): Likewise.
17745 (insn_terminates_group_p): Likewise.
17746 (insn_must_be_first_in_group): Likewise.
17747 (insn_must_be_last_in_group): Likewise.
17748 (force_new_group): Likewise for param "next_insn".
17749 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
17751 (s390_sched_score): Likewise.
17752 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
17753 (rtx sfunc_uses_reg): Likewise for sole param.
17754 * config/sh/sh.c (sh_print_operand): Use insn method of
17755 final_sequence for typesafety.
17756 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
17757 Use insn method of final_sequence for typesafety.
17758 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
17759 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
17761 (eligible_for_return_delay): Likewise.
17762 (eligible_for_sibcall_delay): Likewise.
17763 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
17764 (eligible_for_return_delay): Likewise.
17765 (eligible_for_sibcall_delay): Likewise.
17766 * config/stormy16/stormy16-protos.h
17767 (xstormy16_output_cbranch_hi): Likewise for final param.
17768 (xstormy16_output_cbranch_si): Likewise.
17769 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
17770 (xstormy16_output_cbranch_si): Likewise.
17771 * config/v850/v850-protos.h (notice_update_cc): Likewise.
17772 * config/v850/v850.c (notice_update_cc): Likewise.
17774 * final.c (get_attr_length_1): Strengthen param "insn" and param
17775 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
17776 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
17777 (get_attr_min_length): Likewise.
17778 (shorten_branches): Likewise for signature of locals "length_fun"
17779 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
17780 from a checked cast and use its methods for clarity and to enable
17781 strengthening local "inner_insn" from rtx to rtx_insn *.
17782 * genattr.c (gen_attr): When writing out the prototypes of the
17783 various generated "get_attr_" functions, strengthen the params of
17784 the non-const functions from rtx to rtx_insn *.
17785 Similarly, strengthen the params of insn_default_length,
17786 insn_min_length, insn_variable_length_p, insn_current_length.
17787 (main): Similarly, strengthen the param of num_delay_slots,
17788 internal_dfa_insn_code, insn_default_latency, bypass_p,
17789 insn_latency, min_issue_delay, print_reservation,
17790 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
17791 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
17792 to hook_int_rtx_insn_unreachable.
17793 * genattrtab.c (write_attr_get): When writing out the generated
17794 "get_attr_" functions, strengthen the param "insn" from rtx to
17795 rtx_insn *, eliminating a checked cast.
17796 (make_automaton_attrs): When writing out prototypes of
17797 "internal_dfa_insn_code_", "insn_default_latency_" functions
17798 and the "internal_dfa_insn_code" and "insn_default_latency"
17799 callbacks, strengthen their params from rtx to rtx_insn *
17800 * genautomata.c (output_internal_insn_code_evaluation): When
17801 writing out code, add a checked cast from rtx to rtx_insn * when
17802 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
17803 (output_dfa_insn_code_func): Strengthen param of generated
17804 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
17805 (output_trans_func): Likewise for generated function
17806 "state_transition".
17807 (output_internal_insn_latency_func): When writing out generated
17808 function "internal_insn_latency", rename params from "insn" and
17809 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
17810 locals "insn" and "insn2" as rtx_insn * with checked casts once
17811 we've proven that we're not dealing with const0_rtx.
17812 (output_insn_latency_func): Strengthen param of generated
17813 function "insn_latency" from rtx to rtx_insn *.
17814 (output_print_reservation_func): Likewise for generated function
17815 "print_reservation".
17816 (output_insn_has_dfa_reservation_p): Likewise for generated
17817 function "insn_has_dfa_reservation_p".
17818 * hooks.c (hook_int_rtx_unreachable): Rename to...
17819 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
17820 from rtx to rtx_insn *.
17821 * hooks.h (hook_int_rtx_unreachable): Likewise.
17822 (extern int hook_int_rtx_insn_unreachable): Likewise.
17823 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
17824 (get_attr_min_length): Likewise.
17825 * recog.c (get_enabled_alternatives): Likewise.
17826 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
17827 * reorg.c (find_end_label): Introduce local rtx "pat" and
17828 strengthen local "insn" from rtx to rtx_insn *.
17829 (redundant_insn): Use insn method of "seq" rather than element for
17830 typesafety; strengthen local "control" from rtx to rtx_insn *.
17831 * resource.c (mark_referenced_resources): Add checked cast to
17832 rtx_insn * within INSN/JUMP_INSN case.
17833 (mark_set_resources): Likewise.
17834 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
17837 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17839 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
17840 param "label" from rtx to rtx_insn *.
17841 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
17843 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
17844 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
17845 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
17846 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
17847 * final.c (default_label_align_after_barrier_max_skip): Strengthen
17848 param from rtx to rtx_insn *.
17849 (default_loop_align_max_skip): Likewise.
17850 (default_label_align_max_skip): Likewise.
17851 (default_jump_align_max_skip): Likewise.
17852 * target.def (label_align_after_barrier_max_skip): Likewise.
17853 (loop_align_max_skip): Likewise.
17854 (label_align_max_skip): Likewise.
17855 (jump_align_max_skip): Likewise.
17856 * targhooks.h (default_label_align_after_barrier_max_skip): Likewise.
17857 (default_loop_align_max_skip): Likewise.
17858 (default_label_align_max_skip): Likewise.
17859 (default_jump_align_max_skip): Likewise.
17861 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17863 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
17864 from const_rtx to const rtx_insn *. Update union members from rtx
17866 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
17867 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
17868 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
17869 strengthen both params from const_rtx to const rtx_insn *.
17870 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
17871 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
17872 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
17874 * target.def (can_follow_jump): Strengthen both params from
17875 const_rtx to const rtx_insn *, and update default implementation
17876 from hook_bool_const_rtx_const_rtx_true to
17877 hook_bool_const_rtx_insn_const_rtx_insn_true.
17879 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17881 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
17882 "insn" from rtx to rtx_insn *.
17883 * sched-int.h (deps_start_bb): Likewise for 2nd param.
17885 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17886 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17887 Anna Tikhonova <anna.tikhonova@intel.com>
17888 Ilya Tocar <ilya.tocar@intel.com>
17889 Andrey Turetskiy <andrey.turetskiy@intel.com>
17890 Ilya Verbin <ilya.verbin@intel.com>
17891 Kirill Yukhin <kirill.yukhin@intel.com>
17892 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17894 * config/i386/sse.md
17895 (define_insn "vcvtph2ps<mask_name>"): Add masking.
17896 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
17897 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
17898 (define_expand "vcvtps2ph_mask"): New.
17899 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
17900 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
17901 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
17903 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17905 Anna Tikhonova <anna.tikhonova@intel.com>
17906 Ilya Tocar <ilya.tocar@intel.com>
17907 Andrey Turetskiy <andrey.turetskiy@intel.com>
17908 Ilya Verbin <ilya.verbin@intel.com>
17909 Kirill Yukhin <kirill.yukhin@intel.com>
17910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17912 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
17914 (define_mode_iterator VI24_AVX512BW_1): Ditto.
17915 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
17916 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
17917 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
17918 also for TARGET_AVX512VL.
17919 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
17921 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
17923 * doc/install.texi (Options specification): add
17924 --disable-libsanitizer item.
17926 2014-09-14 James Clarke <jrtc27@jrtc27.com>
17927 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17930 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
17932 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
17933 kernel version check to avoid incrementing it after every major OS X
17935 (darwin_default_min_version): Avoid static memory buffer.
17937 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
17939 * tree.c (need_assembler_name_p): Store C++ type mangling only
17942 2014-09-13 Marek Polacek <polacek@redhat.com>
17944 * tree.c (protected_set_expr_location): Don't check whether T is
17947 2014-09-12 DJ Delorie <dj@redhat.com>
17949 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
17950 (extend_and_shift1_hipsi2): Likewise.
17951 (extend_and_shift2_hipsi2): Likewise.
17953 2014-09-12 David Malcolm <dmalcolm@redhat.com>
17955 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
17956 with NULL when dealing with an insn.
17957 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
17958 from rtx to rtx_insn *.
17959 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
17960 const_rtx to const rtx_insn *.
17961 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
17963 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
17965 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
17968 2014-09-12 Joseph Myers <joseph@codesourcery.com>
17970 * target.def (libgcc_floating_mode_supported_p): New hook.
17971 * targhooks.c (default_libgcc_floating_mode_supported_p): New
17973 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
17974 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
17975 (LIBGCC2_HAS_TF_MODE): Remove.
17976 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
17977 * doc/tm.texi: Regenerate.
17978 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
17980 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
17981 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
17982 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
17983 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
17984 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17985 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
17986 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
17987 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
17988 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
17989 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
17991 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
17992 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17993 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17994 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17995 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17996 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17997 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17998 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
17999 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
18000 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
18001 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18002 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
18003 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
18004 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
18006 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
18008 (ia64_libgcc_floating_mode_supported_p): New function.
18009 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
18010 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
18011 (IA64_NO_LIBGCC_TFMODE): Define.
18012 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
18013 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18014 (pdp11_scalar_mode_supported_p): New function.
18015 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
18016 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
18018 2014-09-12 Richard Biener <rguenther@suse.de>
18020 PR middle-end/63237
18021 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
18023 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
18025 * tree.c (integer_each_onep): New function.
18026 * tree.h (integer_each_onep): Declare it.
18027 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
18028 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
18029 (X & 1) == 0 for vector and complex.
18031 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18033 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
18035 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
18036 cost to spilling from integer to FP registers.
18038 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18040 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
18042 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
18043 are now handled correctly.
18045 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18047 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
18048 handling of CALLER_SAVE_REGS and POINTER_REGS.
18050 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18052 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
18053 the number of hard registers.
18055 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18056 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18057 Anna Tikhonova <anna.tikhonova@intel.com>
18058 Ilya Tocar <ilya.tocar@intel.com>
18059 Andrey Turetskiy <andrey.turetskiy@intel.com>
18060 Ilya Verbin <ilya.verbin@intel.com>
18061 Kirill Yukhin <kirill.yukhin@intel.com>
18062 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18064 * config/i386/sse.md
18065 (define_mode_iterator VI48_AVX512VL): New.
18066 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
18067 "avx512f_vternlog<mode>_maskz" and update mode iterator.
18068 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
18069 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
18070 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
18071 "avx512f_vternlog<mode>_mask" and update mode iterator.
18072 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
18073 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
18075 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
18076 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
18077 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
18078 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
18079 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
18080 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
18082 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18083 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18084 Anna Tikhonova <anna.tikhonova@intel.com>
18085 Ilya Tocar <ilya.tocar@intel.com>
18086 Andrey Turetskiy <andrey.turetskiy@intel.com>
18087 Ilya Verbin <ilya.verbin@intel.com>
18088 Kirill Yukhin <kirill.yukhin@intel.com>
18089 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18091 * config/i386/sse.md (VI128_256): Delete.
18092 (define_mode_iterator VI124_256): New.
18093 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
18094 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
18095 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
18096 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
18097 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
18098 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
18099 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
18100 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
18102 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
18103 in presence of AVX-512.
18105 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18106 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18107 Anna Tikhonova <anna.tikhonova@intel.com>
18108 Ilya Tocar <ilya.tocar@intel.com>
18109 Andrey Turetskiy <andrey.turetskiy@intel.com>
18110 Ilya Verbin <ilya.verbin@intel.com>
18111 Kirill Yukhin <kirill.yukhin@intel.com>
18112 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18114 * config/i386/sse.md
18115 (define_expand "<avx512>_gathersi<mode>"): Rename from
18116 "avx512f_gathersi<mode>".
18117 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
18118 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
18119 (define_expand "<avx512>_gatherdi<mode>"): Rename from
18120 "avx512f_gatherdi<mode>".
18121 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
18122 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
18124 (define_expand "<avx512>_scattersi<mode>"): Rename from
18125 "avx512f_scattersi<mode>".
18126 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
18127 (define_expand "<avx512>_scatterdi<mode>"): Rename from
18128 "avx512f_scatterdi<mode>".
18129 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
18131 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
18133 * ira.h (ira_finish_once): Delete.
18134 * ira-int.h (target_ira_int::~target_ira_int): Declare.
18135 (target_ira_int::free_ira_costs): Likewise.
18136 (target_ira_int::free_register_move_costs): Likewise.
18137 (ira_finish_costs_once): Delete.
18138 * ira.c (free_register_move_costs): Replace with...
18139 (target_ira_int::free_register_move_costs): ...this new function.
18140 (target_ira_int::~target_ira_int): Define.
18141 (ira_init): Call free_register_move_costs as a member function rather
18142 than a global function.
18143 (ira_finish_once): Delete.
18144 * ira-costs.c (free_ira_costs): Replace with...
18145 (target_ira_int::free_ira_costs): ...this new function.
18146 (ira_init_costs): Call free_ira_costs as a member function rather
18147 than a global function.
18148 (ira_finish_costs_once): Delete.
18149 * target-globals.c (target_globals::~target_globals): Call the
18150 target_ira_int destructor.
18151 * toplev.c: Include lra.h.
18152 (finalize): Call lra_finish_once rather than ira_finish_once.
18154 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
18156 * common.opt (flto-odr-type-merging): New flag.
18157 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
18158 (types_same_for_odr): Likewise.
18159 (odr_subtypes_equivalent_p): Likewise.
18160 (add_type_duplicate): Do not walk type variants.
18161 (register_odr_type): New function.
18162 * ipa-utils.h (register_odr_type): Declare.
18163 (odr_type_p): New function.
18164 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
18166 * doc/invoke.texi (-flto-odr-type-merging): Document.
18167 * tree.c (need_assembler_name_p): Compute ODR names when asked
18169 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
18171 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
18174 * config/i386/i386.c (ix86_option_override_internal): Also turn
18175 off OPTION_MASK_ABI_X32 for -m16.
18177 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18179 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
18182 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
18185 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18186 Directly forward to __*_DENORM_MIN__.
18188 2014-09-11 David Malcolm <dmalcolm@redhat.com>
18190 * rtl.h (LABEL_REF_LABEL): New macro.
18192 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
18193 of XEXP (, 0), where we know that we have a LABEL_REF.
18194 * cfgbuild.c (make_edges): Likewise.
18195 (purge_dead_tablejump_edges): Likewise.
18196 * cfgexpand.c (convert_debug_memory_address): Likewise.
18197 * cfgrtl.c (patch_jump_insn): Likewise.
18198 * combine.c (distribute_notes): Likewise.
18199 * cse.c (hash_rtx_cb): Likewise.
18200 (exp_equiv_p): Likewise.
18201 (fold_rtx): Likewise.
18202 (check_for_label_ref): Likewise.
18203 * cselib.c (rtx_equal_for_cselib_1): Likewise.
18204 (cselib_hash_rtx): Likewise.
18205 * emit-rtl.c (mark_label_nuses): Likewise.
18206 * explow.c (convert_memory_address_addr_space): Likewise.
18207 * final.c (output_asm_label): Likewise.
18208 (output_addr_const): Likewise.
18209 * gcse.c (add_label_notes): Likewise.
18210 * genconfig.c (walk_insn_part): Likewise.
18211 * genrecog.c (validate_pattern): Likewise.
18212 * ifcvt.c (cond_exec_get_condition): Likewise.
18213 (noce_emit_store_flag): Likewise.
18214 (noce_get_alt_condition): Likewise.
18215 (noce_get_condition): Likewise.
18216 * jump.c (maybe_propagate_label_ref): Likewise.
18217 (mark_jump_label_1): Likewise.
18218 (redirect_exp_1): Likewise.
18219 (rtx_renumbered_equal_p): Likewise.
18220 * lra-constraints.c (operands_match_p): Likewise.
18221 * reload.c (operands_match_p): Likewise.
18222 (find_reloads): Likewise.
18223 * reload1.c (set_label_offsets): Likewise.
18224 * reorg.c (get_branch_condition): Likewise.
18225 * rtl.c (rtx_equal_p_cb): Likewise.
18226 (rtx_equal_p): Likewise.
18227 * rtlanal.c (reg_mentioned_p): Likewise.
18228 (rtx_referenced_p): Likewise.
18229 (get_condition): Likewise.
18230 * sched-vis.c (print_value): Likewise.
18231 * varasm.c (const_hash_1): Likewise.
18232 (compare_constant): Likewise.
18233 (const_rtx_hash_1): Likewise.
18234 (output_constant_pool_1): Likewise.
18236 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18238 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
18239 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
18241 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
18242 cr6_test_for_lt_reverse): Ditto.
18244 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
18247 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
18249 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18251 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
18252 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
18253 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
18254 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
18257 (aarch64_fold_builtin): Remove all reinterpret cases.
18259 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18261 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
18263 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
18264 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
18265 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
18266 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
18267 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
18268 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
18269 aarch64_reinterpretv2df<mode>): Delete.
18271 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
18273 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
18274 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
18275 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
18276 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
18277 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
18278 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
18279 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
18280 vreinterpret_u32_f64): Use cast.
18282 * config/aarch64/iterators.md (VD_RE): Delete.
18284 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18286 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
18287 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
18288 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
18289 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
18290 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
18291 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
18292 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
18293 Replace inline assembler with __aarch64_vset_lane_any.
18295 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
18297 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
18299 (vmull_high_lane_s32): Likewise.
18300 (vmull_high_lane_u16): Likewise.
18301 (vmull_high_lane_u32): Likewise.
18303 2014-09-11 Jason Merrill <jason@redhat.com>
18306 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
18308 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
18311 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
18312 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
18313 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
18315 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18316 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18317 Anna Tikhonova <anna.tikhonova@intel.com>
18318 Ilya Tocar <ilya.tocar@intel.com>
18319 Andrey Turetskiy <andrey.turetskiy@intel.com>
18320 Ilya Verbin <ilya.verbin@intel.com>
18321 Kirill Yukhin <kirill.yukhin@intel.com>
18322 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18324 * config/i386/sse.md
18325 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
18326 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
18327 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
18329 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
18330 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
18332 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18334 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
18335 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
18336 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
18337 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
18338 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
18339 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
18340 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
18341 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
18343 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18345 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
18346 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
18347 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
18349 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18351 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
18352 to access removed nodes.
18354 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18356 PR tree-optimization/63186
18357 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
18358 (mark_nonssa_use): Likewise.
18359 (verify_non_ssa_vars): Verify all header blocks for label
18362 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18363 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18364 Anna Tikhonova <anna.tikhonova@intel.com>
18365 Ilya Tocar <ilya.tocar@intel.com>
18366 Andrey Turetskiy <andrey.turetskiy@intel.com>
18367 Ilya Verbin <ilya.verbin@intel.com>
18368 Kirill Yukhin <kirill.yukhin@intel.com>
18369 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18371 * config/i386/sse.md
18372 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
18373 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
18374 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
18375 "<avx2_avx512f>_permvar<mode><mask_name>".
18376 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
18377 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
18378 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
18379 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
18381 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
18382 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18383 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
18384 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18386 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18388 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
18389 V2DF, V4SF, DF, and DI modes.
18390 (vsx_fmav2df2): Likewise.
18391 (vsx_float_fix_<mode>2): Likewise.
18392 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
18394 2014-09-10 Xinliang David Li <davidxl@google.com>
18397 * config/arm/arm.md (movcond_addsi): Handle case where source
18398 and target operands are the same.
18400 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18402 * final.c (this_is_asm_operands): Strengthen this variable from
18403 rtx to const rtx_insn *.
18404 * output.h (this_is_asm_operands): Likewise.
18405 * rtl-error.c (location_for_asm): Strengthen param "insn" from
18406 const_rtx to const rtx_insn *.
18407 (diagnostic_for_asm): Likewise.
18408 * rtl-error.h (error_for_asm): Likewise.
18409 (warning_for_asm): Likewise.
18411 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18413 * genextract.c (print_header): When writing out insn_extract to
18414 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
18415 * recog.h (insn_extract): Strengthen the param from rtx to
18418 2014-09-10 Mike Stump <mikestump@comcast.net>
18420 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
18423 2014-09-10 Martin Jambor <mjambor@suse.cz>
18425 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
18426 (analyze): Do not set analyze flag if expand_thunk returns false;.
18427 (create_wrapper): Likewise.
18428 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
18430 2014-09-10 Martin Jambor <mjambor@suse.cz>
18433 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
18434 new decl properly. Analyze the new thunk if it is expanded.
18436 2014-09-10 Andreas Schwab <schwab@suse.de>
18438 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
18439 [USED_FOR_TARGET]: Define.
18441 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
18443 * config/mips/mips.c (mips_secondary_reload_class): Handle
18446 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
18448 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
18451 2014-09-10 Jakub Jelinek <jakub@redhat.com>
18453 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
18454 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
18455 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
18456 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
18457 flag_delete_null_pointer_checks for them.
18458 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18459 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
18460 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
18461 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
18462 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
18464 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
18465 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
18466 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
18467 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
18468 * doc/invoke.texi (-fsanitize=nonnull-attribute,
18469 -fsanitize=returns-nonnull-attribute): Document.
18471 * ubsan.h (struct ubsan_mismatch_data): Removed.
18472 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18473 * ubsan.c (ubsan_source_location): For unknown locations,
18474 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
18475 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18476 Allow more than one location and arbitrary extra arguments passed
18477 in ... instead of through MISMATCH pointer.
18478 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
18479 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18480 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
18483 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18484 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18485 Anna Tikhonova <anna.tikhonova@intel.com>
18486 Ilya Tocar <ilya.tocar@intel.com>
18487 Andrey Turetskiy <andrey.turetskiy@intel.com>
18488 Ilya Verbin <ilya.verbin@intel.com>
18489 Kirill Yukhin <kirill.yukhin@intel.com>
18490 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18492 * config/i386/sse.md
18493 (define_mode_iterator VI48F): New.
18494 (define_insn "<avx512>_compress<mode>_mask"): Rename from
18495 "avx512f_compress<mode>_mask" and update mode iterator.
18496 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
18497 "avx512f_compressstore<mode>_mask" and update mode iterator.
18498 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
18499 "avx512f_expand<mode>_maskz" and update mode iterator.
18500 (define_insn "<avx512>_expand<mode>_mask"): Rename from
18501 "avx512f_expand<mode>_mask" and update mode iterator.
18503 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18505 Anna Tikhonova <anna.tikhonova@intel.com>
18506 Ilya Tocar <ilya.tocar@intel.com>
18507 Andrey Turetskiy <andrey.turetskiy@intel.com>
18508 Ilya Verbin <ilya.verbin@intel.com>
18509 Kirill Yukhin <kirill.yukhin@intel.com>
18510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18512 * config/i386/i386.c
18513 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
18514 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
18515 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
18516 avx512dq_rangepv4sf_mask.
18517 * config/i386/sse.md
18518 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
18520 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
18521 (define_insn "reduces<mode>"): Ditto.
18522 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
18524 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
18525 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
18526 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
18528 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18529 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18530 Anna Tikhonova <anna.tikhonova@intel.com>
18531 Ilya Tocar <ilya.tocar@intel.com>
18532 Andrey Turetskiy <andrey.turetskiy@intel.com>
18533 Ilya Verbin <ilya.verbin@intel.com>
18534 Kirill Yukhin <kirill.yukhin@intel.com>
18535 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18537 * config/i386/i386.c
18538 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
18539 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
18540 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
18541 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
18542 avx512vl_getmantv2df_mask.
18543 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
18544 avx512f_vgetmantv4sf_round.
18545 * config/i386/sse.md
18546 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
18547 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
18549 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
18550 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
18551 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
18552 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
18554 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
18555 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
18556 update mode iterator.
18558 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
18559 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
18562 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
18563 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
18564 update mode iterator.
18565 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
18566 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
18569 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
18570 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
18572 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
18573 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
18574 update mode iterator.
18575 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
18576 "avx512f_getmant<mode><round_saeonly_name>".
18578 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18581 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
18583 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18584 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18585 Anna Tikhonova <anna.tikhonova@intel.com>
18586 Ilya Tocar <ilya.tocar@intel.com>
18587 Andrey Turetskiy <andrey.turetskiy@intel.com>
18588 Ilya Verbin <ilya.verbin@intel.com>
18589 Kirill Yukhin <kirill.yukhin@intel.com>
18590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18592 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
18593 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
18594 (define_mode_iterator FMAMODE_AVX512): New.
18595 (define_mode_iterator FMAMODE): Remove conditions.
18596 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
18597 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
18598 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
18600 (define_mode_iterator FMAMODE_NOVF512): Remove.
18601 (define_insn "*fma_fmadd_<mode>"): Rename from
18602 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
18603 FMAMODE mode iterator.
18604 (define_mode_iterator VF_SF_AVX512VL): New.
18605 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
18606 Use VF_SF_AVX512VL mode iterator.
18607 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
18608 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18610 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
18611 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18613 (define_insn "*fma_fmsub_<mode>"): Rename from
18614 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
18615 FMAMODE mode iterator.
18616 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
18617 Use VF_SF_AVX512VL mode iterator.
18618 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
18619 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18621 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
18622 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18624 (define_insn "*fma_fnmadd_<mode>"): Rename from
18625 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
18626 use FMAMODE mode iterator.
18627 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
18628 Use VF_SF_AVX512VL mode iterator.
18629 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
18630 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18632 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
18633 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18635 (define_insn "*fma_fnmsub_<mode>"): Rename from
18636 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
18637 FMAMODE mode iterator.
18638 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
18639 Use VF_SF_AVX512VL mode iterator.
18640 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
18641 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18643 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
18644 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18646 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
18647 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
18648 use VF_AVX512VL mode iterator.
18649 (define_insn "*fma_fmaddsub_<mode>"): Rename from
18650 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
18651 remove subst usage.
18652 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
18653 Use VF_SF_AVX512VL mode iterator.
18654 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
18655 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18657 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
18658 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18660 (define_insn "*fma_fmsubadd_<mode>"): Rename from
18661 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
18662 remove usage of subst.
18663 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
18664 Use VF_SF_AVX512VL mode iterator.
18665 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
18666 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18668 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
18669 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18672 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
18675 * calls.c (precompute_arguments): Check
18676 promoted_for_signed_and_unsigned_p and set the promoted mode.
18677 (promoted_for_signed_and_unsigned_p): New function.
18678 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18679 and set the promoted mode.
18680 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18681 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18682 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18684 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18686 * opth-gen.awk: Generate mapping from cpp message reasons to the
18687 options that enable them.
18688 * doc/options.texi (CppReason): Document.
18690 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18692 * doc/invoke.texi (Wnormalized=): Update.
18694 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
18697 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
18698 operands. Split off the constant operand alternative to ...
18699 (*bool<mode>3_imm): New.
18701 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18703 * rtl.h (single_set_2): Strengthen first param from const_rtx to
18704 const rtx_insn *, and move prototype to above...
18705 (single_set): ...this. Convert this from a macro to an inline
18706 function, enforcing the requirement that the param is a const
18708 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
18710 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18711 Strengthen both params from rtx to rtx_insn *.
18712 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18713 Likewise; introduce locals "producer_set", "consumer_set", using
18714 them in place of "producer" and "consumer" when dealing with SET
18716 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
18717 when invoking single_set in region guarded by INSN_P.
18718 (avr_out_bitop): Likewise.
18719 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
18720 region guarded by GET_CODE check, using methods to strengthen
18721 local "this_insn" from rtx to rtx_insn *, and for clarity.
18722 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
18723 Strengthen local "insn" from rtx to rtx_insn *.
18724 (define_insn_and_split "xload<mode>_A"): Likewise.
18725 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
18727 (find_load): Likewise for return type.
18728 (workaround_speculation): Likewise for both locals named
18730 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
18732 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
18734 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
18736 * config/h8300/h8300.c (notice_update_cc): Likewise.
18737 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
18738 "insn" and "dep_insn".
18739 (exact_store_load_dependency): Likewise for both params.
18740 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
18741 since this now clashes with inline function. Instead, delay
18742 calling single_set until the point where its needed, and then
18743 assign the result to "compare_set" and rework the conditional that
18745 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
18746 local "last" from rtx to rtx_insn *.
18747 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
18749 (mips_store_data_bypass_p): Likewise for both params.
18750 * config/mips/mips.c (mips_load_store_insns): Likewise for second
18752 (mips_store_data_bypass_p): Likewise for both params.
18753 (mips_orphaned_high_part_p): Likewise for param "insn".
18754 * config/mn10300/mn10300.c (extract_bundle): Likewise.
18755 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
18756 Introduce local rtx "insn2_pat".
18757 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
18759 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
18760 Introduce local rtx "set", using it in place of "insn" for the
18761 result of single_set. This appears to fix a bug, since the call
18762 to find_regno_note on a SET does nothing.
18763 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
18764 params from rtx to rtx_insn *.
18765 (set_to_load_agen): Likewise.
18766 * config/s390/s390.c (s390_label_align): Likewise for local
18767 "prev_insn". Introduce new rtx locals "set" and "src", using
18768 them in place of "prev_insn" for the results of single_set
18769 and SET_SRC respectively.
18770 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
18771 Introduce new rtx local "set" using in place of "jump" for the
18772 result of single_set. Use SET_SRC (set) rather than plain
18774 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
18776 (noncall_uses_reg): Likewise.
18777 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
18778 guarded by GET_CODE check, using its methods for clarity, and to
18779 enable strengthening local "this_insn" from rtx to rtx_insn *.
18780 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
18781 "insn" from rtx to rtx_insn *.
18782 (define_expand "umulhisi3"): Likewise.
18783 (define_expand "smulsi3_highpart"): Likewise.
18784 (define_expand "umulsi3_highpart"): Likewise.
18785 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18786 local "after". Replace GET_CODE check with a dyn_cast,
18787 introducing new local rtx_sequence * "seq", using insn method for
18790 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
18791 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
18792 place of "insn" once we're dealing with patterns rather than the
18794 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
18795 (scan_trace): Likewise for local "elt", updating lookups within
18796 sequence to use insn method rather than element method.
18797 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
18799 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
18800 * ifcvt.c (noce_try_abs): Likewise for local "insn".
18801 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
18802 invoking single_set.
18803 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
18804 "insn" from rtx to rtx_insn *.
18805 (skip_usage_debug_insns): Likewise for return type, adding a
18807 (check_secondary_memory_needed_p): Likewise for local "insn".
18808 (inherit_reload_reg): Likewise.
18809 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
18810 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
18812 (store_data_bypass_p): Likewise for both params.
18813 (if_test_bypass_p): Likewise.
18814 * recog.h (store_data_bypass_p): Likewise for both params.
18815 (if_test_bypass_p): Likewise.
18816 * reload.c (find_equiv_reg): Likewise for local "where".
18817 * reorg.c (delete_jump): Likewise for param "insn".
18818 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
18819 to const rtx_insn *.
18820 * store-motion.c (replace_store_insn): Likewise for param "del".
18821 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
18822 and use its methods for clarity, and to strengthen local "del"
18823 from rtx to rtx_insn *.
18824 (build_store_vectors): Use insn method of "st" when calling
18825 replace_store_insn for typesafety and clarity.
18827 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18829 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
18830 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
18831 on how to make it legal in future.
18833 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18835 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
18837 (restinsn): Likewise.
18838 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18839 Likewise for param.
18840 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
18842 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
18844 (arc_hazard): Likewise for both params.
18845 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
18846 checked casts to rtx_sequence * and uses of the insn method for
18848 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
18849 (arc_adjust_insn_length): Likewise for param "insn".
18850 (struct insn_length_parameters_s): Likewise for first param of
18851 "get_variants" callback field.
18852 (arc_get_insn_variants): Likewise for first param and local
18853 "inner". Replace a check of GET_CODE with a dyn_cast to
18854 rtx_sequence *, using methods for type-safety and clarity.
18855 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
18856 rtx_sequence * and uses of the insn method for type-safety when
18857 invoking arc_adjust_insn_length.
18858 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
18860 (arm_address_offset_is_imm): Likewise.
18861 (struct tune_params): Likewise for params 1 and 3 of the
18862 "sched_adjust_cost" callback field.
18863 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
18864 params 1 and 3 ("insn" and "dep").
18865 (xscale_sched_adjust_cost): Likewise.
18866 (fa726te_sched_adjust_cost): Likewise.
18867 (cortexa7_older_only): Likewise for param "insn".
18868 (cortexa7_younger): Likewise.
18869 (arm_attr_length_move_neon): Likewise.
18870 (arm_address_offset_is_imm): Likewise.
18871 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
18872 * config/avr/avr.c (avr_notice_update_cc): Likewise.
18873 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
18874 (workaround_speculation): Likewise for local "last_condjump".
18875 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
18876 (shadow_or_blockage_p): Likewise.
18877 (get_unit_reqs): Likewise.
18878 (get_unit_operand_masks): Likewise.
18879 (c6x_registers_update): Likewise.
18880 (returning_call_p): Likewise.
18881 (can_use_callp): Likewise.
18882 (convert_to_callp): Likewise.
18883 (find_last_same_clock): Likwise for local "t".
18884 (reorg_split_calls): Likewise for local "shadow".
18885 (hwloop_pattern_reg): Likewise for param "insn".
18886 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
18887 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
18888 (frv_extract_membar): Likewise.
18889 (frv_optimize_membar_local): Strengthen param "last_membar" from
18890 rtx * to rtx_insn **.
18891 (frv_optimize_membar_global): Strengthen param "membar" from rtx
18893 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
18895 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
18896 both params from rtx to rtx_insn *.
18897 (ia64_ld_address_bypass_p): Likewise.
18898 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
18900 (ia64_safe_type): Likewise.
18901 (group_barrier_needed): Likewise.
18902 (safe_group_barrier_needed): Likewise.
18903 (ia64_single_set): Likewise.
18904 (is_load_p): Likewise.
18905 (record_memory_reference): Likewise.
18906 (get_mode_no_for_insn): Likewise.
18907 (important_for_bundling_p): Likewise.
18908 (unknown_for_bundling_p): Likewise.
18909 (ia64_st_address_bypass_p): Likewise for both params.
18910 (ia64_ld_address_bypass_p): Likewise.
18911 (expand_vselect): Introduce new local rtx_insn * "insn", using it
18912 in place of rtx "x" after the emit_insn call.
18913 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
18914 Strengthen param from rtx to rtx_insn *.
18915 (ix86_agi_dependent): Likewise for both params.
18916 (ix86_attr_length_immediate_default): Likewise for param 1.
18917 (ix86_attr_length_address_default): Likewise for param.
18918 (ix86_attr_length_vex_default): Likewise for param 1.
18919 * config/i386/i386.c (ix86_attr_length_immediate_default):
18920 Likewise for param "insn".
18921 (ix86_attr_length_address_default): Likewise.
18922 (ix86_attr_length_vex_default): Likewise.
18923 (ix86_agi_dependent): Likewise for both params.
18924 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
18925 (vselect_insn): Likewise for this variable.
18926 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
18928 (m68k_sched_attr_opy_type): Likewise.
18929 * config/m68k/m68k.c (sched_get_operand): Likewise.
18930 (sched_attr_op_type): Likewise.
18931 (m68k_sched_attr_opx_type): Likewise.
18932 (m68k_sched_attr_opy_type): Likewise.
18933 (sched_get_reg_operand): Likewise.
18934 (sched_get_mem_operand): Likewise.
18935 (m68k_sched_address_bypass_p): Likewise for both params.
18936 (sched_get_indexed_address_scale): Likewise.
18937 (m68k_sched_indexed_address_bypass_p): Likewise.
18938 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
18939 (m68k_sched_indexed_address_bypass_p): Likewise.
18940 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
18941 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
18943 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
18944 params from rtx to rtx_insn *.
18945 (mips_fmadd_bypass): Likewise.
18946 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
18947 (mips_linked_madd_p): Likewise.
18948 (mips_macc_chains_last_hilo): Likewise for this variable.
18949 (mips_macc_chains_record): Likewise for param.
18950 (vr4130_last_insn): Likewise for this variable.
18951 (vr4130_swap_insns_p): Likewise for both params.
18952 (mips_ls2_variable_issue): Likewise for param.
18953 (mips_need_noat_wrapper_p): Likewise for param "insn".
18954 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
18955 in place of "x" after the emit_insn.
18956 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
18957 params from rtx to rtx_insn *.
18958 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
18959 (pa_combine_instructions): Introduce local "par" for result of
18960 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
18962 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
18963 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
18964 (rl78_alloc_physical_registers_op1): Likewise.
18965 (rl78_alloc_physical_registers_op2): Likewise.
18966 (rl78_alloc_physical_registers_ro1): Likewise.
18967 (rl78_alloc_physical_registers_cmp): Likewise.
18968 (rl78_alloc_physical_registers_umul): Likewise.
18969 (rl78_alloc_address_registers_macax): Likewise.
18970 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
18971 * config/s390/predicates.md (execute_operation): Likewise for
18973 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
18975 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
18976 (addr_generation_dependency_p): Likewise for param "insn".
18977 (s390_agen_dep_p): Likewise for both params.
18978 (s390_fpload_toreg): Likewise for param "insn".
18979 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
18980 * config/sh/sh.c (sh_loop_align): Likewise for param and local
18982 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
18983 * config/sh/sh_treg_combine.cc
18984 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
18986 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
18987 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
18988 "and_insn", "load", "shift".
18989 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
18991 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
18992 for XEXP (note, 0) of the REG_CC_SETTER note.
18993 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
18994 rtx_insn *, eliminating a checked cast made redundant by this.
18995 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
18997 * genattr.c (main): When writing out the prototype to
18998 const_num_delay_slots, strengthen the param from rtx to
19000 * genattrtab.c (write_const_num_delay_slots): Likewise when
19001 writing out the implementation of const_num_delay_slots.
19002 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
19003 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
19004 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
19005 favor of new rtx locals "src" and "set" and new local rtx_insn *
19007 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
19009 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
19010 locals "cond", "if_then_else", "set" and new rtx_insn * locals
19012 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
19013 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
19014 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
19015 the top-level scope, replacing with new more tightly-scoped rtx
19016 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
19017 "new_insn", "copy_of_insn_b", and make local rtx "set" more
19019 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
19021 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
19023 (ira_setup_alts): Likewise for param "insn".
19024 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
19025 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
19027 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
19028 new more-tightly scoped rtx locals "add3_insn", "insn",
19029 "add2_insn" and rtx_insn * "move_insn".
19030 * postreload-gcse.c (eliminate_partially_redundant_load): Add
19031 checked cast on result of gen_move_insn when invoking
19033 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
19035 (verify_changes): Add a checked cast on "object" when invoking
19037 (extract_insn_cached): Strengthen param "insn" from rtx to
19039 (extract_constrain_insn_cached): Likewise.
19040 (extract_insn): Likewise.
19041 * recog.h (insn_invalid_p): Likewise for param 1.
19042 (recog_memoized): Likewise for param.
19043 (extract_insn): Likewise.
19044 (extract_constrain_insn_cached): Likewise.
19045 (extract_insn_cached): Likewise.
19046 * reload.c (can_reload_into): Likewise for local "test_insn".
19047 * reload.h (cleanup_subreg_operands): Likewise for param.
19048 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
19049 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
19050 result of emit_insn. Remove a checked cast made redundant by this
19052 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
19054 * sel-sched.c (get_reg_class): Likewise.
19056 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
19057 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19059 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
19060 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
19062 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
19064 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19066 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
19067 const rtx_insn *, and from rtx to rtx_insn * for the other
19068 overloaded variant.
19069 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
19070 INSN_LOCATION, since we know INSN_P holds.
19071 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
19072 (insn_file): Likewise.
19073 (insn_scope): Likewise.
19074 (insn_location): Likewise.
19076 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
19077 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
19078 for the result of gen_load_const_gp.
19079 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
19080 param from rtx to rtx_insn *.
19081 * config/rs6000/rs6000.c (output_call): Likewise.
19082 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
19083 introducing a checked cast to rtx_sequence * and use of the insn
19085 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
19086 from rtx to rtx_insn *.
19087 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
19088 (insn_line): Likewise.
19089 (insn_file): Likewise.
19090 (insn_location): Likewise.
19091 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
19092 from rtx to rtx_insn *.
19093 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
19094 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
19095 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
19096 via a checked cast.
19097 * reorg.c (relax_delay_slots): Strengthen locals named "after"
19098 from rtx to rtx_insn *; use methods of "pat" for type-safety.
19100 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19102 * combine.c (try_combine): Eliminate checked cast on result of
19104 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
19105 autogenerated one by strengthening the return type and params 2 and 3
19106 from rtx to rtx_insn *, and by naming the params.
19107 * gengenrtl.c (special_rtx): Add INSN to those that are
19109 * rtl.h (gen_rtx_INSN): New prototype.
19111 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19113 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
19115 (no_equiv): Likewise.
19116 (update_equiv_regs): Likewise.
19117 (setup_reg_equiv): Likewise. Strengthen locals "elem",
19118 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
19119 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
19121 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
19122 from rtx to rtx_insn_list *.
19123 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
19124 rtx_insn_list * and use methods for clarity and typesafety.
19125 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
19127 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
19128 redundant check on INSN_P (insns): this cannot hold, as "insns" is
19129 an INSN_LIST, not an insn.
19130 (reverse_equiv_p): Strengthen local "insns" from rtx to
19131 rtx_insn_list * and use methods for clarity and typesafety.
19132 (contains_reloaded_insn_p): Likewise for local "list".
19134 2014-09-09 Jiong Wang <jiong.wang@arm.com>
19136 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
19137 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
19138 (arm_builtin_vectorized_function): Likewise.
19139 * config/arm/arm_neon_builtins.def: New macro for copysignf.
19140 * config/arm/neon.md (neon_copysignf<mode>): New pattern for
19143 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
19145 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
19146 * builtins.h (default_target_builtins): Likewise.
19147 * gcse.h (default_target_gcse): Likewise.
19148 * target-globals.h (target_globals): Add a destructor. Convert
19149 void-pointer fields back to their real type and change from
19150 GTY((atomic)) to GTY((skip)).
19151 (restore_target_globals): Remove casts accordingly.
19152 * target-globals.c (save_target_globals): Use XCNEW rather than
19153 ggc_internal_cleared_alloc to allocate non-GC structures.
19154 Use ggc_cleared_alloc to allocate the target_globals structure
19156 (target_globals::~target_globals): Define.
19158 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19160 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
19161 mnemonic instead of fldmfdd.
19162 * config/arm/arm.c (vfp_output_fstmd): Rename to...
19163 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
19164 Output vpush when address register is SP.
19165 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
19166 (vfp_output_vstmd): ... This.
19167 * config/arm/vfp.md (push_multi_vfp): Update call to
19170 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19172 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
19174 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19176 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
19177 (*sqrtdf2_vfp): Likewise.
19178 (*cmpsf_vfp): Likewise.
19179 (*cmpsf_trap_vfp): Likewise.
19180 (*cmpdf_vfp): Likewise.
19181 (*cmpdf_trap_vfp): Likewise.
19183 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19185 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
19186 (*truncdfsf2_vfp): Likewise.
19187 (*truncsisf2_vfp): Likewise.
19188 (*truncsidf2_vfp): Likewise.
19189 (fixuns_truncsfsi2): Likewise.
19190 (fixuns_truncdfsi2): Likewise.
19191 (*floatsisf2_vfp): Likewise.
19192 (*floatsidf2_vfp): Likewise.
19193 (floatunssisf2): Likewise.
19194 (floatunssidf2): Likewise.
19196 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19198 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
19199 (*muldf3_vfp): Likewise.
19200 (*mulsf3negsf_vfp): Likewise.
19201 (*muldf3negdf_vfp): Likewise.
19202 (*mulsf3addsf_vfp): Likewise.
19203 (*muldf3adddf_vfp): Likewise.
19204 (*mulsf3subsf_vfp): Likewise.
19205 (*muldf3subdf_vfp): Likewise.
19206 (*mulsf3negsfaddsf_vfp): Likewise.
19207 (*fmuldf3negdfadddf_vfp): Likewise.
19208 (*mulsf3negsfsubsf_vfp): Likewise.
19209 (*muldf3negdfsubdf_vfp): Likewise.
19211 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19213 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
19214 (*absdf2_vfp): Likewise.
19215 (*negsf2_vfp): Likewise.
19216 (*negdf2_vfp): Likewise.
19217 (*addsf3_vfp): Likewise.
19218 (*adddf3_vfp): Likewise.
19219 (*subsf3_vfp): Likewise.
19220 (*subdf3_vfp): Likewise.
19221 (*divsf3_vfp): Likewise.
19222 (*divdf3_vfp): Likewise.
19224 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19226 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
19228 (arm_print_operand): Don't convert real values to decimal
19229 representation in default case.
19230 (fp_immediate_constant): Delete.
19231 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
19232 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
19234 (*thumb2_movsi_vfp): Likewise.
19235 (*movdi_vfp): Likewise.
19236 (*movdi_vfp_cortexa8): Likewise.
19237 (*movhf_vfp_neon): Likewise.
19238 (*movhf_vfp): Likewise.
19239 (*movsf_vfp): Likewise.
19240 (*thumb2_movsf_vfp): Likewise.
19241 (*movdf_vfp): Likewise.
19242 (*thumb2_movdf_vfp): Likewise.
19243 (*movsfcc_vfp): Likewise.
19244 (*thumb2_movsfcc_vfp): Likewise.
19245 (*movdfcc_vfp): Likewise.
19246 (*thumb2_movdfcc_vfp): Likewise.
19248 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19250 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
19251 (-mtune): Likewise.
19254 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19257 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
19258 Use qualifier_immediate for last operand. Rename to...
19259 (aarch64_types_ternop_lane_qualifiers): ... This.
19260 (TYPES_QUADOP): Rename to...
19261 (TYPES_TERNOP_LANE): ... This.
19262 (aarch64_simd_expand_args): Return const0_rtx when encountering user
19263 error. Change return of 0 to return of NULL_RTX.
19264 (aarch64_crc32_expand_builtin): Likewise.
19265 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
19266 ICE when expanding unknown builtin.
19267 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
19268 TERNOP_LANE qualifiers.
19269 (sqdmlsl_lane): Likewise.
19270 (sqdmlal_laneq): Likewise.
19271 (sqdmlsl_laneq): Likewise.
19272 (sqdmlal2_lane): Likewise.
19273 (sqdmlsl2_lane): Likewise.
19274 (sqdmlal2_laneq): Likewise.
19275 (sqdmlsl2_laneq): Likewise.
19277 2014-09-09 Nick Clifton <nickc@redhat.com>
19279 * doc/invoke.texi (Optimization Options): Add missing @gol to the
19281 (S/390 and zSeries Options): Remove superfluous word from the
19282 description of the -mhotpatch option.
19284 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
19286 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
19287 * ira.c: #include "shrink-wrap.h"
19288 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
19289 * ifcvt.c: #include "shrink-wrap.h"
19290 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
19292 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
19294 * common/config/picochip/picochip-common.c: Remove.
19295 * config.gcc: Remove support for picochip.
19296 * config/picochip/constraints.md: Remove.
19297 * config/picochip/dfa_space.md: Remove.
19298 * config/picochip/dfa_speed.md: Remove.
19299 * config/picochip/picochip-protos.h: Remove.
19300 * config/picochip/picochip.c: Remove.
19301 * config/picochip/picochip.h: Remove.
19302 * config/picochip/picochip.md: Remove.
19303 * config/picochip/picochip.opt: Remove.
19304 * config/picochip/predicates.md: Remove.
19305 * config/picochip/t-picochip: Remove.
19306 * doc/md.texi: Don't document picochi.
19308 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19310 * basic-block.h (control_flow_insn_p): Strengthen param from
19311 const_rtx to const rtx_insn *.
19312 * cfgbuild.c (control_flow_insn_p): Likewise.
19314 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19316 * gcse.c (modify_mem_list): Strengthen this variable from
19317 vec<rtx> * to vec<rtx_insn *> *.
19318 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
19320 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
19321 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
19322 (record_last_mem_set_info): Strengthen param "insn" from rtx to
19324 (record_last_set_info): Likewise for local "last_set_insn".
19326 2014-09-08 DJ Delorie <dj@redhat.com>
19328 * doc/invoke.texi (MSP430 Options): Add -minrt.
19330 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19332 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
19333 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
19334 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
19336 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
19338 (adjust_splat): New function.
19339 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
19340 (dump_swap_insn_table): Add case for SH_SPLAT.
19342 2014-09-08 Richard Biener <rguenther@suse.de>
19345 * tree-inline.c (copy_loops): The source loop header should
19346 always be non-NULL.
19347 (tree_function_versioning): If loops need fixup after removing
19348 unreachable blocks fix them.
19349 * omp-low.c (simd_clone_adjust): Do not add incr block to
19350 loop under construction.
19352 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
19354 * config/aarch64/aarch64-builtins.c
19355 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
19357 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19359 * config/i386/cygming.h (TF_SIZE): Remove.
19360 * config/i386/darwin.h (TF_SIZE): Remove.
19361 * config/i386/dragonfly.h (TF_SIZE): Remove.
19362 * config/i386/freebsd.h (TF_SIZE): Remove.
19363 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
19364 * config/i386/openbsdelf.h (TF_SIZE): Remove.
19365 * config/i386/sol2.h (TF_SIZE): Remove.
19366 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
19367 * config/ia64/linux.h (TF_SIZE): Remove.
19368 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
19369 * doc/tm.texi: Regenerate.
19370 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
19372 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19374 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19376 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
19378 * doc/tm.texi: Regenerate.
19379 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19381 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
19382 * config/cris/cris.h (__make_dp): Remove.
19384 2014-09-08 Richard Biener <rguenther@suse.de>
19387 * cfgloop.c (mark_loop_for_removal): Track former header
19389 * cfgloop.h (struct loop): Add former_header member unconditionally.
19390 * loop-init.c (fix_loop_structure): Enable bogus loop removal
19391 diagnostic unconditionally.
19393 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19396 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
19397 constraint for operand0 and remove write only modifier from operand3.
19399 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
19401 PR rtl-optimization/62208
19402 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
19403 rather than const0_rtx in eq/ne-xor simplifications.
19405 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19407 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
19408 (arc_output_mi_thunk): Likewise.
19410 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
19411 arguments to silence bogus warning.
19413 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
19415 PR middle-end/63171
19416 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
19418 2014-09-06 Tom de Vries <tom@codesourcery.com>
19420 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
19421 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
19422 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19424 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
19427 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
19428 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
19430 2014-09-05 Easwaran Raman <eraman@google.com>
19432 PR rtl-optimization/62146
19433 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
19434 hoisted instruction unconditional.
19436 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
19439 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
19440 Do not allow any_mask_operand for operands[2].
19441 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
19443 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19445 * config/arc/arc.c (arc_print_operand): Use insn method of
19446 final_sequence for type-safety.
19447 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
19448 "insn" from rtx to rtx_insn *.
19449 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
19450 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
19451 Likewise for locals "branch", "label".
19452 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
19453 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
19454 (same_cmp_following_p): Likewise for locals "i2", "i3".
19455 * config/sh/sh_optimize_sett_clrt.cc
19456 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
19457 param "cbranch_insn".
19458 * function.c (convert_jumps_to_returns): Likewis for local "jump".
19459 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
19460 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
19462 (condjump_p): Likewise.
19463 (condjump_in_parallel_p): Likewise.
19464 (pc_set): Likewise.
19465 (any_uncondjump_p): Likewise.
19466 (any_condjump_p): Likewise.
19467 (condjump_label): Likewise.
19468 (returnjump_p): Strengthen param "insn" from rtx to
19470 (onlyjump_p): Strengthen param "insn" from const_rtx to
19472 (jump_to_label_p): Likewise.
19473 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
19474 (invert_jump): Likewise.
19475 * reorg.c (simplejump_or_return_p): Add checked cast when calling
19477 (get_jump_flags): Strengthen param "insn" from rtx to
19479 (get_branch_condition): Likewise.
19480 (condition_dominates_p): Likewise.
19481 (make_return_insns): Move declaration of local "pat" earlier, to
19482 after we've handled NONJUMP_INSN_P and non-sequences, using its
19483 methods to simplify the code and for type-safety.
19484 * rtl.h (find_constant_src): Strengthen param from const_rtx to
19486 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
19487 (condjump_p): Strengthen param from const_rtx to
19489 (any_condjump_p): Likewise.
19490 (any_uncondjump_p): Likewise.
19491 (pc_set): Likewise.
19492 (condjump_label): Likewise.
19493 (simplejump_p): Likewise.
19494 (returnjump_p): Likewise.
19495 (onlyjump_p): Likewise.
19496 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
19497 (invert_jump): Likewise.
19498 (condjump_in_parallel_p): Strengthen param from const_rtx to
19500 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
19501 to const rtx_insn *.
19502 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
19503 to const rtx_insn *.
19504 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
19506 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19508 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
19509 above the conditional, and convert the check on GET_CODE to a
19510 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
19511 the conditional. Simplify the conditional by using methods of
19514 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19516 * haifa-sched.c (check_clobbered_conditions): Strengthen local
19517 "link" from rtx to rtx_insn_list *, and use its methods for
19518 clarity and type-safety.
19519 (toggle_cancelled_flags): Likewise.
19520 (restore_last_backtrack_point): Likewise.
19521 (queue_to_ready): Use insn method of "link" in one place.
19522 (schedule_block): Strengthen local "link" from rtx to
19523 rtx_insn_list *, and use its methods for clarity and type-safety.
19525 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19527 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
19528 param "insn" from const_rtx to const rtx_insn *.
19529 (sched_get_reverse_condition_uncached): Likewise.
19530 (sched_get_condition_with_rev): Likewise.
19531 (sched_has_condition_p): Likewise.
19532 (sched_insns_conditions_mutex_p): Likewise for both params.
19533 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
19534 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
19535 (setup_insn_reg_uses): Move local "list" to be more tightly
19536 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
19537 its methods for clarity and type-safety.
19538 (sched_analyze_1): Strengthen local "pending" from rtx to
19539 rtx_insn_list *, and local "pending_mem" from rtx to
19540 rtx_expr_list *. Use methods of each for clarity and type-safety.
19541 (sched_analyze_2): Likewise.
19542 (sched_analyze_insn): Likewise.
19544 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
19545 param from const_rtx to const rtx_insn *.
19546 (sched_insns_conditions_mutex_p): Likewise for both params.
19547 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
19550 * system.h (CONST_CAST_RTX_INSN): New macro.
19552 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19554 * recog.c (peep2_attempt): Strengthen return type from rtx to
19556 (peep2_update_life): Likewise for params "last", "prev", removing
19557 a checked cast made redundant by this.
19558 (peephole2_optimize): Likewise for local "last".
19560 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19562 * basic-block.h (set_block_for_insn): Eliminate this macro in
19564 * rtl.h (set_block_for_insn): New inline function, imposing the
19565 requirement that the "insn" param is an rtx_insn *.
19567 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19569 * caller-save.c (setup_save_areas): Strengthen local "insn" from
19571 * final.c (get_call_reg_set_usage): Likewise for first param,
19572 eliminating a checked cast.
19573 * regs.h (get_call_reg_set_usage): Likewise for first param.
19574 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
19575 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
19576 cast, replacing references to "x" with "call_insn" where
19578 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
19579 rtx_insn *, adding a checked cast.
19581 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19583 * output.h (final_scan_insn): Strengthen first param from rtx to
19586 * final.c (final_scan_insn): Likewise, renaming it back from
19587 "uncast_insn" to "insn", eliminating the checked cast.
19589 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
19590 "vec" with an rtx_sequence * "seq", taking a copy of
19591 "final_sequence", and using methods of "seq" for clarity, and for
19592 type-safety in the calls to final_scan_insn.
19593 * config/mips/mips.c (mips_output_conditional_branch): Use methods
19594 of "final_sequence" for clarity, and for type-safety in the call to
19596 * config/sh/sh.c (print_slot): Strengthen param from rtx to
19597 rtx_sequence * and rename from "insn" to "seq".
19599 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19601 * jump.c (delete_related_insns): Introduce a new local "table" by
19602 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
19603 get_labels method of "table" to simplify access to the labels in
19606 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19608 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
19609 f_minmaxs, f_minmaxd types.
19611 2014-09-05 Richard Biener <rguenther@suse.de>
19613 * cfgloop.c (mark_loop_for_removal): Record former header
19614 when ENABLE_CHECKING.
19615 * cfgloop.h (strut loop): Add former_header member when
19617 * loop-init.c (fix_loop_structure): Sanity check loops
19618 marked for removal if they re-appeared.
19620 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19622 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
19623 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
19625 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
19626 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
19627 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
19628 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
19629 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
19630 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
19631 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
19632 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
19633 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
19634 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
19635 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
19636 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
19637 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
19638 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
19639 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
19640 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
19641 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
19642 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
19643 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
19644 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
19645 with int{32,16,8}_t.
19647 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19649 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
19650 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
19651 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
19652 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
19653 Remove temporary __asm__ and reimplement.
19655 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19657 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
19658 handling cmge, cmgt, cmeq, cmtst.
19660 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
19661 cmlt, cmgeu, cmgtu, cmtst): Remove.
19663 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
19664 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
19665 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
19666 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
19668 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19670 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
19671 TYPES_TST): Define.
19672 (aarch64_fold_builtin): Update pattern for cmtst.
19674 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
19677 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
19679 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
19680 Switch operands, separate out more cases, refactor.
19682 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
19684 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
19685 argument; rename old version to...
19686 (aarch64_const_vec_all_same_in_range_p): ...this.
19687 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
19689 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
19691 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19693 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19694 Remove qualifier_const_pointer, update comment.
19696 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19698 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
19700 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19702 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
19703 varargs with pointer parameter.
19704 (aarch64_simd_expand_builtin): pass pointer into previous.
19706 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19708 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
19711 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19713 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
19714 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
19715 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
19716 Replace temporary asm with call to builtin.
19717 (vrbit_p8, vrbitq_p8): New functions.
19719 2014-09-05 Richard Biener <rguenther@suse.de>
19721 * cfgloop.c (mark_loop_for_removal): New function.
19722 * cfgloop.h (mark_loop_for_removal): Declare.
19723 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
19724 (merge_blocks): Likewise.
19725 (duplicate_block): Likewise.
19726 * except.c (sjlj_emit_dispatch_table): Likewise.
19727 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
19728 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19729 (thread_through_loop_header): Likewise.
19731 2014-09-05 Richard Biener <rguenther@suse.de>
19733 PR middle-end/63148
19734 * fold-const.c (try_move_mult_to_index): Remove.
19735 (fold_binary_loc): Do not call it.
19736 * tree-data-ref.c (dr_analyze_indices): Strip conversions
19737 from the base object again.
19739 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19741 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
19744 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19747 * config/arm/arm.md (setmem): New pattern.
19748 * config/arm/arm-protos.h (struct tune_params): New fields.
19749 (arm_gen_setmem): New prototype.
19750 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
19751 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19752 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19753 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
19754 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
19755 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
19756 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
19757 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19758 (arm_const_inline_cost): New function.
19759 (arm_block_set_max_insns): New function.
19760 (arm_block_set_non_vect_profit_p): New function.
19761 (arm_block_set_vect_profit_p): New function.
19762 (arm_block_set_unaligned_vect): New function.
19763 (arm_block_set_aligned_vect): New function.
19764 (arm_block_set_unaligned_non_vect): New function.
19765 (arm_block_set_aligned_non_vect): New function.
19766 (arm_block_set_vect, arm_gen_setmem): New functions.
19768 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19770 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
19772 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19774 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
19776 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19778 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
19780 * valtrack.h: Adjust.
19782 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19784 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
19786 (emit_jump_insn_before_noloc): Likewise.
19787 (emit_call_insn_before_noloc): Likewise.
19788 (emit_label_before): Likewise.
19789 (emit_label_after): Likewise.
19790 (emit_insn_before_setloc): Likewise.
19791 (emit_jump_insn_before_setloc): Likewise.
19792 (emit_call_insn_before_setloc): Likewise.
19793 (emit_call_insn_before): Likewise.
19796 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19798 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
19799 rtx_insn *, eliminating a checked cast.
19801 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19803 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
19804 const_rtx to const rtx_insn *.
19805 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
19808 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19810 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
19811 fixup_args_size_notes.
19812 * expr.c (fixup_args_size_notes): Strengthen first two params from
19813 rtx to rtx_insn *, eliminating a checked cast.
19814 * rtl.h (fixup_args_size_notes): Strengthen first two params from
19817 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19819 * haifa-sched.c (get_ready_element): Strengthen return type from
19821 * sched-int.h (get_ready_element): Likewise.
19823 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
19826 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
19827 indexed_or_indirect_operand instead of memory_operand.
19828 (floatsi<mode>2_lfiwzx_mem): Ditto.
19830 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19832 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
19833 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
19834 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
19836 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19838 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
19840 (get_last_nonnote_insn): Likewise.
19841 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
19842 * resource.c (find_basic_block): Likewise.
19844 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
19847 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19849 * genattr.c (main): Within the prototype of insn_latency written
19850 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
19851 * genautomata.c (output_internal_maximal_insn_latency_func):
19852 Within the implementation of insn_latency written out to
19853 insn-automata.c, strengthen both params from rtx to rtx_insn *,
19854 eliminating a pair of checked casts.
19856 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19858 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
19861 * rtl.h (eh_returnjump_p): Likewise.
19863 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
19865 * Makefile.in (TAGS): Handle constructs in timevar.def.
19867 2014-09-04 Guozhi Wei <carrot@google.com>
19870 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
19871 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
19872 it into two patterns.
19873 (move_lo_quad_internal_be_<mode>): Likewise.
19875 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
19877 * doc/options.texi: Document that Var and Init are required if CPP
19879 * optc-gen.awk: Require Var and Init if CPP is given.
19880 * common.opt (Wpedantic): Use Init.
19882 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19884 * config/rs6000/rs6000.c (special_handling_values): Add
19886 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
19887 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
19888 as swappable with special handling SH_EXTRACT. Remove
19889 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
19891 (adjust_extract): New function.
19892 (handle_special_swappables): Add default to case statement; add
19893 case for SH_EXTRACT that calls adjust_extract.
19894 (dump_swap_insn_table): Handle SH_EXTRACT.
19896 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19898 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
19899 selection of 0th memory doubleword, regardless of endianness.
19901 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19903 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
19905 2014-09-04 Alan Modra <amodra@gmail.com>
19908 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
19911 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
19913 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
19914 * targhooks.c (default_dwarf_frame_reg_mode): New function.
19915 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
19916 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
19917 * doc/tm.texi: Regenerate.
19918 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
19919 selection logic to default_dwarf_frame_reg_mode.
19921 2014-09-03 Marek Polacek <polacek@redhat.com>
19923 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
19926 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19928 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
19929 the automodified register.
19931 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19933 * output.h (get_some_local_dynamic_name): Declare.
19934 * final.c (some_local_dynamic_name): New variable.
19935 (get_some_local_dynamic_name): New function.
19936 (final_end_function): Clear some_local_dynamic_name.
19937 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
19938 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19939 (print_operand): Report an error if '%&' is used inappropriately.
19940 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
19941 (get_some_local_dynamic_name_1): Delete.
19942 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
19943 (rs6000_get_some_local_dynamic_name): Delete.
19944 (rs6000_get_some_local_dynamic_name_1): Delete.
19945 (print_operand): Report an error if '%&' is used inappropriately.
19946 * config/s390/s390.c (machine_function): Remove some_ld_name.
19947 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19948 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
19949 * config/sparc/sparc.c: Include rtl-iter.h.
19950 (machine_function): Remove some_ld_name.
19951 (sparc_print_operand): Report an error if '%&' is used inappropriately.
19952 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19954 2014-09-03 Richard Henderson <rth@redhat.com>
19956 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
19957 (aarch64_popwb_pair_reg): Remove.
19958 (aarch64_set_frame_expr): Remove.
19959 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
19960 the restore ops performed by the insns generated.
19961 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
19962 insn. Perform the calls_eh_return addition later; do not attempt to
19963 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
19964 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
19965 special markup at all. Load cfun->machine->frame.hard_fp_offset
19966 into a local variable.
19967 (aarch64_frame_pointer_required): Don't check calls_alloca.
19969 2014-09-03 Richard Biener <rguenther@suse.de>
19971 * opts.c (default_options_optimization): Adjust
19972 max-combine-insns to 2 for -Og.
19974 2014-09-03 Martin Jambor <mjambor@suse.cz>
19977 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
19978 pass-trough jump functions correctly.
19980 2014-09-03 Martin Jambor <mjambor@suse.cz>
19983 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
19984 created replacements in ascending order of offsets.
19985 (known_aggs_to_agg_replacement_list): Likewise.
19987 2014-09-03 Martin Liska <mliska@suse.cz>
19989 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
19990 is set to set uninitialized value for vnresult.
19992 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19994 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
19995 for TARGET_MUST_PASS_IN_STACK.
19997 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19999 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
20000 for TARGET_ARG_PARTIAL_BYTES.
20002 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20004 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
20005 instructions for varargs implementation.
20006 (nds32_expand_epilogue): Emit stack adjustment instructions for
20007 varargs implementation.
20009 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20011 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
20012 optimization detection.
20014 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20016 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
20018 (nds32_function_arg_advance): Deal with nameless arguments.
20019 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
20020 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
20021 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
20023 2014-09-03 Richard Biener <rguenther@suse.de>
20025 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
20026 (struct bb_bitmap_sets): Remove deferred member.
20027 (BB_DEFERRED): Remove.
20028 (defer_or_phi_translate_block): Remove.
20029 (compute_antic_aux): Remove deferring of blocks, assert
20030 proper iteration order.
20031 (compute_antic): Do not set BB_DEFERRED.
20032 (eliminate): Allocate el_avail of proper size initially.
20034 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20036 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
20037 according to the value of crtl->args.pretend_args_size.
20039 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20041 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
20042 varargs information.
20044 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20046 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
20047 implementation for TARGET_SETUP_INCOMING_VARARGS.
20048 (nds32_strict_argument_naming): Refine comment.
20049 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
20050 Define for future implementation.
20052 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
20054 * config/i386/adxintrin.h (_subborrow_u32): New.
20055 (_addcarry_u32): Ditto.
20056 (_subborrow_u64): Ditto.
20057 (_addcarry_u64): Ditto.
20058 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
20059 IX86_BUILTIN_SBB64.
20060 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
20061 __builtin_ia32_sbb_u64
20063 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20065 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
20066 GPR-specific stuff.
20067 (nds32_function_arg_advance): Likewise.
20068 (nds32_init_cumulative_args): Likewise.
20069 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
20070 (NDS32_FIRST_GPR_REGNUM): Define.
20071 (NDS32_LAST_GPR_REGNUM): Define.
20072 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
20073 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20074 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20075 (machine_function): Use GRP-specific stuff.
20077 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20079 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
20080 (nds32_expand_epilogue): Likewise.
20081 (nds32_expand_prologue_v3push): Likewise.
20082 (nds32_expand_epilogue_v3pop): Likewise.
20084 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20086 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
20087 v3push/v3pop for variadic function.
20088 * config/nds32/nds32.md (prologue, epilogue): Likewise.
20090 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20092 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20093 Check rtx for varargs implementation.
20094 (nds32_output_stack_pop): Likewise.
20095 * config/nds32/nds32-protos.h: Have a rtx argument for
20096 nds32_output_stack_push and nds32_output_stack_pop.
20097 * config/nds32/nds32.md: Likewise.
20099 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20101 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
20102 to check if FUNC is an interrupt service routine.
20103 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
20105 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20107 * config/nds32/nds32.h (machine_function): Add some fields for variadic
20108 arguments implementation.
20110 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20112 * config/nds32/nds32-predicates.c
20113 (nds32_valid_stack_push_pop): Rename to ...
20114 (nds32_valid_stack_push_pop_p): ... this.
20115 * config/nds32/nds32-protos.h: Likewise.
20116 * config/nds32/predicates.md: Likewise.
20118 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20120 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
20121 (nds32_emit_stack_v3push): ... this.
20122 (nds32_gen_stack_v3pop): Rename to ...
20123 (nds32_emit_stack_v3pop): ... this and consider CFA restore
20126 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20128 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
20129 (nds32_emit_stack_push_multiple): ... this.
20130 (nds32_gen_stack_pop_multiple): Rename to ...
20131 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
20134 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20137 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
20138 and add a second splitter to handle the remaining cases.
20140 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20142 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
20144 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20146 * cfgexpand.c (label_rtx_for_bb): Change type to
20147 hash_map<basic_block, rtx_code_label *> *.
20148 (expand_gimple_basic_block): Adjust.
20149 (pass_expand::execute): Likewise.
20151 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20153 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
20154 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
20155 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
20156 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
20157 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
20158 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
20159 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
20162 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20164 * alloc-pool.c: Include coretypes.h.
20165 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
20166 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
20167 hash_set instead of htab.
20168 * ggc-page.c (in_gc): New variable.
20169 (ggc_free): Do nothing if a collection is taking place.
20170 (ggc_collect): Set in_gc appropriately.
20171 * ggc.h (gt_ggc_mx(const char *)): New function.
20172 (gt_pch_nx(const char *)): Likewise.
20173 (gt_ggc_mx(int)): Likewise.
20174 (gt_pch_nx(int)): Likewise.
20175 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
20176 (hash_map::hash_entry::pch_nx): Likewise.
20177 (hash_map::hash_entry::pch_nx_helper): Likewise.
20178 (hash_map::hash_map): Adjust.
20179 (hash_map::create_ggc): New function.
20180 (gt_ggc_mx): Likewise.
20181 (gt_pch_nx): Likewise.
20182 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
20183 (default_hashset_traits::pch_nx): Likewise.
20184 (hash_set::hash_entry::ggc_mx): Likewise.
20185 (hash_set::hash_entry::pch_nx): Likewise.
20186 (hash_set::hash_entry::pch_nx_helper): Likewise.
20187 (hash_set::hash_set): Adjust.
20188 (hash_set::create_ggc): New function.
20189 (hash_set::elements): Likewise.
20190 (gt_ggc_mx): Likewise.
20191 (gt_pch_nx): Likewise.
20192 * hash-table.h (hash_table::hash_table): Adjust.
20193 (hash_table::m_ggc): New member.
20194 (hash_table::~hash_table): Adjust.
20195 (hash_table::expand): Likewise.
20196 (hash_table::empty): Likewise.
20197 (gt_ggc_mx): New function.
20198 (hashtab_entry_note_pointers): Likewise.
20199 (gt_pch_nx): Likewise.
20201 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20203 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
20204 built-in definition.
20205 (XVCVUXDDP_SCALE): Likewise.
20206 (XVCVDPSXDS_SCALE): Likewise.
20207 (XVCVDPUXDS_SCALE): Likewise.
20208 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20209 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
20210 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
20211 VSX_BUILTIN_XVCVDPUXDS_SCALE.
20212 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
20214 * config/rs6000/rs6000.c (real.h): New include.
20215 (rs6000_scale_v2df): New function.
20216 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
20217 (UNSPEC_VSX_XVCVUXDDP): Likewise.
20218 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
20219 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
20220 (vsx_xvcvsxddp_scale): New define_expand.
20221 (vsx_xvcvsxddp): New define_insn.
20222 (vsx_xvcvuxddp_scale): New define_expand.
20223 (vsx_xvcvuxddp): New define_insn.
20224 (vsx_xvcvdpsxds_scale): New define_expand.
20225 (vsx_xvcvdpsxds): New define_insn.
20226 (vsx_xvcvdpuxds_scale): New define_expand.
20227 (vsx_xvcvdpuxds): New define_insn.
20228 * doc/extend.texi (vec_ctf): Add new prototypes.
20229 (vec_cts): Likewise.
20230 (vec_ctu): Likewise.
20231 (vec_splat): Likewise.
20232 (vec_div): Likewise.
20233 (vec_mul): Likewise.
20235 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20238 * config/arm/neon.md
20239 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
20240 <v_cmp_result>): New pattern.
20241 * config/arm/iterators.md (NEON_VCVT): New int iterator.
20242 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
20243 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
20244 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
20245 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
20246 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
20248 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20251 * config/arm/iterators.md (FIXUORS): New code iterator.
20252 (VCVT): New int iterator.
20253 (su_optab): New code attribute.
20255 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
20257 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20259 * config/aarch64/predicates.md (aarch64_comparison_operation):
20260 New special predicate.
20261 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
20262 aarch64_comparison_operation instead of matching an operator.
20263 Update operand numbers.
20264 (csinc3<mode>_insn): Likewise.
20265 (*csinv3<mode>_insn): Likewise.
20266 (*csneg3<mode>_insn): Likewise.
20267 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
20268 * config/aarch64/aarch64.c (aarch64_get_condition_code):
20269 Return -1 instead of aborting on invalid condition codes.
20270 (aarch64_print_operand): Update aarch64_get_condition_code callsites
20271 to assert that the returned condition code is valid.
20272 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
20274 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
20276 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
20277 tree.def, and gimple.def
20279 2014-09-02 Jakub Jelinek <jakub@redhat.com>
20280 Balaji V. Iyer <balaji.v.iyer@intel.com>
20281 Igor Zamyatin <igor.zamyatin@intel.com>
20283 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
20284 (__cilkrts_cilk_for_64): Likewise.
20285 * cilk-common.c (declare_cilk_for_builtin): New function.
20286 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
20287 __cilkrts_cilk_for_64 bultins.
20288 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
20290 (cilk_for_32_fndecl): New define.
20291 (cilk_for_64_fndecl): Likewise.
20292 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
20293 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
20294 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
20295 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
20296 GF_OMP_FOR_COMBINED_INTO.
20297 * gimplify.c (gimplify_scan_omp_clauses): Added
20298 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20299 (gimplify_adjust_omp_clauses): Ditto.
20300 (gimplify_omp_for): Added CILK_FOR case.
20301 (gimplify_expr): Ditto.
20302 * omp-low.c: Include cilk.h.
20303 (extract_omp_for_data): Set appropriate kind for
20304 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
20305 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
20306 (create_omp_child_function_name): Added second argument to handle
20308 (cilk_for_check_loop_diff_type): New function.
20309 (expand_cilk_for_call): Likewise.
20310 (expand_cilk_for): Likewise.
20311 (create_omp_child_function): Set cilk_for_count; handle the cases when
20312 it is true; call create_omp_child_function_name with second argument.
20313 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
20314 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
20315 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
20316 * tree-nested.c (convert_nonlocal_omp_clauses): Added
20317 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20318 (convert_local_omp_clauses): Ditto.
20319 * tree-pretty-print.c (dump_omp_clause): Added
20320 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
20321 (dump_generic_node): Added CILK_FOR case.
20322 * tree.c (omp_clause_num_ops): New element
20323 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
20324 (omp_clause_code_name): New element _Cilk_for_count_.
20325 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
20326 * tree.def: Add tree code for CILK_FOR.
20328 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20330 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
20331 (ppc403-compare): Add "exts with dot" case.
20332 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
20333 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
20334 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
20335 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
20336 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
20337 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
20338 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
20339 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20340 cell-cmp-microcoded): Similarly.
20341 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
20342 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
20343 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
20344 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
20345 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
20346 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20347 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
20348 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
20349 (power6-compare): Add "exts with dot" case.
20350 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
20351 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
20352 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
20354 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
20355 if avoiding Cell microcode.
20356 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
20357 (is_cracked_insn): Ditto.
20358 (insn_must_be_first_in_group): Ditto.
20359 * config/rs6000/rs6000.md (dot): Adjust comment.
20360 (cell_micro): Handle exts+dot.
20361 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
20362 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
20363 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
20364 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
20365 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
20366 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
20367 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
20369 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20371 * config/rs6000/rs6000.md (QHSI): Delete.
20372 (EXTQI, EXTHI, EXTSI): New mode iterators.
20373 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
20374 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20375 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
20376 9 anonymous instructions, and 8 splitters): Delete.
20377 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
20378 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
20379 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
20380 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
20381 *zero_extendsi<mode>2_dot2): New.
20383 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20385 * config/rs6000/rs6000.md (any_extend): New code iterator.
20386 (u, su): New code attributes.
20387 (dmode, DMODE): New mode attributes.
20388 (<su>mul<mode>3_highpart): New.
20389 (*<su>mul<mode>3_highpart): New.
20390 (<su>mulsi3_highpart_le): New.
20391 (<su>muldi3_highpart_le): New.
20392 (<su>mulsi3_highpart_64): New.
20393 (<u>mul<mode><dmode>3): New.
20394 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
20395 splitters): Delete.
20396 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
20397 splitters): Delete.
20399 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20401 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
20402 *mulsi3_internal2, and two splitters): Delete.
20403 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
20405 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
20407 2014-09-02 Richard Biener <rguenther@suse.de>
20409 PR tree-optimization/62695
20410 * tree-ssa-structalias.c (find_func_clobbers): Add missing
20413 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
20416 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
20418 2014-09-01 Andi Kleen <ak@linux.intel.com>
20420 * file-find.c (add_prefix_begin): Add.
20421 (do_add_prefix): Rename from add_prefix with first argument.
20422 (add_prefix): Add new wrapper.
20423 * file-find.h (add_prefix_begin): Add.
20424 * gcc-ar.c (main): Support -B option.
20426 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
20428 * genemit.c: Include dumpfile.h.
20429 (gen_split): Print name of splitter function to dump file.
20431 2014-09-01 Richard Biener <rguenther@suse.de>
20433 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
20434 Use stack auto_vecs for constraint expressions.
20435 (find_func_aliases_for_call): Likewise.
20436 (find_func_aliases): Likewise.
20437 (find_func_clobbers): Likewise.
20439 2014-09-01 Richard Biener <rguenther@suse.de>
20441 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
20442 operands vector in most cases. Remove redundant code.
20444 2014-09-01 Olivier Hainque <hainque@adacore.com>
20446 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
20447 $WIND_BASE instead of designating a harcoded arbitrary home dir.
20448 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
20450 2014-09-01 Richard Biener <rguenther@suse.de>
20452 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
20453 copy_reference_ops_from_call, vn_nary_op_compute_hash,
20454 vn_reference_compute_hash, vn_reference_insert): Remove.
20455 (vn_reference_lookup_call): New function.
20456 * tree-ssa-sccvn.c (vn_reference_compute_hash,
20457 copy_reference_ops_from_ref, copy_reference_ops_from_call,
20458 vn_reference_insert, vn_nary_op_compute_hash): Make static.
20459 (create_reference_ops_from_call): Remove.
20460 (vn_reference_lookup_3): Properly update shared_lookup_references.
20461 (vn_reference_lookup_pieces): Assert that we updated
20462 shared_lookup_references properly.
20463 (vn_reference_lookup): Likewise.
20464 (vn_reference_lookup_call): New function.
20465 (visit_reference_op_call): Use it. Avoid re-building the
20467 (visit_reference_op_load): Remove redundant lookup.
20468 (visit_reference_op_store): Perform special tail-merging work
20469 only when possibly doing tail-merging.
20470 (visit_use): Likewise.
20471 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
20473 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20476 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
20477 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
20478 (find_inc): Revert 2014-08-13 change.
20480 2014-09-01 Marek Polacek <polacek@redhat.com>
20482 PR middle-end/61903
20483 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
20484 Change the type of V to unsigned HOST_WIDE_INT.
20486 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20488 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
20489 the size of byte markers.
20490 (do_shift_rotate): Fix confusion between host, target and marker byte
20492 (verify_symbolic_number_p): Likewise.
20493 (find_bswap_or_nop_1): Likewise.
20494 (find_bswap_or_nop): Likewise.
20496 2014-09-01 Olivier Hainque <hainque@adacore.com>
20498 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
20499 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
20501 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20503 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
20504 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
20505 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
20507 2014-09-01 Yury Gribov <y.gribov@samsung.com>
20511 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
20512 (build_check_stmt): Likewise.
20513 (instrument_strlen_call): Likewise.
20514 (asan_expand_check_ifn): Likewise and fix types.
20515 (maybe_cast_to_ptrmode): New function.
20517 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20519 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
20521 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
20523 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
20525 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
20527 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
20528 prefix to function labels when generating fast indirect calls.
20530 2014-08-30 David Malcolm <dmalcolm@redhat.com>
20534 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
20535 param back from rtx_insn * to rtx. Rename param from "label" to
20536 "label_or_return", reintroducing "label" as an rtx_insn * after
20537 we've ensured it's not a RETURN.
20538 (first_active_target_insn): Likewise for return type and param;
20539 add a checked cast to rtx_insn * once we've ensured "insn" is not
20541 (steal_delay_list_from_target): Convert param "pnew_thread" back
20542 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
20544 (own_thread_p): Convert param "thread" back from an rtx_insn * to
20545 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
20546 cast once we've established we're not dealing with a RETURN,
20547 renaming subsequent uses of "thread" to "thread_insn".
20548 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
20550 (follow_jumps): Convert return type and param "label" from
20551 rtx_insn * back to rtx. Move initialization of "value" to after
20552 the handling for ANY_RETURN_P, adding a checked cast there to
20553 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
20554 rename to "this_label_or_return", reintroducing "this_label" as
20555 an rtx_insn * once we've handled the case where it could be an
20557 (fill_slots_from_thread): Rename param "thread" to
20558 "thread_or_return", converting from an rtx_insn * back to an rtx.
20559 Reintroduce name "thread" as an rtx_insn * local with a checked
20560 cast once we've handled the case of it being an ANY_RETURN_P.
20561 Convert local "new_thread" from an rtx_insn * back to an rtx.
20562 Add a checked cast when assigning to "trial" from "new_thread".
20563 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
20564 checked cast to rtx_insn * from "new_thread" when invoking
20566 (fill_eager_delay_slots): Convert locals "target_label",
20567 "insn_at_target" from rtx_insn * back to rtx.
20568 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
20569 (relax_delay_slots): Convert locals "trial", "target_label" from
20570 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
20571 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
20572 invoking update_block.
20573 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
20574 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
20576 * resource.h (mark_target_live_regs): Undo erroneous conversion
20577 of second param of r214693, converting it back from rtx_insn * to
20578 rtx, since it could be a RETURN.
20580 * resource.c (find_dead_or_set_registers): Similarly, convert
20581 param "jump_target" back from an rtx_insn ** to an rtx *, as we
20582 could be writing back a RETURN. Rename local rtx_insn * "next" to
20583 "next_insn", and introduce "lab_or_return" as a local rtx,
20584 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
20585 (mark_target_live_regs): Undo erroneous conversion
20586 of second param of r214693, converting it back from rtx_insn * to
20587 rtx, since it could be a RETURN. Rename it from "target" to
20588 "target_maybe_return", reintroducing the name "target" as a local
20589 rtx_insn * with a checked cast, after we've handled the case of
20592 2014-08-29 DJ Delorie <dj@redhat.com>
20594 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
20595 pointer size up to a power of two.
20596 * defaults.h (DWARF2_ADDR_SIZE): Round up.
20597 (POINTER_SIZE_UNITS): New, rounded up value.
20598 * dwarf2asm.c (size_of_encoded_value): Use it.
20599 (dw2_output_indirect_constant_1): Likewise.
20600 * expmed.c (init_expmed_one_conv): We now know the sizes of
20602 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
20603 * optabs.c (expand_float): Use precision, not size.
20604 (expand_fix): Likewise.
20605 * simplify-rtx (simplify_unary_operation_1): Likewise.
20606 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20607 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
20608 (default_assemble_integer) Likewise.
20609 (dump_tm_clone_pairs): Likewise.
20610 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
20611 * var-tracking.c (adjust_mems): Allow partial-int modes also.
20612 (prepare_call_arguments): Likewise.
20613 * stor-layout.c (finalize_type_size): Preserve precision.
20614 (layout_type): Use precision, not size.
20616 * expr.c (convert_move): If the target has an explicit converter,
20619 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20621 * gdbinit.in: Skip various inline functions in rtl.h when
20624 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
20627 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
20629 2014-08-29 Richard Biener <rguenther@suse.de>
20631 PR tree-optimization/62291
20632 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
20633 exactly the vector size needed and use quick_push.
20634 (phi_translate_1): Adjust comment.
20635 (valid_in_sets): Remove block argument and remove pointless
20637 (dependent_clean): Adjust for removal of block argument.
20639 (compute_antic_aux): Likewise.
20640 (compute_partial_antic_aux): Likewise.
20642 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20643 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20644 Anna Tikhonova <anna.tikhonova@intel.com>
20645 Ilya Tocar <ilya.tocar@intel.com>
20646 Andrey Turetskiy <andrey.turetskiy@intel.com>
20647 Ilya Verbin <ilya.verbin@intel.com>
20648 Kirill Yukhin <kirill.yukhin@intel.com>
20649 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20651 * config/i386/sse.md
20652 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
20653 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
20654 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
20655 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
20657 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20658 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20659 Anna Tikhonova <anna.tikhonova@intel.com>
20660 Ilya Tocar <ilya.tocar@intel.com>
20661 Andrey Turetskiy <andrey.turetskiy@intel.com>
20662 Ilya Verbin <ilya.verbin@intel.com>
20663 Kirill Yukhin <kirill.yukhin@intel.com>
20664 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20666 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
20667 * config/i386/sse.md
20668 (define_mode_iterator VI4_128_8_256): New.
20669 (define_mode_iterator VI2_128_4_256): Ditto.
20670 (define_mode_iterator PMOV_DST_MODE): Rename into
20671 (define_mode_iterator PMOV_DST_MODE_1): this.
20672 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
20673 Use PMOV_DST_MODE_1 mode iterator.
20674 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20676 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20678 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
20679 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
20680 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
20681 (define_mode_iterator PMOV_DST_MODE_2): New.
20682 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
20683 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
20684 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
20686 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
20687 (define_mode_attr pmov_dst_3): Ditto.
20688 (define_mode_attr pmov_dst_zeroed_3): Ditto.
20689 (define_mode_attr pmov_suff_3): Ditto.
20690 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
20691 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
20692 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
20693 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
20694 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
20695 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
20696 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
20697 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
20698 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
20699 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
20700 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
20701 (define_mode_attr pmov_dst_4): Ditto.
20702 (define_mode_attr pmov_dst_zeroed_4): Ditto.
20703 (define_mode_attr pmov_suff_4): Ditto.
20704 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
20705 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
20706 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
20707 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
20708 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
20709 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
20710 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
20711 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
20712 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
20713 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
20714 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
20716 2014-08-29 Richard Biener <rguenther@suse.de>
20718 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
20719 NON_LVALUE_EXPR in gimple.
20721 2014-08-29 Richard Biener <rguenther@suse.de>
20723 PR middle-end/62292
20724 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
20725 from previous refactoring.
20726 (gimple_fold_builtin_strncpy): Likewise.
20728 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20731 * function.c (assign_parm_setup_reg): Remove erroneous checked
20732 cast to rtx_insn * on result of gen_extend_insn in favor of
20733 introducing a new local rtx "pat".
20735 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20737 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
20738 to silence warning.
20739 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
20741 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20743 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
20744 (next_insn): Likewise.
20745 * emit-rtl.c (next_insn): Likewise.
20746 (previous_insn): Likewise.
20747 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
20748 "insn" and "next" from rtx to rtx_insn *.
20749 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
20750 "insn", "insn1", "vliw_start", "prologue_end_note",
20751 "last_insn_in_packet".
20753 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20755 * shrink-wrap.h (active_insn_between): Strengthen both params from
20757 * function.c (active_insn_between): Likewise.
20759 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20761 * genattr.c (main): When writing out insn-attr.h, strengthen param
20762 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
20763 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
20764 writing out the definition of dfa_clear_single_insn_cache to the
20765 generated insn-automata.c
20767 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20769 * resource.h (clear_hashed_info_for_insn): Strengthen param from
20771 (incr_ticks_for_insn): Likewise.
20772 (init_resource_info): Likewise.
20774 * resource.c (init_resource_info): Likewise.
20775 (clear_hashed_info_for_insn): Likewise.
20776 (incr_ticks_for_insn): Likewise.
20778 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
20780 (steal_delay_list_from_target): Use methods of "seq".
20781 (try_merge_delay_insns): Use methods of "merged_insns".
20782 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
20783 (reorg_redirect_jump): Likewise for param "jump".
20785 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20787 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
20789 * config/s390/s390.c (s390_split_branches): Eliminate top-level
20790 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
20792 (s390_mainpool_finish): In three places, split out a local rtx
20793 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
20794 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
20795 and split another local rtx "insn" out into rtx "pat" and
20797 * config/sh/sh.c (output_branchy_insn): Rather than working
20798 directly on operands[9], introduce local rtx_code_label *
20799 variables named "lab" in two places, working on them, and then
20800 assigning them to operands[9], so that the intervening operations
20801 are known by the type system to be on insns.
20803 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20805 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
20808 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
20809 in invocation of INSN_HAS_LOCATION.
20811 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20813 * config/rs6000/altivec.h (vec_xl): New #define.
20814 (vec_xst): Likewise.
20815 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
20816 (XXSPLTD_V2DI): Likewise.
20817 (DIV_V2DI): Likewise.
20818 (UDIV_V2DI): Likewise.
20819 (MUL_V2DI): Likewise.
20820 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20821 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
20822 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
20823 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
20824 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
20825 (UNSPEC_VSX_DIVSD): Likewise.
20826 (UNSPEC_VSX_DIVUD): Likewise.
20827 (UNSPEC_VSX_MULSD): Likewise.
20828 (vsx_mul_v2di): New insn-and-split.
20829 (vsx_div_v2di): Likewise.
20830 (vsx_udiv_v2di): Likewise.
20831 (vsx_xxspltd_<mode>): New insn.
20833 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20835 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
20837 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
20838 (NEXT_INSN): Likewise.
20839 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
20840 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
20842 (no_labels_between_p): Likewise for both params.
20844 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
20845 cast when using NEXT_INSN on operands[2].
20846 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
20847 "insn" from rtx to rtx_insn *, adding a checked cast.
20848 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
20850 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
20852 (arc_text_label): Likewise for param "insn".
20853 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
20855 (arc_ccfsm_record_condition): Likewise for param "jump".
20856 (arc_text_label): Likewise for local "label".
20857 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
20858 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
20859 a method for typesafety. Add a checked cast.
20860 * config/arc/constraints.md (Clb): Add a checked cast when getting
20861 the CODE_LABEL from a LABEL_REF.
20862 * config/arm/arm.c (require_pic_register): Strengthen locals
20863 "seq", "insn" from rtx to rtx_insn *.
20864 (create_fix_barrier): Likewise for locals "selected", "next".
20865 (thumb1_reorg): Likewise for locals "prev", "insn".
20866 (arm_expand_prologue): Likewise for local "last".
20867 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
20869 (thumb2_output_casesi): Likewise for operands[2].
20870 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
20871 strengthen local "insn" from rtx to rtx_insn *.
20872 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
20873 type and param "insn".
20874 (find_prev_insn_start): Likewise.
20875 (hwloop_optimize): Likewise for locals "insn", "last_insn",
20877 (gen_one_bundle): Likewise for loal "t".
20878 (find_load): Likewise for param "insn".
20879 (workaround_speculation): Likewise for locals "insn", "next",
20880 "target", "next_tgt".
20881 * config/c6x/c6x.c (assign_reservations): Likewise for both params
20882 and for locals "insn", "within", "last".
20883 (count_unit_reqs): Likewise for params "head", "tail" and local
20885 (try_rename_operands): Likewise for params "head", "tail".
20886 (reshuffle_units): Likewise for locals "head", "tail", "insn".
20887 (struct c6x_sched_context): Likewise for fields
20888 "last_scheduled_insn", "last_scheduled_iter0".
20889 (init_sched_state): Replace NULL_RTX with NULL.
20890 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
20892 (undo_split_delayed_nonbranch): Likewise for param and for local
20894 (conditionalize_after_sched): Likewise for local "insn".
20895 (bb_earliest_end_cycle): Likewise.
20896 (filter_insns_above): Likewise for locals "insn", "next".
20897 (hwloop_optimize): Remove redundant checked cast.
20898 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
20899 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
20900 NULL_RTX with NULL.
20901 (cris_simple_epilogue): Likewise.
20902 (cris_expand_prologue): Likewise.
20903 (cris_expand_epilogue): Likewise.
20904 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
20905 local "insn" from rtx to rtx_insn *.
20906 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
20907 (struct frv_packet_group): Likewise for the elements within array
20908 fields "insns", "sorted", and for field "nop".
20909 (frv_packet): Likewise for the elements within array field
20911 (frv_add_insn_to_packet): Likewise for param "insn".
20912 (frv_insert_nop_in_packet): Likewise for param "insn" and local
20914 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
20915 (frv_sort_insn_group_1): Likewise for local "insn".
20916 (frv_optimize_membar_local): Likewise.
20917 (frv_align_label): Likewise for locals "x", "last", "barrier",
20919 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
20921 (ia64_sched_init): Likewise for local "insn".
20922 (scheduled_good_insn): Likewise for param "last".
20923 (struct _ia64_sched_context): Likewise for field
20924 "last_scheduled_insn".
20925 (ia64_init_sched_context): Replace NULL_RTX with NULL.
20926 (struct bundle_state): Likewise for field "insn".
20927 (issue_nops_and_insn): Likewise for param "insn".
20928 (get_next_important_insn): Likewise for return type and both
20930 (ia64_add_bundle_selector_before): Likewise for param "insn".
20931 (bundling): Likewise for params "prev_head_insn", "tail" and
20932 locals "insn", "next_insn", "b". Eliminate top-level local rtx
20933 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
20934 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
20935 Strengthen final param from rtx to rtx_insn *.
20936 (iq2000_move_1word): Likewise for second param.
20937 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
20938 param "cur_insn" and local "next_insn".
20939 (iq2000_move_1word): Likewise for param "insn".
20940 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
20941 casts when using NEXT_INSN on operands[1].
20942 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
20943 "insn" from rtx to rtx_insn *.
20944 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
20945 "x", introducing local rtx_insn * "insn" for when working with the
20946 CODE_LABEL of the LABEL_REF.
20947 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
20949 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
20951 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
20953 (conditionalize_block): Likewise for return type and param.
20954 (mcore_is_dead): Likewise for param "first" and local "insn".
20955 (emit_new_cond_insn): Likewise for return type.
20956 (conditionalize_block): Likewise for return type, param, and
20957 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
20959 (conditionalize_optimization): Likewise for local "insn".
20960 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
20962 * config/microblaze/microblaze.md: Add checked casts when using
20964 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
20965 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
20966 and rtx_insn * "insn".
20967 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
20968 checked cast when using NEXT_INSN on operands[2].
20969 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
20970 local "insn" from rtx to rtx_insn *.
20971 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
20973 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
20974 Add a checked cast when using NEXT_INSN on operands[1].
20975 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
20977 (pa_output_cbranch): Likewise for final param.
20978 (pa_output_lbranch): Likewise for second param.
20979 (pa_output_bb): Likewise for third param.
20980 (pa_output_bvb): Likewise.
20981 (pa_output_dbra): Likewise for second param.
20982 (pa_output_movb): Likewise.
20983 (pa_output_parallel_movb): Likewise.
20984 (pa_output_parallel_addb): Likewise.
20985 (pa_output_millicode_call): Likewise for first param.
20986 (pa_output_mul_insn): Likewise for second param.
20987 (pa_output_div_insn): Likewise for third param.
20988 (pa_output_mod_insn): Likewise for second param.
20989 (pa_jump_in_call_delay): Likewise for param.
20990 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
20991 (pa_output_div_insn): Likewise.
20992 (pa_output_mod_insn): Likewise.
20993 (pa_output_cbranch): Likewise.
20994 (pa_output_lbranch): Likewise.
20995 (pa_output_bb): Likewise.
20996 (pa_output_bvb): Likewise.
20997 (pa_output_dbra): Likewise.
20998 (pa_output_movb): Likewise.
20999 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
21000 to simplify and for typesafety.
21001 (pa_output_call): Use method of rtx_sequence *.
21002 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
21003 (pa_jump_in_call_delay): Likewise.
21004 (pa_output_parallel_movb): Likewise.
21005 (pa_output_parallel_addb): Likewise.
21006 (pa_following_call): Likewise.
21007 (pa_combine_instructions): Likewise for locals "anchor",
21009 (pa_can_combine_p): Likewise for params "anchor", "floater" and
21010 locals "start", "end".
21011 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
21012 param "insn" and local "local_insn".
21013 (picochip_final_prescan_insn): Likewise for local "local_insn".
21014 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
21016 (uses_TOC): Likewise.
21017 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
21018 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
21019 splitting out to more tightly-scoped locals, 3 as rtx and one as
21021 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
21023 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
21025 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
21027 (fixup_addr_diff_vecs): Likewise.
21028 (reg_unused_after): Likewise for param 2.
21029 (sh_can_redirect_branch): Likewise for both params.
21030 (check_use_sfunc_addr): Likewise for param 1.
21031 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
21032 (find_barrier): Likewise for local "last_got".
21033 (gen_block_redirect): Likewise for return type, param "jump" and
21034 locals "prev", "scan", "next", "insn".
21035 (struct far_branch): Likewise for fields "near_label",
21036 "insert_place", "far_label".
21037 (gen_far_branch): Likewise for local "jump".
21038 (fixup_addr_diff_vecs): Likewise for param "first" and locals
21040 (barrier_align): Likewise for param and for locals "prev", "x".
21041 Introduce local rtx_sequence * "prev_seq" and use insn method for
21042 typesafety and clarity.
21043 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
21044 (get_dest_uid): Likewise for local "dest".
21045 (split_branches): Likewise for locals "next", "beyond", "label",
21046 "block", "far_label". Add checked casts when assigning to
21047 bp->far_label and "far_label".
21048 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
21049 (sequence_insn_p): Likewise.
21050 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
21051 more loop-scoped rtx "insn" when walking LABEL_REFS.
21052 (sh_can_redirect_branch): Strengthen both params from rtx to
21054 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
21055 new local rtx_sequence * "seq" via a dyn_cast, and use a method
21056 for clarity and typesafety.
21057 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
21058 "insn" from rtx to rtx_insn *.
21059 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
21060 when using NEXT_INSN on the CODE_LABEL in operands[2].
21061 (define_insn "casesi_worker_2"): Likewise.
21062 (define_insn "casesi_shift_media"): Likewise.
21063 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
21065 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
21066 Strengthen field "insn" from rtx to rtx_insn *.
21067 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
21068 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
21069 param "start_insn" and local "start_insn".
21070 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
21072 (find_set_of_reg_bb): Likewise for param "insn".
21073 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
21074 (trace_reg_uses): Likewise for param "start_insn".
21075 (sh_treg_combine::cbranch_trace): Likewise for field
21077 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
21079 (sh_treg_combine::record_set_of_reg): Likewise for param
21080 "start_insn" and local "i".
21081 (sh_treg_combine::can_remove_cstore): Likewise for local
21083 (sh_treg_combine::try_optimize_cbranch): Likewise for param
21085 (sh_treg_combine::execute): Likewise for local "i".
21086 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
21088 (sparc_check_64): Likewise for second param.
21089 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
21090 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
21091 dyn_cast, using its insn method for typesafety and clarity.
21092 (empty_delay_slot): Strengthen param "insn" from rtx to
21094 (set_extends): Likewise.
21095 (sparc_check_64): Likewise.
21096 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
21097 for locals "seq", "last_insn".
21098 (combine_bnp): Likewise for param "insn".
21099 (xstormy16_reorg): Likewise for local "insn".
21100 * config/v850/v850.c (substitute_ep_register): Likewise for params
21101 "first_insn", "last_insn" and local "insn".
21102 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
21103 elements of "regs" array, and local "insn".
21104 * except.c (emit_note_eh_region_end): Likewise for param "insn".
21105 * final.c (final_sequence): Strengthen this global from rtx to
21107 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
21109 (final_scan_insn): Update assignment to "final_sequence" to be
21110 from "seq", the cast version of "body", for type-safety.
21111 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
21112 "insns" from rtx to rtx_insn *.
21113 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
21114 * genattr.c (main): When writing out generated insn-attr.h,
21115 strengthen params 1 and 3 of eligible_for_delay,
21116 eligible_for_annul_true, eligible_for_annul_false from rtx to
21118 * genattrtab.c (write_eligible_delay): Likewise when writing out
21119 generated insn-attrtab.c; also local "insn" the generated
21121 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
21123 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
21124 "start_label" from rtx to rtx_insn *.
21125 * ira.c (decrease_live_ranges_number): Likewise for local "p".
21126 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
21127 "insns" and local "insn".
21128 (validate_equiv_mem): Likewise for param "start" and local "insn".
21129 (memref_used_between_p): Likewise for params "start", "end" and
21131 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
21133 * loop-doloop.c (doloop_optimize): Within region guarded by
21134 INSN_P (doloop_pat), introduce a new local rtx_insn *
21135 "doloop_insn" via a checked cast, and use it for typesafety,
21136 eventually writing the value back into doloop_pat.
21137 * output.h (final_sequence): Strengthen this global from rtx to
21139 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
21140 reintroducing "insn" as an rtx_insn * via a checked cast.
21141 Strengthen param "attempt" and local "new_insn"from rtx to
21143 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
21145 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
21146 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
21147 "p" in favor of more tightly-scoped replacements, sometimes rtx
21148 and sometimes rtx_insn *, as appropriate.
21149 (delete_output_reload): Eliminate top-level rtx "i1", splitting
21150 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
21151 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
21152 local "trial" from rtx to rtx_insn *.
21153 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
21154 rtx to rtx_insn *. Strenghten local "pat" from rtx to
21155 rtx_sequence * and use methods for clarity and typesafety.
21156 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
21157 rtx to rtx_insn *. Strenghten local "li" from rtx to
21158 rtx_insn_list * and use its methods for clarity and typesafety.
21159 (steal_delay_list_from_target): Strengthen param "insn" from rtx
21161 (steal_delay_list_from_fallthrough): Likewise.
21162 (try_merge_delay_insns): Likewise for param "thread" and locals
21163 "trial", "next_trial", "delay_insn".
21164 (redundant_insn): Likewise for param "target" and local "trial".
21165 (own_thread_p): Likewise for param "thread" and locals
21166 "active_insn", "insn".
21167 (get_label_before): Likewise for param "insn".
21168 (fill_simple_delay_slots): Likewise for local "new_label"; use
21169 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
21170 (label_before_next_insn): Strengthen return type and local "insn"
21171 from rtx to rtx_insn *.
21172 (relax_delay_slots): Likewise for locals "other", "tmp".
21173 (make_return_insns): Likewise for param "first" and locals "insn",
21174 "jump_insn", "prev". Move declaration of "pat" to its assignment
21175 and strengthen from rtx to rtx_sequence *. Use its methods for
21176 clarity and typesafety.
21177 * rtlanal.c (no_labels_between_p): Strengthen params from
21178 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
21180 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
21181 from const_rtx to const rtx_insn *.
21182 (reg_set_between_p): Rename param "from_insn" to
21183 "uncast_from_insn", and reintroduce "from_insn" as a
21184 const rtx_insn * via a checked cast.
21185 (modified_between_p): Likewise for param "start" as "uncast_start".
21186 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
21187 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
21188 "tmp", head" from rtx to rtx_insn *.
21189 (recompute_rev_top_order): Likewise for local "insn".
21190 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
21191 * store-motion.c (build_store_vectors): Likewise for local "insn".
21192 Strengthen local "st" from rtx to rtx_insn_list * and use methods
21193 for clarity and typesafety.
21194 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
21196 (computation_cost): Likewise for local "seq".
21197 (get_address_cost): Likewise.
21199 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21201 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
21203 (label_is_jump_target_p): Likewise for second param.
21205 * rtlanal.c (tablejump_p): Likewise for param "insn".
21206 (label_is_jump_target_p): Likewise for param "jump_insn".
21208 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21210 * rtl.h (find_first_parameter_load): Strengthen return type and
21211 both params from rtx to rtx_insn *.
21212 * rtlanal.c (find_first_parameter_load): Strengthen return type,
21213 both params and locals "before", "first_set" from rtx to
21214 rtx_insn *. Remove now-redundant cast.
21215 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
21217 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21219 * rtl.h (find_last_value): Delete.
21220 * rtlanal.c (find_last_value): Delete.
21222 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21224 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
21225 from rtx to rtx_insn *.
21226 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
21227 rtx "note" with new local rtx_insn * "new_head" when calculating
21228 head insn of new basic block.
21229 * combine.c (combine_split_insns): Strengthen return type and local
21230 "ret" from rtx to rtx_insn *.
21231 (likely_spilled_retval_p): Likewise for locals "use" and "p".
21232 (try_combine): Eliminate local "m_split", splitting into new
21233 locals "m_split_insn" and "m_split_pat".
21234 (find_split_point): Strengthen local "seq" from rtx into
21236 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
21237 locals "label", "branch".
21238 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
21240 (define_expand "umulsi3_highpart"): Likewise for local "insn".
21241 * dse.c (note_add_store_info): Likewise for fields "first",
21243 (note_add_store): Likewise for local "insn".
21244 (emit_inc_dec_insn_before): Likewise for locals "insn",
21246 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
21247 (replace_read): Likewise for locals "insns", "this_insn".
21248 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
21249 (notice_eh_throw): Likewise for param "insn".
21250 (before_next_cfi_note): Likewise for return type, param, and local
21252 (connect_traces): Likewise for local "note".
21253 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
21254 (verify_rtl_sharing): Likewise.
21255 (unshare_all_rtl_in_chain): Likewise for param "insn".
21256 (get_first_nonnote_insn): Likewise for local "insn".
21257 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
21258 "seq" and use its methods to clarify things.
21259 (next_insn): Strengthen return type from rtx to rtx_insn *.
21260 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
21261 local rtx_insn * using a checked cast, dropping a checked cast
21262 made redundant by this change. Use a cast to and method of
21263 rtx_sequence to clarify the code.
21264 (previous_insn): Rename param "insn" to "uncast_insn" and
21265 reintroduce "insn" as a local rtx_insn * using a checked cast,
21266 dropping a checked cast made redundant by this change. Use a cast
21267 to and method of rtx_sequence to clarify the code.
21268 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
21269 reintroduce "insn" as a local rtx_insn * using a checked cast,
21270 dropping a checked cast made redundant by this change.
21271 (next_nonnote_insn_bb): Likewise.
21272 (prev_nonnote_insn): Likewise.
21273 (prev_nonnote_insn_bb): Likewise.
21274 (next_nondebug_insn): Likewise.
21275 (prev_nondebug_insn): Likewise.
21276 (next_nonnote_nondebug_insn): Likewise.
21277 (prev_nonnote_nondebug_insn): Likewise.
21278 (next_real_insn): Likewise.
21279 (prev_real_insn): Likewise.
21280 (next_active_insn): Likewise.
21281 (prev_active_insn): Likewise.
21282 (next_cc0_user): Likewise. Use rtx_sequence and a method for
21284 (prev_cc0_setter): Likewise.
21285 (try_split): Rename param "trial" to "uncast_trial" and
21286 reintroduce "insn" as a local rtx_insn * using a checked cast,
21287 dropping checked casts made redundant by this change.
21288 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
21290 (remove_insn): Rename param "insn" to "uncast_insn" and
21291 reintroduce "insn" as a local rtx_insn * using a checked cast.
21292 (emit_pattern_after_setloc): Likewise for param "after", as
21294 (emit_pattern_after): Likewise. Strengthen local "prev" from
21296 (emit_pattern_before_setloc): Rename param "before" to
21297 "uncast_before" and reintroduce "before" as a local rtx_insn *
21298 using a checked cast. Strengthen locals "first", "last" from
21300 (emit_pattern_before): Likewise rename/cast param "before" to
21301 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
21302 * except.c (copy_reg_eh_region_note_forward): Strengthen param
21303 "first" and local "insn" from rtx to rtx_insn *.
21304 (copy_reg_eh_region_note_backward): Likewise for param "last"
21306 * expr.c (fixup_args_size_notes): Rename param "last" to
21307 "uncast_last" and reintroduce "last" as a local rtx_insn *
21308 using a checked cast. Strengthen local "insn" from rtx to
21310 * function.c (set_insn_locations): Strengthen param "insn" from
21312 (record_insns): Likewise for param "insns" and local "tmp".
21313 (active_insn_between): Rename param "tail" to
21314 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
21315 using a checked cast.
21316 (thread_prologue_and_epilogue_insns): Split out top-level local
21317 rtx "seq" into three different rtx_insn * locals. Strengthen
21318 local "prologue_seq" from rtx to rtx_insn *.
21319 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
21320 from rtx to rtx_insn *.
21321 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21322 (priority): Likewise for locals "prev_first", "twin".
21323 (setup_insn_max_reg_pressure): Likewise for param "after".
21324 (sched_setup_bb_reg_pressure_info): Likewise.
21325 (no_real_insns_p): Strengthen params from const_rtx to
21327 (schedule_block): Strengthen local "next_tail" from rtx to
21329 * ifcvt.c (find_active_insn_before): Strengthen return type and
21330 param "insn" from rtx to rtx_insn *.
21331 (find_active_insn_after): Likewise.
21332 (cond_exec_process_insns): Likewise for param "start" and local "insn".
21333 (cond_exec_process_if_block): Likewise for locals "then_start",
21334 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
21335 (noce_process_if_block): Likewise for local "jump".
21336 (merge_if_block): Likewise for two locals named "end".
21337 (cond_exec_find_if_block): Likewise for local "last_insn".
21338 * jump.c (delete_related_insns): Rename param "insn" to
21339 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
21340 checked cast. Strengthen local "p" from rtx to rtx_insn *.
21341 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
21343 (split_reg): Likewise.
21344 * lra.c (lra_process_new_insns): Likewise.
21345 * modulo-sched.c (permute_partial_schedule): Strengthen param
21346 "last" from rtx to rtx_insn *.
21347 * optabs.c (add_equal_note): Likewise for param "insns" and local
21349 (expand_binop_directly): Add checked casts to rtx_insn * within
21350 NEXT_INSN (pat) uses.
21351 (expand_unop_direct): Likewise.
21352 (maybe_emit_unop_insn): Likewise.
21353 * recog.c (peep2_attempt): Strengthen locals "last",
21354 "before_try", "x" from rtx to rtx_insn *.
21355 * reorg.c (optimize_skip): Strengthen return type and local
21356 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
21357 and locals "trial", "next_trial" from rtx to rtx_insn *.
21358 * resource.c (next_insn_no_annul): Strengthen return type and
21359 param "insn" from rtx to rtx_insn *. Use a cast to and method of
21360 rtx_sequence to clarify the code.
21361 (mark_referenced_resources): Add a checked cast to rtx_insn *
21362 within PREV_INSN (x).
21363 (find_dead_or_set_registers): Strengthen return type, param
21364 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
21365 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
21367 (mark_target_live_regs): Strengthen params "insns" and "target",
21368 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
21369 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
21371 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
21372 from rtx to rtx_insn *.
21373 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
21374 from rtx to rtx_insn *.
21375 (copy_reg_eh_region_note_backward): Likewise.
21376 (unshare_all_rtl_in_chain): Likewise for sole param.
21377 (dump_rtl_slim): Strengthen second and third params from const_rtx
21378 to const rtx_insn *.
21379 * sched-deps.c (sched_free_deps): Strengthen params "head" and
21380 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
21381 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
21382 "next_tail" from rtx to rtx_insn *.
21383 (begin_move_insn): Likewise for local "next".
21384 * sched-int.h (sched_free_deps): Likewise for first and second
21386 (no_real_insns_p): Strengthen both params from const_rtx to
21388 (sched_setup_bb_reg_pressure_info): Strengthen second params from
21390 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
21392 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
21393 and locals "insn", "tail" from const_rtx to const rtx_insn *.
21394 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
21396 (debug_rtl_slim): Strengthen params "first" and "last" from
21397 const_rtx to const rtx_insn *.
21398 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
21399 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
21400 (convert_to_simple_return): Likewise for param "returnjump".
21401 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
21403 (convert_to_simple_return): Likewise for param "returnjump".
21404 * valtrack.c (propagate_for_debug): Likewise for params
21406 * valtrack.h (propagate_for_debug): Likewise for second param.
21408 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21410 * output.h (insn_current_reference_address): Strengthen param
21411 from rtx to rtx_insn *.
21412 * final.c (insn_current_reference_address): Likewise.
21414 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21416 * basic-block.h (inside_basic_block_p): Strengthen param from
21417 const_rtx to const rtx_insn *.
21418 * cfgbuild.c (inside_basic_block_p): Likewise.
21420 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21422 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
21424 (get_trace_info): Likewise for param "insn".
21425 (save_point_p): Likewise.
21426 (maybe_record_trace_start): Likewise for both params.
21427 (maybe_record_trace_start_abnormal): Likewise.
21428 (create_trace_edges): Likewise for sole param and for three of the
21429 locals named "lab".
21430 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
21431 to rtx_insn *, and update a call to pat->element to pat->insn.
21433 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21435 * function.h (struct expr_status): Convert field "x_forced_labels"
21436 from rtx_expr_list * to rtx_insn_list *.
21438 * cfgbuild.c (make_edges): Convert local "x" from an
21439 rtx_expr_list * to an rtx_insn_list *, replacing use of
21440 "element" method with "insn" method.
21441 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21442 * except.c (sjlj_emit_dispatch_table): Replace use of
21443 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
21445 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
21446 rtx_expr_list * to an rtx_insn_list *, replacing use of
21447 "element" method with "insn" method.
21448 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21449 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
21450 rtx_insn *, adding a checked cast. Replace use of
21451 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
21453 (expand_label): Likewise for local "label_r".
21455 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21457 * function.h (struct rtl_data): Convert field
21458 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
21460 * rtl.h (remove_node_from_insn_list): New prototype.
21462 * builtins.c (expand_builtin): When prepending to
21463 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21465 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
21466 to rtx_insn_list *, and use its "insn" method rather than
21468 * cfgrtl.c (delete_insn): Use new function
21469 remove_node_from_insn_list rather than
21470 remove_node_from_expr_list.
21471 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
21472 to rtx_insn_list *, and use its "insn" method rather than
21474 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21475 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21476 * rtlanal.c (remove_node_from_insn_list): New function, adapted
21477 from remove_node_from_expr_list.
21478 * stmt.c (expand_label): When prepending to
21479 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21482 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21484 * function.h (struct rtl_data): Strengthen fields "x_return_label"
21485 and "x_naked_return_label" from rtx to rtx_code_label *.
21487 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21489 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
21490 (SET_NEXT_INSN): Likewise.
21491 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
21493 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
21494 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
21495 to split out the SEQUENCE from local "bundle", strengthening the
21496 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
21497 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
21498 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
21499 and the type of the elements of the "slot" array from rtx to
21501 (reorg_split_calls): Likewise for locals "insn" and "next", and
21502 the type of the elements of the "slot" array.
21504 * config/frv/frv.c (frv_nops): Likewise for the elements of this
21506 (frv_function_prologue): Likewise for locals "insn", "next",
21508 (frv_register_nop): Introduce a local "nop_insn" to be the
21509 rtx_insn * containing rtx "nop".
21511 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
21512 used as an insn and sometimes as a pattern, so rename it to
21513 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
21514 using it where dealing with the core insn.
21516 * config/picochip/picochip.c (reorder_var_tracking_notes):
21517 Strengthen locals "insn", "next", "last_insn", "queue",
21518 "next_queue", "prev" from rtx to rtx_insn *.
21520 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
21521 the second param is an rtx_insn ** rather than an rtx **.
21522 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
21523 from rtx to rtx_sequence *, and introduce local named "sequence",
21524 using methods of rtx_sequence to clarify the code.
21525 (remove_insn): Introduce local rtx_sequence * named "sequence" and
21527 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
21528 Rename param "after" to "uncast_after", reintroducing "after" as a
21529 local rtx_insn * with a checked cast.
21530 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
21531 reintroducing "after" as a local rtx_insn * with a checked cast.
21532 Strengthen local "last" from rtx to rtx_insn * and remove the
21533 now-redundant checked casts.
21534 (copy_delay_slot_insn): Strengthen return type and param from rtx
21537 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
21538 "last" from rtx to rtx_insn *.
21540 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21542 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
21543 param from rtx to rtx_insn *.
21545 * emit-rtl.c (copy_delay_slot_insn): Likewise.
21547 * reorg.c (skip_consecutive_labels): Strengthen return type, param
21548 and local "insn" from rtx to rtx_insn *.
21549 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
21550 (unfilled_slots_next): Likewise.
21551 (function_return_label): Strengthen from rtx to rtx_code_label *.
21552 (function_simple_return_label): Likewise.
21553 (first_active_target_insn): Strengthen return type and param from
21555 (find_end_label): Strengthen return type from rtx to
21556 rtx_code_label *; strengthen locals as appropriate.
21557 (emit_delay_sequence): Strengthen return type, param "insn" and
21558 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
21559 and local "li" from rtx to rtx_insn_list *, using methods of
21560 rtx_insn_list for clarity and typesafety.
21561 (add_to_delay_list): Strengthen return type and param "insn" from
21562 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
21563 rtx_insn_list * and use methods of rtx_insn_list.
21564 (delete_from_delay_slot): Strengthen return type, param "insn",
21565 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
21566 Strengthen local "seq" from rtx to rtx_sequence *, and local
21567 "delay_list" from rtx to rtx_insn_list *, using methods of
21568 rtx_sequence for clarity and type-safety.
21569 (delete_scheduled_jump): Add checked cast when invoking
21570 delete_from_delay_slot. Strengthen local "trial" from rtx to
21572 (optimize_skip): Strengthen return type and local "delay_list"
21573 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
21575 (steal_delay_list_from_target): Strengthen return type, param
21576 "delay_list" and local "new_delay_list" from rtx to
21577 rtx_insn_list *. Strengthen param "seq" from rtx to
21578 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
21580 Split out local "temp" into multiple more-tightly scoped locals:
21581 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
21582 of rtx_insn_list and rtx_sequence for clarity and typesafety.
21583 Strengthen locals named "trial" from rtx to rtx_insn *.
21584 (steal_delay_list_from_fallthrough): Strengthen return type and
21585 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
21586 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
21587 Strengthen local "trial" from rtx to rtx_insn *.
21588 (try_merge_delay_insns): Strength local "merged_insns" from rtx
21589 to rtx_insn_list * and use its methods. Strengthen local "pat"
21590 from rtx to rtx_sequence * and use its methods. Strengthen locals
21591 "dtrial" and "new_rtx" from rtx to rtx_insn *.
21592 (get_label_before): Strengthen return type and local "label" from
21594 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
21595 "next_trial", "next", prev". Strengthen local "delay_list" from
21596 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
21598 (follow_jumps): Strengthen return type, param "label" and locals
21599 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
21600 (fill_slots_from_thread): Strengthen return type, param
21601 "delay_list" from rtx to rtx_insn_list *. Strengthen params
21602 "insn", "thread", "opposite_thread" and locals "new_thread",
21603 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
21604 "sequence" from a checked cast to rtx_sequence so that we can call
21605 steal_delay_list_from_target and steal_delay_list_from_fallthrough
21606 with an rtx_sequence *.
21607 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
21608 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
21609 Strengthen local "delay_list" from rtx to rtx_insn_list *.
21610 (relax_delay_slots): Strengthen param "first" and locals "insn",
21611 "next", "trial", "delay_insn", "target_label" from rtx to
21612 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
21613 Introduce a local "trial_seq" for PATTERN (trial) of type
21614 rtx_sequence *, in both cases using methods of rtx_sequence.
21615 (dbr_schedule): Strengthen param "first" and locals "insn",
21616 "next", "epilogue_insn" from rtx to rtx_insn *.
21618 2014-08-28 Richard Biener <rguenther@suse.de>
21620 PR tree-optimization/62283
21621 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21622 Do not peel loops for alignment where the vector loop likely
21623 doesn't run at least VF times.
21625 2014-08-28 Bin Cheng <bin.cheng@arm.com>
21627 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
21628 important_candidates. Consider all important candidates if
21629 IVS doesn't give any result. Remove check on ivs->upto.
21630 (try_add_cand_for): Call iv_ca_add_use only once.
21632 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21633 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21634 Anna Tikhonova <anna.tikhonova@intel.com>
21635 Ilya Tocar <ilya.tocar@intel.com>
21636 Andrey Turetskiy <andrey.turetskiy@intel.com>
21637 Ilya Verbin <ilya.verbin@intel.com>
21638 Kirill Yukhin <kirill.yukhin@intel.com>
21639 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21641 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
21642 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
21644 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21645 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21646 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21647 (define_insn "*mul<mode>3"): Add EVEX version.
21649 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21651 Anna Tikhonova <anna.tikhonova@intel.com>
21652 Ilya Tocar <ilya.tocar@intel.com>
21653 Andrey Turetskiy <andrey.turetskiy@intel.com>
21654 Ilya Verbin <ilya.verbin@intel.com>
21655 Kirill Yukhin <kirill.yukhin@intel.com>
21656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21658 * config/i386/sse.md
21659 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
21660 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
21661 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
21662 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
21663 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
21664 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
21665 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
21666 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
21667 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
21668 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
21669 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
21670 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
21671 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
21672 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
21673 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
21674 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"):
21677 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21678 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21679 Anna Tikhonova <anna.tikhonova@intel.com>
21680 Ilya Tocar <ilya.tocar@intel.com>
21681 Andrey Turetskiy <andrey.turetskiy@intel.com>
21682 Ilya Verbin <ilya.verbin@intel.com>
21683 Kirill Yukhin <kirill.yukhin@intel.com>
21684 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21686 * config/i386/sse.md
21687 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
21688 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
21689 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
21691 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21692 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21693 Anna Tikhonova <anna.tikhonova@intel.com>
21694 Ilya Tocar <ilya.tocar@intel.com>
21695 Andrey Turetskiy <andrey.turetskiy@intel.com>
21696 Ilya Verbin <ilya.verbin@intel.com>
21697 Kirill Yukhin <kirill.yukhin@intel.com>
21698 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21700 * config/i386/sse.md
21701 (define_mode_iterator VI128_256): New.
21702 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
21704 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21706 Anna Tikhonova <anna.tikhonova@intel.com>
21707 Ilya Tocar <ilya.tocar@intel.com>
21708 Andrey Turetskiy <andrey.turetskiy@intel.com>
21709 Ilya Verbin <ilya.verbin@intel.com>
21710 Kirill Yukhin <kirill.yukhin@intel.com>
21711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21713 * config/i386/sse.md
21714 (define_mode_iterator VI8_256_512): New.
21715 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
21717 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21718 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
21720 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
21722 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21724 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
21725 pointer to the cumulative reloc value and return the value for
21726 this reloc instead.
21727 (compute_reloc_for_rtx): Take a const_rtx. Call
21728 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
21729 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
21730 for_each_rtx for the CONST case.
21732 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21734 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
21735 (mark_constants_in_pattern): ...this new function to iterate over
21737 (mark_constants): Update accordingly.
21739 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21741 * varasm.c: Include rtl-iter.h.
21742 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
21743 Remove the pointer to the cumulative hashval_t and just return
21744 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
21745 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21746 Accumulate the hashval_ts here instead of const_rtx_hash_1.
21748 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21750 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
21751 Give real type of data parameter. Remove return value.
21752 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
21753 to iterate over subrtxes.
21755 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21757 * var-tracking.c (use_narrower_mode_test): Turn from being a
21758 for_each_rtx callback to being a function that examines each
21760 (adjust_mems): Update accordingly.
21762 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21764 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
21765 callback to being a function that examines each subrtx itself.
21766 Remove handling of null rtxes.
21767 (add_uses): Update accordingly.
21769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21771 * var-tracking.c: Include rtl-iter.h.
21772 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
21773 to being a function that examines each subrtx itself.
21774 (use_type): Update accordingly.
21776 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21778 * store-motion.c: Include rtl-iter.h.
21779 (extract_mentioned_regs_1): Delete.
21780 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
21781 for_each_rtx to iterate over subrtxes.
21783 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21785 * sel-sched.c: Include rtl-iter.h
21786 (count_occurrences_1): Delete.
21787 (count_occurrences_equiv): Turn rtxes into const_rtxes.
21788 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21790 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21792 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
21793 * rtlanal.c (tls_referenced_p_1): Delete.
21794 (tls_referenced_p): Take a const_rtx rather than an rtx.
21795 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21797 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21799 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
21800 (for_each_inc_dec): Take an rtx rather than an rtx *.
21801 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
21802 (cselib_record_sets): Likewise.
21803 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
21804 (check_for_inc_dec): Likewise.
21805 * rtlanal.c (for_each_inc_dec_ops): Delete.
21806 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
21807 rather than a pointer to the memory address. Replace
21808 for_each_inc_dec_ops argument with separate function and data
21809 arguments. Abort on non-autoinc addresses.
21810 (for_each_inc_dec_find_mem): Delete.
21811 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
21812 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
21814 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21816 * rtl.h (find_all_hard_regs): Declare.
21817 * rtlanal.c (find_all_hard_regs): New function.
21818 (record_hard_reg_uses_1): Delete.
21819 (record_hard_reg_uses): Use find_all_hard_regs.
21821 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21823 * rtl.h (replace_label_data): Delete.
21824 (replace_label): Take the old label, new label and update-nuses flag
21825 as direct arguments. Return void.
21826 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
21827 * rtlanal.c (replace_label): Update interface as above. Handle
21828 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
21829 iterator. Use FOR_EACH_SUBRTX_PTR.
21831 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21833 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
21834 with const_rtx parameters.
21835 * varasm.c (get_pool_constant): Likewise.
21836 * rtlanal.c (rtx_referenced_p_1): Delete.
21837 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21838 Assert that the rtx we're looking for is nonnull. Allow searches
21839 for constant pool SYMBOL_REFs.
21841 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21843 * reload1.c: Include rtl-iter.h.
21844 (note_reg_elim_costly): Turn from being a for_each_rtx callback
21845 to being a function that examines each subrtx itself.
21846 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
21848 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21850 * regcprop.c (cprop_find_used_regs_1): Delete.
21851 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21853 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21855 * regcprop.c: Include rtl-iter.h.
21856 (kill_value): Take a const_rtx.
21857 (kill_autoinc_value): Turn from being a for_each_rtx callback
21858 to being a function that examines each subrtx itself.
21859 (copyprop_hardreg_forward_1): Update accordingly.
21861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21863 * reg-stack.c: Include rtl-iter.h.
21864 (subst_stack_regs_in_debug_insn): Delete.
21865 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
21866 instead of for_each_rtx.
21868 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21870 * lower-subreg.c (find_decomposable_subregs): Turn from being
21871 a for_each_rtx callback to being a function that examines each
21872 subrtx itself. Remove handling of null rtxes.
21873 (decompose_multiword_subregs): Update accordingly.
21875 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21877 * lower-subreg.c (adjust_decomposed_uses): Delete.
21878 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
21879 Remove handling of null rtxes.
21881 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21883 * lower-subreg.c: Include rtl-iter.h.
21884 (resolve_subreg_use): Turn from being a for_each_rtx callback
21885 to being a function that examines each subrtx itself. Remove
21886 handling of null rtxes.
21887 (resolve_reg_notes, resolve_simple_move): Update accordingly.
21888 (decompose_multiword_subregs): Likewise.
21890 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21892 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
21893 to being a function that examines each subrtx itself.
21894 (simplify_using_condition, simplify_using_initial_values): Update
21897 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21899 * loop-iv.c: Include rtl-iter.h.
21900 (find_single_def_src): New function.
21901 (replace_single_def_regs): Turn from being a for_each_rtx callback
21902 to being a function that examines each subrtx itself.
21903 (replace_in_expr, simplify_using_initial_values): Update accordingly.
21905 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21907 * jump.c (eh_returnjump_p_1): Delete.
21908 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21909 Remove handling of null rtxes.
21911 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21913 * jump.c: Include rtl-iter.h.
21914 (returnjump_p_1): Delete.
21915 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21916 Remove handling of null rtxes.
21918 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21920 * ira.c: Include rtl-iter.h.
21921 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
21922 to being a function that examines each subrtx itself. Remove
21923 handling of null rtxes.
21924 (update_equiv_regs): Update call accordingly.
21926 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21928 * fwprop.c: Include rtl-iter.h.
21929 (varying_mem_p): Turn from being a for_each_rtx callback to being
21930 a function that examines each subrtx itself.
21931 (propagate_rtx): Update accordingly.
21933 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21935 * function.c: Include rtl-iter.h
21936 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
21937 callback to being a function that examines each subrtx itself.
21938 Return the changed flag.
21939 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
21940 (instantiate_virtual_regs): Update calls accordingly.
21942 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21944 * final.c: Include rtl-iter.h.
21945 (mark_symbol_ref_as_used): Delete.
21946 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
21949 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21951 * emit-rtl.c: Include rtl-iter.h.
21952 (find_auto_inc): Turn from being a for_each_rtx callback to being
21953 a function that examines each subrtx itself. Assume the first operand
21954 to an RTX_AUTOINC is the automodified register.
21955 (try_split): Update call accordingly.
21957 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21959 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
21960 Return a bool, inverting the result so that 0/false means "not ok".
21961 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
21962 subrtxes of a CONST.
21963 (mem_loc_descriptor, add_const_value_attribute)
21964 (resolve_addr_in_expr): Update calls accordingly.
21966 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21968 * dwarf2out.c: Include rtl-iter.h.
21969 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
21970 Remove unused data parameter. Return a bool, inverting the result
21971 so that 0/false means "not ok".
21972 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
21973 instead of for_each_rtx.
21975 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21977 * dse.c: Include rtl-iter.h.
21978 (check_mem_read_rtx): Change void * parameter to real type.
21979 Remove return value.
21980 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
21981 for_each_rtx. Don't handle null rtxes.
21983 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21985 * df-problems.c: Include rtl-iter.h.
21986 (find_memory): Turn from being a for_each_rtx callback to being
21987 a function that examines each subrtx itself. Continue to look for
21988 volatile references even after a nonvolatile one has been found.
21989 (can_move_insns_across): Update calls accordingly.
21991 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21993 * ddg.c (walk_mems_2, walk_mems_1): Delete.
21994 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
21995 to iterate over subrtxes. Return a bool rather than an int.
21997 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21999 * ddg.c: Include rtl-iter.h.
22000 (mark_mem_use_1): Rename to...
22001 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
22002 instead of for_each_rtx.
22003 (mem_read_insn_p): Update accordingly.
22005 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22007 * cse.c (change_cc_mode_args): Delete.
22008 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
22009 a function that examines each subrtx itself. Take the fields of
22010 change_cc_mode_args as argument and return void.
22011 (cse_change_cc_mode_insn): Update calls accordingly.
22013 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22015 * cse.c (is_dead_reg): Change argument to const_rtx.
22016 (dead_debug_insn_data): Delete.
22017 (is_dead_debug_insn): Expand commentary. Turn from being a
22018 for_each_rtx callback to being a function that examines
22019 each subrtx itself. Take the fields of dead_debug_insn_data
22021 (delete_trivially_dead_insns): Update call accordingly.
22023 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22025 * cse.c (check_for_label_ref): Move earlier in file. Turn from
22026 being a for_each_rtx callback to being a function that examines
22027 each subrtx itself.
22028 (cse_extended_basic_block): Update call accordingly.
22030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22032 * cse.c (check_dependence_data): Delete.
22033 (check_dependence): Change from being a for_each_rtx callback to being
22034 a function that examines all subrtxes itself. Don't handle null rtxes.
22035 (invalidate): Update call accordingly.
22037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22039 * cse.c: Include rtl-iter.h.
22040 (approx_reg_cost_1): Delete.
22041 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22042 Don't handle null rtxes.
22044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22046 * cfgcleanup.c: Include rtl-iter.h.
22047 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
22048 to being a function that examines each subrtx itself.
22049 (thread_jump): Update accordingly.
22051 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22053 * combine-stack-adj.c: Include rtl-iter.h.
22054 (record_stack_refs_data): Delete.
22055 (record_stack_refs): Turn from being a for_each_rtx callback
22056 to being a function that examines each subrtx itself.
22057 Take a pointer to the reflist. Invert sense of return value
22058 so that true means success and false means failure. Don't
22060 (combine_stack_adjustments_for_block): Update accordingly.
22062 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22064 * combine.c (record_truncated_value): Turn from being a for_each_rtx
22065 callback to a function that takes an rtx and returns a bool
22066 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
22069 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22071 * combine.c: Include rtl-iter.h.
22072 (unmentioned_reg_p_1): Delete.
22073 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
22074 Don't handle null rtxes.
22076 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22078 * calls.c: Include rtl-iter.h.
22079 (internal_arg_pointer_based_exp_1): Delete.
22080 (internal_arg_pointer_based_exp): Take a const_rtx.
22081 Use FOR_EACH_SUBRTX to iterate over subrtxes.
22083 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22085 * caller-save.c: Include rtl-iter.h.
22086 (add_used_regs_1): Delete.
22087 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
22088 to iterate over subrtxes. Assert that any remaining pseudos
22091 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22093 * bt-load.c: Include rtl-iter.h.
22094 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
22095 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
22096 to iterate over subrtxes.
22097 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
22098 find_btr_use rather than btr_referenced_p.
22100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22102 * alias.c: Include rtl-iter.h.
22103 (refs_newer_value_cb): Delete.
22104 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22106 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22108 * rtl-iter.h: New file.
22109 * rtlanal.c: Include it.
22110 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
22111 (generic_subrtx_iterator <T>::add_single_to_queue)
22112 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
22113 (generic_subrtx_iterator <T>::free_array): New functions.
22114 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
22115 (generic_subrtx_iterator <const_rtx_accessor>)
22116 (generic_subrtx_iterator <rtx_var_accessor>
22117 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
22118 (setup_reg_subrtx_bounds): New function.
22119 (init_rtlanal): Call it.
22121 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
22124 * config/sh/sh.md (ashlsi3): Handle negative shift count for
22126 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
22128 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
22130 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
22132 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22134 * rtl.h (JUMP_LABEL_AS_INSN): New.
22136 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22138 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
22140 (alloc_EXPR_LIST): Strengthen return type from rtx to
22142 (remove_free_EXPR_LIST_node): Likewise for param.
22143 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
22144 from rtx to rtx_expr_list *.
22145 * sched-int.h (struct deps_desc): Strengthen fields
22146 "pending_read_mems" and "pending_write_mems" from rtx to
22149 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
22150 rtx to rtx_expr_list *.
22151 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
22152 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22154 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
22155 from rtx to rtx_expr_list *.
22156 * loop-iv.c (simplify_using_initial_values): Strengthen local
22157 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
22158 "pnote_next" from rtx * to rtx_expr_list **.
22159 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
22160 param "exprp" from rtx * to rtx_expr_list **.
22161 (add_insn_mem_dependence): Strengthen local "mem_list" from
22162 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
22163 to rtx_expr_list *.
22164 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
22165 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
22166 param "old_mems_p" from rtx * to rtx_expr_list **.
22167 * var-tracking.c (struct adjust_mem_data): Strengthen field
22168 "side_effects" from rtx to rtx_expr_list *.
22169 (adjust_insn): Replace NULL_RTX with NULL when assigning to
22171 (prepare_call_arguments): Likewise.
22173 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22175 * function.h (struct rtl_data): Strengthen field
22176 "x_stack_slot_list" from rtx to rtx_expr_list *.
22178 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
22179 when assigning to stack_slot_list.
22181 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22183 * function.h (struct rtl_data): Strengthen field
22184 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
22185 * rtl.h (remove_node_from_expr_list): Strengthen second param from
22186 rtx * to rtx_expr_list **.
22188 * cfgbuild.c (make_edges): In loop over
22189 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
22190 rtx_expr_list *, and use methods of the latter class to clarify
22192 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
22193 rtx_expr_list *, and use methods of the latter class to clarify
22195 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
22196 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22197 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
22198 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
22199 to rtx_expr_list *. Use methods of the latter class to clarify
22202 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22204 * function.h (struct expr_status): Strengthen field
22205 "x_forced_labels" from rtx to rtx_expr_list *.
22207 * cfgbuild.c (make_edges): Split local "x" into two locals,
22208 strengthening one from rtx to rtx_expr_list *, and using methods
22210 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
22211 loop over forced_labels, introduce strengthen it from rtx to
22212 rtx_expr_list *, using methods to clarify the code.
22213 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
22214 to rtx_expr_list *, using methods of said class to clarify the
22216 * reload1.c (set_initial_label_offsets): Split local "x" into two
22217 per-loop variables, strengthening the first from rtx to
22218 rtx_expr_list * and using methods.
22220 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22222 * coretypes.h (class rtx_expr_list): Add forward declaration.
22223 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
22224 * gengenrtl.c (special_rtx): Add EXPR_LIST.
22225 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
22226 invariant: GET_CODE (X) == EXPR_LIST.
22227 (is_a_helper <rtx_expr_list *>::test): New.
22228 (rtx_expr_list::next): New.
22229 (rtx_expr_list::element): New.
22230 (gen_rtx_EXPR_LIST): New.
22232 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22234 * varasm.c (mark_constants): Convert a GET_CODE check into a
22235 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22236 Use methods of rtx_sequence to clarify the code.
22238 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22240 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22241 local "seq" via a checked cast, and use methods of rtx_sequence
22242 to simplify the code.
22244 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22246 * resource.c (mark_referenced_resources): Strengthen local
22247 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
22248 using methods of rtx_sequence to clarify the code.
22249 (find_dead_or_set_registers): Within the switch statement, convert
22250 a GET_CODE check to a dyn_cast, introducing local "seq". Within
22251 the JUMP_P handling, introduce another local "seq", adding a
22252 checked cast to rtx_sequence *. In both cases, use methods of
22253 rtx_sequence to clarify the code.
22254 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
22255 via a checked cast, and use methods of rtx_sequence to simplify
22258 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22260 * reorg.c (redundant_insn): In two places in the function, replace
22261 a check of GET_CODE with a dyn_cast, introducing local "seq", and
22262 usings methods of rtx_sequence to clarify the code.
22264 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22266 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
22267 local "seq" with a checked cast, and use methods of rtx_sequence
22268 to clarify the code.
22270 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22272 * function.c (contains): Introduce local "seq" for PATTERN (insn),
22273 with a checked cast, in the region for where we know it's a
22274 SEQUENCE. Use methods of rtx_sequence.
22276 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22278 * final.c (get_attr_length_1): Replace GET_CODE check with a
22279 dyn_cast, introducing local "seq" and the use of methods of
22281 (shorten_branches): Likewise, introducing local "body_seq".
22282 Strengthen local "inner_insn" from rtx to rtx_insn *.
22283 (reemit_insn_block_notes): Replace GET_CODE check with a
22284 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22285 Use methods of rtx_sequence.
22286 (final_scan_insn): Likewise, introducing local "seq" for when
22287 "body" is known to be a SEQUENCE, using its methods.
22289 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22291 * except.c (can_throw_external): Strengthen local "seq" from rtx
22292 to rtx_sequence *. Use methods of rtx_sequence.
22293 (insn_nothrow_p): Likewise.
22295 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22297 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
22298 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22299 Use methods of rtx_sequence.
22300 (scan_trace): Likewise for local "pat".
22302 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22304 * coretypes.h (class rtx_sequence): Add forward declaration.
22305 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
22306 invariant: GET_CODE (X) == SEQUENCE.
22307 (is_a_helper <rtx_sequence *>::test): New.
22308 (is_a_helper <const rtx_sequence *>::test): New.
22309 (rtx_sequence::len): New.
22310 (rtx_sequence::element): New.
22311 (rtx_sequence::insn): New.
22313 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22315 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22317 (alloc_INSN_LIST): Strengthen return type from rtx to
22319 (copy_INSN_LIST): Likewise for return type and param.
22320 (concat_INSN_LIST): Likewise for both params and return type.
22321 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
22322 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22323 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
22324 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
22326 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
22327 "implicit_sets", "control_uses", "clobbers" from rtx to
22329 (struct deps_desc): Likewise for fields "pending_read_insns",
22330 "pending_write_insns", "pending_jump_insns",
22331 "last_pending_memory_flush", "last_function_call",
22332 "last_function_call_may_noreturn", "sched_before_next_call",
22333 "sched_before_next_jump".
22334 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
22335 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
22337 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
22338 from rtx to rtx_insn_list *.
22339 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
22342 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
22343 to rtx_insn_list **.
22344 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
22346 (queue_insn): Likewise for local "link".
22347 (struct haifa_saved_data): Strengthen field "insn_queue" from
22348 rtx * to rtx_insn_list **.
22349 (save_backtrack_point): Update allocation of save->insn_queue to
22350 reflect the strengthening of elements from rtx to rtx_insn_list *.
22351 (queue_to_ready): Strengthen local "link" from rtx to
22352 rtx_insn_list *; use methods "next" and "insn" when traversing the
22354 (early_queue_to_ready): Likewise for locals "link", "next_link",
22356 (schedule_block): Update allocation of insn_queue to reflect the
22357 strengthening of elements from rtx to rtx_insn_list *. Strengthen
22358 local "link" from rtx to rtx_insn_list *, and use methods when
22360 (add_to_speculative_block): Strengthen locals "twins" and
22361 "next_node" from rtx to rtx_insn_list *, and use methods when
22362 working with them. Strengthen local "twin" from rtx to
22363 rtx_insn *, eliminating a checked cast.
22364 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
22365 from rtx to rtx_insn_list *, and use methods when working with
22368 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
22369 from rtx to rtx_insn_list *, adding a checked cast.
22370 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
22372 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
22373 "newlink" from rtx to rtx_insn_list *. Strengthen local
22374 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
22375 from rtx to rtx_insn *.
22376 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
22377 from rtx to rtx_insn_list *. Use methods of the latter class.
22378 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
22379 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
22380 (remove_free_INSN_LIST_node): Strengthen return type and local
22381 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
22382 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
22383 rtx_insn_list *, using "insn" method.
22385 * sched-deps.c (add_dependence_list): Strengthen param "list"
22386 from rtx to rtx_insn_list *, and use methods when working with it.
22387 (add_dependence_list_and_free): Strengthen param "listp" from
22388 rtx * to rtx_insn_list **.
22389 (remove_from_dependence_list): Strenghten param "listp" from rtx *
22390 to rtx_insn_list **, and use methods when working with *listp.
22391 (remove_from_both_dependence_lists): Strengthen param "listp" from
22392 rtx * to rtx_insn_list **
22393 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
22394 to rtx_insn_list **. Eliminate local "link", in favor of two new
22395 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
22397 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
22398 by introducing local "cond_deps".
22399 (remove_from_deps): Strengthen param "insn" from rtx to
22402 * sched-rgn.c (concat_insn_mem_list): Strengthen param
22403 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
22404 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
22405 Use methods of rtx_insn_list.
22407 * store-motion.c (struct st_expr): Strengthen fields
22408 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
22409 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
22411 (find_moveable_store): Split out "tmp" into multiple more-tightly
22412 scoped locals. Use methods of rtx_insn_list *.
22413 (compute_store_table): Strengthen local "tmp" from rtx to
22414 rtx_insn *. Use methods of rtx_insn_list *.
22416 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22418 * coretypes.h (class rtx_insn_list): Add forward declaration.
22419 * rtl.h (class rtx_insn_list): New subclass of rtx_def
22420 (is_a_helper <rtx_insn_list *>::test): New.
22421 (rtx_insn_list::next): New.
22422 (rtx_insn_list::insn): New.
22423 (gen_rtx_INSN_LIST): Add prototype.
22424 * emit-rtl.c (gen_rtx_INSN_LIST): New.
22425 * gengenrtl.c (special_rtx): Add INSN_LIST.
22427 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22429 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
22430 "prev" from rtx to rtx_insn *.
22432 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22434 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
22435 functions. Require merely an rtx for now, not an rtx_insn *.
22436 (BLOCK_FOR_INSN): Likewise.
22437 (INSN_LOCATION): Likewise.
22438 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
22440 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22442 * rtl.h (PATTERN): Convert this macro into a pair of inline
22443 functions, for now, requiring const_rtx and rtx.
22445 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22447 * target.def (unwind_emit): Strengthen param "insn" from rtx to
22449 (final_postscan_insn): Likewise.
22450 (adjust_cost): Likewise.
22451 (adjust_priority): Likewise.
22452 (variable_issue): Likewise.
22453 (macro_fusion_pair_p): Likewise.
22454 (dfa_post_cycle_insn): Likewise.
22455 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
22456 (first_cycle_multipass_issue): Likewise.
22457 (dfa_new_cycle): Likewise.
22458 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
22459 (speculate_insn): Likewise for param "insn".
22460 (gen_spec_check): Likewise for params "insn" and "label".
22461 (get_insn_spec_ds): Likewise for param "insn".
22462 (get_insn_checked_ds): Likewise.
22463 (dispatch_do): Likewise.
22464 (dispatch): Likewise.
22465 (cannot_copy_insn_p): Likewise.
22466 (invalid_within_doloop): Likewise.
22467 (legitimate_combined_insn): Likewise.
22468 (needed): Likewise.
22471 * doc/tm.texi: Automatically updated to reflect changes to
22474 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
22476 (schedule_block): Likewise.
22477 (sched_init): Likewise.
22478 (sched_speculate_insn): Strengthen param "insn" from rtx to
22480 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
22482 * hooks.c (hook_bool_rtx_true): Rename to...
22483 hook_bool_rtx_insn_true): ...this, and strengthen first param from
22485 (hook_constcharptr_const_rtx_null): Rename to...
22486 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22487 first param from const_rtx to const rtx_insn *.
22488 (hook_bool_rtx_int_false): Rename to...
22489 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22490 param from rtx to rtx_insn *.
22491 (hook_void_rtx_int): Rename to...
22492 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22495 * hooks.h (hook_bool_rtx_true): Rename to...
22496 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
22498 (hook_bool_rtx_int_false): Rename to...
22499 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22500 param from rtx to rtx_insn *.
22501 (hook_void_rtx_int): Rename to...
22502 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22504 (hook_constcharptr_const_rtx_null): Rename to...
22505 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22506 first param from const_rtx to const rtx_insn *.
22508 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
22509 and local "prev" from rtx to rtx_insn *.
22511 * sched-int.h (sched_speculate_insn): Strengthen first param from
22514 * sel-sched.c (create_speculation_check): Likewise for local "label".
22515 * targhooks.c (default_invalid_within_doloop): Strengthen param
22516 "insn" from const_rtx to const rtx_insn *.
22517 * targhooks.h (default_invalid_within_doloop): Strengthen param
22518 from const_rtx to const rtx_insn *.
22520 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
22521 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
22523 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
22525 (arc_invalid_within_doloop): Likewise, with const.
22527 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
22528 (arm_cannot_copy_insn_p): Likewise for param "insn".
22529 (arm_unwind_emit): Likewise.
22531 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
22534 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
22535 (c6x_variable_issue): Likewise. Removed now-redundant checked
22537 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
22539 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
22540 Likewise for param "insn".
22541 (epiphany_mode_after): Likewise.
22542 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
22543 params "insn", "dep_insn".
22544 (epiphany_mode_needed): Likewise for param "insn".
22545 (epiphany_mode_after): Likewise.
22547 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
22548 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22549 (ix86_avx_u128_mode_needed): Likewise.
22550 (ix86_i387_mode_needed): Likewise.
22551 (ix86_mode_needed): Likewise.
22552 (ix86_avx_u128_mode_after): Likewise.
22553 (ix86_mode_after): Likewise.
22554 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
22555 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
22556 (ix86_adjust_priority): Likewise for param "insn".
22557 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
22558 (do_dispatch): Likewise.
22559 (has_dispatch): Likewise.
22560 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
22562 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
22563 reflect renaming of default hook implementation from
22564 hook_constcharptr_const_rtx_null to
22565 hook_constcharptr_const_rtx_insn_null.
22566 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
22568 (ia64_variable_issue): Likewise for param "insn".
22569 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
22570 (ia64_dfa_new_cycle): Likewise.
22571 (ia64_get_insn_spec_ds): Likewise.
22572 (ia64_get_insn_checked_ds): Likewise.
22573 (ia64_speculate_insn): Likewise.
22574 (ia64_gen_spec_check): Likewise for params "insn", "label".
22575 (ia64_asm_unwind_emit): Likewise for param "insn".
22577 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
22579 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
22580 "insn", "def_insn".
22581 (m68k_sched_variable_issue): Likewise for param "insn".
22583 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
22586 * config/microblaze/microblaze.c (microblaze_adjust_cost):
22587 Likewise for params "insn", "dep".
22589 * config/mips/mips.c (mips_adjust_cost): Likewise.
22590 (mips_variable_issue): Likewise for param "insn".
22591 (mips_final_postscan_insn): Likewise.
22593 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
22594 for params "insn", "dep".
22596 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
22598 (pa_adjust_priority): Likewise for param "insn".
22600 * config/picochip/picochip.c (picochip_sched_adjust_cost):
22601 Likewise for params "insn", "dep_insn".
22603 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
22605 (rs6000_variable_issue): Likewise.
22606 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
22607 (rs6000_debug_adjust_cost): Likewise.
22608 (rs6000_adjust_priority): Likewise for param "insn".
22609 (rs6000_use_sched_lookahead_guard): Likewise.
22610 (get_next_active_insn): Likewise for return type and both params.
22611 (redefine_groups): Likewise for params "prev_head_insn", "tail"
22612 and locals "insn", "next_insn".
22613 (pad_groups): Likewise.
22615 * config/s390/s390.c (s390_adjust_priority): Likewise for param
22617 (s390_cannot_copy_insn_p): Likewise.
22618 (s390_sched_variable_issue): Likewise for third param, eliminating
22620 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
22621 default hook implementation from hook_constcharptr_const_rtx_null
22622 to hook_constcharptr_const_rtx_insn_null.
22624 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
22625 from rtx to rtx_insn *.
22626 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
22627 (sh_variable_issue): Likewise for param "insn".
22628 (sh_dfa_new_cycle): Likewise.
22629 (sh_mode_needed): Likewise.
22630 (sh_mode_after): Likewise.
22632 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
22633 params "insn", "dep_insn".
22634 (hypersparc_adjust_cost): Likewise.
22635 (sparc_adjust_cost): Likewise.
22637 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
22638 param, eliminated checked cast.
22639 (spu_sched_adjust_cost): Likewise for first and third params.
22641 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
22642 params "insn" and "dep_insn" from rtx to rtx_insn *.
22644 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
22646 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22648 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
22649 (set_is_load_p): ...this, updating to work on a SET pattern rather
22651 (is_store_insn): Rename to...
22652 (set_is_store_p): ...this, updating to work on a SET pattern
22653 rather than an insn.
22654 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
22655 top of function to where it is needed. Rewrite the bogus
22656 condition that checks for "insn" and "dep" being PARALLEL to
22657 instead use single_set, introducing locals "insn_set" and
22658 "dep_set". Given that we only ever returned "cost" for a non-pair
22659 of SETs, bail out early if we don't have a pair of SET.
22660 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
22661 use the new locals "insn_set" and "dep_set", and update calls to
22662 is_load_insn and is_store_insn to be calls to set_is_load_p and
22665 2014-08-27 Guozhi Wei <carrot@google.com>
22668 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
22669 amount before using it.
22671 2014-08-27 Richard Biener <rguenther@suse.de>
22673 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
22674 get_maxval_strlen inside a more useful API.
22675 (gimple_fold_builtin_with_strlen): Remove and fold into ...
22676 (gimple_fold_builtin): ... caller.
22677 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
22678 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
22679 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
22680 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
22681 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
22682 gimple_fold_builtin_sprintf): Adjust to compute maxval
22685 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
22688 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
22690 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22692 Anna Tikhonova <anna.tikhonova@intel.com>
22693 Ilya Tocar <ilya.tocar@intel.com>
22694 Andrey Turetskiy <andrey.turetskiy@intel.com>
22695 Ilya Verbin <ilya.verbin@intel.com>
22696 Kirill Yukhin <kirill.yukhin@intel.com>
22697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22699 * config/i386/sse.md
22700 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
22701 Use `concat_tg_mode' attribute to determine asm register size.
22703 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22705 Anna Tikhonova <anna.tikhonova@intel.com>
22706 Ilya Tocar <ilya.tocar@intel.com>
22707 Andrey Turetskiy <andrey.turetskiy@intel.com>
22708 Ilya Verbin <ilya.verbin@intel.com>
22709 Kirill Yukhin <kirill.yukhin@intel.com>
22710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22712 * config/i386/sse.md
22713 (define_mode_iterator VI48_AVX512VL): New.
22714 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
22715 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
22716 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
22717 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22718 with VI1): Change mode iterator.
22719 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22720 with VI_ULOADSTORE_BW_AVX512VL): New.
22721 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22722 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22723 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22724 with VI1): Change mode iterator.
22725 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22726 with VI_ULOADSTORE_BW_AVX512VL): New.
22727 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22728 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22729 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22730 with VI1): Change mode iterator.
22731 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22732 with VI_ULOADSTORE_BW_AVX512VL): New.
22733 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22734 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
22735 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
22736 (define_insn "<avx512>_storedqu<mode>_mask" with
22737 VI48_AVX512VL): New.
22738 (define_insn "<avx512>_storedqu<mode>_mask" with
22739 VI12_AVX512VL): Ditto.
22741 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22743 Anna Tikhonova <anna.tikhonova@intel.com>
22744 Ilya Tocar <ilya.tocar@intel.com>
22745 Andrey Turetskiy <andrey.turetskiy@intel.com>
22746 Ilya Verbin <ilya.verbin@intel.com>
22747 Kirill Yukhin <kirill.yukhin@intel.com>
22748 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22750 * config/i386/sse.md
22751 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
22752 (define_mode_iterator VI48_AVX512BW): New.
22753 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
22754 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22755 with VI48_AVX2_48_AVX512F): New.
22756 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22757 with VI2_AVX512VL): Ditto.
22759 2014-08-27 Richard Biener <rguenther@suse.de>
22761 PR middle-end/62239
22762 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
22763 (fold_builtin_3): Do not fold strcat_chk here.
22764 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
22766 (gimple_fold_builtin): Fold strcat_chk here.
22768 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
22770 * dwarf2out.h (dwarf2out_decl): Remove prototype.
22771 * dwarf2out.c (dwarf2out_decl): Make static.
22773 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
22775 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
22777 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22779 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
22780 from rtx to rtx_insn *.
22781 (cselib_lookup_from_insn): Likewise for final param.
22782 (cselib_subst_to_values_from_insn): Likewise.
22783 (cselib_add_permanent_equiv): Likewise.
22785 * cselib.c (cselib_current_insn): Likewise for this variable.
22786 (cselib_subst_to_values_from_insn): Likewise for param "insn".
22787 (cselib_lookup_from_insn): Likewise.
22788 (cselib_add_permanent_equiv): Likewise for param "insn" and local
22789 "save_cselib_current_insn".
22790 (cselib_process_insn): Replace use of NULL_RTX with NULL.
22792 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
22793 from rtx to rtx_insn *.
22795 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22797 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
22800 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22802 * df.h (df_dump_insn_problem_function): Strengthen first param of
22803 this callback from const_rtx to const rtx_insn *.
22804 (struct df_insn_info): Strengthen field "insn" from rtx to
22806 (DF_REF_INSN): Eliminate this function, reinstating the older
22808 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
22809 (df_reg_defined): Likewise.
22810 (df_find_use): Likewise.
22811 (df_reg_used): Likewise.
22812 (df_dump_insn_top): Strengthen param 1 from const_rtx to
22814 (df_dump_insn_bottom): Likewise.
22815 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
22816 (df_insn_debug_regno): Likewise.
22817 (debug_df_insn): Likewise.
22818 (df_rd_simulate_one_insn): Likewise for param 2.
22819 (df_word_lr_simulate_defs): Likewise for param 1.
22820 (df_word_lr_simulate_uses): Likewise.
22821 (df_md_simulate_one_insn): Likewise for param 2.
22822 (df_simulate_find_noclobber_defs): Likewise for param 1.
22823 (df_simulate_find_defs): Likewise.
22824 (df_simulate_defs): Likewise.
22825 (df_simulate_uses): Likewise.
22826 (df_simulate_one_insn_backwards): Likewise for param 2.
22827 (df_simulate_one_insn_forwards): Likewise.
22828 (df_uses_create): Likewise for param 2.
22829 (df_insn_create_insn_record): Likewise for param 1.
22830 (df_insn_delete): Likewise.
22831 (df_insn_rescan): Likewise.
22832 (df_insn_rescan_debug_internal): Likewise.
22833 (df_insn_change_bb): Likewise.
22834 (df_notes_rescan): Likewise.
22835 * rtl.h (remove_death): Likewise for param 2.
22836 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
22838 * sched-int.h (reemit_notes): Strengthen param from rtx to
22840 * valtrack.h (propagate_for_debug): Likewise for param 1.
22842 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
22843 local "tmp_rtx" from const_rtx to const rtx_insn *.
22844 * combine.c (remove_death): Strengthen param "insn" from rtx to
22846 (move_deaths): Likewise for local "where_dead".
22847 * cse.c (delete_trivially_dead_insns): Introduce local
22848 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
22849 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
22851 (df_reg_defined): Likewise.
22852 (df_find_use): Likewise.
22853 (df_reg_used): Likewise.
22854 (df_dump_insn_problem_data): Strengthen param "insn" from
22855 const_rtx to const rtx_insn *.
22856 (df_dump_insn_top): Likewise.
22857 (df_dump_insn_bottom): Likewise.
22858 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
22859 (df_insn_debug_regno): Likewise.
22860 (debug_df_insn): Likewise.
22861 (DF_REF_INSN): Delete.
22862 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
22863 from rtx to rtx_insn *.
22864 (df_chain_insn_top_dump): Strengthen param "insn" from
22865 const_rtx to const rtx_insn *.
22866 (df_chain_insn_bottom_dump): Likewise.
22867 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
22869 (df_word_lr_simulate_uses): Likewise.
22870 (df_print_note): Likewise.
22871 (df_remove_dead_and_unused_notes): Likewise.
22872 (df_set_unused_notes_for_mw): Likewise.
22873 (df_set_dead_notes_for_mw): Likewise.
22874 (df_create_unused_note): Likewise.
22875 (df_simulate_find_defs): Likewise.
22876 (df_simulate_find_uses): Likewise.
22877 (df_simulate_find_noclobber_defs): Likewise.
22878 (df_simulate_defs): Likewise.
22879 (df_simulate_uses): Likewise.
22880 (df_simulate_one_insn_backwards): Likewise.
22881 (df_simulate_one_insn_forwards): Likewise.
22882 (df_md_simulate_one_insn): Likewise.
22883 * df-scan.c (df_uses_create): Likewise.
22884 (df_insn_create_insn_record): Likewise.
22885 (df_insn_delete): Likewise.
22886 (df_insn_rescan): Likewise.
22887 (df_insn_rescan_debug_internal): Likewise.
22888 (df_insn_change_bb): Likewise.
22889 (df_notes_rescan): Likewise.
22890 (df_refs_add_to_chains): Likewise.
22891 (df_insn_refs_verify): Likewise.
22892 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
22893 when invoking df_insn_delete.
22894 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
22895 (set_unique_reg_note): Add checked cast.
22896 * final.c (cleanup_subreg_operands): Likewise.
22897 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
22898 "insn" from rtx to rtx_insn *.
22899 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
22900 "last" from rtx to rtx_insn *.
22901 * ira-emit.c (change_regs_in_insn): New function.
22902 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
22903 Invoke change_regs_in_insn rather than change_regs.
22904 * ira.c (update_equiv_regs): Strengthen locals "insn",
22905 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
22906 for_each_rtx_in_insn rather than for_each_rtx.
22907 * recog.c (confirm_change_group): Add checked casts.
22908 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
22910 (peep2_fill_buffer): Add checked cast.
22911 * rtlanal.c (remove_note): Likewise.
22912 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
22913 locals "next" "end" from rtx to rtx_insn *.
22915 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22917 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
22919 (struct reg_use_data): Likewise for field "insn".
22920 (insn_cost): Likewise for param.
22921 (real_insn_for_shadow): Likewise for return type and param.
22922 (increase_insn_priority): Likewise for param 1.
22923 (debug_dependencies): Likewise for both params.
22925 * haifa-sched.c (insn_delay): Likewise for param "insn".
22926 (real_insn_for_shadow): Likewise for return type and param "insn".
22927 (update_insn_after_change): Likewise for param "insn".
22928 (recompute_todo_spec): Likewise for param "next" and locals "pro",
22930 (insn_cost): Likewise for param "insn".
22931 (increase_insn_priority): Likewise.
22932 (calculate_reg_deaths): Likewise.
22933 (setup_insn_reg_pressure_info): Likewise.
22934 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
22935 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
22936 (model_recompute): Likewise.
22937 (must_restore_pattern_p): Likewise for param "next".
22938 (model_excess_cost): Likewise for param "insn".
22939 (queue_remove): Likewise.
22940 (adjust_priority): Likewise for param "prev".
22941 (update_register_pressure): Likewise for param "insn".
22942 (setup_insn_max_reg_pressure): Likewise for local "insn".
22943 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
22944 (model_add_to_schedule): Likewise.
22945 (model_reset_queue_indices): Likewise for local "insn".
22946 (unschedule_insns_until): Strengthen local "recompute_vec" from
22947 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
22948 "con" from rtx to rtx_insn *.
22949 (restore_last_backtrack_point): Likewise for both locals "x". Add
22951 (estimate_insn_tick): Likewise for param "insn".
22952 (commit_schedule): Likewise for params "prev_head", "tail" and
22954 (verify_shadows): Likewise for locals "i1", "i2".
22955 (dump_insn_stream): Likewise for params "head", "tail" and locals
22956 "next_tail", "insn".
22957 (schedule_block): Likewise for locals "insn", "x". Add a checked
22959 (fix_inter_tick): Likewise for params "head", "tail".
22960 (create_check_block_twin): Likewise for local "jump".
22961 (haifa_change_pattern): Likewise for param "insn".
22962 (haifa_speculate_insn): Likewise.
22963 (dump_new_block_header): Likewise for params "head", "tail".
22964 (fix_jump_move): Likewise for param "jump".
22965 (move_block_after_check): Likewise.
22966 (sched_init_insn_luid): Likewise for param "insn".
22967 (sched_init_luids): Likewise for local "insn".
22968 (insn_luid): Likewise for param "insn".
22969 (init_h_i_d): Likewise.
22970 (haifa_init_h_i_d): Likewise for local "insn".
22971 (haifa_init_insn): Likewise for param "insn".
22972 * sched-deps.c (add_dependence): Likewise for local "real_pro",
22974 (create_insn_reg_use): Likewise for param "insn".
22975 (setup_insn_reg_uses): Likewise. Add a checked cast.
22976 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
22977 "tail" from rtx to rtx_insn *.
22978 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
22979 "insn", "next_tail".
22981 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22983 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
22984 from rtx to rtx_insn *.
22985 (model_add_to_schedule): Likewise for locals "start", "end",
22988 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22990 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
22992 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
22993 "to" and locals "insn", "next", "copy". Remove now-redundant
22996 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22998 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
22999 rtx_insn * and param 4 from rtx * to rtx_insn **.
23000 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
23001 param 2 from rtx * to rtx_insn **.
23003 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
23004 rtx_insn * and final param from rtx * to rtx_insn **.
23006 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
23007 from rtx to rtx_insn *.
23008 (try_head_merge_bb): Likewise for both locals named "move_upto".
23009 * df-problems.c (can_move_insns_across): Likewise for params
23010 "from", "to", "across_from", "across_to" and locals "insn",
23011 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
23013 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
23014 from rtx to rtx_insn *.
23015 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
23016 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23017 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
23019 (noce_try_abs): Likewise.
23020 (noce_get_condition): Likewise for param "jump". Strengthen param
23021 "earliest" from rtx * to rtx_insn **.
23022 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
23024 (find_cond_trap): Likewise.
23025 (dead_or_predicable): Likewise for local "earliest".
23026 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
23028 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
23029 and local "prev". Strengthen param "earliest" from rtx * to
23031 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
23032 Strengthen param "earliest" from rtx * to rtx_insn **.
23034 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23036 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
23037 "to" and local "insn" from rtx to rtx_insn *.
23039 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23041 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
23042 from rtx to rtx_insn *.
23043 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
23044 (code_motion_path_driver): Likewise for local "last_insn".
23045 (simplify_changed_insns): Likewise for local "insn".
23047 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23049 * rtl.h (push_to_sequence): Strengthen param from rtx to
23051 (push_to_sequence2): Likewise for both params.
23052 (delete_insns_since): Likewise for param.
23053 (reorder_insns_nobb): Likewise for all three params.
23054 (set_new_first_and_last_insn): Likewise for both params.
23056 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
23057 rtx_insn *. Remove now-redundant cast.
23058 (set_last_insn): Likewise.
23060 * builtins.c (expand_builtin_return): Strengthen local
23061 "call_fusage" from rtx to rtx_insn *.
23062 * cfgrtl.c (create_basic_block_structure): Likewise for local
23064 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
23065 "first", "last" and local "insn".
23066 (delete_insns_since): Likewise for param "from".
23067 (reorder_insns_nobb): Likewise for params "from", "to", "after"
23069 (push_to_sequence): Likewise for param "first" and local "last".
23070 (push_to_sequence2): Likewise for params "first" and "last".
23071 * lra.c (emit_add3_insn): Likewise for local "last".
23072 (lra_emit_add): Likewise.
23073 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
23075 (process_address_1): Likewise for locals "insn", last".
23076 * modulo-sched.c (ps_first_note): Likewise for return type.
23077 * optabs.c (expand_binop_directly): Likewise for param "last".
23079 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23081 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
23083 * emit-rtl.c (get_last_insn_anywhere): Likewise.
23085 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23087 * function.h (struct sequence_stack): Strengthen fields "first"
23088 and "last" from rtx to rtx_insn *.
23089 (struct emit_status): Likewise for fields "x_first_insn" and
23092 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
23093 (set_first_insn): Add checked cast.
23094 (get_last_insn): Remove now-redundant checked cast.
23095 (set_last_insn): Add checked cast.
23097 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
23098 "saved_first" and "saved_last" from rtx to rtx_insn *.
23100 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23102 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
23103 (unlink_insn_chain): Strengthen both params from rtx to
23106 * cfgrtl.c (cfg_layout_function_header): Likewise for this
23108 (unlink_insn_chain): Likewise for params "first" and "last".
23109 Remove now-redundant checked cast.
23110 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
23111 (fixup_reorder_chain): Strengthen local "insn" from rtx to
23113 * emit-rtl.c (link_insn_into_chain): Likewise for all three
23115 (add_insn): Likewise for param "insn" and local "prev".
23116 (add_insn_after_nobb): Likewise for both params and local "next".
23117 (add_insn_before_nobb): Likewise for both params and local "prev".
23118 (add_insn_after): Rename param "after" to "uncast_after",
23119 introducing local "after" with another checked cast.
23120 (add_insn_before): Rename params "insn" and "before", giving them
23121 "uncast_" prefixes, adding the old names back using checked casts.
23122 (emit_note_after): Likewise for param "after".
23123 (emit_note_before): Likewise for param "before".
23124 (emit_label): Add a checked cast.
23126 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23128 * cselib.h (cselib_record_sets_hook): Strengthen initial param
23129 "insn" from rtx to rtx_insn *.
23131 * cselib.c (cselib_record_sets_hook): Likewise.
23133 * var-tracking.c (add_with_sets): Likewise, renaming back from
23134 "uncast_insn" to "insn" and eliminating the checked cast from rtx
23137 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23139 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
23140 and "header_" from rtx to rtx_insn *.
23141 (struct basic_block_d): Likewise for field "head_" within "x"
23142 field of union basic_block_il_dependent.
23143 (BB_HEAD): Drop function...
23144 (SET_BB_HEAD): ...and this function in favor of...
23145 (BB_HEAD): ...reinstate macro.
23146 (BB_END): Drop function...
23147 (SET_BB_END): ...and this function in favor of...
23148 (BB_END): ...reinstate macro.
23149 (BB_HEADER): Drop function...
23150 (SET_BB_HEADER): ...and this function in favor of...
23151 (BB_HEADER): ...reinstate macro.
23153 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
23154 (fix_crossing_unconditional_branches): Likewise.
23155 * caller-save.c (save_call_clobbered_regs): Likewise.
23156 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
23157 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
23158 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23159 (merge_blocks_move_successor_nojumps): Likewise.
23160 (outgoing_edges_match): Update use of for_each_rtx to
23161 for_each_rtx_in_insn.
23162 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
23163 (expand_gimple_cond): Likewise.
23164 (expand_gimple_tailcall): Likewise.
23165 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
23167 (construct_exit_block): Drop use of SET_BB_END.
23168 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
23170 (delete_insn): Rename param "insn" to "uncast_insn", introducing
23171 a new local "insn" with a checked cast to rtx_insn *. Drop use of
23172 SET_BB_HEAD and SET_BB_END.
23173 (create_basic_block_structure): Drop use of SET_BB_HEAD and
23175 (rtl_delete_block): Drop use of SET_BB_HEAD.
23176 (rtl_split_block): Drop use of SET_BB_END.
23177 (emit_nop_for_unique_locus_between): Likewise.
23178 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
23179 (block_label): Drop use of SET_BB_HEAD.
23180 (fixup_abnormal_edges): Drop use of SET_BB_END.
23181 (record_effective_endpoints): Drop use of SET_BB_HEADER.
23182 (relink_block_chain): Likewise.
23183 (fixup_reorder_chain): Drop use of SET_BB_END.
23184 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
23185 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
23186 rtx_insn **. Drop use of SET_BB_HEADER.
23187 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
23189 (BB_HEAD): Delete this function.
23190 (SET_BB_HEAD): Likewise.
23191 (BB_END): Likewise.
23192 (SET_BB_END): Likewise.
23193 (BB_HEADER): Likewise.
23194 (SET_BB_HEADER): Likewise.
23195 * emit-rtl.c (add_insn_after): Rename param "insn" to
23196 "uncast_insn", adding a new local "insn" and a checked cast to
23197 rtx_insn *. Drop use of SET_BB_END.
23198 (remove_insn): Strengthen locals "next" and "prev" from rtx to
23199 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
23200 (reorder_insns): Drop use of SET_BB_END.
23201 (emit_insn_after_1): Strengthen param "first" and locals "last",
23202 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
23203 (emit_pattern_after_noloc): Add checked cast.
23204 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
23205 (restore_other_notes): Likewise.
23206 (move_insn): Likewise.
23207 (sched_extend_bb): Likewise.
23208 (fix_jump_move): Likewise.
23209 * ifcvt.c (noce_process_if_block): Likewise.
23210 (dead_or_predicable): Likewise.
23211 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
23212 * reg-stack.c (change_stack): Drop use of SET_BB_END.
23213 * sel-sched-ir.c (sel_move_insn): Likewise.
23214 * sel-sched.c (move_nop_to_previous_block): Likewise.
23216 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
23218 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23220 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23222 * basic-block.h (create_basic_block_structure): Strengthen params
23223 1 "head" and 2 "end" from rtx to rtx_insn *.
23224 * cfgrtl.c (create_basic_block_structure): Likewise.
23225 (rtl_create_basic_block): Update casts from void * to rtx to
23226 rtx_insn *, so that we can pass them as rtx_insn * to
23227 create_basic_block_structure.
23228 * sel-sched-ir.c (sel_create_basic_block): Likewise.
23230 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23232 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
23234 (check_for_inc_dec): Strengthen param "insn" from rtx to
23237 * cselib.h (cselib_process_insn): Likewise.
23239 * cselib.c (cselib_record_sets): Likewise.
23240 (cselib_process_insn): Likewise.
23242 * dse.c (struct insn_info): Likewise for field "insn".
23243 (check_for_inc_dec_1): Likewise for local "insn".
23244 (check_for_inc_dec): Likewise for param "insn".
23245 (scan_insn): Likewise.
23246 (dse_step1): Likewise for local "insn".
23248 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
23249 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
23251 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23253 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
23254 from rtx to rtx_insn *.
23255 (DEP_PRO): Delete this function and...
23256 (SET_DEP_PRO): ...this function in favor of...
23257 (DEP_PRO): ...reinstate this macro.
23258 (DEP_CON): Delete this function and...
23259 (SET_DEP_CON): ...this function in favor of...
23260 (DEP_CON): ...reinstate this old macro.
23261 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
23262 (init_dep): Likewise.
23263 (set_priorities): Likewise for both params.
23264 (sd_copy_back_deps): Likewise for params 1 and 2.
23266 * haifa-sched.c (priority): Likewise for param "insn" and local
23268 (set_priorities): Likewise for params "head" and "tail" and local
23270 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
23272 (add_to_speculative_block): Add a checked cast.
23273 (create_check_block_twin): Drop use of SET_DEP_CON.
23274 (add_jump_dependencies): Strengthen params "insn" and "jump" from
23277 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
23278 Drop use of SET_DEP_PRO
23279 (init_dep): Strengthen params "pro" and "con" from rtx to
23281 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
23282 use of SET_DEP_CON.
23285 (SET_DEP_PRO): Delete.
23286 (SET_DEP_CON): Delete.
23288 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23290 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
23291 from rtx to rtx_insn *.
23292 (VINSN_INSN_RTX): Eliminate rvalue function and...
23293 (SET_VINSN_INSN): ...lvalue function in favor of...
23294 (VINSN_INSN_RTX): reinstate this old macro.
23296 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
23297 in favor of VINSN_INSN_RTX.
23298 (VINSN_INSN_RTX): Delete this function.
23299 (SET_VINSN_INSN_RTX): Likewise.
23301 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23303 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
23304 (BND_TO): Delete this function and...
23305 (SET_BND_TO): ...this functions in favor of...
23306 (BND_TO): ...reinstating this macro.
23307 (struct _fence): Strengthen field "executing_insns" from
23308 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
23309 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23310 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
23311 and param "insn" from rtx to insn_t.
23312 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
23315 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
23317 (rtx_vec_t): Likewise.
23318 (struct sched_deps_info_def): Strengthen param of "start_insn"
23319 callback from rtx to rtx_insn *. Likewise for param "insn2" of
23320 "note_mem_dep" callback and first param of "note_dep" callback.
23322 * haifa-sched.c (add_to_speculative_block): Strengthen param
23323 "insn" from rtx to rtx_insn *.
23324 (clear_priorities): Likewise.
23325 (calc_priorities): Likewise for local "insn".
23327 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
23328 Remove redundant checked cast.
23329 (haifa_note_mem_dep): Likewise for param "pending_insn".
23330 (haifa_note_dep): Likewise for param "elem".
23331 (note_mem_dep): Likewise for param "e".
23332 (sched_analyze_1): Add checked casts.
23333 (sched_analyze_2): Likewise.
23335 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
23336 from rtx to rtx_insn *.
23337 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
23338 from vec<rtx> * to vec<rtx_insn *> *.
23340 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
23342 (flist_add): Strengthen param "executing_insns" from
23343 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23344 (advance_deps_context): Remove now-redundant checked cast.
23345 (init_fences): Replace uses of NULL_RTX with NULL.
23346 (merge_fences): Strengthen params "last_scheduled_insn" and
23347 "sched_next" from rtx to rtx_insn * and "executing_insns" from
23348 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23349 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
23350 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
23351 an instruction, rather than doing double-duty as a pattern.
23352 (return_nop_to_pool): Update for change of insn_t.
23353 (deps_init_id): Remove now-redundant checked cast.
23354 (struct sched_scan_info_def): Strengthen param of "init_insn"
23355 callback from rtx to insn_t.
23356 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
23357 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
23359 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
23360 "end" from rtx to rtx_insn *.
23361 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
23362 (rtx insn_rtx, bool force_unique_p)
23363 (BND_TO): Delete function.
23364 (SET_BND_TO): Delete function.
23366 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
23368 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
23369 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
23371 (undo_transformations): Likewise for param "insn".
23372 (update_liveness_on_insn): Likewise.
23373 (compute_live_below_insn): Likewise for param "insn" and local
23375 (update_data_sets): Likewise for param "insn".
23376 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
23377 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
23378 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
23380 (move_cond_jump): Likewise for param "insn".
23381 (move_cond_jump): Drop use of SET_BND_TO.
23382 (compute_av_set_on_boundaries): Likewise.
23383 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
23384 (update_and_record_unavailable_insns): Strengthen local "bb_end"
23385 from rtx to rtx_insn *.
23386 (maybe_emit_renaming_copy): Likewise for param "insn".
23387 (maybe_emit_speculative_check): Likewise.
23388 (handle_emitting_transformations): Likewise.
23389 (remove_insn_from_stream): Likewise.
23390 (code_motion_process_successors): Strengthen local "succ" from rtx
23393 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23395 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
23396 ilist_t, not _xlist_t;
23397 (ILIST_INSN): Define in terms of new union field "insn".
23398 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
23400 (struct _list_node): Add new field "insn" to the union, of type
23402 (ilist_add): Replace macro with an inline function, requiring an
23404 (ilist_remove): Define this macro directly in terms of
23405 _list_remove, rather than indirectly via _xlist_remove.
23406 (ilist_clear): Likewise, in terms of _list_clear rather than
23408 (ilist_is_in_p): Replace macro with an inline function, requiring
23410 (_list_iter_cond_insn): New function.
23411 (ilist_iter_remove): Define this macro directly in terms of
23412 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
23413 (ilist_iterator): Define directly in terms of _list_iterator
23414 rather than indirectly through _xlist_iterator.
23415 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
23416 than in terms of _FOR_EACH_X.
23417 (FOR_EACH_INSN_1): Likewise.
23419 2014-08-26 Joseph Myers <joseph@codesourcery.com>
23423 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
23424 DECL_HARD_REGISTER and return for invalid register specifications.
23425 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
23426 DECL_HARD_REGISTER, call expand_one_error_var.
23427 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
23428 CC_REGNUM with non-MODE_CC modes.
23429 (arm_regno_class): Return NO_REGS for PC_REGNUM.
23431 2014-08-26 Marek Polacek <polacek@redhat.com>
23434 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
23436 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
23438 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
23439 qi cost; add di cost.
23440 (cortexa57_addrcost_table): Likewise.
23442 2014-08-26 Marek Polacek <polacek@redhat.com>
23445 * expr.c (is_aligning_offset): Remove logical not.
23447 2014-08-26 Marek Polacek <polacek@redhat.com>
23450 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
23451 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
23453 2014-08-26 Richard Biener <rguenther@suse.de>
23455 PR tree-optimization/62175
23456 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23457 expand possibly trapping operations.
23459 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23461 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
23462 "insn" from rtx to rtx_insn *.
23463 (permute_load): Likewise for param "insn".
23464 (permute_store): Likewise.
23465 (handle_special_swappables): Likewise for local "insn".
23466 (replace_swap_with_copy): Likewise for locals "insn" and
23468 (rs6000_analyze_swaps): Likewise for local "insn".
23470 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23472 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
23475 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23477 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
23478 "note_list" from rtx to rtx_insn *.
23479 (BB_NOTE_LIST): Replace this function and...
23480 (SET_BB_NOTE_LIST): ...this function with...
23481 (BB_NOTE_LIST): ...the former macro implementation.
23483 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
23484 local "from_start" from rtx to rtx_insn *. Strengthen param
23485 "to_endp" from rtx * to rtx_insn **.
23487 * haifa-sched.c (concat_note_lists): Likewise.
23488 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
23490 (sel_restore_notes): Likewise.
23491 (move_bb_info): Likewise.
23492 (BB_NOTE_LIST): Delete this function.
23493 (SET_BB_NOTE_LIST): Delete this function.
23494 * sel-sched.c (create_block_for_bookkeeping): Eliminate
23495 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
23497 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23499 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
23500 from rtx * to rtx_insn **.
23501 (reorder2): Likewise.
23502 (dependencies_evaluation_hook): Strengthen params "head", "tail"
23503 from rtx to rtx_insn *.
23505 * doc/tm.texi: Update mechanically for above change to target.def.
23507 * sched-int.h (note_list): Strengthen this variable from rtx to
23509 (remove_notes): Likewise for both params.
23510 (restore_other_notes): Likewise for return type and first param.
23511 (struct ready_list): Strengthen field "vec" from rtx * to
23513 (struct dep_replacement): Strenghten field "insn" from rtx to
23515 (struct deps_desc): Likewise for fields "last_debug_insn",
23517 (struct haifa_sched_info): Likewise for callback field
23518 "can_schedule_ready_p"'s param, for first param of "new_ready"
23519 callback field, for both params of "rank" callback field, for
23520 first field of "print_insn" callback field (with a const), for
23521 both params of "contributes_to_priority" callback, for param
23522 of "insn_finishes_block_p" callback, for fields "prev_head",
23523 "next_tail", "head", "tail", for first param of "add_remove_insn"
23524 callback, for first param of "begin_schedule_ready" callback, for
23525 both params of "begin_move_insn" callback, and for second param
23526 of "advance_target_bb" callback.
23527 (add_dependence): Likewise for params 1 and 2.
23528 (sched_analyze): Likewise for params 2 and 3.
23529 (deps_analyze_insn): Likewise for param 2.
23530 (ready_element): Likewise for return type.
23531 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23532 (try_ready): Strenghten param from rtx to rtx_insn *.
23533 (sched_emit_insn): Likewise for return type.
23534 (record_delay_slot_pair): Likewise for params 1 and 2.
23535 (add_delay_dependencies): Likewise for param.
23536 (contributes_to_priority): Likewise for both params.
23537 (find_modifiable_mems): Likewise.
23539 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
23540 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
23541 "first_older_only_insn" from rtx to rtx_insn *.
23542 (arm_sched_reorder): Strengthen param "ready" from rtx * to
23545 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
23546 "last_scheduled_iter0" from rtx to rtx_insn *.
23547 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
23548 (c6x_sched_reorder_1): Strengthen param "ready" and locals
23549 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23550 "insn" from rtx to rtx_insn *.
23551 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
23553 (c6x_sched_reorder2): Strengthen param "ready" and locals
23554 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23555 "insn" from rtx to rtx_insn *.
23556 (c6x_variable_issue): Add a checked cast when assigning from insn
23557 to ss.last_scheduled_iter0.
23558 (split_delayed_branch): Strengthen param "insn" and local "i1"
23559 from rtx to rtx_insn *.
23560 (split_delayed_nonbranch): Likewise.
23561 (undo_split_delayed_nonbranch): Likewise for local "insn".
23562 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
23563 "entry_after", "end_packet", "head_insn", "tail_insn",
23564 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
23565 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
23566 to rtx_insn **. Remove now-redundant checked cast on last_insn,
23567 but add a checked cast on loop->start_label. Consolidate calls to
23568 avoid assigning result of gen_spkernel to "insn", now an
23571 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
23572 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
23574 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
23575 rtx_insn **. Strengthen locals "top", "next" from rtx to
23577 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
23578 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23579 (add_parameter_dependencies): Strengthen params "call", "head" and
23580 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
23581 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
23582 (add_dependee_for_func_arg): Likewise for param "arg" and local
23584 (ix86_dependencies_evaluation_hook): Likewise for params "head",
23585 "tail" and locals "insn", "first_arg".
23587 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
23588 for params "head", "tail" and locals "insn", "next", "next_tail".
23589 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
23590 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
23591 "insn", "lowest", "highest" from rtx to rtx_insn *.
23592 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
23594 (ia64_sched_reorder2): Likewise.
23596 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
23597 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
23598 from rtx * to rtx_insn **.
23599 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
23601 (mep_print_sched_insn): Strengthen param "insn" from rtx to
23603 (mep_sched_reorder): Strengthen param "ready" from rtx * to
23604 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
23607 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
23608 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
23610 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
23611 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
23612 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
23614 (vr4130_reorder): Likewise.
23615 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
23617 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
23619 (mips_sched_reorder): Likewise.
23620 (mips_sched_reorder2): Likewise.
23622 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
23624 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
23625 Strengthen local "tmp" from rtx to rtx_insn *.
23626 (rs6000_sched_reorder2): Likewise.
23628 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
23629 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
23630 (s390_sched_reorder): Strengthen param "ready" from rtx * to
23631 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
23633 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
23634 "tmp2" from rtx to rtx_insn *.
23635 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
23636 Strengthen local "insn" from rtx to rtx_insn *.
23637 (ready_reorder): Strengthen param "ready" from rtx * to
23638 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
23639 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
23640 (sh_reorder2): Likewise.
23642 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
23643 local "insn" from rtx to rtx_insn *.
23645 * haifa-sched.c (note_list): Strengthen this variable from rtx to
23647 (scheduled_insns): Strengthen this variable from vec<rtx> to
23649 (set_modulo_params): Likewise for locals "i1", "i2".
23650 (record_delay_slot_pair): Likewise for params "i1", "i2".
23651 (add_delay_dependencies): Likewise for param "insn".
23652 (cond_clobbered_p): Likewise.
23653 (recompute_todo_spec): Likewise for local "prev".
23654 (last_scheduled_insn): Likewise for this variable.
23655 (nonscheduled_insns_begin): Likewise.
23656 (model_set_excess_costs): Strengthen param "insns" from rtx * to
23658 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
23660 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
23661 Strengthen local "insn" from rtx to rtx_insn *.
23662 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
23663 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23664 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
23665 (ready_remove_first): Likewise for return type and local "t".
23666 (ready_element): Likewise for return type.
23667 (ready_remove): Likewise for return type and local "t".
23668 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
23669 (check_clobbered_conditions): Strengthen local "x" from rtx to
23670 rtx_insn *, adding a checked cast.
23671 (schedule_insn): Likewise for param "insn".
23672 (remove_notes): Likewise for params "head", "tail" and locals
23673 "next_tail", "insn", "next".
23674 (struct haifa_saved_data): Likewise for fields
23675 "last_scheduled_insn", "nonscheduled_insns_begin".
23676 (save_backtrack_point): Update for change to field "vec" of
23678 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
23680 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
23681 from rtx to rtx_insn *
23682 (resolve_dependencies): Strengthen param "insn" from rtx to
23684 (restore_other_notes): Likewise for return type, for param "head"
23685 and local "note_head".
23686 (undo_all_replacements): Likewise for local "insn".
23687 (first_nonscheduled_insn): Likewise for return type and local "insn".
23688 (queue_to_ready): Likewise for local "insn", adding checked casts.
23689 (early_queue_to_ready): Likewise for local "insn".
23690 (debug_ready_list_1): Strengthen local "p" from rtx * to
23692 (move_insn): Strengthen param "insn" and local "note" from rtx to
23694 (insn_finishes_cycle_p): Likewise for param "insn".
23695 (max_issue): Likewise for local "insn".
23696 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
23698 (commit_schedule): Strengthen param "prev_head" and local "insn"
23699 from rtx to rtx_insn *
23700 (prune_ready_list): Likewise for local "insn".
23701 (schedule_block): Likewise for locals "prev_head", "head", "tail",
23702 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
23703 (set_priorities): Likewise for local "prev_head".
23704 (try_ready): Likewise for param "next".
23705 (fix_tick_ready): Likewise.
23706 (change_queue_index): Likewise.
23707 (sched_extend_ready_list): Update for change to field "vec" of
23709 (generate_recovery_code): Strengthen param "insn" from rtx to
23711 (begin_speculative_block): Likewise.
23712 (create_check_block_twin): Likewise for param "insn" and locals
23713 "label", "check", "twin". Introduce local "check_pat" to avoid
23714 "check" being used as a plain rtx before being used as an insn.
23715 (fix_recovery_deps): Add a checked cast to rtx_insn * when
23716 extracting elements from ready_list.
23717 (sched_remove_insn): Strengthen param "insn" from rtx to
23719 (sched_emit_insn): Likewise for return type.
23720 (ready_remove_first_dispatch): Likewise for return type and local
23723 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
23725 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
23728 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
23729 from rtx to rtx_insn *.
23730 (add_dependence_list): Likewise for param "insn". Add a checked
23732 (add_dependence_list_and_free): Strengthen param "insn" from rtx
23733 to rtx_insn *. Strengthen param "list_p" from rtx * to
23735 (chain_to_prev_insn): Strengthen param "insn" and locals
23736 "prec_nonnote", "i" from rtx to rtx_insn *.
23737 (flush_pending_lists): Likewise for param "insn".
23738 (cur_insn): Likewise for this variable.
23739 (haifa_start_insn): Add a checked cast.
23740 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
23741 (sched_analyze_reg): Likewise for param "insn".
23742 (sched_analyze_1): Likewise.
23743 (sched_analyze_2): Likewise. Add checked casts.
23744 (sched_analyze_insn): Likewise. Also for local "prev".
23745 (deps_analyze_insn): Likewise for param "insn".
23746 (sched_analyze): Likewise for params "head", "tail" and local "insn".
23747 (add_dependence_1): Likewise for params "insn", "elem".
23748 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
23749 (parse_add_or_inc): Likewise for param "insn".
23750 (find_inc): Likewise for local "inc_cand".
23751 (find_modifiable_mems): Likewise for params "head", "tail" and
23752 locals "insn", "next_tail".
23754 * sched-ebb.c (init_ready_list): Likewise for local "insn".
23755 (begin_schedule_ready): Likewise for param "insn".
23756 (begin_move_insn): Likewise for params "insn" and "last".
23757 (ebb_print_insn): Strengthen param "insn" from const_rtx to
23759 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
23760 (ebb_contributes_to_priority): Likewise for params "next", "insn".
23761 (ebb_add_remove_insn): Likewise for param "insn".
23762 (advance_target_bb): Likewise.
23764 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
23766 (check_live): Likewise for param "insn".
23767 (init_ready_list): Likewise for local "insn".
23768 (can_schedule_ready_p): Likewise for param "insn".
23769 (begin_schedule_ready): Likewise.
23770 (new_ready): Likewise for param "next".
23771 (rgn_print_insn): Likewise for param "insn".
23772 (rgn_rank): Likewise for params "insn1", "insn2".
23773 (contributes_to_priority): Likewise for params "next", "insn".
23774 (rgn_insn_finishes_block_p): Likewise for param "insn".
23775 (add_branch_dependences): Likewise for params "head", "tail" and
23776 locals "insn", "last".
23777 (rgn_add_remove_insn): Likewise for param "insn".
23778 (advance_target_bb): Likewise.
23780 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
23781 const_rtx to const rtx_insn *.
23783 * sel-sched-dump.h (sel_print_insn): Likewise.
23785 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
23786 (deps_init_id): Likewise.
23788 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
23789 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
23792 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23794 * output.h (final_start_function): Strengthen param 1 from rtx to
23797 * final.c (final_start_function): Likewise, renaming back from
23798 "uncast_first" to "first", and dropping the checked cast from rtx
23801 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23803 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
23804 * final.c (final): Likewise. Rename param back from
23805 "uncast_first" to "first" and eliminate the checked cast from rtx
23808 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23810 * output.h (shorten_branches): Strengthen param from rtx to
23813 * final.c (shorten_branches): Likewise, renaming param back from
23814 "uncast_first" to "first", and dropping the checked cast from rtx
23817 * genattr.c (gen_attr): Likewise when writing out the prototype of
23820 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23822 * sched-int.h (struct haifa_sched_info): Strengthen fields
23823 "prev_head" and "next_tail" from rtx to rtx_insn *.
23825 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23827 * rtl.h (rtx_jump_table_data::get_labels): New method.
23828 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
23829 with use of the new rtx_jump_table_data::get_labels method.
23830 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
23831 to rtx_jump_table_data *. Simplify by using get_labels method.
23832 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
23833 a dyn_cast, introducing local "table", using it to replace
23834 label-lookup logic with a get_labels method call.
23835 (patch_jump_insn): Simplify using get_labels method.
23836 * dwarf2cfi.c (create_trace_edges): Likewise.
23837 * rtlanal.c (label_is_jump_target_p): Likewise.
23839 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23841 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
23844 * emit-rtl.c (unshare_all_rtl_1): Likewise.
23845 (unshare_all_rtl_again): Likewise, also for local "p".
23847 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23849 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
23851 * cfgrtl.c (delete_insn_and_edges): Likewise.
23853 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23855 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
23856 from rtx to rtx_insn *.
23858 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
23860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23862 * function.c (thread_prologue_and_epilogue_insns): Likewise for
23863 locals "returnjump", "epilogue_end", "insn", "next".
23865 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
23866 "returnjump" from rtx * to rtx_insn **.
23867 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
23869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23871 * basic-block.h (struct edge_def). Strengthen "r" within
23872 union edge_def_insns from rtx to rtx_insn *.
23874 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
23875 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
23877 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
23878 from rtx to rtx_insn *.
23879 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
23881 * postreload-gcse.c (reg_killed_on_edge): Likewise.
23882 (reg_used_on_edge): Likewise.
23883 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
23884 (gt_pch_nx): New overload for rtx_insn *&.
23885 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
23886 from rtx to rtx_insn *.
23888 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23890 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
23891 from rtx to rtx_insn *.
23892 (BB_FOOTER): Replace function with access macro.
23893 (SET_BB_FOOTER): Delete.
23895 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
23897 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23898 (emit_barrier_after_bb): Likewise.
23899 (record_effective_endpoints): Likewise.
23900 (relink_block_chain): Likewise.
23901 (fixup_fallthru_exit_predecessor): Likewise.
23902 (cfg_layout_duplicate_bb): Likewise.
23903 (cfg_layout_split_block): Likewise.
23904 (cfg_layout_delete_block): Likewise.
23905 (cfg_layout_merge_blocks): Likewise.
23906 (BB_FOOTER): Delete function.
23907 (SET_BB_FOOTER): Delete function.
23908 * combine.c (update_cfg_for_uncondjump): Replace uses of
23909 SET_BB_FOOTER with BB_FOOTER.
23911 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23913 * except.h (struct eh_landing_pad_d): Strengthen field
23914 "landing_pad" from rtx to rtx_code_label *.
23916 * except.c (sjlj_emit_dispatch_table): Likewise for param
23918 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
23920 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23922 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
23923 first param from rtx to rtx_insn *.
23924 * config/xtensa/xtensa.c (struct machine_function): Likewise for
23925 field "set_frame_ptr_insn".
23926 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
23927 "csend" from rtx to rtx_code_label *.
23928 (xtensa_expand_atomic): Likewise for local "csloop".
23929 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
23931 (xtensa_call_tls_desc): Likewise for return type and locals
23932 "call_insn", "insns".
23933 (xtensa_legitimize_tls_address): Likewise for local "insns".
23934 (xtensa_expand_prologue): Likewise for locals "insn", "first".
23936 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23938 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
23939 first param from rtx to rtx_insn *.
23940 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
23943 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23945 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
23946 Strengthen param 1 from rtx to rtx_insn *.
23947 (tilepro_output_cbranch): Likewise.
23948 (tilepro_adjust_insn_length): Likewise.
23949 (tilepro_final_prescan_insn): Likewise for sole param.
23951 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
23952 Likewise for local "last".
23953 (cbranch_predicted_p): Likewise for param "insn".
23954 (tilepro_output_simple_cbranch_with_opcode): Likewise.
23955 (tilepro_output_cbranch_with_opcode): Likewise.
23956 (tilepro_output_cbranch): Likewise.
23957 (frame_emit_load): Likewise for return type and locals "seq",
23959 (emit_sp_adjust): Likewise for return type and local "insn".
23960 (tilepro_expand_epilogue): Likewise for locals "last_insn",
23962 (tilepro_adjust_insn_length): Likewise for param "insn".
23963 (next_insn_to_bundle): Likewise for return type and params
23965 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
23966 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
23968 (match_addli_pcrel): Likewise for param "insn".
23969 (replace_addli_pcrel): Likewise.
23970 (match_auli_pcrel): Likewise.
23971 (replace_auli_pcrel): Likewise.
23972 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
23974 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23975 "queue", "next_queue", "prev".
23976 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
23977 (tilepro_final_prescan_insn): Likewise for param "insn".
23979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23981 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
23982 Strengthen param 1 from rtx to rtx_insn *.
23983 (tilegx_output_cbranch): Likewise.
23984 (tilegx_adjust_insn_length): Likewise.
23985 (tilegx_final_prescan_insn): Likewise for sole param.
23987 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
23989 (cbranch_predicted_p): Likewise for param "insn".
23990 (tilegx_output_simple_cbranch_with_opcode): Likewise.
23991 (tilegx_output_cbranch_with_opcode): Likewise.
23992 (tilegx_output_cbranch): Likewise.
23993 (frame_emit_load): Likewise for return type.
23994 (set_frame_related_p): Likewise for locals "seq", "insn".
23995 (emit_sp_adjust): Likewise for return type, and for local "insn".
23996 Introduce local "pat" for use in place of "insn" where the latter
23997 isn't an instruction.
23998 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
23999 from rtx to rtx_insn *.
24000 (tilegx_adjust_insn_length): Likewise for param "insn".
24001 (next_insn_to_bundle): Likewise for return type and params "r" and
24003 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
24005 (replace_insns): Likewise for params "old_insn", "new_insns".
24006 (replace_mov_pcrel_step1): Likewise for param "insn" and local
24008 (replace_mov_pcrel_step2): Likewise.
24009 (replace_mov_pcrel_step3): Likewise.
24010 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
24012 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24013 "queue", "next_queue", "prev".
24014 (tilegx_output_mi_thunk): Likewise for local "insn".
24015 (tilegx_final_prescan_insn): Likewise for param "insn".
24017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24019 * config/spu/spu.c (frame_emit_store): Strengthen return type from
24021 (frame_emit_load): Likewise.
24022 (frame_emit_add_imm): Likewise, also for local "insn".
24023 (spu_expand_prologue): Likewise for local "insn".
24024 (struct spu_bb_info): Likewise for field "prop_jump".
24025 (emit_nop_for_insn): Likewise for param "insn" and local
24027 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
24029 (spu_emit_branch_hint): Likewise for params "before", "branch" and
24030 locals "hint", "insn".
24031 (get_branch_target): Likewise for param "branch".
24032 (insn_clobbers_hbr): Likewise for param "insn".
24033 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
24034 locals "insn", "before_4", "before_16".
24035 (insert_hbrp): Likewise for local "insn".
24036 (spu_machine_dependent_reorg): Likewise for locals "branch",
24037 "insn", "next", "bbend".
24038 (uses_ls_unit): Likewise for param "insn".
24039 (get_pipe): Likewise.
24040 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
24041 introducing a checked cast.
24042 (spu_sched_adjust_cost): Likewise for params "insn" and
24044 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
24045 (spu_sms_res_mii): Likewise.
24047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24049 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
24050 from rtx to rtx_insn *.
24051 (output_cbranch): Likewise for param 6.
24052 (output_return): Likewise for param 1.
24053 (output_sibcall): Likewise.
24054 (output_v8plus_shift): Likewise.
24055 (output_v8plus_mult): Likewise.
24056 (output_v9branch): Likewise for param 7.
24057 (output_cbcond): Likewise for param 3.
24059 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
24061 (sparc_legitimize_pic_address): Likewise.
24062 (sparc_emit_call_insn): Likewise.
24063 (emit_save_or_restore_regs): Likewise.
24064 (emit_window_save): Likewise for return type and local "insn".
24065 (sparc_expand_prologue): Likewise for local "insn".
24066 (sparc_flat_expand_prologue): Likewise.
24067 (output_return): Likewise for param "insn".
24068 (output_sibcall): Likewise for param "insn" and local "delay".
24069 (output_ubranch): Likewise for param "insn".
24070 (output_cbranch): Likewise.
24071 (output_cbcond): Likewise.
24072 (output_v9branch): Likewise.
24073 (output_v8plus_shift): Likewise.
24074 (sparc_output_mi_thunk): Likewise for local "insn".
24075 (get_some_local_dynamic_name): Likewise.
24076 (output_v8plus_mult): Likewise for param "insn".
24078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24080 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
24081 from rtx to rtx_insn *.
24082 (output_branchy_insn): Likewise for param 3.
24083 (output_far_jump): Likewise for param 1.
24084 (final_prescan_insn): Likewise.
24085 (sh_insn_length_adjustment): Likewise for sole param.
24087 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
24088 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
24090 (sh_emit_compare_and_set): Likewise for local "lab".
24091 (output_far_jump): Strengthen param "insn" and local "prev" from
24093 (output_branchy_insn): Likewise for param "insn" and local
24095 (output_ieee_ccmpeq): Likewise for param "insn".
24096 (struct label_ref_list_d): Strengthen field "label" from rtx to
24098 (pool_node): Likewise.
24099 (pool_window_label): Likewise for this global.
24100 (add_constant): Likewise for return type and locals "lab", "new_rtx".
24101 (dump_table): Strengthen params "start", "barrier" and local
24102 "scan" from rtx to rtx_insn *.
24103 (broken_move): Likewise for param "insn".
24104 (untangle_mova): Likewise for params "first_mova" and "new_mova".
24105 Strengthen param "first_mova" from rtx * to rtx_insn **.
24106 (mova_p): Likewise for param "insn".
24107 (fixup_mova): Likewise for param "mova".
24108 (find_barrier): Likewise for return type, params "mova" and
24109 "from", and locals "barrier_before_mova", "found_barrier",
24110 "good_barrier", "orig", "last_symoff", "next". Strengthen local
24111 "label" from rtx to rtx_code_label *.
24112 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
24114 (sh_reorg): Likewise for locals "link", "scan", "barrier".
24115 (split_branches): Likewise for param "first" and local "insn".
24116 (final_prescan_insn): Likewise for param "insn".
24117 (sequence_insn_p): Likewise for locals "prev", "next".
24118 (sh_insn_length_adjustment): Likewise for param "insn".
24119 (sh_can_redirect_branch): Likewise for local "insn".
24120 (find_r0_life_regions): Likewise for locals "end", "insn".
24121 (sh_output_mi_thunk): Likewise for local "insns".
24123 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24125 * config/score/score.c (score_output_mi_thunk): Strengthen local
24126 "insn" from rtx to rtx_insn *.
24127 (score_prologue): Likewise.
24129 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24131 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
24132 1 from rtx to rtx_insn *.
24133 (s390_emit_jump): Likewise for return type.
24134 (s390_emit_call): Likewise.
24135 (s390_load_got): Likewise.
24137 * config/s390/s390.c (last_scheduled_insn): Likewise for this
24139 (s390_match_ccmode): Likewise for param "insn".
24140 (s390_emit_jump): Likewise for return type.
24141 (s390_split_branches): Likewise for local "label".
24142 (struct constant): Strengthen field "label" from rtx to
24144 (struct constant_pool): Likewise for field "label". Strengthen
24145 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
24147 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
24149 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
24150 (s390_end_pool): Likewise.
24151 (s390_dump_pool): Likewise for local "insn".
24152 (s390_mainpool_start): Likewise.
24153 (s390_chunkify_start): Likewise.
24154 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
24155 with insns. Strengthen locals "label", "jump", "barrier", "next",
24156 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
24157 (s390_chunkify_finish): Strengthen local "insn" from rtx to
24159 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
24160 "jump", "label", "next_insn".
24161 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
24162 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
24164 (s390_load_got): Likewise for return type and local "insns".
24165 (s390_save_gprs_to_fprs): Likewise for local "insn".
24166 (s390_restore_gprs_from_fprs): Likewise.
24167 (pass_s390_early_mach::execute): Likewise.
24168 (s390_emit_prologue): Likewise for local "insns".
24169 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
24171 (s390_emit_call): Strengthen return type and local "insn" from
24173 (s390_emit_tpf_eh_return): Likewise for local "insn".
24174 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
24175 "next_insn", introducing locals "s_pat", "rpat" to allow this.
24176 (s390_fix_long_loop_prediction): Likewise for param "insn" and
24178 (s390_non_addr_reg_read_p): Likewise for param "insn".
24179 (find_cond_jump): Likewise for return type and param "insn".
24180 (s390_swap_cmp): Likewise for param "insn".
24181 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
24182 "prev_insn", "next_insn".
24183 (s390_reorg): Likewise for locals "insn", "target".
24184 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
24185 (s390_sched_variable_issue): For now, rename param "insn" to
24186 "uncast_insn", introducing a checked cast.
24187 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
24189 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
24190 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
24192 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24194 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
24195 param from rtx to rtx_insn *.
24196 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
24198 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24200 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
24201 4 from rtx to rtx_insn *.
24202 (rs6000_final_prescan_insn): Likewise for first param.
24203 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
24205 (rs6000_get_some_local_dynamic_name): Likewise.
24206 (output_cbranch): Likewise for param "insn".
24207 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
24208 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
24209 (rs6000_emit_allocate_stack): Likewise for local "insn".
24210 (load_cr_save): Likewise.
24211 (restore_saved_cr): Likewise.
24212 (restore_saved_lr): Likewise.
24213 (emit_cfa_restores): Likewise.
24214 (rs6000_output_function_epilogue): Likewise for locals "insn" and
24215 "deleted_debug_label".
24216 (rs6000_output_mi_thunk): Likewise for local "insn".
24217 (rs6000_final_prescan_insn): Likewise for param "insn".
24219 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24221 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
24222 Strengthen param "insn" from rtx to rtx_insn *.
24223 * config/picochip/picochip.c (picochip_current_prescan_insn):
24224 Likewise for this variable.
24225 (picochip_final_prescan_insn): Likewise for param "insn".
24227 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24229 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
24230 from rtx to rtx_insn *.
24231 (pa_output_indirect_call): Likewise.
24232 (pa_adjust_insn_length): Likewise.
24233 (pa_attr_length_millicode_call): Likewise.
24234 (pa_attr_length_call): Likewise.
24235 (pa_attr_length_indirect_call): Likewise.
24237 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
24239 (pa_attr_length_millicode_call): Likewise.
24240 (pa_attr_length_call): Likewise.
24241 (pa_output_call): Likewise.
24242 (pa_attr_length_indirect_call): Likewise.
24243 (pa_output_indirect_call): Likewise.
24245 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24247 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
24248 Strengthen first param from rtx to rtx_insn *.
24249 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
24252 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24254 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
24255 type from rtx to rtx_insn *.
24256 (mips_expand_call): Likewise.
24257 (mips_adjust_insn_length): Likewise for first param.
24258 (mips_output_conditional_branch): Likewise.
24259 (mips_output_order_conditional_branch): Likewise.
24260 (mips_final_prescan_insn): Likewise.
24262 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
24263 rtx_insn * for the SEQUENCE case.
24264 (SEQ_END): Likewise.
24265 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
24266 (mips_emit_call_insn): Likewise, also for local "insn".
24267 (mips16_gp_pseudo_reg): Likewise for local "scan".
24268 (mips16_build_call_stub): Likewise for return type and for local
24269 "insn". Introduce a new local "pattern" so that "insn" can indeed
24271 (mips_expand_call): Strengthen return type and local "insn" from
24273 (mips_block_move_loop): Strengthen local "label" from rtx to
24275 (mips_expand_synci_loop): Likewise for locals "label",
24277 (mips_set_frame_expr): Strengthen local "insn" from rtx to
24279 (mips16e_collect_argument_saves): Likewise for locals "insn",
24281 (mips_find_gp_ref): Likewise for param of callback for "pred"
24282 param, and for local "insn".
24283 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
24284 (mips_insn_has_flexible_gp_ref_p): Likewise.
24285 (mips_epilogue_emit_cfa_restores): Likewise for return type and
24287 (mips_epilogue_set_cfa): Likewise for local "insn".
24288 (mips_expand_epilogue): Likewise.
24289 (mips_adjust_insn_length): Likewise for param "insn".
24290 (mips_output_conditional_branch): Likewise.
24291 (mips_output_order_conditional_branch): Likewise.
24292 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
24293 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
24294 "falu2_turn_enabled_insn".
24295 (mips_builtin_branch_and_move): Strengthen locals "true_label",
24296 "done_label" from rtx to rtx_code_label *.
24297 (struct mips16_constant): Likewise for field "label".
24298 (mips16_add_constant): Likewise for return type.
24299 (mips16_emit_constants_1): Strengthen return type and param "insn"
24300 from rtx to rtx_insn *.
24301 (mips16_emit_constants): Likewise for param "insn".
24302 (mips16_insn_length): Likewise.
24303 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
24304 to rtx_code_label *.
24305 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
24306 from rtx to rtx_insn *.
24307 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
24308 "jump". Strengthen local "label" from rtx to rtx_code_label *.
24309 (r10k_simplify_address): Strengthen param "insn" and local
24310 "def_insn" from rtx to rtx_insn *.
24311 (r10k_safe_address_p): Strengthen param "insn" from rtx to
24313 (r10k_needs_protection_p_1): Update target type of cast of data
24314 from to rtx to rtx_insn *.
24315 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
24316 rtx * to rtx_insn **.
24317 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
24319 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
24320 (mips_call_expr_from_insn): Likewise for param "insn".
24321 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
24322 (mips_find_pic_call_symbol): Likewise for param "insn".
24323 (mips_annotate_pic_calls): Likewise for local "insn".
24324 (mips_sim_insn): Likewise for this variable.
24325 (struct mips_sim): Likewise for field "insn" within elements of
24327 (mips_sim_wait_reg): Likewise for param "insn".
24328 (mips_sim_wait_regs): Likewise.
24329 (mips_sim_wait_units): Likewise.
24330 (mips_sim_wait_insn): Likewise.
24331 (mips_sim_issue_insn): Likewise.
24332 (mips_sim_finish_insn): Likewise.
24333 (mips_seq_time): Likewise for param "seq" and local "insn".
24334 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
24335 locals "first", "second".
24336 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
24337 "last", "last2", "next".
24338 (mips_avoid_hazard): Likewise for params "after", "insn".
24339 (mips_reorg_process_insns): Likewise for locals "insn",
24340 "last_insn", "subinsn", "next_insn".
24341 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
24342 (mips16_split_long_branches): Likewise for locals "insn" "jump",
24344 (mips_output_mi_thunk): Likewise for local "insn".
24345 (mips_final_prescan_insn): Likewise for param "insn".
24347 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24349 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
24350 Strengthen return type and local "insns" from rtx to rtx_insn *.
24351 (microblaze_legitimize_tls_address): Likewise for local "insns".
24352 (microblaze_block_move_loop): Strengthen local "label" from rtx
24353 to rtx_code_label *.
24354 (microblaze_expand_prologue): Strengthen two locals named "insn"
24355 from rtx to rtx_insn *.
24356 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
24357 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
24358 "insn". Strengthen locals "div_label", "div_end_label" from rtx
24359 to rtx_code_label *.
24361 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24363 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
24364 param from rtx to rtx_insn *.
24365 (mep_reuse_lo): Likewise for third param.
24366 (mep_use_post_modify_p): Likewise for first param.
24367 (mep_core_address_length): Likewise.
24368 (mep_cop_address_length): Likewise.
24369 (mep_final_prescan_insn): Likewise.
24370 (mep_store_data_bypass_p): Likewise for both params.
24371 (mep_mul_hilo_bypass_p): Likewise.
24372 (mep_ipipe_ldc_p): Likewise for param.
24374 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
24375 (mep_rewrite_mult): Likewise.
24376 (mep_rewrite_mulsi3): Likewise.
24377 (mep_rewrite_maddsi3): Likewise.
24378 (mep_reuse_lo_p_1): Likewise.
24379 (mep_reuse_lo_p): Likewise.
24380 (mep_frame_expr): Likewise.
24381 (mep_make_parallel): Likewise for both params.
24382 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
24384 (mep_use_post_modify_p): Likewise for param "insn".
24385 (mep_core_address_length): Likewise.
24386 (mep_cop_address_length): Likewise.
24387 (mep_reg_set_in_function): Likewise for local "insn".
24388 (mep_asm_without_operands_p): Likewise.
24389 (F): Likewise for return type and param "x".
24390 (add_constant): Likewise for local "insn".
24391 (maybe_dead_move): Likewise for return type and local "insn".
24392 (mep_expand_prologue): Likewise for local "insn".
24393 (mep_final_prescan_insn): Likewise for param "insn".
24394 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
24395 "next", "follow", "x".
24396 (mep_insert_repeat_label_last): Likewise for return type, param
24397 "last_insn", and locals "next", "prev". Strengthen param "label"
24398 from rtx to rtx_code_label *.
24399 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
24401 (struct mep_doloop_end): Likewise for fields "insn" and
24403 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
24404 Strengthen local "repeat_label" from rtx to rtx_code_label *.
24405 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
24407 (mep_invert_branch): Likewise for params "insn" and "after".
24408 (mep_reorg_erepeat): Likewise for param "insns" and locals
24409 "insn", "prev", "new_last", "barrier", "user". Strengthen local
24410 "l" from rtx to rtx_code_label *.
24411 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
24412 from rtx to rtx_insn *.
24413 (mep_reorg_addcombine): Likewise for param "insns" and locals
24415 (add_sp_insn_p): Likewise for param "insn".
24416 (mep_reorg_noframe): Likewise for param "insns" and locals
24417 "start_frame_insn", "end_frame_insn", "next".
24418 (mep_reorg): Likewise for local "insns".
24419 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
24421 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
24422 (mep_mul_hilo_bypass_p): Likewise.
24423 (mep_ipipe_ldc_p): Likewise for param "insn".
24424 (mep_make_bundle): Likewise for return type, param "cop" and local
24425 "insn", splitting out the latter into a new local "seq" for when it
24426 is a SEQUENCE rather than an insn.
24427 (core_insn_p): Likewise for param "insn".
24428 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
24429 "last", "first", "note", "prev", "core_insn".
24431 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24433 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
24435 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
24436 (m68k_final_prescan_insn): Likewise for first param.
24438 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
24439 (m68k_set_frame_related): Likewise for param "insn".
24440 (output_btst): Likewise for param "insn".
24441 (m68k_final_prescan_insn): Likewise.
24442 (m68k_move_to_reg): Likewise for local "insn".
24443 (m68k_call_tls_get_addr): Likewise for local "insns".
24444 (m68k_call_m68k_read_tp): Likewise.
24445 (strict_low_part_peephole_ok): Likewise for param "first_insn".
24446 (m68k_output_mi_thunk): Likewise for local "insn".
24448 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24450 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
24451 first param from rtx to rtx_insn *.
24452 (iq2000_adjust_insn_length): Likewise.
24453 (iq2000_output_conditional_branch): Likewise.
24454 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
24455 "insn" and local "nop_insn".
24456 (iq2000_annotate_frame_insn): Likewise for param "insn".
24457 (iq2000_expand_prologue): Likewise for both locals "insn".
24458 (iq2000_adjust_insn_length): Likewise for param "insn".
24459 (iq2000_output_conditional_branch): Likewise.
24461 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24463 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
24464 "insns" from rtx to rtx_insn *.
24465 (ia64_emit_cond_move): Likewise for locals "insn", "first".
24466 (struct spill_fill_data): Likewise for field "init_after" and for
24467 elements of array field "prev_insn".
24468 (spill_restore_mem): Likewise for locals "insn", "first".
24469 (do_spill): Likewise for local "insn".
24470 (do_restore): Likewise.
24471 (ia64_expand_prologue): Likewise.
24472 (ia64_expand_epilogue): Likewise.
24473 (emit_insn_group_barriers): Likewise for locals "insn",
24475 (emit_all_insn_group_barriers): Likewise for locals "insn",
24477 (dfa_stop_insn): Likewise for this global.
24478 (dfa_pre_cycle_insn): Likewise.
24479 (ia64_nop): Likewise.
24480 (final_emit_insn_group_barriers): Likewise for locals "insn",
24482 (emit_predicate_relation_info): Likewise for locals "head", "n",
24484 (ia64_reorg): Likewise for local "insn".
24485 (ia64_output_mi_thunk): Likewise.
24486 (expand_vec_perm_interleave_2): Likewise for local "seq".
24488 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24490 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
24491 param 1 "insn" from rtx to rtx_insn *.
24492 (ix86_use_lea_for_mov): Likewise.
24493 (ix86_avoid_lea_for_addr): Likewise.
24494 (ix86_split_lea_for_addr): Likewise.
24495 (ix86_lea_for_add_ok): Likewise.
24496 (ix86_output_call_insn): Likewise.
24498 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
24499 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
24500 (ix86_output_function_epilogue): Likewise for locals "insn",
24501 "deleted_debug_label".
24502 (legitimize_tls_address): Likewise for local "insn".
24503 (get_some_local_dynamic_name): Likewise.
24504 (increase_distance): Likewise for params "prev", "next".
24505 (distance_non_agu_define_in_bb): Likewise for params "insn",
24506 "start" and locals "prev", "next".
24507 (distance_non_agu_define): Likewise for param "insn".
24508 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
24509 locals "next", "prev".
24510 (distance_agu_use): Likewise for param "insn".
24511 (ix86_lea_outperforms): Likewise.
24512 (ix86_ok_to_clobber_flags): Likewise.
24513 (ix86_avoid_lea_for_add): Likewise.
24514 (ix86_use_lea_for_mov): Likewise.
24515 (ix86_avoid_lea_for_addr): Likewise.
24516 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
24517 (ix86_split_lea_for_addr): Likewise for param "insn".
24518 (ix86_lea_for_add_ok): Likewise for param "insn".
24519 (ix86_expand_carry_flag_compare): Likewise for local
24521 (ix86_expand_int_movcc): Likewise.
24522 (ix86_output_call_insn): Likewise for param "insn".
24523 (ix86_output_call_insn): Likewise for local "i".
24524 (x86_output_mi_thunk): Introduce local "insn", using it in place
24525 of "tmp" when dealing with insns.
24526 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
24528 (ix86_pad_returns): Likewise for locals "ret", "prev".
24529 (ix86_count_insn_bb): Likewise for local "insn".
24530 (ix86_pad_short_function): Likewise for locals "ret", "insn".
24531 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
24532 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
24533 (expand_vec_perm_interleave2): Likewise for local "seq".
24534 (expand_vec_perm_vperm2f128_vblend): Likewise.
24535 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
24536 call to for_each_rtx with for_each_rtx_in_insn.
24538 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24540 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
24541 "label" from rtx to rtx_code_label *.
24542 (ix86_expand_prologue): Likewise.
24543 (ix86_expand_split_stack_prologue): Likewise for locals "label",
24545 (ix86_split_idivmod): Likewise for locals "end_label" and
24547 (ix86_expand_branch): Likewise for local "label2".
24548 (ix86_expand_aligntest): Likewise for return type and local "label".
24549 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
24551 (expand_movmem_epilogue): Likewise for the various locals named
24553 (expand_setmem_epilogue): Likewise.
24554 (expand_small_movmem_or_setmem): Likewise for local "label".
24555 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24556 Strengthen param "done_label" from rtx * to rtx_code_label **.
24557 Strengthen locals "loop_label" and "label" from rtx to
24559 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24560 Likewise for locals "loop_label", "label".
24561 (ix86_expand_set_or_movmem): Likewise for locals "label",
24562 "jump_around_label", "hot_label".
24563 (ix86_expand_strlensi_unroll_1): Likewise for locals
24564 "align_2_label", align_3_label", "align_4_label", "end_0_label",
24566 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
24567 (void ix86_emit_i387_log1p): Likewise for locals "label1",
24568 "label2", "jump_label".
24569 (ix86_expand_sse_compare_and_jump): Likewise for return type and
24571 (ix86_expand_lfloorceil): Likewise for local "label".
24572 (ix86_expand_rint): Likewise.
24573 (ix86_expand_floorceildf_32): Likewise.
24574 (ix86_expand_floorceil): Likewise.
24575 (ix86_expand_rounddf_32): Likewise.
24576 (ix86_expand_trunc): Likewise.
24577 (ix86_expand_truncdf_32): Likewise.
24578 (ix86_expand_round): Likewise.
24580 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24582 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
24583 first param from rtx to rtx_insn *.
24584 (h8300_insn_length_from_table): Likewise.
24585 * config/h8300/h8300.c (F): Likewise for return type and param
24587 (Fpa): Add a checked cast to rtx_insn *.
24588 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
24590 (final_prescan_insn): Likewise for param "insn".
24591 (h8300_binary_length): Likewise.
24592 (h8300_insn_length_from_table): Likewise.
24594 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24596 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
24597 Strengthen first param "insn" from rtx to rtx_insn *.
24599 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
24601 (frame_insn): Likewise for return type. Introduce local "insn"
24602 for use in place of local "x" for use as an rtx_insn *.
24603 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
24604 (epiphany_expand_prologue): Likewise for local "insn".
24605 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
24606 * config/epiphany/resolve-sw-modes.c
24607 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
24610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24612 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
24613 param from rtx to rtx_insn *.
24614 (c6x_final_prescan_insn): Likewise for first param.
24616 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
24617 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
24618 (c6x_expand_compare): Strengthen local "insns" from rtx to
24620 (c6x_get_unit_specifier): Likewise for param "insn".
24621 (c6x_print_unit_specifier_field): Likewise.
24622 (c6x_final_prescan_insn): Likewise.
24623 (emit_add_sp_const): Likewise for local "insn".
24624 (c6x_expand_prologue): Likewise.
24626 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24628 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
24629 param 1 from rtx to rtx_insn *.
24630 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
24631 the various locals named "insn".
24632 (expand_epilogue_reg_restore): Likewise.
24633 (frame_related_constant_load): Likewise.
24634 (add_to_reg): Likewise.
24635 (emit_link_insn): Likewise.
24636 (do_link): Likewise.
24637 (expand_interrupt_handler_prologue): Likewise.
24638 (branch_dest): Likewise for param "branch".
24639 (asm_conditional_branch): Likewise for param "insn".
24640 (gen_one_bundle): Likewise for elements of param "slot" and local
24642 (bfin_gen_bundles): Likewise for locals "insn", "next" and
24643 elements of local "slot".
24644 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24645 "queue", "next_queue", "prev".
24646 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
24647 (add_sched_insns_for_speculation): Likewise for local "insn".
24649 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24651 * config/avr/avr-protos.h (output_movqi): Strengthen first param
24652 from rtx to rtx_insn *.
24653 (output_movhi): Likewise.
24654 (output_movsisf): Likewise.
24655 (avr_out_tstsi): Likewise.
24656 (avr_out_tsthi): Likewise.
24657 (avr_out_tstpsi): Likewise.
24658 (avr_out_compare): Likewise.
24659 (avr_out_compare64): Likewise.
24660 (avr_out_movpsi): Likewise.
24661 (ashlqi3_out): Likewise.
24662 (ashlhi3_out): Likewise.
24663 (ashlsi3_out): Likewise.
24664 (ashrqi3_out): Likewise.
24665 (ashrhi3_out): Likewise.
24666 (ashrsi3_out): Likewise.
24667 (lshrqi3_out): Likewise.
24668 (lshrhi3_out): Likewise.
24669 (lshrsi3_out): Likewise.
24670 (avr_out_ashlpsi3): Likewise.
24671 (avr_out_ashrpsi3): Likewise.
24672 (avr_out_lshrpsi3): Likewise.
24673 (avr_out_fract): Likewise.
24674 (avr_out_sbxx_branch): Likewise.
24675 (avr_out_round): Likewise.
24676 (avr_out_xload): Likewise.
24677 (avr_out_movmem): Likewise.
24678 (adjust_insn_length): Likewise.
24679 (avr_out_lpm): Likewise.
24680 (reg_unused_after): Likewise.
24681 (_reg_unused_after): Likewise.
24682 (avr_jump_mode): Likewise for second param.
24683 (jump_over_one_insn): Likewise for first param.
24684 (avr_final_prescan_insn): Likewise.
24685 (out_shift_with_cnt): Likewise for second param.
24687 * config/avr/avr.c (get_sequence_length): Likewise for param
24688 "insns" and local "insn".
24689 (emit_push_byte): Likewise for local "insn".
24690 (emit_push_sfr): Likewise.
24691 (avr_prologue_setup_frame): Likewise for locals "insn",
24692 "fp_plus_insns", "sp_plus_insns".
24693 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
24695 (avr_jump_mode): Likewise for param "insn".
24696 (avr_final_prescan_insn): Likewise.
24697 (avr_find_unused_d_reg): Likewise.
24698 (avr_out_lpm_no_lpmx): Likewise.
24699 (avr_out_lpm): Likewise.
24700 (avr_out_xload): Likewise.
24701 (output_movqi): Likewise.
24702 (output_movhi): Likewise.
24703 (out_movqi_r_mr): Likewise.
24704 (out_movhi_r_mr): Likewise.
24705 (out_movsi_r_mr): Likewise.
24706 (out_movsi_mr_r): Likewise.
24707 (output_movsisf): Likewise.
24708 (avr_out_load_psi): Likewise.
24709 (avr_out_store_psi): Likewise.
24710 (avr_out_movpsi): Likewise.
24711 (out_movqi_mr_r): Likewise.
24712 (avr_out_movhi_mr_r_xmega): Likewise.
24713 (out_movhi_mr_r): Likewise.
24714 (compare_condition): Likewise for param "insn" and local "next".
24715 (compare_sign_p): Likewise for param "insn".
24716 (compare_diff_p): Likewise.
24717 (compare_eq_p): Likewise.
24718 (avr_out_compare): Likewise.
24719 (avr_out_compare64): Likewise.
24720 (avr_out_tsthi): Likewise.
24721 (avr_out_tstpsi): Likewise.
24722 (avr_out_tstsi): Likewise.
24723 (out_shift_with_cnt): Likewise.
24724 (ashlqi3_out): Likewise.
24725 (ashlhi3_out): Likewise.
24726 (avr_out_ashlpsi3): Likewise.
24727 (ashlsi3_out): Likewise.
24728 (ashrqi3_out): Likewise.
24729 (ashrhi3_out): Likewise.
24730 (avr_out_ashrpsi3): Likewise.
24731 (ashrsi3_out): Likewise.
24732 (lshrqi3_out): Likewise.
24733 (lshrhi3_out): Likewise.
24734 (avr_out_lshrpsi3): Likewise.
24735 (lshrsi3_out): Likewise.
24736 (avr_out_fract): Likewise.
24737 (avr_out_round): Likewise.
24738 (avr_adjust_insn_length): Likewise.
24739 (reg_unused_after): Likewise.
24740 (_reg_unused_after): Likewise.
24741 (avr_compare_pattern): Likewise.
24742 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
24743 and locals "branch1", "branch2", "insn2", "jump".
24744 (avr_reorg): Likewise for local "insn".
24745 (avr_2word_insn_p): Likewise for param "insn".
24746 (jump_over_one_insn_p): Likewise.
24747 (avr_out_sbxx_branch): Likewise.
24748 (avr_out_movmem): Likewise.
24750 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24752 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
24753 param from rtx to rtx_insn *.
24754 (thumb1_final_prescan_insn): Likewise.
24755 (thumb2_final_prescan_insn): Likewise.
24757 * config/arm/arm.c (emit_set_insn): Strengthen return type from
24759 (struct minipool_node): Likewise for field "insn".
24760 (dump_minipool): Likewise for param "scan".
24761 (create_fix_barrier): Likewise for local "from". Strengthen local
24762 "label" from rtx to rtx_code_label *.
24763 (push_minipool_barrier): Strengthen param "insn" from rtx to
24765 (push_minipool_fix): Likewise.
24766 (note_invalid_constants): Likewise.
24767 (thumb2_reorg): Likewise for local "insn".
24768 (arm_reorg): Likewise.
24769 (thumb2_final_prescan_insn): Likewise for param
24770 "insn" and local "first_insn".
24771 (arm_final_prescan_insn): Likewise for param "insn" and locals
24772 "start_insn", "this_insn".
24773 (arm_debugger_arg_offset): Likewise for param "insn".
24774 (thumb1_emit_multi_reg_push): Likewise for return type and local
24776 (thumb1_final_prescan_insn): Likewise for param "insn".
24777 (thumb_far_jump_used_p): Likewise for local "insn".
24778 (thumb1_expand_prologue): Likewise.
24779 (arm_expand_epilogue_apcs_frame): Likewise.
24780 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
24781 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
24782 from rtx to rtx_code_label *.
24783 (arm_split_atomic_op): Likewise for local "label".
24784 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
24786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24788 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
24789 first param from rtx to rtx_insn *.
24790 (arc_verify_short): Likewise.
24791 (arc_short_long): Likewise.
24792 (arc_need_delay): Likewise.
24794 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
24796 (arc_ccfsm_advance): Likewise for param "insn" and locals
24797 "start_insn", "this_insn".
24798 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
24799 (arc_ccfsm_post_advance): Likewise for param "insn".
24800 (arc_next_active_insn): Likewise for return type and param "insn".
24801 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
24802 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
24803 (output_short_suffix): Likewise for local "insn".
24804 (arc_final_prescan_insn): Likewise for param "insn". Remove
24805 now-redundant checked cast.
24806 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
24807 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
24808 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
24809 for use where lc_set became an insn.
24810 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
24812 (arc_get_insn_variants): Likewise for local "prev".
24813 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
24815 (arc_predicate_delay_insns): Likewise for local "insn".
24816 (arc_pad_return): Likewise for local "prev". For now, add a
24817 checked cast when extracting the insn from "final_sequence".
24818 (arc_short_long): Likewise for param "insn".
24819 (arc_need_delay): Likewise for param "insn" and local "next".
24820 (arc_label_align): Likewise for locals "prev", "next".
24822 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24824 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
24825 "insn" from rtx to rtx_insn *.
24826 (alpha_gp_save_rtx): Likewise for local "seq".
24827 (alpha_instantiate_decls): Likewise for local "top".
24828 (get_some_local_dynamic_name): Likewise for local "insn".
24829 (alpha_does_function_need_gp): Likewise.
24830 (set_frame_related_p): Likewise for return type and for locals
24832 (emit_frame_store_1): Likewise for local "insn".
24833 (alpha_expand_prologue): Likewise for locals "insn", "seq".
24834 (alpha_end_function): Likewise for local "insn".
24835 (alpha_output_mi_thunk_osf): Likewise.
24836 (alphaev4_insn_pipe): Likewise for param "insn".
24837 (alphaev5_insn_pipe): Likewise.
24838 (alphaev4_next_group): Likewise for return type and param 1
24840 (alphaev5_next_group): Likewise.
24841 (alpha_align_insns_1): Likewise for return type and param 1 of
24842 callback param "next_group", and for locals "i", "next", "prev",
24843 "where", "where2", "insn".
24845 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
24847 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
24848 rather than modifying the stmt.
24850 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24852 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
24853 cgraph_state conversion.
24855 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24857 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24858 Strengthen local "insns" from rtx to rtx_insn *.
24859 (aarch64_set_frame_expr): Likewise for local "insn".
24860 (aarch64_save_or_restore_fprs): Likewise.
24861 (aarch64_save_or_restore_callee_save_registers): Likewise.
24862 (aarch64_expand_prologue): Likewise.
24863 (aarch64_expand_epilogue): Likewise.
24864 (aarch64_output_mi_thunk): Likewise.
24865 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
24866 "label2" from rtx to rtx_code_label *.
24867 (aarch64_split_atomic_op): Likewise for local "label".
24869 2014-08-25 Martin Liska <mliska@suse.cz>
24871 * cgraph.h (symtab_node):
24872 (bool needed_p (void)): created from decide_is_symbol_needed
24873 (bool referred_to_p (void)): created from referred_to_p
24874 (static cgraph_node *get_for_asmname (tree asmname)):
24875 created from symtab_node_for_asm
24876 * cgraph.h (cgraph_node):
24877 (void assemble_thunks_and_aliases (void)):
24878 created from assemble_thunks_and_aliases
24879 (void expand (void)): created from expand_function
24880 (static void finalize_function (tree, bool)):
24881 created from cgraph_finalize_function
24882 (static cgraph_local_info *local_info (tree decl)):
24883 created from cgraph_local_info
24884 (static cgraph_global_info *global_info (tree)):
24885 created from cgraph_global_info
24886 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
24887 * cgraph.h (varpool_node):
24888 (static void add (tree decl): created from varpool_add_new_variable
24889 * cgraph.h (cgraph_edge):
24890 void remove (void);
24891 (void remove_caller (void)): created from cgraph_edge_remove_caller
24892 (void remove_callee (void)): created from cgraph_edge_remove_callee
24893 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
24894 created from cgraph_set_call_stmt
24895 (void redirect_callee (cgraph_node *n)): created from
24896 cgraph_redirect_edge_callee
24897 (cgraph_edge *make_direct (cgraph_node *callee)): created from
24898 cgraph_make_edge_direct
24899 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
24900 gimple redirect_call_stmt_to_callee (void)): created from
24901 cgraph_turn_edge_to_speculative
24902 (void speculative_call_info (cgraph_edge *&direct,
24903 cgraph_edge *&indirect, ipa_ref *&reference)): created from
24904 cgraph_speculative_call_info
24905 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt,
24906 unsigned stmt_uid, gcov_type count_scale,
24907 int freq_scale, bool update_original)): created from cgraph_clone_edge
24908 (cgraph_edge *resolve_speculation (tree callee_decl)):
24909 created from cgraph_resolve_speculation
24910 (bool cannot_lead_to_return_p (void)): created from
24911 cannot_lead_to_return_p
24912 (bool recursive_p (void)): created from cgraph_edge_recursive_p
24913 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
24914 (static unsigned int rebuild_edges (void)): created from
24915 rebuild_cgraph_edges
24916 (static void rebuild_references (void)): created from
24917 cgraph_rebuild_references
24918 * cgraph.h (symbol_table):
24919 (create_reference): renamed from add_reference
24920 (maybe_create_reference): renamed from maybe_add_reference
24921 (void register_symbol (symtab_node *node)): new function
24922 (void clear_asm_symbols (void)): new function
24923 (void unregister (symtab_node *node)): new function
24924 (void release_symbol (cgraph_node *node, int uid)): new function
24925 (cgraph_node * allocate_cgraph_symbol (void)): new function
24926 (void initialize (void)): created from cgraph_init
24927 (symtab_node *first_symbol (void)):new function
24928 (asm_node *first_asm_symbol (void)):new function
24929 (symtab_node *first_defined_symbol (void)):new function
24930 (varpool_node *first_variable (void)):new function
24931 (varpool_node *next_variable (varpool_node *node)):new function
24932 (varpool_node *first_static_initializer (void)):new function
24933 (varpool_node *next_static_initializer (varpool_node *node)):new
24935 (varpool_node *first_defined_variable (void)):new function
24936 (varpool_node *next_defined_variable (varpool_node *node)):new function
24937 (cgraph_node *first_defined_function (void)):new function
24938 (cgraph_node *next_defined_function (cgraph_node *node)):new function
24939 (cgraph_node *first_function (void)):new function
24940 (cgraph_node *next_function (cgraph_node *node)):new function
24941 (cgraph_node *first_function_with_gimple_body (void)):new function
24942 (asm_node *finalize_toplevel_asm (tree asm_str)): created from
24944 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
24945 created from symtab_remove_unreachable_nodes
24946 (void remove_unreferenced_decls (void)): created from
24947 varpool_remove_unreferenced_decls
24948 (void process_new_functions (void)): created from
24949 cgraph_process_new_functions
24950 (void process_same_body_aliases (void)): created from
24951 cgraph_process_same_body_aliases
24952 (bool output_variables (void)): created from
24953 varpool_node::output_variables
24954 (void output_asm_statements (void)): created from output_asm_statements
24955 (void finalize_compilation_unit (void)): created from
24956 finalize_compilation_unit
24957 (void compile (void)): created from compile
24958 (void output_weakrefs (void)): created from output_weakrefs
24959 (cgraph_node *create_empty (void)): created from
24960 cgraph_node::create_empty
24961 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee,
24962 gimple call_stmt, gcov_type count, int freq,
24963 bool indir_unknown_callee)): created from cgraph_node::create_edge
24964 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
24965 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
24966 created from cgraph_next_function_with_gimple_body
24967 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
24968 created from cgraph_remove_edge_removal_hook
24969 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook,
24970 void *)): created from cgraph_add_node_removal_hook
24971 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
24972 created from cgraph_remove_node_removal_hook
24973 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook,
24974 void *)): created from varpool_add_node_removal_hook
24975 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
24976 created from varpool_remove_node_removal_hook
24977 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook,
24978 void *)): created from cgraph_add_function_insertion_hook
24979 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
24980 created from cgraph_remove_function_insertion_hook
24981 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook,
24982 void *)): created from varpool_add_variable_insertion_hook
24983 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
24984 created from varpool_remove_variable_insertion_hook
24985 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook,
24986 void *)): created from cgraph_add_edge_duplication_hook
24987 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
24988 created from cgraph_remove_edge_duplication_hook
24989 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook,
24990 void *)): created from cgraph_add_node_duplication_hook
24991 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
24992 created from cgraph_remove_node_duplication_hook
24993 (void call_edge_removal_hooks (cgraph_edge *e)):
24994 created from cgraph_call_edge_removal_hooks
24995 (void call_cgraph_insertion_hooks (cgraph_node *node)):
24996 created from call_function_insertion_hooks
24997 (void call_cgraph_removal_hooks (cgraph_node *node)):
24998 created from cgraph_call_node_removal_hooks
24999 (void call_cgraph_duplication_hooks (cgraph_node *node,
25000 cgraph_node *node2)): created from cgraph_node::call_duplication_hooks
25001 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
25002 created from cgraph_call_edge_duplication_hooks
25003 (void call_varpool_removal_hooks (varpool_node *node)):
25004 created from varpool_call_node_removal_hooks
25005 (void call_varpool_insertion_hooks (varpool_node *node)):
25006 created from varpool_call_variable_insertion_hooks
25007 (void insert_to_assembler_name_hash (symtab_node *node,
25008 bool with_clones)): created from insert_to_assembler_name_hash
25009 (void unlink_from_assembler_name_hash (symtab_node *node,
25010 bool with_clones)): created from unlink_from_assembler_name_hash
25011 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
25012 created from symtab_prevail_in_asm_name_hash
25013 (void symtab_initialize_asm_name_hash (void)):
25014 created from symtab_initialize_asm_name_hash
25015 (void change_decl_assembler_name (tree decl, tree name)):
25016 created from change_decl_assembler_name
25017 (void materialize_all_clones (void)): created from
25018 cgraph_materialize_all_clones
25019 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
25020 created from decl_assembler_name_hash
25021 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
25022 created from decl_assembler_name_equal
25023 (static hashval_t hash_node_by_assembler_name (const void *p)):
25024 created from hash_node_by_assembler_name
25025 (static int eq_assembler_name (const void *p1, const void *p2)):
25026 created from eq_assembler_name
25028 2014-08-25 Marek Polacek <polacek@redhat.com>
25030 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
25032 2014-08-25 Petr Murzin <petr.murzin@intel.com>
25034 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
25035 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
25036 SWI1248_AVX512BW mode iterator.
25038 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
25041 * config/sh/predicates.md (general_extend_operand): Disable
25042 TRUNCATE before reload completes.
25044 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
25046 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
25048 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
25051 * config/sh/sh.opt (musermode): Allow negative form.
25052 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
25053 targets that don't support it.
25054 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
25055 Document -mno-usermode option.
25057 2014-08-24 Kito Cheng <kito@0xlab.org>
25059 * system.h (CALLER_SAVE_PROFITABLE): Poison.
25060 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
25061 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
25062 * doc/tm.texi: Regenerate.
25064 2014-08-24 Kito Cheng <kito@0xlab.org>
25066 * ira.c: Fix typo in comment.
25068 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
25070 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
25071 Deprecate c++1y. Change language to reflect greater confidence in C++14.
25073 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
25076 * config/pa/pa.c (pa_output_function_epilogue): Don't set
25077 last_address when the current function is a thunk.
25078 (pa_asm_output_mi_thunk): When we don't have named sections or they
25079 are not being used, check that thunk can reach the stub table with a
25082 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25084 * web.c (union_match_dups): Strengthen param "insn" from rtx to
25086 (pass_web::execute): Likewise for local "insn".
25088 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25090 * var-tracking.c (struct micro_operation_def): Strengthen field
25091 "insn" from rtx to rtx_insn *.
25092 (struct emit_note_data_def): Likewise.
25093 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
25094 (vt_stack_adjustments): Likewise for local "insn".
25095 (adjust_insn): Likewise for param "insn".
25096 (val_store): Likewise.
25097 (val_resolve): Likewise.
25098 (struct count_use_info): Likewise for field "insn".
25099 (log_op_type): Likewise for param "insn".
25100 (reverse_op): Likewise.
25101 (prepare_call_arguments): Likewise.
25102 (add_with_sets): The initial param takes an insn, but we can't
25103 yet strengthen it from rtx to rtx_insn * since it's used as a
25104 cselib_record_sets_hook callback. For now rename initial param
25105 from "insn" to "uncast_insn", and introduce a local "insn" of
25106 the stronger rtx_insn * type, with a checked cast.
25107 (compute_bb_dataflow): Strengthen local "insn" from rtx to
25109 (emit_note_insn_var_location): Likewise.
25110 (emit_notes_for_changes): Likewise.
25111 (emit_notes_for_differences): Likewise.
25112 (next_non_note_insn_var_location): Likewise for return type and
25114 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
25115 (vt_initialize): Likewise for local "insn".
25116 (delete_debug_insns): Likewise for locals "insn" and "next".
25118 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25120 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
25122 (mark_constant_pool): Likewise for local "insn".
25124 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25126 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
25128 (dead_debug_promote_uses): Likewise.
25129 (dead_debug_insert_temp): Likewise.
25131 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25133 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
25134 from const_rtx to const rtx_insn *.
25135 (store_killed_after): Likewise. Strengthen locals "last", "act"
25136 from rtx to rtx_insn *.
25137 (store_killed_before): Strengthen param "insn" from const_rtx to
25138 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
25139 (find_moveable_store): Strengthen param "insn" from rtx to
25141 (compute_store_table): Likewise for local "insn".
25142 (insert_insn_start_basic_block): Likewise for param "insn" and
25143 locals "prev", "before", "insn".
25144 (insert_store): For now, add a checked cast to rtx_insn * on the
25145 result of gen_move_insn.
25146 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
25148 (replace_store_insn): Likewise. For now, add a checked cast to
25149 rtx_insn * on the result of gen_move_insn.
25151 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25153 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
25155 (expand_sjlj_dispatch_table): Likewise.
25157 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25159 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
25160 "insn" from rtx to rtx_insn *.
25162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25164 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
25165 "insn" from rtx to rtx_insn *.
25166 (dup_block_and_redirect): Likewise for param 3 "before".
25168 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
25169 from rtx to rtx_insn *.
25170 (move_insn_for_shrink_wrap): Likewise.
25171 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
25172 (dup_block_and_redirect): Likewise for param "before" and local
25174 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
25176 (convert_to_simple_return): Likewise for local "start".
25178 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
25179 Strengthen local "insn" from rtx to rtx_insn *, for use when
25180 invoking requires_stack_frame_p.
25182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25184 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
25186 (speculate_expr): Likewise for locals "orig_insn_rtx",
25188 (eq_transformed_insns): Likewise for locals "i1", "i2".
25189 (check_for_new_jump): Likewise for return type and local "end".
25190 (find_new_jump): Likewise for return type and local "jump".
25191 (sel_split_edge): Likewise for local "jump".
25192 (sel_create_recovery_block): Likewise.
25193 (sel_redirect_edge_and_branch_force): Likewise.
25194 (sel_redirect_edge_and_branch): Likewise.
25196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25198 * sel-sched.c (substitute_reg_in_expr): Strengthen local
25199 "new_insn" from rtx to rtx_insn *.
25200 (create_insn_rtx_with_rhs): Likewise for return type and for local
25202 (create_insn_rtx_with_lhs): Likewise.
25203 (create_speculation_check): Likewise for local "insn_rtx".
25204 (implicit_clobber_conflict_p): Likewise for local "insn".
25205 (get_expr_cost): Likewise.
25206 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
25207 (move_cond_jump): Likewise for locals "next", "prev", "link",
25208 "head", "from", "to".
25210 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25212 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
25213 "next" from rtx to rtx_insn *.
25214 (find_conditional_protection): Likewise for local "next".
25215 (is_conditionally_protected): Likewise for local "insn1".
25216 (is_pfree): Likewise for locals "insn1", "insn2".
25218 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25220 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
25221 from rtx to rtx_insn *.
25223 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
25224 locals "insn1", "insn2" from rtx to rtx_insn *.
25225 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
25226 locals "insn", "prev", "last_jump", "next_tail".
25227 (schedule_ebb): Likewise for params "head", "tail".
25228 (schedule_ebbs): Likewise for locals "tail", "head".
25230 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
25231 to rtx_insn on "last_insn" in one of the invocations of
25234 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25236 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
25237 "elem", "insn" from rtx to rtx_insn *.
25238 (change_spec_dep_to_hard): Likewise.
25239 (get_back_and_forw_lists): Likewise for local "con".
25240 (sd_add_dep): Likewise for locals "elem", "insn".
25241 (sd_resolve_dep): Likewise for locals "pro", "con".
25242 (sd_unresolve_dep): Likewise.
25243 (sd_delete_dep): Likewise.
25244 (chain_to_prev_insn): Likewise for local "pro".
25245 (find_inc): Likewise for locals "pro", "con".
25247 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25249 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
25251 (reg_set_between_p): Strengthen local "insn" from const_rtx to
25253 (modified_between_p): Strengthen local "insn" from rtx to
25255 (remove_reg_equal_equiv_notes_for_regno): Likewise.
25256 (keep_with_call_p): Strengthen local "i2" from const_rtx to
25259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25261 * resource.c (next_insn_no_annul): Strengthen local "next" from
25263 (mark_referenced_resources): Likewise for local "insn".
25265 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25267 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
25269 (find_reloads): Likewise for param 1.
25270 (subst_reloads): Likewise for sole param.
25271 (find_equiv_reg): Likwise for param 2.
25272 (regno_clobbered_p): Likwise for param 2.
25273 (reload): Likewise for param 1.
25275 * caller-save.c (save_call_clobbered_regs): Strengthen local
25276 "insn" from rtx to rtx_insn *.
25277 (insert_one_insn): Likewise for local "insn".
25279 * reload.c (this_insn): Likewise for this global.
25280 (find_reloads): Likewise for param "insn".
25281 (find_reloads_toplev): Likewise.
25282 (find_reloads_address): Likewise.
25283 (subst_reg_equivs): Likewise.
25284 (update_auto_inc_notes): Likewise.
25285 (find_reloads_address_1): Likewise.
25286 (find_reloads_subreg_address): Likewise.
25287 (subst_reloads): Likewise.
25288 (find_equiv_reg): Likewise, also for local "p".
25289 (regno_clobbered_p): Likewise for param "insn".
25291 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
25293 (spill_reg_store): Likewise for the elements of this array.
25294 (remove_init_insns): Likewise for local "equiv_insn".
25295 (will_delete_init_insn_p): Likewise for param "insn".
25296 (reload): Likewise for param ""first" and local "insn".
25297 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
25299 (calculate_elim_costs_all_insns): Likewise.
25300 (delete_caller_save_insns): Likewise.
25301 (spill_failure): Likewise for param "insn".
25302 (delete_dead_insn): Likewise.
25303 (set_label_offsets): Likewise.
25304 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
25306 (elimination_costs_in_insn): Likewise for param "insn".
25307 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
25308 when referring to an insn.
25309 (set_initial_label_offsets): Likewise.
25310 (set_offsets_for_label): Strengthen param "insn" from rtx to
25312 (init_eliminable_invariants): Likewise for param "first" and local
25314 (fixup_eh_region_note): Likewise for param "insn".
25315 (reload_as_needed): Likewise for locals "prev", "insn",
25316 "old_next", "old_prev", "next".
25317 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
25319 (reload_inheritance_insn): Strengthen elements of this array from
25321 (failed_reload): Likewise for param "insn".
25322 (choose_reload_regs): Likewise for local "insn". Replace use of
25323 NULL_RTX with NULL when referring to an insn.
25324 (input_reload_insns): Strengthen elements of this array from rtx
25326 (other_input_address_reload_insns): Likewise for this global.
25327 (other_input_reload_insns): Likewise for this global.
25328 (input_address_reload_insns): Likwise for the elements of this
25330 (inpaddr_address_reload_insns): Likwise for the elements of this
25332 (output_reload_insns): Likewise for the elements of this array.
25333 (output_address_reload_insns): Likewise for the elements of this
25335 (outaddr_address_reload_insns): Likewise for the elements of this
25337 (operand_reload_insns): Likewise for this global.
25338 (other_operand_reload_insns): Likewise for this global.
25339 (other_output_reload_insns): Likewise for the elements of this
25341 (new_spill_reg_store): Likewise for the elements of this
25343 (emit_input_reload_insns): Likewise for locals "insn", "temp".
25344 Strengthen local "where" from rtx * to rtx_insn **.
25345 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
25346 from rtx to rtx_insn *.
25347 (do_input_reload): Likewise for local "insn".
25348 (do_output_reload): Likewise for local "insn".
25349 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
25350 (emit_insn_if_valid_for_reload): Likewise for return type and local
25351 "last". Add checked cast to rtx_insn when returning "insn" since
25352 this has been through emit_insn.
25353 (gen_reload): Strengthen return type and locals "last", "insn", "set"
25354 from rtx to rtx_insn *. Add checked cast to rtx_insn when
25355 returning "insn" since it's been through
25356 emit_insn_if_valid_for_reload at this point.
25357 (delete_output_reload): Strengthen param "insn" and locals
25358 "output_reload_insn", "i2" from rtx to rtx_insn *.
25359 (delete_address_reloads): Likewise for params "dead_insn",
25360 "current_insn" and locals "prev", "next".
25361 (delete_address_reloads_1): Likewise for params "dead_insn",
25362 "current_insn" and locals "prev", "i2".
25363 (inc_for_reload): Likewise for locals "last", "add_insn".
25364 (add_auto_inc_notes): Strengthen param "insn" from rtx to
25367 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
25368 param of this duplicate of the prototype from reload.h
25370 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25372 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
25374 (regstat_bb_compute_calls_crossed): Likewise.
25376 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25378 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
25380 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
25382 (regrename_analyze): Strengthen local "insn" from rtx to
25384 (scan_rtx_reg): Likewise for param "insn".
25385 (scan_rtx_address): Likewise.
25386 (scan_rtx): Likewise.
25387 (restore_operands): Likewise.
25388 (record_out_operands): Likewise.
25389 (build_def_use): Likewise for local "insn". Replace use of
25390 NULL_RTX with NULL when dealing with an insn.
25392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25394 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
25395 * reginfo.c (reg_scan): Likewise, also for local "insn".
25396 (reg_scan_mark_refs): Likewise for param "insn".
25397 (init_subregs_of_mode): Likewise for local "insn".
25399 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25401 * regcprop.c (struct queued_debug_insn_change): Strengthen field
25402 "insn" from rtx to rtx_insn *.
25403 (replace_oldest_value_reg): Likewise for param "insn".
25404 (replace_oldest_value_addr): Likewise.
25405 (replace_oldest_value_mem): Likewise.
25406 (apply_debug_insn_changes): Likewise for local "last_insn".
25407 (copyprop_hardreg_forward_1): Likewise for local "insn".
25409 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25411 * reg-stack.c (next_flags_user): Strengthen return type and param
25412 "insn" from rtx to rtx_insn *.
25413 (straighten_stack): Likewise for param "insn".
25414 (check_asm_stack_operands): Likewise.
25415 (remove_regno_note): Likewise.
25416 (emit_pop_insn): Likewise for return type, param "insn", local
25418 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
25419 "limit" from rtx to rtx_insn *.
25420 (swap_to_top): Likewise for param "insn".
25421 (move_for_stack_reg): Likewise.
25422 (move_nan_for_stack_reg): Likewise.
25423 (swap_rtx_condition): Likewise.
25424 (compare_for_stack_reg): Likewise.
25425 (subst_all_stack_regs_in_debug_insn): Likewise.
25426 (subst_stack_regs_pat): Likewise, and local "insn2".
25427 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
25429 (subst_stack_regs): Likewise.
25430 (change_stack): Likewise.
25431 (convert_regs_1): Likewise for locals "insn", "next".
25433 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25435 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
25437 (combine_set_extension): Likewise for param "curr_insn".
25438 (transform_ifelse): Likewise for param "def_insn".
25439 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
25440 from vec<rtx> * to vec<rtx_insn *> *.
25441 (is_cond_copy_insn): Likewise for param "insn".
25442 (struct ext_state): Strengthen the four vec fields from vec<rtx>
25443 to vec<rtx_insn *>.
25444 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
25445 local "def_insn" from rtx to rtx_insn *.
25446 (get_sub_rtx): Likewise for param "def_insn".
25447 (merge_def_and_ext): Likewise.
25448 (combine_reaching_defs): Likewise.
25449 (add_removable_extension): Likewise for param "insn".
25450 (find_removable_extensions): Likewise for local "insn".
25451 (find_and_remove_re): Likewise for locals "curr_insn" and
25452 "def_insn". Strengthen locals "reinsn_del_list" and
25453 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
25455 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25457 * recog.c (split_insn): Strengthen param "insn" and locals
25458 "first", "last" from rtx to rtx_insn *.
25459 (split_all_insns): Likewise for locals "insn", "next".
25460 (split_all_insns_noflow): Likewise.
25462 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25464 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
25466 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25467 (debug_rtx_find): Likewise for param 1 "x".
25469 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
25470 const_rtx to const rtx_insn *. Likewise for local "insn".
25471 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25472 (debug_rtx_find): Likewise for param 1 "x".
25473 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
25474 from const_rtx to const rtx_insn * within the appropriate cases of
25475 the switch statement.
25477 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
25478 Strengthen local "insns" from rtx to rtx_insn * since this is
25479 passed to a call to debug_rtx_list.
25481 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25483 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
25486 * function.c (stack_protect_epilogue): Add checked cast to
25487 rtx_insn for now when invoking predict_insn_def.
25489 * predict.c (predict_insn): Strengthen param "insn" from rtx to
25491 (predict_insn_def): Likewise.
25492 (rtl_predict_edge): Likewise for local "last_insn".
25493 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
25495 (combine_predictions_for_insn): Strengthen param "insn" from rtx
25497 (bb_estimate_probability_locally): Likewise for local "last_insn".
25498 (expensive_function_p): Likewise for local "insn".
25500 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
25501 local "jmp", since this is used when invoking predict_insn_def.
25503 2014-08-22 Marek Polacek <polacek@redhat.com>
25506 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
25508 2014-08-22 Marek Polacek <polacek@redhat.com>
25511 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
25512 a comparison in parens.
25513 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
25516 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25518 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
25521 * cprop.c (fis_get_condition): Likewise.
25523 * postreload.c (reload_cse_regs): Likewise for param "first".
25524 (reload_cse_simplify): Likewise for param "insn".
25525 (reload_cse_regs_1): Likewise for local "insn".
25526 (reload_cse_simplify_set): Likewise for param "insn".
25527 (reload_cse_simplify_operands): Likewise.
25528 (struct reg_use): Likewise for field "insn".
25529 (reload_combine_purge_insn_uses): Likewise for param "insn".
25530 (fixup_debug_insns): Likewise for params "from", "to" and local
25532 (try_replace_in_use): Likewise for local "use_insn".
25533 (reload_combine_recognize_const_pattern): Likewise for param
25534 "insn" and locals "add_moved_after_insn", "use_insn".
25535 (reload_combine_recognize_pattern): Likewise for param "insn" and
25537 (reload_combine): Likewise for locals "insn", "prev".
25538 (reload_combine_note_use): Likewise for param "insn".
25539 (move2add_use_add2_insn): Likewise.
25540 (move2add_use_add3_insn): Likewise.
25541 (reload_cse_move2add): Likewise, also for local "next".
25542 (move2add_note_store): Likewise for local "insn".
25544 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25546 * postreload-gcse.c (struct occr): Strengthen field "insn" from
25548 (struct unoccr): Likewise.
25549 (struct modifies_mem): Likewise.
25550 (alloc_mem): Likewise for local "insn".
25551 (insert_expr_in_table): Likewise for param "insn".
25552 (dump_expr_hash_table_entry): Likewise for local "insn".
25553 (oprs_unchanged_p): Likewise for param "insn".
25554 (load_killed_in_block_p): Likewise for local "setter".
25555 (record_last_reg_set_info): Likewise for param "insn".
25556 (record_last_reg_set_info_regno): Likewise.
25557 (record_last_mem_set_info): Likewise.
25558 (record_last_set_info): Likewise for local "last_set_insn".
25559 (record_opr_changes): Likewise for param "insn".
25560 (hash_scan_set): Likewise.
25561 (compute_hash_table): Likewise for local "insn".
25562 (get_avail_load_store_reg): Likewise for param "insn".
25563 (eliminate_partially_redundant_load): Likewise, also for locals
25564 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
25566 (eliminate_partially_redundant_loads): Likewise for local "insn".
25568 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25570 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
25572 (expand_binop): Likewise for locals "entry_last", "last", "insns"
25573 (expand_twoval_unop): Likewise for locals entry_last", "last".
25574 (expand_twoval_binop): Likewise.
25575 (expand_twoval_binop_libfunc): Likewise for local "insns".
25576 (widen_leading): Likewise for local "last".
25577 (expand_doubleword_clz): Likewise for local "seq". Strengthen
25578 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
25579 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
25580 (expand_parity): Likewise for locals "last" and "seq".
25581 (expand_ffs): Likewise for local "seq". Strengthen local
25582 "nonzero_label" from rtx to rtx_code_label *.
25583 (expand_absneg_bit): Strengthen local "insns" from rtx to
25585 (expand_unop_direct): Likewise for local "last".
25586 (expand_unop): Likewise for locals "last", "insns".
25587 (expand_abs_nojump): Likewise for local "last".
25588 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
25589 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
25591 (expand_copysign_absneg): Strengthen local "label" from rtx to
25593 (expand_copysign_bit): Strengthen local "insns" from rtx to
25595 (struct no_conflict_data): Likewise for fields "first", "insn".
25596 (emit_libcall_block_1): Likewise for param "insns" and locals
25597 "next", "last", "insn".
25598 (emit_libcall_block): For now, add a checked cast to rtx_insn *
25599 on "insns" when invoking emit_libcall_block_1. Ultimately we
25600 want to strengthen insns itself.
25601 (prepare_cmp_insn): Strengthen local "last" from rtx to
25603 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
25604 (prepare_float_lib_cmp): Likewise for local "insns".
25605 (emit_conditional_move): Likewise for local "last".
25606 (emit_conditional_add): Likewise.
25607 (have_sub2_insn): Likewise for local "seq".
25608 (expand_float): Likewise for local "insns". Strengthen locals
25609 "label", "neglabel" from rtx to rtx_code_label *.
25610 (expand_fix): Likewise for locals "last", "insn", "insns" (to
25611 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
25612 (expand_fixed_convert): Likewise for local "insns" (to
25614 (expand_sfix_optab): Likewise for local "last".
25615 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
25616 to rtx_code_label *.
25617 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
25618 from rtx to rtx_insn *.
25619 (expand_atomic_fetch_op): Likewise for local "insn".
25620 (maybe_legitimize_operand_same_code): Likewise for local "last".
25621 (maybe_legitimize_operands): Likewise.
25623 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25625 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
25626 "insn" from rtx to rtx_insn *.
25627 (ps_rtl_insn): Likewise for return type.
25628 (doloop_register_get): Likewise for params "head", "tail" and
25629 locals "insn", "first_insn_not_to_check".
25630 (schedule_reg_move): Likewise for local "this_insn".
25631 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
25632 of gen_move_insn for now.
25633 (reset_sched_times): Strengthen local "insn" from rtx to
25635 (permute_partial_schedule): Likewise.
25636 (duplicate_insns_of_cycles): Likewise for local "u_insn".
25637 (dump_insn_location): Likewise for param "insn".
25638 (loop_canon_p): Likewise for local "insn".
25639 (sms_schedule): Likewise.
25640 (print_partial_schedule): Likewise.
25641 (ps_has_conflicts): Likewise.
25643 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25645 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
25646 "tailp" from rtx * to rtx_insn **.
25648 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
25649 from rtx to rtx_insn *.
25650 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
25651 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
25652 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
25654 * modulo-sched.c (const_iteration_count): Strengthen return type
25655 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
25656 use of NULL_RTX with NULL when working with insns.
25657 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
25659 (sms_schedule): Likewise.
25660 * sched-rgn.c (init_ready_list): Likewise, also for locals
25661 "src_head" and "src_next_tail".
25662 (compute_block_dependences): Likewise.
25663 (free_block_dependencies): Likewise.
25664 (debug_rgn_dependencies): Likewise.
25665 (free_rgn_deps): Likewise.
25666 (compute_priorities): Likewise.
25667 (schedule_region): Likewise.
25668 * sel-sched.c (find_ebb_boundaries): Likewise.
25670 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
25671 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
25673 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25675 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
25676 from rtx to rtx_insn *.
25677 (new_seginfo): Likewise for param "insn".
25678 (create_pre_exit): Likewise for locals "last_insn",
25679 "before_return_copy", "return_copy".
25680 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
25683 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25685 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
25686 from rtx to rtx_insn *.
25687 (lra_push_insn): Likewise for 1st param.
25688 (lra_push_insn_and_update_insn_regno_info): Likewise.
25689 (lra_pop_insn): Likewise for return type.
25690 (lra_invalidate_insn_data): Likewise for 1st param.
25691 (lra_set_insn_deleted): Likewise.
25692 (lra_delete_dead_insn): Likewise.
25693 (lra_process_new_insns): Likewise for first 3 params.
25694 (lra_set_insn_recog_data): Likewise for 1st param.
25695 (lra_update_insn_recog_data): Likewise.
25696 (lra_set_used_insn_alternative): Likewise.
25697 (lra_invalidate_insn_regno_info): Likewise.
25698 (lra_update_insn_regno_info): Likewise.
25699 (lra_former_scratch_operand_p): Likewise.
25700 (lra_eliminate_regs_1): Likewise.
25701 (lra_get_insn_recog_data): Likewise.
25703 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
25706 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
25708 (substitute_within_insn): New.
25709 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
25710 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
25711 Replace call to "substitute" with call to substitute_within_insn.
25713 * lra-constraints.c (curr_insn): Strengthen from rtx to
25715 (get_equiv_with_elimination): Likewise for param "insn".
25716 (match_reload): Strengthen params "before" and "after" from rtx *
25718 (emit_spill_move): Likewise for return type. Add a checked cast
25719 to rtx_insn * on result of gen_move_insn for now.
25720 (check_and_process_move): Likewise for local "before". Replace
25721 NULL_RTX with NULL when referring to insns.
25722 (process_addr_reg): Strengthen params "before" and "after" from
25723 rtx * to rtx_insn **.
25724 (insert_move_for_subreg): Likewise.
25725 (simplify_operand_subreg): Strengthen locals "before" and "after"
25726 from rtx to rtx_insn *.
25727 (process_address_1): Strengthen params "before" and "after" from
25728 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
25730 (process_address): Strengthen params "before" and "after" from
25731 rtx * to rtx_insn **.
25732 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
25733 (curr_insn_transform): Strengthen locals "before" and "after"
25734 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
25736 (loc_equivalence_callback): Update cast of "data", changing
25737 resulting type from rtx to rtx_insn *.
25738 (substitute_pseudo_within_insn): New.
25739 (inherit_reload_reg): Strengthen param "insn" from rtx to
25740 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
25741 NULL when referring to insns. Add a checked cast to rtx_insn *
25742 when using usage_insn to invoke lra_update_insn_regno_info.
25743 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
25744 likewise for locals "restore", "save". Add checked casts to
25745 rtx_insn * when using usage_insn to invoke
25746 lra_update_insn_regno_info and lra_process_new_insns. Replace
25747 NULL_RTX with NULL when referring to insns.
25748 (split_if_necessary): Strengthen param "insn" from rtx to
25750 (update_ebb_live_info): Likewise for params "head", "tail" and local
25752 (get_last_insertion_point): Likewise for return type and local "insn".
25753 (get_live_on_other_edges): Likewise for local "last".
25754 (inherit_in_ebb): Likewise for params "head", "tail" and locals
25755 "prev_insn", "next_insn", "restore".
25756 (remove_inheritance_pseudos): Likewise for local "prev_insn".
25757 (undo_optional_reloads): Likewise for local "insn".
25759 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
25761 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
25763 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
25765 (spill_pseudos): Likewise for local "insn".
25766 (init_elimination): Likewise.
25767 (process_insn_for_elimination): Likewise for param "insn".
25769 * lra-lives.c (curr_insn): Likewise.;
25771 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
25772 (remove_pseudos): Likewise for param "insn".
25773 (spill_pseudos): Likewise for local "insn".
25774 (lra_final_code_change): Likewise for locals "insn", "curr".
25776 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
25777 (lra_set_insn_deleted): Likewise.
25778 (lra_delete_dead_insn): Likewise, and for local "prev".
25779 (new_insn_reg): Likewise for param "insn".
25780 (lra_set_insn_recog_data): Likewise.
25781 (lra_update_insn_recog_data): Likewise.
25782 (lra_set_used_insn_alternative): Likewise.
25783 (get_insn_freq): Likewise.
25784 (invalidate_insn_data_regno_info): Likewise.
25785 (lra_invalidate_insn_regno_info): Likewise.
25786 (lra_update_insn_regno_info): Likewise.
25787 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
25789 (lra_push_insn_1): Strengthen param "insn" from rtx to
25791 (lra_push_insn): Likewise.
25792 (lra_push_insn_and_update_insn_regno_info): Likewise.
25793 (lra_pop_insn): Likewise for return type and local "insn".
25794 (push_insns): Likewise for params "from", "to", and local "insn".
25795 (setup_sp_offset): Likewise for params "from", "last" and locals
25797 (lra_process_new_insns): Likewise for params "insn", "before",
25798 "after" and local "last".
25799 (struct sloc): Likewise for field "insn".
25800 (lra_former_scratch_operand_p): Likewise for param "insn".
25801 (remove_scratches): Likewise for locals "insn", "last".
25802 (check_rtl): Likewise for local "insn".
25803 (add_auto_inc_notes): Likewise for param "insn".
25804 (update_inc_notes): Likewise for local "insn".
25805 (lra): Replace NULL_RTX with NULL when referring to insn.
25807 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25809 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
25811 (resolve_reg_notes): Likewise.
25812 (resolve_simple_move): Likewise for return type, param "insn", and
25813 locals "insns", "minsn".
25814 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
25815 (resolve_use): Likewise.
25816 (resolve_debug): Likewise.
25817 (find_decomposable_shift_zext): Likewise.
25818 (resolve_shift_zext): Likewise for return type, param "insn", and
25819 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
25820 (decompose_multiword_subregs): Likewise for local "insn",
25821 "orig_insn", "decomposed_shift", "end".
25823 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25825 * basic-block.h (basic_block split_edge_and_insert): Strengthen
25826 param "insns" from rtx to rtx_insn *.
25828 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
25830 (struct iv_to_split): Likewise.
25831 (loop_exit_at_end_p): Likewise for local "insn".
25832 (split_edge_and_insert): Likewise for param "insns".
25833 (compare_and_jump_seq): Likewise for return type, param "cinsn",
25834 and locals "seq", "jump".
25835 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
25836 "branch_code"; update invocations of compare_and_jump_seq to
25837 eliminate NULL_RTX in favor of NULL.
25838 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
25840 (reset_debug_uses_in_loop): Likewise.
25841 (analyze_insn_to_expand_var): Likewise for param "insn".
25842 (analyze_iv_to_split_insn): Likewise.
25843 (analyze_insns_in_loop): Likewise for local "insn".
25844 (insert_base_initialization): Likewise for param
25845 "insn" and local "seq".
25846 (split_iv): Likewise for param "insn" and local "seq".
25847 (expand_var_during_unrolling): Likewise for param "insn".
25848 (insert_var_expansion_initialization): Likewise for local "seq".
25849 (combine_var_copies_in_loop_exit): Likewise.
25850 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
25852 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
25853 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
25856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25858 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
25860 (iv_analyze_result): Likewise.
25861 (iv_analyze_expr): Likewise.
25864 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
25865 local "def_insn" from rtx to rtx_insn *.
25866 (get_biv_step_1): Likewise for local "insn".
25867 (iv_analyze_expr): Likewise for param "insn".
25868 (iv_analyze_def): Likewise for local "insn".
25869 (iv_analyze_op): Likewise for param "insn".
25870 (iv_analyze): Likewise.
25871 (iv_analyze_result): Likewise.
25873 (suitable_set_for_replacement): Likewise.
25874 (simplify_using_initial_values): Likewise for local "insn".
25875 (iv_number_of_iterations): Likewise for param "insn".
25876 (check_simple_exit): Add checked cast to rtx_insn when invoking
25877 iv_number_of_iterations for now (until get_condition is
25880 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
25881 "insn" from rtx to rtx_insn *.
25882 (analyze_insns_in_loop): Likewise for local "insn".
25884 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25886 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
25888 (struct invariant): Likewise.
25889 (hash_invariant_expr_1): Likewise for param "insn".
25890 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
25891 (find_exits): Likewise for local "insn".
25892 (create_new_invariant): Likewise for param "insn".
25893 (check_dependencies): Likewise.
25894 (find_invariant_insn): Likewise.
25895 (record_uses): Likewise.
25896 (find_invariants_insn): Likewise.
25897 (find_invariants_bb): Likewise for local "insn".
25898 (get_pressure_class_and_nregs): Likewise for param "insn".
25899 (calculate_loop_reg_pressure): Likewise for local "insn".
25901 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25903 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
25905 (add_test): Likewise for locals "seq", "jump".
25906 (doloop_modify): Likewise for locals "sequence", "jump_insn".
25908 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25910 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
25912 (rebuild_jump_labels_chain): Likewise for param "chain".
25914 * cfgexpand.c (pass_expand::execute): Add checked cast to
25915 rtx_insn * when calling rebuild_jump_labels_chain in region where
25916 we know e->insns.r is non-NULL.
25918 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
25920 (rebuild_jump_labels): Likewise.
25921 (rebuild_jump_labels_chain): Likewise for param "chain".
25922 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
25923 (init_label_info): Likewise for param "f".
25924 (maybe_propagate_label_ref): Likewise for params "jump_insn",
25925 "prev_nonjump_insn".
25926 (mark_all_labels): Likewise for param "f" and locals "insn",
25927 "prev_nonjump_insn".
25929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25931 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
25932 from rtx to rtx_insn *insn.
25933 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
25934 (ira_add_allocno_copy): Likewise.
25935 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
25937 (ira_create_copy): Likewise.
25938 (ira_add_allocno_copy): Likewise.
25939 (create_bb_allocnos): Likewise for local "insn".
25940 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
25941 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
25942 process_regs_for_copy for rtx_insn * param.
25943 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
25944 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
25945 process_regs_for_copy for rtx_insn * param.
25946 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
25947 * ira-costs.c (record_reg_classes): Likewise for param "insn".
25948 (record_operand_costs): Likewise.
25949 (scan_one_insn): Likewise for return type, and for param "insn".
25950 (process_bb_for_costs): Likewise for local "insn".
25951 (process_bb_node_for_hard_reg_moves): Likewise.
25952 * ira-emit.c (struct move): Likewise for field "insn".
25953 (create_move): Eliminate use of NULL_RTX when dealing with an
25955 (emit_move_list): Strengthen return type and locals "result",
25956 "insn" from rtx to rtx_insn *insn.
25957 (emit_moves): Likewise for locals "insns", "tmp".
25958 (ira_emit): Likewise for local "insn".
25959 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
25961 (find_call_crossed_cheap_reg): Likewise.
25962 (process_bb_node_lives): Likewise for local "insn".
25963 * ira.c (decrease_live_ranges_number): Likewise.
25964 (compute_regs_asm_clobbered): Likewise.
25965 (build_insn_chain): Likewise.
25966 (find_moveable_pseudos): Likewise, also locals "def_insn",
25967 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
25968 to rtx_insn **. Add a checked cast when assigning from
25969 "closest_use" into closest_uses array in a region where we know
25970 it's a non-NULL insn.
25971 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
25973 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
25974 "last_interesting_insn", "uin".
25975 (move_unallocated_pseudos): Likewise for locals "def_insn",
25976 "move_insn", "newinsn".
25978 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25980 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
25981 Strengthen locals "done_label", "do_error" from rtx to
25983 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
25984 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
25986 (ubsan_expand_si_overflow_neg_check): Likewise for locals
25987 "done_label", "do_error" to rtx_code_label * and local "last" to
25989 (ubsan_expand_si_overflow_mul_check): Likewise for locals
25990 "done_label", "do_error", "large_op0", "small_op0_large_op1",
25991 "one_small_one_large", "both_ops_large", "after_hipart_neg",
25992 "after_lopart_neg", "do_overflow", "hipart_different" to
25993 rtx_code_label * and local "last" to rtx_insn *.
25995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25997 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
25998 "insn" and "move_insn" from rtx to rtx_insn *.
26000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26002 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
26004 (cheap_bb_rtx_cost_p): Likewise.
26005 (first_active_insn): Likewise for return type and local "insn".
26006 (last_active_insn): Likewise for return type and locals "insn",
26008 (struct noce_if_info): Likewise for fields "jump", "insn_a",
26010 (end_ifcvt_sequence): Likewise for return type and locals "insn",
26012 (noce_try_move): Likewise for local "seq".
26013 (noce_try_store_flag): Likewise.
26014 (noce_try_store_flag_constants): Likewise.
26015 (noce_try_addcc): Likewise.
26016 (noce_try_store_flag_mask): Likewise.
26017 (noce_try_cmove): Likewise.
26018 (noce_try_minmax): Likewise.
26019 (noce_try_abs): Likewise.
26020 (noce_try_sign_mask): Likewise.
26021 (noce_try_bitop): Likewise.
26022 (noce_can_store_speculate_p): Likewise for local "insn".
26023 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
26025 (check_cond_move_block): Likewise for local "insn".
26026 (cond_move_convert_if_block): Likewise.
26027 (cond_move_process_if_block): Likewise for locals "seq",
26029 (noce_find_if_block): Likewise for local "jump".
26030 (merge_if_block): Likewise for local "last".
26031 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
26032 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
26033 (block_has_only_trap): Likewise for return type and local "trap".
26034 (find_if_case_1): Likewise for local "jump".
26035 (dead_or_predicable): Likewise for locals "head", "end", "jump",
26038 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26040 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
26041 "last_insn", "loop_end" from rtx to rtx_insn *.
26043 * hw-doloop.c (scan_loop): Likewise for local "insn".
26044 (discover_loop): Likewise for param "tail_insn".
26045 (discover_loops): Likewise for local "tail".
26047 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
26048 cast to rtx_insn * when assigning from an rtx local to a
26049 hwloop_info's "last_insn" field.
26051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26053 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
26054 (add_delay_dependencies): Strengthen local "pro" from rtx to
26056 (recompute_todo_spec): Likewise.
26057 (dep_cost_1): Likewise for locals "insn", "used".
26058 (schedule_insn): Likewise for local "dbg".
26059 (schedule_insn): Likewise for locals "pro", "next".
26060 (unschedule_insns_until): Likewise for local "con".
26061 (restore_pattern): Likewise for local "next".
26062 (estimate_insn_tick): Likewise for local "pro".
26063 (resolve_dependencies): Likewise for local "next".
26064 (fix_inter_tick): Likewise.
26065 (fix_tick_ready): Likewise for local "pro".
26066 (add_to_speculative_block): Likewise for locals "check", "twin",
26068 (sched_extend_bb): Likewise for locals "end", "insn".
26069 (init_before_recovery): Likewise for local "x".
26070 (sched_create_recovery_block): Likewise for local "barrier".
26071 (create_check_block_twin): Likewise for local "pro".
26072 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
26074 (unlink_bb_notes): Update for change to type of bb_header.
26075 Strengthen locals "prev", "label", "note", "next" from rtx to
26077 (clear_priorities): Likewise for local "pro".
26079 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26081 * gcse.c (struct occr): Strengthen field "insn" from rtx to
26083 (test_insn): Likewise for this global.
26084 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
26086 (oprs_anticipatable_p): Likewise.
26087 (oprs_available_p): Likewise.
26088 (insert_expr_in_table): Strengthen param "insn" from rtx to
26090 (hash_scan_set): Likewise.
26091 (hash_scan_clobber): Likewise.
26092 (hash_scan_call): Likewise.
26093 (hash_scan_insn): Likewise.
26094 (compute_hash_table_work): Likewise for local "insn".
26095 (process_insert_insn): Likewise for return type and local "pat".
26096 (insert_insn_end_basic_block): Likewise for locals "new_insn",
26097 "pat", "pat_end", "maybe_cc0_setter".
26098 (pre_edge_insert): Likewise for local "insn".
26099 (pre_insert_copy_insn): Likewise for param "insn".
26100 (pre_insert_copies): Likewise for local "insn".
26101 (struct set_data): Likewise for field "insn".
26102 (single_set_gcse): Likewise for param "insn".
26103 (gcse_emit_move_after): Likewise.
26104 (pre_delete): Likewise for local "insn".
26105 (update_bb_reg_pressure): Likewise for param "from" and local
26107 (should_hoist_expr_to_dom): Likewise for param "from".
26108 (hoist_code): Likewise for local "insn".
26109 (get_pressure_class_and_nregs): Likewise for param "insn".
26110 (calculate_bb_reg_pressure): Likewise for local "insn".
26111 (compute_ld_motion_mems): Likewise.
26113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26115 * genpeep.c (main): Rename param back from "uncast_ins1" to
26116 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
26119 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
26121 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26124 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
26125 documentation to state it is only for VSX operations.
26127 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
26128 constraint only active if VSX.
26130 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
26131 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
26132 (lfiwzx): Likewise.
26134 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26136 * fwprop.c (single_def_use_dom_walker::before_dom_children):
26137 Strengthen local "insn" from rtx to rtx_insn *.
26138 (use_killed_between): Likewise for param "target_insn".
26139 (all_uses_available_at): Likewise for param "target_insn" and
26141 (update_df_init): Likewise for params "def_insn", "insn".
26142 (update_df): Likewise for param "insn".
26143 (try_fwprop_subst): Likewise for param "def_insn" and local
26145 (free_load_extend): Likewise for param "insn".
26146 (forward_propagate_subreg): Likewise for param "def_insn" and
26148 (forward_propagate_asm): Likewise for param "def_insn" and local
26150 (forward_propagate_and_simplify): Likewise for param "def_insn"
26151 and local "use_insn".
26152 (forward_propagate_into): Likewise for locals "def_insn" and
26155 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26157 * function.c (emit_initial_value_sets): Strengthen local "seq"
26158 from rtx to rtx_insn *.
26159 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
26161 (instantiate_virtual_regs): Likewise for local "insn".
26162 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
26163 (reorder_blocks_1): Likewise for param "insns" and local "insn".
26164 (expand_function_end): Likewise for locals "insn" and "seq".
26165 (epilogue_done): Likewise for local "insn".
26166 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
26168 (reposition_prologue_and_epilogue_notes): Likewise for locals
26169 "insn", "last", "note", "first".
26170 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
26171 (pass_match_asm_constraints::execute): Likewise for local "insn".
26173 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26175 * output.h (final_scan_insn): Strengthen return type from rtx to
26177 (final_forward_branch_p): Likewise for param.
26178 (current_output_insn): Likewise for this global.
26180 * final.c (rtx debug_insn): Likewise for this variable.
26181 (current_output_insn): Likewise.
26182 (get_attr_length_1): Rename param "insn" to "uncast_insn",
26183 adding "insn" back in as an rtx_insn * with a checked cast, so
26184 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
26186 (compute_alignments): Strengthen local "label" from rtx to
26188 (shorten_branches): Rename param from "first" to "uncast_first",
26189 introducing a new local rtx_insn * "first" using a checked cast to
26190 effectively strengthen "first" from rtx to rtx_insn * without
26191 affecting the type signature. Strengthen locals "insn", "seq",
26192 "next", "label" from rtx to rtx_insn *.
26193 (change_scope): Strengthen param "orig_insn" and local "insn" from
26195 (final_start_function): Rename param from "first" to "uncast_first",
26196 introducing a new local rtx_insn * "first" using a checked cast to
26197 effectively strengthen "first" from rtx to rtx_insn * without
26198 affecting the type signature. Strengthen local "insn" from rtx to
26200 (dump_basic_block_info): Strengthen param "insn" from rtx to
26202 (final): Rename param from "first" to "uncast_first",
26203 introducing a new local rtx_insn * "first" using a checked cast to
26204 effectively strengthen "first" from rtx to rtx_insn * without
26205 affecting the type signature. Strengthen locals "insn", "next"
26206 from rtx to rtx_insn *.
26207 (output_alternate_entry_point): Strengthen param "insn" from rtx to
26209 (call_from_call_insn): Strengthen param "insn" from rtx to
26211 (final_scan_insn): Rename param from "insn" to "uncast_insn",
26212 introducing a new local rtx_insn * "insn" using a checked cast to
26213 effectively strengthen "insn" from rtx to rtx_insn * without
26214 affecting the type signature. Strengthen return type and locals
26215 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
26216 now-redundant checked cast to rtx_insn * from both invocations of
26217 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
26218 introducing a local "call_insn" for use when invoking
26219 call_from_call_insn.
26220 (notice_source_line): Strengthen param "insn" from rtx to
26222 (leaf_function_p): Likewise for local "insn".
26223 (final_forward_branch_p): Likewise.
26224 (leaf_renumber_regs): Likewise for param "first".
26225 (rest_of_clean_state): Likewise for locals "insn" and "next".
26226 (self_recursive_call_p): Likewise for param "insn".
26227 (collect_fn_hard_reg_usage): Likewise for local "insn".
26228 (get_call_fndecl): Likewise for param "insn".
26229 (get_call_cgraph_rtl_info): Likewise.
26230 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
26231 introducing a new local rtx_insn * "insn" using a checked cast to
26232 effectively strengthen "insn" from rtx to rtx_insn * without
26233 affecting the type signature.
26235 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
26236 cast when assigning from param "insn" to current_output_insn.
26237 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
26238 so that we can assign it back to current_output_insn.
26240 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26242 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
26243 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
26244 atmxt540s and atmxt540sreva devices.
26245 * config/avr/avr-tables.opt: Regenerate.
26246 * config/avr/t-multilib: Regenerate.
26247 * doc/avr-mmcu.texi: Regenerate.
26249 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26251 * expr.c (convert_move): Strengthen local "insns" from rtx to
26253 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
26254 "top_label" from rtx to rtx_code_label *.
26255 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
26257 (emit_single_push_insn): Likewise for locals "prev", "last".
26258 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
26259 to rtx_code_label *.
26260 (store_constructor): Likewise for locals "loop_start", "loop_end".
26261 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
26263 (expand_expr_real_2): Likewise.
26264 (expand_expr_real_1): Strengthen local "label" from rtx to
26267 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26269 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
26270 from rtx to rtx_insn *.
26271 (store_bit_field_1): Likewise.
26272 (extract_bit_field_1): Likewise.
26273 (expand_mult_const): Likewise for local "insns".
26274 (expmed_mult_highpart): Strengthen local "label" from rtx to
26276 (expand_smod_pow2): Likewise.
26277 (expand_sdiv_pow2): Likewise.
26278 (expand_divmod): Strengthen locals "last", "insn" from rtx to
26279 rtx_insn *. Strengthen locals "label", "label1", "label2",
26280 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
26281 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
26282 (emit_store_flag): Likewise.
26283 (emit_store_flag_force): Strengthen local "label" from rtx to
26285 (do_cmp_and_jump): Likewise for param "label".
26287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26289 * explow.c (force_reg): Strengthen local "insn" from rtx to
26291 (adjust_stack_1): Likewise.
26292 (allocate_dynamic_stack_space): Likewise. Strengthen locals
26293 "final_label", "available_label", "space_available" from rtx to
26295 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
26296 (anti_adjust_stack_and_probe): Likewise.
26298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26300 * except.h (sjlj_emit_function_exit_after): Strengthen param
26301 "after" from rtx to rtx_insn *. This is only called with
26302 result of get_last_insn (in function.c) so type-change should be
26305 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
26306 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
26307 to rtx_insn *. These fields are only used from except.c so this
26308 type-change should be self-contained to this patch.
26310 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
26311 local "last" from rtx to rtx_insn *.
26312 (dw2_build_landing_pads): Likewise for local "seq".
26313 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
26314 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
26315 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
26317 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
26319 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
26320 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
26321 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
26322 referring to an insn. Strengthen local "dispatch_label" from
26323 rtx to rtx_code_label *.
26324 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
26326 (expand_eh_return): Strengthen local "around_label" from
26327 rtx to rtx_code_label *.
26328 (convert_to_eh_region_ranges): Strengthen locals "iter",
26329 "last_action_insn", "first_no_action_insn",
26330 "first_no_action_insn_before_switch",
26331 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
26333 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26335 * dwarf2out.c (last_var_location_insn): Strengthen this variable
26336 from rtx to rtx_insn *.
26337 (cached_next_real_insn): Likewise.
26338 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
26339 working with insns.
26340 (dwarf2out_var_location): Strengthen locals "next_real",
26341 "next_note", "expected_next_loc_note", "last_start", "insn" from
26344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26346 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
26347 from rtx to rtx_insn *.
26348 (create_pseudo_cfg): Likewise for local "insn".
26350 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26352 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
26353 from rtx to rtx_insn *.
26354 (df_bb_regno_last_def_find): Likewise.
26356 * df-problems.c (df_rd_bb_local_compute): Likewise.
26357 (df_lr_bb_local_compute): Likewise.
26358 (df_live_bb_local_compute): Likewise.
26359 (df_chain_remove_problem): Likewise.
26360 (df_chain_create_bb): Likewise.
26361 (df_word_lr_bb_local_compute): Likewise.
26362 (df_remove_dead_eq_notes): Likewise for param "insn".
26363 (df_note_bb_compute): Likewise for local "insn".
26364 (simulate_backwards_to_point): Likewise.
26365 (df_md_bb_local_compute): Likewise.
26367 * df-scan.c (df_scan_free_bb_info): Likewise.
26368 (df_scan_start_dump): Likewise.
26369 (df_scan_start_block): Likewise.
26370 (df_install_ref_incremental): Likewise for local "insn".
26371 (df_insn_rescan_all): Likewise.
26372 (df_reorganize_refs_by_reg_by_insn): Likewise.
26373 (df_reorganize_refs_by_insn_bb): Likewise.
26374 (df_recompute_luids): Likewise.
26375 (df_bb_refs_record): Likewise.
26376 (df_update_entry_exit_and_calls): Likewise.
26377 (df_bb_verify): Likewise.
26379 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26381 * ddg.h (struct ddg_node): Strengthen fields "insn" and
26382 "first_note" from rtx to rtx_insn *.
26383 (get_node_of_insn): Likewise for param 2 "insn".
26384 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26386 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
26388 (mem_write_insn_p): Likewise.
26389 (mem_access_insn_p): Likewise.
26390 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26391 (def_has_ccmode_p): Likewise for param "insn".
26392 (add_cross_iteration_register_deps): Likewise for locals
26393 "def_insn" and "use_insn".
26394 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
26395 (build_intra_loop_deps): Likewise for local "src_insn".
26396 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
26398 (get_node_of_insn): Likewise for param "insn".
26400 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26402 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
26403 (deletable_insn_p): Strengthen param "insn" from rtx to
26404 rtx_insn *. Add checked cast to rtx_call_insn when invoking
26405 find_call_stack_args, since this is guarded by CALL_P (insn).
26406 (marked_insn_p): Strengthen param "insn" from rtx to
26408 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
26409 invoking find_call_stack_args, since this is guarded by
26411 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
26412 rtx_insn *; we know this is an insn since this was called by
26413 mark_nonreg_stores.
26414 (mark_nonreg_stores_2): Likewise.
26415 (mark_nonreg_stores): Strengthen param "insn" from rtx to
26417 (find_call_stack_args): Strengthen param "call_insn" from rtx to
26418 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
26420 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
26421 from rtx to rtx_insn *.
26422 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
26423 "next", "ref_insn".
26424 (delete_unmarked_insns): Likewise for locals "insn", "next".
26425 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
26426 (mark_reg_dependencies): Likewise for param "insn".
26427 (rest_of_handle_ud_dce): Likewise for local "insn".
26428 (word_dce_process_block): Likewise.
26429 (dce_process_block): Likewise.
26431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26433 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
26434 from rtx to rtx_insn *.
26435 (struct change_cc_mode_args): Likewise for field "insn".
26436 (this_insn): Strengthen from rtx to rtx_insn *.
26437 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
26439 (validate_canon_reg): Strengthen param "insn" from rtx to
26441 (canon_reg): Likewise.
26442 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
26444 (record_jump_equiv): Strengthen param "insn" from rtx to
26446 (try_back_substitute_reg): Likewise, also for locals "prev",
26448 (find_sets_in_insn): Likewise for param "insn".
26449 (canonicalize_insn): Likewise.
26450 (cse_insn): Likewise. Add a checked cast.
26451 (invalidate_from_clobbers): Likewise for param "insn".
26452 (invalidate_from_sets_and_clobbers): Likewise.
26453 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
26455 (cse_prescan_path): Strengthen local "insn" from rtx to
26457 (cse_extended_basic_block): Likewise for locals "insn" and
26459 (cse_main): Likewise for param "f".
26460 (check_for_label_ref): Likewise for local "insn".
26461 (set_live_p): Likewise for second param ("insn").
26462 (insn_live_p): Likewise for first param ("insn") and for local
26464 (cse_change_cc_mode_insn): Likewise for first param "insn".
26465 (cse_change_cc_mode_insns): Likewise for first and second params
26467 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
26469 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
26472 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26473 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26474 Anna Tikhonova <anna.tikhonova@intel.com>
26475 Ilya Tocar <ilya.tocar@intel.com>
26476 Andrey Turetskiy <andrey.turetskiy@intel.com>
26477 Ilya Verbin <ilya.verbin@intel.com>
26478 Kirill Yukhin <kirill.yukhin@intel.com>
26479 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26481 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
26483 * config/i386/sse.md
26484 (define_mode_iterator VI248_AVX2): Delete.
26485 (define_mode_iterator VI2_AVX2_AVX512BW): New.
26486 (define_mode_iterator VI48_AVX2): Ditto.
26487 (define_insn <shift_insn><mode>3): Delete.
26488 (define_insn "<shift_insn><mode>3<mask_name>" with
26489 VI2_AVX2_AVX512BW): New.
26490 (define_insn "<shift_insn><mode>3<mask_name>" with
26493 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26494 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26495 Anna Tikhonova <anna.tikhonova@intel.com>
26496 Ilya Tocar <ilya.tocar@intel.com>
26497 Andrey Turetskiy <andrey.turetskiy@intel.com>
26498 Ilya Verbin <ilya.verbin@intel.com>
26499 Kirill Yukhin <kirill.yukhin@intel.com>
26500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26502 * config/i386/sse.md
26503 (define_mode_iterator VI4F_BRCST32x2): New.
26504 (define_mode_attr 64x2_mode): Ditto.
26505 (define_mode_attr 32x2mode): Ditto.
26506 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
26507 with VI4F_BRCST32x2): Ditto.
26508 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
26509 with V16FI mode iterator): Ditto.
26510 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26511 with V16FI): Ditto.
26512 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26513 with VI8F_BRCST64x2): Ditto.
26515 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26517 Anna Tikhonova <anna.tikhonova@intel.com>
26518 Ilya Tocar <ilya.tocar@intel.com>
26519 Andrey Turetskiy <andrey.turetskiy@intel.com>
26520 Ilya Verbin <ilya.verbin@intel.com>
26521 Kirill Yukhin <kirill.yukhin@intel.com>
26522 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26524 * config/i386/sse.md
26525 (define_mode_iterator VI8_AVX512VL): New.
26526 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
26528 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
26530 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
26531 (define_mode_iterator V48_AVX512VL): New.
26532 (define_mode_iterator V12_AVX512VL): Ditto.
26533 (define_insn <avx512>_load<mode>_mask): Split into two similar
26534 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
26535 Refactor output template.
26536 (define_insn "<avx512>_store<mode>_mask"): Ditto.
26538 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26540 * cprop.c (struct occr): Strengthen field "insn" from rtx to
26542 (reg_available_p): Likewise for param "insn".
26543 (insert_set_in_table): Likewise.
26544 (hash_scan_set): Likewise.
26545 (hash_scan_insn): Likewise.
26546 (make_set_regs_unavailable): Likewise.
26547 (compute_hash_table_work): Likewise for local "insn".
26548 (reg_not_set_p): Strengthen param "insn" from const_rtx to
26550 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
26551 (try_replace_reg): Likewise.
26552 (find_avail_set): Likewise.
26553 (cprop_jump): Likewise for params "setcc", "jump".
26554 (constprop_register): Likewise for param "insn".
26555 (cprop_insn): Likewise.
26556 (do_local_cprop): Likewise.
26557 (local_cprop_pass): Likewise for local "insn".
26558 (bypass_block): Likewise for params "setcc" and "jump".
26559 (bypass_conditional_jumps): Likewise for locals "setcc" and
26561 (one_cprop_pass): Likewise for local "insn".
26563 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26565 * compare-elim.c (struct comparison_use): Strengthen field "insn"
26566 from rtx to rtx_insn *.
26567 (struct comparison): Likewise, also for field "prev_clobber".
26568 (conforming_compare): Likewise for param "insn".
26569 (arithmetic_flags_clobber_p): Likewise.
26570 (find_flags_uses_in_insn): Likewise.
26571 (find_comparison_dom_walker::before_dom_children): Likewise for
26572 locals "insn", "next", "last_clobber".
26573 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
26575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26577 * combine-stack-adj.c (struct csa_reflist): Strengthen field
26578 "insn" from rtx to rtx_insn *.
26579 (single_set_for_csa): Likewise for param "insn".
26580 (record_one_stack_ref): Likewise.
26581 (try_apply_stack_adjustment): Likewise.
26582 (struct record_stack_refs_data): Likewise for field "insn".
26583 (maybe_move_args_size_note): Likewise for params "last" and "insn".
26584 (prev_active_insn_bb): Likewise for return type and param "insn".
26585 (next_active_insn_bb): Likewise.
26586 (force_move_args_size_note): Likewise for params "prev" and "last"
26587 and locals "test", "next_candidate", "prev_candidate".
26588 (combine_stack_adjustments_for_block): Strengthen locals
26589 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
26592 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26594 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
26595 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
26596 (subst_insn): Likewise for this variable.
26597 (added_links_insn): Likewise.
26598 (struct insn_link): Likewise for field "insn".
26599 (alloc_insn_link): Likewise for param "insn".
26600 (struct undobuf): Likewise for field "other_insn".
26601 (find_single_use): Likewise for param "insn" and local "next".
26602 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
26603 (delete_noop_moves): Likewise for locals "insn", "next".
26604 (create_log_links): Likewise for locals "insn", "use_insn".
26605 Strengthen local "next_use" from rtx * to rtx_insn **.
26606 (insn_a_feeds_b): Likewise for params "a", "b".
26607 (combine_instructions): Likewise for param "f" and locals "insn",
26608 "next", "prev", "first", "last_combined_insn", "link", "link1",
26609 "temp". Replace use of NULL_RTX with NULL when referring to
26611 (setup_incoming_promotions): Likewise for param "first"
26612 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
26613 (can_combine_p): Likewise for params "insn", "i3", "pred",
26614 "pred2", "succ", "succ2" and for local "p".
26615 (combinable_i3pat): Likewise for param "i3".
26616 (cant_combine_insn_p): Likewise for param "insn".
26617 (likely_spilled_retval_p): Likewise.
26618 (adjust_for_new_dest): Likewise.
26619 (update_cfg_for_uncondjump): Likewise, also for local "insn".
26620 (try_combine): Likewise for return type and for params "i3", "i2",
26621 "i1", "i0", "last_combined_insn", and for locals "insn",
26622 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
26623 "i0_insn". Eliminate local "tem" in favor of new locals
26624 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
26625 checked cast for now to rtx_insn * on the return type of
26626 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
26628 (find_split_point): Strengthen param "insn" from rtx to
26630 (simplify_set): Likewise for local "other_insn".
26631 (recog_for_combine): Likewise for param "insn".
26632 (record_value_for_reg): Likewise.
26633 (record_dead_and_set_regs_1): Likewise for local
26634 "record_dead_insn".
26635 (record_dead_and_set_regs): Likewise for param "insn".
26636 (record_promoted_value): Likewise.
26637 (check_promoted_subreg): Likewise.
26638 (get_last_value_validate): Likewise.
26639 (reg_dead_at_p): Likewise.
26640 (move_deaths): Likewise for param "to_insn".
26641 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
26642 and locals "place", "place2", "cc0_setter". Eliminate local "tem
26643 in favor of new locals "tem_note" and "tem_insn", the latter being
26645 (distribute_links): Strengthen locals "place", "insn" from rtx to
26648 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26650 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
26652 (can_delete_label_p): Require a const rtx_code_label * rather than
26654 (delete_insn): Add checked cast to rtx_code_label * when we know
26655 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
26657 (delete_insn_chain): Strengthen locals "prev" and "current" from
26658 rtx to rtx_insn *. Add a checked cast when assigning from
26659 "finish" (strengthening the params will come later). Add a
26660 checked cast to rtx_note * in region where we know
26662 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
26664 (compute_bb_for_insn): Likewise.
26665 (free_bb_for_insn): Likewise for local "insn".
26666 (compute_bb_for_insn): Likewise.
26667 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
26668 local "insn" from rtx to rtx_insn *
26669 (flow_active_insn_p): Require a const rtx_insn * rather than a
26671 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
26673 (can_fallthru): Likewise for locals "insn" and "insn2".
26674 (bb_note): Likewise for local "note".
26675 (first_insn_after_basic_block_note): Likewise for local "note" and
26677 (rtl_split_block): Likewise for locals "insn" and "next".
26678 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
26680 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
26681 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
26683 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
26684 them), "kill_from", "barrier", "new_insn".
26685 (patch_jump_insn): Likewise for params "insn", "old_label".
26686 (redirect_branch_edge): Likewise for locals "old_label", "insn".
26687 (force_nonfallthru_and_redirect): Likewise for locals "insn",
26688 "old_label", "new_label".
26689 (rtl_tidy_fallthru_edge): Likewise for local "q".
26690 (rtl_split_edge): Likewise for locals "before", "last".
26691 (commit_one_edge_insertion): Likewise for locals "before",
26692 "after", "insns", "tmp", "last", adding a checked cast where
26693 currently necessary.
26694 (commit_edge_insertions): Likewise.
26695 (rtl_dump_bb): Likewise for locals "insn", "last".
26696 (print_rtl_with_bb): Likewise for local "x".
26697 (rtl_verify_bb_insns): Likewise for local "x".
26698 (rtl_verify_bb_pointers): Likewise for local "insn".
26699 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
26701 (rtl_verify_fallthru): Likewise for local "insn".
26702 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
26703 (purge_dead_edges): Likewise for local "insn".
26704 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
26705 (skip_insns_after_block): Likewise for return type and for locals
26706 "insn", "last_insn", "next_head", "prev".
26707 (record_effective_endpoints): Likewise for locals "next_insn",
26709 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
26710 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
26711 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
26712 (duplicate_insn_chain): For now, add checked cast from rtx to
26713 rtx_insn * when returning insn.
26714 (cfg_layout_duplicate_bb): Likewise for local "insn".
26715 (cfg_layout_delete_block): Likewise for locals "insn", "next",
26716 "prev", "remaints".
26717 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
26718 (rtl_block_empty_p): Likewise.
26719 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
26720 "split_point", "last".
26721 (rtl_block_ends_with_call_p): Likewise for local "insn".
26722 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
26724 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
26725 "split_at_insn" from rtx to rtx_insn *.
26726 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
26727 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
26728 to const rtx_insn *.
26729 (rtl_account_profile_record): Likewise.
26731 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26733 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
26735 (average_num_loop_insns): Likewise.
26736 (init_set_costs): Likewise for local "seq".
26737 (seq_cost): Likewise for param "seq", from const_rtx to const
26740 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26742 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
26745 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26747 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
26748 "f1" and "f2" from rtx * to rtx_insn **.
26749 (flow_find_head_matching_sequence): Likewise.
26751 * cfgcleanup.c (try_simplify_condjump): Strengthen local
26752 "cbranch_insn" from rtx to rtx_insn *.
26753 (thread_jump): Likewise for local "insn".
26754 (try_forward_edges): Likewise for local "last".
26755 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
26756 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
26758 (can_replace_by): Likewise for params "i1", "i2".
26759 (old_insns_match_p): Likewise.
26760 (merge_notes): Likewise.
26761 (walk_to_nondebug_insn): Likewise for param "i1".
26762 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
26763 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
26764 "afterlast1", "afterlast2" from rtx to rtx_insn *.
26765 (flow_find_head_matching_sequence): Strengthen params "f1" and
26766 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
26767 "last1", "last2", "beforelast1", "beforelast2" from rtx to
26769 (outgoing_edges_match): Likewise for locals "last1", "last2".
26770 (try_crossjump_to_edge): Likewise for local "insn".
26771 Replace call to for_each_rtx with for_each_rtx_in_insn.
26773 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
26774 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
26775 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
26776 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
26777 (try_optimize_cfg): Strengthen local "last" from rtx to
26779 (delete_dead_jumptables): Likewise for locals "insn", "next",
26782 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
26783 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
26784 "rtx else_first_tail", to reflect the basic-block.h changes above.
26786 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26788 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
26790 (purge_dead_tablejump_edges): Likewise.
26791 (find_bb_boundaries): Likewise for locals "insn", "end",
26792 "flow_transfer_insn".
26794 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26796 * caller-save.c (save_call_clobbered_regs): Strengthen locals
26797 "ins" and "prev" from rtx to rtx_insn *.
26799 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26801 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
26803 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
26804 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
26806 (load_register_parameters): Likewise for local "before_arg".
26807 (check_sibcall_argument_overlap): Likewise for param "insn".
26808 (expand_call): Likewise for locals "normal_call_insns",
26809 "tail_call_insns", "insns", "before_call", "after_args",
26810 "before_arg", "last", "prev". Strengthen one of the "last" from
26811 rtx to rtx_call_insn *.
26812 (fixup_tail_calls): Strengthen local "insn" from rtx to
26814 (emit_library_call_value_1): Likewise for locals "before_call" and
26817 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26819 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
26820 and "last" from rtx to rtx_insn *.
26821 (expand_builtin_nonlocal_goto): Likewise for local "insn".
26822 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
26824 (expand_errno_check): Strengthen local "lab" from rtx to
26826 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
26828 (expand_builtin_mathfn_2): Likewise.
26829 (expand_builtin_mathfn_ternary): Likewise.
26830 (expand_builtin_mathfn_3): Likewise.
26831 (expand_builtin_interclass_mathfn): Likewise for local "last".
26832 (expand_builtin_int_roundingfn): Likewise for local "insns".
26833 (expand_builtin_int_roundingfn_2): Likewise.
26834 (expand_builtin_strlen): Likewise for local "before_strlen".
26835 (expand_builtin_strncmp): Likewise for local "seq".
26836 (expand_builtin_signbit): Likewise for local "last".
26837 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
26838 from rtx to rtx_code_label *.
26839 (expand_stack_restore): Strengthen local "prev" from rtx to
26842 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26844 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
26846 (struct btr_def_s): Likewise.
26847 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
26849 (add_btr_def): Likewise.
26850 (new_btr_user): Likewise.
26851 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
26853 (link_btr_uses): Likewise.
26854 (move_btr_def): Likewise for locals "insp", "old_insn",
26855 "new_insn". Add checked cast to rtx_insn * for now on result of
26857 (can_move_up): Strengthen param "insn" from const_rtx to
26860 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26862 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
26864 (get_uncond_jump_length): Likewise for locals "label", "jump".
26865 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
26867 (add_labels_and_missing_jumps): Likewise for local "new_jump".
26868 (fix_up_fall_thru_edges): Likewise for local "old_jump".
26869 (find_jump_block): Likewise for local "insn".
26870 (fix_crossing_conditional_branches): Likewise for locals
26871 "old_jump", "new_jump".
26872 (fix_crossing_unconditional_branches): Likewise for locals
26873 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
26874 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
26876 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26878 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
26880 (struct mem_insn): Likewise for field "insn".
26881 (reg_next_use): Strengthen from rtx * to rtx_insn **.
26882 (reg_next_inc_use): Likewise.
26883 (reg_next_def): Likewise.
26884 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
26885 from rtx to rtx_insn *.
26886 (move_insn_before): Likewise for param "next_insn" and local "insns".
26887 (attempt_change): Likewise for local "mov_insn".
26888 (try_merge): Likewise for param "last_insn".
26889 (get_next_ref): Likewise for return type and local "insn".
26890 Strengthen param "next_array" from rtx * to rtx_insn **.
26891 (parse_add_or_inc): Strengthen param "insn" from rtx to
26893 (find_inc): Likewise for locals "insn" and "other_insn" (three of
26895 (merge_in_block): Likewise for locals "insn", "curr",
26897 (pass_inc_dec::execute): Update allocations of the arrays to
26898 reflect the stronger types.
26900 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26902 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
26903 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
26904 from rtx to rtx_code_label *.
26906 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26908 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
26911 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26913 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
26914 generated a warning and prevented bootstrapping the compiler.
26916 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26918 * rtl.h (delete_related_insns): Strengthen return type from rtx to
26921 * jump.c (delete_related_insns): Likewise, also for locals "next"
26924 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26926 * genautomata.c (output_internal_insn_latency_func): When writing
26927 the function "internal_insn_latency" to insn-automata.c,
26928 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
26929 allowing the optional guard function of (define_bypass) clauses to
26930 expect a pair of rtx_insn *, rather than a pair of rtx.
26931 (output_insn_latency_func): When writing the function
26932 "insn_latency", add an "uncast_" prefix to params "insn" and
26933 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
26934 using checked casts from the params, thus enabling the above
26935 change to the generated "internal_insn_latency" function.
26937 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
26939 PR tree-optimization/62091
26940 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
26941 handle correctly arrays.
26942 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
26943 inheritance binfos.
26944 (record_known_type): Walk into inner type.
26945 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
26946 condition on no type changes.
26948 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26950 * genattrtab.c (write_attr_get): Within the generated get_attr_
26951 functions, rename param "insn" to "uncast_insn" and reintroduce
26952 "insn" as an local rtx_insn * using a checked cast, so that "insn"
26953 is an rtx_insn * within insn-attrtab.c
26955 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26957 * output.h (peephole): Strengthen return type from rtx to
26959 * rtl.h (delete_for_peephole): Likewise for both params.
26960 * genpeep.c (main): In generated "peephole" function, strengthen
26961 return type and local "insn" from rtx to rtx_insn *. For now,
26962 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
26963 rtx_insn *, with a checked cast.
26964 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
26965 locals "insn", "next", "prev" from rtx to rtx_insn *.
26967 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
26969 PR tree-optimization/62112
26970 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
26971 * gimple-iterator.h (gsi_replace): Return bool.
26972 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
26973 moved from ref_may_alias_global_p.
26974 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
26976 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
26977 (stmt_kills_ref_p_1): Rename...
26978 (stmt_kills_ref_p): ... to this.
26979 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
26980 stmt_kills_ref_p): Declare.
26981 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
26982 Move the self-assignment case...
26983 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
26985 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26987 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
26989 * emit-rtl.c (try_split): Likewise, also for locals "before" and
26990 "after". For now, don't strengthen param "trial", which requires
26991 adding checked casts when returning it.
26993 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26995 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
26996 "label" from rtx to rtx_code_label *. Strengthen param 1 of
26997 "var_location" hook from rtx to rtx_insn *.
26998 (debug_nothing_rtx): Delete in favor of...
26999 (debug_nothing_rtx_code_label): New prototype.
27000 (debug_nothing_rtx_rtx): Delete unused prototype.
27001 (debug_nothing_rtx_insn): New prototype.
27003 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
27004 invoking debug_hooks->var_location (in two places, one in a NOTE
27005 case of a switch statement, the other guarded by a CALL_P
27006 conditional. Add checked cast to rtx_code_label * when invoking
27007 debug_hooks->label (within CODE_LABEL case of switch statement).
27009 * dbxout.c (dbx_debug_hooks): Update "label" hook from
27010 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27011 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
27012 (xcoff_debug_hooks): Likewise.
27013 * debug.c (do_nothing_debug_hooks): Likewise.
27014 (debug_nothing_rtx): Delete in favor of...
27015 (debug_nothing_rtx_insn): New function.
27016 (debug_nothing_rtx_rtx): Delete unused function.
27017 (debug_nothing_rtx_code_label): New function.
27018 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
27019 debug_nothing_rtx to debug_nothing_rtx_code_label.
27020 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
27022 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
27023 debug_nothing_rtx to debug_nothing_rtx_insn.
27024 (sdbout_label): Strengthen param "insn" from rtx to
27026 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
27027 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27028 "var_location" hook from debug_nothing_rtx to
27029 debug_nothing_rtx_insn.
27031 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27033 * recog.h (insn_output_fn): Update this function typedef to match
27034 the changes below to the generated output functions, strengthening
27035 the 2nd param from rtx to rtx_insn *.
27037 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
27038 insn when invoking an output function, to match the new signature
27039 of insn_output_fn with a stronger second param.
27041 * genconditions.c (write_header): In the generated code for
27042 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
27043 to match the other changes in this patch.
27045 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
27046 the generated "gen_" functions from rtx to rtx_insn * within their
27049 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
27050 the subfunctions within the generated "recog_", "split", "peephole2"
27051 function trees from rtx to rtx_insn *. For now, the top-level
27052 generated functions ("recog", "split", "peephole2") continue to
27053 take a plain rtx for "insn", to avoid introducing dependencies on
27054 other patches. Rename this 2nd param from "insn" to
27055 "uncast_insn", and reintroduce "insn" as a local variable of type
27056 rtx_insn *, initialized at the top of the generated function with
27057 a checked cast on "uncast_insn".
27058 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
27059 the generated "gen_" functions from rtx to rtx_insn * within their
27062 * genoutput.c (process_template): Strengthen the 2nd param within
27063 the generated "output_" functions "insn" from rtx to rtx_insn *.
27065 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27067 * tree-profile.c (tree_profiling): Skip external functions
27068 when doing coverage instrumentation.
27069 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
27071 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27073 * config/rs6000/altivec.h (vec_cpsgn): New #define.
27074 (vec_mergee): Likewise.
27075 (vec_mergeo): Likewise.
27076 (vec_cntlz): Likewise.
27077 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
27078 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
27079 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
27080 VMRGEW, and VMRGOW.
27081 * doc/extend.texi: Document various forms of vec_cpsgn,
27082 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
27083 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
27084 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
27085 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
27086 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
27088 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27090 * config/rs6000/rs6000.c (context.h): New include.
27091 (tree-pass.h): Likewise.
27092 (make_pass_analyze_swaps): New decl.
27093 (rs6000_option_override): Register pass_analyze_swaps.
27094 (swap_web_entry): New subsclass of web_entry_base (df.h).
27095 (special_handling_values): New enum.
27096 (union_defs): New function.
27097 (union_uses): Likewise.
27098 (insn_is_load_p): Likewise.
27099 (insn_is_store_p): Likewise.
27100 (insn_is_swap_p): Likewise.
27101 (rtx_is_swappable_p): Likewise.
27102 (insn_is_swappable_p): Likewise.
27103 (chain_purpose): New enum.
27104 (chain_contains_only_swaps): New function.
27105 (mark_swaps_for_removal): Likewise.
27106 (swap_const_vector_halves): Likewise.
27107 (adjust_subreg_index): Likewise.
27108 (permute_load): Likewise.
27109 (permute_store): Likewise.
27110 (handle_special_swappables): Likewise.
27111 (replace_swap_with_copy): Likewise.
27112 (dump_swap_insn_table): Likewise.
27113 (rs6000_analyze_swaps): Likewise.
27114 (pass_data_analyze_swaps): New pass_data.
27115 (pass_analyze_swaps): New rtl_opt_pass.
27116 (make_pass_analyze_swaps): New function.
27117 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
27119 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27121 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
27122 type from rtx to rtx_insn *.
27123 (create_copy_of_insn_rtx): Likewise.
27124 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
27125 (create_copy_of_insn_rtx): Likewise, also for local "res".
27127 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27129 * rtl.h (find_first_parameter_load): Strengthen return type from
27131 * rtlanal.c (find_first_parameter_load): Strengthen return type
27132 from rtx to rtx_insn *. Add checked cast for now, to postpone
27133 strengthening the params.
27135 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27138 * diagnostic.c: Set default caret.
27139 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
27141 * diagnostic.h (struct diagnostic_context):
27143 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27145 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
27146 (sel_bb_head): Strengthen return type insn_t (currently just an
27147 rtx) to rtx_insn *.
27148 (sel_bb_end): Likewise.
27150 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
27151 (sel_bb_head): Strengthen return type and local "head" from
27152 insn_t (currently just an rtx) to rtx_insn *.
27153 (sel_bb_end): Likewise for return type.
27154 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
27157 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27159 * basic-block.h (get_last_bb_insn): Strengthen return type from
27161 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
27164 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27167 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
27169 (diagnostic_report_diagnostic): ... from here.
27170 * toplev.c (general_init): Move code to c-family.
27172 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27174 * df.h (web_entry_base): Replace existing struct web_entry with a
27175 new class web_entry_base with only the predecessor member.
27176 (unionfind_root): Remove declaration and move to class member.
27177 (unionfind_union): Remove declaration and move to friend
27179 (union_defs): Remove declaration.
27180 * web.c (web_entry_base::unionfind_root): Modify to be member
27181 function and adjust accessors.
27182 (unionfind_union): Modify to be friend function and adjust
27184 (web_entry): New subclass of web_entry_base containing the reg
27186 (union_match_dups): Modify for struct -> class changes.
27187 (union_defs): Likewise.
27188 (entry_register): Likewise.
27189 (pass_web::execute): Likewise.
27191 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
27193 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
27194 builtin define __VEC_ELEMENT_REG_ORDER__.
27196 2014-08-20 Martin Jambor <mjambor@suse.cz>
27197 Wei Mi <wmi@google.com>
27200 PR middle-end/61776
27201 * tree-ssa-operands.c (update_stmt_operands): Remove
27202 MODIFIED_NORETURN_CALLS.
27203 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
27204 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
27205 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
27206 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
27207 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
27208 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
27209 (gimple_call_set_ctrl_altering): New func.
27210 (gimple_call_ctrl_altering_p): Ditto.
27211 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
27212 (make_blocks): Use gimple_call_initialize_ctrl_altering.
27213 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
27214 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
27215 remove MODIFIED_NORETURN_CALLS.
27217 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27219 * coverage.c (coverage_compute_profile_id): Return non-0;
27220 also handle symbols with unique name.
27221 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
27223 2014-08-20 Steve Ellcey <sellcey@mips.com>
27225 PR middle-end/49191
27226 * doc/sourcebuild.texi (non_strict_align): New.
27228 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27230 * cgraphunit.c (ipa_passes, compile): Reshedule
27231 symtab_remove_unreachable_nodes passes; update comments.
27232 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
27233 TODO_remove_functions before the pass; the functions ought to be
27235 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
27236 TODO_remove_functions.
27237 * passes.c (pass_data_early_local_passes): Do not schedule function
27239 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
27241 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27244 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
27245 before setting the option.
27246 * diagnostic.c (diagnostic_classify_diagnostic): Record
27247 command-line status.
27249 2014-08-20 Richard Biener <rguenther@suse.de>
27252 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
27253 to build uint{16,32,64}_type_node.
27255 2014-08-20 Terry Guo <terry.guo@arm.com>
27257 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
27258 with immediate_operand.
27260 2014-08-20 David Malcolm <dmalcolm@redhat.com>
27262 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
27263 "insn" from an as_a to a safe_as_a, for the case when "insn" is
27266 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27268 PR preprocessor/51303
27269 * incpath.c (remove_duplicates): Use cpp_warning.
27271 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27275 * doc/options.texi (CPP): Document it.
27276 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
27277 * optc-gen.awk: Handle CPP.
27278 * opth-gen.awk: Likewise.
27280 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27282 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
27284 (duplicate_insn_chain): Likewise.
27285 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
27286 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
27287 checked cast for now (until we can strengthen the params in the
27289 (duplicate_insn_chain): Likewise.
27291 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27293 * rtl.h (next_cc0_user): Strengthen return type from rtx to
27295 (prev_cc0_setter): Likewise.
27297 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
27298 rtx_insn *, adding checked casts for now as necessary.
27299 (prev_cc0_setter): Likewise.
27301 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27303 * expr.h (emit_move_insn): Strengthen return type from rtx to
27305 (emit_move_insn_1): Likewise.
27306 (emit_move_complex_push): Likewise.
27307 (emit_move_complex_parts): Likewise.
27309 * expr.c (emit_move_via_integer): Strengthen return type from rtx
27310 to rtx_insn *. Replace use of NULL_RTX with NULL when working
27312 (emit_move_complex_push): Strengthen return type from rtx to
27314 (emit_move_complex): Likewise, also for local "ret".
27315 (emit_move_ccmode): Likewise.
27316 (emit_move_multi_word): Likewise for return type and locals
27317 "last_insn", "seq".
27318 (emit_move_insn_1): Likewise for return type and locals "result",
27320 (emit_move_insn): Likewise for return type and local "last_insn".
27321 (compress_float_constant): Likewise.
27323 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27325 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
27326 from rtx to rtx_insn *.
27328 * rtl.h (emit_insn_before): Likewise.
27329 (emit_insn_before_noloc): Likewise.
27330 (emit_insn_before_setloc): Likewise.
27331 (emit_jump_insn_before): Likewise.
27332 (emit_jump_insn_before_noloc): Likewise.
27333 (emit_jump_insn_before_setloc): Likewise.
27334 (emit_call_insn_before): Likewise.
27335 (emit_call_insn_before_noloc): Likewise.
27336 (emit_call_insn_before_setloc): Likewise.
27337 (emit_debug_insn_before): Likewise.
27338 (emit_debug_insn_before_noloc): Likewise.
27339 (emit_debug_insn_before_setloc): Likewise.
27340 (emit_label_before): Likewise.
27341 (emit_insn_after): Likewise.
27342 (emit_insn_after_noloc): Likewise.
27343 (emit_insn_after_setloc): Likewise.
27344 (emit_jump_insn_after): Likewise.
27345 (emit_jump_insn_after_noloc): Likewise.
27346 (emit_jump_insn_after_setloc): Likewise.
27347 (emit_call_insn_after): Likewise.
27348 (emit_call_insn_after_noloc): Likewise.
27349 (emit_call_insn_after_setloc): Likewise.
27350 (emit_debug_insn_after): Likewise.
27351 (emit_debug_insn_after_noloc): Likewise.
27352 (emit_debug_insn_after_setloc): Likewise.
27353 (emit_label_after): Likewise.
27354 (emit_insn): Likewise.
27355 (emit_debug_insn): Likewise.
27356 (emit_jump_insn): Likewise.
27357 (emit_call_insn): Likewise.
27358 (emit_label): Likewise.
27359 (gen_clobber): Likewise.
27360 (emit_clobber): Likewise.
27361 (gen_use): Likewise.
27362 (emit_use): Likewise.
27365 (emit_barrier_before): Strengthen return type from rtx to
27367 (emit_barrier_after): Likewise.
27368 (emit_barrier): Likewise.
27370 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
27371 from rtx to rtx_insn *. Add checked casts for now when converting
27372 "last" from rtx to rtx_insn *.
27373 (emit_insn_before_noloc): Likewise for return type.
27374 (emit_jump_insn_before_noloc): Likewise.
27375 (emit_call_insn_before_noloc): Likewise.
27376 (emit_debug_insn_before_noloc): Likewise.
27377 (emit_barrier_before): Strengthen return type and local "insn"
27378 from rtx to rtx_barrier *.
27379 (emit_label_before): Strengthen return type from rtx to
27380 rtx_insn *. Add checked cast for now when returning param
27381 (emit_pattern_after_noloc): Strengthen return type from rtx to
27382 rtx_insn *. Add checked casts for now when converting "last" from
27384 (emit_insn_after_noloc): Strengthen return type from rtx to
27386 (emit_jump_insn_after_noloc): Likewise.
27387 (emit_call_insn_after_noloc): Likewise.
27388 (emit_debug_insn_after_noloc): Likewise.
27389 (emit_barrier_after): Strengthen return type from rtx to
27391 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
27392 Add checked cast for now when converting "label" from rtx to
27394 (emit_pattern_after_setloc): Strengthen return type from rtx to
27395 rtx_insn *. Add checked casts for now when converting "last" from
27397 (emit_pattern_after): Strengthen return type from rtx to
27399 (emit_insn_after_setloc): Likewise.
27400 (emit_insn_after): Likewise.
27401 (emit_jump_insn_after_setloc): Likewise.
27402 (emit_jump_insn_after): Likewise.
27403 (emit_call_insn_after_setloc): Likewise.
27404 (emit_call_insn_after): Likewise.
27405 (emit_debug_insn_after_setloc): Likewise.
27406 (emit_debug_insn_after): Likewise.
27407 (emit_pattern_before_setloc): Likewise. Add checked casts for now
27408 when converting "last" from rtx to rtx_insn *.
27409 (emit_pattern_before): Strengthen return type from rtx to
27411 (emit_insn_before_setloc): Likewise.
27412 (emit_insn_before): Likewise.
27413 (emit_jump_insn_before_setloc): Likewise.
27414 (emit_jump_insn_before): Likewise.
27415 (emit_call_insn_before_setloc): Likewise.
27416 (emit_call_insn_before): Likewise.
27417 (emit_debug_insn_before_setloc): Likewise.
27418 (emit_debug_insn_before): Likewise.
27419 (emit_insn): Strengthen return type and locals "last", "insn",
27420 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
27421 within cases where we know we have an insn.
27422 (emit_debug_insn): Likewise.
27423 (emit_jump_insn): Likewise.
27424 (emit_call_insn): Strengthen return type and local "insn" from rtx
27426 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
27427 a checked cast to rtx_insn * for now on "label".
27428 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
27429 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
27430 (emit_use): Likewise.
27431 (gen_use): Likewise, also for local "seq".
27432 (emit): Likewise for return type and local "insn".
27433 (rtx_insn): Likewise for return type and local "new_rtx".
27435 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
27436 from rtx to rtx_barrier *.
27438 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
27439 changed return type from rtx to rtx_insn *, we must update
27440 "emit_fn" type, and this in turn means updating...
27441 (frame_insn): ...this. Strengthen return type from rtx to
27442 rtx_insn *. Introduce a new local "insn" of the appropriate type.
27444 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27446 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
27447 rtx to rtx_jump_table_data *. Also for local.
27448 * rtl.h (emit_jump_table_data): Likewise.
27450 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27452 * basic-block.h (create_basic_block_structure): Strengthen third
27453 param "bb_note" from rtx to rtx_note *.
27454 * rtl.h (emit_note_before): Strengthen return type from rtx to
27456 (emit_note_after): Likewise.
27457 (emit_note): Likewise.
27458 (emit_note_copy): Likewise. Also, strengthen param similarly.
27459 * function.h (struct rtl_data): Strengthen field
27460 "x_stack_check_probe_note" from rtx to rtx_note *.
27462 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
27463 from rtx to rtx_note *.
27464 * cfgrtl.c (create_basic_block_structure): Strengthen third param
27465 "bb_note" from rtx to rtx_note *.
27466 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
27467 when calling emit_note_copy.
27468 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
27470 (emit_note_after): Likewise.
27471 (emit_note_before): Likewise.
27472 (emit_note_copy): Likewise. Also, strengthen param similarly.
27473 (emit_note): Likewise.
27474 * except.c (emit_note_eh_region_end): Likewise for return type.
27475 Strengthen local "next" from rtx to rtx_insn *.
27476 (convert_to_eh_region_ranges): Strengthen local "note"
27477 from rtx to rtx_note *.
27478 * final.c (change_scope): Likewise.
27479 (reemit_insn_block_notes): Likewise, for both locals named "note".
27480 Also, strengthen local "insn" from rtx to rtx_insn *.
27481 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
27483 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
27484 strengthen local "seq" from rtx to rtx_insn *.
27485 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
27487 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
27489 (get_bb_note_from_pool): Strengthen return type from rtx to
27491 (sel_create_basic_block): Strengthen local "new_bb_note" from
27492 insn_t to rtx_note *.
27493 * var-tracking.c (emit_note_insn_var_location): Strengthen local
27494 "note" from rtx to rtx_note *.
27495 (emit_notes_in_bb): Likewise.
27497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27499 * function.h (struct rtl_data): Strengthen field
27500 "x_parm_birth_insn" from rtx to rtx_insn *.
27501 * function.c (struct assign_parm_data_all): Strengthen fields
27502 "first_conversion_insn" and "last_conversion_insn" from rtx to
27505 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27507 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
27508 to rtx_insn *; also for local "var_end_seq".
27509 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
27510 (maybe_cleanup_end_of_block): Likewise for param "last" and local
27512 (expand_gimple_cond): Likewise for locals "last2" and "last".
27513 (mark_transaction_restart_calls): Likewise for local "insn".
27514 (expand_gimple_stmt): Likewise for return type and locals "last"
27516 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
27517 (avoid_complex_debug_insns): Likewise for param "insn".
27518 (expand_debug_locations): Likewise for locals "insn", "last",
27519 "prev_insn" and "insn2".
27520 (expand_gimple_basic_block): Likewise for local "last".
27521 (construct_exit_block): Likewise for locals "head", "end",
27523 (pass_expand::execute): Likewise for locals "var_seq",
27524 "var_ret_seq", "next".
27526 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27528 * asan.h (asan_emit_stack_protection): Strengthen return type from
27530 * asan.c (asan_emit_stack_protection): Likewise. Add local
27531 "insns" to hold the return value.
27533 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27535 * basic-block.h (bb_note): Strengthen return type from rtx to
27537 * sched-int.h (bb_note): Likewise.
27538 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
27540 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27542 * rtl.h (make_insn_raw): Strengthen return type from rtx to
27545 * emit-rtl.c (make_insn_raw): Strengthen return type and local
27546 "insn" from rtx to rtx_insn *.
27547 (make_debug_insn_raw): Strengthen return type from rtx to
27548 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
27549 (make_jump_insn_raw): Strengthen return type from rtx to
27550 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
27551 (make_call_insn_raw): Strengthen return type from rtx to
27552 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
27553 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
27554 callback from rtx to rtx_insn *; likewise for local "insn" and
27555 "next", adding a checked cast to rtx_insn in the relevant cases of
27556 the switch statement.
27557 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
27558 callback from rtx to rtx_insn *.
27559 (emit_pattern_after_setloc): Likewise.
27560 (emit_pattern_after): Likewise.
27561 (emit_pattern_before_setloc): Likewise.
27562 (emit_pattern_before): Likewise.
27564 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27566 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
27568 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
27569 accepting an rtx_insn *.
27570 (last_call_insn): Strengthen return type from rtx to
27573 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27575 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
27576 "insns" from rtx to rtx_insn *.
27577 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
27578 locals "insn" and "prev".
27580 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27582 * rtl.h (tablejump_p): Strengthen third param from rtx * to
27583 rtx_jump_table_data **.
27585 * cfgbuild.c (make_edges): Introduce local "table", using it in
27586 place of "tmp" for jump table data.
27587 (find_bb_boundaries): Strengthen local "table" from rtx to
27588 rtx_jump_table_data *.
27589 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27590 (outgoing_edges_match): Likewise for locals "table1" and "table2".
27591 (try_crossjump_to_edge): Likewise.
27592 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
27594 (patch_jump_insn): Introduce local "table", using it in place of
27595 "tmp" for jump table data.
27596 (force_nonfallthru_and_redirect): Introduce local "table", so that
27597 call to tablejump_p can receive an rtx_jump_table_data **. Update
27598 logic around the call to overwrite "note" appropriately if
27599 tablejump_p returns non-zero.
27600 (get_last_bb_insn): Introduce local "table", using it in place of
27601 "tmp" for jump table data.
27602 * dwarf2cfi.c (create_trace_edges): Likewise.
27604 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
27605 from rtx to rtx_jump_table_data *.
27606 (create_fix_barrier): Strengthen local "tmp" from rtx to
27607 rtx_jump_table_data *.
27608 (arm_reorg): Likewise for local "table".
27610 * config/s390/s390.c (s390_chunkify_start): Likewise.
27612 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
27614 * jump.c (delete_related_insns): Strengthen local "lab_next" from
27615 rtx to rtx_jump_table_data *.
27617 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
27618 rtx_jump_table_data **. Add a checked cast when writing through
27619 the pointer: we know there that local "table" is non-NULL and that
27620 JUMP_TABLE_DATA_P (table) holds.
27621 (label_is_jump_target_p): Introduce local "table", using it in
27622 place of "tmp" for jump table data.
27624 2014-08-19 Marek Polacek <polacek@redhat.com>
27627 * doc/invoke.texi: Document -Wbool-compare.
27629 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27631 * rtl.h (entry_of_function): Strengthen return type from rtx to
27633 * cfgrtl.c (entry_of_function): Likewise.
27635 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27637 * emit-rtl.h (get_insns): Strengthen return type from rtx to
27638 rtx_insn *, adding a checked cast for now.
27639 (get_last_insn): Likewise.
27641 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27643 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
27646 * emit-rtl.c (gen_label_rtx): Likewise.
27648 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27650 * rtl.h (previous_insn): Strengthen return type from rtx to
27652 (next_insn): Likewise.
27653 (prev_nonnote_insn): Likewise.
27654 (prev_nonnote_insn_bb): Likewise.
27655 (next_nonnote_insn): Likewise.
27656 (next_nonnote_insn_bb): Likewise.
27657 (prev_nondebug_insn): Likewise.
27658 (next_nondebug_insn): Likewise.
27659 (prev_nonnote_nondebug_insn): Likewise.
27660 (next_nonnote_nondebug_insn): Likewise.
27661 (prev_real_insn): Likewise.
27662 (next_real_insn): Likewise.
27663 (prev_active_insn): Likewise.
27664 (next_active_insn): Likewise.
27666 * emit-rtl.c (next_insn): Strengthen return type from rtx to
27667 rtx_insn *, adding a checked cast.
27668 (previous_insn): Likewise.
27669 (next_nonnote_insn): Likewise.
27670 (next_nonnote_insn_bb): Likewise.
27671 (prev_nonnote_insn): Likewise.
27672 (prev_nonnote_insn_bb): Likewise.
27673 (next_nondebug_insn): Likewise.
27674 (prev_nondebug_insn): Likewise.
27675 (next_nonnote_nondebug_insn): Likewise.
27676 (prev_nonnote_nondebug_insn): Likewise.
27677 (next_real_insn): Likewise.
27678 (prev_real_insn): Likewise.
27679 (next_active_insn): Likewise.
27680 (prev_active_insn): Likewise.
27682 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
27683 param "stepfunc" so that it returns an rtx_insn * rather than an
27684 rtx, to track the change to prev_nonnote_insn_bb, which is the
27685 only function this is called with.
27686 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
27688 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
27690 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
27693 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27695 * coretypes.h (class rtx_debug_insn): Add forward declaration.
27696 (class rtx_nonjump_insn): Likewise.
27697 (class rtx_jump_insn): Likewise.
27698 (class rtx_call_insn): Likewise.
27699 (class rtx_jump_table_data): Likewise.
27700 (class rtx_barrier): Likewise.
27701 (class rtx_code_label): Likewise.
27702 (class rtx_note): Likewise.
27704 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
27705 adding the invariant DEBUG_INSN_P (X).
27706 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
27707 the invariant NONJUMP_INSN_P (X).
27708 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
27709 the invariant JUMP_P (X).
27710 (class rtx_call_insn): New, a subclass of rtx_insn, adding
27711 the invariant CALL_P (X).
27712 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
27713 invariant JUMP_TABLE_DATA_P (X).
27714 (class rtx_barrier): New, a subclass of rtx_insn, adding the
27715 invariant BARRIER_P (X).
27716 (class rtx_code_label): New, a subclass of rtx_insn, adding
27717 the invariant LABEL_P (X).
27718 (class rtx_note): New, a subclass of rtx_insn, adding
27719 the invariant NOTE_P(X).
27720 (is_a_helper <rtx_debug_insn *>::test): New.
27721 (is_a_helper <rtx_nonjump_insn *>::test): New.
27722 (is_a_helper <rtx_jump_insn *>::test): New.
27723 (is_a_helper <rtx_call_insn *>::test): New.
27724 (is_a_helper <rtx_jump_table_data *>::test): New functions,
27725 overloaded for both rtx and rtx_insn *.
27726 (is_a_helper <rtx_barrier *>::test): New.
27727 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
27728 for both rtx and rtx_insn *.
27729 (is_a_helper <rtx_note *>::test): New.
27731 2014-08-19 Marek Polacek <polacek@redhat.com>
27733 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
27734 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27735 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
27736 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27738 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27740 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
27741 rtx_insn *. To help with transition, for now, convert from an
27742 access macro into a pair of functions: BND_TO, returning an
27744 (SET_BND_TO): New function, for use where BND_TO is used as an
27747 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
27749 (BND_TO): New function, adding a checked cast.
27750 (SET_BND_TO): New function.
27752 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
27754 (compute_av_set_on_boundaries): Likewise.
27756 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27758 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
27759 destination if it is used in source.
27760 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
27761 (*popcount<mode>2_falsedep_1): Likewise.
27763 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27766 * configure.ac: Set install_gold_as_default to no first.
27767 * configure: Regenerated.
27769 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27771 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
27772 "note_list" field will eventually be an rtx_insn *. To help with
27773 transition, for now, convert from an access macro into a pair of
27774 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
27775 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
27778 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
27779 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
27781 * sel-sched-ir.c (init_bb): Likewise.
27782 (sel_restore_notes): Likewise.
27783 (move_bb_info): Likewise.
27784 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
27785 (SET_BB_NOTE_LIST): New function.
27787 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27789 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
27790 field will eventually be an rtx_insn *. To help with transition,
27791 for now, convert from an access macro into a pair of functions:
27792 VINSN_INSN_RTX, returning an rtx_insn *, and...
27793 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
27794 is used as an lvalue.
27796 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
27797 SET_VINSN_INSN_RTX where it's used as an lvalue.
27798 (VINSN_INSN_RTX): New function.
27799 (SET_VINSN_INSN_RTX): New function.
27801 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27803 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
27804 eventually be rtx_insn *, but to help with transition, for now,
27805 convert from an access macro into a pair of functions: DEP_PRO
27806 returning an rtx_insn * and...
27807 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
27808 lvalue, returning an rtx&.
27809 (DEP_CON): Analogous changes to DEP_PRO above.
27810 (SET_DEP_CON): Likewise.
27812 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
27813 an lvalue to SET_DEP_CON.
27814 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
27815 (sd_copy_back_deps): Likewise for DEP_CON.
27816 (DEP_PRO): New function, adding a checked cast for now.
27817 (DEP_CON): Likewise.
27818 (SET_DEP_PRO): New function.
27819 (SET_DEP_CON): Likewise.
27821 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27823 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
27824 (extra_options): Add i386/cygwin.opt.
27825 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
27826 (CPP_SPEC): Accept -pthread.
27827 (LINK_SPEC): Ditto.
27828 (GOMP_SELF_SPECS): Update comment.
27829 * config/i386/cygwin.opt: New file for -pthread flag.
27831 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27833 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
27834 * df.h (DF_REF_INSN): Convert from a macro to a function, so
27835 that we can return an rtx_insn *.
27837 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27839 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
27840 when building executables, not DLLs. Add --large-address-aware
27841 under the same conditions.
27842 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
27843 when building executables, not DLLs. Add --large-address-aware
27844 under the same conditions when using -m32.
27846 * config/i386/cygwin-stdint.h: Throughout, make type
27847 definitions dependent on target architecture, not host.
27849 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27851 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
27852 the return type from rtx to rtx_insn *, which will enable various
27853 conversions in followup patches. For now this is is done by a
27855 (NEXT_INSN): Likewise.
27856 (SET_PREV_INSN): Convert to an inline function. This is intended
27857 for use as an lvalue, and so returns an rtx& to allow in-place
27859 (SET_NEXT_INSN): Likewise.
27861 2014-07-08 Mark Wielaard <mjw@redhat.com>
27864 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
27866 2014-08-19 Marek Polacek <polacek@redhat.com>
27869 * cgraphunit.c (handle_alias_pairs): Fix condition.
27871 2014-08-19 Richard Biener <rguenther@suse.de>
27873 * gimple-fold.c (fold_gimple_assign): Properly build a
27874 null-pointer constant when devirtualizing addresses.
27876 2014-07-07 Mark Wielaard <mjw@redhat.com>
27878 * dwarf2out.c (decl_quals): New function.
27879 (modified_type_die): Take one cv_quals argument instead of two,
27880 one for const and one for volatile.
27881 (add_type_attribute): Likewise.
27882 (generic_parameter_die): Call add_type_attribute with one modifier
27884 (base_type_for_mode): Likewise.
27885 (add_bounds_info): Likewise.
27886 (add_subscript_info): Likewise.
27887 (gen_array_type_die): Likewise.
27888 (gen_descr_array_type_die): Likewise.
27889 (gen_entry_point_die): Likewise.
27890 (gen_enumeration_type_die): Likewise.
27891 (gen_formal_parameter_die): Likewise.
27892 (gen_subprogram_die): Likewise.
27893 (gen_variable_die): Likewise.
27894 (gen_const_die): Likewise.
27895 (gen_field_die): Likewise.
27896 (gen_pointer_type_die): Likewise.
27897 (gen_reference_type_die): Likewise.
27898 (gen_ptr_to_mbr_type_die): Likewise.
27899 (gen_inheritance_die): Likewise.
27900 (gen_subroutine_type_die): Likewise.
27901 (gen_typedef_die): Likewise.
27902 (force_type_die): Likewise.
27904 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27906 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
27908 * configure: Regenerate.
27910 2014-08-19 Richard Biener <rguenther@suse.de>
27912 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
27913 DECL_EXTERNALs in BLOCKs as non-references.
27914 * tree-streamer-out.c (streamer_write_chain): Likewise.
27916 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
27917 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27918 Anna Tikhonova <anna.tikhonova@intel.com>
27919 Ilya Tocar <ilya.tocar@intel.com>
27920 Andrey Turetskiy <andrey.turetskiy@intel.com>
27921 Ilya Verbin <ilya.verbin@intel.com>
27922 Kirill Yukhin <kirill.yukhin@intel.com>
27923 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27925 * config/i386/sse.md
27926 (define_mode_iterator VI48_AVX512F): Delete.
27927 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
27928 (define_mode_iterator VI2_AVX512VL): Ditto.
27929 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
27932 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
27934 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
27935 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
27936 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27937 with VI48_AVX512F_AVX512VL): New.
27938 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27939 with VI2_AVX512VL): Ditto.
27941 2014-08-19 Marek Polacek <polacek@redhat.com>
27943 * doc/invoke.texi: Document -Wc99-c11-compat.
27945 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27947 * rtl.h (PREV_INSN): Split macro in two: the existing one,
27948 for rvalues, and...
27949 (SET_PREV_INSN): New macro, for use as an lvalue.
27950 (NEXT_INSN, SET_NEXT_INSN): Likewise.
27952 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
27953 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
27954 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
27955 (fixup_abnormal_edges): Likewise.
27956 (unlink_insn_chain): Likewise.
27957 (fixup_reorder_chain): Likewise.
27958 (cfg_layout_delete_block): Likewise.
27959 (cfg_layout_merge_blocks): Likewise.
27960 * combine.c (update_cfg_for_uncondjump): Likewise.
27961 * emit-rtl.c (link_insn_into_chain): Likewise.
27962 (remove_insn): Likewise.
27963 (delete_insns_since): Likewise.
27964 (reorder_insns_nobb): Likewise.
27965 (emit_insn_after_1): Likewise.
27966 * final.c (rest_of_clean_state): Likewise.
27967 (final_scan_insn): Likewise.
27968 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
27969 * haifa-sched.c (concat_note_lists): Likewise.
27970 (remove_notes): Likewise.
27971 (restore_other_notes): Likewise.
27972 (move_insn): Likewise.
27973 (unlink_bb_notes): Likewise.
27974 (restore_bb_notes): Likewise.
27975 * jump.c (delete_for_peephole): Likewise.
27976 * optabs.c (emit_libcall_block_1): Likewise.
27977 * reorg.c (emit_delay_sequence): Likewise.
27978 (fill_simple_delay_slots): Likewise.
27979 * sel-sched-ir.c (sel_move_insn): Likewise.
27980 (sel_remove_insn): Likewise.
27981 (get_bb_note_from_pool): Likewise.
27982 * sel-sched.c (move_nop_to_previous_block): Likewise.
27984 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
27985 * config/c6x/c6x.c (gen_one_bundle): Likewise.
27986 (c6x_gen_bundles): Likewise.
27987 (hwloop_optimize): Likewise.
27988 * config/frv/frv.c (frv_function_prologue): Likewise.
27989 (frv_register_nop): Likewise.
27990 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
27991 (ia64_reorg): Likewise.
27992 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
27993 (mep_make_bundle): Likewise.
27994 (mep_bundle_insns): Likewise.
27995 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
27996 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
27997 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
27999 2014-08-19 David Malcolm <dmalcolm@redhat.com>
28001 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
28002 return type from rtx to rtx_insn *.
28003 (BB_END): Likewise.
28004 (BB_HEADER): Likewise.
28005 (BB_FOOTER): Likewise.
28006 (SET_BB_HEAD): Convert to a function.
28007 (SET_BB_END): Likewise.
28008 (SET_BB_HEADER): Likewise.
28009 (SET_BB_FOOTER): Likewise.
28011 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
28012 Strengthen the return type from rtx to rtx_insn *. For now, this
28013 is done by adding a checked cast, but this will eventually
28014 become a field lookup.
28015 (BB_END): Likewise.
28016 (BB_HEADER): Likewise.
28017 (BB_FOOTER): Likewise.
28018 (SET_BB_HEAD): New function, from macro of same name. This is
28019 intended for use as an lvalue, and so returns an rtx& to allow
28020 in-place modification.
28021 (SET_BB_END): Likewise.
28022 (SET_BB_HEADER): Likewise.
28023 (SET_BB_FOOTER): Likewise.
28025 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28027 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
28028 for rvalues, and...
28029 (SET_BB_HEAD): New macro, for use as a lvalue.
28030 (BB_END, SET_BB_END): Likewise.
28031 (BB_HEADER, SET_BB_HEADER): Likewise.
28032 (BB_FOOTER, SET_BB_FOOTER): Likewise.
28034 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
28035 of BB_* macros into SET_BB_* macros.
28036 (fix_crossing_unconditional_branches): Likewise.
28037 * caller-save.c (save_call_clobbered_regs): Likewise.
28038 (insert_one_insn): Likewise.
28039 * cfgbuild.c (find_bb_boundaries): Likewise.
28040 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
28041 (outgoing_edges_match): Likewise.
28042 (try_optimize_cfg): Likewise.
28043 * cfgexpand.c (expand_gimple_cond): Likewise.
28044 (expand_gimple_tailcall): Likewise.
28045 (expand_gimple_basic_block): Likewise.
28046 (construct_exit_block): Likewise.
28047 * cfgrtl.c (delete_insn): Likewise.
28048 (create_basic_block_structure): Likewise.
28049 (rtl_delete_block): Likewise.
28050 (rtl_split_block): Likewise.
28051 (emit_nop_for_unique_locus_between): Likewise.
28052 (rtl_merge_blocks): Likewise.
28053 (block_label): Likewise.
28054 (try_redirect_by_replacing_jump): Likewise.
28055 (emit_barrier_after_bb): Likewise.
28056 (fixup_abnormal_edges): Likewise.
28057 (record_effective_endpoints): Likewise.
28058 (relink_block_chain): Likewise.
28059 (fixup_reorder_chain): Likewise.
28060 (fixup_fallthru_exit_predecessor): Likewise.
28061 (cfg_layout_duplicate_bb): Likewise.
28062 (cfg_layout_split_block): Likewise.
28063 (cfg_layout_delete_block): Likewise.
28064 (cfg_layout_merge_blocks): Likewise.
28065 * combine.c (update_cfg_for_uncondjump): Likewise.
28066 * emit-rtl.c (add_insn_after): Likewise.
28067 (remove_insn): Likewise.
28068 (reorder_insns): Likewise.
28069 (emit_insn_after_1): Likewise.
28070 * haifa-sched.c (get_ebb_head_tail): Likewise.
28071 (restore_other_notes): Likewise.
28072 (move_insn): Likewise.
28073 (sched_extend_bb): Likewise.
28074 (fix_jump_move): Likewise.
28075 * ifcvt.c (noce_process_if_block): Likewise.
28076 (dead_or_predicable): Likewise.
28077 * ira.c (update_equiv_regs): Likewise.
28078 * reg-stack.c (change_stack): Likewise.
28079 * sel-sched-ir.c (sel_move_insn): Likewise.
28080 * sel-sched.c (move_nop_to_previous_block): Likewise.
28082 * config/c6x/c6x.c (hwloop_optimize): Likewise.
28083 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
28085 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28087 * rtl.h (for_each_rtx_in_insn): New function.
28088 * rtlanal.c (for_each_rtx_in_insn): Likewise.
28090 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28092 * coretypes.h (class rtx_insn): Add forward declaration.
28094 * rtl.h: Include is-a.h.
28095 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
28096 workaround to ensure gengtype knows inheritance is occurring,
28097 whilst continuing to use the pre-existing special-casing for
28099 (class rtx_insn): New subclass of rtx_def, adding the
28100 invariant that we're dealing with something we can sanely use
28101 INSN_UID, NEXT_INSN, PREV_INSN on.
28102 (is_a_helper <rtx_insn *>::test): New.
28103 (is_a_helper <const rtx_insn *>::test): New.
28105 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28107 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
28109 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28111 * ipa-visibility.c (update_visibility_by_resolution_info): Do no
28112 turn UNDEF comdats as extern.
28114 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28116 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
28117 to BUILT_IN_UNREACHABLE.
28119 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
28122 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
28124 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
28125 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
28126 (ffs<mode>2): Do not expand with tzcnt for
28127 TARGET_AVOID_FALSE_DEP_FOR_BMI.
28128 (ffssi2_no_cmove): Ditto.
28129 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
28130 (ctz<mode>2): New expander.
28131 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
28132 (*ctz<mode>2_falsedep): New insn.
28133 (*ctz<mode>2): Rename from ctz<mode>2.
28134 (clz<mode>2_lzcnt): New expander.
28135 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
28136 (*clz<mode>2_lzcnt_falsedep): New insn.
28137 (*clz<mode>2): Rename from ctz<mode>2.
28138 (popcount<mode>2): New expander.
28139 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
28140 (*popcount<mode>2_falsedep): New insn.
28141 (*popcount<mode>2): Rename from ctz<mode>2.
28142 (*popcount<mode>2_cmp): Remove.
28143 (*popcountsi2_cmp_zext): Ditto.
28145 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
28147 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
28148 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
28149 * config/microblaze/microblaze.h
28150 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
28152 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
28155 * configure.ac: Set install_gold_as_default to no for
28157 * configure: Regenerated.
28159 2014-08-18 Roman Gareev <gareevroman@gmail.com>
28161 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
28162 * config.in: Add undef of HAVE_isl.
28163 * configure: Regenerate.
28164 * configure.ac: Add definition of HAVE_isl.
28165 * graphite-blocking.c: Add checking of HAVE_isl.
28166 * graphite-dependences.c: Likewise.
28167 * graphite-interchange.c: Likewise.
28168 * graphite-isl-ast-to-gimple.c: Likewise.
28169 * graphite-optimize-isl.c: Likewise.
28170 * graphite-poly.c: Likewise.
28171 * graphite-scop-detection.c: Likewise.
28172 * graphite-sese-to-poly.c: Likewise.
28173 * graphite.c: Likewise.
28174 * toplev.c: Replace the checking of HAVE_cloog with the checking
28177 2014-08-18 Richard Biener <rguenther@suse.de>
28179 PR tree-optimization/62090
28180 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
28181 (fold_builtin_3): Do not fold snprintf.
28182 (fold_builtin_4): Likewise.
28183 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
28184 moved from builtins.c.
28185 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
28186 (gimple_fold_builtin): Do not fold sprintf here.
28188 2014-08-18 Richard Biener <rguenther@suse.de>
28190 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
28192 (maybe_canonicalize_mem_ref_addr): ... this function.
28193 (fold_stmt_1): Apply it here before all simplification.
28195 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
28198 * cgraph.h (cgraph_node::create_indirect_edge): Add
28199 compute_indirect_info param.
28200 * cgraph.c (cgraph_node::create_indirect_edge): Compute
28201 indirect_info only when it is required.
28202 * cgraphclones.c (cgraph_clone_edge): Do not recompute
28203 indirect_info fore cloned indirect edge.
28205 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28206 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28207 Anna Tikhonova <anna.tikhonova@intel.com>
28208 Ilya Tocar <ilya.tocar@intel.com>
28209 Andrey Turetskiy <andrey.turetskiy@intel.com>
28210 Ilya Verbin <ilya.verbin@intel.com>
28211 Kirill Yukhin <kirill.yukhin@intel.com>
28212 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28214 * config/i386/sse.md
28215 (define_mode_iterator VI8_AVX2_AVX512BW): New.
28216 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
28218 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28220 Anna Tikhonova <anna.tikhonova@intel.com>
28221 Ilya Tocar <ilya.tocar@intel.com>
28222 Andrey Turetskiy <andrey.turetskiy@intel.com>
28223 Ilya Verbin <ilya.verbin@intel.com>
28224 Kirill Yukhin <kirill.yukhin@intel.com>
28225 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28227 * config/i386/sse.md
28228 (define_mode_iterator VF1_AVX512VL): New.
28229 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
28230 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
28233 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28234 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28235 Anna Tikhonova <anna.tikhonova@intel.com>
28236 Ilya Tocar <ilya.tocar@intel.com>
28237 Andrey Turetskiy <andrey.turetskiy@intel.com>
28238 Ilya Verbin <ilya.verbin@intel.com>
28239 Kirill Yukhin <kirill.yukhin@intel.com>
28240 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28242 * config/i386/i386.c: Rename ufloatv8siv8df_mask to
28243 ufloatv8siv8df2_mask.
28244 * config/i386/i386.md
28245 (define_code_iterator any_float): New.
28246 (define_code_attr floatsuffix): New.
28247 * config/i386/sse.md
28248 (define_mode_iterator VF1_128_256VL): New.
28249 (define_mode_iterator VF2_512_256VL): New.
28250 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove
28251 unnecessary TARGET check.
28252 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
28253 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
28255 (define_mode_attr qq2pssuff): New.
28256 (define_mode_attr sselongvecmode): New.
28257 (define_mode_attr sselongvecmodelower): New.
28258 (define_mode_attr sseintvecmode3): New.
28259 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
28261 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
28262 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
28263 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
28264 (define_insn "ufloatv2siv2df2<mask_name>"): New.
28266 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28267 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28268 Anna Tikhonova <anna.tikhonova@intel.com>
28269 Ilya Tocar <ilya.tocar@intel.com>
28270 Andrey Turetskiy <andrey.turetskiy@intel.com>
28271 Ilya Verbin <ilya.verbin@intel.com>
28272 Kirill Yukhin <kirill.yukhin@intel.com>
28273 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28275 * config/i386/sse.md
28276 (define_mode_iterator VF2_AVX512VL): New.
28277 (define_mode_attr sseintvecmode2): New.
28278 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
28279 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
28280 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
28282 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
28284 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28286 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28289 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28291 Anna Tikhonova <anna.tikhonova@intel.com>
28292 Ilya Tocar <ilya.tocar@intel.com>
28293 Andrey Turetskiy <andrey.turetskiy@intel.com>
28294 Ilya Verbin <ilya.verbin@intel.com>
28295 Kirill Yukhin <kirill.yukhin@intel.com>
28296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28298 * config/i386/i386.md
28299 (define_insn "*movoi_internal_avx"): Add evex version.
28300 (define_insn "*movti_internal"): Ditto.
28302 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28304 Anna Tikhonova <anna.tikhonova@intel.com>
28305 Ilya Tocar <ilya.tocar@intel.com>
28306 Andrey Turetskiy <andrey.turetskiy@intel.com>
28307 Ilya Verbin <ilya.verbin@intel.com>
28308 Kirill Yukhin <kirill.yukhin@intel.com>
28309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28311 * config/i386/i386.md
28312 (define_attr "isa"): Add avx512dq, noavx512dq.
28313 (define_attr "enabled"): Ditto.
28314 * config/i386/sse.md
28315 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
28317 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28318 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28319 Anna Tikhonova <anna.tikhonova@intel.com>
28320 Ilya Tocar <ilya.tocar@intel.com>
28321 Andrey Turetskiy <andrey.turetskiy@intel.com>
28322 Ilya Verbin <ilya.verbin@intel.com>
28323 Kirill Yukhin <kirill.yukhin@intel.com>
28324 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28326 * config/i386/i386.c
28327 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
28328 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
28329 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
28330 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
28331 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
28332 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
28333 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
28334 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
28335 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
28336 * config/i386/sse.md
28337 (define_mode_iterator VMOVE): Allow V4TI mode.
28338 (define_mode_iterator V_AVX512VL): New.
28339 (define_mode_iterator V): New handling for AVX512VL.
28340 (define_insn "avx512f_load<mode>_mask"): Delete.
28341 (define_insn "<avx512>_load<mode>_mask"): New.
28342 (define_insn "avx512f_store<mode>_mask"): Delete.
28343 (define_insn "<avx512>_store<mode>_mask"): New.
28346 2014-08-18 Yury Gribov <y.gribov@samsung.com>
28349 * asan.c (instrument_derefs): Fix bitfield check.
28351 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28353 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
28354 * config/rs6000/htm.md (ttest): Remove clobber.
28355 * config/rs6000/predicates.md (any_mask_operand): New predicate.
28356 (and_operand): Reformat.
28357 (and_2rld_operand): New predicate.
28358 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
28360 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
28361 parameter. Handle AND directly.
28362 (rs6000_split_logical_di): Remove last parameter.
28363 (rs6000_split_logical): Remove last parameter. Remove obsolete
28365 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
28366 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
28367 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
28368 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
28369 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
28370 and 5 anonymous splitters): Delete.
28371 (and<mode>3): New expander.
28372 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
28373 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
28374 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
28375 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
28376 (floatdisf2_internal1): Remove clobbers.
28377 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
28378 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
28379 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
28380 (and<mode>3 for BOOL_128): Remove clobber.
28381 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
28382 rs6000_split_logical.
28383 (*bool<mode>3_internal for BOOL_128): Adjust call of
28384 rs6000_split_logical.
28385 (*boolc<mode>3_internal1 for BOOL_128,
28386 *boolc<mode>3_internal2 for BOOL_128,
28387 *boolcc<mode>3_internal1 for BOOL_128,
28388 *boolcc<mode>3_internal2 for BOOL_128,
28389 *eqv<mode>3_internal1 for BOOL_128,
28390 *eqv<mode>3_internal2 for BOOL_128,
28391 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
28392 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
28394 (*vec_reload_and_reg_<mptrsize>): Delete.
28396 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28398 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
28399 and split, *boolccsi3_internal3 and split): Delete.
28400 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
28401 *boolccdi3_internal3 and split): Delete.
28402 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
28403 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
28405 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28407 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
28408 and split, *boolcsi3_internal3 and split): Delete.
28409 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
28410 *boolcdi3_internal3 and split): Delete.
28411 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
28413 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28415 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
28416 <'u'>: Also support printing the low-order 16 bits.
28417 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
28418 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
28419 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
28420 *booldi3_internal3 and split): Delete.
28421 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
28422 *bool<mode>3_dot2): New.
28423 (two anonymous define_splits for non_logical_cint_operand): Merge.
28425 2014-08-17 Marek Polacek <polacek@redhat.com>
28426 Manuel López-Ibáñez <manu@gcc.gnu.org>
28429 * diagnostic.c (adjust_line): Add gcc_checking_assert.
28430 (diagnostic_show_locus): Don't print caret diagnostic
28431 if a column is larger than the line_width.
28433 2014-08-17 Roman Gareev <gareevroman@gmail.com>
28435 * common.opt: Make the ISL AST generator to be the main code generator
28438 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
28440 * wide-int.h (generic_wide_int): Declare as class instead of struct.
28442 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
28445 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
28447 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
28448 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
28449 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
28451 * config/pa/pa.md (begin_brtab): Delete insn.
28452 (end_brtab): Likewise.
28454 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28456 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
28458 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
28460 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
28461 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
28462 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
28463 (get_dynamic_type): Remove.
28464 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
28465 (clear_speculation): Bring to ipa-deivrt.h
28466 (get_class_context): Rename to ...
28467 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
28468 (contains_type_p): Update.
28469 (get_dynamic_type): Rename to ...
28470 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
28471 (possible_polymorphic_call_targets): UPdate.
28472 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
28473 * ipa-prop.c (ipa_analyze_call_uses): Update.
28475 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
28477 * doc/invoke.texi (SH options): Document missing processor variant
28478 options. Remove references to Hitachi. Undocument deprecated mspace
28481 2014-08-15 Jason Merrill <jason@redhat.com>
28483 * tree.c (type_hash_canon): Uncomment assert.
28485 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28487 * input.h (in_system_header_at): Add comment.
28489 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28492 * diagnostic.c (build_message_string): Make it extern.
28493 * diagnostic.h (build_message_string): Make it extern.
28495 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
28497 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
28498 load/store from/to non-floating class pseudo.
28500 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28502 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
28504 2014-08-15 Richard Biener <rguenther@suse.de>
28506 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
28507 (get_constraint_for_ssa_var): Remove dead code.
28508 (get_constraint_for_1): Adjust.
28509 (find_what_var_points_to): Likewise.
28510 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
28512 2014-08-15 Ilya Tocar <tocarip@gmail.com>
28515 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
28516 (_mm512_mask_cmpge_epu32_mask): Ditto.
28517 (_mm512_cmpge_epu32_mask): Ditto.
28518 (_mm512_mask_cmpge_epi64_mask): Ditto.
28519 (_mm512_cmpge_epi64_mask): Ditto.
28520 (_mm512_mask_cmpge_epu64_mask): Ditto.
28521 (_mm512_cmpge_epu64_mask): Ditto.
28522 (_mm512_mask_cmple_epi32_mask): Ditto.
28523 (_mm512_cmple_epi32_mask): Ditto.
28524 (_mm512_mask_cmple_epu32_mask): Ditto.
28525 (_mm512_cmple_epu32_mask): Ditto.
28526 (_mm512_mask_cmple_epi64_mask): Ditto.
28527 (_mm512_cmple_epi64_mask): Ditto.
28528 (_mm512_mask_cmple_epu64_mask): Ditto.
28529 (_mm512_cmple_epu64_mask): Ditto.
28530 (_mm512_mask_cmplt_epi32_mask): Ditto.
28531 (_mm512_cmplt_epi32_mask): Ditto.
28532 (_mm512_mask_cmplt_epu32_mask): Ditto.
28533 (_mm512_cmplt_epu32_mask): Ditto.
28534 (_mm512_mask_cmplt_epi64_mask): Ditto.
28535 (_mm512_cmplt_epi64_mask): Ditto.
28536 (_mm512_mask_cmplt_epu64_mask): Ditto.
28537 (_mm512_cmplt_epu64_mask): Ditto.
28538 (_mm512_mask_cmpneq_epi32_mask): Ditto.
28539 (_mm512_mask_cmpneq_epu32_mask): Ditto.
28540 (_mm512_cmpneq_epu32_mask): Ditto.
28541 (_mm512_mask_cmpneq_epi64_mask): Ditto.
28542 (_mm512_cmpneq_epi64_mask): Ditto.
28543 (_mm512_mask_cmpneq_epu64_mask): Ditto.
28544 (_mm512_cmpneq_epu64_mask): Ditto.
28545 (_mm512_castpd_ps): Ditto.
28546 (_mm512_castpd_si512): Ditto.
28547 (_mm512_castps_pd): Ditto.
28548 (_mm512_castps_si512): Ditto.
28549 (_mm512_castsi512_ps): Ditto.
28550 (_mm512_castsi512_pd): Ditto.
28551 (_mm512_castpd512_pd128): Ditto.
28552 (_mm512_castps512_ps128): Ditto.
28553 (_mm512_castsi512_si128): Ditto.
28554 (_mm512_castpd512_pd256): Ditto.
28555 (_mm512_castps512_ps256): Ditto.
28556 (_mm512_castsi512_si256): Ditto.
28557 (_mm512_castpd128_pd512): Ditto.
28558 (_mm512_castps128_ps512): Ditto.
28559 (_mm512_castsi128_si512): Ditto.
28560 (_mm512_castpd256_pd512): Ditto.
28561 (_mm512_castps256_ps512): Ditto.
28562 (_mm512_castsi256_si512): Ditto.
28563 (_mm512_cmpeq_epu32_mask): Ditto.
28564 (_mm512_mask_cmpeq_epu32_mask): Ditto.
28565 (_mm512_mask_cmpeq_epu64_mask): Ditto.
28566 (_mm512_cmpeq_epu64_mask): Ditto.
28567 (_mm512_cmpgt_epu32_mask): Ditto.
28568 (_mm512_mask_cmpgt_epu32_mask): Ditto.
28569 (_mm512_mask_cmpgt_epu64_mask): Ditto.
28570 (_mm512_cmpgt_epu64_mask): Ditto.
28571 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
28572 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
28573 * config/i386/i386.c (enum ix86_builtins): Add
28574 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
28575 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
28576 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
28577 (bdesc_args): Add __builtin_ia32_si512_256si,
28578 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
28579 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
28580 __builtin_ia32_pd512_pd.
28581 (ix86_expand_args_builtin): Handle new FTYPEs.
28582 * config/i386/sse.md (castmode): Add 512-bit modes.
28583 (AVX512MODE2P): New.
28584 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
28585 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
28587 2014-08-15 Richard Biener <rguenther@suse.de>
28589 * fold-const.c (tree_swap_operands_p): Put all constants
28590 last, also strip sign-changing NOPs when considering further
28591 canonicalization. Canonicalize also when optimizing for size.
28593 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28595 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
28596 one_match > zero_match case to just before simple_sequence.
28598 2014-08-15 Richard Biener <rguenther@suse.de>
28600 * data-streamer.h (streamer_string_index, string_for_index):
28602 * data-streamer-out.c (streamer_string_index): Make static.
28603 * data-streamer-in.c (string_for_index): Likewise.
28604 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
28605 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
28607 2014-08-15 Richard Biener <rguenther@suse.de>
28609 PR tree-optimization/62031
28610 * tree-data-ref.c (dr_analyze_indices): Do not set
28611 DR_UNCONSTRAINED_BASE.
28612 (dr_may_alias_p): All indirect accesses have to go the
28613 formerly DR_UNCONSTRAINED_BASE path.
28614 * tree-data-ref.h (struct indices): Remove
28615 unconstrained_base member.
28616 (DR_UNCONSTRAINED_BASE): Remove.
28618 2014-08-15 Jakub Jelinek <jakub@redhat.com>
28620 PR middle-end/62092
28621 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
28622 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
28623 in OMP_CLAUSE_MAP in some outer target region.
28625 2014-08-15 Bin Cheng <bin.cheng@arm.com>
28627 * tree-ssa-loop-ivopts.c (ivopts_data): New field
28628 name_expansion_cache.
28629 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
28630 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
28631 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
28632 (difference_cannot_overflow_p): New parameter. Use affine
28633 expansion for equality check.
28634 (iv_elimination_compare_lt): Pass new argument.
28636 2014-08-14 DJ Delorie <dj@redhat.com>
28638 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
28639 variables to the accumulator.
28641 * config/rl78/predicates.md (rl78_near_mem_operand): New.
28642 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
28643 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
28644 with far-far moves.
28646 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
28647 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
28648 (umulqihi3_virt): Likewise.
28649 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
28650 (umulqihi3_real): Likewise.
28652 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
28654 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28656 PR tree-optimization/62091
28657 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
28658 function_entry_reached.
28659 (walk_aliased_vdefs): Clear it here.
28660 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
28662 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28664 * ipa-utils.h (compare_virtual_tables): Declare.
28665 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
28667 2014-08-14 Marek Polacek <polacek@redhat.com>
28670 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
28671 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
28673 2014-08-14 Tom de Vries <tom@codesourcery.com>
28675 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
28677 2014-08-14 Tom de Vries <tom@codesourcery.com>
28679 PR rtl-optimization/62004
28680 PR rtl-optimization/62030
28681 * ifcvt.c (rtx_interchangeable_p): New function.
28682 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
28683 * emit-rtl.h (mem_attrs_eq_p): Declare.
28685 2014-08-14 Roman Gareev <gareevroman@gmail.com>
28687 * graphite-scop-detection.c:
28688 Add inclusion of cp-tree.h.
28689 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
28690 in case they are pointers to object types
28692 2014-08-14 Richard Biener <rguenther@suse.de>
28694 * BASE-VER: Change to 5.0.0
28696 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28697 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28698 Anna Tikhonova <anna.tikhonova@intel.com>
28699 Ilya Tocar <ilya.tocar@intel.com>
28700 Andrey Turetskiy <andrey.turetskiy@intel.com>
28701 Ilya Verbin <ilya.verbin@intel.com>
28702 Kirill Yukhin <kirill.yukhin@intel.com>
28703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28705 * config/i386/sse.md (define_mode_attr avx512): New.
28706 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
28708 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
28709 (define_mode_attr ssse3_avx2): Ditto.
28710 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
28711 (define_mode_attr avx2_avx512bw): New.
28712 (define_mode_attr ssedoublemodelower): New.
28713 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
28714 V32HI, V64QI modes.
28715 (define_mode_attr ssebytemode): Allow V8DI modes.
28716 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
28717 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
28718 (define_mode_attr ssePSmode2): New.
28719 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
28720 V16HI, V32HI modes.
28721 (define_mode_attr dbpsadbwmode): New.
28722 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
28723 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
28724 (vi8_sse4_1_avx2_avx512): New.
28725 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
28727 (define_mode_attr blendbits): Move before its immediate use.
28729 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28730 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28731 Anna Tikhonova <anna.tikhonova@intel.com>
28732 Ilya Tocar <ilya.tocar@intel.com>
28733 Andrey Turetskiy <andrey.turetskiy@intel.com>
28734 Ilya Verbin <ilya.verbin@intel.com>
28735 Kirill Yukhin <kirill.yukhin@intel.com>
28736 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28738 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
28739 * config/i386/subst.md
28740 (define_mode_iterator SUBST_V): Update.
28741 (define_mode_iterator SUBST_A): Ditto.
28742 (define_subst_attr "mask_operand7"): New.
28743 (define_subst_attr "mask_operand10"): New.
28744 (define_subst_attr "mask_operand_arg34") : New.
28745 (define_subst_attr "mask_expand_op3"): New.
28746 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
28747 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
28748 (define_subst_attr "mask_avx512vl_condition"): New.
28749 (define_subst_attr "round_mask_operand4"): Ditto.
28750 (define_subst_attr "round_mask_scalar_op3"): Delete.
28751 (define_subst_attr "round_mask_op4"): New.
28752 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
28754 (define_subst_attr "round_modev8sf_condition"): New.
28755 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
28757 (define_subst_attr "round_saeonly_mask_operand4"): New.
28758 (define_subst_attr "round_saeonly_mask_op4"): New.
28759 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
28760 V8DImode, V16SImode.
28761 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
28762 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
28763 (define_subst_attr "mask_expand4_args"): New.
28764 (define_subst "mask_expand4"): New.
28766 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28767 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28768 Anna Tikhonova <anna.tikhonova@intel.com>
28769 Ilya Tocar <ilya.tocar@intel.com>
28770 Andrey Turetskiy <andrey.turetskiy@intel.com>
28771 Ilya Verbin <ilya.verbin@intel.com>
28772 Kirill Yukhin <kirill.yukhin@intel.com>
28773 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28775 * config/i386/i386.md
28776 (define_attr "isa"): Add avx512bw,noavx512bw.
28777 (define_attr "enabled"): Ditto.
28778 (define_split): Add 32/64-bit mask logic.
28779 (define_insn "*k<logic>qi"): New.
28780 (define_insn "*k<logic>hi"): New.
28781 (define_insn "*anddi_1"): Add mask version.
28782 (define_insn "*andsi_1"): Ditto.
28783 (define_insn "*<code><mode>_1"): Ditto.
28784 (define_insn "*<code>hi_1"): Ditto.
28785 (define_insn "kxnor<mode>"): New.
28786 (define_insn "kunpcksi"): New.
28787 (define_insn "kunpckdi"): New.
28788 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
28789 (define_insn "*one_cmplhi2_1"): Ditto.
28791 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28792 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28793 Anna Tikhonova <anna.tikhonova@intel.com>
28794 Ilya Tocar <ilya.tocar@intel.com>
28795 Andrey Turetskiy <andrey.turetskiy@intel.com>
28796 Ilya Verbin <ilya.verbin@intel.com>
28797 Kirill Yukhin <kirill.yukhin@intel.com>
28798 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28800 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
28803 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28805 Anna Tikhonova <anna.tikhonova@intel.com>
28806 Ilya Tocar <ilya.tocar@intel.com>
28807 Andrey Turetskiy <andrey.turetskiy@intel.com>
28808 Ilya Verbin <ilya.verbin@intel.com>
28809 Kirill Yukhin <kirill.yukhin@intel.com>
28810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28812 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
28814 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
28815 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
28816 xmm/ymm16+ when availble.
28817 * config/i386/i386.h
28818 (HARD_REGNO_NREGS): Add mask regs.
28819 (VALID_AVX512F_REG_MODE): Ditto.
28820 (VALID_AVX512F_REG_MODE) : Define.
28821 (VALID_MASK_AVX512BW_MODE): Ditto.
28822 (reg_class) (MASK_REG_P(X)): Define.
28823 * config/i386/i386.md: Do not split long moves with mask register,
28824 use kmovb if avx512bw is availible.
28825 (movdi_internal): Handle mask registers.
28827 2014-08-14 Richard Biener <rguenther@suse.de>
28829 PR tree-optimization/62081
28830 * tree-ssa-loop.c (pass_fix_loops): New pass.
28831 (pass_tree_loop::gate): Do not fixup loops here.
28832 * tree-pass.h (make_pass_fix_loops): Declare.
28833 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
28835 2014-08-14 Richard Biener <rguenther@suse.de>
28837 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
28838 (type_hash_canon): ... this and avoid 2nd lookup for the add.
28840 2014-08-14 Richard Biener <rguenther@suse.de>
28842 PR tree-optimization/62090
28843 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
28844 (fold_builtin_2): Do not fold sprintf.
28845 (fold_builtin_3): Likewise.
28846 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
28847 moved from builtins.c.
28848 (gimple_fold_builtin): Fold sprintf.
28850 2014-08-14 Richard Biener <rguenther@suse.de>
28852 PR rtl-optimization/62079
28853 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
28856 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28858 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
28859 current_function_decl.
28861 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28863 * cgraph.c (cgraph_node::function_symbol): Fix wrong
28864 cgraph_function_node to cgraph_node::function_symbol
28867 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
28869 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
28870 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
28872 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
28874 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
28877 2014-08-13 Roman Gareev <gareevroman@gmail.com>
28879 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
28882 2014-08-12 Jakub Jelinek <jakub@redhat.com>
28885 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
28886 any registers that are used in mem_insn.
28888 2014-08-12 Steve Ellcey <sellcey@mips.com>
28890 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
28892 2014-08-12 Steve Ellcey <sellcey@mips.com>
28894 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
28895 (MULTILIB_DIRNAMES): Ditto.
28896 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
28897 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
28898 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
28899 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
28900 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
28901 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
28903 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28906 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
28907 of __ARM_SIZEOF_WCHAR_T.
28909 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28912 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
28913 Remove unnecessary attributes.
28915 2014-08-12 Yury Gribov <y.gribov@samsung.com>
28917 * internal-fn.c (init_internal_fns): Fix off-by-one.
28919 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
28920 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28921 Anna Tikhonova <anna.tikhonova@intel.com>
28922 Ilya Tocar <ilya.tocar@intel.com>
28923 Andrey Turetskiy <andrey.turetskiy@intel.com>
28924 Ilya Verbin <ilya.verbin@intel.com>
28925 Kirill Yukhin <kirill.yukhin@intel.com>
28926 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28928 * config/i386/i386.c (standard_sse_constant_opcode): Use
28929 vpxord/vpternlog if avx512 is availible.
28931 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28933 PR middle-end/62103
28934 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
28935 bitfields, that is when size doesn't match the size of type or the
28936 size of the constructor.
28938 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28940 * config/rs6000/constraints.md (wh constraint): New constraint,
28941 for FP registers if direct move is available.
28942 (wi constraint): New constraint, for VSX/FP registers that can
28943 handle 64-bit integers.
28944 (wj constraint): New constraint for VSX/FP registers that can
28945 handle 64-bit integers for direct moves.
28946 (wk constraint): New constraint for VSX/FP registers that can
28947 handle 64-bit doubles for direct moves.
28948 (wy constraint): Make documentation match implementation.
28950 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
28951 scalar_in_vmx_p field to simplify tests of whether SFmode or
28952 DFmode can go in the Altivec registers.
28953 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
28954 (rs6000_setup_reg_addr_masks): Likewise.
28955 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
28956 field, and wh/wi/wj/wk constraints.
28957 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
28958 the wh/wi/wj/wk constraints.
28959 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
28960 upper registers, prefer VSX registers unless the operation is a
28961 memory operation with REG+OFFSET addressing.
28963 * config/rs6000/vsx.md (VSr mode attribute): Add support for
28964 DImode. Change SFmode to use ww constraint instead of d to allow
28965 SF registers in the upper registers.
28968 (VSr5): Fix thinko in comment.
28969 (VSa): New mode attribute that is an alternative to wa, that
28970 returns the VSX register class that a mode can go in, but may not
28971 be the preferred register class.
28972 (VS_64dm): New mode attribute for appropriate register classes for
28973 referencing 64-bit elements of vectors for direct moves and normal
28975 (VS_64reg): Likewise.
28976 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
28977 register allocator to only registers the data type can handle.
28978 (vsx_le_perm_load_<mode>): Likewise.
28979 (vsx_le_perm_store_<mode>): Likewise.
28980 (vsx_xxpermdi2_le_<mode>): Likewise.
28981 (vsx_xxpermdi4_le_<mode>): Likewise.
28982 (vsx_lxvd2x2_le_<mode>): Likewise.
28983 (vsx_lxvd2x4_le_<mode>): Likewise.
28984 (vsx_stxvd2x2_le_<mode>): Likewise.
28985 (vsx_add<mode>3): Likewise.
28986 (vsx_sub<mode>3): Likewise.
28987 (vsx_mul<mode>3): Likewise.
28988 (vsx_div<mode>3): Likewise.
28989 (vsx_tdiv<mode>3_internal): Likewise.
28990 (vsx_fre<mode>2): Likewise.
28991 (vsx_neg<mode>2): Likewise.
28992 (vsx_abs<mode>2): Likewise.
28993 (vsx_nabs<mode>2): Likewise.
28994 (vsx_smax<mode>3): Likewise.
28995 (vsx_smin<mode>3): Likewise.
28996 (vsx_sqrt<mode>2): Likewise.
28997 (vsx_rsqrte<mode>2): Likewise.
28998 (vsx_tsqrt<mode>2_internal): Likewise.
28999 (vsx_fms<mode>4): Likewise.
29000 (vsx_nfma<mode>4): Likewise.
29001 (vsx_eq<mode>): Likewise.
29002 (vsx_gt<mode>): Likewise.
29003 (vsx_ge<mode>): Likewise.
29004 (vsx_eq<mode>_p): Likewise.
29005 (vsx_gt<mode>_p): Likewise.
29006 (vsx_ge<mode>_p): Likewise.
29007 (vsx_xxsel<mode>): Likewise.
29008 (vsx_xxsel<mode>_uns): Likewise.
29009 (vsx_copysign<mode>3): Likewise.
29010 (vsx_float<VSi><mode>2): Likewise.
29011 (vsx_floatuns<VSi><mode>2): Likewise.
29012 (vsx_fix_trunc<mode><VSi>2): Likewise.
29013 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
29014 (vsx_x<VSv>r<VSs>i): Likewise.
29015 (vsx_x<VSv>r<VSs>ic): Likewise.
29016 (vsx_btrunc<mode>2): Likewise.
29017 (vsx_b2trunc<mode>2): Likewise.
29018 (vsx_floor<mode>2): Likewise.
29019 (vsx_ceil<mode>2): Likewise.
29020 (vsx_<VS_spdp_insn>): Likewise.
29021 (vsx_xscvspdp): Likewise.
29022 (vsx_xvcvspuxds): Likewise.
29023 (vsx_float_fix_<mode>2): Likewise.
29024 (vsx_set_<mode>): Likewise.
29025 (vsx_extract_<mode>_internal1): Likewise.
29026 (vsx_extract_<mode>_internal2): Likewise.
29027 (vsx_extract_<mode>_load): Likewise.
29028 (vsx_extract_<mode>_store): Likewise.
29029 (vsx_splat_<mode>): Likewise.
29030 (vsx_xxspltw_<mode>): Likewise.
29031 (vsx_xxspltw_<mode>_direct): Likewise.
29032 (vsx_xxmrghw_<mode>): Likewise.
29033 (vsx_xxmrglw_<mode>): Likewise.
29034 (vsx_xxsldwi_<mode>): Likewise.
29035 (vsx_xscvdpspn): Tighten constraints to only use register classes
29037 (vsx_xscvspdpn): Likewise.
29038 (vsx_xscvdpspn_scalar): Likewise.
29040 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
29041 wj, and wk constraints.
29042 (GPR_REG_CLASS_P): New helper macro for register classes targeting
29043 general purpose registers.
29045 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
29047 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
29048 DImode instead of wm. Use wk constraint for direct move of DFmode
29050 (extendsidi2_lfiwax): Likewise.
29051 (lfiwax): Likewise.
29052 (lfiwzx): Likewise.
29053 (movdi_internal64): Likewise.
29055 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
29056 wk constraints. Make the wy constraint documentation match them
29059 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
29061 Replacement of isl_int by isl_val
29062 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
29063 (compute_bounds_for_param): use isl_val instead of isl_int
29064 (compute_bounds_for_loop): likewise
29065 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
29066 (build_linearized_memory_access): use isl_val instead of isl_int
29067 (pdr_stride_in_loop): likewise
29068 * graphite-optimize-isl.c:
29069 (getPrevectorMap): use isl_val instead of isl_int
29071 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
29072 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
29073 (extern the_isl_ctx): declare
29074 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
29075 (extract_affine_gmp): likewise
29077 (build_loop_iteration_domains): likewise
29078 (add_param_constraints): likewise
29080 2014-08-11 Richard Biener <rguenther@suse.de>
29082 PR tree-optimization/62075
29083 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
29084 handle uses in patterns.
29086 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29087 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29088 Anna Tikhonova <anna.tikhonova@intel.com>
29089 Ilya Tocar <ilya.tocar@intel.com>
29090 Andrey Turetskiy <andrey.turetskiy@intel.com>
29091 Ilya Verbin <ilya.verbin@intel.com>
29092 Kirill Yukhin <kirill.yukhin@intel.com>
29093 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29095 * common/config/i386/i386-common.c
29096 (OPTION_MASK_ISA_AVX512VL_SET): Define.
29097 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
29098 (ix86_handle_option): Handle OPT_mavx512vl.
29099 * config/i386/cpuid.h (bit_AVX512VL): Define.
29100 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
29101 set -mavx512vl accordingly.
29102 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29103 OPTION_MASK_ISA_AVX512VL.
29104 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
29105 (ix86_option_override_internal): Define PTA_AVX512VL, handle
29106 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
29107 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
29108 * config/i386/i386.h (TARGET_AVX512VL): Define.
29109 (TARGET_AVX512VL_P(x)): Ditto.
29110 * config/i386/i386.opt: Add mavx512vl.
29112 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
29114 PR tree-optimization/62073
29115 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
29118 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29119 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29120 Anna Tikhonova <anna.tikhonova@intel.com>
29121 Ilya Tocar <ilya.tocar@intel.com>
29122 Andrey Turetskiy <andrey.turetskiy@intel.com>
29123 Ilya Verbin <ilya.verbin@intel.com>
29124 Kirill Yukhin <kirill.yukhin@intel.com>
29125 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29127 * common/config/i386/i386-common.c
29128 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
29129 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
29130 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
29131 (ix86_handle_option): Handle OPT_mavx512bw.
29132 * config/i386/cpuid.h (bit_AVX512BW): Define.
29133 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
29134 set -mavx512bw accordingly.
29135 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29136 OPTION_MASK_ISA_AVX512BW.
29137 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
29138 (ix86_option_override_internal): Define PTA_AVX512BW, handle
29139 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
29140 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
29141 * config/i386/i386.h (TARGET_AVX512BW): Define.
29142 (TARGET_AVX512BW_P(x)): Ditto.
29143 * config/i386/i386.opt: Add mavx512bw.
29145 2014-08-11 Richard Biener <rguenther@suse.de>
29147 PR tree-optimization/62070
29148 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
29149 Remove SSA checking.
29151 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29153 * asan.c (asan_check_flags): New enum.
29154 (build_check_stmt_with_calls): Removed function.
29155 (build_check_stmt): Split inlining logic to
29156 asan_expand_check_ifn.
29157 (instrument_derefs): Rename parameter.
29158 (instrument_mem_region_access): Rename parameter.
29159 (instrument_strlen_call): Likewise.
29160 (asan_expand_check_ifn): New function.
29161 (asan_instrument): Remove old code.
29162 (pass_sanopt::execute): Change handling of
29163 asan-instrumentation-with-call-threshold.
29164 (asan_clear_shadow): Fix formatting.
29165 (asan_function_start): Likewise.
29166 (asan_emit_stack_protection): Likewise.
29167 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
29168 Update description.
29169 * internal-fn.c (expand_ASAN_CHECK): New function.
29170 * internal-fn.def (ASAN_CHECK): New internal function.
29171 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
29172 Update description.
29173 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
29174 * tree.c: Small comment fix.
29176 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29178 * gimple.c (gimple_call_fnspec): Support internal functions.
29179 (gimple_call_return_flags): Use const.
29180 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
29181 * internal-fn.def: Add fnspec information.
29182 * internal-fn.h (internal_fn_fnspec): New function.
29183 (init_internal_fns): Declare new function.
29184 * internal-fn.c (internal_fn_fnspec_array): New global variable.
29185 (init_internal_fns): New function.
29186 * tree-core.h: Update macro call.
29187 * tree.c (build_common_builtin_nodes): Initialize internal fns.
29189 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
29191 * lto-streamer.h (struct output_block::symbol): Change from
29192 struct symtab_node to plain symtab_node.
29193 (referenced_from_this_partition_p): Change first parameter
29194 from struct symtab_node to plain symtab_node.
29196 2014-08-10 Marek Polacek <polacek@redhat.com>
29199 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
29201 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
29203 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
29204 DECL correctly; do not give up on types in static storage.
29206 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
29208 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
29210 2014-08-09 Roman Gareev <gareevroman@gmail.com>
29212 * graphite-isl-ast-to-gimple.c:
29213 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
29215 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
29217 2014-08-08 Guozhi Wei <carrot@google.com>
29219 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
29221 2014-08-08 Cary Coutant <ccoutant@google.com>
29223 * dwarf2out.c (get_skeleton_type_unit): Remove.
29224 (output_skeleton_debug_sections): Remove skeleton type units.
29225 (output_comdat_type_unit): Likewise.
29226 (dwarf2out_finish): Likewise.
29228 2014-08-07 Yi Yang <ahyangyi@google.com>
29230 * predict.c (expr_expected_value_1): Remove the redundant assignment.
29232 2014-08-08 Richard Biener <rguenther@suse.de>
29234 * lto-streamer.h (struct lto_input_block): Make it a class
29235 with a constructor.
29236 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
29237 (struct lto_function_header, struct lto_simple_header,
29238 struct lto_simple_header_with_strings,
29239 struct lto_decl_header, struct lto_function_header): Make
29240 a simple inheritance hieararchy. Remove unused fields.
29241 (struct lto_asm_header): Remove.
29242 * lto-streamer-out.c (produce_asm): Adjust.
29243 (lto_output_toplevel_asms): Likewise.
29244 (produce_asm_for_decls): Likewise.
29245 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
29246 * data-streamer-in.c (string_for_index): Likewise.
29247 * ipa-inline-analysis.c (inline_read_section): Likewise.
29248 * ipa-prop.c (ipa_prop_read_section): Likewise.
29249 (read_replacements_section): Likewise.
29250 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29251 * lto-section-in.c (lto_create_simple_input_block): Likewise.
29252 (lto_destroy_simple_input_block): Likewise.
29253 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
29254 (lto_input_toplevel_asms): Likewise.
29256 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
29257 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29258 Anna Tikhonova <anna.tikhonova@intel.com>
29259 Ilya Tocar <ilya.tocar@intel.com>
29260 Andrey Turetskiy <andrey.turetskiy@intel.com>
29261 Ilya Verbin <ilya.verbin@intel.com>
29262 Kirill Yukhin <kirill.yukhin@intel.com>
29263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29265 * common/config/i386/i386-common.c
29266 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
29267 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
29268 (ix86_handle_option): Handle OPT_mavx512dq.
29269 * config/i386/cpuid.h (bit_AVX512DQ): Define.
29270 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
29271 set -mavx512dq accordingly.
29272 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29273 OPTION_MASK_ISA_AVX512DQ.
29274 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
29275 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
29276 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
29277 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
29278 * config/i386/i386.h (TARGET_AVX512DQ): Define.
29279 (TARGET_AVX512DQ_P(x)): Ditto.
29280 * config/i386/i386.opt: Add mavx512dq.
29282 2014-08-08 Richard Biener <rguenther@suse.de>
29284 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
29285 target_percent, target_percent_s): Export.
29286 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
29287 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
29288 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
29289 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
29290 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
29291 Move to gimple-fold.c.
29292 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
29294 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
29295 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
29296 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
29297 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
29298 (rewrite_call_expr_array): Remove.
29299 (fold_builtin_sprintf_chk): Likewise.
29300 (fold_builtin_snprintf_chk): Likewise.
29301 (fold_builtin_varargs): Remove handling of sprintf_chk,
29302 vsprintf_chk, snprintf_chk and vsnprintf_chk.
29303 (gimple_fold_builtin_sprintf_chk): Remove.
29304 (gimple_fold_builtin_snprintf_chk): Likewise.
29305 (gimple_fold_builtin_varargs): Likewise.
29306 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
29307 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
29308 * gimple.c (gimple_seq_add_seq_without_update): New function.
29309 * gimple.h (gimple_seq_add_seq_without_update): Declare.
29310 * gimple-fold.c: Include output.h.
29311 (gsi_replace_with_seq_vops): New function, split out from ...
29312 (gimplify_and_update_call_from_tree): ... here.
29313 (replace_call_with_value): New function.
29314 (replace_call_with_call_and_fold): Likewise.
29315 (var_decl_component_p): Moved from builtins.c.
29316 (gimple_fold_builtin_memory_op): Moved from builtins.c
29317 fold_builtin_memory_op and rewritten to GIMPLE.
29318 (gimple_fold_builtin_memset): Likewise.
29319 (gimple_fold_builtin_strcpy): Likewise.
29320 (gimple_fold_builtin_strncpy): Likewise.
29321 (gimple_fold_builtin_strcat): Likewise.
29322 (gimple_fold_builtin_fputs): Likewise.
29323 (gimple_fold_builtin_memory_chk): Likewise.
29324 (gimple_fold_builtin_stxcpy_chk): Likewise.
29325 (gimple_fold_builtin_stxncpy_chk): Likewise.
29326 (gimple_fold_builtin_snprintf_chk): Likewise.
29327 (gimple_fold_builtin_sprintf_chk): Likewise.
29328 (gimple_fold_builtin_strlen): New function.
29329 (gimple_fold_builtin_with_strlen): New function split out from
29330 gimple_fold_builtin.
29331 (gimple_fold_builtin): Change signature and handle
29332 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
29333 here. Call gimple_fold_builtin_with_strlen.
29334 (gimple_fold_call): Adjust.
29336 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29338 * calls.c (precompute_arguments): Check
29339 promoted_for_signed_and_unsigned_p and set the promoted mode.
29340 (promoted_for_signed_and_unsigned_p): New function.
29341 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
29342 and set the promoted mode.
29343 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
29344 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
29345 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
29348 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29350 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
29351 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29352 (expand_call): Likewise.
29353 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
29354 to get promoted mode.
29355 * combine.c (record_promoted_value): Skip > 0 comparison with
29356 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
29357 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
29358 of SUBREG_PROMOTED_UNSIGNED_P.
29359 (convert_modes): Likewise.
29360 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
29361 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
29362 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
29363 SUBREG_PROMOTED_UNSIGNED_SET.
29364 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
29365 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29366 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
29367 SUBREG_PROMOTED_SET.
29368 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
29369 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
29370 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
29371 of SUBREG_PROMOTED_UNSIGNED_P.
29372 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
29373 (SUBREG_PROMOTED_SET): New define.
29374 (SUBREG_PROMOTED_GET): Likewise.
29375 (SUBREG_PROMOTED_SIGN): Likewise.
29376 (SUBREG_PROMOTED_SIGNED_P): Likewise.
29377 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
29378 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
29379 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
29380 instead of SUBREG_PROMOTED_UNSIGNED_GET.
29381 (nonzero_bits1): Skip > 0 comparison with the results as
29382 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
29383 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
29384 of !SUBREG_PROMOTED_UNSIGNED_P.
29385 * simplify-rtx.c (simplify_unary_operation_1): Use new
29386 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
29387 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
29388 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
29389 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
29391 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
29393 * ipa-devirt.c: Include gimple-pretty-print.h
29394 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
29396 (decl_maybe_in_construction_p): Fix conditional on cdtor check
29397 (get_polymorphic_call_info): Fix return value
29398 (type_change_info): New sturcture based on ipa-prop
29400 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
29401 based on ipa-prop variant.
29402 (extr_type_from_vtbl_ptr_store): New function
29403 based on ipa-prop variant.
29404 (record_known_type): New function.
29405 (check_stmt_for_type_change): New function.
29406 (get_dynamic_type): New function.
29407 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
29408 * tree-ssa-pre.c: ipa-utils.h
29409 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
29410 machinery; sanity check with ipa-prop devirtualization.
29411 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
29414 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29416 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
29417 * alias.c, cfgexpand.c, cgraphbuild.c,
29418 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
29419 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
29420 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
29421 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
29422 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
29423 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
29424 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
29425 dse.c, except.c, gengtype.c, gimple-expr.c,
29426 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
29427 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
29428 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
29429 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
29430 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
29431 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
29433 * pointer-set.c: Remove file.
29434 * pointer-set.h: Remove file.
29436 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29438 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
29439 * config/arm/types.md (f_sels, f_seld): Delete.
29441 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29443 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
29444 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
29445 (aarch64_movdi_<mode>high): Likewise.
29446 (aarch64_mov<mode>high_di): Likewise.
29447 (aarch64_movdi_<mode>low): Likewise.
29448 (aarch64_mov<mode>low_di): Likewise.
29449 (aarch64_movtilow_tilow): Likewise.
29450 Add comment explaining usage of fp,simd attributes and of
29451 TARGET_FLOAT and TARGET_SIMD.
29453 2014-08-07 Ian Bolton <ian.bolton@arm.com>
29454 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29456 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
29457 Use MOVN when one of the half-words is 0xffff.
29459 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29461 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
29463 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29465 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
29466 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
29467 (rfs_str): String corresponding to RFS_* constants.
29468 (rank_for_schedule_stats_t): New typedef.
29469 (rank_for_schedule_stats): New static variable.
29470 (rfs_result): New static function.
29471 (rank_for_schedule): Track statistics for deciding heuristics.
29472 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
29474 (ready_sort): Use them for debug printouts.
29475 (schedule_block): Init statistics state. Print statistics on
29476 rank_for_schedule decisions.
29478 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29480 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
29482 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
29484 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
29487 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29489 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
29490 function to not conflict.
29491 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
29492 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
29493 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
29494 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
29495 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
29498 2014-08-07 Marek Polacek <polacek@redhat.com>
29500 * fold-const.c (fold_binary_loc): Add folding of
29501 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
29503 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
29505 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
29506 instead of type size.
29507 (ASM_FINISH_DECLARE_OBJECT): Likewise.
29509 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29511 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
29512 (*thumb1_movqi_insn): Likewise.
29513 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
29515 2014-08-07 Tom de Vries <tom@codesourcery.com>
29517 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29518 (glibc_2_11_or_earlier): Remove effective-target keywords.
29520 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
29522 * config/arm/arm.c (bdesc_2arg): Fix typo.
29523 (arm_atomic_assign_expand_fenv): Remove The default implementation.
29525 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
29527 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
29529 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
29532 * haifa-sched.c (advance_one_cycle): Fix dump.
29533 (schedule_block): Don't advance cycle if we are already at the
29534 beginning of the cycle.
29536 2014-08-06 Martin Jambor <mjambor@suse.cz>
29539 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
29541 2014-08-06 Richard Biener <rguenther@suse.de>
29544 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
29546 (lto_input_tree): Pop SCCs here.
29548 2014-08-06 Richard Biener <rguenther@suse.de>
29550 PR tree-optimization/61320
29551 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
29552 handle misaligned loads.
29554 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
29556 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
29557 (aarch64_expand_vec_perm_const): Check for dup before zip.
29559 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29561 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
29562 CONST_INT_P instead of GET_CODE and compare.
29563 (aarch64_select_cc_mode): Likewise.
29564 (aarch64_print_operand): Likewise.
29565 (aarch64_rtx_costs): Likewise.
29566 (aarch64_simd_valid_immediate): Likewise.
29567 (aarch64_simd_check_vect_par_cnst_half): Likewise.
29568 (aarch64_simd_emit_pair_result_insn): Likewise.
29570 2014-08-05 David Malcolm <dmalcolm@redhat.com>
29572 * gdbhooks.py (find_gcc_source_dir): New helper function.
29573 (class PassNames): New class, locating and parsing passes.def.
29574 (class BreakOnPass): New command "break-on-pass".
29576 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
29578 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
29581 2014-08-05 Richard Biener <rguenther@suse.de>
29583 PR rtl-optimization/61672
29584 * emit-rtl.h (mem_attrs_eq_p): Declare.
29585 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
29586 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
29587 * cfgcleanup.c (merge_memattrs): Likewise.
29588 Include emit-rtl.h.
29590 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29592 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
29593 rather than singleton vectors.
29594 (vqdmlsls_lane_s32): Likewise.
29596 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29598 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
29599 Use VSDQ_HSI mode iterator.
29600 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29601 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
29602 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
29603 Use BUILTIN_VDQHS macro.
29604 (sqrdmulh_laneq): Likewise.
29605 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
29606 (vqdmlals_laneq_s32): Likewise.
29607 (vqdmlslh_laneq_s16): Likewise.
29608 (vqdmlsls_laneq_s32): Likewise.
29609 (vqdmulhh_laneq_s16): Likewise.
29610 (vqdmulhs_laneq_s32): Likewise.
29611 (vqrdmulhh_laneq_s16): Likewise.
29612 (vqrdmulhs_laneq_s32): Likewise.
29614 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29616 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
29617 (vmuld_laneq_f64): Likewise.
29618 (vmuls_laneq_f32): Likewise.
29619 (vmul_n_f64): Likewise.
29620 (vmuld_lane_f64): Reimplement in C.
29621 (vmuls_lane_f32): Likewise.
29623 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29625 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
29627 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
29629 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29631 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
29632 (rbitsi2): Likewise.
29633 (*arm_rev): Set predicable and predicable_short_it attributes.
29635 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29637 * convert.c (convert_to_integer): Guard transformation to lrint by
29640 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
29642 * config/aarch64/aarch64-builtins.c
29643 (aarch64_simd_builtin_type_mode): Delete.
29644 (v8qi_UP): Remap to V8QImode.
29645 (v4hi_UP): Remap to V4HImode.
29646 (v2si_UP): Remap to V2SImode.
29647 (v2sf_UP): Remap to V2SFmode.
29648 (v1df_UP): Remap to V1DFmode.
29649 (di_UP): Remap to DImode.
29650 (df_UP): Remap to DFmode.
29651 (v16qi_UP):V16QImode.
29652 (v8hi_UP): Remap to V8HImode.
29653 (v4si_UP): Remap to V4SImode.
29654 (v4sf_UP): Remap to V4SFmode.
29655 (v2di_UP): Remap to V2DImode.
29656 (v2df_UP): Remap to V2DFmode.
29657 (ti_UP): Remap to TImode.
29658 (ei_UP): Remap to EImode.
29659 (oi_UP): Remap to OImode.
29660 (ci_UP): Map to CImode.
29661 (xi_UP): Remap to XImode.
29662 (si_UP): Remap to SImode.
29663 (sf_UP): Remap to SFmode.
29664 (hi_UP): Remap to HImode.
29665 (qi_UP): Remap to QImode.
29666 (aarch64_simd_builtin_datum): Make mode a machine_mode.
29667 (VAR1): Build builtin name.
29668 (aarch64_init_simd_builtins): Remove dead code.
29670 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29672 * graphite-isl-ast-to-gimple.c:
29673 (set_options): New function.
29674 (scop_to_isl_ast): Add calling of set_options.
29676 2014-08-05 Jakub Jelinek <jakub@redhat.com>
29678 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
29679 (analyze_iv_to_split_insn): Don't initialize them.
29680 (get_ivts_expr): Removed.
29681 (allocate_basic_variable, insert_base_initialization): Use
29682 SET_SRC instead of *get_ivts_expr.
29683 (split_iv): Use &SET_SRC instead of get_ivts_expr.
29685 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29687 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
29688 (translate_isl_ast_for_loop): Add checking of the
29689 flag_loop_parallelize_all.
29690 (ast_build_before_for): New function.
29691 (scop_to_isl_ast): Add checking of the
29692 flag_loop_parallelize_all.
29693 * graphite-dependences.c: Move the defenition of the
29694 scop_get_dependences from graphite-optimize-isl.c to this file.
29695 (apply_schedule_on_deps): Add checking of the ux's emptiness.
29696 (carries_deps): Add checking of the x's value.
29697 * graphite-optimize-isl.c: Move the defenition of the
29698 scop_get_dependences to graphite-dependences.c.
29699 * graphite-poly.h: Add declarations of scop_get_dependences
29702 2014-08-04 Rohit <rohitarulraj@freescale.com>
29705 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
29707 (alt_reg_names): Likewise.
29708 (rs6000_dwarf_register_span): For SPE high registers, replace
29709 dwarf register numbers with GCC hard register numbers.
29710 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
29711 (rs6000_dbx_register_number): For SPE high registers, return dwarf
29712 register number for the corresponding GCC hard register number.
29713 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
29714 newly added GCC hard register numbers for SPE high registers.
29715 (DWARF_FRAME_REGISTERS): Likewise.
29716 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
29717 (DWARF_FRAME_REGNUM): Likewise.
29718 (FIXED_REGISTERS): Likewise.
29719 (CALL_USED_REGISTERS): Likewise.
29720 (CALL_REALLY_USED_REGISTERS): Likewise.
29721 (REG_ALLOC_ORDER): Likewise.
29722 (enum reg_class): Likewise.
29723 (REG_CLASS_NAMES): Likewise.
29724 (REG_CLASS_CONTENTS): Likewise.
29725 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
29727 2014-08-04 Richard Biener <rguenther@suse.de>
29729 * gimple-fold.h (gimple_fold_builtin): Remove.
29730 * gimple-fold.c (gimple_fold_builtin): Make static.
29731 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
29732 fold_stmt, not gimple_fold_builtin.
29734 2014-08-04 Martin Liska <mliska@suse.cz>
29736 * cgraph.h (csi_end_p): Removed.
29737 (csi_next): Likewise.
29738 (csi_node): Likewise.
29739 (csi_start): Likewise.
29740 (cgraph_node_in_set_p): Likewise.
29741 (cgraph_node_set_size): Likewise.
29742 (vsi_end_p): Likewise.
29743 (vsi_next): Likewise.
29744 (vsi_node): Likewise.
29745 (vsi_start): Likewise.
29746 (varpool_node_set_size): Likewise.
29747 (cgraph_node_set_nonempty_p): Likewise.
29748 (varpool_node_set_nonempty_p): Likewise.
29749 * cgraphunit.c (cgraph_process_new_functions): vec replaces
29751 * ipa-inline-transform.c: Likewise.
29752 * ipa-utils.c (cgraph_node_set_new): Removed.
29753 (cgraph_node_set_add): Likewise.
29754 (cgraph_node_set_remove): Likewise.
29755 (cgraph_node_set_find): Likewise.
29756 (dump_cgraph_node_set): Likewise.
29757 (debug_cgraph_node_set): Likewise.
29758 (free_cgraph_node_set): Likewise.
29759 (varpool_node_set_new): Likewise.
29760 (varpool_node_set_add): Likewise.
29761 (varpool_node_set_remove): Likewise.
29762 (varpool_node_set_find): Likewise.
29763 (dump_varpool_node_set): Likewise.
29764 (free_varpool_node_set): Likewise.
29765 (debug_varpool_node_set): Likewise.
29766 * tree-emutls.c (struct tls_var_data):
29767 (emutls_index): Removed.
29768 (emutls_decl): Likewise.
29769 (gen_emutls_addr): Function implementation uses newly added
29770 hash_map<varpool_node *, tls_var_data>.
29771 (clear_access_vars): Likewise.
29772 (create_emultls_var): Likewise.
29773 (ipa_lower_emutls): Likewise.
29774 (reset_access): New function.
29776 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29778 * config/i386/i386.c (ix86_option_override_internal): Add
29779 PTA_RDRND and PTA_MOVBE for bdver4.
29781 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29782 James Greenhalgh <james.greenhalgh@arm.com>
29784 * doc/md.texi (clrsb): Document.
29785 (clz): Change reference to x into operand 1.
29787 (popcount): Likewise.
29789 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29792 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
29793 move to subtarget in serial version if result is ignored.
29795 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29796 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29798 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
29799 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
29800 (sched_analyze_insn): Update use of try_group_insn to
29801 sched_macro_fuse_insns.
29802 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
29803 arguments that are not conditional jumps.
29805 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29807 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's
29808 extended family information. Handle BTVER2 cpu with cpuid family value.
29810 2014-08-04 Tom de Vries <tom@codesourcery.com>
29812 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29813 (glibc_2_11_or_earlier): Document effective-target keywords.
29815 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29817 * ipa-devirt.c (odr_type_warn_count): Add type.
29818 (possible_polymorphic_call_targets): Set it.
29819 (ipa_devirt): Use it.
29821 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29823 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
29825 * ipa-devirt.c: Include hash-map.h
29826 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
29827 (clear_speculation): Break out of ...
29828 (get_class_context): ... here; speed up handling obviously useless
29830 (odr_type_warn_count, decl_warn_count): New structures.
29831 (final_warning_record): New structure.
29832 (final_warning_records): New static variable.
29833 (possible_polymorphic_call_targets): Cleanup handling of
29834 speculative info; do not build speculation when user do not care;
29835 record info about warnings when asked for.
29836 (add_decl_warning): New function.
29837 (type_warning_cmp): New function.
29838 (decl_warning_cmp): New function.
29839 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
29840 (gate): Enable pass when warnings are requested.
29841 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
29844 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29846 * hash-map.h (default_hashmap_traits::mark_key_deleted):
29848 (hash_map::remove): New method.
29849 (hash_map::traverse): New method.
29850 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
29851 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
29852 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
29853 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
29854 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
29855 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
29858 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29860 * hash-set.h: new File.
29861 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
29862 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
29863 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
29864 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
29865 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
29866 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
29867 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
29868 varpool.c: Use hash_set instead of pointer_set.
29870 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
29872 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
29874 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29876 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
29877 for frame access when strict_p is false.
29879 2014-08-01 Renlin Li <renlin.li@arm.com>
29880 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29882 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
29883 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
29884 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
29886 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
29888 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
29889 aarch64_mem_pair_offset.
29891 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29893 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
29895 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
29896 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
29898 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
29900 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
29902 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
29904 PR regression/61510
29905 * cgraphunit.c (analyze_functions): Use get_create rather than get
29906 for decls which are clones of abstract functions.
29908 2014-08-01 Martin Liska <mliska@suse.cz>
29910 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
29911 * ipa-prop.h (count_formal_params): Global function created from static.
29912 * ipa-prop.c (count_formal_params): Likewise.
29913 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
29914 profiles for semantically equivalent functions.
29915 * passes.c (do_per_function): If we load body of a function
29916 during WPA, this condition should behave same.
29917 * varpool.c (ctor_for_folding): More tolerant assert for variable
29918 aliases created during WPA.
29920 2014-08-01 Martin Liska <mliska@suse.cz>
29922 * doc/invoke.texi (Options That Control Optimization): Documentation
29923 for -foptimize-strlen introduced. Optimization levels default options
29926 2014-08-01 Jakub Jelinek <jakub@redhat.com>
29928 * opts.c (common_handle_option): Handle -fsanitize=alignment.
29929 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
29930 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
29932 * stor-layout.h (min_align_of_type): New prototype.
29933 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
29934 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
29936 * ubsan.c: Include builtins.h.
29937 (ubsan_expand_bounds_ifn): Change return type to bool,
29938 always return true.
29939 (ubsan_expand_null_ifn): Change return type to bool, change
29940 argument to gimple_stmt_iterator *. Handle both null and alignment
29941 sanitization, take type from ckind argument's type rather than
29943 (instrument_member_call): Removed.
29944 (instrument_mem_ref): Remove t argument, add mem and base arguments.
29945 Handle both null and alignment sanitization, don't say whole
29946 struct access is member access. Build 3 argument IFN_UBSAN_NULL
29947 call instead of 2 argument.
29948 (instrument_null): Adjust instrument_mem_ref caller. Don't
29949 instrument calls here.
29950 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
29951 like SANITIZE_NULL.
29952 * stor-layout.c (min_align_of_type): New function.
29953 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
29954 Or it into SANITIZE_UNDEFINED.
29955 * doc/invoke.texi (-fsanitize=alignment): Document.
29957 2014-07-31 Andi Kleen <ak@linux.intel.com>
29959 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
29961 2014-07-31 Andi Kleen <ak@linux.intel.com>
29963 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
29965 (vn_reference_compute_hash): Dito.
29966 (vn_nary_op_compute_hash): Dito.
29967 (vn_phi_compute_hash): Dito.
29968 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
29970 2014-07-31 Andi Kleen <ak@linux.intel.com>
29972 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
29973 Rename to inchash:add_expr_commutative. Convert to inchash.
29974 (iterative_hash_hashable_expr): Rename to
29975 inchash:add_hashable_expr. Convert to inchash.
29976 (avail_expr_hash): Dito.
29978 2014-07-31 Andi Kleen <ak@linux.intel.com>
29980 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
29981 Convert to inchash.
29983 2014-07-31 Andi Kleen <ak@linux.intel.com>
29985 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
29987 2014-07-31 Andi Kleen <ak@linux.intel.com>
29989 * Makefile.in (OBJS): Add rtlhash.o
29990 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
29991 (loc_checksum): Dito.
29992 (loc_checksum_ordered): Dito.
29993 (hash_loc_operands): Dito.
29995 (hash_loc_list): Dito.
29996 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
29997 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
29998 * rtlhash.c: New file.
29999 * rtlhash.h: New file.
30001 2014-07-31 Andi Kleen <ak@linux.intel.com>
30003 * inchash.h (inchash): Change inchash class to namespace.
30004 (class hash): ... Rename from inchash.
30005 (add_object): Move from macro to class template.
30006 * lto-streamer-out.c (hash_tree): Change inchash
30008 * tree.c (build_type_attribute_qual_variant): Dito.
30009 (type_hash_list): Dito.
30010 (attribute_hash_list): Dito.
30011 (iterative_hstate_expr): Rename to inchash::add_expr
30012 (build_range_type_1): Change inchash to inchash::hash
30013 and use hash::add_expr.
30014 (build_array_type_1): Dito.
30015 (build_function_type): Dito
30016 (build_method_type_directly): Dito.
30017 (build_offset_type): Dito.
30018 (build_complex_type): Dito.
30019 (make_vector_type): Dito.
30020 * tree.h (iterative_hash_expr): Dito.
30022 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
30024 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
30026 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30028 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
30029 correct alphabetical position.
30030 (vpaddd_f64): Rewrite using builtins.
30031 (vpaddd_s64): Move to correct alphabetical position.
30034 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
30037 * config/sh/sh.c (sh_legitimate_address_p,
30038 sh_legitimize_reload_address): Handle reg+reg address modes when
30039 ALLOW_INDEXED_ADDRESS is false.
30040 * config/sh/predicates.md (general_movsrc_operand,
30041 general_movdst_operand): Likewise.
30043 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30045 * config/aarch64/aarch64-builtins.c
30046 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
30049 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30051 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
30052 the generated mask based on BYTES_BIG_ENDIAN.
30053 (aarch64_simd_check_vect_par_cnst_half): New.
30054 * config/aarch64/aarch64-protos.h
30055 (aarch64_simd_check_vect_par_cnst_half): New.
30056 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
30057 the check out to aarch64_simd_check_vect_par_cnst_half.
30058 (vect_par_cnst_lo_half): Likewise.
30059 * config/aarch64/aarch64-simd.md
30060 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
30061 (move_hi_quad_<mode>): Always generate a low mask.
30063 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30065 * doc/invoke.texi (AVR Options): Add documentation about
30066 __AVR_DEVICE_NAME__ built-in macro.
30068 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
30071 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
30072 constraints are satisfied.
30073 (<shift>di3_neon): Likewise.
30075 2014-07-31 Richard Biener <rguenther@suse.de>
30077 PR tree-optimization/61964
30078 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
30079 by structural equality.
30081 2014-07-31 Yury Gribov <y.gribov@samsung.com>
30083 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
30084 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
30085 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
30087 * gcc.c (sanitize_spec_function): Support new option.
30088 (SANITIZER_SPEC): Remove now redundant check.
30089 * opts.c (common_handle_option): Support new option.
30090 (finish_options): Check for incompatibilities.
30091 * toplev.c (process_options): Split userspace-specific checks.
30093 2014-07-31 Richard Biener <rguenther@suse.de>
30095 * lto-streamer.h (struct output_block): Remove global.
30096 (struct data_in): Remove labels, num_named_labels and
30097 num_unnamed_labels.
30098 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
30099 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
30101 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
30104 * common.opt (-Wreturn-local-addr): Moved from c.opt.
30105 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
30106 (isolate_path): New argument to avoid inserting a trap.
30107 (find_implicit_erroneous_behaviour): Handle returning the address
30108 of a local variable.
30109 (find_explicit_erroneous_behaviour): Likewise.
30111 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
30114 * toplev.c (init_random_seed): Move piece of code never called to
30116 (set_random_seed): see above.
30118 2014-07-31 Tom de Vries <tom@codesourcery.com>
30120 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
30122 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
30124 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
30125 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
30127 2014-07-31 Richard Biener <rguenther@suse.de>
30129 * data-streamer.h (streamer_write_data_stream): Declare here,
30131 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
30132 * lto-cgraph.c (lto_output_node): Adjust.
30133 (lto_output_varpool_node): Likewise.
30134 * data-streamer-out.c (streamer_string_index): Likewise.
30135 (streamer_write_data_stream, lto_append_block): Move from ...
30136 * lto-section-out.c (lto_output_data_stream,
30137 lto_append_block): ... here.
30139 2014-07-30 Mike Stump <mikestump@comcast.net>
30141 * configure.ac: Also check for popen.
30142 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
30143 * configure: Regenerate.
30144 * config.in: Regenerate.
30146 2014-07-30 Martin Jambor <mjambor@suse.cz>
30148 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
30149 parameter to gimple.
30151 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30153 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
30154 address as second parameter to __tpf_eh_return routine.
30156 2014-07-30 Jiong Wang <jiong.wang@arm.com>
30158 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
30161 2014-07-30 Tom Tromey <tromey@redhat.com>
30164 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
30165 * doc/extend.texi (Type Attributes): Document designated_init
30168 2014-07-30 Roman Gareev <gareevroman@gmail.com>
30170 * graphite-isl-ast-to-gimple.c:
30171 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
30172 (gcc_expression_from_isl_expression): Pass type to
30173 gcc_expression_from_isl_ast_expr_id.
30175 2014-07-30 Richard Biener <rguenther@suse.de>
30177 * lto-streamer.h (lto_write_data): New function.
30178 * langhooks.c (lhd_append_data): Do not free block.
30179 * lto-section-out.c (lto_write_data): New function writing
30180 raw data to the current section.
30181 (lto_write_stream): Adjust for langhook semantic change.
30182 (lto_destroy_simple_output_block): Write header directly.
30183 * lto-opts.c (lto_write_options): Write options directly.
30184 * lto-streamer-out.c (produce_asm): Write heaeder directly.
30185 (lto_output_toplevel_asms): Likewise.
30186 (copy_function_or_variable): Copy data directly.
30187 (write_global_references): Output index table directly.
30188 (lto_output_decl_state_refs): Likewise.
30189 (write_symbol): Write data directly.
30190 (produce_symtab): Adjust.
30191 (produce_asm_for_decls): Output header and refs directly.
30193 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30195 * ipa-devirt.c (polymorphic_call_target_d): Rename
30196 nonconstruction_targets to speculative_targets
30197 (get_class_context): Fix handling of contextes without outer type;
30198 avoid matching non-polymorphic types in LTO.
30199 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
30200 parameter to speculative_targetsp; handle speculation.
30201 (dump_possible_polymorphic_call_targets): Update dumping.
30203 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30205 * common.opt (Wodr): Enable by default.
30207 2014-07-29 Olivier Hainque <hainque@adacore.com>
30209 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
30211 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
30214 * gengtype.c (strtoken): New function.
30215 (create_user_defined_type): Replace strtok with strtoken.
30217 2014-07-29 Nathan Sidwell <nathan@acm.org>
30219 * gcov-io.c (gcov_var): Make hidden.
30220 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
30221 (gcov_do_dump): Declare.
30222 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
30224 2014-07-29 Martin Jambor <mjambor@suse.cz>
30226 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
30227 parameter to gimple.
30228 (sra_modify_assign): Likewise.
30230 2014-07-29 Richard Biener <rguenther@suse.de>
30232 PR middle-end/52478
30233 * expr.c (expand_expr_real_2): Revert last change.
30235 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30237 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
30238 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
30239 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
30241 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
30242 (contains_type_p): Forward declare.
30243 (polymorphic_call_target_hasher::hash): Hash speculative info.
30244 (polymorphic_call_target_hasher::equal): Compare speculative info.
30245 (get_class_context): Handle speuclation.
30246 (contains_type_p): Update.
30247 (get_polymorphic_call_info_for_decl): Update.
30248 (walk_ssa_copies): Break out from ...
30249 (get_polymorphic_call_info): ... here; set speculative context
30251 * ipa-prop.c (ipa_write_indirect_edge_info,
30252 ipa_read_indirect_edge_info): Stream speculative context.
30253 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
30254 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
30255 SPECULATIVE_MAYBE_DERIVED_TYPE).
30256 (possible_polymorphic_call_targets overriders): Update.
30257 (dump_possible_polymorphic_call_targets overriders): Update.
30258 (dump_possible_polymorphic_call_target_p overriders): Update.
30260 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30262 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
30263 ipa-devirt path; fix thinko there.
30265 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
30267 * config/i386/i386.c (ix86_return_in_memory): Replace one
30268 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
30270 2014-07-28 Marek Polacek <polacek@redhat.com>
30272 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
30274 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
30276 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
30277 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
30278 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
30279 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30280 (USE_LD_AS_NEEDED): Likewise.
30281 (ASM_APP_ON): Likewise.
30282 (ASM_APP_OFF): Likewise.
30283 (TARGET_POSIX_IO): Likewise.
30284 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
30285 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30286 (USE_LD_AS_NEEDED): Likewise.
30287 (ASM_APP_ON): Likewise.
30288 (ASM_APP_OFF): Likewise.
30289 (TARGET_POSIX_IO): Likewise.
30291 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
30293 PR middle-end/61734
30294 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
30295 operators other than the equality operators.
30297 2014-07-28 Richard Biener <rguenther@suse.de>
30299 PR middle-end/52478
30300 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
30301 sure to register SImode ones, not only >= word_mode ones.
30302 * expr.c (expand_expr_real_2): When expanding -ftrapv
30303 binops do not use OPTAB_LIB_WIDEN.
30305 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
30307 PR middle-end/61919
30308 * tree-outof-ssa.c (insert_partition_copy_on_edge)
30309 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
30310 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
30311 inserting them in the insn stream.
30313 2014-07-28 Marek Polacek <polacek@redhat.com>
30315 PR middle-end/61913
30316 * common.opt (Wodr): Add Var.
30318 2014-07-28 Richard Biener <rguenther@suse.de>
30320 PR tree-optimization/61921
30321 * tree-ssa-structalias.c (create_variable_info_for_1): Check
30322 if there is a varpool node before dereferencing it.
30324 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30326 * graphite-sese-to-poly.c:
30327 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
30328 id of the pbb), which contains pointer to the pbb1.
30330 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
30332 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30334 * graphite-isl-ast-to-gimple.c:
30335 (graphite_create_new_guard): New function.
30336 (translate_isl_ast_node_if): New function.
30337 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
30339 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
30341 2014-07-27 Anthony Green <green@moxielogic.com>
30343 * config.gcc: Add moxie-*-moxiebox* configuration.
30344 * config/moxie/moxiebox.h: New file.
30346 2014-07-26 Andrew Pinski <apinski@cavium.com>
30348 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
30349 from the read only register.
30351 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30353 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
30354 as the allocation class if it isn't likely to be spilled.
30356 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30358 * rtl.h (tls_referenced_p): Declare.
30359 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
30360 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
30361 (mips_cannot_force_const_mem): Use tls_referenced_p.
30362 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
30363 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
30364 instead of pa_tls_referenced_p.
30365 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
30366 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
30367 (pa_legitimate_constant_p): Likewise.
30368 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
30369 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
30370 (rs6000_cannot_force_const_mem, rs6000_emit_move)
30371 (rs6000_address_for_altivec): Use tls_referenced_p instead of
30372 rs6000_tls_referenced_p.
30373 (rs6000_tls_symbol_ref_1): Delete.
30375 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
30378 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30379 Optimize inverse of a VEC_CONCAT.
30381 2014-07-25 Xinliang David Li <davidxl@google.com>
30383 * params.def: New parameter.
30384 * coverage.c (get_coverage_counts): Check new flag.
30385 (coverage_compute_profile_id): Check new flag.
30386 (coverage_begin_function): Check new flag.
30387 (coverage_end_function): Check new flag.
30388 * value-prof.c (coverage_node_map_initialized_p): New function.
30389 (init_node_map): Populate map with all functions.
30390 * doc/invoke.texi: Document new parameter.
30392 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
30393 Richard Biener <rguenther@suse.de>
30395 * lto-streamer-out.c (struct sccs): Turn to ...
30396 (class DFS): ... this one; refactor the DFS walk so it can
30397 be re-done on per-SCC basis.
30398 (DFS::DFS): New constructor.
30399 (DFS::~DFS): New destructor.
30400 (hash_tree): Add new MAP argument holding in-SCC hash values;
30401 remove POINTER_TYPE hashing hack.
30402 (scc_entry_compare): Rename to ...
30403 (DFS::scc_entry_compare): ... this one.
30404 (hash_scc): Rename to ...
30405 (DFS::hash_scc): ... this one; pass output_block instead
30406 of streamer_cache; work harder to get unique and stable SCC
30408 (DFS_write_tree): Rename to ...
30409 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
30410 (lto_output_tree): Update.
30412 2014-07-25 Andi Kleen <ak@linux.intel.com>
30414 * lto-streamer-out.c (hash_tree): Convert to inchash.
30416 2014-07-25 Andi Kleen <ak@linux.intel.com>
30418 * tree.c (build_type_attribute_qual_variant): Use inchash.
30419 (type_hash_list): Dito.
30420 (attribute_hash_list): Dito
30421 (iterative_hstate_expr): Dito.
30422 (iterative_hash_expr): Dito.
30423 (build_range_type_1): Dito.
30424 (build_array_type_1): Dito.
30425 (build_function_type): Dito.
30426 (build_method_type_directly): Dito.
30427 (build_offset_type): Dito.
30428 (build_complex_type): Dito.
30429 (make_vector_type): Dito.
30430 * tree.h (iterative_hash_expr): Add compat wrapper.
30431 (iterative_hstate_expr): Add.
30433 2014-07-25 Andi Kleen <ak@linux.intel.com>
30435 * Makefile.in (OBJS): Add inchash.o.
30436 (PLUGIN_HEADERS): Add inchash.h.
30437 * ipa-devirt.c: Include inchash.h.
30438 * lto-streamer-out.c: Dito.
30439 * tree-ssa-dom.c: Dito.
30440 * tree-ssa-pre.c: Dito.
30441 * tree-ssa-sccvn.c: Dito.
30442 * tree-ssa-tail-merge.c: Dito.
30444 * tree.c (iterative_hash_hashval_t): Move to ...
30445 (iterative_hash_host_wide_int): Move to ...
30446 * inchash.c: Here. New file.
30447 * tree.h (iterative_hash_hashval_t): Move to ...
30448 (iterative_hash_host_wide_int): Move to ...
30449 * inchash.h: Here. New file.
30451 2014-07-25 Richard Biener <rguenther@suse.de>
30453 PR middle-end/61762
30454 PR middle-end/61894
30455 * fold-const.c (native_encode_int): Add and handle offset
30456 parameter to do partial encodings of expr.
30457 (native_encode_fixed): Likewise.
30458 (native_encode_real): Likewise.
30459 (native_encode_complex): Likewise.
30460 (native_encode_vector): Likewise.
30461 (native_encode_string): Likewise.
30462 (native_encode_expr): Likewise.
30463 * fold-const.c (native_encode_expr): Add offset parameter
30465 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
30466 (fold_ctor_reference): Handle all reads from tcc_constant
30469 2014-07-25 Richard Biener <rguenther@suse.de>
30471 * tree-inline.c (estimate_move_cost): Mark speed_p argument
30472 as possibly unused.
30474 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30476 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
30478 2014-07-24 Kyle McMartin <kyle@redhat.com>
30480 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
30482 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30484 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
30486 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
30488 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
30489 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
30490 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
30492 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30494 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
30495 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
30496 aggregate types. Instead, *all* aggregate types, except for single-
30497 element or homogeneous float/vector aggregates, are quadword-aligned
30498 if required by their type alignment. Issue -Wpsabi note when a type
30499 is now treated differently than before.
30501 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30503 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
30504 does not fit fully into floating-point registers, and there is still
30505 space in the register parameter area, use GPRs to pass those parts
30506 of the argument. Issue -Wpsabi note if any parameter is now treated
30507 differently than before.
30508 (rs6000_arg_partial_bytes): Update.
30510 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
30512 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
30514 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30516 * rtl.h (target_rtl): Remove lang_dependent_initialized.
30517 * toplev.c (initialize_rtl): Don't use it. Move previously
30518 "language-dependent" calls to...
30519 (backend_init): ...here.
30520 (lang_dependent_init_target): Don't set lang_dependent_initialized.
30521 Assert that RTL initialization hasn't happend yet.
30523 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30525 PR rtl-optimization/61629
30526 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
30527 they have already been initialized.
30529 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30531 PR middle-end/61268
30532 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
30533 DECL_INCOMING_RTL and entry_parm.
30534 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
30535 * calls.c (load_register_parameters): Likewise argument values.
30536 (emit_library_call_value_1, store_one_arg): Likewise argument
30538 * config/i386/i386.c (assign_386_stack_local): Likewise the local
30540 * explow.c (validize_mem): Modify the argument in-place.
30542 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30544 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
30545 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
30547 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30549 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
30550 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
30552 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30554 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
30555 (aarch64_save_callee_saves): New parameter "skip_wb".
30556 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
30558 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30560 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
30562 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
30564 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30566 * graphite-isl-ast-to-gimple.c:
30567 (graphite_create_new_loop): Add calling of isl_id_free to properly
30568 decrement reference counts.
30570 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
30572 2014-07-24 Martin Liska <mliska@suse.cz>
30573 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
30575 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
30576 (rs6000_code_end): Likewise.
30578 2014-07-24 Martin Liska <mliska@suse.cz>
30580 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
30581 symtab_node funtion used.
30582 (rs6000_xcoff_declare_object_name): Likewise.
30584 2014-07-24 Martin Liska <mliska@suse.cz>
30586 * cgraphunit.c (compile): Correct function used.
30588 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30590 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
30593 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30596 * varasm.c (bss_initializer_p): Handle offlined ctors.
30597 (align_variable, get_variable_align): Likewise.
30598 (make_decl_one_only): Likewise.
30599 (default_binds_local_p_1): Likewise.
30600 (decl_binds_to_current_def_p): Likewise.
30601 (get_variable_section): Get constructor if it is offlined.
30602 (assemble_variable_contents): Sanity check that the caller
30603 streamed in the ctor in LTO.
30605 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30607 * graphite-isl-ast-to-gimple.c:
30608 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
30609 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
30610 isl_ast_op_pdiv_r to the different case.
30612 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
30614 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30616 PR middle-end/61876
30617 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
30618 when flag_errno_math is on.
30620 2014-07-24 Martin Liska <mliska@suse.cz>
30622 * cgraph.h (varpool_node):
30623 (availability get_availability (void)):
30624 created from cgraph_variable_initializer_availability
30625 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
30626 created from: cgraph_variable_initializer_availability
30627 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
30628 (void finalize_named_section_flags (void)):
30629 created from varpool_finalize_named_section_flags
30630 (bool assemble_decl (void)): created from varpool_assemble_decl
30631 (void analyze (void)): created from varpool_analyze_node
30632 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
30633 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
30634 (void remove_initializer (void)): created from varpool_remove_initializer
30635 (tree get_constructor (void)): created from varpool_get_constructor
30636 (bool externally_visible_p (void)): created from varpool_externally_visible_p
30637 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
30638 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
30639 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
30640 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
30641 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
30642 (static bool output_variables (void)): created from varpool_output_variables
30643 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
30644 created from varpool_extra_name_alias
30645 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
30646 (static void dump_varpool (FILE *f)): created from dump_varpool
30647 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
30648 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
30649 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
30650 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
30651 (void assemble_aliases (void)): created from assemble_aliases
30653 2014-07-24 Martin Liska <mliska@suse.cz>
30655 * cgraph.h (symtab_node):
30656 (void register_symbol (void)): created from symtab_register_node
30657 (void remove (void)): created from symtab_remove_node
30658 (void dump (FILE *f)): created from dump_symtab_node
30659 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
30660 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
30661 (struct ipa_ref *add_reference (symtab_node *referred_node,
30662 enum ipa_ref_use use_type)): created from add_reference
30663 (struct ipa_ref *add_reference (symtab_node *referred_node,
30664 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
30665 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
30666 gimple stmt)): created from maybe_add_reference
30667 (bool semantically_equivalent_p (symtab_node *target)): created from
30668 symtab_semantically_equivalent_p
30669 (void remove_from_same_comdat_group (void)): created from
30670 remove_from_same_comdat_group
30671 (void add_to_same_comdat_group (symtab_node *old_node)): created from
30672 symtab_add_to_same_comdat_group
30673 (void dissolve_same_comdat_group_list (void)): created from
30674 symtab_dissolve_same_comdat_group_list
30675 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
30676 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
30677 created from symtab_alias_ultimate_target
30678 (inline symtab_node *next_defined_symbol (void)): created from
30679 symtab_next_defined_symbol
30680 (bool resolve_alias (symtab_node *target)): created from
30681 symtab_resolve_alias
30682 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
30683 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
30684 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
30685 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
30686 (void set_section (const char *section)): created from set_section_1
30687 (enum availability get_availability (void)): created from symtab_node_availability
30688 (void make_decl_local (void)): created from symtab_make_decl_local
30689 (bool real_symbol_p (void)): created from symtab_read_node
30690 (can_be_discarded_p (void)): created from symtab_can_be_discarded
30691 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
30692 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
30693 symtab_in_same_comdat_p;
30694 (bool address_taken_from_non_vtable_p (void)): created from
30695 address_taken_from_non_vtable_p
30696 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
30697 (static void dump_table (FILE *)): created from dump_symtab
30698 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
30699 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
30700 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
30701 symtab_used_from_object_file_p
30702 (void dump_base (FILE *)): created from dump_symtab_base
30703 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
30704 (void unregister (void)): created from symtab_unregister_node
30705 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
30706 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
30707 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
30708 symtab_nonoverwritable_alias_1
30709 * cgraph.h (cgraph_node):
30710 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
30711 created from cgraph_remove_node_and_inline_clones
30712 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
30713 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
30714 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
30715 (cgraph_node *function_symbol (enum availability *avail = NULL)):
30716 created from cgraph_function_node
30717 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
30718 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
30719 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
30720 created from cgraph_create_clone
30721 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
30722 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
30723 created from cgraph_create_virtual_clone
30724 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
30725 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
30726 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
30727 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
30728 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
30729 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
30730 created from cgraph_function_version_info
30731 (struct cgraph_function_version_info *insert_new_function_version (void)):
30732 created from insert_new_cgraph_node_version
30733 (struct cgraph_function_version_info *function_version (void)): created from
30734 get_cgraph_node_version
30735 (void analyze (void)): created from analyze_function
30736 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
30737 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
30738 tree real_alias) cgraph_add_thunk
30739 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
30740 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
30741 created from cgraph_function_or_thunk_node
30742 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
30743 created from expand_thunk
30744 (void reset (void)): created from cgraph_reset_node
30745 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
30746 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
30747 (void remove (void)): created from cgraph_remove_node
30748 (void dump (FILE *f)): created from dump_cgraph_node
30749 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
30750 (bool get_body (void)): created from cgraph_get_body
30751 (void release_body (void)): created from cgraph_release_function_body
30752 (void unnest (void)): created from cgraph_unnest_node
30753 (void make_local (void)): created from cgraph_make_node_local
30754 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
30755 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
30756 gcov_type count, int freq)): created from cgraph_create_edge
30757 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
30758 gcov_type count, int freq)): created from cgraph_create_indirect_edge
30759 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
30760 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
30761 created from cgraph_create_edge_including_clones
30762 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
30763 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
30764 (void remove_callers (void)): created from cgraph_node_remove_callers
30765 (void remove_callees (void)): created from cgraph_node_remove_callees
30766 (enum availability get_availability (void)): created from cgraph_function_body_availability
30767 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
30768 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
30769 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
30770 (void call_duplication_hooks (cgraph_node *node2)): created from
30771 cgraph_call_node_duplication_hooks
30772 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
30773 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
30774 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
30775 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
30776 (void call_function_insertion_hooks (void)):
30777 created from cgraph_call_function_insertion_hooks
30778 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
30779 (bool local_p (void)): created from cgraph_local_node
30780 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
30781 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
30782 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
30783 (inline bool only_called_directly_or_aliased_p (void)):
30784 created from cgraph_only_called_directly_or_aliased_p
30785 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
30786 created from cgraph_will_be_removed_from_program_if_no_direct_calls
30787 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
30788 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
30789 (bool can_remove_if_no_direct_calls_p (void)):
30790 created from cgraph_can_remove_if_no_direct_calls_p
30791 (inline bool has_gimple_body_p (void)):
30792 created from cgraph_function_with_gimple_body_p
30793 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
30794 (static void dump_cgraph (FILE *f)): created from dump_cgraph
30795 (static inline void debug_cgraph (void)): created from debug_cgraph
30796 (static void record_function_versions (tree decl1, tree decl2)):
30797 created from record_function_versions
30798 (static void delete_function_version (tree decl)):
30799 created from delete_function_version
30800 (static void add_new_function (tree fndecl, bool lowered)):
30801 created from cgraph_add_new_function
30802 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
30803 (static cgraph_node * create (tree decl)): created from cgraph_create_node
30804 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
30805 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
30806 (static cgraph_node *get_for_asmname (tree asmname)):
30807 created from cgraph_node_for_asm
30808 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
30809 created from cgraph_same_body_alias
30810 (static bool used_from_object_file_p_worker (cgraph_node *node,
30811 void *): new function
30812 (static bool non_local_p (cgraph_node *node, void *)):
30813 created from cgraph_non_local_node_p_1
30814 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
30815 created from verify_cgraph
30816 (static bool make_local (cgraph_node *node, void *)):
30817 created from cgraph_make_node_local
30818 (static cgraph_node *create_alias (tree alias, tree target)):
30819 created from cgraph_create_function_alias
30820 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
30821 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
30822 created from cgraph_create_edge_1
30823 * cgraph.h (varpool_node):
30824 (void remove (void)): created from varpool_remove_node
30825 (void dump (FILE *f)): created from dump_varpool_node
30827 2014-07-24 Richard Biener <rguenther@suse.de>
30830 * tree-ssa-structalias.c (create_variable_info_for_1):
30831 Use varpool_get_constructor.
30832 (create_variable_info_for): Likewise.
30834 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30836 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
30837 subtract outgoing area size when restoring stack_pointer_rtx.
30839 2014-07-24 Nick Clifton <nickc@redhat.com>
30841 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
30842 that operations are taking place in parallel.
30843 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
30845 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
30847 * omp-low.c (extract_omp_for_data): Add missing break statement.
30849 2014-07-24 Richard Biener <rguenther@suse.de>
30851 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
30852 * tree-inline.c (estimate_move_cost): Add speed_p parameter
30853 and adjust MOVE_RATIO query accordingly.
30854 (estimate_num_insns): Adjust callers.
30855 * ipa-prop.c (ipa_populate_param_decls): Likewise.
30856 * ipa-cp.c (gather_context_independent_values,
30857 estimate_local_effects): Likewise.
30858 * ipa-split.c (consider_split): Likewise.
30860 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
30862 * config/i386/driver-i386.c: Remove names of unused arguments and
30863 unnecessary unused attributes.
30864 * config/i386/host-mingw32.c: Likewise.
30865 * config/i386/i386.c: Likewise.
30866 * config/i386/winnt-stubs.c: Likewise.
30867 * config/i386/winnt.c: Likewise.
30869 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30871 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
30872 (aarch64_gen_loadwb_pair): New helper function.
30873 (aarch64_expand_epilogue): Simplify code using new helper functions.
30874 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
30876 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30878 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
30879 (aarch64_gen_storewb_pair): New helper function.
30880 (aarch64_expand_prologue): Simplify code using new helper functions.
30881 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
30883 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30885 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
30886 Rename to aarch64_save_callee_saves, remove restore code.
30887 (aarch64_restore_callee_saves): New function.
30889 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30891 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
30892 (aarch64_save_callee_saves): New function to handle reg save
30893 for both core and vectore regs.
30895 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30897 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
30898 (aarch64_gen_store_pair): New helper function.
30899 (aarch64_save_or_restore_callee_save_registers)
30900 (aarch64_save_or_restore_fprs): Use new helper functions.
30902 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30904 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
30905 (aarch64_save_or_restore_callee_save_registers)
30906 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
30908 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30910 * config/aarch64/aarch64.c
30911 (aarch64_save_or_restore_callee_save_registers)
30912 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
30914 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30916 * config/aarch64/aarch64.c
30917 (aarch64_save_or_restore_callee_save_registers)
30918 (aarch64_save_or_restore_fprs): Remove 'increment'.
30920 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30922 * config/aarch64/aarch64.c
30923 (aarch64_save_or_restore_callee_save_registers)
30924 (aarch64_save_or_restore_fprs): Use register offset in
30925 cfun->machine->frame.reg_offset.
30927 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30929 * config/aarch64/aarch64.c
30930 (aarch64_save_or_restore_callee_save_registers)
30931 (aarch64_save_or_restore_fprs): Remove base_rtx.
30933 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30935 * config/aarch64/aarch64.c
30936 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
30937 to 'start_offset'. Remove local variable 'start_offset'.
30939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30941 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
30942 type to HOST_WIDE_INT.
30944 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30946 * config/aarch64/aarch64.c (aarch64_expand_prologue)
30947 (aarch64_save_or_restore_fprs)
30948 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
30950 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30952 * config/arm/t-rtems-eabi: Add
30953 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
30954 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
30955 mbig-endian/mthumb/march=armv7-r, and
30956 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
30959 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30960 Chris Johns <chrisj@rtems.org>
30961 Joel Sherrill <joel.sherrill@oarcorp.com>
30963 * config.gcc: Add nios2-*-rtems*.
30964 * config/nios2/rtems.h: New file.
30965 * gcc/config/nios2/t-rtems: New file.
30967 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
30970 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
30971 constant numbers, not general constants.
30972 (rs6000_expand_vector_init): Ditto.
30974 2014-07-23 Nathan Sidwell <nathan@acm.org>
30976 * gcov-tool.c (gcov_list): Declare here.
30977 (set_gcov_list): Remove.
30978 (gcov_output_files): Set gcov_list directly.
30980 2014-07-23 Host Schirmeier <horst@schirmeier.com>
30982 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
30984 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30986 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
30987 callee-saved registers are available for padding purpose
30988 and r3 is not mandatory, then prefer use those callee-saved
30991 2014-07-23 Richard Biener <rguenther@suse.de>
30993 * params.def (PARAM_MAX_COMBINE_INSNS): New.
30994 * combine.c: Include statistics.h and params.h.
30995 (combine_instructions): Guard three and four insn combines
30996 with max-combine-insns value. Record statistics for combines
30998 * doc/invoke.texi (max-combine-insns): Document new param.
31000 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31002 * graphite-isl-ast-to-gimple.c:
31003 (translate_isl_ast_node_block): New function.
31004 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
31006 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
31007 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
31009 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31011 * graphite-isl-ast-to-gimple.c:
31012 (get_max_schedule_dimensions): New function.
31013 (extend_schedule): Likewise.
31014 (generate_isl_schedule): Add calling of extend_schedule and
31015 get_max_schedule_dimensions.
31017 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31019 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
31020 (case UNSPEC): Handle UNSPEC_RBIT.
31022 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31024 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
31025 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
31027 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31029 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
31031 2014-07-22 Roman Gareev <gareevroman@gmail.com>
31033 * graphite-isl-ast-to-gimple.c:
31034 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
31035 (ivs_params_clear):
31036 (build_iv_mapping): New function.
31037 (translate_isl_ast_node_user): Likewise.
31038 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
31040 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
31041 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
31042 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
31044 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31047 * config/arm/arm.md (setmem): New pattern.
31048 * config/arm/arm-protos.h (struct tune_params): New fields.
31049 (arm_gen_setmem): New prototype.
31050 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
31051 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31052 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31053 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
31054 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
31055 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
31056 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
31057 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31058 (arm_const_inline_cost): New function.
31059 (arm_block_set_max_insns): New function.
31060 (arm_block_set_non_vect_profit_p): New function.
31061 (arm_block_set_vect_profit_p): New function.
31062 (arm_block_set_unaligned_vect): New function.
31063 (arm_block_set_aligned_vect): New function.
31064 (arm_block_set_unaligned_non_vect): New function.
31065 (arm_block_set_aligned_non_vect): New function.
31066 (arm_block_set_vect, arm_gen_setmem): New functions.
31068 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31070 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
31072 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
31075 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
31076 out of #ifdef __OPTIMIZE__.
31078 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31080 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
31081 different trapping status if -fnon-call-exceptions is enabled.
31083 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31085 * expr.c (store_field): Handle VOIDmode for calls that return values
31086 in multiple locations.
31088 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31090 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
31091 (altivec_vsldoi_<mode>): Likewise.
31093 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31095 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
31096 to the number of characters in the line.
31098 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31100 * graphite-isl-ast-to-gimple.c: Add using of
31101 build_nonstandard_integer_type instead of int128_integer_type_node.
31103 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
31105 * toplev.c (output_stack_usage): Adjust the location of the warning.
31107 2014-07-19 Daniel Cederman <cederman@gaisler.com>
31109 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
31110 (*membar_storeload): Disable for LEON3.
31112 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
31114 PR rtl-optimization/61461
31115 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
31117 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
31120 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
31121 Fix instruction constraint.
31122 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
31124 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
31126 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
31128 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
31130 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
31131 GNU coding standards.
31132 (nds32_register_move_cost): Likewise.
31133 (nds32_memory_move_cost): Likewise.
31134 (nds32_address_cost): Likewise.
31136 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31138 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
31140 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
31142 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
31143 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
31144 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
31145 (HAVE_sync_compare_and_swapqi): Define.
31146 (HAVE_sync_compare_and_swaphi): Likewise.
31147 (HAVE_sync_compare_and_swapsi): Likewise.
31149 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
31151 * config/mips/p5600.md: Add missing cpu tests.
31153 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31155 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
31156 (vmla_f64): Likewise.
31157 (vfms_f64): Likewise.
31158 (vmls_f64): Likewise.
31160 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31162 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
31163 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
31165 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31167 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
31168 (vmlal_high_lane_s32): Likewise.
31169 (vmlal_high_lane_u16): Likewise.
31170 (vmlal_high_lane_u32): Likewise.
31171 (vmlsl_high_lane_s16): Likewise.
31172 (vmlsl_high_lane_s32): Likewise.
31173 (vmlsl_high_lane_u16): Likewise.
31174 (vmlsl_high_lane_u32): Likewise.
31176 2014-07-17 Terry Guo <terry.guo@arm.com>
31178 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
31179 (alus_reg): Renamed to alus_sreg.
31180 * config/arm/arm-fixed.md: Change type of non-dsp instructions
31181 from alu_reg to alu_sreg. Change type of dsp instructions from
31182 alu_reg to alu_dsp_reg.
31183 * config/arm/thumb1.md: Likewise.
31184 * config/arm/thumb2.md: Likewise.
31185 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
31186 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
31187 with alu_sreg and alus_sreg.
31188 * config/arm/arm1026ejs.md (alu_op): Likewise.
31189 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
31190 * config/arm/arm926ejs.md (9_alu_op): Likewise.
31191 * config/arm/fa526.md (526_alu_op): Likewise.
31192 * config/arm/fa606te.md (606te_alu_op): Likewise.
31193 * config/arm/fa626te.md (626te_alu_op): Likewise.
31194 * config/arm/fa726te.md (726te_alu_op): Likewise.
31195 * config/arm/fmp626.md (mp626_alu_op): Likewise.
31196 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
31197 alu_sreg, alu_dsp_reg and alus_sreg.
31198 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
31199 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31200 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31201 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
31202 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
31203 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31204 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31205 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31206 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
31207 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
31208 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
31209 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
31210 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
31211 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
31212 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
31213 alus_reg to alus_sreg.
31215 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
31217 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
31220 2014-07-17 Richard Biener <rguenther@suse.de>
31222 PR rtl-optimization/61801
31223 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
31224 don't set reg_pending_barrier if it appears in a debug-insn.
31226 2014-07-16 DJ Delorie <dj@redhat.com>
31228 * config/rx/rx.c (rx_option_override): Fix alignment values.
31229 (rx_align_for_label): Likewise.
31231 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
31234 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
31235 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31236 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
31238 (cris_print_index, cris_print_operand, cris_constant_index_p)
31239 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
31240 (cris_address_cost): Ditto last CONSTANT_P.
31241 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
31242 callers changed. Yield cris_offsettable_symbol for non-PIC
31243 constant symbolic expressions including labels. Yield cris_unspec
31245 (cris_expand_pic_call_address): New parameter MARKERP. Set its
31246 target to pic_offset_table_rtx for calls that will likely go
31247 through PLT, const0_rtx when they can't. All callers changed.
31248 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
31249 symbolic expressions to be PICified. Remove second, redundant,
31250 assert on can_create_pseudo_p returning non-zero. Use
31251 replace_equiv_address_nv, not replace_equiv_address, for final
31253 * config/cris/cris.md ("movsi"): Move variable t to pattern
31254 toplevel. Adjust assert for new cris_symbol_type member. Use
31255 CONSTANT_P instead of CONSTANT_ADDRESS_P.
31256 ("*movsi_internal") <case 9>: Make check for valid unspec operands
31258 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
31259 ("call", "call_value"): Use second incoming operand as a marker
31260 for pic-offset-table-register being used.
31261 ("*expanded_call_non_v32", "*expanded_call_v32")
31262 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
31263 second incoming operand to CALL, match cris_call_type_marker.
31264 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
31265 ("*expanded_call_side"): Ditto. Fix typo in comment.
31266 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
31268 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
31269 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
31270 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
31271 users changed. Add members cris_offsettable_symbol and cris_unspec.
31272 (cris_symbol_type): Rename from cris_pic_symbol_type.
31273 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
31275 * config/cris/cris-protos.h (cris_symbol_type_of,
31276 cris_expand_pic_call_address): Adjust prototypes.
31277 (cris_legitimate_constant_p): New prototype.
31279 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
31280 an existing tmake_file. Don't add t-slibgcc and t-linux.
31282 2014-07-17 Jason Merrill <jason@redhat.com>
31285 * symtab.c (symtab_remove_from_same_comdat_group): Also
31286 set_comdat_group to NULL_TREE.
31287 (verify_symtab): Fix diagnostic.
31289 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
31292 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
31294 2014-07-16 Dodji Seketeli <dodji@redhat.com>
31296 Support location tracking for built-in macro tokens
31297 * input.h (is_location_from_builtin_token): New function declaration.
31298 * input.c (is_location_from_builtin_token): New function definition.
31299 * toplev.c (general_init): Tell libcpp what the pre-defined
31300 spelling location for built-in tokens is.
31302 2014-07-16 Jakub Jelinek <jakub@redhat.com>
31304 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
31305 on the FUNCTION_DECL.
31307 2014-07-16 Richard Biener <rguenther@suse.de>
31310 * doc/extend.texi (always_inline): Clarify.
31312 2014-07-15 Eric Christopher <echristo@gmail.com>
31314 * doc/invoke.texi (Link Options): Document -z option.
31316 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
31318 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
31319 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
31321 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
31323 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
31325 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
31327 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
31328 varpool_assemble_decl.
31329 * varpool.c (varpool_assemble_decl): Assert that node->definition is
31332 2014-07-15 Michael Matz <matz@suse.de>
31334 PR rtl-optimization/61772
31335 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
31337 2014-07-15 Richard Biener <rguenther@suse.de>
31339 * opts.c (default_options_table): Disable bit-ccp at -Og.
31341 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31343 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
31345 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31347 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
31348 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
31349 call langhook for unknown declaration.
31350 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
31351 * tree.h (DECL_ARGUMENTS): Update.
31352 * print-tree.c (print_node): Update.
31353 * tree-core.h (tree_decl_non_common): Remove arguments.
31354 (tree_function_decl): Add arguments.
31356 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
31358 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
31360 2014-07-14 Richard Biener <rguenther@suse.de>
31362 PR tree-optimization/61779
31363 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
31364 simplifying a condition.
31366 2014-07-14 Richard Biener <rguenther@suse.de>
31368 * builtins.c (c_strlen): Make only_value == 2 really only
31369 affect warning generation.
31371 2014-07-14 Richard Biener <rguenther@suse.de>
31373 PR tree-optimization/61757
31374 PR tree-optimization/61783
31375 PR tree-optimization/61787
31376 * tree-ssa-dom.c (record_equality): Revert canonicalization
31377 change and add comment.
31378 (propagate_rhs_into_lhs): Revert previous fix, removing
31379 loop depth restriction again.
31381 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31383 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
31384 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31385 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31386 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
31387 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31388 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31389 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31391 2014-07-14 Richard Biener <rguenther@suse.de>
31393 * cgraph.h (decl_in_symtab_p): Make inline.
31395 2014-07-14 Jakub Jelinek <jakub@redhat.com>
31397 PR middle-end/61294
31398 * doc/invoke.texi (-Wmemset-transposed-args): Document.
31401 * config/i386/i386.c (classify_argument): Don't merge classes above
31404 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
31406 * cgraph.h (symtab_node): Add nonzero_address.
31407 (decl_in_symtab_p): Break out from ...
31408 (symtab_get_node): ... here.
31409 * fold-const.c: Include cgraph.h
31410 (tree_single_nonzero_warnv_p): Use symtab to determine
31411 if symbol is non-zero.
31412 * symtab.c (symtab_node::nonzero_address): New method.
31414 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31416 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
31417 forgotten in previous commit.
31419 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31421 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
31423 * ipa-devirt.c: Include stor-layout.h and intl.h
31424 (odr_subtypes_equivalent_p): New function.
31425 (warn_odr): New function.
31426 (warn_type_mismatch): New function.
31427 (odr_types_equivalent_p): New function.
31428 (add_type_duplicate): Use it.
31429 * common.opt (Wodr): New flag.
31430 * doc/invoke.texi (Wodr): Document new warning.
31432 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31434 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
31435 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
31436 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
31437 (varpool_get_constructor): Push CTORS_IN timevar.
31438 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
31440 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
31442 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
31443 Remove VOID_FTYPE_PUSHORT.
31444 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
31445 Change code to USHORT_FTYPE_VOID.
31446 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
31447 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31448 (ix86_atomic_assign_expand_fenv): Update for
31449 __builtin_ia32_fnstsw changes.
31450 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
31451 (fnstsw): Change operand 0 to nonimmediate operand.
31453 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31455 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
31456 (varpool_get_constructor): New function.
31457 (varpool_ctor_useable_for_folding_p): Break out from ...
31458 (ctor_for_folding): ... here; use varpool_get_constructor.
31459 (varpool_assemble_decl): Likewise.
31460 * lto-streamer.h (struct output_block): Turn cgraph_node
31462 (lto_input_variable_constructor): Declare.
31463 * ipa-visibility.c (function_and_variable_visibility): Use
31464 varpool_get_constructor.
31465 * cgraph.h (varpool_get_constructor): Declare.
31466 (varpool_ctor_useable_for_folding_p): New function.
31467 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
31468 parameter; return error_mark_node for non-trivial constructors.
31469 (lto_write_tree_1, DFS_write_tree): Update use of
31470 get_symbol_initial_value.
31471 (output_function): Update initialization of symbol.
31472 (output_constructor): New function.
31473 (copy_function): Rename to ..
31474 (copy_function_or_variable): ... this one; handle vars too.
31475 (lto_output): Output variable sections.
31476 * lto-streamer-in.c (input_constructor): New function.
31477 (lto_read_body): Rename from ...
31478 (lto_read_body_or_constructor): ... this one; handle vars too.
31479 (lto_input_variable_constructor): New function.
31480 * ipa-prop.c (ipa_prop_write_jump_functions,
31481 ipa_prop_write_all_agg_replacement): Update.
31482 * lto-cgraph.c (compute_ltrans_boundary): Use it.
31483 (output_cgraph_opt_summary): Set symbol to NULL.
31485 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31487 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
31488 non-polymorphic types.
31489 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
31490 * ipa-devirt.c (types_same_for_odr): Do not explode when one
31491 of types is not polymorphic.
31493 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
31495 * lra-constraints.c (remove_inheritance_pseudos): Process
31496 destination pseudo too.
31498 2014-07-11 Rong Xu <xur@google.com>
31500 * gcov-tool.c (gcov_output_files): Fix build error introduced in
31503 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31505 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
31506 * config/avr/avr-devices.c (AVR_MCU): Same.
31507 (avr_mcu_types): add text start value to end of device list.
31508 * config/avr/avr-mcus.def: Add text section start for all devices.
31509 (ata5782): Add new avr5 device.
31511 * config/avr/avr-tables.opt: Regenerate.
31512 * config/avr/avr.h: Add declaration for text section start handler.
31513 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
31515 (LINK_SPEC): Include text section start handler to linker spec.
31516 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
31517 pass -Ttext option to linker if the text section start for the device
31519 * config/avr/t-multilib: Regenerate.
31520 * doc/avr-mmcu.texi: Regenerate.
31522 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
31524 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
31525 * config/rs6000/aix52.h (LINK_SPEC): Same.
31526 * config/rs6000/aix53.h (LINK_SPEC): Same.
31527 * config/rs6000/aix61.h (LINK_SPEC): Same.
31528 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
31530 2014-07-11 Roman Gareev <gareevroman@gmail.com>
31532 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
31533 (graphite_verify): New function.
31534 (ivs_params_clear): New function.
31535 (gcc_expression_from_isl_ast_expr_id): New function.
31536 (gcc_expression_from_isl_expr_int): New function.
31537 (binary_op_to_tree): New function.
31538 (ternary_op_to_tree): New function.
31539 (unary_op_to_tree): New function.
31540 (nary_op_to_tree): New function.
31541 (gcc_expression_from_isl_expr_op): New function.
31542 (gcc_expression_from_isl_expression): New function.
31543 (graphite_create_new_loop): New function.
31544 (translate_isl_ast_for_loop): New function.
31545 (get_upper_bound): New function.
31546 (graphite_create_new_loop_guard): New function.
31547 (translate_isl_ast_node_for): New function.
31548 (translate_isl_ast): New function.
31549 (add_parameters_to_ivs_params): New function.
31550 (scop_to_isl_ast): New parameter ip.
31551 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
31553 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31555 * config/xtensa/predicates.md (call expander): Update for
31556 DECL_SECTION_NAME being string.
31558 2014-07-11 Richard Biener <rguenther@suse.de>
31560 PR middle-end/61473
31561 * builtins.c (fold_builtin_memory_op): Inline memory moves that
31562 can be implemented with a single load followed by a single store.
31563 (c_strlen): Only warn when only_value is not 2.
31565 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
31567 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
31569 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
31572 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
31573 (*movhi_bytes): Likewise.
31574 (*arm_movqi_insn): Likewise.
31576 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
31579 * config/alpha/alpha.c: Include tree-pass.h, context.h
31580 and pass_manager.h.
31581 (pass_data_handle_trap_shadows): New pass.
31582 (pass_handle_trap_shadows::gate): New pass gate function.
31583 (make_pass_handle_trap_shadows): New function.
31584 (rest_of_handle_trap_shadows): Ditto.
31586 (alpha_align_insns_1): Rename from alpha_align_insns.
31587 (pass_data_align_insns): New pass.
31588 (pass_align_insns::gate): New pass gate function.
31589 (make_pass_aling_insns): New function.
31590 (rest_of_align_insns): Ditto.
31591 (alpha_align_insns): Ditto.
31593 (alpha_option_override): Declare handle_trap_shadows info
31594 and align_insns_info. Register handle_trap_shadows and align_insns
31596 (alpha_reorg): Do not call alpha_trap_shadows and
31597 alpha_align_insn from here.
31599 (alpha_pad_function_end): Do not skip BARRIERs.
31601 2014-07-10 Rong Xu <xur@google.com>
31603 Add gcov-tool: an offline gcda profile processing tool support.
31604 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
31605 (gcov_is_error): Ditto.
31606 (gcov_read_string): Ditto.
31607 (gcov_read_sync): Ditto.
31608 * gcov-io.h: Move counter defines to gcov-counter.def.
31609 * gcov-dump.c (tag_counters): Use gcov-counter.def.
31610 * coverage.c: Ditto.
31611 * gcov-tool.c: Offline gcda profile processing tool.
31612 (unlink_gcda_file): Remove one gcda file.
31613 (unlink_profile_dir): Remove gcda files from the profile path.
31614 (gcov_output_files): Output gcda files to an output dir.
31615 (profile_merge): Merge two profiles in directory.
31616 (print_merge_usage_message): Print merge usage.
31617 (merge_usage): Print merge usage and exit.
31618 (do_merge): Driver for profile merge sub-command.
31619 (profile_rewrite): Rewrite profile.
31620 (print_rewrite_usage_message): Print rewrite usage.
31621 (rewrite_usage): Print rewrite usage and exit.
31622 (do_rewrite): Driver for profile rewrite sub-command.
31623 (print_usage): Print gcov-info usage and exit.
31624 (print_version): Print gcov-info version.
31625 (process_args): Process arguments.
31626 (main): Main routine for gcov-tool.
31627 * Makefile.in: Build and install gcov-tool.
31628 * gcov-counter.def: New file split from gcov-io.h.
31629 * doc/gcc.texi: Include gcov-tool.texi.
31630 * doc/gcov-tool.texi: Document for gcov-tool.
31632 2014-07-10 Richard Biener <rguenther@suse.de>
31634 PR tree-optimization/61757
31635 * tree-ssa-dom.c (loop_depth_of_name): Restore.
31636 (propagate_rhs_into_lhs): Revert part of last change.
31638 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
31640 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
31643 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
31645 PR middle-end/53590
31646 * function.c (allocate_struct_function): Revert r188667 change.
31648 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
31650 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
31652 * doc/install.texi: Remove links to defunct package providers for
31655 2014-07-09 Tom de Vries <tom@codesourcery.com>
31657 * final.c (get_call_fndecl): Declare.
31658 (self_recursive_call_p): New function.
31659 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
31661 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31663 * ipa-devirt.c (record_node): Walk through aliases.
31665 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31667 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
31669 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31672 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31674 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31676 * ipa-visibility.c (function_and_variable_visibility): Remove
31677 temporary hack disabling local aliases on AIX.
31679 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31681 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
31682 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
31684 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31686 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
31687 * rs6000/rs6000.c: Inline output of .set instruction.
31688 (declare_alias_data): New struct.
31689 (rs6000_declare_alias): New function.
31690 (rs6000_xcoff_declare_function_name): Use it.
31691 (rs6000_xcoff_declare_object_name): New function.
31692 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
31693 (ASM_OUTPUT_DEF): Turn to empty definition.
31695 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31698 * hash-table.h: use hash_table::value_type instead of
31699 Descriptor::value_type in the return types of several methods.
31701 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31703 * tree-pass.h (pass_data): Remove has_execute member.
31704 * passes.c (execute_one_pass): Don't check pass->has_execute.
31705 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31706 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31707 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31708 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31709 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31710 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31711 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31712 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31713 gimple-low.c, gimple-ssa-isolate-paths.c,
31714 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31715 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
31716 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
31717 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
31718 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
31719 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31720 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
31721 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
31722 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
31723 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
31724 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
31725 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31726 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31727 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31728 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31729 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31730 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31731 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31732 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31733 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31734 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31735 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31736 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
31737 web.c: Remove initializer for pass_data::has_execute.
31739 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31741 * graphite-htab.h: Use hash_map instead of hash_table.
31742 * graphite-clast-to-gimple.c: Adjust.
31743 * passes.c: Use hash_map instead of hash_table.
31744 * sese.c: Likewise.
31745 * sese.h: Remove now unused code.
31747 2014-07-08 Sriraman Tallam <tmsriram@google.com>
31750 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
31753 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31755 PR rtl-optimization/61673
31756 * combine.c (simplify_comparison): Test just mode's sign bit
31757 in tmode rather than the sign bit and any bits above it.
31759 2014-07-08 Roman Gareev <gareevroman@gmail.com>
31761 * graphite-isl-ast-to-gimple.c (generate_isl_context):
31762 Add __isl_give to the declaration.
31763 (generate_isl_schedule): Likewise.
31764 (scop_to_isl_ast): Likewise.
31766 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31768 * config/arm/arm.c (cortexa5_extra_costs): New table.
31769 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
31771 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31773 PR tree-optimization/61725
31774 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
31775 range, use range_includes_zerop_p instead of integer_zerop on
31776 vr0->min, only use log2 of max if min is not negative.
31778 2014-07-08 Richard Biener <rguenther@suse.de>
31780 * tree-ssa-dom.h (loop_depth_of_name): Remove.
31781 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
31782 restriction on loop depth difference.
31783 (record_equality): Likewise.
31784 (propagate_rhs_into_lhs): Likewise. Simplify condition.
31785 (loop_depth_of_name): Remove.
31786 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
31787 restriction on loop depth difference.
31788 (init_copy_prop): Likewise.
31790 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31792 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
31794 (walk_aliased_vdefs): Likewise.
31795 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
31796 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
31797 (detect_type_change_from_memory_writes): Check if entry was reached.
31799 2014-07-08 Richard Biener <rguenther@suse.de>
31801 PR tree-optimization/61681
31802 * tree-ssa-structalias.c (find_what_var_points_to): Expand
31803 NONLOCAL inside ESCAPED.
31805 2014-07-08 Richard Biener <rguenther@suse.de>
31807 PR tree-optimization/61680
31808 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31809 Handle properly all read-write dependences with group accesses.
31811 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
31813 PR tree-optimization/61576
31814 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
31815 block containing reduction statement is predecessor of phi basi block.
31817 2014-07-08 Marek Polacek <polacek@redhat.com>
31820 * fold-const.c (round_up_loc): Change the parameter type.
31822 * fold-const.h (round_up_loc): Adjust declaration.
31823 * stor-layout.c (finalize_record_size): Check for too large types.
31825 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
31827 * symtab.c: Include calls.h.
31828 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
31830 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
31832 * config/rs6000/rs6000.c (output_vec_const_move): Handle
31833 little-endian code generation.
31834 * config/rs6000/spe.md (spe_evmergehi): Rename to...
31835 (vec_perm00_v2si): ... this. Handle little-endian code generation.
31836 (spe_evmergehilo): Rename to...
31837 (vec_perm01_v2si): ... this. Handle little-endian code generation.
31838 (spe_evmergelo): Rename to...
31839 (vec_perm11_v2si): ... this. Handle little-endian code generation.
31840 (spe_evmergelohi): Rename to...
31841 (vec_perm10_v2si): ... this. Handle little-endian code generation.
31842 (spe_evmergehi, spe_evmergehilo): New expanders.
31843 (spe_evmergelo, spe_evmergelohi): Likewise.
31844 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
31845 (*frob_tf_ti): Likewise.
31846 (*frob_<mode>_di_2): Likewise.
31847 (*frob_tf_di_8_2): Likewise.
31848 (*frob_di_<mode>): Likewise.
31849 (*frob_ti_tf): Likewise.
31850 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
31851 (*frob_ti_<mode>_8_2): Likewise.
31852 (*frob_ti_tf_2): Likewise.
31853 (mov_si<mode>_e500_subreg0): Rename to...
31854 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
31856 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
31857 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
31858 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
31859 the big endianness only.
31860 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
31861 (*mov_si<mode>_e500_subreg0_2): Rename to...
31862 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
31863 big big endianness only.
31864 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
31865 (*mov_si<mode>_e500_subreg4): Rename to...
31866 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
31868 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
31869 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
31870 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
31871 the big endianness only.
31872 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
31874 (*mov_si<mode>_e500_subreg4_2): Rename to...
31875 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
31877 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
31878 (*mov_sitf_e500_subreg8): Rename to...
31879 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
31881 (*mov_sitf_e500_subreg8_le): New instruction pattern.
31882 (*mov_sitf_e500_subreg8_2): Rename to...
31883 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
31885 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
31886 (*mov_sitf_e500_subreg12): Rename to...
31887 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
31889 (*mov_sitf_e500_subreg12_le): New instruction pattern.
31890 (*mov_sitf_e500_subreg12_2): Rename to...
31891 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
31893 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
31895 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
31897 * asan.c (instrument_strlen_call): Do not instrument first byte
31898 in strlen if already instrumented.
31900 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31902 * config/arm/arm.opt (mwords-little-endian): Delete.
31903 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
31904 of TARGET_LITTLE_WORDS.
31905 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
31906 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
31908 * doc/invoke.texi: Remove references to -mwords-little-endian.
31910 2014-07-07 Jakub Jelinek <jakub@redhat.com>
31912 * expmed.c (struct init_expmed_rtl): Change all fields but
31913 pow2 and cint from struct rtx_def to rtx.
31914 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
31915 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
31918 2014-07-06 Marek Polacek <polacek@redhat.com>
31921 * doc/invoke.texi: Document -Wsizeof-array-argument.
31923 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
31925 * wide-int.h (wide_int_storage): Change declaration from struct
31928 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
31930 * cgraph.c (cgraph_create_indirect_edge): Update call of
31931 get_polymorphic_call_info.
31932 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
31933 (possible_polymorphic_call_targets): Add parameter call.
31934 (decl_maybe_in_construction_p): New predicate.
31935 (get_polymorphic_call_info): Add parameter call;
31936 use decl_maybe_in_construction_p.
31937 * gimple-fold.c (fold_gimple_assign): Update use of
31938 possible_polymorphic_call_targets.
31939 (gimple_fold_call): Likewise.
31940 * ipa-prop.c: Inlcude calls.h
31941 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
31942 (param_type_may_change_p): New predicate.
31943 (detect_type_change_from_memory_writes): Break out from ...
31944 (detect_type_change): ... this one; use param_type_may_change_p.
31945 (detect_type_change_ssa): Use param_type_may_change_p.
31946 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
31948 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
31951 * config/arm/arm-protos.h (arm_legitimate_address_p,
31952 arm_is_constant_pool_ref): Add prototypes.
31953 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
31954 (arm_is_constant_pool_ref) New function.
31955 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
31956 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
31957 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
31958 operand. Remove pool_range and neg_pool_range attributes.
31959 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
31960 pool_range and neg_pool_range attributes.
31961 * config/arm/constraints.md (Uh): New constraint.
31962 (Uq): Don't allow constant pool references.
31964 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
31966 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
31967 (move_lo_quad_internal_be_<mode>): Likewise.
31968 (move_lo_quad_<mode>): Convert to define_expand.
31969 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
31970 (aarch64_simd_move_hi_quad_be_<mode>): New.
31971 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
31972 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
31973 (aarch64_combinez_be<mode>): New.
31974 (aarch64_combine<mode>): Convert to define_expand.
31975 (aarch64_combine_internal<mode>): New.
31976 (aarch64_simd_combine<mode>): Remove bogus RTL description.
31978 2014-07-04 Tom de Vries <tom@codesourcery.com>
31980 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
31981 combination of earlyclobber and read/write modifiers.
31983 2014-07-04 Tom de Vries <tom@codesourcery.com>
31985 * config/aarch64/aarch64-simd.md
31986 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
31988 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
31991 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
31993 2014-07-04 Jakub Jelinek <jakub@redhat.com>
31995 PR middle-end/61654
31996 * cgraphunit.c (expand_thunk): Call free_dominance_info.
31998 PR tree-optimization/61684
31999 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
32000 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
32002 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32003 Kito Cheng <kito@0xlab.org>
32004 Monk Chiang <sh.chiang04@gmail.com>
32006 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
32007 (nds32_symbol_load_store_p): Move to ...
32008 (nds32_fp_as_gp_check_available): Move to ...
32009 * config/nds32/nds32-fp-as-gp.c: ... here.
32010 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
32011 extern declaration.
32013 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32014 Kito Cheng <kito@0xlab.org>
32015 Monk Chiang <sh.chiang04@gmail.com>
32017 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
32018 (nds32_expand_store_multiple): Move to ...
32019 (nds32_expand_movmemqi): Move to ...
32020 * config/nds32/nds32-memory-manipulation.c: ... here.
32022 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32023 Kito Cheng <kito@0xlab.org>
32024 Monk Chiang <sh.chiang04@gmail.com>
32026 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
32027 (nds32_output_casesi_pc_relative): Move to ...
32028 (nds32_output_casesi): Move to ...
32029 (nds32_mem_format): Move to ...
32030 (nds32_output_16bit_store): Move to ...
32031 (nds32_output_16bit_load): Move to ...
32032 (nds32_output_32bit_store): Move to ...
32033 (nds32_output_32bit_load): Move to ...
32034 (nds32_output_32bit_load_s): Move to ...
32035 (nds32_output_stack_push): Move to ...
32036 (nds32_output_stack_pop): Move to ...
32037 * config/nds32/nds32-md-auxiliary.c: ... here.
32039 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32040 Ling-Hua Tseng <uranus@tinlans.org>
32042 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
32043 the purpose of this file.
32045 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32046 Kito Cheng <kito@0xlab.org>
32047 Monk Chiang <sh.chiang04@gmail.com>
32049 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
32050 (nds32_address_cost): Move implementation to ...
32051 * config/nds32/nds32-cost.c: ... here.
32052 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
32053 (nds32_address_cost_impl): Declare.
32055 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32056 Kito Cheng <kito@0xlab.org>
32057 Monk Chiang <sh.chiang04@gmail.com>
32059 * config/nds32/nds32.c
32060 (nds32_consecutive_registers_load_store_p): Move to ...
32061 (nds32_valid_multiple_load_store): Move to ...
32062 (nds32_valid_stack_push_pop): Move to ...
32063 (nds32_can_use_bclr_p): Move to ...
32064 (nds32_can_use_bset_p): Move to ...
32065 (nds32_can_use_btgl_p): Move to ...
32066 (nds32_can_use_bitci_p): Move to ...
32067 * config/nds32/nds32-predicates.c: ... here.
32069 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32070 Kito Cheng <kito@0xlab.org>
32071 Monk Chiang <sh.chiang04@gmail.com>
32073 * config/nds32/nds32.c
32074 (nds32_expand_builtin_null_ftype_reg): Move to ...
32075 (nds32_expand_builtin_reg_ftype_imm): Move to ...
32076 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
32077 (nds32_init_builtins): Move implementation to ...
32078 (nds32_expand_builtin): Move implementation to ...
32079 * config/nds32/nds32-intrinsic.c: ... here.
32080 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
32081 (nds32_expand_builtin_impl): Declare.
32083 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32084 Kito Cheng <kito@0xlab.org>
32085 Monk Chiang <sh.chiang04@gmail.com>
32087 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
32088 (nds32_emit_section_tail_template): Move to ...
32089 (nds32_emit_isr_jmptbl_section): Move to ...
32090 (nds32_emit_isr_vector_section): Move to ...
32091 (nds32_emit_isr_reset_conten): Move to ...
32092 (nds32_check_isr_attrs_conflict): Move to ...
32093 (nds32_construct_isr_vectors_information): Move to ...
32094 (nds32_asm_file_start): Move implementation to ...
32095 (nds32_asm_file_end): Move implementation to ...
32096 * config/nds32/nds32-isr.c: ... here.
32097 * config/nds32/nds32-protos.h
32098 (nds32_check_isr_attrs_conflict): Declare.
32099 (nds32_construct_isr_vectors_information): Declare.
32100 (nds32_asm_file_start_for_isr): Declare.
32101 (nds32_asm_file_end_for_isr): Declare.
32103 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32104 Kito Cheng <kito@0xlab.org>
32105 Monk Chiang <sh.chiang04@gmail.com>
32107 * config.gcc (nds32*): Add new modules to extra_objs.
32108 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
32109 (nds32be-*-*): Likewise.
32110 * config/nds32/nds32-cost.c: New file.
32111 * config/nds32/nds32-fp-as-gp.c: New file.
32112 * config/nds32/nds32-intrinsic.c: New file.
32113 * config/nds32/nds32-isr.c: New file.
32114 * config/nds32/nds32-md-auxiliary.c: New file.
32115 * config/nds32/nds32-memory-manipulation.c: New file.
32116 * config/nds32/nds32-pipelines-auxiliary.c: New file.
32117 * config/nds32/nds32-predicates.c: New file.
32118 * config/nds32/t-nds32: New file.
32120 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32122 PR tree-optimization/61682
32123 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
32124 using cases and when one of the operands is equal to 1.
32126 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
32128 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
32129 ashr<mode>3): Correct mode of operands[2].
32130 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
32131 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
32132 Correct mode of operands[2]. Fix split condition.
32134 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
32136 * arm.md (arch): Add armv6_or_vfpv3.
32137 (arch_enabled): Add test for the above.
32138 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
32140 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
32142 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32144 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
32145 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
32146 HWI 1 and negate the unsigned value.
32147 * expmed.c (expand_sdiv_pow2): For modes wider than word always
32148 use AND instead of shift.
32149 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
32151 2014-07-03 Marek Polacek <polacek@redhat.com>
32153 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
32154 (-fsanitize=float-divide-by-zero): Move to the table with
32155 -fsanitize=undefined suboptions.
32156 (-fsanitize=float-cast-overflow): Likewise.
32158 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
32160 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
32161 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
32164 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32166 * loop-invariant.c (struct invariant): Add a new member: eqno;
32167 (find_identical_invariants): Update eqno;
32168 (create_new_invariant): Init eqno;
32169 (get_inv_cost): Compute comp_cost with eqno;
32171 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
32173 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
32174 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
32175 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
32176 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
32177 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
32179 2014-07-02 Christian Bruel <christian.bruel@st.com>
32183 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
32184 (make_preds_opaque): Delete.
32185 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
32186 (commit_mode_sets): New function.
32187 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
32188 Process all modes at once.
32189 * basic-block.h (pre_edge_lcm_avs): Declare.
32190 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
32191 Call clear_aux_for_edges. Fix comments.
32192 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
32193 (pre_edge_rev_lcm): Idem.
32194 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
32196 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
32197 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
32199 * config/i386/i386.c (x96_emit_mode_set): Idem.
32200 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
32201 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
32202 (fpscr_toggle) Disallow from delay slot.
32203 * target.def (emit_mode_set): Add prev_mode parameter.
32204 * doc/tm.texi: Regenerate.
32206 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32208 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
32211 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32213 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
32214 vtable_pointer_value_to_vtable): Constify.
32215 (contains_polymorphic_type_p): Declare.
32216 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
32217 vtable_pointer_value_to_vtable): Constify.
32218 (contains_polymorphic_type_p): New predicate.
32219 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
32221 (ipa_set_ancestor_jf): Likewise.
32222 (detect_type_change): Return false in easy cases.
32223 (compute_complex_assign_jump_func): Require type to contain
32225 (compute_known_type_jump_func): Likewise.
32227 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32229 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
32231 (type_in_anonymous_namespace_p): Constify argument.
32232 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
32233 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
32234 (main_odr_variant): New function.
32235 (hash_type_name): Make static; update assert; do not ICE on
32237 (types_same_for_odr): Bring here from tree.c; simplify and remove
32238 old structural comparing code that doesn't work for templates.
32239 (odr_hasher::equal): Update assert.
32240 (add_type_duplicate): Return true when bases should be computed;
32241 replace incomplete loader by complete; do not output duplicated
32242 warnings; do not ICE on non-records; set odr_violated flag.
32243 (get_odr_type): Be ready to replace incomplete type by complete
32244 one; work on ODR variants instead of main variants; reorder item
32245 in array so bases have still smaller indexes.
32246 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
32247 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
32249 2014-07-01 Cary Coutant <ccoutant@google.com>
32251 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
32253 (resolve_addr_in_expr): When replacing the rtx in a location list
32254 entry, get a new address table entry.
32255 (dwarf2out_finish): Call index_location_lists even if there are no
32256 addr_index_table entries yet.
32258 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32260 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
32261 change for not being obvious.
32263 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32265 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
32268 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32270 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
32271 (vcagt_f64): Likewise.
32272 (vcale_f64): Likewise.
32273 (vcaled_f64): Likewise.
32274 (vcales_f32): Likewise.
32275 (vcalt_f64): Likewise.
32276 (vcaltd_f64): Likewise.
32277 (vcalts_f32): Likewise.
32279 2014-07-01 Marek Polacek <polacek@redhat.com>
32281 * doc/invoke.texi: Document -Wint-conversion.
32283 2014-07-01 Marek Polacek <polacek@redhat.com>
32286 * doc/invoke.texi: Document -Wincompatible-pointer-types.
32288 2014-07-01 Martin Liska <mliska@suse.cz>
32290 IPA REF alias refactoring
32291 * cgraph.h (iterate_direct_aliases): New function.
32292 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
32293 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
32294 FOR_EACH_ALIAS added.
32295 (cgraph_for_node_and_aliases): Likewise.
32296 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
32297 * ipa-inline.c (reset_edge_caches): Likewise.
32298 (update_caller_keys): Likewise.
32299 * trans-mem.c (ipa_tm_execute): Likewise.
32300 *varpool.c (varpool_analyze_node): Likewise.
32301 (varpool_for_node_and_aliases): Likewise.
32302 * ipa-ref.h (first_alias): New function.
32303 (last_alias): Likewise.
32304 (has_aliases_p): Likewise.
32305 * ipa-ref.c (ipa_ref::remove_reference): Removal function
32306 is sensitive to IPA_REF_ALIASes.
32307 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
32308 are put at the beginning of the list.
32309 (symtab_node::iterate_direct_aliases): New function.
32311 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32314 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32316 (write_ts_type_common_tree_pointers): Do not stream fields not set
32317 for incomplete types; do not stream duplicated fields for variants;
32318 sanity check that variant and type match.
32319 (write_ts_type_non_common_tree_pointers): Likewise.
32320 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32321 TYPE_SIZE whether type is complete.
32322 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32323 write_ts_type_common_tree_pointers
32324 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32326 2014-06-30 Joseph Myers <joseph@codesourcery.com>
32328 * var-tracking.c (add_stores): Return instead of asserting if old
32329 and new values for conditional store are the same.
32331 2014-06-30 Richard Henderson <rth@redhat.com>
32335 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
32336 the cfg if there were any changes.
32337 * passes.def: Revert move of peephole2 after reorder_blocks;
32338 move duplicate_computed_gotos before peephole2.
32340 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
32342 * except.c (emit_note_eh_region_end): New helper function.
32343 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
32344 emit EH_REGION_END note.
32345 * jump.c (cleanup_barriers): Do not split a call and its
32346 corresponding CALL_ARG_LOCATION note.
32348 2014-06-30 Jeff Law <law@redhat.com>
32350 PR tree-optimization/61607
32351 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
32352 deeper into the SSA_NAME_VALUE chain.
32354 2014-06-30 Marek Polacek <polacek@redhat.com>
32356 * convert.c (convert_to_integer): Don't instrument conversions if the
32357 function has no_sanitize_undefined attribute.
32358 * ubsan.c: Don't run the ubsan pass if the function has
32359 no_sanitize_undefined attribute.
32361 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32363 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
32364 -fsanitize=undefined suboptions.
32366 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
32368 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
32369 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
32370 against bigendian and adjust indices.
32372 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32374 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
32376 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
32379 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
32380 Add alternative; make early clobber. Adjust both split patterns
32381 to use operand 0 as the working register.
32383 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32385 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
32386 as ira_object_id_map might be NULL, or 1.
32388 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32390 * loop-invariant.c (get_inv_cost): Handle register class.
32391 (gain_for_invariant): Check the register pressure of the inv
32392 and its overlapped register class, other than all.
32394 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32396 * doc/invoke.texi (Optimize Options): Fix descriptions of
32397 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
32399 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
32401 * doc/extend.texi (Function Attributes): Update 'naked' attribute
32404 2014-06-29 Tobias Grosser <tobias@grosser.es>
32407 * graphite-isl-ast-to-gimple.c: Add missing guards.
32409 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32411 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
32412 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
32413 * flag-types.h: Add new enum fgraphite_generator.
32414 * graphite-isl-ast-to-gimple.c: New.
32415 * graphite-isl-ast-to-gimple.h: New.
32416 * graphite.c (graphite_transform_loops): Add choice of Graphite
32417 code generator, which depends on flag_graphite_code_gen.
32419 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32421 * graphite-dependences.c (subtract_commutative_associative_deps):
32422 Add NULL checking of the following variables: must_raw_no_source,
32423 may_raw_no_source, must_war_no_source, may_war_no_source,
32424 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
32425 must_war, may_war, must_waw, may_waw.
32427 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32429 * graphite-clast-to-gimple.c: gloog is renamed to
32430 graphite_regenerate_ast_cloog. gloog_error is renamed to
32431 graphite_regenerate_error.
32432 * graphite-clast-to-gimple.h: The definition of the struct
32433 bb_pbb_def is moved to graphite-htab.h.
32434 Add inclusion of the hash-table.h.
32435 * graphite-htab.h: The declaration of the function gloog is moved
32436 to graphite-clast-to-gimple.h and renamed to
32437 graphite_regenerate_ast_cloog.
32438 * graphite.c (graphite_transform_loops): gloog is renamed
32439 to graphite_regenerate_ast_cloog.
32441 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32443 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32445 (write_ts_type_common_tree_pointers): Do not stream fields not set
32446 for incomplete types; do not stream duplicated fields for variants;
32447 sanity check that variant and type match.
32448 (write_ts_type_non_common_tree_pointers): Likewise.
32449 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32450 TYPE_SIZE whether type is complete.
32451 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32452 write_ts_type_common_tree_pointers
32453 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32455 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32457 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
32459 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32461 * tree-inline.c (remap_type_1): Do not duplicate fields
32462 that are shared in between type and its main variant.
32464 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32466 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
32468 (ipa_set_ancestor_jf) Likewise.
32469 (check_stmt_for_type_change): Check that we work on main variant.
32470 (detect_type_change): Look into main variant.
32471 (compute_known_type_jump_func): Check that main variant has BINFO.
32473 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32475 * ipa-devirt.c (set_type_binfo): New function.
32476 (add_type_duplicate): Use it.
32477 (get_odr_type): Sanity check that binfos points to main variants.
32478 (get_class_context): Be sure the context's outer_type is main variant.
32479 (contains_type_p): Walk main variant.
32480 (get_polymorphic_call_info_for_decl): Set outer_type to be
32482 (get_polymorphic_call_info): Likewise.
32483 (possible_polymorphic_call_targets): Sanity check that we operate
32486 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32488 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
32490 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32492 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
32493 accidental change due to wide-int branch merge.
32495 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32497 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
32498 compressed debug support.
32499 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
32500 * configure: Regenerate.
32501 * config.in: Regenerate.
32502 * common.opt (compressed_debug_sections): New enum.
32503 (gz, gz=): New options.
32504 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
32505 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
32506 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
32507 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
32508 LINK_COMPRESS_DEBUG_SPEC.
32509 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
32510 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
32511 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
32512 (Debugging Options): Document -gz[=type].
32514 2014-06-27 Martin Jambor <mjambor@suse.cz>
32517 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
32518 args_to_skip, use those from node instead. Copy args_to_skip and
32519 combined_args_to_skip from node to the new thunk.
32520 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
32521 (cgraph_create_virtual_clone): Moved computation of
32522 combined_args_to_skip...
32523 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
32525 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
32527 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
32528 redundant diagnostic machinary.
32530 2014-06-27 Richard Biener <rguenther@suse.de>
32532 * tree-ssa-math-opts.c (bswap_replace): Fix
32533 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
32535 2014-06-27 Martin Liska <mliska@suse.cz>
32537 * gimple.h (gimple_location_safe): New function introduced.
32538 * cgraphunit.c (walk_polymorphic_call_targets): Usage
32539 of gimple_location_safe replaces gimple_location.
32540 (gimple_fold_call): Likewise.
32541 * ipa-devirt.c (ipa_devirt): Likewise.
32542 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32543 * ipa.c (walk_polymorphic_call_targets): Likewise.
32544 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32546 2014-06-27 Jakub Jelinek <jakub@redhat.com>
32548 PR tree-optimization/57233
32549 PR tree-optimization/61299
32550 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
32552 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
32553 would be lowered to scalar shifts, check if corresponding
32554 shifts and vector BIT_IOR_EXPR are supported and don't lower
32555 or lower just to narrower vector type in that case.
32556 * expmed.c (expand_shift_1): Fix up handling of vector
32557 shifts and rotates.
32559 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
32562 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
32564 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
32566 * doc/invoke.texi (-fsemantic-interposition): Document.
32567 * common.opt (fsemantic-interposition): New flag.
32568 * varasm.c (decl_replaceable_p): Use it.
32570 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32573 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
32574 extraction other than index 3.
32576 2014-06-26 Teresa Johnson <tejohnson@google.com>
32578 * doc/invoke.texi: Fix typo.
32579 * dumpfile.c: Add support for documented -fdump-* options
32580 optimized/missed/note/optall.
32582 2014-06-26 Martin Jambor <mjambor@suse.cz>
32584 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
32585 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
32586 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
32587 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
32588 * opts.c (default_options_optimization): Set
32589 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
32590 * doc/invoke.texi (allow-load-data-races)
32591 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
32592 (allow-store-data-races): Document the new default.
32594 2014-06-26 Martin Jambor <mjambor@suse.cz>
32596 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
32597 renamed to ipa_impossible_devirt_target. Fix typo.
32598 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
32599 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
32600 ipa_impossible_devirt_target.
32602 2014-06-26 Richard Biener <rguenther@suse.de>
32604 PR tree-optimization/61607
32605 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
32606 explaining why we restrict copies on loop depth.
32607 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32609 (record_equivalences_from_phis): Instead add it here.
32611 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
32613 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
32614 (LTO_WRAPPER_OBJS): New variable.
32615 (lto-wrapper$(exeext)): Use it.
32616 * collect2.c: Include "collect-utils.h".
32617 (verbose, debug): Remove variables.
32618 (at_file_supplied): No longer static.
32619 (tool_name): New variable.
32620 (do_wait, fork_execute, maybe_unlink): Don't declare.
32621 (tool_cleanup): No longer static.
32622 (notice): Remove function.
32623 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
32624 fork_execute calls.
32625 (collect_wait, do_wait, collect_execute): Remove functions.
32626 (maybe_unlink): No longer static.
32627 * collect2.h (verbose, debug): Don't declare.
32628 (at_file_supplied): Declare.
32629 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
32631 (collect_execute): Replace with implementation from collect2, plus a
32632 new arg use_atfile. All callers changed.
32633 (collect_wait): Replace with implementation from collect2.
32634 (maybe_unlink_file): Remove function.
32635 (fork_execute): Replace with implementation from collect2, plus a
32636 new arg use_atfile. All callers changed.
32637 (do_wait): Add call to utils_cleanup to the error path.
32638 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
32639 (tool_cleanup): Adjust declarations.
32640 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
32641 * tlink.c: Include "collect-utils.h".
32642 (tlink_execute): New arg use_atfile. All callers changed.
32643 (tlink_init, tlink_execute): Remove declarations.
32645 * collect-utils.c (save_temps): New variable.
32646 (do_wait): Use it instead of debug. Use fatal_error.
32647 * collect-utils.h (save_temps): Declare.
32648 * collect2.c (verbose): Rename from vflag. All uses changed.
32649 (tool_cleanup): New function, copied from collect_atexit.
32650 (collect_atexit, handler): Just call it.
32651 * collect2.h (verbose): Declaration renamed from vflag.
32652 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
32655 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
32656 (lto-wrapper$(exeext)): Link with collect-utils.o.
32657 * collect-utils.c: New file.
32658 * collect-utils.h: New file.
32659 * lto-wrapper.c: Include "collect-utils.h".
32660 (args_name): Delete variable.
32661 (tool_name): New variable.
32662 (tool_cleanup): New function.
32663 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
32664 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
32665 (fork_execute): Remove functions.
32667 2014-06-26 Nick Clifton <nickc@redhat.com>
32669 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
32671 * doc/extend.texi (Function Attributes): Fix typo in description
32672 of RX vector attribute.
32674 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
32676 * config.gcc (supported_defaults): Error when passing either
32677 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
32679 2014-06-26 Richard Biener <rguenther@suse.de>
32681 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32682 propagating volatile pointers.
32684 2014-06-26 Richard Biener <rguenther@suse.de>
32686 PR tree-optimization/61607
32687 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
32688 loop if we redirected its latch edge.
32689 (thread_block_1): Do not cancel loops prematurely.
32691 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
32693 * toplev.c (backend_init_target): Move init_emit_regs and
32695 (backend_init) ... here; skip ira_init_once and backend_init_target.
32696 (target_reinit) ... and here; clear
32697 this_target_rtl->lang_dependent_initialized.
32698 (lang_dependent_init_target): Clear
32699 this_target_rtl->lang_dependent_initialized;
32700 break out rtl initialization to ...
32701 (initialize_rtl): ... here; call also backend_init_target
32703 * toplev.h (initialize_rtl): New function.
32704 * function.c: Include toplev.h
32705 (init_function_start): Call initialize_rtl.
32706 * rtl.h (target_rtl): Add target_specific_initialized,
32707 lang_dependent_initialized.
32709 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
32710 Jakub Jelinek <jakub@redhat.com>
32712 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
32714 2014-06-25 Tom de Vries <tom@codesourcery.com>
32716 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
32718 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32720 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
32721 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
32722 Issue a strict overflow warning if appropriate.
32724 2014-06-25 Martin Liska <mliska@suse.cz>
32726 IPA REF refactoring
32727 * Makefile.in: Removed header file (ipa-ref-inline.h).
32728 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
32730 (cgraph_speculative_call_info): Likewise.
32731 (cgraph_for_node_thunks_and_aliases): Likewise.
32732 (cgraph_for_node_and_aliases): Likewise.
32733 (verify_cgraph_node): Likewise.
32734 * cgraph.h: Batch of IPA REF functions become member functions of
32735 symtab_node: add_reference, maybe_add_reference, clone_references,
32736 clone_referring, clone_reference, find_reference,
32737 remove_stmt_references, remove_all_references,
32738 remove_all_referring, dump_references, dump_referring,
32739 has_alias_p, iterate_reference, iterate_referring.
32740 * cgraphbuild.c (record_reference): New IPA REF function used.
32741 (record_type_list): Likewise.
32742 (record_eh_tables): Likewise.
32743 (mark_address): Likewise.
32744 (mark_load): Likewise.
32745 (mark_store): Likewise.
32746 (pass_build_cgraph_edges): Likewise.
32747 (rebuild_cgraph_edge): Likewise.
32748 (cgraph_rebuild_references): Likewise.
32749 (pass_remove_cgraph_callee_edges): Likewise.
32750 * cgraphclones.c (cgraph_clone_node): Likewise.
32751 (cgraph_create_virtual_clone): Likewise.
32752 (cgraph_materialize_clone): Likewise.
32753 (cgraph_materialize_all_clones): Likewise.
32754 * cgraphunit.c (cgraph_reset_node): Likewise.
32755 (cgraph_reset_node): Likewise.
32756 (analyze_function): Likewise.
32757 (assemble_thunks_and_aliases): Likewise.
32758 (expand_function): Likewise.
32759 * ipa-comdats.c (propagate_comdat_group): Likewise.
32760 (enqueue_references): Likewise.
32761 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
32762 (create_specialized_node): Likewise.
32763 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
32764 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
32765 * ipa-inline.c (reset_edge_caches): Likewise.
32766 (update_caller_keys): Likewise.
32767 (execute): Likewise.
32768 * ipa-prop.c (remove_described_reference): Likewise.
32769 (propagate_controlled_uses): Likewise.
32770 (ipa_edge_duplication_hook): Likewise.
32771 (ipa_modify_call_arguments): Likewise.
32772 * ipa-pure-const.c (propagate_pure_const): Likewise.
32773 * ipa-ref-inline.h: Header file removed, functions moved
32774 to symtab_node class.
32775 * ipa-ref.c (remove_reference): New class member function.
32776 (cannot_lead_to_return): New class member function.
32777 (referring_ref_list): Likewise.
32778 (referred_ref_list): Likewise.
32779 Rest of functions moved to symtab_node class.
32780 * ipa-ref.h: New member functions remove_reference,
32781 cannot_lead_to_return, referring_ref_list, referred_ref_list added
32783 ipa_ref_list class has new member functions: first_reference,
32784 first_referring, clear, nreferences.
32785 * ipa-reference.c (analyze_function): New IPA REF function used.
32786 (write_node_summary_p): Likewise.
32787 (ipa_reference_write_optimization_summary): Likewise.
32788 * ipa-split.c (split_function): Likewise.
32789 * ipa-utils.c (ipa_reverse_postorder): Likewise.
32790 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
32791 (function_and_variable_visibility): Likewise.
32792 * ipa.c (has_addr_references_p): Likewise.
32793 (process_references): Argument type changed.
32794 (symtab_remove_unreachable_nodes): New IPA REF function used.
32795 (process_references): Likewise.
32796 (set_writeonly_bit): Likewise.
32797 * lto-cgraph.c: Implementation of new symtab_node member functions
32798 that uses new IPA REF functions.
32799 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
32801 * lto-streamer-out.c (output_symbol_p): Likewise.
32802 * lto-streamer.h (referenced_from_this_partition_p): Argument type
32804 * symtab.c: Implementation of new IPA REF API.
32805 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
32806 (ipa_tm_create_version): Likewise.
32807 (ipa_tm_execute): Likewise.
32808 * tree-emutls.c (gen_emutls_addr): Likewise.
32809 * tree-inline.c (copy_bb): Likewise.
32810 (delete_unreachable_blocks_update_callgraph): Likewise.
32811 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
32812 (varpool_for_node_and_aliases): Likewise.
32814 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32816 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
32818 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32821 * fold-const.c (fold_checksum_tree): Use a hash_table of const
32822 tree_node * instead of tree_node *.
32824 (print_fold_checksum): Likewise.
32825 (fold_check_failed): Likewise.
32826 (debug_fold_checksum): Likewise.
32827 (fold_build1_stat_loc): Likewise.
32828 (fold_build2_stat_loc): Likewise.
32829 (fold_build3_stat_loc): Likewise.
32830 (fold_build_call_array_loc): Likewise.
32832 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
32834 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
32835 implementation with call to...
32836 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
32838 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
32841 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
32843 PR tree-optimization/57742
32844 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
32845 after replacing the statement.
32847 2014-06-25 Nick Clifton <nickc@redhat.com>
32849 * config/v850/v850.c (GHS_default_section_names): Change to const
32851 (GHS_current_section_names): Likewise.
32852 (v850_insert_attributes): Do not build strings, just assign the
32853 names directly. Change the type of 'chosen_section' to const
32855 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
32856 directly to the array entry.
32857 * config/v850/v850.h (GHS_default_section_names): Change to const
32859 (GHS_current_section_names): Likewise.
32861 2014-06-25 Jakub Jelinek <jakub@redhat.com>
32863 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
32864 (LANG_HOOKS_DECLS): Add it.
32865 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
32867 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
32868 * langhooks.h (struct lang_hooks_for_decls): Add
32869 omp_clause_linear_ctor hook.
32870 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
32871 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
32872 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
32873 combined simd loop use omp_clause_linear_ctor hook.
32875 2014-06-24 Cong Hou <congh@google.com>
32877 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
32878 pattern recognition.
32879 (type_conversion_p): PROMOTION is true if it's a type promotion
32880 conversion, and false otherwise. Return true if the given expression
32881 is a type conversion one.
32882 * tree-vectorizer.h: Adjust the number of patterns.
32883 * tree.def: Add SAD_EXPR.
32884 * optabs.def: Add sad_optab.
32885 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
32886 * expr.c (expand_expr_real_2): Likewise.
32887 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
32888 * gimple.c (get_gimple_rhs_num_ops): Likewise.
32889 * optabs.c (optab_for_tree_code): Likewise.
32890 * tree-cfg.c (estimate_operator_cost): Likewise.
32891 * tree-ssa-operands.c (get_expr_operands): Likewise.
32892 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
32893 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
32894 * doc/generic.texi: Add document for SAD_EXPR.
32895 * doc/md.texi: Add document for ssad and usad.
32897 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32899 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
32900 qualification in cast.
32902 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
32904 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
32905 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
32906 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
32907 (tree_function_decl): ... here.
32908 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
32909 streaming of vindex to ...
32910 (write_ts_function_decl_tree_pointers): ... here.
32911 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
32912 Do not stream DECL_VINDEX.
32913 (lto_input_ts_function_decl_tree_pointers): Stream it here.
32915 2014-06-24 Catherine Moore <clm@codesourcery.com>
32916 Sandra Loosemore <sandra@codesourcery.com>
32918 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
32919 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
32920 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
32922 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32924 * doc/invoke.texi (Warning Options): Remove duplicated
32925 -Wmaybe-uninitialized.
32927 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32929 PR tree-optimization/57742
32930 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
32931 (handle_builtin_malloc, handle_builtin_memset): New functions.
32932 (strlen_optimize_stmt): Call them.
32933 * passes.def: Move strlen after loop+dom but before vrp.
32935 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32938 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
32939 model family 6 CPU with has_longmode never use a CPU without
32942 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
32945 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
32948 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32950 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
32951 * dominance.c (iterate_fix_dominators): Use hash_map instead of
32953 * hash-map.h: New file.
32954 * ipa-comdats.c: Use hash_map instead of pointer_map.
32956 * lto-section-out.c: Adjust.
32957 * lto-streamer.h: Replace pointer_map with hash_map.
32958 * symtab.c (verify_symtab): Likewise.
32959 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
32960 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
32961 * tree-streamer.h: Likewise.
32962 * tree-streamer.c: Adjust.
32963 * pointer-set.h: Remove pointer_map.
32965 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32967 * hash-table.h: Add a template arg to choose between storing values
32968 and storing pointers to values, and then provide partial
32969 specializations for both.
32970 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
32971 should store, not the type values should point to.
32972 * tree-into-ssa.c (var_info_hasher): Likewise.
32973 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
32974 * tree-complex.c: Adjust.
32975 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
32976 table instead of int_tree_map *.
32977 * tree-parloops.c: Adjust.
32978 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
32979 type is being stored.
32980 * tree-vectorizer.c: Adjust.
32982 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32984 * hash-table.h: Remove a layer of indirection from hash_table so that
32985 it contains the hash table's data instead of a pointer to the data.
32986 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
32987 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
32988 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
32989 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
32990 fold-const.c, gcse.c, ggc-common.c,
32991 gimple-ssa-strength-reduction.c, gimplify.c,
32992 graphite-clast-to-gimple.c, graphite-dependences.c,
32993 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
32994 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
32995 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
32996 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
32997 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
32998 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
32999 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
33000 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
33001 tree-ssa-live.c, tree-ssa-loop-im.c,
33002 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
33003 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
33004 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33005 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
33006 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
33007 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
33008 vtable-verify.c, vtable-verify.h: Adjust.
33010 2014-06-24 Richard Biener <rguenther@suse.de>
33012 PR tree-optimization/61572
33013 * tree-ssa-sink.c (statement_sink_location): Do not sink
33014 loads from hard registers.
33016 2014-06-24 Jakub Jelinek <jakub@redhat.com>
33018 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
33019 not mentioned in clauses use private clause if the iterator is
33020 declared in #pragma omp for simd, and when adding lastprivate
33021 instead, add it to the outer #pragma omp for too. Diagnose
33022 if the variable is private in outer context. For simd collapse > 1
33023 loops, replace all iterators with temporaries.
33024 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
33025 same even in collapse > 1 loops.
33027 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
33028 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
33030 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
33031 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
33033 (gimplify_adjust_omp_clauses): Likewise.
33034 * omp-low.c (lower_rec_simd_input_clauses,
33035 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
33036 safelen the same as safelen(1).
33037 * tree-nested.c (convert_nonlocal_omp_clauses,
33038 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
33039 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
33040 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
33041 Fixup handling of GIMPLE_OMP_TARGET.
33042 (convert_tramp_reference_stmt, convert_gimple_call): Handle
33045 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
33047 PR tree-optimization/61554
33048 * tree-ssa-propagate.c: Include "bitmap.h".
33049 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
33050 properly update constructor/destructor.
33051 (substitute_and_fold_dom_walker::before_dom_children):
33052 Remove call to gimple_purge_dead_eh_edges, add bb->index to
33053 need_eh_cleaup instead.
33054 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
33057 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33059 * varpool.c (dump_varpool_node): Dump used_by_single_function.
33060 * tree-pass.h (make_pass_ipa_single_use): New pass.
33061 * cgraph.h (used_by_single_function): New flag.
33062 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
33064 * passes.def (pass_ipa_single_use): Scedule.
33065 * ipa.c (BOTTOM): New macro.
33066 (meet): New function
33067 (propagate_single_user): New function.
33068 (ipa_single_use): New function.
33069 (pass_data_ipa_single_use): New pass.
33070 (pass_ipa_single_use): New pass.
33071 (pass_ipa_single_use::gate): New gate.
33072 (make_pass_ipa_single_use): New function.
33074 2014-06-23 Kai Tietz <ktietz@redhat.com>
33077 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
33078 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
33080 2014-06-23 Richard Biener <rguenther@suse.de>
33082 * tree-ssa-loop.c (gate_loop): New function.
33083 (pass_tree_loop::gate): Call it.
33084 (pass_data_tree_no_loop, pass_tree_no_loop,
33085 make_pass_tree_no_loop): New.
33086 * tree-vectorizer.c: Include tree-scalar-evolution.c
33087 (pass_slp_vectorize::execute): Initialize loops and SCEV if
33089 (pass_slp_vectorize::clone): New method.
33090 * timevar.def (TV_TREE_NOLOOP): New.
33091 * tree-pass.h (make_pass_tree_no_loop): Declare.
33092 * passes.def (pass_tree_no_loop): New pass group with
33095 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
33098 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
33099 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
33101 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33103 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
33104 "yes" where needed.
33106 2014-06-23 Alan Modra <amodra@gmail.com>
33109 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
33110 to zero on debug statements.
33112 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33115 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
33116 Ignore third operand if present by marking qualifier_internal.
33118 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
33120 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
33122 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
33123 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
33124 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
33125 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
33126 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
33127 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
33128 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
33129 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
33130 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
33131 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
33132 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
33133 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
33134 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
33135 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
33136 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
33137 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
33138 logic in GCC vector extensions
33140 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
33141 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
33142 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
33143 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
33144 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
33145 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
33146 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
33147 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
33148 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
33149 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
33151 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
33153 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
33156 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
33157 (vget_low_s64): Use __GET_LOW macro.
33158 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
33159 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
33160 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
33161 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
33162 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
33164 (vcombine_s64): Use GCC vector extensions; remove cast.
33165 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
33166 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
33167 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
33168 Fix type signature; remove cast.
33170 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33173 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
33175 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
33177 (BUILTIN_VD1): New.
33178 (BUILTIN_VD_RE): Remove.
33179 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
33180 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
33181 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
33182 variant but not df.
33183 (vreinterpretv1df*, vreinterpret*v1df): New.
33184 (vreinterpretdf*, vreinterpret*df): Remove.
33185 * config/aarch64/aarch64-simd.md (aarch64_create,
33186 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
33187 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
33189 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
33190 (vcreate_f64): Remove cast, use v1df builtin.
33191 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
33192 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
33193 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
33194 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
33195 vmov_n_f64, vst1_f64): Use gcc vector extensions.
33196 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
33197 add range check using __builtin_aarch64_im_lane_boundsi.
33198 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
33199 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
33200 type signature, use gcc vector extensions.
33201 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
33202 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
33203 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
33204 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
33205 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
33206 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
33207 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
33208 vreinterpret_u64_f64): Use v1df builtin not df.
33210 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33212 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
33215 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33217 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
33220 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33222 * loop-invariant.c (pre_check_invariant_p): New function.
33223 (find_invariant_insn): Call pre_check_invariant_p.
33225 2014-06-22 Richard Henderson <rth@redhat.com>
33228 * compare-elim.c (struct comparison): Add eh_note.
33229 (find_comparison_dom_walker::before_dom_children): Don't eliminate
33230 a redundant comparison in a different EH region. Purge EH edges if
33233 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33235 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
33236 (var_shift): Use it.
33237 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
33238 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33239 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33240 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33241 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33242 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
33243 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
33244 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
33245 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
33246 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
33247 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
33248 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
33249 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
33250 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
33251 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
33252 *rotldi3_internal15be): Use the new attribute. Merge register and
33253 integer alternatives.
33255 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33257 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
33258 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
33259 split, *ashrdi3_internal3 and split): Delete, merge into...
33260 (ashr<mode>3): New expander.
33261 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
33262 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
33264 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33266 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
33267 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
33268 *rotldi3_internal3 and split): Delete, merge into...
33269 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
33270 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
33271 Use "rotlw" extended mnemonic.
33273 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33275 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
33276 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
33277 and split, *ashldi3_internal3 and split): Delete, merge into...
33278 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
33279 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
33281 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33283 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
33284 (lshrsi3, two anonymous define_insns and define_splits,
33285 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
33286 *lshrdi3_internal3 and split): Delete, merge into...
33287 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
33288 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
33290 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33292 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
33293 Remove "O" alternative.
33295 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
33297 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
33298 (mips_move_from_gpr_cost): Likewise.
33299 (mips_register_move_cost): Update accordingly.
33300 (mips_secondary_reload_class): Remove name of in_p.
33302 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
33305 * config/i386/i386.md (x86_64_shrd, x86_shrd,
33306 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
33308 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33310 * config/nios2/nios2.c: Include "builtins.h".
33312 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33314 * cgraph.h (tls_model_names): New variable.
33315 * print-tree.c (print_node): Simplify.
33316 * varpool.c (tls_model_names): New variable.
33317 (dump_varpool_node): Output tls model.
33319 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33321 * ipa-visibility.c (function_and_variable_visibility): Disable
33322 temporarily local aliases for some targets.
33324 2014-06-20 Marek Polacek <polacek@redhat.com>
33326 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
33327 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
33328 into SANITIZE_UNDEFINED.
33329 * doc/invoke.texi: Describe -fsanitize=bounds.
33330 * gimplify.c (gimplify_call_expr): Add gimplification of internal
33331 functions created in the FEs.
33332 * internal-fn.c: Move "internal-fn.h" after "tree.h".
33333 (expand_UBSAN_BOUNDS): New function.
33334 * internal-fn.def (UBSAN_BOUNDS): New internal function.
33335 * internal-fn.h: Don't define internal functions here.
33336 * opts.c (common_handle_option): Add -fsanitize=bounds.
33337 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
33338 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
33339 * tree-core.h: Define internal functions here.
33340 (struct tree_base): Add ifn field.
33341 * tree-pretty-print.c: Include "internal-fn.h".
33342 (dump_generic_node): Handle functions without CALL_EXPR_FN.
33343 * tree.c (get_callee_fndecl): Likewise.
33344 (build_call_expr_internal_loc): New function.
33345 * tree.def (CALL_EXPR): Update description.
33346 * tree.h (CALL_EXPR_IFN): Define.
33347 (build_call_expr_internal_loc): Declare.
33348 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
33350 (ubsan_type_descriptor): Change bool parameter to enum
33351 ubsan_print_style. Adjust the code. Add handling of
33353 (ubsan_expand_bounds_ifn): New function.
33354 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
33355 (ubsan_build_overflow_builtin): Likewise.
33356 (instrument_bool_enum_load): Likewise.
33357 (ubsan_instrument_float_cast): Likewise.
33358 * ubsan.h (enum ubsan_print_style): New enum.
33359 (ubsan_expand_bounds_ifn): Declare.
33360 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
33362 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
33364 * config/rs6000/rs6000.md: Append `DONE' to preparation
33365 statements of `bswap' pattern splitters.
33367 2014-06-20 Tom de Vries <tom@codesourcery.com>
33369 * target.def (call_fusage_contains_non_callee_clobbers): Update
33371 * doc/tm.texi: Regenerate.
33373 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33374 Max Ostapenko <m.ostapenko@partner.samsung.com>
33377 * asan.c (instrument_strlen_call): Fixed instrumentation of
33380 2014-06-20 Martin Jambor <mjambor@suse.cz>
33383 * ipa-prop.c (impossible_devirt_target): New function.
33384 (try_make_edge_direct_virtual_call): Use it, also instead of
33387 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33388 Max Ostapenko <m.ostapenko@partner.samsung.com>
33391 * asan.c (build_check_stmt): Add condition.
33393 2014-06-20 Martin Jambor <mjambor@suse.cz>
33396 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
33399 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33401 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
33403 (VCONQ): Make comment more helpful.
33405 * config/aarch64/aarch64-simd.md
33406 (aarch64_sqdmulh_lane<mode>):
33407 Use VCOND for operands 2. Update lane checking and flipping logic.
33408 (aarch64_sqrdmulh_lane<mode>): Likewise.
33409 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
33410 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
33411 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
33412 attribute of operand 3 to VCOND.
33413 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
33414 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33415 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
33416 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
33417 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33418 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
33420 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
33421 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
33422 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
33423 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
33424 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
33425 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
33426 operand to VCOND. Update lane flipping and bounds checking logic.
33427 (aarch64_sqdmlal2_lane<mode>): Likewise.
33428 (aarch64_sqdmlsl_lane<mode>): Likewise.
33429 (aarch64_sqdmull_lane<mode>): Likewise.
33430 (aarch64_sqdmull2_lane<mode>): Likewise.
33431 (aarch64_sqdmlal_laneq<mode>):
33432 Replace VCON usage with VCONQ.
33433 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
33434 (aarch64_sqdmlal2_laneq<mode>): Emit
33435 aarch64_sqdmlal2_laneq<mode>_internal insn.
33436 Replace VCON with VCONQ.
33437 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
33438 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33439 (aarch64_sqdmull_laneq<mode>): Emit
33440 aarch64_sqdmull_laneq<mode>_internal insn.
33441 Replace VCON with VCONQ.
33442 (aarch64_sqdmull2_laneq<mode>): Emit
33443 aarch64_sqdmull2_laneq<mode>_internal insn.
33444 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
33445 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
33446 of 3rd argument to int16x4_t.
33447 (vqdmlalh_lane_s16): Likewise.
33448 (vqdmlslh_lane_s16): Likewise.
33449 (vqdmull_high_lane_s16): Likewise.
33450 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
33451 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
33452 (vqdmlsl_lane_s16): Likewise.
33453 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
33454 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
33455 (vqdmlals_lane_s32): Likewise.
33456 (vqdmlsls_lane_s32): Likewise.
33457 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
33458 (vqdmulls_lane_s32): Likewise.
33459 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
33460 (vqdmlsl_lane_s32): Likewise.
33461 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
33462 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
33463 (vqrdmulhh_lane_s16): Likewise.
33464 (vqdmlsl_high_lane_s16): Likewise.
33465 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
33466 (vqdmlsl_high_lane_s32): Likewise.
33467 (vqrdmulhs_lane_s32): Likewise.
33469 2014-06-20 Tom de Vries <tom@codesourcery.com>
33471 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
33472 get_call_reg_set_usage.
33474 2014-06-20 Tom de Vries <tom@codesourcery.com>
33476 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
33477 it contains all call_used_regs.
33479 2014-06-20 Tom de Vries <tom@codesourcery.com>
33481 * final.c (collect_fn_hard_reg_usage): Add and use variable
33482 function_used_regs.
33484 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33486 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
33487 (set_init_priority, get_init_priority, set_fini_priority,
33488 get_fini_priority): New methods.
33489 * tree.c (init_priority_for_decl): Remove.
33490 (init_ttree): Do not initialize init priority.
33491 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
33492 (decl_priority_info): Remove.
33493 (decl_init_priority_insert): Rewrite.
33494 (decl_fini_priority_insert): Rewrite.
33495 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
33496 tree_priority_map_marked_p): Remove.
33497 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
33498 * lto-streamer-out.c (hash_tree): Do not hash priorities.
33499 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
33500 not output priorities.
33501 (pack_ts_function_decl_value_fields): Likewise.
33502 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33503 not input priorities.
33504 (unpack_ts_function_decl_value_fields): Likewise.
33505 * symtab.c (symbol_priority_map): Declare.
33506 (init_priority_hash): Declare.
33507 (symtab_unregister_node): Unregister from priority hash, too.
33508 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
33510 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
33511 (symbol_priority_info): New function.
33512 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
33514 * tree-core.h (tree_priority_map): Remove.
33516 2014-06-20 Jakub Jelinek <jakub@redhat.com>
33518 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
33519 0xff to uint64_t before shifting it up.
33521 2014-06-20 Julian Brown <julian@codesourcery.com>
33522 Chung-Lin Tang <cltang@codesourcery.com>
33524 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
33525 TARGET_THUMB1_ONLY. Add comments.
33527 2014-06-19 Tom de Vries <tom@codesourcery.com>
33529 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
33530 return type to void.
33531 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
33533 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33535 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
33536 as "move", from depends_on.
33538 2014-06-19 Terry Guo <terry.guo@arm.com>
33540 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
33543 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
33545 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
33547 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
33549 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
33552 * config/sh/sh.c (prepare_move_operands): Don't process TLS
33553 addresses here if reload in progress or completed.
33555 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33557 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
33558 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
33559 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
33560 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
33561 (mips_register_priority): New function that implements the target
33562 hook TARGET_REGISTER_PRIORITY.
33563 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
33564 (mips_lra_p): Likewise for TARGET_LRA_P.
33565 (TARGET_REGISTER_PRIORITY): Define macro.
33566 (TARGET_SPILL_CLASS): Likewise.
33567 (TARGET_LRA_P): Likewise.
33568 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
33570 (REG_CLASS_NAMES): Likewise.
33571 (REG_CLASS_CONTENTS): Likewise.
33572 (BASE_REG_CLASS): Use M16_SP_REGS.
33573 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
33574 New set attribute to enable alternatives depending on the register
33576 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
33577 (*lea64): Disable pattern for MIPS16.
33578 * config/mips/mips.opt (mlra): New option.
33580 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33582 * lra-constraints.c (base_to_reg): New function.
33583 (process_address): Use new function.
33585 2014-06-18 Tom de Vries <tom@codesourcery.com>
33587 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
33588 * config/aarch64/aarch64.c
33589 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
33590 (aarch64_emit_call_insn): New function.
33591 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
33593 * config/aarch64/aarch64.md (define_expand "call_internal")
33594 (define_expand "call_value_internal", define_expand "sibcall_internal")
33595 (define_expand "sibcall_value_internal"): New.
33596 (define_expand "call", define_expand "call_value")
33597 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
33598 expand variant and aarch64_emit_call_insn.
33600 2014-06-18 Radovan Obradovic <robradovic@mips.com>
33601 Tom de Vries <tom@codesourcery.com>
33603 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
33604 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33606 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
33607 clobbers to CALL_INSN_FUNCTION_USAGE.
33608 (define_expand "sibcall_internal")
33609 (define_expand "sibcall_value_internal"): New.
33610 (define_expand "call", define_expand "call_value"): Add argument to
33611 arm_emit_call_insn.
33612 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
33613 (define_expand "sibcall_value"): Use sibcall_value_internal and
33614 arm_emit_call_insn.
33616 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33618 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
33620 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33622 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
33625 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33627 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
33628 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
33629 annotations. Fix DWARF information.
33631 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33633 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
33634 __udivmoddi4, and fixups for negative operands.
33636 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33638 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
33640 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33642 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
33645 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33647 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
33650 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33652 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
33653 describing register usage on function entry and exit.
33655 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33657 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
33658 (__aeabi_ldivmod): Fix whitespace.
33660 2014-06-18 Andreas Schwab <schwab@suse.de>
33662 * doc/md.texi (Standard Names): Use @itemx for grouped items.
33663 Remove blank line after @item.
33665 2014-06-18 Richard Henderson <rth@redhat.com>
33668 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
33670 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33672 * config/arm/arm.c (neon_vector_mem_operand): Allow register
33673 POST_MODIFY for neon loads and stores.
33674 (arm_print_operand): Output post-index register for neon loads and
33677 2014-06-18 Richard Biener <rguenther@suse.de>
33679 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
33681 2014-06-18 Richard Biener <rguenther@suse.de>
33683 * tree-pass.h (make_pass_dce_loop): Remove.
33684 * passes.def: Replace pass_dce_loop with pass_dce.
33685 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
33686 changed free niter estimates and reset the scev cache.
33687 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
33688 make_pass_dce_loop): Remove.
33689 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
33690 (fini_copy_prop): Return whether something changed. Always
33691 let substitute_and_fold perform DCE and free niter estimates
33692 and reset the scev cache if so.
33693 (execute_copy_prop): If sth changed schedule cleanup-cfg.
33694 (pass_data_copy_prop): Do not unconditionally schedule
33695 cleanup-cfg or update-ssa.
33697 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33699 PR tree-optimization/61518
33700 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33701 reduction var is used in reduction stmt or phi-function only.
33703 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33705 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
33707 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33709 PR tree-optimization/61517
33710 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
33711 whose rhs's first tree is the source expression instead of the
33713 (find_bswap_or_nop): Likewise.
33714 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
33715 gimple stmt whose rhs's first tree is the source. In the memory source
33716 case, move the stmt to be replaced close to one of the original load to
33717 avoid the problem of a store between the load and the stmt's original
33719 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
33722 2014-06-18 Andreas Schwab <schwab@suse.de>
33724 PR rtl-optimization/54555
33725 * postreload.c (move2add_use_add2_insn): Substitute
33726 STRICT_LOW_PART only if it is cheaper.
33728 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
33730 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
33731 Do not use unspec as call operand. Use memory_operand instead of
33732 memory_nox32_operand and add "m" operand constraint. Disable
33733 pattern for TARGET_X32.
33734 (*sibcall_pop_memory): Ditto.
33735 (*sibcall_value_memory): Ditto.
33736 (*sibcall_value_pop_memory): Ditto.
33737 (sibcall peepholes): Merge SImode and DImode patterns using
33738 W mode iterator. Use memory_operand instead of memory_nox32_operand.
33739 Disable pattern for TARGET_X32. Check if eliminated register is
33740 really dead after call insn. Generate call RTX without unspec operand.
33741 (sibcall_value peepholes): Ditto.
33742 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
33743 instead of memory_nox32_operand. Check if eliminated register is
33744 really dead after call insn. Generate call RTX without unspec operand.
33745 (sibcall_value_pop peepholes): Ditto.
33746 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
33748 2014-06-18 Terry Guo <terry.guo@arm.com>
33751 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
33754 2014-06-18 Olivier Hainque <hainque@adacore.com>
33756 * tree-core.h (tree_block): Add an "end_locus" field, allowing
33757 memorization of the end of block source location.
33758 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
33759 * gimplify.c (gimplify_bind_expr): Propagate the block start and
33760 end source location info we have on the block entry/exit code we
33763 2014-06-18 Richard Biener <rguenther@suse.de>
33765 * common.opt (fssa-phiopt): New option.
33766 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
33768 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
33769 * doc/invoke.texi (-fssa-phiopt): Document.
33771 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33773 * genattrtab.c (n_bypassed): New variable.
33774 (process_bypasses): Initialise n_bypassed.
33775 Count number of bypassed reservations.
33776 (make_automaton_attrs): Allocate space for bypassed reservations
33777 rather than number of bypasses.
33779 2014-06-18 Richard Biener <rguenther@suse.de>
33781 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
33782 we propagated anything.
33783 (substitute_and_fold_dom_walker::before_dom_children): Something
33784 changed if we propagated into PHI arguments.
33785 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
33788 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
33790 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
33792 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
33793 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
33794 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
33795 Introduces alternative way of loads group permutaions.
33796 (vect_transform_grouped_load): Try alternative way of permutations.
33798 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33800 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
33801 changed in ORT_TARGET region, don't jump to do_outer.
33802 (struct gimplify_adjust_omp_clauses_data): New type.
33803 (gimplify_adjust_omp_clauses_1): Adjust for data being
33804 a struct gimplify_adjust_omp_clauses_data pointer instead
33805 of tree *. Pass pre_p as a new argument to
33806 lang_hooks.decls.omp_finish_clause hook.
33807 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
33808 splay_tree_foreach to pass both list_p and pre_p.
33809 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
33810 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
33811 gimplify_adjust_omp_clauses callers.
33812 * langhooks.c (lhd_omp_finish_clause): New function.
33813 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
33814 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
33815 * langhooks.h (struct lang_hooks_for_decls): Add a new
33816 gimple_seq * argument to omp_finish_clause hook.
33817 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
33818 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
33819 (scan_omp_parallel, lower_omp_for): When adding
33820 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
33821 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
33822 * tree-nested.c (convert_nonlocal_omp_clauses,
33823 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
33824 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
33826 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
33828 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
33829 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
33831 2014-06-17 Xinliang David Li <davidxl@google.com>
33833 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
33834 * passes.c (pass_init_dump_file): Do not set initialize
33835 flag to false unconditionally.
33837 2014-06-17 Richard Biener <rguenther@suse.de>
33839 * genopinit.c (main): Use vec<>::qsort method.
33840 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
33842 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
33844 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
33846 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
33847 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
33848 (mips_move_to_gpr_cost): Remove ST_REGS case.
33849 (mips_move_from_gpr_cost): Likewise.
33850 (mips_register_move_cost): Likewise.
33851 (mips_secondary_reload_class): Likewise.
33853 2014-06-17 Richard Biener <rguenther@suse.de>
33855 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
33856 (pass_all_optimizations): Move 3rd copy-prop pass from after
33857 fre to before ifcombine/phiopt.
33859 2014-06-17 Richard Biener <rguenther@suse.de>
33861 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
33862 and allow all blocks to be forwarders.
33864 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
33867 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
33868 variable 'size'; calculate 'size' right in the front; use
33869 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
33870 pcum->aapcs_stack_words.
33872 2014-06-17 Nick Clifton <nickc@redhat.com>
33874 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
33875 (umulhi3, mulsidi3, umulsidi3): Likewise.
33877 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
33879 PR middle-end/61508
33880 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
33881 check for section name.
33883 2014-06-17 Richard Biener <rguenther@suse.de>
33885 * tree-ssa-propagate.c: Include domwalk.h.
33886 (substitute_and_fold): Outline main worker into a domwalker ...
33887 (substitute_and_fold_dom_walker::before_dom_children): ... here.
33888 Schedule stmts we can fully propagate for removal. Remove
33890 (substitute_and_fold): Apply a dominator walk to perform
33891 substitution. Process stmts scheduled for removal here.
33893 2014-06-17 Richard Biener <rguenther@suse.de>
33895 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
33896 of PHI node moving.
33898 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
33900 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
33901 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
33902 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33903 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
33904 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
33906 (get_fpscr) : Likewise.
33908 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33910 PR rtl-optimization/61325
33911 * lra-constraints.c (valid_address_p): Add forward declaration.
33912 (simplify_operand_subreg): Check address validity before and after
33913 alter_reg of memory subreg.
33915 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
33917 * config/i386/i386.c (decide_alg): Correctly handle
33918 maximum size of stringop algorithm.
33920 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33922 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
33924 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33926 PR rtl-optimization/61522
33927 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
33929 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
33932 * symtab.c (symtab_node::reset_section): New method.
33933 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
33935 * cgraph.h (reset_section): Declare.
33936 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
33937 do not consider comdat locals.
33938 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
33940 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
33941 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
33942 reset sections of symbols dragged out of the comdats.
33943 (function_and_variable_visibility): Reset sections of
33946 2014-06-16 Richard Biener <rguenther@suse.de>
33948 PR tree-optimization/61482
33949 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
33950 [-INF(OVF), +INF(OVF)] range.
33952 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
33954 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
33955 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
33956 handling 32-bit multiplication.
33958 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
33960 PR middle-end/61430
33961 * lra-lives.c (process_bb_lives): Skip creating copy during
33962 insn scan when src/dest has constrained to same regno.
33964 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33966 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
33967 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
33969 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33971 * asan.c (check_func): New function.
33972 (maybe_create_ssa_name): Likewise.
33973 (build_check_stmt_with_calls): Likewise.
33974 (use_calls_p): Likewise.
33975 (report_error_func): Change interface.
33976 (build_check_stmt): Allow non-integer lengths; add support
33978 (asan_instrument): Likewise.
33979 (instrument_mem_region_access): Moved code to build_check_stmt.
33980 (instrument_derefs): Likewise.
33981 (instrument_strlen_call): Likewise.
33982 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
33983 * doc/invoke.texi: Describe new parameter.
33984 * params.def: Define new parameter.
33985 * params.h: Likewise.
33986 * sanitizer.def: Describe new builtins.
33988 2014-06-16 Richard Biener <rguenther@suse.de>
33990 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33991 Make all defs available at the end.
33992 (eliminate): If we remove a PHI node schedule cfg-cleanup.
33994 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33997 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
33999 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
34002 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
34003 initialization. Replace remaining use of uid.
34005 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
34007 * c-family/c-common.c (handle_tls_model_attribute): Use
34008 set_decl_tls_model.
34009 * c-family/c-common.c (handle_tls_model_attribute): Use
34010 set_decl_tls_model.
34011 * cgraph.h (struct varpool_node): Add tls_model.
34012 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
34013 * tree.h (DECL_TLS_MODEL): Update.
34014 (DECL_THREAD_LOCAL_P): Check that variable is static.
34015 (decl_tls_model): Declare.
34016 (set_decl_tls_model): Declare.
34017 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
34018 set symbol prorperties.
34019 (get_emutls_init_templ_addr): Cleanup.
34020 (new_emutls_decl): Update.
34021 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
34022 (lto_input_varpool_node): Likewise.
34023 * lto-streamer-out.c (hash_tree): Likewise.
34024 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
34025 not stream DECL_TLS_MODEL.
34026 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
34027 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
34029 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34031 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
34033 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34035 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
34036 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
34038 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
34039 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
34040 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
34041 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
34042 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
34043 (df_get_artificial_defs, df_get_artificial_uses)
34044 (df_single_def, df_single_use): Update accordingly.
34045 (df_refs_chain_dump): Take the first element in a linked list as
34046 parameter, rather than a pointer to an array of pointers.
34047 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
34048 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
34049 (df_chain_create_bb_process_use): Likewise.
34050 (df_md_bb_local_compute_process_def): Likewise.
34051 * fwprop.c (process_defs, process_uses): Likewise.
34052 (register_active_defs, update_uses): Likewise.
34053 (forward_propagate_asm): Update for new df_ref linking.
34054 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
34055 (df_null_ref_rec, df_null_mw_rec): Likewise.
34056 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
34058 (df_scan_free_bb_info): Remove check for null artificial_defs.
34059 (df_install_ref_incremental): Adjust for new df_ref linking.
34060 Use a single-element insertion rather than a full sort.
34061 (df_ref_chain_delete_du_chain): Take the first element
34062 in a linked list as parameter, rather than a pointer to an array of
34064 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
34065 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
34066 (df_insn_info_delete): Remove check for null defs and call to
34067 df_scan_free_mws_vec.
34068 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
34069 null rather than df_null_*_rec.
34070 (df_insn_rescan_debug_internal): Likewise, and update null
34071 checks in the same way. Remove check for null defs.
34072 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
34073 Move a single element rather doing a full sort.
34074 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
34076 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
34077 Initialize df_ref and df_mw_hardreg lists to null rather than
34079 (df_ref_compare): Take df_refs as parameter, transferring the
34080 old interface to...
34081 (df_ref_ptr_compare): ...this new function.
34082 (df_sort_and_compress_refs): Update accordingly.
34083 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
34084 old interface to...
34085 (df_mw_ptr_compare): ...this new function.
34086 (df_sort_and_compress_mws): Update accordingly.
34087 (df_install_refs, df_install_mws): Return a linked list rather than
34088 an array of pointers.
34089 (df_refs_add_to_chains): Assert that old lists are empty rather
34091 (df_insn_refs_verify): Don't handle null defs speciailly.
34092 * web.c (union_match_dups): Update for new df_ref linking.
34094 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34096 * df.h (df_ref_create, df_ref_remove): Delete.
34097 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
34098 (df_ref_remove): Likewise.
34100 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34102 * df.h (df_single_def, df_single_use): New functions.
34103 * ira.c (find_moveable_pseudos): Use them.
34105 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34107 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
34108 * df-problems.c (df_note_bb_compute): Use it.
34109 * regstat.c (regstat_bb_compute_ri): Likewise.
34111 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34113 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
34114 * cse.c (cse_extended_basic_block): Use them.
34115 * dce.c (mark_artificial_use): Likewise.
34116 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
34117 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34118 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
34119 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
34120 (df_simulate_initialize_backwards): Likewise.
34121 (df_simulate_finalize_backwards): Likewise.
34122 (df_simulate_initialize_forwards): Likewise.
34123 (df_md_simulate_artificial_defs_at_top): Likewise.
34124 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34125 * regrename.c (init_rename_info): Likewise.
34126 * regstat.c (regstat_bb_compute_ri): Likewise.
34127 (regstat_bb_compute_calls_crossed): Likewise.
34129 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34131 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
34132 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
34133 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
34134 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
34135 * combine.c (create_log_links): Likewise.
34136 * compare-elim.c (find_flags_uses_in_insn): Likewise.
34137 (try_eliminate_compare): Likewise.
34138 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
34139 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
34140 (remove_reg_equal_equiv_notes_for_defs): Likewise.
34141 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
34142 (word_dce_process_block, dce_process_block): Likewise.
34143 * ddg.c (def_has_ccmode_p): Likewise.
34144 * df-core.c (df_bb_regno_first_def_find): Likewise.
34145 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
34146 * df-problems.c (df_rd_simulate_one_insn): Likewise.
34147 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34148 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
34149 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
34150 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
34151 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
34152 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
34153 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
34154 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
34155 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34156 * fwprop.c (local_ref_killed_between_p): Likewise.
34157 (all_uses_available_at, free_load_extend): Likewise.
34158 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
34159 * hw-doloop.c (scan_loop): Likewise.
34160 * ifcvt.c (dead_or_predicable): Likewise.
34161 * init-regs.c (initialize_uninitialized_regs): Likewise.
34162 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
34163 (process_bb_node_lives): Likewise.
34164 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
34165 (find_moveable_pseudos): Likewise.
34166 * loop-invariant.c (check_dependencies, record_uses): Likewise.
34167 * recog.c (peep2_find_free_register): Likewise.
34168 * ree.c (get_defs): Likewise.
34169 * regstat.c (regstat_bb_compute_ri): Likewise.
34170 (regstat_bb_compute_calls_crossed): Likewise.
34171 * sched-deps.c (find_inc, find_mem): Likewise.
34172 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
34173 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
34174 * shrink-wrap.c (requires_stack_frame_p): Likewise.
34175 (prepare_shrink_wrap): Likewise.
34176 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
34177 * web.c (union_defs, pass_web::execute): Likewise.
34178 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
34179 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
34181 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
34183 * lra-assign.c (assign_by_spills): Add code to assign vector regs
34184 to inheritance pseudos.
34185 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
34187 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
34190 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
34191 (BU_MISC_2): Rename to ...
34192 (BU_LDBL128_2): ... this.
34193 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
34194 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
34195 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
34196 RS6000_BTM_LDBL128.
34197 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
34198 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
34199 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
34200 (unpacktf_1): Likewise.
34201 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
34202 (__builtin_longdouble_dw1): Likewise.
34203 * doc/sourcebuild.texi (longdouble128): Document.
34205 2014-06-13 Jeff Law <law@redhat.com>
34207 PR rtl-optimization/61094
34208 PR rtl-optimization/61446
34209 * ree.c (combine_reaching_defs): Get the mode for the copy from
34210 the extension insn rather than the defining insn.
34212 2014-06-13 Dehao Chen <dehao@google.com>
34214 * dwarf2out.c (add_linkage_name): Emit more linkage name.
34216 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
34218 * doc/install.texi (--enable-linker-plugin-configure-flags)
34219 (--enable-linker-plugin-flags): Document new flags.
34221 2014-06-13 Martin Jambor <mjambor@suse.cz>
34224 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
34225 cache_token if returning early.
34227 2014-06-13 Nick Clifton <nickc@redhat.com>
34229 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
34230 requested alignment is active.
34231 (LABEL_ALIGN): Likewise.
34232 (LOOP_ALIGN): Likewise.
34234 2014-06-13 Richard Biener <rguenther@suse.de>
34236 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34237 Rewrite to propagate the VN result into all uses where
34238 possible and to remove stmts becoming dead because of that.
34239 (eliminate): Generalize stmt removal handling, remove in
34240 reverse dominator order to support proper debug stmt
34241 generation. Update stmts before removing stmts.
34242 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
34244 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34246 PR tree-optimization/61375
34247 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
34248 symbolic number cannot be represented in an uint64_t.
34249 (find_bswap_or_nop_1): Likewise.
34251 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34253 * symtab.c (symtab_node::reset_section): New method.
34254 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34256 * cgraph.h (reset_section): Declare.
34257 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34258 do not consider comdat locals.
34259 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34261 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34262 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34263 reset sections of symbols dragged out of the comdats.
34264 (function_and_variable_visibility): Reset sections of
34267 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34269 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
34270 to use symtab and decl_binds_to_current_def_p
34271 * tree-vectorizer.c (increase_alignment): Increase alignment
34272 of alias target, too.
34274 2014-06-12 Jakub Jelinek <jakub@redhat.com>
34276 PR middle-end/61486
34277 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
34278 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
34279 if outer combined construct is distribute.
34280 (gimplify_omp_for): For OMP_DISTRIBUTE set
34281 gimplify_omp_ctxp->distribute.
34282 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
34283 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
34284 mapping into decl map.
34286 2014-06-12 Jason Merrill <jason@redhat.com>
34288 * common.opt (fabi-version): Change default to 0.
34290 2014-06-12 Jason Merrill <jason@redhat.com>
34292 * toplev.c (process_options): Reject -fabi-version=1.
34294 2014-06-12 Jeff Law <law@redhat.com>
34296 PR tree-optimization/61009
34297 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
34298 value when we stop processing a block due to problematic PHIs.
34300 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
34302 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
34303 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
34304 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
34305 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
34306 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
34307 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
34308 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
34309 are not in the spec.
34311 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
34314 * config/aarch64/aarch64-modes.def: Add V1DFmode.
34315 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
34318 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
34320 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
34322 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
34325 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
34326 loading from address spaces.
34328 2014-06-12 Martin Liska <mliska@suse.cz>
34331 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
34332 statement is reachable.
34334 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34336 * symtab.c (section_hash): New hash.
34337 (symtab_unregister_node): Clear section before freeing.
34338 (hash_section_hash_entry): New haser.
34339 (eq_sections): New function.
34340 (symtab_node::set_section_for_node): New method.
34341 (set_section_1): Update.
34342 (symtab_node::set_section): Take string instead of tree as parameter.
34343 (symtab_resolve_alias): Update.
34344 * cgraph.h (section_hash_entry_d): New structure.
34345 (section_hash_entry): New typedef.
34346 (cgraph_node): Change comdat_group_ to x_comdat_group,
34347 change section_ to x_section and turn into section_hash_entry;
34348 update accestors; put set_section_for_node offline.
34349 * tree.c (decl_section_name): Turn into string.
34350 (set_decl_section_name): Change parameter to be string.
34351 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
34352 * sdbout.c (sdbout_one_type): Update.
34353 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
34354 * varasm.c (IN_NAMED_SECTION, get_named_section,
34355 resolve_unique_section, hot_function_section, get_named_text_section,
34356 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
34357 make_decl_rtl, default_unique_section): Update.
34358 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
34359 (c6x_elf_unique_section): Update.
34360 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
34361 * config/pa/pa.c (pa_function_section): Update.
34362 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
34363 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
34364 * config/arc/arc.c (arc_in_small_data_p): Update.
34365 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
34366 * config/mcore/mcore.c (mcore_unique_section): Update.
34367 * config/mips/mips.c (mips16_build_function_stub): Update.
34368 (mips16_build_call_stub): Update.
34369 (mips_function_rodata_section): Update.
34370 (mips_in_small_data_p): Update.
34371 * config/score/score.c (score_in_small_data_p): Update.
34372 * config/rx/rx.c (rx_in_small_data): Update.
34373 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
34374 (rs6000_xcoff_asm_named_section): Update.
34375 (rs6000_xcoff_unique_section): Update.
34376 * config/frv/frv.c (frv_string_begins_with): Update.
34377 (frv_in_small_data_p): Update.
34378 * config/v850/v850.c (v850_encode_data_area): Update.
34379 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
34380 (bfin_handle_l1_data_attribute): Update.
34381 (bfin_handle_l2_attribute): Update.
34382 * config/mep/mep.c (mep_unique_section): Update.
34383 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
34385 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
34386 (h8300_handle_tiny_data_attribute): Update.
34387 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
34388 (m32r_in_small_data_p): Update.
34389 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
34390 * config/i386/i386.c (ix86_in_large_data_p): Update.
34391 * config/i386/winnt.c (i386_pe_unique_section): Update.
34392 * config/darwin.c (darwin_function_section): Update.
34393 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
34394 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34395 (new_emutls_decl): Update.
34396 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
34397 input_varpool_node): Update.
34398 (ead_string_cst): Turn to ...
34399 (read_string): ... this one.
34400 * dwarf2out.c (secname_for_decl): Update.
34401 * asan.c (asan_protect_global): Update.
34403 2014-06-11 DJ Delorie <dj@redhat.com>
34405 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
34407 * config/rx/rx.c (rx_option_override): Likewise.
34408 (rx_align_for_label): Likewise.
34410 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
34412 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
34414 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
34417 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34419 * common.md: New file.
34420 * doc/md.texi: Update description of generic, machine-independent
34422 * config/s390/constraints.md (e): Delete.
34423 * Makefile.in (md_file): Include common.md.
34424 * config/m32c/t-m32c (md_file): Likewise.
34425 * genpreds.c (general_mem): New array.
34426 (generic_constraint_letters): Remove constraints now defined by
34428 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34429 Allow the first character to be '<' or '>' as well.
34430 * genoutput.c (general_mem): New array.
34431 (indep_constraints): Remove constraints now defined by common.md.
34432 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34433 Remove special handling of 'm'.
34434 * ira-costs.c (record_reg_classes): Remove special handling of
34435 constraints now defined by common.md.
34436 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34437 * ira-lives.c (single_reg_class): Likewise.
34438 (ira_implicitly_set_insn_hard_regs): Likewise.
34439 * lra-constraints.c (reg_class_from_constraints): Likewise.
34440 (process_alt_operands, process_address, curr_insn_transform): Likewise.
34441 * postreload.c (reload_cse_simplify_operands): Likewise.
34442 * reload.c (push_secondary_reload, scratch_reload_class)
34443 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34444 * reload1.c (maybe_fix_stack_asms): Likewise.
34445 * targhooks.c (default_secondary_reload): Likewise.
34446 * stmt.c (parse_output_constraint): Likewise.
34447 * recog.c (preprocess_constraints): Likewise.
34448 (constrain_operands, peep2_find_free_register): Likewise.
34449 (asm_operand_ok): Likewise, but add a comment saying why 'o'
34450 must be handled specially.
34452 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34454 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
34455 * genpreds.c (have_const_dbl_constraints): Delete.
34456 (add_constraint): Don't set it.
34457 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
34458 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
34459 constraints using the lookup_constraint logic.
34460 * ira-lives.c (single_reg_class): Likewise.
34461 * ira.c (ira_setup_alts): Likewise.
34462 * lra-constraints.c (process_alt_operands): Likewise.
34463 * recog.c (asm_operand_ok, constrain_operands): Likewise.
34464 * reload.c (find_reloads): Likewise.
34466 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34468 * genpreds.c (const_int_start, const_int_end): New variables.
34469 (choose_enum_order): Output CONST_INT constraints before memory
34471 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
34473 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
34474 * ira.c (ira_setup_alts): Likewise.
34475 * lra-constraints.c (process_alt_operands): Likewise.
34476 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34477 * reload.c (find_reloads): Likewise.
34479 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34481 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
34482 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
34483 * recog.c (preprocess_constraints): Update accordingly.
34485 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34487 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
34488 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
34489 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
34490 * genpreds.c (print_type_tree): New function.
34491 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
34492 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
34493 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
34494 Write out enum constraint_type and get_constraint_type.
34495 * lra-constraints.c (satisfies_memory_constraint_p): Take a
34496 constraint_num rather than a constraint string.
34497 (satisfies_address_constraint_p): Likewise.
34498 (reg_class_from_constraints): Avoid old constraint macros.
34499 (process_alt_operands, process_address_1): Likewise.
34500 (curr_insn_transform): Likewise.
34501 * ira-costs.c (record_reg_classes): Likewise.
34502 (record_operand_costs): Likewise.
34503 * ira-lives.c (single_reg_class): Likewise.
34504 (ira_implicitly_set_insn_hard_regs): Likewise.
34505 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34506 * postreload.c (reload_cse_simplify_operands): Likewise.
34507 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34508 (constrain_operands, peep2_find_free_register): Likewise.
34509 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
34510 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34511 * reload1.c (maybe_fix_stack_asms): Likewise.
34512 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
34513 * targhooks.c (default_secondary_reload): Likewise.
34514 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
34515 to EXTRA_CONSTRAINT_STR.
34516 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
34518 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34520 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
34521 (write_constraint_satisfied_p_array): ...this new function.
34522 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
34524 (write_insn_preds_c): Update accordingly.
34526 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34528 * genpreds.c (write_lookup_constraint): Rename to...
34529 (write_lookup_constraint_1): ...this.
34530 (write_lookup_constraint_array): New function.
34531 (write_tm_preds_h): Define lookup_constraint as an inline function
34532 that uses write_lookup_constraint_array where possible.
34533 (write_insn_preds_c): Update for the changes above.
34535 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34537 * doc/md.texi (regclass_for_constraint): Rename to...
34538 (reg_class_for_constraint): ...this.
34539 * genpreds.c (num_constraints, enum_order, register_start)
34540 (register_end, satisfied_start, memory_start, memory_end)
34541 (address_start, address_end): New variables.
34542 (add_constraint): Count the number of constraints.
34543 (choose_enum_order): New function.
34544 (write_enum_constraint_num): Iterate over enum_order.
34545 (write_regclass_for_constraint): Rename to...
34546 (write_reg_class_for_constraint_1): ...this and update output
34548 (write_constraint_satisfied_p): Rename to...
34549 (write_constraint_satisfied_p_1): ...this and update output
34550 accordingly. Do nothing if all extra constraints are register
34552 (write_insn_extra_memory_constraint): Delete.
34553 (write_insn_extra_address_constraint): Delete.
34554 (write_range_function): New function.
34555 (write_tm_preds_h): Define constraint_satisfied_p and
34556 reg_class_for_constraint as inline functions that do a range check
34557 before calling the out-of-line function. Use write_range_function
34558 to implement insn_extra_{register,memory,address}_constraint,
34559 the first of which is new.
34560 (write_insn_preds_c): Update after above changes to write_* functions.
34561 (main): Call choose_enum_order.
34563 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
34565 PR tree-optimization/61306
34566 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
34567 expression instead of its size.
34568 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
34569 false to prevent optimization when the result is unpredictable due to
34570 arithmetic right shift of signed type with highest byte is set.
34571 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
34572 (init_symbolic_number): Likewise.
34573 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
34574 when the result is unpredictable due to sign extension.
34576 2014-06-11 Terry Guo <terry.guo@arm.com>
34578 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
34579 (*thumb1_addsi3): Ditto.
34580 (*thumb_subdi3): Ditto.
34581 (thumb1_subsi3_insn): Ditto.
34582 (*thumb_mulsi3): Ditto.
34583 (*thumb_mulsi3_v6): Ditto.
34584 (*thumb1_andsi3_insn): Ditto.
34585 (thumb1_bicsi3): Ditto.
34586 (*thumb1_iorsi3_insn): Ditto.
34587 (*thumb1_xorsi3_insn): Ditto.
34588 (*thumb1_ashlsi3): Ditto.
34589 (*thumb1_ashrsi3): Ditto.
34590 (*thumb1_lshrsi3): Ditto.
34591 (*thumb1_rotrsi3): Ditto.
34592 (*thumb1_negdi2): Ditto.
34593 (*thumb1_negsi2): Ditto.
34594 (*thumb1_abssi2): Ditto.
34595 (*thumb1_neg_abssi2): Ditto.
34596 (*thumb1_one_cmplsi2): Ditto.
34597 (*thumb1_zero_extendhisi2): Ditto.
34598 (*thumb1_zero_extendqisi2): Ditto.
34599 (*thumb1_zero_extendqisi2_v6): Ditto.
34600 (thumb1_extendhisi2): Ditto.
34601 (thumb1_extendqisi2): Ditto.
34602 (*thumb1_movdi_insn): Ditto.
34603 (*thumb1_movsi_insn): Ditto.
34604 (*thumb1_movhi_insn): Ditto.
34605 (thumb_movhi_clobber): Ditto.
34606 (*thumb1_movqi_insn): Ditto.
34607 (*thumb1_movhf): Ditto.
34608 (*thumb1_movsf_insn): Ditto.
34609 (*thumb_movdf_insn): Ditto.
34610 (movmem12b): Ditto.
34612 (cbranchqi4): Ditto.
34613 (cbranchsi4_insn): Ditto.
34614 (cbranchsi4_scratch): Ditto.
34615 (*negated_cbranchsi4): Ditto.
34616 (*tbit_cbranch): Ditto.
34617 (*tlobits_cbranch): Ditto.
34618 (*tstsi3_cbranch): Ditto.
34619 (*cbranchne_decr1): Ditto.
34620 (*addsi3_cbranch): Ditto.
34621 (*addsi3_cbranch_scratch): Ditto.
34622 (*thumb_cmpdi_zero): Ditto.
34623 (cstoresi_eq0_thumb1): Ditto.
34624 (cstoresi_ne0_thumb1): Ditto.
34625 (*cstoresi_eq0_thumb1_insn): Ditto.
34626 (*cstoresi_ne0_thumb1_insn): Ditto.
34627 (cstoresi_nltu_thumb1): Ditto.
34628 (cstoresi_ltu_thumb1): Ditto.
34629 (thumb1_addsi3_addgeu): Ditto.
34630 (*thumb_jump): Ditto.
34631 (*call_reg_thumb1_v5): Ditto.
34632 (*call_reg_thumb1): Ditto.
34633 (*call_value_reg_thumb1_v5): Ditto.
34634 (*call_value_reg_thumb1): Ditto.
34635 (*call_insn): Ditto.
34636 (*call_value_insn): Ditto.
34637 (thumb1_casesi_internal_pic): Ditto.
34638 (thumb1_casesi_dispatch): Ditto.
34639 (*thumb1_indirect_jump): Ditto.
34640 (prologue_thumb1_interwork): Ditto.
34641 (*epilogue_insns): Ditto.
34642 (consttable_1): Ditto.
34643 (consttable_2): Ditto.
34644 (tablejump): Ditto.
34645 (*thumb1_tablejump): Ditto.
34646 (thumb_eh_return): Ditto.
34647 (define_peephole2): Two of them are thumb1 only and got moved into
34648 new file thumb1.md.
34649 (define_split): Six of them are thumb1 only and got moved into new
34651 * config/arm/thumb1.md: New file comprised of above thumb1 only
34654 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34656 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
34657 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
34659 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
34660 (aarch64_crc_builtin_datum): New struct.
34661 (aarch64_crc_builtin_data): New.
34662 (aarch64_init_crc32_builtins): New function.
34663 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
34664 (aarch64_crc32_expand_builtin): New.
34665 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
34666 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
34667 __ARM_FEATURE_CRC32 when appropriate.
34668 (TARGET_CRC32): Define.
34669 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
34670 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
34671 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
34672 (aarch64_<crc_variant>): New pattern.
34673 * config/aarch64/arm_acle.h: New file.
34674 * config/aarch64/iterators.md (CRC): New int iterator.
34675 (crc_variant, crc_mode): New int attributes.
34676 * doc/aarch64-acle-intrinsics.texi: New file.
34677 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
34678 Include aarch64-acle-intrinsics.texi.
34680 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
34682 * tree-vect-data-refs.c (vect_grouped_store_supported): New
34683 check for stores group of length 3.
34684 (vect_permute_store_chain): New permutations for stores group of
34686 * tree-vect-stmts.c (vect_model_store_cost): Change cost
34687 of vec_perm_shuffle for the new permutations.
34689 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34691 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
34692 table rewriting temporarily on targets not supporting ONE_ONLY.
34694 2014-06-11 Richard Biener <rguenther@suse.de>
34696 PR middle-end/61437
34698 2014-06-04 Richard Biener <rguenther@suse.de>
34700 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34701 TREE_PUBLIC and DECL_EXTERNAL decls.
34703 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34705 * varasm.c (set_implicit_section): New function.
34706 (resolve_unique_section): Use it to set implicit section
34708 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
34709 (default_function_section): Likewise.
34710 (decl_binds_to_current_def_p): Constify argument.
34711 * varasm.h (decl_binds_to_current_def_p): Update prototype.
34712 * asan.c (asan_protect_global): Use
34713 symtab_get_node (decl)->implicit_section.
34714 * symtab.c (dump_symtab_base): Dump implicit sections.
34715 (verify_symtab_base): Verify sanity of sectoins and comdats.
34716 (symtab_resolve_alias): Alias share the section of its target.
34717 (set_section_1): New function.
34718 (symtab_node::set_section): Move here, recurse to aliases.
34719 (verify_symtab): Check for duplicated symtab lists.
34720 * tree-core.h (implicit_section_name_p): Remove.
34721 * tree-vect-data-refs.c: Include varasm.h.
34722 (vect_can_force_dr_alignment_p): Fix conditional on when
34723 decl bints to current definition; use
34724 symtab_get_node (decl)->implicit_section.
34725 * cgraph.c (cgraph_make_node_local_1): Fix section set.
34726 * cgraph.h (struct symtab_node): Add implicit_section.
34727 (set_section): Rename to ...
34728 (set_section_for_node): ... this one.
34729 (set_section): Declare.
34730 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
34731 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
34732 input_overwrite_node, input_varpool_node): Stream implicit_section.
34733 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
34734 removal; it will fail in LTO.
34736 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34738 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
34739 Change second alternative type to f_mcr.
34740 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
34741 and 12th alternatives' types to f_mcr and f_mrc.
34742 (*movdi_aarch64): Same for 12th and 13th alternatives.
34743 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
34744 (aarch64_movtilow_tilow): Change type to fmov.
34746 2014-06-10 Jiong Wang <jiong.wang@arm.com>
34748 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
34749 (aarch64_save_or_restore_callee_save_registers): Fix layout.
34751 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34753 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
34755 (aarch64_sqrdmulh_lane<mode>): Likewise.
34756 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34757 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34758 (aarch64_sqdmulh_laneq<mode>): New expander.
34759 (aarch64_sqrdmulh_laneq<mode>): Likewise.
34760 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
34761 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
34762 (aarch64_sqdmulh_lane<mode>): New expander.
34763 (aarch64_sqrdmulh_lane<mode>): Likewise.
34764 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34765 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34766 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
34767 (aarch64_sqdmlal_laneq<mode>): Likewise.
34768 (aarch64_sqdmlsl_lane<mode>): Likewise.
34769 (aarch64_sqdmlsl_laneq<mode>): Likewise.
34770 (aarch64_sqdmlal2_lane<mode>): Likewise.
34771 (aarch64_sqdmlal2_laneq<mode>): Likewise.
34772 (aarch64_sqdmlsl2_lane<mode>): Likewise.
34773 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
34774 (aarch64_sqdmull_lane<mode>): Likewise.
34775 (aarch64_sqdmull_laneq<mode>): Likewise.
34776 (aarch64_sqdmull2_lane<mode>): Likewise.
34777 (aarch64_sqdmull2_laneq<mode>): Likewise.
34779 2014-06-10 Richard Biener <rguenther@suse.de>
34781 PR tree-optimization/61438
34782 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
34783 (eliminate_dom_walker::before_dom_children): Only try to inhibit
34784 insertion of IVs if running PRE.
34785 (eliminate): Adjust.
34786 (pass_pre::execute): Likewise.
34787 (pass_fre::execute): Likewise.
34789 2014-06-10 Richard Biener <rguenther@suse.de>
34791 PR middle-end/61456
34792 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
34793 Do not use the main variant for the type comparison.
34794 (ncr_compar): Likewise.
34795 (nonoverlapping_component_refs_p): Likewise.
34797 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
34799 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
34800 REG_CFA_RESTORE mode.
34802 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
34804 * config/i386/i386.c (expand_vec_perm_pblendv): New.
34805 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
34806 expand_vec_perm_pblendv.
34808 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34810 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
34812 Simplify description of __crc32d and __crc32cd intrinsics.
34813 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
34816 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
34819 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
34820 * config.in: Regenerate.
34821 * configure: Likewise.
34823 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34825 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
34827 (intersect_static_var_sets): Remove.
34828 (propagate): Do not prune local statics.
34830 2014-06-10 Jakub Jelinek <jakub@redhat.com>
34833 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
34834 Set lastprivate_firstprivate even if omp_private_outer_ref
34835 langhook returns true.
34836 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
34837 langhook, call unshare_expr on new_var and call
34838 build_outer_var_ref to get the last argument.
34840 2014-06-10 Marek Polacek <polacek@redhat.com>
34843 * doc/extend.texi: Add cindex for transparent_union.
34845 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34847 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
34848 init_symbolic_number ().
34850 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
34852 PR middle-end/61141
34853 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
34854 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
34855 (verify_rtl_sharing): Likewise.
34857 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
34860 * tree.c (build_qualified_type): Use a canonical type for
34863 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34865 * config/arm/arm-modes.def: Remove XFmode.
34867 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
34870 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
34871 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
34872 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
34873 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
34874 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
34875 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
34876 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
34877 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
34878 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
34880 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
34882 * tree-core.h (tree_decl_with_vis): Remove section_name.
34884 2014-06-09 Kito Cheng <kito@0xlab.org>
34886 * ira.c (ira): Don't call init_caller_save if LRA enabled
34887 since LRA use its own infrastructure to handle that.
34889 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34891 * symtab.c (dump_symtab_base): Update dumping.
34892 (symtab_make_decl_local): Clear only DECL_COMDAT.
34893 * tree-vect-data-refs.c (Check that variable is static before
34894 tampering with sections.
34895 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
34896 (cgraph_create_virtual_clone): Likewise.
34897 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
34898 (decl_section_name, set_decl_section_name): New accessors.
34899 (find_decls_types_r): Do not walk section name
34900 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
34901 (decl_comdat_group, decl_comdat_group_id): Constify.
34902 (decl_section_name, set_decl_section_name): Update.
34903 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
34904 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
34905 (cgraph_make_node_local_1): Clear section and comdat group.
34906 * cgraph.h (set_comdat_group): Sanity check.
34907 (get_section, set_section): New.
34908 * ipa-comdats.c (ipa_comdats): Use get_section.
34909 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
34910 * lto-streamer-out.c: Do not follow section names.
34911 * c-family/c-common.c (handle_section_attribute): Update.
34912 * lto-cgraph.c (lto_output_node): Output section.
34913 (lto_output_varpool_node): Likewise.
34914 (read_comdat_group): Rename to ...
34915 (read_identifier): ... this one.
34916 (read_string_cst): New function.
34917 (input_node, input_varpool_node): Input section names.
34918 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34919 (new_emutls_decl): Update.
34920 (secname_for_decl): Check section names only of static vars.
34921 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
34922 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
34923 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34924 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34925 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
34926 * config/mcore/mcore.c (mcore_unique_section): Likewise.
34927 * config/mips/mips.c (mips16_build_function_stub): Likewise.
34928 * config/v850/v850.c (v850_insert_attributes): Likewise.
34929 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
34931 (h8300_handle_tiny_data_attribute): Likewise.
34932 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
34933 (bfin_handle_l2_attribute): Likewise.
34935 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34937 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
34938 remove static initializer.
34940 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34942 * varasm.c (use_blocks_for_decl_p): Check symbol table
34943 instead of alias attribute.
34944 (place_block_symbol): Recurse on aliases.
34946 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34948 * ipa-visibility.c: Include varasm.h
34949 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
34951 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34953 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
34954 outputting aliases.
34956 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
34958 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
34959 from test_insn into GGC space escape via SET_SRC.
34961 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
34963 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
34964 call statement, if any.
34965 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
34966 statements, if any. Tidy up.
34968 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34971 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
34972 iterators, VSX_D that handles 64-bit types, and VSX_LE that
34973 handles swapping the two 64-bit double words on little endian
34974 systems. Include V1TImode and optionally TImode in VSX_LE so that
34975 these types are properly swapped. Change all of the insns and
34976 splits that do the 64-bit swaps to use VSX_LE.
34977 (vsx_le_perm_load_<mode>): Likewise.
34978 (vsx_le_perm_store_<mode>): Likewise.
34979 (splitters for little endian memory operations): Likewise.
34980 (vsx_xxpermdi2_le_<mode>): Likewise.
34981 (vsx_lxvd2x2_le_<mode>): Likewise.
34982 (vsx_stxvd2x2_le_<mode>): Likewise.
34984 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
34987 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
34988 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
34989 and corresponding splitters. Zero extend general register
34990 or memory input operand to XMM temporary. Enable for
34991 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
34992 (floatunssi<mode>2): Update expander predicate.
34994 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
34996 PR rtl-optimization/61325
34997 * lra-constraints.c (process_address_1): Check scale equal to one
34998 to prevent transformation: base + scale * index => base + new_reg.
35000 2014-06-06 Richard Biener <rguenther@suse.de>
35002 PR tree-optimization/59299
35003 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
35005 (nearest_common_dominator_of_uses): Likewise.
35006 (statement_sink_location): Adjust. Support sinking loads.
35008 2014-06-06 Martin Jambor <mjambor@suse.cz>
35010 * ipa-prop.c (get_place_in_agg_contents_list): New function.
35011 (build_agg_jump_func_from_list): Likewise.
35012 (determine_known_aggregate_parts): Renamed to
35013 determine_locally_known_aggregate_parts. Moved some functionality
35014 to the two functions above, removed bound checks.
35016 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
35018 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
35019 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
35020 (aarch64_progress_pointer): Likewise.
35021 (aarch64_copy_one_part_and_move_pointers): Likewise.
35022 (aarch64_expand_movmen): Likewise.
35023 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
35024 * config/aarch64/aarch64.md (movmem<mode>): New.
35026 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
35028 * targhooks.c (default_add_stmt_cost): Call target specific
35029 hook instead of default one.
35031 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35033 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
35034 endianness instead of host endianness.
35035 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
35038 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35041 * function.c (instantiate_decls): Process the saved static chain.
35042 (expand_function_start): If not optimizing, save the static chain
35044 * tree-nested.c (convert_all_function_calls): Always create the static
35045 chain for nested functions if not optimizing.
35047 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35049 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
35051 2014-06-06 Richard Biener <rguenther@suse.de>
35053 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
35054 (construct_init_block): Likewise.
35055 (construct_exit_block): Likewise.
35056 (pass_expand::execute): Likewise.
35057 * graphite.c (graphite_transforms): Replace check for current_loops
35058 with a check for > 1 loops.
35059 (pass_graphite_transforms::execute): Adjust.
35060 * ipa-split.c (split_function): Remove check for current_loops.
35061 * omp-low.c (expand_parallel_call): Likewise.
35062 (expand_omp_for_init_counts): Likewise.
35063 (extract_omp_for_update_vars): Likewise.
35064 (expand_omp_for_generic): Likewise.
35065 (expand_omp_sections): Likewise.
35066 (expand_omp_target): Likewise.
35067 * tracer.c (tail_duplicate): Likewise.
35068 (pass_tracer::execute): Likewise.
35069 * trans-mem.c (expand_transaction): Likewise.
35070 * tree-complex.c (expand_complex_div_wide): Likewise.
35071 * tree-eh.c (lower_resx): Likewise.
35072 (cleanup_empty_eh_merge_phis): Likewise.
35073 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
35074 current_loops with a check for > 1 loops.
35075 (pass_predcom::execute): Adjust.
35076 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
35077 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
35078 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
35079 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
35080 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
35081 * tree-switch-conversion.c (process_switch): Likewise.
35082 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
35083 * tree-vrp.c (vrp_visit_phi_node): Likewise.
35084 (execute_vrp): Likewise.
35085 * ubsan.c (ubsan_expand_null_ifn): Likewise.
35087 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35089 * rtl.h (insn_location): Declare.
35090 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
35091 with UNKNOWN_LOCATION.
35092 * emit-rtl.c (insn_location): New function.
35093 * final.c (notice_source_line): Check that the instruction has a
35094 location before retrieving it and use insn_location.
35095 * modulo-sched.c (loop_single_full_bb_p): Likewise.
35096 * print-rtl.c (print_rtx): Likewise.
35098 2014-06-06 Richard Biener <rguenther@suse.de>
35100 * passes.def: Move 2nd VRP pass before phi-only-cprop.
35102 2014-06-06 Christian Bruel <christian.bruel@st.com>
35104 PR tree-optimization/43934
35105 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
35108 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
35110 * ira-lives.c (single_reg_class): Add missing break. Explicitly
35111 return NO_REGS for extra address and memory constraints. Handle
35112 operands that match (or are equivalent to something that matches)
35113 extra constant constraints. Ignore other non-register operands.
35115 2014-06-06 Alan Modra <amodra@gmail.com>
35118 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
35119 * doc/tm.texi: Regenerate.
35120 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
35121 Use throughout in place of REG_PARM_STACK_SPACE.
35122 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
35123 "incoming" param. Pass to rs6000_function_parms_need_stack.
35124 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
35125 prototype_p when incoming. Use function decl when incoming
35126 to handle K&R style functions.
35127 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
35128 (INCOMING_REG_PARM_STACK_SPACE): Define.
35130 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35133 * cfgexpand.c (expand_debug_expr): Use address space of nested
35134 TREE_TYPE for ADDR_EXPR and MEM_REF.
35136 2014-06-05 Jeff Law <law@redhat.com>
35138 PR tree-optimization/61289
35139 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
35140 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
35141 looking for those which match LHS. All callers changed.
35142 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
35143 parameters and code which manipulated them. All callers changed.
35144 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
35145 and DST_MAP parameters. Simplify invalidation code by just calling
35146 invalidate_equivalences. All callers changed.
35147 (thread_across_edge): Simplify now that we don't need to maintain
35148 the map of equivalences to invalidate.
35150 2014-06-05 Kai Tietz <ktietz@redhat.com>
35151 Richard Henderson <rth@redhat.com>
35154 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
35155 checking for !TARGET_X32.
35156 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
35157 (sibcall_intern): New define_insn, plus required peepholes.
35158 (sibcall_pop_intern): Likewise.
35159 (sibcall_value_intern): Likewise.
35160 (sibcall_value_pop_intern): Likewise.
35162 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
35164 * tree-inline.c (tree_function_versioning): Check DF info existence
35165 before accessing it.
35167 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35169 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
35171 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
35172 aarch64_frame hard_fp_offset and frame_size.
35173 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
35174 frame_size; remove original_frame_size.
35175 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
35176 (aarch64_initial_elimination_offset): Remove frame_size and
35177 offset. Use aarch64_frame frame_size.
35179 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35180 Jiong Wang <jiong.wang@arm.com>
35181 Renlin <renlin.li@arm.com>
35183 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
35184 initialization of R30 offset. Update offset. Iterate core
35185 regisers upto X30. Remove X29, X30 specific code.
35187 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35188 Jiong Wang <jiong.wang@arm.com>
35190 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
35191 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
35192 (aarch64_register_saved_on_entry): Adjust test.
35194 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35196 * config/aarch64/aarch64.h (machine_function): Move
35197 saved_varargs_size from here...
35198 (aarch64_frame): ... to here.
35200 * config/aarch64/aarch64.c (aarch64_expand_prologue)
35201 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
35202 (aarch64_initial_elimination_offset)
35203 (aarch64_setup_incoming_varargs): Adjust location of
35204 saved_varargs_size.
35206 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35208 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
35211 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
35212 Prachi Godbole <Prachi.Godbole@imgtec.com>
35214 * config/mips/mips-cpus.def: Add definition for p5600. Updated
35215 mips32r5 entry to use PROCESSOR_P5600.
35216 * config/mips/mips-tables.opt: Regenerate.
35217 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
35218 * config/mips/mips.c (mips_fmadd_bypass): New function.
35219 (mips_rtx_cost_data): Add costs for p5600.
35220 (mips_issue_rate): Add support for p5600.
35221 (mips_multipass_dfa_lookahead): Likewise.
35222 * config/mips/mips.h (TUNE_P5600): New define.
35223 (TUNE_MACC_CHAINS): Add TUNE_P5600.
35224 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
35225 * config/mips/mips.md: Include p5600.md.
35226 (processor): Add p5600.
35227 * config/mips/p5600.md: New file.
35229 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
35231 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
35232 * config/i386/predicates.md (palignr_operand): New.
35233 Indicates if permutation is suitable for palignr instruction.
35235 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
35237 PR tree-optimization/61319
35238 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
35239 stmt belongs to loop.
35241 2014-06-05 Richard Biener <rguenther@suse.de>
35243 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
35244 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
35245 (lookup_tmp_var): Adjust.
35246 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
35248 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35250 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
35252 2014-06-05 Marek Polacek <polacek@redhat.com>
35255 * doc/invoke.texi: Document -Wlogical-not-parentheses.
35257 2014-06-04 Tom de Vries <tom@codesourcery.com>
35259 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
35262 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
35264 PR tree-optimization/61385
35265 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
35267 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
35269 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
35270 changed to use fatal_error.
35271 (main): Ensure lto_wrapper_cleanup is run atexit.
35273 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35275 * lra-constraints.c (valid_address_p): Move earlier in file.
35276 (address_eliminator): New structure.
35277 (satisfies_memory_constraint_p): New function.
35278 (satisfies_address_constraint_p): Likewise.
35279 (process_alt_operands, process_address, curr_insn_transform): Use them.
35281 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35283 * lra-int.h (lra_static_insn_data): Make operand_alternative a
35285 (target_lra_int, default_target_lra_int, this_target_lra_int)
35286 (op_alt_data): Delete.
35287 * lra.h (lra_init): Delete.
35288 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
35289 (init_insn_code_data_once): Remove op_alt_data handling.
35290 (finish_insn_code_data_once): Likewise.
35291 (init_op_alt_data): Delete.
35292 (get_static_insn_data): Initialize operand_alternative to null.
35293 (free_insn_recog_data): Cast operand_alternative before freeing it.
35294 (setup_operand_alternative): Take the operand_alternative as
35295 parameter and assume it isn't already cached in the static
35297 (lra_set_insn_recog_data): Update accordingly.
35298 (lra_init): Delete.
35299 * ira.c (ira_init): Don't call lra_init.
35300 * target-globals.h (this_target_lra_int): Declare.
35301 (target_globals): Remove lra_int.
35302 (restore_target_globals): Update accordingly.
35303 * target-globals.c: Don't include lra-int.h.
35304 (default_target_globals, save_target_globals): Remove lra_int.
35306 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35308 * recog.h (operand_alternative): Convert reg_class, reject,
35309 matched and matches into bitfields.
35310 (preprocess_constraints): New overload.
35311 (preprocess_insn_constraints): New function.
35312 (preprocess_constraints): Take the insn as parameter.
35313 (recog_op_alt): Change into a pointer.
35314 (target_recog): Add x_op_alt.
35315 * recog.c (asm_op_alt): New variable.
35316 (recog_op_alt): Change into a pointer.
35317 (preprocess_constraints): New overload, replacing the old function
35318 definition with one that doesn't use global state.
35319 (preprocess_insn_constraints): New function.
35320 (preprocess_constraints): Use them. Take the insn as parameter.
35321 Use asm_op_alt for asms.
35322 (recog_init): Free existing x_op_alt entries.
35323 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
35325 (make_early_clobber_and_input_conflicts): Likewise.
35326 (process_bb_node_lives): Pass the insn to process_constraints.
35327 * reg-stack.c (check_asm_stack_operands): Likewise.
35328 (subst_asm_stack_regs): Likewise.
35329 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35330 * regrename.c (build_def_use): Likewise.
35331 * sched-deps.c (sched_analyze_insn): Likewise.
35332 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
35333 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35334 (note_invalid_constants): Likewise.
35335 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35336 (ix86_legitimate_combined_insn): Make operand_alternative pointer
35339 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35341 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
35342 * ira-lives.c (check_and_make_def_conflict): Check for disabled
35344 (make_early_clobber_and_input_conflicts): Likewise.
35345 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35347 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35349 * recog.h (alternative_class): New function.
35350 (which_op_alt): Return a const recog_op_alt.
35351 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
35352 (subst_asm_stack_regs): Likewise.
35353 * config/arm/arm.c (note_invalid_constants): Likewise.
35354 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
35355 the operand_alternative; use alternative class instead.
35356 * sel-sched.c (get_reg_class): Likewise.
35357 * regrename.c (build_def_use): Likewise.
35358 (hide_operands, restore_operands, record_out_operands): Update type
35361 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35363 * recog.h (recog_op_alt): Convert to a flat array.
35364 (which_op_alt): New function.
35365 * recog.c (recog_op_alt): Convert to a flat array.
35366 (preprocess_constraints): Update accordingly, grouping all
35367 operands of the same alternative together, rather than the
35369 * ira-lives.c (check_and_make_def_conflict): Likewise.
35370 (make_early_clobber_and_input_conflicts): Likewise.
35371 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35372 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
35373 (subst_asm_stack_regs): Likewise.
35374 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35375 * regrename.c (hide_operands, record_out_operands): Likewise.
35376 (build_def_use): Likewise.
35377 * sel-sched.c (get_reg_class): Likewise.
35378 * config/arm/arm.c (note_invalid_constants): Likewise.
35380 2014-06-04 Jason Merrill <jason@redhat.com>
35384 * gimplify.c (gimplify_arg): Non-static.
35385 * gimplify.h: Declare it.
35387 2014-06-04 Richard Biener <rguenther@suse.de>
35389 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
35390 TREE_PUBLIC and DECL_EXTERNAL decls.
35392 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
35394 * regcprop.c (copyprop_hardreg_forward_1): Account for
35395 HARD_REGNO_CALL_PART_CLOBBERED.
35397 2014-06-04 Richard Biener <rguenther@suse.de>
35399 * configure.ac: Check whether the underlying type of int64_t
35400 is long or long long.
35401 * configure: Regenerate.
35402 * config.in: Likewise.
35403 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
35404 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35406 2014-06-04 Richard Biener <rguenther@suse.de>
35408 PR tree-optimization/60098
35409 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
35411 (dse_optimize_stmt): Simplify, now that we found a kill
35414 2014-06-04 Richard Biener <rguenther@suse.de>
35416 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
35417 of accesses with non-invariant address.
35419 2014-06-04 Martin Liska <mliska@suse.cz>
35421 * cgraph.h (cgraph_make_wrapper): New function introduced.
35422 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
35423 * ipa-inline.h (inline_analyze_function): The function is global.
35424 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
35426 2014-06-04 Martin Liska <mliska@suse.cz>
35428 * tree.h (private_lookup_attribute_starting): New function.
35429 (lookup_attribute_starting): Likewise.
35430 * tree.c (private_lookup_attribute_starting): Likewise.
35432 2014-06-04 Martin Liska <mliska@suse.cz>
35434 * cgraph.h (expand_thunk): New argument added.
35435 (address_taken_from_non_vtable_p): New global function.
35436 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
35437 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
35438 * cgraphunit.c (analyze_function): Likewise.
35439 (assemble_thunks_and_aliases): Argument added to call.
35440 (expand_thunk): New argument forces to produce GIMPLE thunk.
35442 2014-06-04 Martin Liska <mliska@suse.cz>
35444 * coverage.h (coverage_compute_cfg_checksum): Argument added.
35445 * coverage.c (coverage_compute_cfg_checksum): Likewise.
35446 * profile.c (branch_prob): Likewise.
35448 2014-06-04 Martin Jambor <mjambor@suse.cz>
35451 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
35452 handler for switch on an ipa_ref_use enum.
35453 * ipa-reference.c (analyze_function): Likewise.
35455 2014-06-04 Kai Tietz <ktietz@redhat.com>
35457 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
35458 from old call-instruction.
35460 2014-06-04 Bin Cheng <bin.cheng@arm.com>
35462 * config/aarch64/aarch64.c (aarch64_classify_address)
35463 (aarch64_legitimize_reload_address): Support full addressing modes
35465 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
35466 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
35468 2014-06-03 Andrew Pinski <apinski@cavium.com>
35470 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
35473 2014-06-03 Andrew Pinski <apinski@cavium.com>
35475 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
35476 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
35478 2014-06-03 Kai Tietz <ktietz@redhat.com>
35480 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
35483 2014-06-03 Dehao Chen <dehao@google.com>
35485 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
35488 2014-06-03 Marek Polacek <polacek@redhat.com>
35491 * doc/invoke.texi: Document -Wswitch-bool.
35492 * function.c (stack_protect_epilogue): Cast controlling expression of
35494 * gengtype.c (walk_type): Generate switch expression with its
35495 controlling expression cast to int.
35497 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
35499 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
35501 * config/avr/avr-tables.opt: Regenerate.
35502 * config/avr/t-multilib: Regenerate.
35503 * doc/avr-mmcu.texi: Regenerate.
35505 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
35506 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35508 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
35509 (ata6617c, ata664251): Add new avr35 devices.
35510 (ata6612c): Add new avr4 device.
35511 (ata6613c, ata6614q): Add new avr5 devices.
35512 * config/avr/avr-tables.opt: Regenerate.
35513 * config/avr/t-multilib: Regenerate.
35514 * doc/avr-mmcu.texi: Regenerate.
35516 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35518 * gcc/config/aarch64/aarch64-builtins.c
35519 (aarch64_types_binop_ssu_qualifiers): New static data.
35520 (TYPES_BINOP_SSU): Define.
35521 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
35522 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
35523 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
35524 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
35525 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
35526 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
35527 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
35528 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
35529 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
35530 suffix to builtin function name, remove cast.
35531 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
35532 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
35533 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
35535 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35537 * gcc/config/aarch64/aarch64-builtins.c
35538 (aarch64_types_binop_uus_qualifiers,
35539 aarch64_types_shift_to_unsigned_qualifiers,
35540 aarch64_types_unsigned_shiftacc_qualifiers): Define.
35541 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
35542 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
35543 sqshlu_n, uqshl_n): Update qualifiers.
35544 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
35545 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
35546 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
35547 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
35548 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
35549 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
35550 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
35551 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
35552 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
35553 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
35554 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
35555 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
35556 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
35557 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
35558 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
35559 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
35560 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
35561 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
35562 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
35563 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
35564 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
35565 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
35566 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
35567 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
35568 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
35569 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
35570 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
35572 2014-06-03 Teresa Johnson <tejohnson@google.com>
35574 * tree-sra.c (modify_function): Record caller nodes after rebuild.
35576 2014-06-02 Jason Merrill <jason@redhat.com>
35579 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
35581 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35583 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
35586 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35588 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
35590 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
35591 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
35592 * config/aarch64/iterators.md (REVERSE): New iterator.
35593 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
35594 (rev_op): New int_attribute.
35595 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
35596 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
35597 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
35598 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
35599 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
35600 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
35601 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
35602 Replace temporary __asm__ with __builtin_shuffle.
35604 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35606 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
35608 * config/mips/mips-tables.opt: Regenerate.
35609 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
35610 to use mips_isa_rev rather than ISA_MIPS32R2.
35611 * config/mips/mips.h (ISA_MIPS32R3): New define.
35612 (ISA_MIPS32R5): New define.
35613 (ISA_MIPS64R3): New define.
35614 (ISA_MIPS64R5): New define.
35615 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
35616 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
35617 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
35619 (MIPS_ISA_SYNCI_SPEC): Likewise.
35620 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
35621 (LINK_SPEC): Added mips32r3 and mips32r5.
35622 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
35623 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
35624 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
35625 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
35626 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
35627 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
35628 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
35630 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35632 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
35634 * config/mips/mips.opt (mxpa): New option.
35635 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35638 2014-06-03 Martin Jambor <mjambor@suse.cz>
35641 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
35644 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
35646 PR tree-optimization/61328
35647 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
35648 initialization from find_bswap_or_nop_1.
35649 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
35650 in source_expr2 before using the size value the function sets. Also
35651 make use of init_symbolic_number () in both the old place and
35652 find_bswap_or_nop_load () to avoid reading uninitialized memory when
35653 doing recursion in the GIMPLE_BINARY_RHS case.
35655 2014-06-03 Richard Biener <rguenther@suse.de>
35657 PR tree-optimization/61383
35658 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
35661 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
35663 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
35664 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
35665 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
35666 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
35668 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
35669 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
35670 * system.h: ...here and make it unconditional.
35671 * target.def (conditional_register_usage): Mention
35672 define_register_constraint instead of old-style constraint macros.
35673 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
35674 * doc/tm.texi: Regenerate.
35675 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
35676 protected by !USE_MD_CONSTRAINTS.
35677 * config/frv/frv.md: Remove quote from old version of documentation.
35678 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
35679 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
35680 CONST_DOUBLE_OK_FOR_LETTER.
35681 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
35683 2014-06-02 Andrew Pinski <apinski@cavium.com>
35685 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
35686 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
35687 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
35688 file whose name depends on -mabi= and -mbig-endian.
35689 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
35690 Handle LP64 better and handle ilp32 too.
35691 (MULTILIB_OPTIONS): Delete.
35692 (MULTILIB_DIRNAMES): Delete.
35694 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
35696 * expr.h: Remove prototypes of functions defined in builtins.c.
35697 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
35698 Remove prototypes of functions defined in builtins.c.
35699 * builtins.h: Update prototype list to include all exported functions.
35700 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
35701 no_c99_libc_has_function): Move to targhooks.c
35702 (build_string_literal, build_call_expr_loc_array,
35703 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
35705 (expand_builtin_object_size, fold_builtin_object_size): Make static.
35706 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
35707 no_c99_libc_has_function): Relocate from builtins.c.
35708 * tree.c: Include builtins.h.
35709 (build_call_expr_loc_array, build_call_expr_loc_vec,
35710 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
35712 * fold-const.h (fold_fma): Move prototype to builtins.h.
35713 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
35714 * asan.c: Include builtins.h.
35715 * cfgexpand.c: Likewise.
35716 * convert.c: Likewise.
35717 * emit-rtl.c: Likewise.
35718 * except.c: Likewise.
35719 * expr.c: Likewise.
35720 * fold-const.c: Likewise.
35721 * gimple-fold.c: Likewise.
35722 * gimple-ssa-strength-reduction.c: Likewise.
35723 * gimplify.c: Likewise.
35724 * ipa-inline.c: Likewise.
35725 * ipa-prop.c: Likewise.
35726 * lto-streamer-out.c: Likewise.
35727 * stmt.c: Likewise.
35728 * tree-inline.c: Likewise.
35729 * tree-object-size.c: Likewise.
35730 * tree-sra.c: Likewise.
35731 * tree-ssa-ccp.c: Likewise.
35732 * tree-ssa-forwprop.c: Likewise.
35733 * tree-ssa-loop-ivcanon.c: Likewise.
35734 * tree-ssa-loop-ivopts.c: Likewise.
35735 * tree-ssa-math-opts.c: Likewise.
35736 * tree-ssa-reassoc.c: Likewise.
35737 * tree-ssa-threadedge.c: Likewise.
35738 * tree-streamer-in.c: Likewise.
35739 * tree-vect-data-refs.c: Likewise.
35740 * tree-vect-patterns.c: Likewise.
35741 * tree-vect-stmts.c: Likewise.
35742 * config/aarch64/aarch64.c: Likewise.
35743 * config/alpha/alpha.c: Likewise.
35744 * config/arc/arc.c: Likewise.
35745 * config/arm/arm.c: Likewise.
35746 * config/avr/avr.c: Likewise.
35747 * config/bfin/bfin.c: Likewise.
35748 * config/c6x/c6x.c: Likewise.
35749 * config/cr16/cr16.c: Likewise.
35750 * config/cris/cris.c: Likewise.
35751 * config/epiphany/epiphany.c: Likewise.
35752 * config/fr30/fr30.c: Likewise.
35753 * config/frv/frv.c: Likewise.
35754 * config/h8300/h8300.c: Likewise.
35755 * config/i386/i386.c: Likewise.
35756 * config/i386/winnt.c: Likewise.
35757 * config/ia64/ia64.c: Likewise.
35758 * config/iq2000/iq2000.c: Likewise.
35759 * config/lm32/lm32.c: Likewise.
35760 * config/m32c/m32c.c: Likewise.
35761 * config/m32r/m32r.c: Likewise.
35762 * config/m68k/m68k.c: Likewise.
35763 * config/mcore/mcore.c: Likewise.
35764 * config/mep/mep.c: Likewise.
35765 * config/microblaze/microblaze.c: Likewise.
35766 * config/mips/mips.c: Likewise.
35767 * config/mmix/mmix.c: Likewise.
35768 * config/mn10300/mn10300.c: Likewise.
35769 * config/moxie/moxie.c: Likewise.
35770 * config/msp430/msp430.c: Likewise.
35771 * config/nds32/nds32.c: Likewise.
35772 * config/pa/pa.c: Likewise.
35773 * config/pdp11/pdp11.c: Likewise.
35774 * config/picochip/picochip.c: Likewise.
35775 * config/rl78/rl78.c: Likewise.
35776 * config/rs6000/rs6000.c: Likewise.
35777 * config/rx/rx.c: Likewise.
35778 * config/s390/s390.c: Likewise.
35779 * config/score/score.c: Likewise.
35780 * config/sh/sh.c: Likewise.
35781 * config/sparc/sparc.c: Likewise.
35782 * config/spu/spu.c: Likewise.
35783 * config/stormy16/stormy16.c: Likewise.
35784 * config/tilegx/tilegx.c: Likewise.
35785 * config/tilepro/tilepro.c: Likewise.
35786 * config/v850/v850.c: Likewise.
35787 * config/vax/vax.c: Likewise.
35788 * config/xtensa/xtensa.c: Likewise.
35790 2014-06-02 Jeff Law <law@redhat.com>
35792 PR rtl-optimization/61094
35793 * ree.c (combine_reaching_defs): Do not reextend an insn if it
35794 was marked as do_no_reextend. If a copy is needed to eliminate
35795 an extension, then mark it as do_not_reextend.
35797 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
35799 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
35801 2014-06-02 Richard Henderson <rth@redhat.com>
35804 * config/alpha/alpha.c (print_operand_address): Allow symbolic
35805 addresses inside asms. Use output_operand_lossage instead of
35808 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
35811 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
35812 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
35814 2014-06-02 Tom de Vries <tom@codesourcery.com>
35816 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
35817 case that x has VOIDmode.
35819 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
35821 * varasm.c (copy_constant): Delete function.
35822 (build_constant_desc): Don't call it.
35824 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35827 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
35828 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
35829 with immediate_operand.
35831 2014-06-02 Andreas Schwab <schwab@suse.de>
35833 * config/ia64/ia64.c
35834 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
35835 pending_data_specs first.
35837 2014-06-02 Richard Biener <rguenther@suse.de>
35839 PR tree-optimization/61378
35840 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
35841 valueized_anything.
35843 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
35845 * config/i386/constraints.md (Bw): Rename from 'w'.
35846 (Bz): Rename from 'z'.
35847 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
35849 2014-06-01 Kai Tietz <ktietz@redhat.com>
35852 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
35853 * config/i386/i386.md (sibcall_insn_operand): Use Bs
35854 instead of m constraint.
35856 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
35858 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
35859 a separate alternative where the scratch operand 2 is marked as
35862 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
35864 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
35865 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
35866 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
35867 and __builtins_arm_get_fpscr.
35868 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
35869 __builtins_arm_get_fpscr.
35870 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
35871 __builtins_arm_ldfpscr.
35872 (arm_atomic_assign_expand_fenv): New function.
35873 * config/arm/vfp.md (set_fpscr): New pattern.
35874 (get_fpscr) : Likewise.
35875 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
35877 * doc/extend.texi (AARCH64 Built-in Functions) : Document
35878 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
35880 2014-05-30 Jakub Jelinek <jakub@redhat.com>
35882 * asan.c (report_error_func): Add SLOW_P argument, use
35883 BUILT_IN_ASAN_*_N if set.
35884 (build_check_stmt): Likewise.
35885 (instrument_derefs): If T has insufficient alignment,
35886 force same handling as for odd sizes.
35888 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
35889 BUILT_IN_ASAN_REPORT_STORE_N): New.
35890 * asan.c (struct asan_mem_ref): Change access_size type to
35892 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
35893 update_mem_ref_hash_table): Likewise.
35894 (asan_mem_ref_hasher::hash): Hash in a HWI.
35895 (report_error_func): Change size_in_bytes argument to HWI.
35896 Use *_N builtins if size_in_bytes is larger than 16 or not power of
35898 (build_shadow_mem_access): New function.
35899 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
35900 Handle size_in_bytes not power of two or larger than 16.
35901 (instrument_derefs): Don't give up if size_in_bytes is not
35902 power of two or is larger than 16.
35904 2014-05-30 Kai Tietz <ktietz@redhat.com>
35907 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
35908 for sibling-tail-calls.
35909 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
35911 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
35912 (sibcall_insn_operand): Add check for sibcall_memory_operand.
35914 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35916 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
35917 * config/avr/avr-tables.opt: Regenerate.
35918 * config/avr/t-multilib: Regenerate.
35919 * doc/avr-mmcu.texi: Regenerate.
35921 2014-05-30 Ian Lance Taylor <iant@google.com>
35923 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
35926 2014-05-30 Tom de Vries <tom@codesourcery.com>
35928 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
35931 2014-05-30 Tom de Vries <tom@codesourcery.com>
35933 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35934 * lra.c (initialize_lra_reg_info_element): Add init of
35935 actual_call_used_reg_set field.
35936 (lra): Call lra_create_live_ranges before lra_inheritance for
35938 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35940 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
35941 instead of call_used_reg_set for -fuse-caller-save.
35942 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35944 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35946 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
35948 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
35950 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
35952 * ira.c (ira_get_dup_out_num): Check for output operands at
35953 the start of the loop. Handle cases where an included alternative
35954 follows an excluded one.
35956 2014-05-29 Mike Stump <mikestump@comcast.net>
35959 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
35960 post ld passes when lto is used.
35962 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
35964 PR rtl-optimization/61325
35965 * lra-constraints.c (process_address): Rename to process_address_1.
35966 (process_address): New function.
35968 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
35970 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
35971 TYPES_BINOPV): New static data.
35972 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
35974 * config/aarch64/aarch64-simd.md (aarch64_ext,
35975 aarch64_im_lane_boundsi): New patterns.
35976 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
35978 (aarch64_evpc_ext): New function.
35980 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
35982 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
35983 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
35984 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
35985 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
35986 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
35988 2014-05-29 Tom de Vries <tom@codesourcery.com>
35990 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
35992 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
35993 Richard Sandiford <rdsandiford@googlemail.com>
35995 * arm/iterators.md (shiftable_ops): New code iterator.
35996 (t2_binop0, arith_shift_insn): New code attributes.
35997 * arm/predicates.md (shift_nomul_operator): New predicate.
35998 * arm/arm.md (insn_enabled): Delete.
35999 (enabled): Remove insn_enabled test.
36000 (*arith_shiftsi): Delete. Replace with ...
36001 (*<arith_shift_insn>_multsi): ... new pattern.
36002 (*<arith_shift_insn>_shiftsi): ... new pattern.
36003 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
36005 2014-05-29 Radovan Obradovic <robradovic@mips.com>
36006 Tom de Vries <tom@codesourcery.com>
36008 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
36009 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
36011 (mips_split_call): Use POST_CALL_TMP_REG.
36012 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
36014 2014-05-29 Tom de Vries <tom@codesourcery.com>
36016 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
36017 with #ifdef STACK_REGS.
36019 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
36021 * varasm.c (get_variable_section): Walk aliases.
36022 (place_block_symbol): Walk aliases.
36024 2014-05-28 Tom de Vries <tom@codesourcery.com>
36027 2014-05-28 Tom de Vries <tom@codesourcery.com>
36029 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36030 * lra.c (initialize_lra_reg_info_element): Add init of
36031 actual_call_used_reg_set field.
36032 (lra): Call lra_create_live_ranges before lra_inheritance for
36034 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36036 * lra-constraints.c (need_for_call_save_p): Use
36037 actual_call_used_reg_set instead of call_used_reg_set for
36039 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36041 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36043 * doc/md.texi: Document that the % constraint character must
36044 be at the beginning of the string.
36045 * genoutput.c (validate_insn_alternatives): Check that '=',
36046 '+' and '%' only appear at the beginning of a constraint.
36047 * ira.c (commutative_constraint_p): Delete.
36048 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
36049 at the start of the string.
36050 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
36052 * config/arm/neon.md (bicdi3_neon): Likewise.
36053 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
36054 (slt_si, sltu_si): Likewise.
36055 * config/vax/vax.md (sbcdi3): Likewise.
36056 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
36057 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
36058 (mul64): Move '%' to beginning of constraint.
36059 * config/arm/arm.md (*xordi3_insn): Likewise.
36060 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
36061 (xorsi3): Likewise.
36063 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36065 * doc/md.texi: Document the restrictions on the "enabled" attribute.
36067 2014-05-28 Jason Merrill <jason@redhat.com>
36070 * cgraph.h (symtab_node::get_comdat_group_id): New.
36071 * cgraphunit.c (analyze_functions): Call it.
36072 * symtab.c (dump_symtab_node): Likewise.
36073 * tree.c (decl_comdat_group_id): New.
36074 * tree.h: Declare it.
36075 * lto-streamer-out.c (write_symbol): Use it.
36076 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
36078 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36080 PR bootstrap/PR61146
36081 * wide-int.cc: Do not include longlong.h when compiling with clang.
36083 2014-05-28 Richard Biener <rguenther@suse.de>
36085 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
36086 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
36087 (vrp_visit_assignment_or_call): Print less vertical space.
36088 (vrp_visit_stmt): Likewise.
36089 (vrp_visit_phi_node): Likewise. For a PHI argument with
36090 VR_VARYING range consider recording it as copy.
36092 2014-05-28 Richard Biener <rguenther@suse.de>
36095 2014-05-28 Richard Biener <rguenther@suse.de>
36097 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36099 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
36101 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
36102 sufficiently aligned and an offset is used at the same time.
36103 (expand_expr_real_1): Likewise.
36105 2014-05-28 Richard Biener <rguenther@suse.de>
36107 PR middle-end/61045
36108 * fold-const.c (fold_comparison): When folding
36109 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
36110 the sign of the remaining constant operand stays the same.
36112 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
36114 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
36115 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
36116 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
36118 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
36119 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
36120 (m32bit-doubles) Likewise.
36121 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
36122 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
36125 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36127 * configure.ac ($gcc_cv_ld_clearcap): New test.
36128 * configure: Regenerate.
36129 * config.in: Regenerate.
36130 * config/sol2.opt (mclear-hwcap): New option.
36131 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
36132 * config/sol2-clearcap.map: Moved here from
36133 testsuite/gcc.target/i386/clearcap.map.
36134 * config/sol2-clearcapv2.map: Move here from
36135 gcc.target/i386/clearcapv2.map.
36136 * config/t-sol2 (install): Depend on install-clearcap-map.
36137 (install-clearcap-map): New target.
36138 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
36141 2014-05-28 Richard Biener <rguenther@suse.de>
36143 * hwint.h (*_HALF_WIDE_INT*): Move to ...
36144 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
36145 ... here and remove the rest.
36146 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36148 2014-05-28 Richard Biener <rguenther@suse.de>
36150 PR tree-optimization/61335
36151 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
36152 new range fails, drop to varying.
36154 2014-05-28 Olivier Hainque <hainque@adacore.com>
36156 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
36157 (CPP_SPEC): Add entry for -mcpu=8548.
36158 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
36159 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
36161 2014-05-28 Tom de Vries <tom@codesourcery.com>
36163 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36164 * lra.c (initialize_lra_reg_info_element): Add init of
36165 actual_call_used_reg_set field.
36166 (lra): Call lra_create_live_ranges before lra_inheritance for
36168 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36170 * lra-constraints.c (need_for_call_save_p): Use
36171 actual_call_used_reg_set instead of call_used_reg_set for
36173 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36175 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36176 Tom de Vries <tom@codesourcery.com>
36178 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
36180 (@item -fuse-caller-save): New item.
36182 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36183 Tom de Vries <tom@codesourcery.com>
36185 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
36186 OPT_fuse_caller_save.
36188 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36189 Tom de Vries <tom@codesourcery.com>
36191 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
36192 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
36193 get_call_reg_set_usage.
36194 * resource.c (mark_set_resources, mark_target_live_regs): Use
36195 get_call_reg_set_usage.
36196 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
36198 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
36199 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
36200 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36201 * ira-build.c (ira_create_allocno): Init
36202 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36203 (create_cap_allocno, propagate_allocno_info)
36204 (propagate_some_info_from_allocno)
36205 (copy_info_to_removed_store_destinations): Handle
36206 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36207 * ira-costs.c (ira_tune_allocno_costs): Use
36208 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
36210 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36211 Tom de Vries <tom@codesourcery.com>
36213 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
36214 and function_used_regs_valid fields.
36215 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
36216 find_all_hard_reg_sets.
36217 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
36218 (get_call_reg_set_usage): New function.
36219 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
36220 * regs.h (get_call_reg_set_usage): Declare.
36222 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36225 * config/dbx.h (License): Add Runtime Library Exception.
36226 * config/newlib-stdint.h (License): Same.
36227 * config/rtems.h (License): Same
36228 * config/initfini-array.h (License): Same
36229 * config/v850/v850.h (License): Same.
36230 * config/v850/v850-opts.h (License): Same
36231 * config/v850/rtems.h (License): Same.
36233 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36236 * doc/extend.texi (Local Labels): Note that label differences are
36237 not supported for AVR.
36239 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36240 Olivier Hainque <hainque@adacore.com>
36242 * rtl.h (set_for_reg_notes): Declare.
36243 * emit-rtl.c (set_for_reg_notes): New function.
36244 (set_unique_reg_note): Use it.
36245 * optabs.c (add_equal_note): Likewise
36247 2014-05-27 Andrew Pinski <apinski@cavium.com>
36249 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
36250 Use <w> for the register in assembly template.
36251 (stack_protect_test): Use the mode of operands[0] for the result.
36252 (stack_protect_test_<mode>): Use <w> for the register
36253 in assembly template.
36255 2014-05-27 DJ Delorie <dj@redhat.com>
36257 * config/rx/rx.c (add_vector_labels): New.
36258 (rx_output_function_prologue): Call it.
36259 (rx_handle_func_attribute): Don't require empty arguments.
36260 (rx_handle_vector_attribute): New.
36261 (rx_attribute_table): Add "vector" attribute.
36262 * doc/extend.texi (interrupt, vector): Document new/changed
36263 RX-specific attributes.
36265 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
36267 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36269 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
36270 predicate to detect a negative quotient.
36272 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36274 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
36275 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
36276 Add X - Y CMP 0 to X CMP Y transformation.
36277 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
36279 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
36281 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
36284 2014-05-27 Steve Ellcey <sellcey@mips.com>
36286 * config/mips/mips.c: Add include of cgraph.h.
36288 2014-05-27 Richard Biener <rguenther@suse.de>
36290 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
36292 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36295 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
36296 * config/arm/arm-cores.def (License): Same.
36297 * config/arm/arm-opts.h (License): Same.
36298 * config/arm/aout.h (License): Same.
36299 * config/arm/bpabi.h (License): Same.
36300 * config/arm/elf.h (License): Same.
36301 * config/arm/linux-elf.h (License): Same.
36302 * config/arm/linux-gas.h (License): Same.
36303 * config/arm/netbsd-elf.h (License): Same.
36304 * config/arm/uclinux-eabi.h (License): Same.
36305 * config/arm/uclinux-elf.h (License): Same.
36306 * config/arm/vxworks.h (License): Same.
36308 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36310 * config/arm/neon.md (neon_bswap<mode>): New pattern.
36311 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
36312 (arm_init_neon_builtins): Handle NEON_BSWAP.
36313 Define required type nodes.
36314 (arm_expand_neon_builtin): Handle NEON_BSWAP.
36315 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
36316 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
36317 * config/arm/iterators.md (VDQHSD): New mode iterator.
36319 2014-05-27 Richard Biener <rguenther@suse.de>
36321 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
36322 Try using literal operands when comparing value-ranges failed.
36324 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36326 * ira.c (commutative_operand): Adjust for change to recog_data.
36327 [Missing from previous commit.]
36329 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36331 * system.h (TEST_BIT): New macro.
36332 * recog.h (alternative_mask): New type.
36333 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
36334 (recog_data_d): Replace alternative_enabled_p array with
36335 enabled_alternatives.
36336 (target_recog): New structure.
36337 (default_target_recog, this_target_recog): Declare.
36338 (get_enabled_alternatives, recog_init): Likewise.
36339 * recog.c (default_target_recog, this_target_recog): New variables.
36340 (get_enabled_alternatives): New function.
36341 (extract_insn): Use it.
36342 (recog_init): New function.
36343 (preprocess_constraints, constrain_operands): Adjust for change to
36345 * postreload.c (reload_cse_simplify_operands): Likewise.
36346 * reload.c (find_reloads): Likewise.
36347 * ira-costs.c (record_reg_classes): Likewise.
36348 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
36349 all alternatives after a disabled one would be skipped.
36350 (ira_implicitly_set_insn_hard_regs): Likewise.
36351 * ira.c (ira_setup_alts): Adjust for change to recog_data.
36352 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
36353 with enabled_alternatives.
36354 * lra.c (free_insn_recog_data): Update accordingly.
36355 (lra_update_insn_recog_data): Likewise.
36356 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
36357 * lra-constraints.c (process_alt_operands): Likewise. Handle
36358 only_alternative as part of the enabled mask.
36359 * target-globals.h (this_target_recog): Declare.
36360 (target_globals): Add a recog field.
36361 (restore_target_globals): Restore this_target_recog.
36362 * target-globals.c: Include recog.h.
36363 (default_target_globals): Initialize recog field.
36364 (save_target_globals): Likewise.
36365 * reginfo.c (reinit_regs): Call recog_init.
36366 * toplev.c (backend_init_target): Likewise.
36368 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36370 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
36371 rather than any named insn's code.
36373 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36376 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
36377 * config/arm/arm-cores.def (License): Same.
36379 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
36381 * tree.h (decl_comdat_group): Declare.
36382 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
36383 * tree.c (decl_comdat_group): Here.
36385 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
36387 PR rtl-optimization/61222
36388 * combine.c (simplify_shift_const_1): When moving a PLUS outside
36389 the shift, truncate the PLUS operand to the result mode.
36391 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
36394 * config/i386/i386.c (ix86_rtx_costs)
36395 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
36398 2014-05-26 Martin Jambor <mjambor@suse.cz>
36400 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
36403 2014-05-26 Richard Biener <rguenther@suse.de>
36405 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
36406 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
36407 Provide specializations.
36408 (wi::int_traits <HOST_WIDE_INT>,
36409 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
36411 2014-05-26 Alan Modra <amodra@gmail.com>
36414 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
36415 params and return a bool. Remove dead code. Update comment.
36416 Assert we have a const_int source. Remove bogus code from
36417 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
36418 handling of constants > 2G and reg_equal note, from..
36419 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
36420 return value. Update comment. If we can, use a new pseudo
36421 for intermediate calculations.
36422 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
36424 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
36425 call to rs6000_emit_set_const in splitter.
36426 (movdi_internal64+2, +3): Likewise.
36428 2014-05-26 Richard Biener <rguenther@suse.de>
36430 * system.h: Define __STDC_FORMAT_MACROS before
36431 including inttypes.h.
36432 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
36433 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
36434 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
36435 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
36436 HOST_WIDEST_INT_C): Remove.
36437 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
36438 if C99 inttypes.h is not available.
36439 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
36440 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
36441 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
36442 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
36443 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
36444 (struct output_info): Likewise.
36445 (print_statistics): Adjust.
36446 (dump_bitmap_statistics): Likewise.
36447 * bt-load.c (migrate_btr_defs): Print with PRId64.
36448 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
36449 (MAX_SAFE_MULTIPLIER): Adjust.
36450 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
36451 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
36452 dump_cgraph_node): Likewise.
36453 * final.c (dump_basic_block_info): Likewise.
36454 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
36455 * gcov.c (format_gcov): Likewise.
36456 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
36458 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
36459 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
36460 (inline_small_functions, dump_overall_stats, dump_inline_stats):
36461 Use PRId64 for dumping.
36462 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
36463 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
36464 (add_allocno_hard_regs): Adjust.
36465 * loop-doloop.c (doloop_modify): Print using PRId64.
36466 * loop-iv.c (inverse): Compute in uint64_t.
36467 (determine_max_iter, iv_number_of_iterations): Likewise.
36468 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
36469 Print using PRId64.
36470 * lto-streamer-out.c (write_symbol): Use uint64_t.
36471 * mcf.c (CAP_INFINITY): Use int64_t maximum.
36472 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
36473 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
36474 * modulo-sched.c (const_iteration_count): Use int64_t.
36475 (sms_schedule): Dump using PRId64.
36476 * predict.c (dump_prediction): Likewise.
36477 * pretty-print.h (pp_widest_integer): Remove.
36478 * profile.c (get_working_sets, is_edge_inconsistent,
36479 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
36480 * tree-pretty-print.c (pp_double_int): Remove case handling
36481 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
36482 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
36484 (pass_optimize_bswap::execute): Remove restriction on hosts.
36485 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
36486 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
36487 * tree.c (widest_int_cst_value): Remove.
36488 * tree.h (widest_int_cst_value): Likewise.
36489 * value-prof.c (dump_histogram_value): Print using PRId64.
36490 * gengtype.c (main): Also inject int64_t.
36491 * ggc-page.c (struct max_alignment): Use int64_t.
36492 * alloc-pool.c (struct allocation_object_def): Likewise.
36493 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
36495 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
36496 * doc/tm.texi: Regenerated.
36497 * gengtype-lex.l (IWORD): Handle [u]int64_t.
36498 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
36499 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
36500 mmix_output_register_setting): Use [u]int64_t in prototypes.
36501 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
36502 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
36503 mmix_output_octa, mmix_output_shifted_value): Adjust.
36504 (mmix_intval): Adjust. Remove unreachable case.
36505 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
36507 2014-05-26 Richard Biener <rguenther@suse.de>
36509 * configure.ac: Drop __int64 type check. Insist that we
36510 found uint64_t and int64_t.
36511 * hwint.h (HOST_BITS_PER___INT64): Remove.
36512 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
36513 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
36514 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
36515 (HOST_WIDEST_FAST_INT): Remove __int64 case.
36516 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
36517 for dst_q_src_df_rms_cdt.
36518 * configure: Regenerate.
36519 * config.in: Likewise.
36521 2014-05-26 Michael Tautschnig <mt@debian.org>
36524 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
36525 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
36527 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36529 PR rtl-optimization/61278
36530 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
36532 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36534 PR rtl-optimization/61220
36535 Part of PR rtl-optimization/61225
36536 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
36537 insn; skip split_edge for a block with only one successor.
36539 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36541 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
36544 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36546 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
36547 (update_vtable_references): New function.
36548 (function_and_variable_visibility): Rewrite also vtable initializers.
36549 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
36551 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36553 * ggc.h (ggc_grow): New function.
36554 * ggc-none.c (ggc_grow): New function.
36555 * ggc-page.c (ggc_grow): Likewise.
36557 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36559 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
36560 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
36561 comdat_can_be_unshared_p, cgraph_externally_visible_p,
36562 varpool_externally_visible_p, can_replace_by_local_alias,
36563 update_visibility_by_resolution_info, function_and_variable_visibility,
36564 pass_data_ipa_function_and_variable_visibility,
36565 make_pass_ipa_function_and_variable_visibility,
36566 whole_program_function_and_variable_visibility,
36567 pass_data_ipa_whole_program_visibility,
36568 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
36569 * cgraph.h (cgraph_local_node_p): Declare.
36570 * ipa-visibility.c: New file.
36571 * Makefile.in (OBJS): Add ipa-visiblity.o
36573 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36575 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
36576 that var decl is available.
36578 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36580 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
36581 symtab_node pointer.
36582 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
36583 (find_decls_types_r): Do not walk COMDAT_GROUP.
36584 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
36585 * varasm.c (make_decl_one_only): Use set_comdat_group;
36586 create node if needed.
36587 * ipa-inline-transform.c (save_inline_function_body): Update
36588 way we decl->symtab mapping.
36589 * symtab.c (symtab_hash, hash_node, eq_node
36590 symtab_insert_node_to_hashtable): Remove.
36591 (symtab_register_node): Update.
36592 (symtab_unregister_node): Update.
36593 (symtab_get_node): Reimplement as inline function.
36594 (symtab_add_to_same_comdat_group): Update.
36595 (symtab_dissolve_same_comdat_group_list): Update.
36596 (dump_symtab_base): Update.
36597 (verify_symtab_base): Update.
36598 (symtab_make_decl_local): Update.
36599 (fixup_same_cpp_alias_visibility): Update.
36600 (symtab_nonoverwritable_alias): Update.
36601 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
36602 * ipa.c (update_visibility_by_resolution_info): UPdate.
36603 * bb-reorder.c: Include cgraph.h
36604 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
36605 with comdat groups.
36606 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
36607 * cgraph.c (cgraph_get_create_node): Update.
36608 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
36610 (symtab_get_node): Make inline.
36611 (symtab_insert_node_to_hashtable): Remove.
36612 (symtab_can_be_discarded): Update.
36613 (decl_comdat_group): New function.
36614 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
36616 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
36618 (read_comdat_group): New function.
36619 (input_node, input_varpool_node): Use it.
36620 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
36622 * mips.c (mips_start_unique_function): Likewise.
36623 (ix86_code_end): Likewise.
36624 (rs6000_code_end): Likweise.
36625 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
36627 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36629 * gengtype-state.c (fatal_reading_state): Bring offline.
36630 * optabs.c (widening_optab_handler): Bring offline.
36631 * optabs.h (widening_optab_handler): Likewise.
36632 * final.c (get_attr_length_1): Likewise.
36634 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36636 * sched-int.h (sd_iterator_cond): Manually tail recurse.
36638 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36640 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
36641 (ppc440-compare): Include shift with dot.
36642 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
36643 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
36645 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
36647 (e6500_sfx2): Include it.
36648 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
36649 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
36650 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
36651 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
36652 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
36653 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
36654 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
36655 *lshiftrt_internal1le, *lshiftrt_internal1be,
36656 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
36657 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
36658 *rotldi3_internal10le, *rotldi3_internal10be,
36659 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
36660 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
36661 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
36662 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
36663 define_insns): Use type "shift" in the appropriate alternatives.
36665 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36667 * config/rs6000/rs6000.md (type): Add "logical". Delete
36669 (dot): Adjust comment.
36670 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
36671 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
36672 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
36673 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
36674 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
36675 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
36676 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
36677 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36679 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36680 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36681 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36682 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36683 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36684 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36685 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36686 * config/rs6000/8540.md (ppc8540_su): Adjust.
36687 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36688 cell-cmp-microcoded): Adjust.
36689 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36690 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36691 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36692 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36693 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36694 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36695 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36696 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36697 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36699 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36700 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
36701 Adjust. Adjust comment.
36702 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36703 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36705 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36707 * config/rs6000/rs6000.md (type): Add "add".
36708 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
36709 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
36710 define_insns): Use it.
36711 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36713 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36714 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36715 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36716 * config/rs6000/601.md (ppc601-integer): Adjust.
36717 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36718 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36719 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36720 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36721 * config/rs6000/8540.md (ppc8540_su): Adjust.
36722 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36723 cell-cmp-microcoded): Adjust.
36724 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36725 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36726 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36727 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36728 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36729 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36730 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36731 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36732 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36734 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36735 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
36736 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36737 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36739 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36741 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
36742 "delayed_compare", "var_delayed_compare".
36743 (var_shift): New attribute.
36744 (cell_micro): Adjust.
36745 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
36746 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
36747 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
36748 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
36749 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
36750 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
36751 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
36752 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
36753 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
36754 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
36755 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
36756 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
36757 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
36758 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
36759 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
36760 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
36761 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
36762 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
36763 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
36764 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
36765 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
36766 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
36767 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
36768 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36769 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36771 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36772 * config/rs6000/440.md (ppc440-integer): Adjust.
36773 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36774 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
36775 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36776 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36777 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36778 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36779 * config/rs6000/8540.md (ppc8540_su): Adjust.
36780 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36781 cell-cmp-microcoded): Adjust.
36782 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
36783 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36784 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
36785 e500mc64_delayed): Adjust.
36786 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
36787 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
36788 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36789 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
36790 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
36791 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
36792 power6-delayed-compare, power6-var-delayed-compare): Adjust.
36793 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
36794 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
36796 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36797 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36799 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36801 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
36802 (bits): New mode_attr.
36803 (idiv_ldiv): Delete mode_attr.
36804 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
36805 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36806 rs6000_adjust_priority, is_nonpipeline_insn,
36807 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36809 * config/rs6000/40x.md (ppc403-idiv): Adjust.
36810 * config/rs6000/440.md (ppc440-idiv): Adjust.
36811 * config/rs6000/476.md (ppc476-idiv): Adjust.
36812 * config/rs6000/601.md (ppc601-idiv): Adjust.
36813 * config/rs6000/603.md (ppc603-idiv): Adjust.
36814 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
36815 ppc620-ldiv): Adjust.
36816 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
36817 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
36818 * config/rs6000/8540.md (ppc8540_divide): Adjust.
36819 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
36820 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
36821 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
36822 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
36823 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
36824 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
36825 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
36826 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
36827 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
36828 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
36829 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
36830 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
36831 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
36832 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
36833 * config/rs6000/titan.md (titan_fxu_div): Adjust.
36835 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36837 * config/rs6000/rs6000.md (type): Delete "insert_word",
36838 "insert_dword". Add "insert".
36839 (size): Update comment.
36840 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36841 insn_must_be_first_in_group): Adjust.
36842 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
36843 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
36844 *insvsi_internal6, insvdi_internal): Adjust.
36846 * config/rs6000/40x.md (ppc403-integer): Adjust.
36847 * config/rs6000/440.md (ppc440-integer): Adjust.
36848 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
36849 * config/rs6000/601.md (ppc601-integer): Adjust.
36850 * config/rs6000/603.md (ppc603-integer): Adjust.
36851 * config/rs6000/6xx.md (ppc604-integer): Adjust.
36852 * config/rs6000/7450.md (ppc7450-integer): Adjust.
36853 * config/rs6000/7xx.md (ppc750-integer): Adjust.
36854 * config/rs6000/8540.md (ppc8540_su): Adjust.
36855 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
36856 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
36857 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36858 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
36859 * config/rs6000/e5500.md (e5500_sfx): Adjust.
36860 * config/rs6000/e6500.md (e6500_sfx): Adjust.
36861 * config/rs6000/mpc.md (mpccore-integer): Adjust.
36862 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
36863 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
36864 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
36865 * config/rs6000/power7.md (power7-integer): Adjust.
36866 * config/rs6000/power8.md (power8-1cyc): Adjust.
36867 * config/rs6000/rs64.md (rs64a-integer): Adjust.
36868 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36870 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36872 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
36873 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
36874 (size): New attribute.
36875 (dot): New attribute.
36876 (cell_micro): Adjust.
36877 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
36878 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
36879 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
36880 umuldi3_highpart): Adjust.
36881 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36882 rs6000_adjust_priority, is_nonpipeline_insn,
36883 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36885 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
36886 ppc405-imul3): Adjust.
36887 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
36888 * config/rs6000/476.md (ppc476-imul): Adjust.
36889 * config/rs6000/601.md (ppc601-imul): Adjust.
36890 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
36891 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
36892 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
36893 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
36894 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
36896 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
36897 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
36898 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
36899 cell-imul): Adjust.
36900 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
36901 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
36902 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
36903 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
36904 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
36905 * config/rs6000/mpc.md (mpccore-imul): Adjust.
36906 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
36907 power4-lmul, power4-imul, power4-imul3): Adjust.
36908 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
36909 power5-lmul, power5-imul, power5-imul3): Adjust.
36910 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
36911 power6-lmul, power6-imul, power6-imul3): Adjust.
36912 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
36913 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
36915 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
36916 rs64a-lmul): Adjust.
36917 * config/rs6000/titan.md (titan_imul): Adjust.
36919 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36921 * config/rs6000/rs6000.md (type): Add new value "halfmul".
36922 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
36923 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
36924 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
36925 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
36926 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
36927 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
36928 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
36929 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
36930 * config/rs6000/titan.md: Delete nonsensical comment.
36931 (titan_imul): Add type imul3.
36932 (titan_mulhw): Remove type imul3; add type halfmul.
36934 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36936 * config/rs6000/rs6000.md (type): Reorder, reformat.
36938 2014-05-23 Martin Jambor <mjambor@suse.cz>
36940 PR tree-optimization/53787
36941 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
36942 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
36943 analysis_done, update all uses.
36944 * ipa-prop.c: Include domwalk.h
36945 (param_analysis_info): Removed.
36946 (param_aa_status): New type.
36947 (ipa_bb_info): Likewise.
36948 (func_body_info): Likewise.
36949 (ipa_get_bb_info): New function.
36950 (aa_overwalked): Likewise.
36951 (find_dominating_aa_status): Likewise.
36952 (parm_bb_aa_status_for_bb): Likewise.
36953 (parm_preserved_before_stmt_p): Changed to use new param AA info.
36954 (load_from_unmodified_param): Accept func_body_info as a parameter
36955 instead of parms_ainfo.
36956 (parm_ref_data_preserved_p): Changed to use new param AA info.
36957 (parm_ref_data_pass_through_p): Likewise.
36958 (ipa_load_from_parm_agg_1): Likewise. Update callers.
36959 (compute_complex_assign_jump_func): Changed to use new param AA info.
36960 (compute_complex_ancestor_jump_func): Likewise.
36961 (ipa_compute_jump_functions_for_edge): Likewise.
36962 (ipa_compute_jump_functions): Removed.
36963 (ipa_compute_jump_functions_for_bb): New function.
36964 (ipa_analyze_indirect_call_uses): Likewise, moved variable
36966 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
36967 and info, moved variable declarations down.
36968 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
36970 (ipa_analyze_stmt_uses): Likewise.
36971 (ipa_analyze_params_uses): Removed.
36972 (ipa_analyze_params_uses_in_bb): New function.
36973 (ipa_analyze_controlled_uses): Likewise.
36974 (free_ipa_bb_info): Likewise.
36975 (analysis_dom_walker): New class.
36976 (ipa_analyze_node): Handle node-specific forbidden analysis,
36977 initialize and free func_body_info, use dominator walker.
36978 (ipcp_modif_dom_walker): New class.
36979 (ipcp_transform_function): Create and free func_body_info, use
36980 ipcp_modif_dom_walker, moved a lot of functionality there.
36982 2014-05-23 Marek Polacek <polacek@redhat.com>
36983 Jakub Jelinek <jakub@redhat.com>
36985 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
36986 * gcc.c (sanitize_spec_function): Likewise.
36987 * convert.c (convert_to_integer): Include "ubsan.h". Add
36988 floating-point to integer instrumentation.
36989 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
36990 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
36991 SANITIZE_NONDEFAULT.
36992 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
36993 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
36994 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
36995 * ubsan.c: Include "realmpfr.h" and "dfp.h".
36996 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
36997 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
36998 float/double/long double.
36999 (ubsan_instrument_float_cast): New function.
37000 * ubsan.h (ubsan_instrument_float_cast): Declare.
37002 2014-05-23 Jiong Wang <jiong.wang@arm.com>
37004 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
37006 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
37007 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
37008 Adjust for tailcalling through registers.
37009 * config/aarch64/aarch64.h (enum reg_class): New caller save
37011 (REG_CLASS_NAMES): Likewise.
37012 (REG_CLASS_CONTENTS): Likewise.
37013 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
37014 Allow tailcalling without decls.
37016 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37018 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37019 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
37021 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
37022 gsi, and variables v_* to v*.
37024 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
37026 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
37028 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37030 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
37031 * omp-low.c: Update accordingly.
37033 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
37034 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
37035 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
37036 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
37037 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
37038 GF_OMP_TARGET_KIND_UPDATE.
37040 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37041 Explicitly enumerate the expected region types.
37043 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
37046 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
37047 documentation; the old documentation didn't clearly state the
37048 constraints on the contents of the pointed-to storage.
37050 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37052 Fix bootstrap error on ia64
37053 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
37054 Return default value.
37056 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
37058 PR tree-optimization/54733
37059 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
37061 (find_bswap_or_nop_load): New.
37062 (find_bswap_1): Renamed to ...
37063 (find_bswap_or_nop_1): This. Also add support for memory source.
37064 (find_bswap): Renamed to ...
37065 (find_bswap_or_nop): This. Also add support for memory source and
37066 detection of bitwise operations equivalent to load in target
37068 (execute_optimize_bswap): Likewise. Also move its leading comment back
37069 in place and split statement transformation into ...
37070 (bswap_replace): This.
37072 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37074 PR rtl-optimization/61215
37075 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
37076 simplify_gen_subreg until final substitution.
37078 2014-05-23 Alan Modra <amodra@gmail.com>
37081 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
37082 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
37083 Use "Y" constraint rather than "m".
37085 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
37087 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
37089 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
37090 New function declaration.
37091 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
37092 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
37093 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
37094 (aarch64_init_builtins) : Initialize builtins
37095 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37096 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37097 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
37098 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
37099 and __builtins_aarch64_set_fpsr.
37100 (aarch64_atomic_assign_expand_fenv): New function.
37101 * config/aarch64/aarch64.md (set_fpcr): New pattern.
37102 (get_fpcr) : Likewise.
37103 (set_fpsr) : Likewise.
37104 (get_fpsr) : Likewise.
37105 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
37106 and UNSPECV_SET_FPSR.
37107 * doc/extend.texi (AARCH64 Built-in Functions) : Document
37108 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37109 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37111 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37113 PR rtl-optimization/60969
37114 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
37115 constraints. Set up mem cost for NO_REGS case.
37117 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
37119 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
37121 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
37123 * config/darwin.c: Include "lto-section-names.h".
37124 (LTO_SEGMENT_NAME): Don't define.
37125 * config/i386/winnt.c: Include "lto-section-names.h".
37126 * lto-streamer.c: Include "lto-section-names.h".
37127 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
37128 * lto-wrapper.c: Include "lto-section-names.h".
37129 (LTO_SECTION_NAME_PREFIX): Don't define.
37130 * lto-section-names.h: New file.
37131 * cgraphunit.c: Include "lto-section-names.h".
37133 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
37135 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
37137 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
37140 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
37142 2014-05-22 Nick Clifton <nickc@redhat.com>
37144 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
37146 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
37148 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
37149 -> (T)A transformation to integer types.
37151 2014-05-22 Teresa Johnson <tejohnson@google.com>
37153 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
37154 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
37155 (gcov_rewrite): Use gcov_nonruntime_assert.
37156 (gcov_open): Ditto.
37157 (gcov_write_words): Ditto.
37158 (gcov_write_length): Ditto.
37159 (gcov_read_words): Use gcov_nonruntime_assert, and remove
37160 gcc_assert from IN_LIBGCOV code.
37161 (gcov_read_summary): Use gcov_error to flag profile corruption.
37162 (gcov_sync): Use gcov_nonruntime_assert.
37163 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
37164 (gcov_histo_index): Use gcov_nonruntime_assert.
37165 (static void gcov_histogram_merge): Ditto.
37166 (compute_working_sets): Ditto.
37167 * gcov-io.h (gcov_nonruntime_assert): Define.
37168 (gcov_error): Define for !IN_LIBGCOV
37170 2014-05-22 Richard Biener <rguenther@suse.de>
37172 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37173 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
37174 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
37175 and deallocation site.
37176 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37177 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
37178 passing through the incoming points-to set.
37179 (handle_lhs_call): Use flags argument instead of recomputing it.
37180 (find_func_aliases_for_call): Call handle_lhs_call with proper
37183 2014-05-22 Jakub Jelinek <jakub@redhat.com>
37185 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
37186 all padding bits in REAL_VALUE_TYPE are cleared.
37188 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37190 Cleanup and improve multipass_dfa_lookahead_guard
37191 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
37192 (core2i7_first_cycle_multipass_begin,)
37193 (core2i7_first_cycle_multipass_issue,)
37194 (core2i7_first_cycle_multipass_backtrack): Update signature.
37195 * config/ia64/ia64.c
37196 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
37197 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
37198 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
37200 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
37201 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
37203 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
37205 * doc/tm.texi: Regenerate.
37207 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
37208 * haifa-sched.c (ready_try): Make signed to allow negative values.
37209 (rebug_ready_list_1): Update.
37210 (choose_ready): Simplify.
37211 (sched_extend_ready_list): Update.
37213 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37215 Remove IA64 speculation tweaking flags
37216 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
37217 speculation tuning flags.
37218 (msched-prefer-non-data-spec-insns,)
37219 (msched-prefer-non-control-spec-insns): Obsolete options.
37220 * haifa-sched.c (choose_ready): Remove handling of
37221 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37222 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
37223 and PREFER_NON_DATA_SPEC.
37224 * sel-sched.c (process_spec_exprs): Remove handling of
37225 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37227 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37229 Improve scheduling debug output
37230 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
37231 (advance_one_cycle): Update.
37232 (schedule_insn, queue_to_ready): Add debug printouts.
37233 (debug_ready_list_1): New static function.
37234 (debug_ready_list): Update.
37235 (max_issue): Add debug printouts.
37236 (dump_insn_stream): New static function.
37237 (schedule_block): Use it. Also better indent printouts.
37239 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37241 Fix sched_insn debug counter
37242 * haifa-sched.c (schedule_insn): Update.
37243 (struct haifa_saved_data): Add nonscheduled_insns_begin.
37244 (save_backtrack_point, restore_backtrack_point): Update.
37245 (first_nonscheduled_insn): New static function.
37246 (queue_to_ready, choose_ready): Use it.
37247 (schedule_block): Init nonscheduled_insns_begin.
37248 (sched_emit_insn): Update.
37251 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
37253 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
37255 (aarch64_secondary_reload) : LikeWise.
37256 (aarch64_class_max_nregs) : Remove CORE_REGS.
37257 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
37258 (REG_CLASS_NAMES) : Likewise.
37259 (REG_CLASS_CONTENTS) : LikeWise.
37260 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
37262 2014-05-21 Guozhi Wei <carrot@google.com>
37265 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
37267 (vqdmulhq_n_s16): Likewise.
37269 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
37271 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
37273 2014-05-21 Marek Polacek <polacek@redhat.com>
37276 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
37278 2014-05-21 Martin Jambor <mjambor@suse.cz>
37280 * doc/invoke.texi (Optimize Options): Document parameters
37281 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
37282 ipa-cp-array-index-hint-bonus.
37284 2014-05-21 Mark Wielaard <mjw@redhat.com>
37287 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
37288 version >= 3 or not strict DWARF.
37289 * langhooks.h (struct lang_hooks_for_types): Add
37290 enum_underlying_base_type.
37291 * langhooks.c (lhd_enum_underlying_base_type): New function.
37292 * gcc/langhooks.h (struct lang_hooks_for_types): Add
37293 enum_underlying_base_type.
37294 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
37295 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
37296 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
37298 2014-05-21 Richard Biener <rguenther@suse.de>
37300 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
37302 2014-05-21 John Marino <gnugcc@marino.st>
37304 * config.gcc (*-*-dragonfly*): New target.
37305 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
37306 * configure: Regenerate.
37307 * config/dragonfly-stdint.h: New.
37308 * config/dragonfly.h: New.
37309 * config/dragonfly.opt: New.
37310 * config/i386/dragonfly.h: New.
37311 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
37313 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37315 * tree.def (VOID_CST): New.
37316 * tree-core.h (TI_VOID): New.
37317 * tree.h (void_node): New.
37318 * tree.c (tree_node_structure_for_code, tree_code_size)
37319 (iterative_hash_expr): Handle VOID_CST.
37320 (build_common_tree_nodes): Initialize void_node.
37322 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
37324 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
37326 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
37328 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
37331 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
37332 flag_reorder_blocks_and_partition.
37333 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
37335 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
37338 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
37340 (*addc_r_t): Add new insn_and_split.
37342 2014-05-21 Jakub Jelinek <jakub@redhat.com>
37344 PR middle-end/61252
37345 * omp-low.c (handle_simd_reference): New function.
37346 (lower_rec_input_clauses): Use it. Defer adding reference
37347 initialization even for reduction without placeholder if in simd,
37348 handle it properly later on.
37350 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37352 PR tree-optimization/60899
37353 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
37354 assume all static symbols will have definition wile parsing and
37355 check the do have definition later in compilation; check that
37356 variable referring symbol will be output before concluding that
37357 reference is safe; be conservative for referring local statics;
37358 be more precise about when comdat is output in other partition.
37360 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37363 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
37365 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
37366 (ipa_inline): Loop inline_to_all_callers until no more aliases
37369 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37371 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
37372 set writeonly flag only for vars actually written to.
37374 2014-05-20 Dehao Chen <dehao@google.com>
37376 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
37377 and callee count to get clone count.
37378 * tree-inline.c (expand_call_inline): Use callee count instead of bb
37379 count in copy_body.
37381 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
37383 PR rtl-optimization/61243
37384 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
37386 2014-05-20 Xinliang David Li <davidxl@google.com>
37388 * cgraphunit.c (walk_polymorphic_call_targets): Add
37389 dbgcnt and fopt-info support.
37390 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
37391 * ipa-devirt.c (ipa_devirt): Ditto.
37392 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
37393 * ipa.c (walk_polymorphic_call_targets): Ditto.
37394 * gimple-fold.c (fold_gimple_assign): Ditto.
37395 (gimple_fold_call): Ditto.
37396 * dbgcnt.def: New counter.
37398 2014-05-20 DJ Delorie <dj@redhat.com>
37400 * config/msp430/msp430.md (split): Don't allow subregs when
37401 splitting SImode adds.
37402 (andneghi): Fix subtraction logic.
37403 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
37405 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37407 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
37409 * except.c (switch_to_exception_section, resolve_unique_section,
37410 get_named_text_section, default_function_rodata_section,
37411 align_variable, get_block_for_decl, default_section_type_flags):
37412 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
37413 * symtab.c (symtab_add_to_same_comdat_group,
37414 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
37415 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
37417 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
37418 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
37419 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
37420 (c6x_function_in_section_p): Likewise.
37421 * config/darwin.c (machopic_select_section): Likewise.
37422 * config/arm/arm.c (arm_function_in_section_p): Likewise.
37423 * config/mips/mips.c (mips_function_rodata_section): Likewise.
37424 * config/mep/mep.c (mep_select_section): LIkewise.
37425 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
37427 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
37429 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
37430 EH region of calls to pure functions that can throw an exception.
37431 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
37432 (copy_reference_ops_from_call): Also copy the EH region of the call if
37433 it can throw an exception.
37435 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37437 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
37438 nested VEC_SELECTs that are inverses of each other.
37440 2014-05-20 Richard Biener <rguenther@suse.de>
37442 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
37443 (extract_and_process_scc_for_name): not here.
37444 (cond_dom_walker::before_dom_children): Only process
37445 stmts that end the BB in interesting ways.
37446 (run_scc_vn): Mark param uses as visited.
37448 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37450 * config/arm/arm.md (arith_shiftsi): Do not predicate for
37453 2014-05-20 Nick Clifton <nickc@redhat.com>
37455 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
37456 (msp430_gimplify_va_arg_expr): New function.
37457 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
37459 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
37460 operand 0 in order to prevent confusion about the number of
37461 registers involved.
37463 2014-05-20 Richard Biener <rguenther@suse.de>
37465 PR tree-optimization/61221
37466 * tree-ssa-pre.c (el_to_update): Remove.
37467 (eliminate_dom_walker::before_dom_children): Handle released
37468 VDEFs by value-numbering them to the associated VUSE. Update
37469 stmt immediately for substituted call address.
37470 (eliminate): Remove delayed stmt updating code.
37471 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
37472 possibly late re-numbered vuses.
37473 (vn_reference_lookup_2): Adjust.
37474 (vn_reference_lookup_pieces): Likewise.
37475 (vn_reference_lookup): Likewise.
37477 2014-05-20 Richard Biener <rguenther@suse.de>
37479 * config.gcc: Remove need_64bit_hwint.
37480 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
37481 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
37483 * config.in: Regenerate.
37484 * configure: Likewise.
37486 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
37488 * doc/extend.texi: Create Label Attributes section,
37489 move all label attributes into it and reference it.
37491 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
37493 * arm.c (thumb1_reorg): When scanning backwards skip anything
37494 that's not a proper insn.
37496 2014-05-19 Richard Biener <rguenther@suse.de>
37498 PR tree-optimization/61221
37499 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
37500 Do nothing for unreachable blocks.
37501 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
37502 Improve unreachability detection.
37504 2014-05-19 Richard Biener <rguenther@suse.de>
37506 PR tree-optimization/61209
37507 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
37509 2014-05-19 Nick Clifton <nickc@redhat.com>
37511 * except.c (init_eh): Fix computation of builtin setjmp buffer
37512 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
37514 2014-05-19 Richard Biener <rguenther@suse.de>
37516 PR tree-optimization/61184
37517 * tree-vrp.c (is_negative_overflow_infinity): Use
37518 TREE_OVERFLOW_P and do that check first.
37519 (is_positive_overflow_infinity): Likewise.
37520 (is_overflow_infinity): Likewise.
37521 (vrp_operand_equal_p): Properly treat operands with
37522 differing overflow as not equal.
37524 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
37526 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
37527 shift simplification where it was intended.
37529 2014-05-19 Christian Bruel <christian.bruel@st.com>
37532 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
37534 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
37537 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
37540 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37542 * reg-notes.def (CROSSING_JUMP): Likewise.
37543 * rtl.h (rtx_def): Update comment for jump flag.
37544 (CROSSING_JUMP_P): Define.
37545 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
37546 of a REG_CROSSING_JUMP note.
37547 * cfghooks.c (tidy_fallthru_edges): Likewise.
37548 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
37549 * emit-rtl.c (try_split): Likewise.
37550 * haifa-sched.c (sched_create_recovery_edges): Likewise.
37551 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
37552 * jump.c (redirect_jump_2): Likewise.
37553 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
37554 (relax_delay_slots): Likewise.
37555 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
37556 (bbit_di): Likewise.
37557 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
37558 * config/sh/sh.md (jump_compact): Likewise.
37559 * bb-reorder.c (rotate_loop): Likewise.
37560 (pass_duplicate_computed_gotos::execute): Likewise.
37561 (add_reg_crossing_jump_notes): Rename to...
37562 (update_crossing_jump_flags): ...this.
37563 (pass_partition_blocks::execute): Update accordingly.
37565 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37567 * tree.h: Remove extraneous template <>.
37569 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37571 * ipa.c (symtab_remove_unreachable_nodes): Remove
37572 symbol from comdat group if its body was eliminated.
37573 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
37574 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
37575 (symtab_unregister_node): ... this one.
37576 (verify_symtab_base): More strict checking of comdats.
37577 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
37579 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37581 * tree-pass.h (make_pass_ipa_comdats): New pass.
37582 * timevar.def (TV_IPA_COMDATS): New timevar.
37583 * passes.def (pass_ipa_comdats): Add.
37584 * Makefile.in (OBJS): Add ipa-comdats.o
37585 * ipa-comdats.c: New file.
37587 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37589 * ipa.c (update_visibility_by_resolution_info): New function.
37590 (function_and_variable_visibility): Use it.
37592 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37594 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
37596 (FOR_EACH_DEFINED_SYMBOL): New macro.
37597 (varpool_first_static_initializer, varpool_next_static_initializer,
37598 varpool_first_defined_variable, varpool_next_defined_variable):
37600 (symtab_in_same_comdat_p): Correctly deal with inline functions.
37602 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37604 * ggc-page.c (ggc_handle_finalizers): Add comment.
37606 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37608 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
37609 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
37610 (ggc_internal_cleared_alloc): Likewise.
37611 * ggc-page.c (finalizer): New class.
37612 (vec_finalizer): Likewise.
37613 (globals::finalizers): New member.
37614 (globals::vec_finalizers): Likewise.
37615 (ggc_internal_alloc): Record the finalizer if any for the block being
37617 (ggc_handle_finalizers): New function.
37618 (ggc_collect): Call ggc_handle_finalizers.
37619 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
37621 (ggc_internal_cleared_alloc): Likewise.
37622 (finalize): New function.
37623 (need_finalization_p): Likewise.
37624 (ggc_alloc): Install the type's destructor as the finalizer if it
37625 might do something.
37626 (ggc_cleared_alloc): Likewise.
37627 (ggc_vec_alloc): Likewise.
37628 (ggc_cleared_vec_alloc): Likewise.
37630 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37632 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
37634 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37636 * alias.c (record_alias_subset): Adjust.
37637 * bitmap.c (bitmap_element_allocate): Likewise.
37638 (bitmap_gc_alloc_stat): Likewise.
37639 * cfg.c (init_flow): Likewise.
37640 (alloc_block): Likewise.
37641 (unchecked_make_edge): Likewise.
37642 * cfgloop.c (alloc_loop): Likewise.
37643 (flow_loops_find): Likewise.
37644 (rescan_loop_exit): Likewise.
37645 * cfgrtl.c (init_rtl_bb_info): Likewise.
37646 * cgraph.c (insert_new_cgraph_node_version): Likewise.
37647 (cgraph_allocate_node): Likewise.
37648 (cgraph_create_edge_1): Likewise.
37649 (cgraph_allocate_init_indirect_info): Likewise.
37650 * cgraphclones.c (cgraph_clone_edge): Likewise.
37651 * cgraphunit.c (add_asm_node): Likewise.
37652 (init_lowered_empty_function): Likewise.
37653 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
37654 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
37655 (alpha_use_linkage): Likewise.
37656 * config/arc/arc.c (arc_init_machine_status): Likewise.
37657 * config/arm/arm.c (arm_init_machine_status): Likewise.
37658 * config/avr/avr.c (avr_init_machine_status): Likewise.
37659 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
37660 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
37661 * config/cris/cris.c (cris_init_machine_status): Likewise.
37662 * config/darwin.c (machopic_indirection_name): Likewise.
37663 (darwin_build_constant_cfstring): Likewise.
37664 (darwin_enter_string_into_cfstring_table): Likewise.
37665 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
37666 * config/frv/frv.c (frv_init_machine_status): Likewise.
37667 * config/i386/i386.c (get_dllimport_decl): Likewise.
37668 (ix86_init_machine_status): Likewise.
37669 (assign_386_stack_local): Likewise.
37670 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
37671 (i386_pe_maybe_record_exported_symbol): Likewise.
37672 (i386_pe_record_stub): Likewise.
37673 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
37674 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
37675 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
37676 (m32c_note_pragma_address): Likewise.
37677 * config/mep/mep.c (mep_init_machine_status): Likewise.
37678 (mep_note_pragma_flag): Likewise.
37679 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
37680 (mips16_local_alias): Likewise.
37681 (mips_init_machine_status): Likewise.
37682 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
37683 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
37684 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
37685 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
37686 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
37687 * config/pa/pa.c (pa_init_machine_status): Likewise.
37688 (pa_get_deferred_plabel): Likewise.
37689 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
37690 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
37691 (rs6000_init_machine_status): Likewise.
37692 (output_toc): Likewise.
37693 * config/s390/s390.c (s390_init_machine_status): Likewise.
37694 * config/score/score.c (score_output_external): Likewise.
37695 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
37696 * config/spu/spu.c (spu_init_machine_status): Likewise.
37697 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
37698 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
37699 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
37700 * coverage.c (coverage_end_function): Likewise.
37701 * dbxout.c (dbxout_init): Likewise.
37702 * doc/gty.texi: Don't mention variable_size attribute.
37703 * dwarf2cfi.c (new_cfi): Adjust.
37704 (new_cfi_row): Likewise.
37705 (copy_cfi_row): Likewise.
37706 (create_cie_data): Likewise.
37707 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
37708 (new_loc_descr): Likewise.
37709 (find_AT_string_in_table): Likewise.
37710 (add_addr_table_entry): Likewise.
37711 (new_die): Likewise.
37712 (add_var_loc_to_decl): Likewise.
37713 (clone_die): Likewise.
37714 (clone_as_declaration): Likewise.
37715 (break_out_comdat_types): Likewise.
37716 (new_loc_list): Likewise.
37717 (add_loc_descr_to_each): Likewise.
37718 (add_location_or_const_value_attribute): Likewise.
37719 (add_linkage_name): Likewise.
37720 (lookup_filename): Likewise.
37721 (dwarf2out_var_location): Likewise.
37722 (new_line_info_table): Likewise.
37723 (dwarf2out_init): Likewise.
37724 (mem_loc_descriptor): Likewise.
37725 (loc_descriptor): Likewise.
37726 (add_const_value_attribute): Likewise.
37727 (tree_add_const_value_attribute): Likewise.
37728 (comp_dir_string): Likewise.
37729 (dwarf2out_vms_debug_main_pointer): Likewise.
37730 (string_cst_pool_decl): Likewise.
37731 * emit-rtl.c (set_mem_attrs): Likewise.
37732 (get_reg_attrs): Likewise.
37733 (start_sequence): Likewise.
37734 (init_emit): Likewise.
37735 (init_emit_regs): Likewise.
37736 * except.c (init_eh_for_function): Likewise.
37737 (gen_eh_region): Likewise.
37738 (gen_eh_region_catch): Likewise.
37739 (gen_eh_landing_pad): Likewise.
37740 (add_call_site): Likewise.
37741 * function.c (add_frame_space): Likewise.
37742 (insert_temp_slot_address): Likewise.
37743 (assign_stack_temp_for_type): Likewise.
37744 (get_hard_reg_initial_val): Likewise.
37745 (allocate_struct_function): Likewise.
37746 (prepare_function_start): Likewise.
37747 (types_used_by_var_decl_insert): Likewise.
37748 * gengtype.c (variable_size_p): Remove function.
37749 (enum alloc_quantity): Remove enum.
37750 (write_typed_alloc_def): Remove function.
37751 (write_typed_struct_alloc_def): Likewise.
37752 (write_typed_typedef_alloc_def): Likewise.
37753 (write_typed_alloc_defns): Likewise.
37755 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
37756 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
37757 * ggc.h (ggc_alloc): new function.
37758 (ggc_cleared_alloc): Likewise.
37759 (ggc_vec_alloc): Template on type of vector element, and remove
37760 element size argument.
37761 (ggc_cleared_vec_alloc): Likewise.
37762 * gimple.c (gimple_build_omp_for): Adjust.
37763 (gimple_copy): Likewise.
37764 * ipa-cp.c (get_replacement_map): Likewise.
37765 (find_aggregate_values_for_callers_subset): Likewise.
37766 (known_aggs_to_agg_replacement_list): Likewise.
37767 * ipa-devirt.c (get_odr_type): Likewise.
37768 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
37769 (read_agg_replacement_chain): Likewise.
37770 * loop-iv.c (get_simple_loop_desc): Likewise.
37771 * lto-cgraph.c (input_node_opt_summary): Likewise.
37772 * lto-section-in.c (lto_new_in_decl_state): Likewise.
37773 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
37774 (input_eh_region): Likewise.
37775 (input_eh_lp): Likewise.
37776 (input_cfg): Likewise.
37777 * optabs.c (set_optab_libfunc): Likewise.
37778 (init_tree_optimization_optabs): Likewise.
37779 (set_conv_libfunc): Likewise.
37780 * passes.c (do_per_function_toporder): Likewise.
37781 * rtl.h: Don't use variable_size gty attribute.
37782 * sese.c (if_region_set_false_region): Adjust.
37783 * stringpool.c (gt_pch_save_stringpool): Likewise.
37784 * target-globals.c (save_target_globals): Likewise.
37785 * toplev.c (general_init): Likewise.
37786 * trans-mem.c (record_tm_replacement): Likewise.
37787 (split_bb_make_tm_edge): Likewise.
37788 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37789 * tree-data-ref.h (lambda_vector_new): Likewise.
37790 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
37791 * tree-iterator.c (tsi_link_before): Likewise.
37792 (tsi_link_after): Likewise.
37793 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
37794 * tree-ssa-loop-niter.c (record_estimate): Likewise.
37795 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
37796 * tree-ssa-operands.h: Don't use variable_size gty attribute.
37797 * tree-ssa.c (init_tree_ssa): Adjust.
37798 * tree-ssanames.c (set_range_info): Likewise.
37799 (get_ptr_info): Likewise.
37800 (duplicate_ssa_name_ptr_info): Likewise.
37801 (duplicate_ssa_name_range_info): Likewise.
37802 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
37803 (unpack_ts_fixed_cst_value_fields): Likewise.
37804 * tree.c (build_fixed): Likewise.
37805 (build_real): Likewise.
37806 (build_string): Likewise.
37807 (decl_priority_info): Likewise.
37808 (decl_debug_expr_insert): Likewise.
37809 (decl_value_expr_insert): Likewise.
37810 (decl_debug_args_insert): Likewise.
37811 (type_hash_add): Likewise.
37812 (build_omp_clause): Likewise.
37813 * ubsan.c (decl_for_type_insert): Likewise.
37814 * varasm.c (get_unnamed_section): Likewise.
37815 (get_noswitch_section): Likewise.
37816 (get_section): Likewise.
37817 (get_block_for_section): Likewise.
37818 (create_block_symbol): Likewise.
37819 (build_constant_desc): Likewise.
37820 (create_constant_pool): Likewise.
37821 (force_const_mem): Likewise.
37822 (record_tm_clone_pair): Likewise.
37823 * varpool.c (varpool_create_empty_node): Likewise.
37825 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37827 * dwarf2out.c (tree_add_const_value_attribute): Call
37828 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
37829 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
37830 instead of ggc_internal_<x>alloc_stat.
37831 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
37832 (ggc_realloc): Likewise.
37833 * ggc-none.c (ggc_internal_alloc): Likewise.
37834 (ggc_internal_cleared_alloc): Likewise.
37835 * ggc-page.c: Likewise.
37836 * ggc.h (ggc_internal_alloc_stat): Likewise.
37837 (ggc_internal_alloc): Remove macro.
37838 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
37839 (ggc_internal_cleared_alloc): Remove macro.
37840 (GGC_RESIZEVEC): Adjust.
37841 (ggc_resizevar): Remove macro.
37842 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
37843 (ggc_internal_cleared_vec_alloc_stat): Likewise.
37844 (ggc_internal_vec_cleared_alloc): Remove macro.
37845 (ggc_alloc_atomic_stat): Drop _stat suffix.
37846 (ggc_alloc_atomic): Remove macro.
37847 (ggc_alloc_cleared_atomic): Remove macro.
37848 (ggc_alloc_string_stat): Drop _stat suffix.
37849 (ggc_alloc_string): Remove macro.
37850 (ggc_alloc_rtx_def_stat): Adjust.
37851 (ggc_alloc_tree_node_stat): Likewise.
37852 (ggc_alloc_cleared_tree_node_stat): Likewise.
37853 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
37854 (ggc_alloc_cleared_simd_clone_stat): Likewise.
37855 * gimple.c (gimple_build_omp_for): Likewise.
37856 (gimple_copy): Likewise.
37857 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
37858 * toplev.c (realloc_for_line_map): Adjust.
37859 * tree-data-ref.h (lambda_vector_new): Likewise.
37860 * tree-phinodes.c (allocate_phi_node): Likewise.
37861 * tree.c (grow_tree_vec_stat): Likewise.
37862 * vec.h (va_gc::reserve): Adjust.
37864 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
37866 * config/microblaze/microblaze.c (break_handler): New Declaration.
37867 (microblaze_break_function_p,microblaze_is_break_handler): New.
37868 (compute_frame_size): Use microblaze_break_function_p.
37869 Add the test of break_handler.
37870 (microblaze_function_prologue) : Add the test of variable
37871 break_handler. Check the fnname by BREAK_HANDLER_NAME.
37872 (microblaze_function_epilogue) : Add the test of break_handler.
37873 (microblaze_globalize_label) : Add the test of break_handler.
37874 Check the name by BREAK_HANDLER_NAME.
37876 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
37878 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
37879 microblaze_is_break_handler test.
37880 (call_internal1,call_value_intern): Use microblaze_break_function_p.
37881 Use SYMBOL_REF_DECL.
37883 * config/microblaze/microblaze-protos.h
37884 (microblaze_break_function_p,microblaze_is_break_handler):
37887 * doc/extend.texi (MicroBlaze break_handler Functions): Document
37888 new MicroBlaze break_handler functions.
37890 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37892 * doc/extend.texi (Size of an asm): Move node text according
37893 to its @menu entry position.
37895 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
37897 PR tree-optimization/61140
37898 PR tree-optimization/61150
37899 PR tree-optimization/61197
37900 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
37902 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37904 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
37906 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
37908 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
37909 __SIZEOF_INT128__ is defined.
37911 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37913 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
37914 (rs6000_delegitimize_address): Use it.
37916 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37918 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
37919 inplace argument. Store the new address in the original MEM when true.
37920 * emit-rtl.c (change_address_1): Likewise.
37921 (adjust_address_1, adjust_automodify_address_1, offset_address):
37922 Update accordingly.
37923 * rtl.h (plus_constant): Add an inplace argument.
37924 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
37925 when true. Avoid generating (plus X (const_int 0)).
37926 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
37927 in-place. Pass true to plus_constant.
37928 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
37930 2014-05-16 Dehao Chen <dehao@google.com>
37932 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
37934 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37937 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
37939 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
37941 2014-05-16 Dehao Chen <dehao@google.com>
37943 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
37944 optimize_function_for_size_p.
37945 * regs.h (REG_FREQ_FROM_BB): Likewise.
37947 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37950 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
37951 negt_reg_operand cases.
37952 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
37954 * config/sh/predicates.md (cbranch_treg_value): Simplify.
37956 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37958 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
37961 2014-05-16 David Malcolm <dmalcolm@redhat.com>
37964 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37966 * tree-cfg.c (dump_function_to_file): Dump the return type of
37967 functions, in a line to itself before the function body, mimicking
37968 the layout of a C function.
37970 2014-05-16 Dehao Chen <dehao@google.com>
37972 * cfghooks.c (make_forwarder_block): Use direct computation to
37973 get fall-through edge's count and frequency.
37975 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
37977 * config/arc/arc.c (arc_init): Fix typo in error message.
37978 * config/i386/i386.c (ix86_expand_builtin): Likewise.
37979 (split_stack_prologue_scratch_regno): Likewise.
37980 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
37981 word from error message.
37983 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37985 * ira-costs.c: Fix typo in comment.
37987 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
37989 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
37991 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
37993 * varpool.c (dump_varpool_node): Dump write-only flag.
37994 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
37996 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
37997 write-only variables.
37998 * ipa.c (process_references): New function.
37999 (set_readonly_bit): New function.
38000 (set_writeonly_bit): New function.
38001 (clear_addressable_bit): New function.
38002 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
38003 fix handling of aliases.
38004 * cgraph.h (struct varpool_node): Add writeonly flag.
38006 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
38008 PR rtl-optimization/60969
38009 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
38010 Calculate costs for this case.
38012 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
38014 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
38015 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
38017 2014-05-16 Richard Biener <rguenther@suse.de>
38019 PR tree-optimization/61194
38020 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
38021 bool patterns ending in a COND_EXPR.
38023 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38025 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
38027 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38029 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
38030 where we were unable to cost an RTX.
38032 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38034 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
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): Cost TRUNCATE.
38042 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38043 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38045 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
38046 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
38048 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38049 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38051 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
38054 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38055 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38057 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38060 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38061 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38063 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
38064 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
38066 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38067 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38070 rotates and shifts.
38072 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38073 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38075 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
38076 ZERO_EXTEND and SIGN_EXTEND better.
38078 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38079 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38081 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
38082 logical operations.
38084 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38085 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38087 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
38088 costs when costing loads and stores to memory.
38090 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38091 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
38093 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
38096 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38098 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
38100 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38101 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38103 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
38105 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
38107 (aarch64_rtx_mult_cost): New.
38108 (aarch64_rtx_costs): Use it, refactor as appropriate.
38110 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38111 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38113 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
38114 emit instructions, return number of instructions which would
38116 (aarch64_add_constant): Update call to aarch64_build_constant.
38117 (aarch64_output_mi_thunk): Likewise.
38118 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
38121 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38123 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
38124 (TARGET_RTX_COSTS): Call it.
38126 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38128 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
38129 (cortexa57_vector_cost): Likewise.
38130 (cortexa57_tunings): Use them.
38132 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38134 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
38135 (cpu_addrcost_table): Use it.
38136 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
38137 (aarch64_address_cost): Rewrite using aarch64_classify_address,
38140 2014-05-16 Richard Biener <rguenther@suse.de>
38142 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
38143 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
38144 (visit_phi): Ignore edges marked as not executable.
38145 (class cond_dom_walker): New.
38146 (cond_dom_walker::before_dom_children): Value-number
38147 control statements and mark successor edges as not
38148 executable if possible.
38149 (run_scc_vn): First walk all control statements in
38150 dominator order, marking edges as not executable.
38151 * tree-inline.c (copy_edges_for_bb): Be not confused
38152 about random edge flags.
38154 2014-05-16 Richard Biener <rguenther@suse.de>
38156 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
38158 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
38161 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
38162 (__TM_simple_begin): Use it.
38163 (__TM_begin): Likewise.
38165 2014-05-15 Martin Jambor <mjambor@suse.cz>
38168 * ipa-prop.c (update_indirect_edges_after_inlining): Check
38169 type_preserved flag when the indirect edge is polymorphic.
38171 2014-05-15 Martin Jambor <mjambor@suse.cz>
38173 PR tree-optimization/61090
38174 * tree-sra.c (sra_modify_expr): Pass the current gsi to
38175 build_ref_for_model.
38177 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38179 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
38180 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
38182 2014-05-15 Jakub Jelinek <jakub@redhat.com>
38184 PR tree-optimization/61158
38185 * fold-const.c (fold_binary_loc): If X is zero-extended and
38186 shiftc >= prec, make sure zerobits is all ones instead of
38187 invoking undefined behavior.
38189 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38191 * regcprop.h: New file.
38192 * regcprop.c (skip_debug_insn_p): New decl.
38193 (replace_oldest_value_reg): Check skip_debug_insn_p.
38194 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
38195 * shrink-wrap.c: Include regcprop.h.
38196 (prepare_shrink_wrap): Call
38197 copyprop_hardreg_forward_bb_without_debug_insn.
38199 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38201 * shrink-wrap.h: Update comment.
38202 * shrink-wrap.c: Update comment.
38203 (next_block_for_reg): Rename to live_edge_for_reg.
38204 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
38205 (move_insn_for_shrink_wrap): Split live_edge.
38206 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
38208 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38210 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
38212 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
38213 * config/sparc/sparc.md (fptype_ut699): New attribute.
38214 (in_branch_delay): Return false if -mfix-ut699 is specified and
38215 fptype_ut699 is set to single.
38216 (truncdfsf2): Add fptype_ut699 attribute.
38217 (fix_truncdfsi2): Likewise.
38218 (floatsisf2): Change fptype attribute.
38219 (fix_truncsfsi2): Likewise.
38220 (negtf2_notv9): Delete.
38221 (negtf2_v9): Likewise.
38222 (negtf2_hq): New instruction.
38223 (negtf2): New instruction and splitter.
38224 (negdf2_notv9): Rewrite.
38225 (abstf2_notv9): Delete.
38226 (abstf2_hq_v9): Likewise.
38227 (abstf2_v9): Likewise.
38228 (abstf2_hq): New instruction.
38229 (abstf2): New instruction and splitter.
38230 (absdf2_notv9): Rewrite.
38232 2014-05-14 Cary Coutant <ccoutant@google.com>
38235 * opts.c (common_handle_option): Don't special-case "-g".
38236 (set_debug_level): Default to at least level 2 with "-g".
38238 2014-05-14 DJ Delorie <dj@redhat.com>
38240 * config/msp430/msp430.c (msp430_builtin): Add
38241 MSP430_BUILTIN_DELAY_CYCLES.
38242 (msp430_init_builtins): Register void __delay_cycles(long long).
38243 (msp430_builtin_decl): Add it.
38244 (cg_magic_constant): New.
38245 (msp430_expand_delay_cycles): New.
38246 (msp430_expand_builtin): Call it.
38247 (msp430_print_operand_raw): Change integer printing from "int" to
38249 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
38250 (delay_cycles_start): New.
38251 (delay_cycles_end): New.
38252 (delay_cycles_32): New.
38253 (delay_cycles_32x): New.
38254 (delay_cycles_16): New.
38255 (delay_cycles_16x): New.
38256 (delay_cycles_2): New.
38257 (delay_cycles_1): New.
38258 * doc/extend.texi: Document __delay_cycles().
38260 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
38262 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
38263 length attribute computation.
38265 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
38268 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
38270 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
38273 * config/sparc/sparc.md: Fix types of low and high in DI constant
38274 splitter. Use gen_int_mode in some other splitters.
38276 2014-05-14 Martin Jambor <mjambor@suse.cz>
38279 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
38281 2014-05-14 James Norris <jnorris@codesourcery.com>
38283 * omp-low.c (expand_parallel_call): Remove shadow variable.
38284 (expand_omp_taskreg): Likewise.
38286 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
38288 * common/config/i386/i386-common.c
38289 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
38290 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
38291 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
38292 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
38293 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
38294 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
38295 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
38296 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
38297 xsavecintrin.h, xsavesintrin.h.
38298 (x86_64-*-*): Ditto.
38299 * config/i386/clflushoptintrin.h: New.
38300 * config/i386/xsavecintrin.h: Ditto.
38301 * config/i386/xsavesintrin.h: Ditto.
38302 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
38303 (bit_XSAVES): Ditto.
38304 (bit_XSAVES): Ditto.
38305 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
38306 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
38308 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38309 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
38310 OPTION_MASK_ISA_XSAVES.
38311 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
38312 -mxsavec, -mxsaves.
38313 (PTA_CLFLUSHOPT) Define.
38314 (PTA_XSAVEC): Ditto.
38315 (PTA_XSAVES): Ditto.
38316 (ix86_option_override_internal): Handle new options.
38317 (ix86_valid_target_attribute_inner_p): Ditto.
38318 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
38319 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
38320 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
38321 (bdesc_special_args): Add __builtin_ia32_xsaves,
38322 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
38323 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
38324 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
38325 (ix86_expand_builtin): Handle new builtins.
38326 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
38327 (TARGET_CLFLUSHOPT_P): Ditto.
38328 (TARGET_XSAVEC): Ditto.
38329 (TARGET_XSAVEC_P): Ditto.
38330 (TARGET_XSAVES): Ditto.
38331 (TARGET_XSAVES_P): Ditto.
38332 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
38333 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
38334 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
38336 (ANY_XRSTOR64): Ditto.
38338 (xrstor): Change into <xrstor>.
38339 (xrstor_rex64): Change into <xrstor>_rex64.
38340 (xrstor64): Change into <xrstor>64
38342 * config/i386/i386.opt (mclflushopt): New.
38345 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
38347 * doc/invoke.texi: Document new options.
38349 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38351 PR rtl-optimization/60866
38352 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
38353 Default it to -1. Pass it down to init_simplejump_data.
38354 (init_simplejump_data): New parameter old_seqno. Pass it down
38355 to get_seqno_for_a_jump.
38356 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
38357 initializing new jump seqno as a last resort. Add comment.
38358 (sel_redirect_edge_and_branch): Save old seqno of the conditional
38359 jump and pass it down to sel_init_new_insn.
38360 (sel_redirect_edge_and_branch_force): Likewise.
38362 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
38364 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
38365 shifted values to avoid build warning.
38367 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38369 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
38370 * cfgrtl.c (rtl_merge_blocks): Fix comment.
38371 (cfg_layout_merge_blocks): Likewise.
38372 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
38374 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38376 PR rtl-optimization/60901
38377 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
38378 bb predecessor belongs to the same scheduling region. Adjust comment.
38380 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
38382 * doc/sourcebuild.texi: (dfp_hw): Document.
38383 (p8vector_hw): Likewise.
38384 (powerpc_eabi_ok): Likewise.
38385 (powerpc_elfv2): Likewise.
38386 (powerpc_htm_ok): Likewise.
38387 (ppc_recip_hw): Likewise.
38388 (vsx_hw): Likewise.
38390 2014-05-13 Cary Coutant <ccoutant@google.com>
38392 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
38394 2014-05-13 David Malcolm <dmalcolm@redhat.com>
38396 * gengtype-parse.c (require3): Eliminate in favor of...
38398 (require_template_declaration): Update to support optional single *
38401 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
38402 (create_user_defined_type): Handle a single level of explicit
38403 pointerness within template arguments.
38404 (struct write_types_data): Add field "kind".
38405 (filter_type_name): Handle "*" character.
38406 (write_user_func_for_structure_ptr): Require a write_types_data
38407 rather than just a prefix string, so that we can look up the kind
38408 of the wtd and use it as an index into wrote_user_func_for_ptr,
38409 ensuring that such functions are written at most once. Support
38410 subclasses by invoking the marking function of the ultimate base class.
38411 (write_user_func_for_structure_body): Require a write_types_data
38412 rather than just a prefix string, so that we can pass this to
38413 write_user_func_for_structure_ptr.
38414 (write_func_for_structure): Likewise.
38415 (ggc_wtd): Add initializer of new "kind" field.
38416 (pch_wtd): Likewise.
38418 * gengtype.h (enum write_types_kinds): New.
38419 (struct type): Add field wrote_user_func_for_ptr to the "s"
38422 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38424 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
38425 instead of const_binop.
38426 (fold_binary_loc): Likewise.
38428 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38430 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
38431 calculation to match get_ref_base_and_extent.
38433 2014-05-13 Catherine Moore <clm@codesourcery.com>
38434 Sandra Loosemore <sandra@codesourcery.com>
38436 * configure.ac: Fix assembly for explicit JALR relocation check.
38437 * configure: Regenerate.
38439 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38441 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
38442 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
38443 Remove associated type declarations and initialisations.
38444 (arm_expand_neon_builtin): Likewise.
38445 (neon_emit_pair_result_insn): Delete.
38446 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
38447 * config/arm/neon.md (neon_vtrn<mode>): Delete.
38448 (neon_vzip<mode>): Likewise.
38449 (neon_vuzp<mode>): Likewise.
38451 2014-05-13 Richard Biener <rguenther@suse.de>
38454 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
38455 it needs revisiting whether the call still may be tail-called.
38457 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38459 * rtl.def (SYMBOL_REF): Remove middle "0" field.
38460 * rtl.h (block_symbol): Reduce number of fields to 2.
38461 (rtx_def): Add u2.symbol_ref_flags.
38462 (SYMBOL_REF_FLAGS): Use it.
38463 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
38464 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
38465 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
38466 Lower index of SYMBOL_REF_DATA.
38467 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
38468 Print SYMBOL_REF_FLAGS at the same time.
38469 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
38471 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38473 * rtl.def (VAR_LOCATION): Remove "i" field.
38474 * rtl.h (rtx_def): Add u2.var_location_status.
38475 (PAT_VAR_LOCATION_STATUS): Use it.
38476 (gen_rtx_VAR_LOCATION): Declare.
38477 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
38478 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
38479 * var-tracking.c (emit_note_insn_var_location): Remove casts.
38481 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38483 * rtl.def (scratch): Fix outdated comment and remove "0" field.
38484 * gengtype.c (adjust_field_rtx_def): Update accordingly.
38486 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38488 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
38489 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
38490 * rtl.h (rtx_def): Add insn_uid to u2 field.
38491 (RTX_FLAG_CHECK8): Delete in favor of...
38492 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
38493 (INSN_DELETED_P): Update accordingly.
38494 (INSN_UID): Use u2.insn_uid.
38495 (INSN_CHAIN_CODE_P): Define.
38496 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
38497 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
38498 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
38499 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
38500 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
38501 indices accordingly.
38502 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
38503 Update indices for insn-chain rtxes.
38504 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
38505 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
38506 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
38507 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
38508 * combine.c (try_combine): Likewise.
38509 * ira.c (setup_prohibited_mode_move_regs): Likewise.
38511 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38513 * rtl.def (REG): Remove middle field.
38514 * rtl.h (rtx_def): Add orignal_regno to u2.
38515 (ORIGINAL_REGNO): Use it instead of field 1.
38516 (REG_ATTRS): Lower field index accordingly.
38517 * gengtype.c (adjust_field_rtx_def): Remove handling of
38518 ORIGINAL_REGNO. Move REG_ATTRS index down.
38519 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
38520 code that prints the REGNO.
38522 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38524 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
38527 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38529 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
38531 2014-05-13 Bin Cheng <bin.cheng@arm.com>
38533 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
38534 (alloc_iv): Lower base expressions containing ADDR_EXPR.
38536 2014-05-13 Ian Bolton <ian.bolton@arm.com>
38538 * config/aarch64/aarch64-protos.h
38539 (aarch64_hard_regno_caller_save_mode): New prototype.
38540 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
38542 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
38544 2014-05-13 Christian Bruel <christian.bruel@st.com>
38546 * target.def (mode_switching): New hook vector.
38547 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
38548 (mode_exit, modepriority_to_mode): Likewise.
38549 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
38550 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38551 * target.h: Include tm.h and hard-reg-set.h.
38552 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
38553 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
38554 * doc/tm.texi Regenerate.
38555 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38556 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38557 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
38558 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
38559 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38560 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38561 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
38562 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
38563 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
38564 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
38565 (ix86_emit_mode_set): Hookify.
38566 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
38568 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38569 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
38570 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
38571 (epiphany_mode_priority_to_mode): Remove declaration.
38572 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
38573 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
38574 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
38576 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
38577 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
38578 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
38580 2014-05-13 Jakub Jelinek <jakub@redhat.com>
38583 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
38584 is const0_rtx, return immediately. Don't test count == 0 when
38587 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38589 * Makefile.in: add shrink-wrap.o.
38590 * config/i386/i386.c: include "shrink-wrap.h"
38591 * function.c: Likewise.
38592 (requires_stack_frame_p, next_block_for_reg,
38593 move_insn_for_shrink_wrap, prepare_shrink_wrap,
38594 dup_block_and_redirect): Move to shrink-wrap.c
38595 (thread_prologue_and_epilogue_insns): Extract three code segments
38596 as functions in shrink-wrap.c
38597 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
38599 * shrink-wrap.c: New file.
38600 * shrink-wrap.h: New file.
38602 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38604 * doc/extend.texi: Reflect current numbers of pragmas. Remove
38605 reference to Solaris.
38607 2014-05-12 Mike Stump <mikestump@comcast.net>
38610 * genattrtab.c (filename): Add.
38611 (convert_set_attr_alternative): Improve error message.
38612 (check_defs): Restore read_md_filename for error messages.
38613 (gen_insn): Save filename.
38615 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
38617 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
38618 -fno-local-ivars and -fivar-visibility.
38619 * c-family/c.opt: Make -Wshadow also implicitly enable
38622 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38624 * doc/tm.texi: Remove reference to deleted macro.
38625 * doc/tm.texi.in: Likewise.
38627 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38630 * config/avr/avr.c (avr_out_store_psi): Use correct constant
38633 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
38636 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
38637 * config/arm/aout.h (License): Same.
38638 * config/arm/bpabi.h (License): Same.
38639 * config/arm/elf.h (License): Same.
38640 * config/arm/linux-elf.h (License): Same.
38641 * config/arm/linux-gas.h (License): Same.
38642 * config/arm/netbsd-elf.h (License): Same.
38643 * config/arm/uclinux-eabi.h (License): Same.
38644 * config/arm/uclinux-elf.h (License): Same.
38645 * config/arm/vxworks.h (License): Same.
38647 2014-05-11 Jakub Jelinek <jakub@redhat.com>
38649 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
38650 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
38651 number of operands to 3.
38652 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
38653 * tree-nested.c (convert_nonlocal_omp_clauses,
38654 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
38655 * gimplify.c (gimplify_scan_omp_clauses): Handle
38656 OMP_CLAUSE_LINEAR_STMT.
38657 * omp-low.c (lower_rec_input_clauses): Fix typo.
38658 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
38659 cast between Fortran boolean_type_node and C _Bool if
38662 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
38664 PR tree-optimization/61136
38665 * wide-int.h (multiple_of_p): Define a version that doesn't return
38667 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
38668 integer_zerop/const_binop pair.
38669 (multiple_of_p): Likewise, converting both operands to widest_int
38672 2014-05-09 Teresa Johnson <tejohnson@google.com>
38674 * cgraphunit.c (analyze_functions): Use correct dump file.
38676 2014-05-09 Florian Weimer <fweimer@redhat.com>
38678 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
38680 (stack_protect_return_slot_p): New function.
38681 (expand_used_vars): Call stack_protect_decl_p and
38682 stack_protect_return_slot_p for -fstack-protector-strong.
38684 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
38685 Andrew Haley <aph@redhat.com>
38686 Richard Sandiford <rdsandiford@googlemail.com>
38688 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
38691 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
38693 PR middle-end/61111
38694 * fold-const.c (fold_binary_loc): Changed width of mask.
38696 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38698 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
38699 unsigned int initializers for regno_in, regno_out.
38701 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38704 * config/avr/avr.md (cc): Add new attribute set_vzn.
38705 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
38706 Set cc insn attribute to set_vzn instead of set_zn for alternatives
38707 with INC, DEC or NEG.
38708 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
38709 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
38710 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
38712 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38715 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38717 * wide-int.cc (UTItype): Define.
38718 (UDWtype): Define for appropriate W_TYPE_SIZE.
38720 2014-05-09 Richard Biener <rguenther@suse.de>
38722 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
38723 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
38724 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
38725 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
38726 ssa_propagate): Adjust.
38728 2014-05-08 Jeff Law <law@redhat.com>
38730 PR tree-optimization/61009
38731 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
38732 tri-state rather than a boolean. When a block is too big to
38733 thread through, inform caller via negative return value.
38734 (thread_across_edge): If a block was too big for normal threading,
38735 then it's too big for a joiner too, so remove temporary equivalences
38736 and return immediately.
38738 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
38739 Matthias Klose <doko@ubuntu.com>
38742 * optc-gen.awk: Fix option handling for -Wunused-parameter.
38744 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38747 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
38749 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38752 * config/alpha/alpha.c: Include gimple-iterator.h.
38753 (alpha_gimple_fold_builtin): New function. Move
38754 ALPHA_BUILTIN_UMULH folding from ...
38755 (alpha_fold_builtin): ... here.
38756 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
38758 2014-05-08 Wei Mi <wmi@google.com>
38761 * config/i386/i386.c (ix86_compute_frame_layout): Update
38762 preferred_stack_boundary for call, expanded from tls descriptor.
38763 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
38764 to depend on SP register.
38765 (*tls_local_dynamic_base_32_gnu): Ditto.
38766 (*tls_local_dynamic_32_once): Ditto.
38767 (tls_global_dynamic_64_<mode>): Set
38768 ix86_tls_descriptor_calls_expanded_in_cfun.
38769 (tls_local_dynamic_base_64_<mode>): Ditto.
38770 (tls_global_dynamic_32): Set
38771 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
38772 to depend on SP register.
38773 (tls_local_dynamic_base_32): Ditto.
38775 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38777 * config/arm/arm_neon.h: Update comment.
38778 * config/arm/neon-docgen.ml: Delete.
38779 * config/arm/neon-gen.ml: Delete.
38780 * doc/arm-neon-intrinsics.texi: Update comment.
38782 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38784 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
38786 (vand, vorr, veor, vorn, vbic): Remove.
38787 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
38789 (neon_vsub_unspec): Likewise.
38790 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
38792 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38794 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
38795 (vadd_s16): Likewise.
38796 (vadd_s32): Likewise.
38797 (vadd_f32): Likewise.
38798 (vadd_u8): Likewise.
38799 (vadd_u16): Likewise.
38800 (vadd_u32): Likewise.
38801 (vadd_s64): Likewise.
38802 (vadd_u64): Likewise.
38803 (vaddq_s8): Likewise.
38804 (vaddq_s16): Likewise.
38805 (vaddq_s32): Likewise.
38806 (vaddq_s64): Likewise.
38807 (vaddq_f32): Likewise.
38808 (vaddq_u8): Likewise.
38809 (vaddq_u16): Likewise.
38810 (vaddq_u32): Likewise.
38811 (vaddq_u64): Likewise.
38812 (vmul_s8): Likewise.
38813 (vmul_s16): Likewise.
38814 (vmul_s32): Likewise.
38815 (vmul_f32): Likewise.
38816 (vmul_u8): Likewise.
38817 (vmul_u16): Likewise.
38818 (vmul_u32): Likewise.
38819 (vmul_p8): Likewise.
38820 (vmulq_s8): Likewise.
38821 (vmulq_s16): Likewise.
38822 (vmulq_s32): Likewise.
38823 (vmulq_f32): Likewise.
38824 (vmulq_u8): Likewise.
38825 (vmulq_u16): Likewise.
38826 (vmulq_u32): Likewise.
38827 (vsub_s8): Likewise.
38828 (vsub_s16): Likewise.
38829 (vsub_s32): Likewise.
38830 (vsub_f32): Likewise.
38831 (vsub_u8): Likewise.
38832 (vsub_u16): Likewise.
38833 (vsub_u32): Likewise.
38834 (vsub_s64): Likewise.
38835 (vsub_u64): Likewise.
38836 (vsubq_s8): Likewise.
38837 (vsubq_s16): Likewise.
38838 (vsubq_s32): Likewise.
38839 (vsubq_s64): Likewise.
38840 (vsubq_f32): Likewise.
38841 (vsubq_u8): Likewise.
38842 (vsubq_u16): Likewise.
38843 (vsubq_u32): Likewise.
38844 (vsubq_u64): Likewise.
38845 (vand_s8): Likewise.
38846 (vand_s16): Likewise.
38847 (vand_s32): Likewise.
38848 (vand_u8): Likewise.
38849 (vand_u16): Likewise.
38850 (vand_u32): Likewise.
38851 (vand_s64): Likewise.
38852 (vand_u64): Likewise.
38853 (vandq_s8): Likewise.
38854 (vandq_s16): Likewise.
38855 (vandq_s32): Likewise.
38856 (vandq_s64): Likewise.
38857 (vandq_u8): Likewise.
38858 (vandq_u16): Likewise.
38859 (vandq_u32): Likewise.
38860 (vandq_u64): Likewise.
38861 (vorr_s8): Likewise.
38862 (vorr_s16): Likewise.
38863 (vorr_s32): Likewise.
38864 (vorr_u8): Likewise.
38865 (vorr_u16): Likewise.
38866 (vorr_u32): Likewise.
38867 (vorr_s64): Likewise.
38868 (vorr_u64): Likewise.
38869 (vorrq_s8): Likewise.
38870 (vorrq_s16): Likewise.
38871 (vorrq_s32): Likewise.
38872 (vorrq_s64): Likewise.
38873 (vorrq_u8): Likewise.
38874 (vorrq_u16): Likewise.
38875 (vorrq_u32): Likewise.
38876 (vorrq_u64): Likewise.
38877 (veor_s8): Likewise.
38878 (veor_s16): Likewise.
38879 (veor_s32): Likewise.
38880 (veor_u8): Likewise.
38881 (veor_u16): Likewise.
38882 (veor_u32): Likewise.
38883 (veor_s64): Likewise.
38884 (veor_u64): Likewise.
38885 (veorq_s8): Likewise.
38886 (veorq_s16): Likewise.
38887 (veorq_s32): Likewise.
38888 (veorq_s64): Likewise.
38889 (veorq_u8): Likewise.
38890 (veorq_u16): Likewise.
38891 (veorq_u32): Likewise.
38892 (veorq_u64): Likewise.
38893 (vbic_s8): Likewise.
38894 (vbic_s16): Likewise.
38895 (vbic_s32): Likewise.
38896 (vbic_u8): Likewise.
38897 (vbic_u16): Likewise.
38898 (vbic_u32): Likewise.
38899 (vbic_s64): Likewise.
38900 (vbic_u64): Likewise.
38901 (vbicq_s8): Likewise.
38902 (vbicq_s16): Likewise.
38903 (vbicq_s32): Likewise.
38904 (vbicq_s64): Likewise.
38905 (vbicq_u8): Likewise.
38906 (vbicq_u16): Likewise.
38907 (vbicq_u32): Likewise.
38908 (vbicq_u64): Likewise.
38909 (vorn_s8): Likewise.
38910 (vorn_s16): Likewise.
38911 (vorn_s32): Likewise.
38912 (vorn_u8): Likewise.
38913 (vorn_u16): Likewise.
38914 (vorn_u32): Likewise.
38915 (vorn_s64): Likewise.
38916 (vorn_u64): Likewise.
38917 (vornq_s8): Likewise.
38918 (vornq_s16): Likewise.
38919 (vornq_s32): Likewise.
38920 (vornq_s64): Likewise.
38921 (vornq_u8): Likewise.
38922 (vornq_u16): Likewise.
38923 (vornq_u32): Likewise.
38924 (vornq_u64): Likewise.
38926 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38928 * wide-int.cc (UTItype): Define.
38929 (UDWtype): Define for appropriate W_TYPE_SIZE.
38931 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
38933 PR tree-optimization/59100
38934 * tree-ssa-phiopt.c: Include tree-inline.h.
38935 (neutral_element_p, absorbing_element_p): New functions.
38936 (value_replacement): Handle conditional binary operations with a
38937 neutral or absorbing element.
38939 2014-05-08 Richard Biener <rguenther@suse.de>
38941 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
38942 folding the expression.
38943 (valueize_expr): Remove.
38944 (visit_reference_op_load): Do not valueize the result of
38946 (simplify_binary_expression): Likewise.
38947 (simplify_unary_expression): Likewise.
38949 2014-05-08 Richard Biener <rguenther@suse.de>
38951 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
38952 looking at TYPE_ARG_TYPES.
38954 2014-05-08 Richard Biener <rguenther@suse.de>
38956 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
38957 pointer propagation special-case.
38959 2014-05-08 Bin Cheng <bin.cheng@arm.com>
38961 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
38962 core part of address expressions.
38964 2014-05-08 Alan Modra <amodra@gmail.com>
38967 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
38968 loads and stores when -mno-strict-align at any alignment.
38969 (expand_block_clear): Similarly. Also correct calculation of
38972 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
38974 PR middle-end/39246
38975 * tree-complex.c (expand_complex_move): Keep line info when expanding
38977 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
38978 of complex expression. Use new argument to display correct location
38979 for values coming from phi statement.
38980 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
38981 (warn_uninitialized_phi): Pass location of phi argument to
38983 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
38984 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
38986 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
38988 * config/rs6000/predicates.md (indexed_address_mem): New.
38989 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
38990 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
38991 fpstore_ux, fpstore_u.
38992 (sign_extend, indexed, update): New.
38993 (cell_micro): Adjust.
38994 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
38995 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
38996 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
38997 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
38998 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
38999 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
39000 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
39001 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
39002 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
39003 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
39004 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
39005 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
39006 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
39007 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
39008 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
39010 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
39011 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
39012 *vsx_extract_<mode>_store): Adjust.
39013 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
39014 is_cracked_insn, insn_must_be_first_in_group,
39015 insn_must_be_last_in_group): Adjust.
39017 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
39019 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
39020 ppc440-fpstore): Adjust.
39021 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
39022 ppc476-fpstore): Adjust.
39023 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
39024 ppc601-fpstore): Adjust.
39025 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
39027 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
39029 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
39030 ppc7450-fpstore): Adjust.
39031 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
39032 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
39033 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
39035 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
39036 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
39037 cell-fpstore, cell-fpstore-update): Adjust.
39038 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
39039 ppce300c3_store, ppce300c3_fpstore): Adjust.
39040 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
39041 e500mc_fpstore): Adjust.
39042 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
39043 e500mc64_store, e500mc64_fpstore): Adjust.
39044 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
39045 e5500_fpstore): Adjust.
39046 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
39047 e6500_fpstore): Adjust.
39048 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
39050 * config/rs6000/power4.md (power4-load, power4-load-ext,
39051 power4-load-ext-update, power4-load-ext-update-indexed,
39052 power4-load-update-indexed, power4-load-update, power4-fpload,
39053 power4-fpload-update, power4-store, power4-store-update,
39054 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
39056 * config/rs6000/power5.md (power5-load, power5-load-ext,
39057 power5-load-ext-update, power5-load-ext-update-indexed,
39058 power5-load-update-indexed, power5-load-update, power5-fpload,
39059 power5-fpload-update, power5-store, power5-store-update,
39060 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
39062 * config/rs6000/power6.md (power6-load, power6-load-ext,
39063 power6-load-update, power6-load-update-indexed,
39064 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
39065 power6-fpload-update, power6-store, power6-store-update,
39066 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
39068 * config/rs6000/power7.md (power7-load, power7-load-ext,
39069 power7-load-update, power7-load-update-indexed,
39070 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
39071 power7-fpload-update, power7-store, power7-store-update,
39072 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
39074 * config/rs6000/power8.md (power8-load, power8-load-update,
39075 power8-load-ext, power8-load-ext-update, power8-fpload,
39076 power8-fpload-update, power8-store, power8-store-update-indexed,
39077 power8-fpstore, power8-fpstore-update): Adjust.
39078 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
39080 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
39081 titan_lsu_store, titan_lsu_fpstore): Adjust.
39082 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
39084 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
39087 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
39088 unrolled byte insns. Emit address increments after move insns.
39090 2014-05-07 David Malcolm <dmalcolm@redhat.com>
39092 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
39093 const_gimple, rather than a gimple.
39094 (gimple_call_builtin_p): Likewise, for the three variants.
39096 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
39097 (gimple_call_builtin_p): Likewise, for the three variants.
39099 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
39101 PR tree-optimization/61095
39102 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
39104 2014-05-07 Richard Biener <rguenther@suse.de>
39106 PR tree-optimization/61034
39107 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
39108 (maybe_skip_until): Use translate to take into account
39109 lattices when trying to do disambiguations.
39110 (get_continuation_for_phi_1): Likewise.
39111 (get_continuation_for_phi): Adjust for added translate arguments.
39112 (walk_non_aliased_vuses): Likewise.
39113 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
39114 (walk_non_aliased_vuses): Likewise.
39115 (call_may_clobber_ref_p_1): Declare.
39116 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
39117 calls. Stop early if we are only supposed to disambiguate.
39118 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
39120 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
39122 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
39123 Emit an error when the function has arguments.
39125 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39127 * cfgloop.h (unswitch_loops): Remove.
39128 * doc/passes.texi: Remove references to loop-unswitch.c
39129 * timevar.def (TV_LOOP_UNSWITCH): Remove.
39131 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
39133 * tree-vect-data-refs.c (vect_grouped_load_supported): New
39134 check for loads group of length 3.
39135 (vect_permute_load_chain): New permutations for loads group of
39137 * tree-vect-stmts.c (vect_model_load_cost): Change cost
39138 of vec_perm_shuffle for the new permutations.
39140 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
39142 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
39143 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
39144 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
39145 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
39146 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
39147 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
39148 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
39149 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
39151 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39153 * loop-unswitch.c: Delete.
39155 2014-05-07 Richard Biener <rguenther@suse.de>
39157 * config.gcc: Always set need_64bit_hwint to yes.
39159 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
39161 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
39162 of using optimize_size.
39164 2014-05-06 Mike Stump <mikestump@comcast.net>
39166 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
39168 2014-05-06 Joseph Myers <joseph@codesourcery.com>
39170 * config/i386/sse.md (*mov<mode>_internal)
39171 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
39172 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
39173 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
39174 (*<code><mode>3, *andnot<mode>3<mask_name>)
39175 (<mask_codefor><code><mode>3<mask_name>): Only consider
39176 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
39178 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39181 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
39183 * lra-constraints.c (valid_address_p): Move earlier in file.
39184 Add a constraint argument to the address_info version.
39185 (satisfies_memory_constraint_p): New function.
39186 (satisfies_address_constraint_p): Likewise.
39187 (process_alt_operands, curr_insn_transform): Use them.
39188 (process_address): Pass the constraint to valid_address_p when
39189 checking address operands.
39191 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
39193 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
39194 to their respective blocks. Fix inadvertent use of "node".
39196 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39198 * emit-rtl.c (init_derived_machine_modes): New functionm, split
39200 (init_emit_once): ...here.
39201 * rtl.h (init_derived_machine_modes): Declare.
39202 * toplev.c (do_compile): Call it even if no_backend.
39204 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
39205 Mike Stump <mikestump@comcast.net>
39206 Richard Sandiford <rdsandiford@googlemail.com>
39207 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39209 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
39210 (rtx_equal_for_memref_p): Update comment.
39211 (adjust_offset_for_component_ref): Use wide-int interfaces.
39212 * builtins.c (get_object_alignment_2): Likewise.
39213 (c_readstr): Likewise.
39214 (target_char_cast): Add comment.
39215 (determine_block_size): Use wide-int interfaces.
39216 (expand_builtin_signbit): Likewise.
39217 (fold_builtin_int_roundingfn): Likewise.
39218 (fold_builtin_bitop): Likewise.
39219 (fold_builtin_bswap): Likewise.
39220 (fold_builtin_logarithm): Use signop.
39221 (fold_builtin_pow): Likewise.
39222 (fold_builtin_memory_op): Use wide-int interfaces.
39223 (fold_builtin_object_size): Likewise.
39224 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
39225 nb_iterations_estimate.
39226 (record_niter_bound): Use wide-int interfaces.
39227 (get_estimated_loop_iterations_int): Likewise.
39228 (get_estimated_loop_iterations): Likewise.
39229 (get_max_loop_iterations): Likewise.
39230 * cfgloop.h: Include wide-int.h.
39231 (struct nb_iter_bound): Change bound to widest_int.
39232 (struct loop): Change nb_iterations_upper_bound and
39233 nb_iterations_estimate to widest_int.
39234 (record_niter_bound): Switch to use widest_int.
39235 (get_estimated_loop_iterations): Likewise.
39236 (get_max_loop_iterations): Likewise.
39237 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
39238 update for wide-int.
39239 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
39240 * combine.c (try_combine): Likewise.
39241 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
39242 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
39244 (aarch64_float_const_representable_p): Likewise.
39245 * config/arc/arc.c: Include wide-int.h.
39246 (arc_can_use_doloop_p): Use wide-int interfaces.
39247 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
39248 (vfp3_const_double_index): Likewise.
39249 * config/avr/avr.c (avr_out_round): Likewise.
39250 (avr_fold_builtin): Likewise.
39251 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
39252 (bfin_can_use_doloop_p): Likewise.
39253 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
39254 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
39255 * config/i386/i386.c: Include wide-int.h.
39256 (ix86_data_alignment): Use wide-int interfaces.
39257 (ix86_local_alignment): Likewise.
39258 (ix86_emit_swsqrtsf): Update real_from_integer.
39259 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
39260 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
39261 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
39262 (zero_constant): Likewise.
39263 (input_operand): Likewise.
39264 (splat_input_operand): Likewise.
39265 (non_logical_cint_operand): Change const_double to const_wide_int.
39266 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
39267 (easy_altivec_constant): Remove comment.
39268 (paired_expand_vector_init): Use CONSTANT_P.
39269 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
39270 (rs6000_emit_move): Update checks.
39271 (rs6000_aggregate_candidate): Use wide-int interfaces.
39272 (rs6000_expand_ternop_builtin): Likewise.
39273 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
39274 (rs6000_assemble_integer): Likewise.
39275 (rs6000_hash_constant): Likewise.
39276 (output_toc): Likewise.
39277 (rs6000_rtx_costs): Likewise.
39278 (rs6000_emit_swrsqrt); Update call to real_from_integer.
39279 * config/rs6000/rs6000-c.c: Include wide-int.h.
39280 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
39281 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
39282 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
39283 Handle CONST_WIDE_INT.
39284 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
39285 Use tree_fits_uhwi_p.
39286 * config/sparc/sparc.c: Include wide-int.h.
39287 (sparc_fold_builtin): Use wide-int interfaces.
39288 * config/vax/vax.c: Include wide-int.h.
39289 (vax_float_literal): Use real_from_integer.
39290 * coretypes.h (struct hwivec_def): New.
39292 (const_hwivec): New.
39293 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
39294 (equiv_constant): Handle CONST_WIDE_INT.
39295 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
39296 (cselib_hash_rtx): Handle CONST_WIDE_INT.
39297 * dbxout.c (stabstr_U): Use wide-int interfaces.
39298 (dbxout_type): Update to use cst_fits_shwi_p.
39299 * defaults.h (LOG2_BITS_PER_UNIT): Define.
39300 (TARGET_SUPPORTS_WIDE_INT): Add default.
39301 * dfp.c: Include wide-int.h.
39302 (decimal_real_to_integer2): Use wide-int interfaces and rename to
39303 decimal_real_to_integer.
39304 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
39305 decimal_real_to_integer.
39306 * doc/generic.texi (Constant expressions): Update for wide_int.
39307 * doc/rtl.texi (const_double): Likewise.
39308 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
39309 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
39310 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
39311 (REAL_VALUE_FROM_INT): Remove.
39312 (TARGET_SUPPORTS_WIDE_INT): New.
39313 * doc/tm.texi: Regenerate.
39314 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
39315 * double-int.h: Include wide-int.h.
39316 (struct wi::int_traits): New.
39317 * dwarf2out.c (get_full_len): New.
39318 (dw_val_equal_p): Add case dw_val_class_wide_int.
39319 (size_of_loc_descr): Likewise.
39320 (output_loc_operands): Likewise.
39321 (insert_double): Remove.
39322 (insert_wide_int): New.
39323 (add_AT_wide): New.
39324 (print_die): Add case dw_val_class_wide_int.
39325 (attr_checksum): Likewise.
39326 (attr_checksum_ordered): Likewise.
39327 (same_dw_val_p): Likewise.
39328 (size_of_die): Likewise.
39329 (value_format): Likewise.
39330 (output_die): Likewise.
39331 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
39333 (clz_loc_descriptor): Use wide-int interfaces.
39334 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
39335 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
39336 (round_up_to_align): Use wide-int interfaces.
39337 (field_byte_offset): Likewise.
39338 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
39339 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
39340 CONST_DOUBLE handling. Use wide-int interfaces.
39341 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
39342 (gen_enumeration_type_die): Use add_AT_wide.
39343 (hash_loc_operands): Add case dw_val_class_wide_int.
39344 (compare_loc_operands): Likewise.
39345 * dwarf2out.h: Include wide-int.h.
39346 (wide_int_ptr): New.
39347 (enum dw_val_class): Add dw_val_class_wide_int.
39348 (struct dw_val_struct): Add val_wide.
39349 * emit-rtl.c (const_wide_int_htab): New.
39350 (const_wide_int_htab_hash): New.
39351 (const_wide_int_htab_eq): New.
39352 (lookup_const_wide_int): New.
39353 (const_double_htab_hash): Use wide-int interfaces.
39354 (const_double_htab_eq): Likewise.
39355 (rtx_to_double_int): Conditionally compile for wide-int.
39356 (immed_double_int_const): Rename to immed_wide_int_const and
39357 update for wide-int.
39358 (immed_double_const): Conditionally compile for wide-int.
39359 (init_emit_once): Use wide-int interfaces.
39360 * explow.c (plus_constant): Likewise.
39361 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
39362 (lshift_value): Use wide-int interfaces.
39363 (expand_mult): Likewise.
39364 (choose_multiplier): Likewise.
39365 (expand_smod_pow2): Likewise.
39366 (make_tree): Likewise.
39367 * expr.c (convert_modes): Consolidate handling of constants.
39368 Use wide-int interfaces.
39369 (emit_group_load_1): Add note.
39370 (store_expr): Update comment.
39371 (get_inner_reference): Use wide-int interfaces.
39372 (expand_constructor): Update comment.
39373 (expand_expr_real_2): Use wide-int interfaces.
39374 (expand_expr_real_1): Likewise.
39375 (reduce_to_bit_field_precision): Likewise.
39376 (const_vector_from_tree): Likewise.
39377 * final.c: Include wide-int-print.h.
39378 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
39379 * fixed-value.c: Include wide-int.h.
39380 (fixed_from_string): Use wide-int interfaces.
39381 (fixed_to_decimal): Likewise.
39382 (fixed_convert_from_real): Likewise.
39383 (real_convert_from_fixed): Likewise.
39384 * fold-const.h (mem_ref_offset): Return an offset_int.
39385 (div_if_zero_remainder): Remove code parameter.
39386 * fold-const.c (div_if_zero_remainder): Remove code parameter.
39387 Use wide-int interfaces.
39388 (may_negate_without_overflow_p): Use wide-int interfaces.
39389 (negate_expr_p): Likewise.
39390 (fold_negate_expr): Likewise.
39391 (int_const_binop_1): Likewise.
39392 (const_binop): Likewise.
39393 (fold_convert_const_int_from_int): Likewise.
39394 (fold_convert_const_int_from_real): Likewise.
39395 (fold_convert_const_int_from_fixed): Likewise.
39396 (fold_convert_const_fixed_from_int): Likewise.
39397 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
39398 (sign_bit_p): Use wide-int interfaces.
39399 (make_range_step): Likewise.
39400 (build_range_check): Likewise. Pass an integer of the correct type
39401 instead of using integer_one_node.
39402 (range_predecessor): Pass an integer of the correct type instead
39403 of using integer_one_node.
39404 (range_successor): Likewise.
39405 (merge_ranges): Likewise.
39406 (unextend): Use wide-int interfaces.
39407 (extract_muldiv_1): Likewise.
39408 (fold_div_compare): Likewise.
39409 (fold_single_bit_test): Likewise.
39410 (fold_sign_changed_comparison): Likewise.
39411 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
39412 (fold_plusminus_mult_expr): Use wide-int interfaces.
39413 (native_encode_int): Likewise.
39414 (native_interpret_int): Likewise.
39415 (fold_unary_loc): Likewise.
39416 (pointer_may_wrap_p): Likewise.
39417 (size_low_cst): Likewise.
39418 (mask_with_tz): Likewise.
39419 (fold_binary_loc): Likewise.
39420 (fold_ternary_loc): Likewise.
39421 (multiple_of_p): Likewise.
39422 (tree_call_nonnegative_warnv_p): Update calls to
39423 tree_int_cst_min_precision and real_from_integer.
39424 (fold_negate_const): Use wide-int interfaces.
39425 (fold_abs_const): Likewise.
39426 (fold_relational_const): Use tree_int_cst_lt.
39427 (round_up_loc): Use wide-int interfaces.
39428 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
39429 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
39430 * gengtype.c: Remove include of double-int.h.
39431 (do_typedef): Use wide-int interfaces.
39432 (open_base_files): Add wide-int.h.
39433 (main): Add offset_int and widest_int typedefs.
39434 * gengtype-lex.l: Handle "^".
39435 (CXX_KEYWORD): Add "static".
39436 * gengtype-parse.c (require3): New.
39437 (require_template_declaration): Handle constant template arguments
39438 and nested templates.
39439 * gengtype-state.c: Don't include "double-int.h".
39440 * genpreds.c (write_one_predicate_function): Update comment.
39441 (write_tm_constrs_h): Add check for hval and lval use in
39443 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
39444 (add_to_sequence): Likewise.
39445 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
39446 and const_double_operand.
39447 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
39449 * gimple-fold.c (get_base_constructor): Likewise.
39450 (fold_array_ctor_reference): Likewise.
39451 (fold_nonarray_ctor_reference): Likewise.
39452 (fold_const_aggregate_ref_1): Likewise.
39453 (gimple_val_nonnegative_real_p): Likewise.
39454 (gimple_fold_indirect_ref): Likewise.
39455 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
39456 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
39457 (struct slsr_cand_d): Change index to be widest_int.
39458 (struct incr_info_d): Change incr to be widest_int.
39459 (alloc_cand_and_find_basis): Use wide-int interfaces.
39460 (slsr_process_phi): Likewise.
39461 (backtrace_base_for_ref): Likewise. Return a widest_int.
39462 (restructure_reference): Take a widest_int instead of a double_int.
39463 (slsr_process_ref): Use wide-int interfaces.
39464 (create_mul_ssa_cand): Likewise.
39465 (create_mul_imm_cand): Likewise.
39466 (create_add_ssa_cand): Likewise.
39467 (create_add_imm_cand): Take a widest_int instead of a double_int.
39468 (slsr_process_add): Use wide-int interfaces.
39469 (slsr_process_cast): Likewise.
39470 (slsr_process_copy): Likewise.
39471 (dump_candidate): Likewise.
39472 (dump_incr_vec): Likewise.
39473 (replace_ref): Likewise.
39474 (cand_increment): Likewise. Return a widest_int.
39475 (cand_abs_increment): Likewise.
39476 (replace_mult_candidate): Take a widest_int instead of a double_int.
39477 (replace_unconditional_candidate): Use wide-int interfaces.
39478 (incr_vec_index): Take a widest_int instead of a double_int.
39479 (create_add_on_incoming_edge): Likewise.
39480 (create_phi_basis): Use wide-int interfaces.
39481 (replace_conditional_candidate): Likewise.
39482 (record_increment): Take a widest_int instead of a double_int.
39483 (record_phi_increments): Use wide-int interfaces.
39484 (phi_incr_cost): Take a widest_int instead of a double_int.
39485 (lowest_cost_path): Likewise.
39486 (total_savings): Likewise.
39487 (analyze_increments): Use wide-int interfaces.
39488 (ncd_with_phi): Take a widest_int instead of a double_int.
39489 (ncd_of_cand_and_phis): Likewise.
39490 (nearest_common_dominator_for_cands): Likewise.
39491 (insert_initializers): Use wide-int interfaces.
39492 (all_phi_incrs_profitable): Likewise.
39493 (replace_one_candidate): Likewise.
39494 (replace_profitable_candidates): Likewise.
39495 * godump.c: Include wide-int-print.h.
39496 (go_output_typedef): Use wide-int interfaces.
39497 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
39498 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
39499 (build_loop_iteration_domains): Likewise.
39500 * hooks.h: Include wide-int.h rather than double-int.h.
39501 (hook_bool_dint_dint_uint_bool_true): Delete.
39502 (hook_bool_wint_wint_uint_bool_true): Declare.
39503 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
39504 (hook_bool_wint_wint_uint_bool_true): New.
39505 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
39507 (ubsan_expand_si_overflow_mul_check): Likewise.
39508 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
39509 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
39510 (get_ancestor_addr_info): Likewise.
39511 (ipa_modify_call_arguments): Likewise.
39512 * loop-doloop.c (doloop_modify): Likewise.
39513 (doloop_optimize): Likewise.
39514 * loop-iv.c (iv_number_of_iterations): Likewise.
39515 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
39516 (unroll_loop_constant_iterations): Likewise.
39517 (decide_unroll_runtime_iterations): Likewise.
39518 (unroll_loop_runtime_iterations): Likewise.
39519 (decide_peel_simple): Likewise.
39520 (decide_unroll_stupid): Likewise.
39521 * lto-streamer-in.c (streamer_read_wi): Add.
39522 (input_cfg): Use wide-int interfaces.
39523 (lto_input_tree_1): Likewise.
39524 * lto-streamer-out.c (streamer_write_wi): Add.
39525 (hash_tree): Use wide-int interfaces.
39526 (output_cfg): Likewise.
39527 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
39528 (GTFILES): Add wide-int.h and signop.h.
39529 (TAGS): Look for .cc files too.
39530 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
39531 * optabs.c (expand_subword_shift): Likewise.
39532 (expand_doubleword_shift): Likewise.
39533 (expand_absneg_bit): Likewise.
39534 (expand_copysign_absneg): Likewise.
39535 (expand_copysign_bit): Likewise.
39536 * postreload.c (reload_cse_simplify_set): Likewise.
39537 * predict.c (predict_iv_comparison): Likewise.
39538 * pretty-print.h: Include wide-int-print.h.
39540 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
39541 * print-tree.c: Include wide-int-print.h.
39542 (print_node_brief): Use wide-int interfaces.
39543 (print_node): Likewise.
39544 * read-rtl.c (validate_const_wide_int): New.
39545 (read_rtx_code): Add CONST_WIDE_INT case.
39546 * real.c: Include wide-int.h.
39547 (real_to_integer2): Delete.
39548 (real_to_integer): New function, returning a wide_int.
39549 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39550 (ten_to_ptwo): Update call to real_from_integer.
39551 (real_digit): Likewise.
39552 * real.h: Include signop.h, wide-int.h and insn-modes.h.
39553 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
39554 (REAL_VALUE_TO_INT): Delete.
39555 (real_to_integer): Declare a wide-int form.
39556 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39557 * recog.c (const_int_operand): Improve comment.
39558 (const_scalar_int_operand): New.
39559 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
39560 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
39561 (split_double): Likewise.
39562 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
39563 (rtx_size): Likewise.
39564 (rtx_alloc_stat_v): New.
39565 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
39566 (cwi_output_hex): New.
39567 (iterative_hash_rtx): Handle CONST_WIDE_INT.
39568 (cwi_check_failed_bounds): New.
39569 * rtl.def (CONST_WIDE_INT): New.
39570 * rtl.h: Include <utility> and wide-int.h.
39571 (struct hwivec_def): New.
39572 (CWI_GET_NUM_ELEM): New.
39573 (CWI_PUT_NUM_ELEM): New.
39574 (struct rtx_def): Add num_elem and hwiv.
39575 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
39576 (CASE_CONST_UNIQUE): Likewise.
39577 (CASE_CONST_ANY): Likewise.
39578 (CONST_SCALAR_INT_P): Likewise.
39579 (CONST_WIDE_INT_P): New.
39581 (HWIVEC_CHECK): New.
39582 (cwi_check_failed_bounds): New.
39584 (HWIVEC_CHECK): New.
39585 (CONST_WIDE_INT_VEC) New.
39586 (CONST_WIDE_INT_NUNITS) New.
39587 (CONST_WIDE_INT_ELT) New.
39588 (rtx_mode_t): New type.
39589 (wi::int_traits <rtx_mode_t>): New.
39591 (wi::min_value): New.
39592 (wi::max_value): New.
39594 (const_wide_int_alloc): New.
39595 (immed_wide_int_const): New.
39596 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
39597 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
39598 * signop.h: New file.
39599 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
39600 (simplify_const_unary_operation): Use wide-int interfaces.
39601 (simplify_binary_operation_1): Likewise.
39602 (simplify_const_binary_operation): Likewise.
39603 (simplify_const_relational_operation): Likewise.
39604 (simplify_immed_subreg): Likewise.
39605 * stmt.c (expand_case): Likewise.
39606 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
39607 signop rather than a bool.
39608 * stor-layout.c (layout_type): Use wide-int interfaces.
39609 (initialize_sizetypes): Update calls to
39610 set_min_and_max_values_for_integral_type.
39611 (set_min_and_max_values_for_integral_type): Take a signop rather
39612 than a bool. Use wide-int interfaces.
39613 (fixup_signed_type): Update accordingly. Remove
39614 HOST_BITS_PER_DOUBLE_INT limit.
39615 (fixup_unsigned_type): Likewise.
39616 * system.h (STATIC_CONSTANT_P): New.
39617 (STATIC_ASSERT): New.
39618 * target.def (can_use_doloop_p): Take widest_ints rather than
39620 * target.h: Include wide-int.h rather than double-int.h.
39621 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
39623 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
39624 rather than INT_CST_LT_UNSIGNED.
39625 (can_use_doloop_if_innermost): Take widest_ints rather than
39627 * tree-affine.c: Include wide-int-print.h.
39628 (double_int_ext_for_comb): Delete.
39629 (wide_int_ext_for_comb): New.
39630 (aff_combination_zero): Use wide-int interfaces.
39631 (aff_combination_const): Take a widest_int instead of a double_int.
39632 (aff_combination_elt): Use wide-int interfaces.
39633 (aff_combination_scale): Take a widest_int instead of a double_int.
39634 (aff_combination_add_elt): Likewise.
39635 (aff_combination_add_cst): Likewise.
39636 (aff_combination_add): Use wide-int interfaces.
39637 (aff_combination_convert): Likewise.
39638 (tree_to_aff_combination): Likewise.
39639 (add_elt_to_tree): Take a widest_int instead of a double_int.
39640 (aff_combination_to_tree): Use wide-int interfaces.
39641 (aff_combination_remove_elt): Likewise.
39642 (aff_combination_add_product): Take a widest_int instead of
39644 (aff_combination_mult): Use wide-int interfaces.
39645 (aff_combination_expand): Likewise.
39646 (double_int_constant_multiple_p): Delete.
39647 (wide_int_constant_multiple_p): New.
39648 (aff_combination_constant_multiple_p): Take a widest_int pointer
39649 instead of a double_int pointer.
39650 (print_aff): Use wide-int interfaces.
39651 (get_inner_reference_aff): Take a widest_int pointer
39652 instead of a double_int pointer.
39653 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
39654 * tree-affine.h: Include wide-int.h.
39655 (struct aff_comb_elt): Change type of coef to widest_int.
39656 (struct affine_tree_combination): Change type of offset to widest_int.
39657 (double_int_ext_for_comb): Delete.
39658 (wide_int_ext_for_comb): New.
39659 (aff_combination_const): Use widest_int instead of double_int.
39660 (aff_combination_scale): Likewise.
39661 (aff_combination_add_elt): Likewise.
39662 (aff_combination_constant_multiple_p): Likewise.
39663 (get_inner_reference_aff): Likewise.
39664 (aff_comb_cannot_overlap_p): Likewise.
39665 (aff_combination_zero_p): Use wide-int interfaces.
39666 * tree.c: Include tree.h.
39667 (init_ttree): Use make_int_cst.
39668 (tree_code_size): Removed code for INTEGER_CST case.
39669 (tree_size): Add INTEGER_CST case.
39670 (make_node_stat): Update comment.
39671 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
39672 (build_int_cst_type): Use wide-int interfaces.
39673 (double_int_to_tree): Likewise.
39674 (double_int_fits_to_tree_p): Delete.
39675 (force_fit_type_double): Delete.
39676 (force_fit_type): New.
39677 (int_cst_hash_hash): Use wide-int interfaces.
39678 (int_cst_hash_eq): Likewise.
39679 (build_int_cst_wide): Delete.
39680 (wide_int_to_tree): New.
39681 (cache_integer_cst): Use wide-int interfaces.
39682 (build_low_bits_mask): Likewise.
39683 (cst_and_fits_in_hwi): Likewise.
39684 (real_value_from_int_cst): Likewise.
39685 (make_int_cst_stat): New.
39686 (integer_zerop): Use wide_int interfaces.
39687 (integer_onep): Likewise.
39688 (integer_all_onesp): Likewise.
39689 (integer_pow2p): Likewise.
39690 (integer_nonzerop): Likewise.
39691 (tree_log2): Likewise.
39692 (tree_floor_log2): Likewise.
39693 (tree_ctz): Likewise.
39694 (int_size_in_bytes): Likewise.
39695 (mem_ref_offset): Return an offset_int rather than a double_int.
39696 (build_type_attribute_qual_variant): Use wide_int interfaces.
39697 (type_hash_eq): Likewise
39698 (tree_int_cst_equal): Likewise.
39699 (tree_int_cst_lt): Delete.
39700 (tree_int_cst_compare): Likewise.
39701 (tree_fits_shwi_p): Use wide_int interfaces.
39702 (tree_fits_uhwi_p): Likewise.
39703 (tree_int_cst_sign_bit): Likewise.
39704 (tree_int_cst_sgn): Likewise.
39705 (tree_int_cst_min_precision): Take a signop rather than a bool.
39706 (simple_cst_equal): Use wide_int interfaces.
39707 (compare_tree_int): Likewise.
39708 (iterative_hash_expr): Likewise.
39709 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
39711 (get_type_static_bounds): Use wide_int interfaces.
39712 (tree_int_cst_elt_check_failed): New.
39713 (build_common_tree_nodes): Reordered to set prec before filling in
39715 (int_cst_value): Check cst_and_fits_in_hwi.
39716 (widest_int_cst_value): Use wide_int interfaces.
39717 (upper_bound_in_type): Likewise.
39718 (lower_bound_in_type): Likewise.
39719 (num_ending_zeros): Likewise.
39720 (drop_tree_overflow): Likewise.
39721 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
39722 (gen_conditions_for_pow_cst_base): Likewise.
39723 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
39724 (group_case_labels_stmt): Use wide-int interfaces.
39725 (verify_gimple_assign_binary): Likewise.
39726 (print_loop): Likewise.
39727 * tree-chrec.c (tree_fold_binomial): Likewise.
39728 * tree-core.h (struct tree_base): Add int_length.
39729 (struct tree_int_cst): Change rep of value.
39730 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
39731 (dr_may_alias_p): Likewise.
39732 (max_stmt_executions_tree): Likewise.
39733 * tree.def (INTEGER_CST): Update comment.
39734 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
39735 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
39736 * tree-dump.c: Include wide-int.h and wide-int-print.h.
39737 (dequeue_and_dump): Use wide-int interfaces.
39738 * tree.h: Include wide-int.h.
39739 (NULL_TREE): Moved to earlier loc in file.
39740 (TREE_INT_CST_ELT_CHECK): New.
39741 (tree_int_cst_elt_check_failed): New.
39743 (TREE_INT_CST): Delete.
39744 (TREE_INT_CST_LOW): Use wide-int interfaces.
39745 (TREE_INT_CST_HIGH): Delete.
39746 (TREE_INT_CST_NUNITS): New.
39747 (TREE_INT_CST_EXT_NUNITS): Likewise.
39748 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
39749 (TREE_INT_CST_ELT): Likewise.
39750 (INT_CST_LT): Delete.
39751 (tree_int_cst_elt_check): New (two forms).
39752 (type_code_size): Update comment.
39753 (make_int_cst_stat, make_int_cst): New.
39754 (tree_to_double_int): Delete.
39755 (double_int_fits_to_tree_p): Delete.
39756 (force_fit_type_double): Delete.
39757 (build_int_cstu): Replace with out-of-line function.
39758 (build_int_cst_wide): Delete.
39759 (tree_int_cst_lt): Define inline.
39760 (tree_int_cst_le): New.
39761 (tree_int_cst_compare): Define inline.
39762 (tree_int_cst_min_precision): Take a signop rather than a bool.
39763 (wi::int_traits <const_tree>): New.
39764 (wi::int_traits <tree>): New.
39765 (wi::extended_tree): New.
39766 (wi::int_traits <wi::extended_tree>): New.
39767 (wi::to_widest): New.
39768 (wi::to_offset): New.
39769 (wi::fits_to_tree_p): New.
39770 (wi::min_value): New.
39771 (wi::max_value): New.
39772 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
39773 (copy_tree_body_r): Likewise.
39774 * tree-object-size.c (compute_object_offset): Likewise.
39775 (addr_object_size): Likewise.
39776 * tree-predcom.c: Include wide-int-print.h.
39777 (struct dref_d): Change type of offset to widest_int.
39778 (dump_dref): Call wide-int printer.
39779 (aff_combination_dr_offset): Use wide-int interfaces.
39780 (determine_offset): Take a widest_int pointer rather than a
39781 double_int pointer.
39782 (split_data_refs_to_components): Use wide-int interfaces.
39783 (suitable_component_p): Likewise.
39784 (order_drefs): Likewise.
39785 (add_ref_to_chain): Likewise.
39786 (valid_initializer_p): Likewise.
39787 (determine_roots_comp): Likewise.
39788 * tree-pretty-print.c: Include wide-int-print.h.
39789 (dump_generic_node): Use wide-int interfaces.
39790 * tree-sra.c (sra_ipa_modify_expr): Likewise.
39791 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
39792 (move_fixed_address_to_symbol): Likewise.
39793 (move_hint_to_base): Likewise.
39794 (move_pointer_to_base): Likewise.
39795 (move_variant_to_index): Likewise.
39796 (most_expensive_mult_to_index): Likewise.
39797 (addr_to_parts): Likewise.
39798 (copy_ref_info): Likewise.
39799 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
39800 (indirect_refs_may_alias_p): Likewise.
39801 (stmt_kills_ref_p_1): Likewise.
39802 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
39803 * tree-ssa-ccp.c: Update comment at top of file. Include
39805 (struct prop_value_d): Change type of mask to widest_int.
39806 (extend_mask): New function.
39807 (dump_lattice_value): Use wide-int interfaces.
39808 (get_default_value): Likewise.
39809 (set_constant_value): Likewise.
39810 (set_value_varying): Likewise.
39811 (valid_lattice_transition): Likewise.
39812 (set_lattice_value): Likewise.
39813 (value_to_double_int): Delete.
39814 (value_to_wide_int): New.
39815 (get_value_from_alignment): Use wide-int interfaces.
39816 (get_value_for_expr): Likewise.
39817 (do_dbg_cnt): Likewise.
39818 (ccp_finalize): Likewise.
39819 (ccp_lattice_meet): Likewise.
39820 (bit_value_unop_1): Use widest_ints rather than double_ints.
39821 (bit_value_binop_1): Likewise.
39822 (bit_value_unop): Use wide-int interfaces.
39823 (bit_value_binop): Likewise.
39824 (bit_value_assume_aligned): Likewise.
39825 (evaluate_stmt): Likewise.
39826 (ccp_fold_stmt): Likewise.
39827 (visit_cond_stmt): Likewise.
39828 (ccp_visit_stmt): Likewise.
39829 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
39830 (constant_pointer_difference): Likewise.
39831 (associate_pointerplus): Likewise.
39832 (combine_conversions): Likewise.
39833 * tree-ssa-loop.h: Include wide-int.h.
39834 (struct tree_niter_desc): Change type of max to widest_int.
39835 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
39836 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
39837 (remove_redundant_iv_tests): Likewise.
39838 (canonicalize_loop_induction_variables): Likewise.
39839 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
39840 (constant_multiple_of): Take a widest_int pointer instead of
39841 a double_int pointer.
39842 (get_computation_aff): Use wide-int interfaces.
39843 (ptr_difference_cost): Likewise.
39844 (difference_cost): Likewise.
39845 (get_loop_invariant_expr_id): Likewise.
39846 (get_computation_cost_at): Likewise.
39847 (iv_elimination_compare_lt): Likewise.
39848 (may_eliminate_iv): Likewise.
39849 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
39850 instead of double_int.
39851 (max_loop_iterations): Likewise.
39852 (max_stmt_executions): Likewise.
39853 (estimated_stmt_executions): Likewise.
39854 * tree-ssa-loop-niter.c: Include wide-int-print.h.
39855 (split_to_var_and_offset): Use wide-int interfaces.
39856 (determine_value_range): Likewise.
39857 (bound_difference_of_offsetted_base): Likewise.
39858 (bounds_add): Take a widest_int instead of a double_int.
39859 (number_of_iterations_ne_max): Use wide-int interfaces.
39860 (number_of_iterations_ne): Likewise.
39861 (number_of_iterations_lt_to_ne): Likewise.
39862 (assert_loop_rolls_lt): Likewise.
39863 (number_of_iterations_lt): Likewise.
39864 (number_of_iterations_le): Likewise.
39865 (number_of_iterations_cond): Likewise.
39866 (number_of_iterations_exit): Likewise.
39867 (finite_loop_p): Likewise.
39868 (derive_constant_upper_bound_assign): Likewise.
39869 (derive_constant_upper_bound): Return a widest_int.
39870 (derive_constant_upper_bound_ops): Likewise.
39871 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
39872 (record_estimate): Take a widest_int rather than a double_int.
39873 (record_nonwrapping_iv): Use wide-int interfaces.
39874 (double_int_cmp): Delete.
39875 (wide_int_cmp): New.
39876 (bound_index): Take a widest_int rather than a double_int.
39877 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
39878 (maybe_lower_iteration_bound): Likewise.
39879 (estimate_numbers_of_iterations_loop): Likewise.
39880 (estimated_loop_iterations): Take a widest_int pointer than than
39881 a double_int pointer.
39882 (estimated_loop_iterations_int): Use wide-int interfaces.
39883 (max_loop_iterations): Take a widest_int pointer than than
39884 a double_int pointer.
39885 (max_loop_iterations_int): Use wide-int interfaces.
39886 (max_stmt_executions): Take a widest_int pointer than than
39887 a double_int pointer.
39888 (estimated_stmt_executions): Likewise.
39889 (n_of_executions_at_most): Use wide-int interfaces.
39890 (scev_probably_wraps_p): Likewise.
39891 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
39892 to real_to_integer.
39893 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
39895 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
39896 double_ints. Adjust for trailing_wide_ints <3> representation.
39897 (set_nonzero_bits): Likewise.
39898 (get_range_info): Return wide_ints rather than double_ints.
39899 Adjust for trailing_wide_ints <3> representation.
39900 (get_nonzero_bits): Likewise.
39901 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
39903 * tree-ssanames.h (struct range_info_def): Replace min, max and
39904 nonzero_bits with a trailing_wide_ints <3>.
39905 (set_range_info): Use wide_int_refs rather than double_ints.
39906 (set_nonzero_bits): Likewise.
39907 (get_range_info): Return wide_ints rather than double_ints.
39908 (get_nonzero_bits): Likewise.
39909 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
39910 * tree-ssa-pre.c (phi_translate_1): Likewise.
39911 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
39912 (acceptable_pow_call): Likewise.
39913 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
39915 (vn_reference_fold_indirect): Likewise.
39916 (vn_reference_maybe_forwprop_address): Likewise.
39917 (valueize_refs_1): Likewise.
39918 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
39919 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
39920 tree_int_cst_lt and tree_int_cst_le.
39921 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
39923 (streamer_alloc_tree): Likewise.
39924 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
39925 (streamer_write_tree_header): Likewise.
39926 (streamer_write_integer_cst): Likewise.
39927 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
39928 (build_constructors): Likewise.
39929 (array_value_type): Likewise.
39930 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
39931 (vect_check_gather): Likewise.
39932 * tree-vect-generic.c (build_replicated_const): Likewise.
39933 (expand_vector_divmod): Likewise.
39934 * tree-vect-loop.c (vect_transform_loop): Likewise.
39935 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
39936 (vect_do_peeling_for_alignment): Likewise.
39937 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
39938 * tree-vrp.c: Include wide-int.h.
39939 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
39940 (extract_range_from_assert): Use wide-int interfaces.
39941 (vrp_int_const_binop): Likewise.
39942 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
39943 double_int pointers.
39944 (ranges_from_anti_range): Use wide-int interfaces.
39945 (quad_int_cmp): Delete.
39946 (quad_int_pair_sort): Likewise.
39947 (extract_range_from_binary_expr_1): Use wide-int interfaces.
39948 (extract_range_from_unary_expr_1): Likewise.
39949 (adjust_range_with_scev): Likewise.
39950 (masked_increment): Take and return wide_ints rather than double_ints.
39951 (register_edge_assert_for_2): Use wide-int interfaces.
39952 (check_array_ref): Likewise.
39953 (search_for_addr_array): Likewise.
39954 (maybe_set_nonzero_bits): Likewise.
39955 (union_ranges): Pass an integer of the correct type instead of
39956 using integer_one_node.
39957 (intersect_ranges): Likewise.
39958 (simplify_truth_ops_using_ranges): Likewise.
39959 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
39960 (range_fits_type_p): Likewise.
39961 (simplify_cond_using_ranges): Likewise. Take a signop rather than
39963 (simplify_conversion_using_ranges): Use wide-int interfaces.
39964 (simplify_float_conversion_using_ranges): Likewise.
39965 (vrp_finalize): Likewise.
39966 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
39967 (gimple_stringops_transform): Likewise.
39968 * varasm.c (decode_addr_const): Likewise.
39969 (const_hash_1): Likewise.
39970 (const_rtx_hash_1): Likewise
39971 (output_constant): Likewise.
39972 (array_size_for_constructor): Likewise.
39973 (output_constructor_regular_field): Likewise.
39974 (output_constructor_bitfield): Likewise.
39975 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
39976 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
39978 * gencheck.c: Define BITS_PER_UNIT.
39979 * wide-int.cc: New.
39981 * wide-int-print.cc: New.
39982 * wide-int-print.h: New.
39984 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39986 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
39988 2014-05-06 Richard Biener <rguenther@suse.de>
39990 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
39991 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
39992 (TODO_verify_all): Adjust.
39993 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
39994 TODO_verify_stmts and TODO_verify_rtl_sharing.
39995 * bb-reorder.c: Likewise.
39996 * cfgexpand.c: Likewise.
39997 * cprop.c: Likewise.
39999 * function.c: Likewise.
40000 * fwprop.c: Likewise.
40001 * gcse.c: Likewise.
40002 * gimple-ssa-isolate-paths.c: Likewise.
40003 * gimple-ssa-strength-reduction.c: Likewise.
40004 * ipa-split.c: Likewise.
40005 * loop-init.c: Likewise.
40006 * loop-unroll.c: Likewise.
40007 * lower-subreg.c: Likewise.
40008 * modulo-sched.c: Likewise.
40009 * postreload-gcse.c: Likewise.
40010 * predict.c: Likewise.
40011 * recog.c: Likewise.
40012 * sched-rgn.c: Likewise.
40013 * store-motion.c: Likewise.
40014 * tracer.c: Likewise.
40015 * trans-mem.c: Likewise.
40016 * tree-call-cdce.c: Likewise.
40017 * tree-cfg.c: Likewise.
40018 * tree-cfgcleanup.c: Likewise.
40019 * tree-complex.c: Likewise.
40020 * tree-eh.c: Likewise.
40021 * tree-emutls.c: Likewise.
40022 * tree-if-conv.c: Likewise.
40023 * tree-into-ssa.c: Likewise.
40024 * tree-loop-distribution.c: Likewise.
40025 * tree-object-size.c: Likewise.
40026 * tree-parloops.c: Likewise.
40027 * tree-pass.h: Likewise.
40028 * tree-sra.c: Likewise.
40029 * tree-ssa-ccp.c: Likewise.
40030 * tree-ssa-copy.c: Likewise.
40031 * tree-ssa-copyrename.c: Likewise.
40032 * tree-ssa-dce.c: Likewise.
40033 * tree-ssa-dom.c: Likewise.
40034 * tree-ssa-dse.c: Likewise.
40035 * tree-ssa-forwprop.c: Likewise.
40036 * tree-ssa-ifcombine.c: Likewise.
40037 * tree-ssa-loop-ch.c: Likewise.
40038 * tree-ssa-loop-ivcanon.c: Likewise.
40039 * tree-ssa-loop.c: Likewise.
40040 * tree-ssa-math-opts.c: Likewise.
40041 * tree-ssa-phiopt.c: Likewise.
40042 * tree-ssa-phiprop.c: Likewise.
40043 * tree-ssa-pre.c: Likewise.
40044 * tree-ssa-reassoc.c: Likewise.
40045 * tree-ssa-sink.c: Likewise.
40046 * tree-ssa-strlen.c: Likewise.
40047 * tree-ssa-tail-merge.c: Likewise.
40048 * tree-ssa-uncprop.c: Likewise.
40049 * tree-switch-conversion.c: Likewise.
40050 * tree-tailcall.c: Likewise.
40051 * tree-vect-generic.c: Likewise.
40052 * tree-vectorizer.c: Likewise.
40053 * tree-vrp.c: Likewise.
40054 * tsan.c: Likewise.
40055 * var-tracking.c: Likewise.
40056 * bt-load.c: Likewise.
40057 * cfgcleanup.c: Likewise.
40058 * combine-stack-adj.c: Likewise.
40059 * combine.c: Likewise.
40060 * compare-elim.c: Likewise.
40061 * config/epiphany/resolve-sw-modes.c: Likewise.
40062 * config/i386/i386.c: Likewise.
40063 * config/mips/mips.c: Likewise.
40064 * config/s390/s390.c: Likewise.
40065 * config/sh/sh_treg_combine.cc: Likewise.
40066 * config/sparc/sparc.c: Likewise.
40069 * final.c: Likewise.
40070 * ifcvt.c: Likewise.
40071 * mode-switching.c: Likewise.
40072 * passes.c: Likewise.
40073 * postreload.c: Likewise.
40075 * reg-stack.c: Likewise.
40076 * regcprop.c: Likewise.
40077 * regrename.c: Likewise.
40080 2014-05-06 Richard Biener <rguenther@suse.de>
40082 PR middle-end/61070
40083 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
40084 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
40086 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
40089 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
40091 2014-05-05 Radovan Obradovic <robradovic@mips.com>
40092 Tom de Vries <tom@codesourcery.com>
40094 * target.def (call_fusage_contains_non_callee_clobbers): New
40096 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
40098 (@node Miscellaneous Register Hooks): New node.
40099 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
40100 * doc/tm.texi: Regenerate.
40102 2014-05-05 Marek Polacek <polacek@redhat.com>
40105 * opts.c (common_handle_option): Call error_at instead of warning_at.
40107 2014-05-05 Richard Biener <rguenther@suse.de>
40109 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
40110 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
40111 under the TODO_verify_il umbrella.
40113 2014-05-05 Richard Biener <rguenther@suse.de>
40115 * passes.c (execute_function_todo): Move TODO_verify_flow under
40116 the TODO_verify_ul umbrella.
40118 2014-05-05 Richard Biener <rguenther@suse.de>
40120 PR middle-end/61010
40121 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
40122 X & CST away from a CST that is the mask of a mode.
40124 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40126 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
40127 int argument to enum machine_mode.
40128 (picochip_class_max_nregs): Ditto.
40129 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
40130 (picochip_class_max_nregs): Ditto.
40132 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40134 * target.def: Add new target hook.
40135 * doc/tm.texi: Regenerate.
40136 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
40137 * targhooks.c (default_keep_leaf_when_profiled): New function.
40139 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
40140 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
40142 2014-05-05 Bin Cheng <bin.cheng@arm.com>
40144 PR tree-optimization/60363
40145 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
40146 (copy_phi_args): New parameters. Call get_value_locus_in_path.
40147 (update_destination_phis): New parameter.
40148 (create_edge_and_update_destination_phis): Ditto.
40149 (ssa_fix_duplicate_block_edges): Pass new arguments.
40150 (thread_single_edge): Ditto.
40152 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
40154 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
40155 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
40156 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
40157 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
40158 Use RS6000_BTM_HARD_FLOAT.
40159 (BU_MISC_2): Likewise.
40160 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
40161 RS6000_BTM_HARD_FLOAT.
40162 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
40163 is explicitly used.
40164 (rs6000_invalid_builtin): Add hard floating builtin support.
40165 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
40166 hard float builtins.
40167 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
40169 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40171 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
40172 Add missing function* argument.
40174 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40176 * lra-constraints.c (valid_address_p): Move earlier in file.
40177 Add a constraint argument to the address_info version.
40178 (satisfies_memory_constraint_p): New function.
40179 (satisfies_address_constraint_p): Likewise.
40180 (process_alt_operands, curr_insn_transform): Use them.
40181 (process_address): Pass the constraint to valid_address_p when
40182 checking address operands.
40184 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40186 * config/mips/mips.c (mips_isa_rev): New variable.
40187 (mips_set_architecture): Set it.
40188 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
40190 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
40191 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
40192 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
40193 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
40194 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
40195 conditions in terms of mips_isa_rev.
40196 (mips_isa_rev): Declare.
40198 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40200 * config/sh/sh-mem.cc: Use tabs instead of spaces.
40201 (prob_unlikely, prob_likely): Make variables const.
40203 2014-05-03 Denis Chertykov <chertykov@gmail.com>
40205 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
40207 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40209 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
40211 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40213 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
40214 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
40215 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
40217 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
40218 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
40220 Replace usage of ROUND_REG with sh_round_reg.
40221 Use CEIL instead of ROUND_ADVANCE.
40223 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40226 * config/sh/sh.c: Include stdlib headers before everything else.
40228 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40230 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
40231 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
40232 (gimplify_adjust_omp_clauses): Simd region is never
40233 directly nested in combined parallel. Instead, for linear
40234 with copyin/copyout, if in combined for simd loop, make decl
40235 firstprivate/lastprivate on OMP_FOR.
40236 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
40237 expand_omp_for_static_chunk): When setting endvar, also set
40238 fd->loop.v to the same value.
40240 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40242 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
40244 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
40246 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
40249 2014-05-02 Marek Polacek <polacek@redhat.com>
40251 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
40253 2014-05-02 Kito Cheng <kito@0xlab.org>
40255 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
40256 to a C expression marco.
40257 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
40258 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
40259 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
40260 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
40261 HONOR_REG_ALLOC_ORDER.
40262 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
40264 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40266 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
40268 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40270 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
40272 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
40274 * tree-if-conv.c (is_cond_scalar_reduction): New function.
40275 (convert_scalar_cond_reduction): Likewise.
40276 (predicate_scalar_phi): Add recognition and transformation
40277 of simple conditioanl reduction to be vectorizable.
40279 2014-05-01 Marek Polacek <polacek@redhat.com>
40282 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
40284 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
40286 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
40287 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
40288 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
40289 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
40290 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
40291 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
40292 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
40293 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
40295 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
40297 * config/arc/arc.opt (mlra): Move comment above option name
40298 to avoid mis-parsing as language options.
40300 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40302 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
40303 * config/sol2.h: ... here.
40304 * config/sol2-10.h: Remove.
40306 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
40307 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
40308 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
40309 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
40310 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
40311 * config/sol2.h: ... here.
40312 (SECTION_NAME_FORMAT): Don't redefine.
40313 (STARTFILE_ARCH32_SPEC): Rename to ...
40314 (STARTFILE_ARCH_SPEC): ... this.
40315 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
40316 * config/sparc/sol2.h: ... here.
40317 (SECTION_NAME_FORMAT): Don't undef.
40318 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
40319 (SUBTARGET_EXTRA_SPECS): Remove.
40320 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
40322 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
40323 (MD_STARTFILE_PREFIX): Remove.
40324 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
40325 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
40326 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
40327 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
40328 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
40329 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
40330 * config/i386/sol2.h: ... here.
40331 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
40332 * config/i386/sol2-bi.h: Remove.
40333 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
40334 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
40336 * config/i386/t-sol2-64: Rename to ...
40337 * config/i386/t-sol2: ... this.
40338 * config/sparc/t-sol2-64: Rename to ...
40339 * config/sparc/t-sol2: ... this.
40341 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
40342 sol2_tm_file_head, sol2_tm_file_tail.
40343 Include ${cpu_type}/sol2.h before sol2.h.
40345 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
40346 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
40347 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
40348 Reflect i386/t-sol2-64 renaming.
40349 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
40350 Reflect sparc/t-sol2-64 renaming.
40352 2014-04-30 Richard Biener <rguenther@suse.de>
40354 * passes.c (execute_function_todo): Move TODO_verify_stmts
40355 and TODO_verify_ssa under the TODO_verify_il umbrella.
40356 * tree-ssa.h (verify_ssa): Adjust prototype.
40357 * tree-ssa.c (verify_ssa): Add parameter to tell whether
40358 we should verify SSA operands.
40359 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
40360 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
40361 whether we should verify whether not throwing stmts have EH info.
40362 * graphite-scop-detection.c (create_sese_edges): Adjust.
40363 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
40364 * tree-eh.c (lower_try_finally_switch): Do not add the
40365 default case label twice.
40367 2014-04-30 Marek Polacek <polacek@redhat.com>
40369 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
40370 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
40371 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
40372 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
40374 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
40376 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
40377 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
40378 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
40379 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
40380 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
40381 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
40382 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
40383 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
40385 2014-04-29 David Malcolm <dmalcolm@redhat.com>
40387 * tree-cfg.c (dump_function_to_file): Dump the return type of
40388 functions, in a line to itself before the function body, mimicking
40389 the layout of a C function.
40391 2014-04-29 Jakub Jelinek <jakub@redhat.com>
40393 PR tree-optimization/60971
40394 * tree-tailcall.c (process_assignment): Reject conversions which
40397 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
40399 * calls.c (initialize_argument_information): Always treat
40400 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
40401 (expand_call): Likewise.
40402 (emit_library_call_calue_1): Likewise.
40403 * expr.c (PUSH_ARGS_REVERSED): Do not define.
40404 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
40407 2014-04-29 Nick Clifton <nickc@redhat.com>
40409 * config/msp430/msp430.md (umulsidi): Fix typo.
40410 (mulhisi3): Enable even inside interrupt handlers.
40411 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
40412 bigger return address pushed in large mode.
40414 2014-04-29 Nick Clifton <nickc@redhat.com>
40416 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
40417 (arc_init_reg_tables): Use a machine_mode enum to iterate over
40419 * config/m32r/m32r.c (init_reg_tables): Likewise.
40420 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
40421 enum to hold the modes.
40423 2014-04-29 Richard Biener <rguenther@suse.de>
40425 * dominance.c (free_dominance_info): Add overload with
40426 function parameter.
40427 (dom_info_state): Likewise.
40428 (dom_info_available_p): Likewise.
40429 * basic-block.h (free_dominance_info, dom_info_state,
40430 dom_info_available_p): Declare overloads.
40431 * passes.c (execute_function_todo): Verify that verifiers
40432 don't change dominator info state. Drop dominator info
40433 for IPA pass invocations.
40434 * cgraph.c (release_function_body): Restore asserts that
40435 dominator information is released.
40437 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
40439 * doc/invoke.texi: Fix typo.
40440 * tree-vrp.c: Fix typos.
40441 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
40443 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40445 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
40447 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40449 * config/aarch64/aarch64-builtins.c
40450 (aarch64_types_storestruct_lane_qualifiers): New.
40451 (TYPES_STORESTRUCT_LANE): Likewise.
40452 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
40453 (st3_lane): Likewise.
40454 (st4_lane): Likewise.
40455 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
40456 (vec_store_lanesci_lane<mode>): Likewise.
40457 (vec_store_lanesxi_lane<mode>): Likewise.
40458 (aarch64_st2_lane<VQ:mode>): Likewise.
40459 (aarch64_st3_lane<VQ:mode>): Likewise.
40460 (aarch64_st4_lane<VQ:mode>): Likewise.
40461 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
40462 * config/aarch64/arm_neon.h
40463 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
40464 use new macro arguments.
40465 (__ST3_LANE_FUNC): Likewise.
40466 (__ST4_LANE_FUNC): Likewise.
40467 * config/aarch64/iterators.md (V_TWO_ELEM): New.
40468 (V_THREE_ELEM): Likewise.
40469 (V_FOUR_ELEM): Likewise.
40471 2014-04-28 David Malcolm <dmalcolm@redhat.com>
40473 * doc/gimple.texi: Replace the description of the now-defunct
40474 union gimple_statement_d with a diagram showing the
40475 gimple_statement_base class hierarchy and its relationships to
40476 the GSS_ and GIMPLE_ enums.
40478 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40480 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
40481 * config/aarch64/aarch64.c
40482 (aarch64_cannot_change_mode_class): Weaken conditions.
40483 (aarch64_modes_tieable_p): New.
40484 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
40486 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
40488 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40489 (loadsync_<mode>): Change mode.
40490 (load_quadpti, store_quadpti): New.
40491 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40492 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40494 2014-04-28 Martin Jambor <mjambor@suse.cz>
40496 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
40497 same alias type as the original statement.
40498 (subreplacement_assignment_data): New type.
40499 (handle_unscalarized_data_in_subtree): New type of parameter,
40500 generate new memory accesses with same alias type as the original
40502 (load_assign_lhs_subreplacements): Likewise.
40503 (sra_modify_constructor_assign): Generate new memory accesses with
40504 same alias type as the original statement.
40506 2014-04-28 Richard Biener <rguenther@suse.de>
40508 * tree-pass.h (TODO_verify_il): Define.
40509 (TODO_verify_all): Complete properly.
40510 * passes.c (execute_function_todo): Move existing loop-closed
40511 SSA verification under TODO_verify_il.
40512 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
40513 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
40514 Fix tree sharing issue.
40516 2014-04-28 Richard Biener <rguenther@suse.de>
40518 PR middle-end/60092
40519 * builtins.def (DEF_C11_BUILTIN): Add.
40520 (BUILT_IN_ALIGNED_ALLOC): Likewise.
40521 * coretypes.h (enum function_class): Add function_c11_misc.
40522 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
40523 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
40524 (call_may_clobber_ref_p_1): Likewise.
40525 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
40526 (mark_all_reaching_defs_necessary_1): Likewise.
40527 (propagate_necessity): Likewise.
40528 (eliminate_unnecessary_stmts): Likewise.
40529 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
40531 2014-04-28 Richard Biener <rguenther@suse.de>
40533 * tree-vrp.c (vrp_var_may_overflow): Remove.
40534 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
40535 with overflow immediately bump to one before that value and
40536 let iteration figure out overflow status.
40538 2014-04-28 Richard Biener <rguenther@suse.de>
40540 * configure.ac: Do valgrind header checks unconditionally.
40541 Add --enable-valgrind-annotations.
40542 * system.h: Guard valgrind header inclusion with
40543 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
40544 * alloc-pool.c (pool_alloc, pool_free): Use
40545 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
40546 to guard possibly dead code.
40547 * config.in: Regenerated.
40548 * configure: Likewise.
40550 2014-04-28 Jeff Law <law@redhat.com>
40552 PR tree-optimization/60902
40553 * tree-ssa-threadedge.c
40554 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
40555 over real defs when invalidating outputs from statements that do not
40556 produce useful outputs for threading.
40558 2014-04-28 Richard Biener <rguenther@suse.de>
40560 PR tree-optimization/60979
40561 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
40562 SCOPs that end in a block with a successor with abnormal
40565 2014-04-28 Richard Biener <rguenther@suse.de>
40567 * tree-pass.h (execute_pass_list): Adjust prototype.
40568 * passes.c (pass_manager::execute_early_local_passes): Adjust.
40569 (do_per_function): Change callback signature, push all actual
40570 work to the callbals.
40571 (do_per_function_toporder): Likewise.
40572 (execute_function_dump): Adjust.
40573 (execute_function_todo): Likewise.
40574 (clear_last_verified): Likewise.
40575 (verify_curr_properties): Likewise.
40576 (update_properties_after_pass): Likewise.
40577 (execute_pass_list_1): Split out from ...
40578 (execute_pass_list): ... here. Adjust.
40579 (execute_ipa_pass_list): Likewise.
40580 * cgraphunit.c (cgraph_add_new_function): Adjust.
40581 (analyze_function): Likewise.
40582 (expand_function): Likewise.
40583 * cgraph.c (release_function_body): Free dominance info
40584 here instead of asserting it was magically freed elsewhere.
40586 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
40588 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
40589 * configure: Regenerate.
40590 * config/sparc/sparc.opt (muser-mode): New option.
40591 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
40593 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
40594 * doc/invoke.texi (SPARC options): Document -muser-mode.
40596 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
40598 * cselib.c (find_slot_memmode): Delete.
40599 (cselib_hasher): Change compare_type to a struct.
40600 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
40602 (preserve_constants_and_equivs): Adjust for new compare_type.
40603 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
40604 (wrap_constant): Delete.
40605 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
40607 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
40609 * doc/install.texi (Building with profile feedback): Remove
40612 2014-04-26 Tom de Vries <tom@codesourcery.com>
40614 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
40617 2014-04-25 Cary Coutant <ccoutant@google.com>
40620 * dwarf2out.c (should_move_die_to_comdat): A type definition
40621 can contain a subprogram definition, but don't move it to a
40623 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
40624 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
40626 (clone_tree_hash): Rename to...
40627 (clone_tree_partial): ...this; change callers. Copy
40628 DW_TAG_subprogram DIEs as declarations.
40629 (copy_decls_walk): Don't copy children of a declaration into a
40632 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
40635 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
40638 2014-04-25 Jiong Wang <jiong.wang@arm.com>
40640 * config/arm/predicates.md (call_insn_operand): Add long_call check.
40641 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
40643 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
40646 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40648 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
40650 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40652 PR tree-optimization/60930
40653 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
40654 creating a multiply candidate by folding two constant
40655 multiplicands when the result overflows.
40657 2014-04-25 Jakub Jelinek <jakub@redhat.com>
40659 PR tree-optimization/60960
40660 * tree-vect-generic.c (expand_vector_operation): Only call
40661 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
40663 2014-04-25 Tom de Vries <tom@codesourcery.com>
40665 * expr.c (clobber_reg_mode): New function.
40666 * expr.h (clobber_reg): New function.
40668 2014-04-25 Tom de Vries <tom@codesourcery.com>
40670 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
40673 2014-04-25 Radovan Obradovic <robradovic@mips.com>
40674 Tom de Vries <tom@codesourcery.com>
40676 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
40678 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
40679 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
40680 new argument to find_all_hard_reg_sets call.
40682 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40684 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
40685 Use HOST_WIDE_INT_C for mask literal.
40686 (aarch_rev16_shleft_mask_imm_p): Likewise.
40688 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
40691 * config/sparc/sparc.md (ashlsi3_extend): Delete.
40693 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
40695 PR preprocessor/56540
40696 * config/i386/i386-c.c (ix86_target_macros): Define
40697 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
40699 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40701 * configure.ac (tga_func): Remove.
40702 (LIB_TLS_SPEC): Remove.
40703 * configure: Regenerate.
40704 * config.in: Regenerate.
40705 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
40707 2014-04-25 Richard Biener <rguenther@suse.de>
40710 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
40711 call stmt use/clobber sets during stmt walk instead of
40712 walking the possibly incomplete set of caller edges.
40714 2014-04-25 Richard Biener <rguenther@suse.de>
40717 * passes.c (apply_ipa_transforms): Inline into only caller ...
40718 (execute_one_pass): ... here. Properly bring in function
40719 bodies for nodes we want to apply IPA transforms to.
40721 2014-04-24 Cong Hou <congh@google.com>
40723 PR tree-optimization/60896
40724 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
40725 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
40726 (vect_mark_pattern_stmts): Set the def type of all statements in
40727 PATTERN_DEF_SEQ as vect_internal_def.
40729 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
40731 * doc/extend.texi (PowerPC Built-in Functions): Document new
40732 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
40733 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
40735 * config/rs6000/predicates.md (const_0_to_3_operand): New
40736 predicate to match 0..3 integer constants.
40738 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
40739 to support adding miscellaneous builtin functions.
40740 (BU_DFP_MISC_2): Likewise.
40741 (BU_P7_MISC_1): Likewise.
40742 (BU_P7_MISC_2): Likewise.
40743 (BU_P8V_MISC_3): Likewise.
40744 (BU_MISC_1): Likewise.
40745 (BU_MISC_2): Likewise.
40746 (DIVWE): Add extended divide builtin functions.
40747 (DIVWEO): Likewise.
40748 (DIVWEU): Likewise.
40749 (DIVWEUO): Likewise.
40751 (DIVDEO): Likewise.
40752 (DIVDEU): Likewise.
40753 (DIVDEUO): Likewise.
40754 (DXEX): Add decimal floating-point builtin functions.
40756 (DDEDPD): Likewise.
40757 (DDEDPDQ): Likewise.
40758 (DENBCD): Likewise.
40759 (DENBCDQ): Likewise.
40763 (DSCLIQ): Likewise.
40765 (DSCRIQ): Likewise.
40766 (CDTBCD): Add new BCD builtin functions.
40767 (CBCDTD): Likewise.
40768 (ADDG6S): Likewise.
40769 (BCDADD): Likewise.
40770 (BCDADD_LT): Likewise.
40771 (BCDADD_EQ): Likewise.
40772 (BCDADD_GT): Likewise.
40773 (BCDADD_OV): Likewise.
40774 (BCDSUB): Likewise.
40775 (BCDSUB_LT): Likewise.
40776 (BCDSUB_EQ): Likewise.
40777 (BCDSUB_GT): Likewise.
40778 (BCDSUB_OV): Likewise.
40779 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
40780 (UNPACK_TD): Likewise.
40781 (PACK_TF): Likewise.
40782 (UNPACK_TF): Likewise.
40783 (UNPACK_TF_0): Likewise.
40784 (UNPACK_TF_1): Likewise.
40785 (PACK_V1TI): Likewise.
40786 (UNPACK_V1TI): Likewise.
40788 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
40789 support for decimal floating point builtin functions.
40790 (rs6000_expand_ternop_builtin): Add checks for the new builtin
40791 functions that take constant arguments.
40792 (rs6000_invalid_builtin): Add decimal floating point builtin support.
40793 (rs6000_init_builtins): Setup long double, _Decimal64, and
40794 _Decimal128 types for new builtin functions.
40795 (builtin_function_type): Set the unsigned flags appropriately for
40796 the new builtin functions.
40797 (rs6000_opt_masks): Add support for decimal floating point builtin
40800 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
40801 floating point builtin functions.
40802 (RS6000_BTM_COMMON): Likewise.
40803 (RS6000_BTI_long_double): Likewise.
40804 (RS6000_BTI_dfloat64): Likewise.
40805 (RS6000_BTI_dfloat128): Likewise.
40806 (long_double_type_internal_node): Likewise.
40807 (dfloat64_type_internal_node): Likewise.
40808 (dfloat128_type_internal_node): Likewise.
40810 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
40811 2.07 bcd arithmetic instructions.
40812 (UNSPEC_BCDSUB): Likewise.
40813 (UNSPEC_BCD_OVERFLOW): Likewise.
40814 (UNSPEC_BCD_ADD_SUB): Likewise.
40815 (bcd_add_sub): Likewise.
40816 (BCD_TEST): Likewise.
40817 (bcd<bcd_add_sub>): Likewise.
40818 (bcd<bcd_add_sub>_test): Likewise.
40819 (bcd<bcd_add_sub>_test2): Likewise.
40820 (bcd<bcd_add_sub>_<code>): Likewise.
40821 (peephole2 for combined bcd ops): Likewise.
40823 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
40824 decimal floating point builtin functions.
40825 (UNSPEC_DENBCD): Likewise.
40826 (UNSPEC_DXEX): Likewise.
40827 (UNSPEC_DIEX): Likewise.
40828 (UNSPEC_DSCLI): Likewise.
40829 (UNSPEC_DSCRI): Likewise.
40830 (D64_D128): Likewise.
40831 (dfp_suffix): Likewise.
40832 (dfp_ddedpd_<mode>): Likewise.
40833 (dfp_denbcd_<mode>): Likewise.
40834 (dfp_dxex_<mode>): Likewise.
40835 (dfp_diex_<mode>): Likewise.
40836 (dfp_dscli_<mode>): Likewise.
40837 (dfp_dscri_<mode>): Likewise.
40839 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
40841 (UNSPEC_CDTBCD): Likewise.
40842 (UNSPEC_CBCDTD): Likewise.
40843 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
40844 (UNSPEC_DIVEO): Likewise.
40845 (UNSPEC_DIVEU): Likewise.
40846 (UNSPEC_DIVEUO): Likewise.
40847 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
40848 pack/unpack 128-bit types.
40849 (UNSPEC_PACK_128BIT): Likewise.
40850 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
40851 (udiv<mode>3): Use idiv_ldiv mode attribute.
40852 (div<mode>3): Likewise.
40853 (addg6s): Add new BCD builtin functions.
40854 (cdtbcd): Likewise.
40855 (cbcdtd): Likewise.
40856 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
40857 (div_extend): Likewise.
40858 (div<div_extend>_<mode>"): Likewise.
40859 (FP128_64): Add support for new builtin functions to pack/unpack
40861 (unpack<mode>): Likewise.
40862 (unpacktf_0): Likewise.
40863 (unpacktf_1): Likewise.
40864 (unpack<mode>_dm): Likewise.
40865 (unpack<mode>_nodm): Likewise.
40866 (pack<mode>): Likewise.
40867 (unpackv1ti): Likewise.
40868 (packv1ti): Likewise.
40870 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
40872 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
40875 2014-04-24 Jakub Jelinek <jakub@redhat.com>
40877 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
40878 * gimplify.c (omp_is_private): Change last argument's type to int.
40879 Only diagnose lastprivate if the simd argument is 1, only diagnose
40880 linear if the simd argument is 2.
40881 (gimplify_omp_for): Adjust omp_is_private callers. When adding
40882 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
40883 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
40884 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
40885 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
40886 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40887 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
40888 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40889 * tree-nested.c (convert_nonlocal_omp_clauses,
40890 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
40892 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
40895 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
40898 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
40900 * flag-types.h (enum ivar_visibility): Add.
40902 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
40904 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
40905 function * argument.
40907 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
40909 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
40911 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40912 Tom de Vries <tom@codesourcery.com>
40914 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
40915 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
40917 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
40918 * emit-rtl.c (try_split): Same.
40920 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40921 Tom de Vries <tom@codesourcery.com>
40923 * common.opt (fuse-caller-save): New option.
40925 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
40927 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
40928 elements for big-endian.
40930 2014-04-24 Richard Biener <rguenther@suse.de>
40932 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
40933 during TER and instead use the sepops interface for expanding
40934 non-GIMPLE_SINGLE_RHS.
40936 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40938 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
40939 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
40941 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40943 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
40944 assembler 64-bit option.
40945 * configure: Regenerate.
40947 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40949 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
40950 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
40951 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
40952 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
40953 (TARGET_CRYPTO): Take TARGET_SIMD into account.
40955 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40957 * config/aarch64/aarch64-builtins.c
40958 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
40959 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
40960 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
40961 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
40963 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
40964 (Vrevsuff): New mode attribute.
40966 2014-04-24 Terry Guo <terry.guo@arm.com>
40968 * config/arm/arm.h (machine_function): Define variable
40969 after_arm_reorg here.
40970 * config/arm/arm.c (after_arm_reorg): Remove the definition.
40971 (arm_split_constant): Update the way to access variable
40973 (arm_reorg): Ditto.
40974 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
40976 2014-04-23 Tom de Vries <tom@codesourcery.com>
40978 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
40980 2014-04-23 David Malcolm <dmalcolm@redhat.com>
40982 * is-a.h: Update comments to reflect the following changes to the
40983 "pointerness" of the API, making the template parameter match the
40984 return type, allowing use of is-a.h with typedefs of pointers.
40985 (is_a_helper::cast): Return a T rather then a pointer to a T, so
40986 that the return type matches the parameter to the is_a_helper.
40988 (dyn_cast): Likewise.
40990 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
40991 pointer from the is-a.h API.
40993 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
40994 (is_a_helper <cgraph_node *>::test): ...this, matching change to
40996 (is_a_helper <varpool_node>::test): Likewise, convert to...
40997 (is_a_helper <varpool_node *>::test): ...this.
40999 (varpool_first_variable): Update for removal of implicit pointer
41000 from the is-a.h API.
41001 (varpool_next_variable): Likewise.
41002 (varpool_first_static_initializer): Likewise.
41003 (varpool_next_static_initializer): Likewise.
41004 (varpool_first_defined_variable): Likewise.
41005 (varpool_next_defined_variable): Likewise.
41006 (cgraph_first_defined_function): Likewise.
41007 (cgraph_next_defined_function): Likewise.
41008 (cgraph_first_function): Likewise.
41009 (cgraph_next_function): Likewise.
41010 (cgraph_first_function_with_gimple_body): Likewise.
41011 (cgraph_next_function_with_gimple_body): Likewise.
41012 (cgraph_alias_target): Likewise.
41013 (varpool_alias_target): Likewise.
41014 (cgraph_function_or_thunk_node): Likewise.
41015 (varpool_variable_node): Likewise.
41016 (symtab_real_symbol_p): Likewise.
41017 * cgraphunit.c (referred_to_p): Likewise.
41018 (analyze_functions): Likewise.
41019 (handle_alias_pairs): Likewise.
41020 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
41021 * gimple-ssa.h (gimple_vuse_op): Likewise.
41022 (gimple_vdef_op): Likewise.
41023 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
41024 * gimple.c (gimple_build_asm_1): Likewise.
41025 (gimple_build_try): Likewise.
41026 (gimple_build_resx): Likewise.
41027 (gimple_build_eh_dispatch): Likewise.
41028 (gimple_build_omp_for): Likewise.
41029 (gimple_omp_for_set_clauses): Likewise.
41031 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
41032 (is_a_helper <gimple_statement_asm *>::test): ...this.
41033 (is_a_helper <gimple_statement_bind>::test): Convert to...
41034 (is_a_helper <gimple_statement_bind *>::test): ...this.
41035 (is_a_helper <gimple_statement_call>::test): Convert to...
41036 (is_a_helper <gimple_statement_call *>::test): ...this.
41037 (is_a_helper <gimple_statement_catch>::test): Convert to...
41038 (is_a_helper <gimple_statement_catch *>::test): ...this.
41039 (is_a_helper <gimple_statement_resx>::test): Convert to...
41040 (is_a_helper <gimple_statement_resx *>::test): ...this.
41041 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
41042 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
41043 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
41044 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
41045 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
41046 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
41047 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
41048 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
41049 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
41050 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
41051 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
41052 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
41053 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
41054 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
41055 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
41056 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
41057 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
41058 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
41059 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
41060 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
41061 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
41062 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
41063 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
41064 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
41065 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
41066 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
41067 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
41068 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
41069 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
41070 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
41071 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
41072 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
41073 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
41074 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
41075 (is_a_helper <gimple_statement_phi>::test): Convert to...
41076 (is_a_helper <gimple_statement_phi *>::test): ...this.
41077 (is_a_helper <gimple_statement_transaction>::test): Convert to...
41078 (is_a_helper <gimple_statement_transaction *>::test): ...this.
41079 (is_a_helper <gimple_statement_try>::test): Convert to...
41080 (is_a_helper <gimple_statement_try *>::test): ...this.
41081 (is_a_helper <gimple_statement_wce>::test): Convert to...
41082 (is_a_helper <gimple_statement_wce *>::test): ...this.
41083 (is_a_helper <const gimple_statement_asm>::test): Convert to...
41084 (is_a_helper <const gimple_statement_asm *>::test): ...this.
41085 (is_a_helper <const gimple_statement_bind>::test): Convert to...
41086 (is_a_helper <const gimple_statement_bind *>::test): ...this.
41087 (is_a_helper <const gimple_statement_call>::test): Convert to...
41088 (is_a_helper <const gimple_statement_call *>::test): ...this.
41089 (is_a_helper <const gimple_statement_catch>::test): Convert to...
41090 (is_a_helper <const gimple_statement_catch *>::test): ...this.
41091 (is_a_helper <const gimple_statement_resx>::test): Convert to...
41092 (is_a_helper <const gimple_statement_resx *>::test): ...this.
41093 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
41094 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
41095 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
41096 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
41097 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
41099 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
41101 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
41103 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
41105 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
41106 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
41107 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
41109 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
41110 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
41112 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
41113 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
41114 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
41115 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
41116 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
41117 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
41119 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
41120 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
41121 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
41122 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
41124 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
41125 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
41126 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
41127 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
41128 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
41129 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
41130 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
41131 (is_a_helper <const gimple_statement_phi>::test): Convert to...
41132 (is_a_helper <const gimple_statement_phi *>::test): ...this.
41133 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
41134 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
41135 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
41136 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
41137 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
41138 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
41139 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
41141 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
41143 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
41144 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
41146 (gimple_use_ops): Update for removal of implicit pointer from the
41148 (gimple_set_use_ops): Likewise.
41149 (gimple_vuse): Likewise.
41150 (gimple_vdef): Likewise.
41151 (gimple_vuse_ptr): Likewise.
41152 (gimple_vdef_ptr): Likewise.
41153 (gimple_set_vuse): Likewise.
41154 (gimple_set_vdef): Likewise.
41155 (gimple_omp_return_set_lhs): Likewise.
41156 (gimple_omp_return_lhs): Likewise.
41157 (gimple_omp_return_lhs_ptr): Likewise.
41158 (gimple_call_fntype): Likewise.
41159 (gimple_call_set_fntype): Likewise.
41160 (gimple_call_set_internal_fn): Likewise.
41161 (gimple_call_use_set): Likewise.
41162 (gimple_call_clobber_set): Likewise.
41163 (gimple_bind_vars): Likewise.
41164 (gimple_bind_set_vars): Likewise.
41165 (gimple_bind_body_ptr): Likewise.
41166 (gimple_bind_set_body): Likewise.
41167 (gimple_bind_add_stmt): Likewise.
41168 (gimple_bind_block): Likewise.
41169 (gimple_bind_set_block): Likewise.
41170 (gimple_asm_ninputs): Likewise.
41171 (gimple_asm_noutputs): Likewise.
41172 (gimple_asm_nclobbers): Likewise.
41173 (gimple_asm_nlabels): Likewise.
41174 (gimple_asm_input_op): Likewise.
41175 (gimple_asm_input_op_ptr): Likewise.
41176 (gimple_asm_output_op): Likewise.
41177 (gimple_asm_output_op_ptr): Likewise.
41178 (gimple_asm_set_output_op): Likewise.
41179 (gimple_asm_clobber_op): Likewise.
41180 (gimple_asm_set_clobber_op): Likewise.
41181 (gimple_asm_label_op): Likewise.
41182 (gimple_asm_set_label_op): Likewise.
41183 (gimple_asm_string): Likewise.
41184 (gimple_catch_types): Likewise.
41185 (gimple_catch_types_ptr): Likewise.
41186 (gimple_catch_handler_ptr): Likewise.
41187 (gimple_catch_set_types): Likewise.
41188 (gimple_catch_set_handler): Likewise.
41189 (gimple_eh_filter_types): Likewise.
41190 (gimple_eh_filter_types_ptr): Likewise.
41191 (gimple_eh_filter_failure_ptr): Likewise.
41192 (gimple_eh_filter_set_types): Likewise.
41193 (gimple_eh_filter_set_failure): Likewise.
41194 (gimple_eh_must_not_throw_fndecl): Likewise.
41195 (gimple_eh_must_not_throw_set_fndecl): Likewise.
41196 (gimple_eh_else_n_body_ptr): Likewise.
41197 (gimple_eh_else_e_body_ptr): Likewise.
41198 (gimple_eh_else_set_n_body): Likewise.
41199 (gimple_eh_else_set_e_body): Likewise.
41200 (gimple_try_eval_ptr): Likewise.
41201 (gimple_try_cleanup_ptr): Likewise.
41202 (gimple_try_set_eval): Likewise.
41203 (gimple_try_set_cleanup): Likewise.
41204 (gimple_wce_cleanup_ptr): Likewise.
41205 (gimple_wce_set_cleanup): Likewise.
41206 (gimple_phi_capacity): Likewise.
41207 (gimple_phi_num_args): Likewise.
41208 (gimple_phi_result): Likewise.
41209 (gimple_phi_result_ptr): Likewise.
41210 (gimple_phi_set_result): Likewise.
41211 (gimple_phi_arg): Likewise.
41212 (gimple_phi_set_arg): Likewise.
41213 (gimple_resx_region): Likewise.
41214 (gimple_resx_set_region): Likewise.
41215 (gimple_eh_dispatch_region): Likewise.
41216 (gimple_eh_dispatch_set_region): Likewise.
41217 (gimple_omp_critical_name): Likewise.
41218 (gimple_omp_critical_name_ptr): Likewise.
41219 (gimple_omp_critical_set_name): Likewise.
41220 (gimple_omp_for_clauses): Likewise.
41221 (gimple_omp_for_clauses_ptr): Likewise.
41222 (gimple_omp_for_set_clauses): Likewise.
41223 (gimple_omp_for_collapse): Likewise.
41224 (gimple_omp_for_index): Likewise.
41225 (gimple_omp_for_index_ptr): Likewise.
41226 (gimple_omp_for_set_index): Likewise.
41227 (gimple_omp_for_initial): Likewise.
41228 (gimple_omp_for_initial_ptr): Likewise.
41229 (gimple_omp_for_set_initial): Likewise.
41230 (gimple_omp_for_final): Likewise.
41231 (gimple_omp_for_final_ptr): Likewise.
41232 (gimple_omp_for_set_final): Likewise.
41233 (gimple_omp_for_incr): Likewise.
41234 (gimple_omp_for_incr_ptr): Likewise.
41235 (gimple_omp_for_set_incr): Likewise.
41236 (gimple_omp_for_pre_body_ptr): Likewise.
41237 (gimple_omp_for_set_pre_body): Likewise.
41238 (gimple_omp_parallel_clauses): Likewise.
41239 (gimple_omp_parallel_clauses_ptr): Likewise.
41240 (gimple_omp_parallel_set_clauses): Likewise.
41241 (gimple_omp_parallel_child_fn): Likewise.
41242 (gimple_omp_parallel_child_fn_ptr): Likewise.
41243 (gimple_omp_parallel_set_child_fn): Likewise.
41244 (gimple_omp_parallel_data_arg): Likewise.
41245 (gimple_omp_parallel_data_arg_ptr): Likewise.
41246 (gimple_omp_parallel_set_data_arg): Likewise.
41247 (gimple_omp_task_clauses): Likewise.
41248 (gimple_omp_task_clauses_ptr): Likewise.
41249 (gimple_omp_task_set_clauses): Likewise.
41250 (gimple_omp_task_child_fn): Likewise.
41251 (gimple_omp_task_child_fn_ptr): Likewise.
41252 (gimple_omp_task_set_child_fn): Likewise.
41253 (gimple_omp_task_data_arg): Likewise.
41254 (gimple_omp_task_data_arg_ptr): Likewise.
41255 (gimple_omp_task_set_data_arg): Likewise.
41256 (gimple_omp_taskreg_clauses): Likewise.
41257 (gimple_omp_taskreg_clauses_ptr): Likewise.
41258 (gimple_omp_taskreg_set_clauses): Likewise.
41259 (gimple_omp_taskreg_child_fn): Likewise.
41260 (gimple_omp_taskreg_child_fn_ptr): Likewise.
41261 (gimple_omp_taskreg_set_child_fn): Likewise.
41262 (gimple_omp_taskreg_data_arg): Likewise.
41263 (gimple_omp_taskreg_data_arg_ptr): Likewise.
41264 (gimple_omp_taskreg_set_data_arg): Likewise.
41265 (gimple_omp_task_copy_fn): Likewise.
41266 (gimple_omp_task_copy_fn_ptr): Likewise.
41267 (gimple_omp_task_set_copy_fn): Likewise.
41268 (gimple_omp_task_arg_size): Likewise.
41269 (gimple_omp_task_arg_size_ptr): Likewise.
41270 (gimple_omp_task_set_arg_size): Likewise.
41271 (gimple_omp_task_arg_align): Likewise.
41272 (gimple_omp_task_arg_align_ptr): Likewise.
41273 (gimple_omp_task_set_arg_align): Likewise.
41274 (gimple_omp_single_clauses): Likewise.
41275 (gimple_omp_single_clauses_ptr): Likewise.
41276 (gimple_omp_single_set_clauses): Likewise.
41277 (gimple_omp_target_clauses): Likewise.
41278 (gimple_omp_target_clauses_ptr): Likewise.
41279 (gimple_omp_target_set_clauses): Likewise.
41280 (gimple_omp_target_child_fn): Likewise.
41281 (gimple_omp_target_child_fn_ptr): Likewise.
41282 (gimple_omp_target_set_child_fn): Likewise.
41283 (gimple_omp_target_data_arg): Likewise.
41284 (gimple_omp_target_data_arg_ptr): Likewise.
41285 (gimple_omp_target_set_data_arg): Likewise.
41286 (gimple_omp_teams_clauses): Likewise.
41287 (gimple_omp_teams_clauses_ptr): Likewise.
41288 (gimple_omp_teams_set_clauses): Likewise.
41289 (gimple_omp_sections_clauses): Likewise.
41290 (gimple_omp_sections_clauses_ptr): Likewise.
41291 (gimple_omp_sections_set_clauses): Likewise.
41292 (gimple_omp_sections_control): Likewise.
41293 (gimple_omp_sections_control_ptr): Likewise.
41294 (gimple_omp_sections_set_control): Likewise.
41295 (gimple_omp_for_set_cond): Likewise.
41296 (gimple_omp_for_cond): Likewise.
41297 (gimple_omp_atomic_store_set_val): Likewise.
41298 (gimple_omp_atomic_store_val): Likewise.
41299 (gimple_omp_atomic_store_val_ptr): Likewise.
41300 (gimple_omp_atomic_load_set_lhs): Likewise.
41301 (gimple_omp_atomic_load_lhs): Likewise.
41302 (gimple_omp_atomic_load_lhs_ptr): Likewise.
41303 (gimple_omp_atomic_load_set_rhs): Likewise.
41304 (gimple_omp_atomic_load_rhs): Likewise.
41305 (gimple_omp_atomic_load_rhs_ptr): Likewise.
41306 (gimple_omp_continue_control_def): Likewise.
41307 (gimple_omp_continue_control_def_ptr): Likewise.
41308 (gimple_omp_continue_set_control_def): Likewise.
41309 (gimple_omp_continue_control_use): Likewise.
41310 (gimple_omp_continue_control_use_ptr): Likewise.
41311 (gimple_omp_continue_set_control_use): Likewise.
41312 (gimple_transaction_body_ptr): Likewise.
41313 (gimple_transaction_label): Likewise.
41314 (gimple_transaction_label_ptr): Likewise.
41315 (gimple_transaction_set_body): Likewise.
41316 (gimple_transaction_set_label): Likewise.
41318 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
41319 * ipa-inline-analysis.c (inline_write_summary): Likewise.
41320 * ipa-ref.c (ipa_record_reference): Likewise.
41321 * ipa-reference.c (analyze_function): Likewise.
41322 (ipa_reference_write_optimization_summary): Likewise.
41323 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
41324 (address_taken_from_non_vtable_p): Likewise.
41325 (comdat_can_be_unshared_p_1): Likewise.
41326 * lto-cgraph.c (lto_output_ref): Likewise.
41327 (add_references): Likewise.
41328 (compute_ltrans_boundary): Likewise.
41329 (output_symtab): Likewise.
41330 (input_ref): Likewise.
41331 (input_cgraph_1): Likewise.
41332 (output_cgraph_opt_summary): Likewise.
41333 * lto-streamer-out.c (lto_output): Likewise.
41334 (output_symbol_p): Likewise.
41335 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
41336 (lsei_start_function_in_partition): Likewise.
41337 (lsei_next_variable_in_partition): Likewise.
41338 (lsei_start_variable_in_partition): Likewise.
41339 * symtab.c (insert_to_assembler_name_hash): Likewise.
41340 (unlink_from_assembler_name_hash): Likewise.
41341 (symtab_unregister_node): Likewise.
41342 (symtab_remove_node): Likewise.
41343 (dump_symtab_node): Likewise.
41344 (verify_symtab_base): Likewise.
41345 (verify_symtab_node): Likewise.
41346 (symtab_make_decl_local): Likewise.
41347 (symtab_alias_ultimate_target): Likewise.
41348 (symtab_resolve_alias): Likewise.
41349 (symtab_get_symbol_partitioning_class): Likewise.
41350 * tree-phinodes.c (allocate_phi_node): Likewise.
41351 (reserve_phi_args_for_new_edge): Likewise.
41352 (remove_phi_args): Likewise.
41353 * varpool.c (varpool_node_for_asm): Likewise.
41354 (varpool_remove_unreferenced_decls): Likewise.
41356 2014-04-23 Jeff Law <law@redhat.com>
41358 PR tree-optimization/60902
41359 * tree-ssa-threadedge.c
41360 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
41361 invalidate outputs from statements that do not produce useful
41362 outputs for threading.
41364 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
41366 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
41367 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
41368 machine descriptions for Stack Smashing Protector.
41370 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
41372 * aarch64.md (<optab>_rol<mode>3): New pattern.
41373 (<optab>_rolsi3_uxtw): Likewise.
41374 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
41376 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
41378 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
41379 (arm_cortex_a12_tune): Likewise.
41381 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41383 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
41385 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41387 * config/arm/arm.md (arm_rev16si2): New pattern.
41388 (arm_rev16si2_alt): Likewise.
41389 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
41391 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41393 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
41394 (rev16<mode>2_alt): Likewise.
41395 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
41396 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
41397 (aarch_rev16_shleft_mask_imm_p): Likewise.
41398 (aarch_rev16_p_1): Likewise.
41399 (aarch_rev16_p): Likewise.
41400 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
41401 (aarch_rev16_shright_mask_imm_p): Likewise.
41402 (aarch_rev16_shleft_mask_imm_p): Likewise.
41404 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41406 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
41407 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
41409 (cortex_a53_extra_costs): Likewise.
41410 (cortex_a57_extra_costs): Likewise.
41411 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
41412 (cortexa7_extra_costs): Likewise.
41413 (cortexa8_extra_costs): Likewise.
41414 (cortexa12_extra_costs): Likewise.
41415 (cortexa15_extra_costs): Likewise.
41416 (v7m_extra_costs): Likewise.
41417 (arm_new_rtx_costs): Handle BSWAP.
41419 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41421 * config/arm/arm.c (cortexa8_extra_costs): New table.
41422 (arm_cortex_a8_tune): New tuning struct.
41423 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
41425 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41427 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
41429 2014-04-23 Richard Biener <rguenther@suse.de>
41431 * Makefile.in (OBJS): Remove loop-unswitch.o.
41432 * tree-pass.h (make_pass_rtl_unswitch): Remove.
41433 * passes.def (pass_rtl_unswitch): Likewise.
41434 * loop-init.c (gate_rtl_unswitch): Likewise.
41435 (rtl_unswitch): Likewise.
41436 (pass_data_rtl_unswitch): Likewise.
41437 (pass_rtl_unswitch): Likewise.
41438 (make_pass_rtl_unswitch): Likewise.
41439 * rtl.h (reversed_condition): Likewise.
41440 (compare_and_jump_seq): Likewise.
41441 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
41443 * loop-unroll.c (compare_and_jump_seq): Likewise.
41445 2014-04-23 Richard Biener <rguenther@suse.de>
41447 PR tree-optimization/60903
41448 * tree-ssa-loop-im.c (analyze_memory_references): Remove
41449 commented code block.
41450 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
41451 loop flags to newly created BBs and edges.
41453 2014-04-23 Nick Clifton <nickc@redhat.com>
41455 * config/msp430/msp430.c (msp430_handle_option): Move function
41457 (msp430_option_override): Simplify mcu and mcpu option handling.
41458 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
41459 support for -mhwmult command line option.
41460 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
41461 -mhwmult command line option.
41462 (msp430_hwmult_enabled): Delete.
41463 (msp43o_output_labelref): Add support for -mhwmult command line option.
41464 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
41465 (umulsidi3): Likewise.
41466 * config/msp430/msp430.opt (mmcu): Add Report attribute.
41467 (mcpu, mlarge, msmall): Likewise.
41468 (mhwmult): New option.
41469 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
41471 (msp430_is_f5_mcu): Remove prototype.
41472 (msp430_use_f5_series_hwmult): Add prototype.
41473 * config/msp430/msp430-opts.h: New file.
41474 * common/config/msp430: New directory.
41475 * common/config/msp430/msp430-common.c: New file.
41476 * config.gcc (msp430): Remove target_has_targetm_common.
41477 * doc/invoke.texi: Document -mhwmult command line option.
41479 2014-04-23 Nick Clifton <nickc@redhat.com>
41481 * config/i386/cygwin.h (ENDFILE_SPEC): Include
41482 default-manifest.o if it can be found in the search path.
41483 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41485 2014-04-23 Terry Guo <terry.guo@arm.com>
41487 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
41489 2014-04-23 Richard Biener <rguenther@suse.de>
41491 PR middle-end/60895
41492 * tree-inline.c (declare_return_variable): Use mark_addressable.
41494 2014-04-23 Richard Biener <rguenther@suse.de>
41496 PR middle-end/60891
41497 * loop-init.c (loop_optimizer_init): Make sure to apply
41498 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
41500 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41503 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
41505 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
41506 if flag_sanitize_undefined_trap_on_error.
41507 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
41508 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
41509 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
41510 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
41511 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
41512 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
41513 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
41514 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
41515 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
41516 * ubsan.c (ubsan_instrument_unreachable): Return
41517 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
41518 (ubsan_expand_null_ifn): Emit __builtin_trap ()
41519 if flag_sanitize_undefined_trap_on_error and
41520 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
41521 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
41522 instrument_bool_enum_load): Emit __builtin_trap () if
41523 flag_sanitize_undefined_trap_on_error and
41524 __builtin_handle_*_abort () if !flag_sanitize_recover.
41525 * doc/invoke.texi (-fsanitize-recover,
41526 -fsanitize-undefined-trap-on-error): Document.
41528 2014-04-22 Christian Bruel <christian.bruel@st.com>
41530 * config/sh/sh.md (mov<mode>): Replace movQIHI.
41531 Force immediates to SImode.
41533 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
41535 * config/nios2/nios2.md (UNSPEC_ROUND): New.
41536 (lroundsfsi2): New.
41537 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
41538 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
41539 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
41540 (nios2_fpu_insn): Add entry for round.
41541 (N2FPU_NO_ERRNO_P): Define.
41542 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
41544 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
41546 2014-04-22 Richard Henderson <rth@redhat.com>
41548 * config/aarch64/aarch64 (addti3, subti3): New expanders.
41549 (add<GPI>3_compare0): Remove leading * from name.
41550 (add<GPI>3_carryin): Likewise.
41551 (sub<GPI>3_compare0): Likewise.
41552 (sub<GPI>3_carryin): Likewise.
41553 (<su_optab>mulditi3): New expander.
41554 (multi3): New expander.
41555 (madd<GPI>): Remove leading * from name.
41557 2014-04-22 Martin Jambor <mjambor@suse.cz>
41559 * cgraphclones.c (cgraph_function_versioning): Copy
41560 ipa_transforms_to_apply instead of asserting it is empty.
41562 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
41565 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
41566 on count_exp to get mode.
41568 2014-04-22 Andrew Pinski <apinski@cavium.com>
41570 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
41571 Handle TLS for ILP32.
41572 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
41573 (tlsie_small_<mode>): this and handle PTR.
41574 (tlsie_small_sidi): New pattern.
41575 (tlsle_small): Change to an expand to handle ILP32.
41576 (tlsle_small_<mode>): New pattern.
41577 (tlsdesc_small): Rename to ...
41578 (tlsdesc_small_<mode>): this and handle PTR.
41580 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41582 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
41584 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41586 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41587 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
41588 (aarch64_types_signed_poly_qualifiers): Likewise.
41589 (aarch64_types_unsigned_signed_qualifiers): Likewise.
41590 (aarch64_types_poly_signed_qualifiers): Likewise.
41591 (TYPES_REINTERP_SS): Type macro added.
41592 (TYPES_REINTERP_SU): Likewise.
41593 (TYPES_REINTERP_SP): Likewise.
41594 (TYPES_REINTERP_US): Likewise.
41595 (TYPES_REINTERP_PS): Likewise.
41596 (aarch64_fold_builtin): New expression folding added.
41597 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
41598 Declarations removed.
41599 (REINTERP_SS): Declarations added.
41600 (REINTERP_US): Likewise.
41601 (REINTERP_PS): Likewise.
41602 (REINTERP_SU): Likewise.
41603 (REINTERP_SP): Likewise.
41604 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
41605 (vreinterpretq_p8_f64): Likewise.
41606 (vreinterpret_p16_f64): Likewise.
41607 (vreinterpretq_p16_f64): Likewise.
41608 (vreinterpret_f32_f64): Likewise.
41609 (vreinterpretq_f32_f64): Likewise.
41610 (vreinterpret_f64_f32): Likewise.
41611 (vreinterpret_f64_p8): Likewise.
41612 (vreinterpret_f64_p16): Likewise.
41613 (vreinterpret_f64_s8): Likewise.
41614 (vreinterpret_f64_s16): Likewise.
41615 (vreinterpret_f64_s32): Likewise.
41616 (vreinterpret_f64_s64): Likewise.
41617 (vreinterpret_f64_u8): Likewise.
41618 (vreinterpret_f64_u16): Likewise.
41619 (vreinterpret_f64_u32): Likewise.
41620 (vreinterpret_f64_u64): Likewise.
41621 (vreinterpretq_f64_f32): Likewise.
41622 (vreinterpretq_f64_p8): Likewise.
41623 (vreinterpretq_f64_p16): Likewise.
41624 (vreinterpretq_f64_s8): Likewise.
41625 (vreinterpretq_f64_s16): Likewise.
41626 (vreinterpretq_f64_s32): Likewise.
41627 (vreinterpretq_f64_s64): Likewise.
41628 (vreinterpretq_f64_u8): Likewise.
41629 (vreinterpretq_f64_u16): Likewise.
41630 (vreinterpretq_f64_u32): Likewise.
41631 (vreinterpretq_f64_u64): Likewise.
41632 (vreinterpret_s64_f64): Likewise.
41633 (vreinterpretq_s64_f64): Likewise.
41634 (vreinterpret_u64_f64): Likewise.
41635 (vreinterpretq_u64_f64): Likewise.
41636 (vreinterpret_s8_f64): Likewise.
41637 (vreinterpretq_s8_f64): Likewise.
41638 (vreinterpret_s16_f64): Likewise.
41639 (vreinterpretq_s16_f64): Likewise.
41640 (vreinterpret_s32_f64): Likewise.
41641 (vreinterpretq_s32_f64): Likewise.
41642 (vreinterpret_u8_f64): Likewise.
41643 (vreinterpretq_u8_f64): Likewise.
41644 (vreinterpret_u16_f64): Likewise.
41645 (vreinterpretq_u16_f64): Likewise.
41646 (vreinterpret_u32_f64): Likewise.
41647 (vreinterpretq_u32_f64): Likewise.
41649 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41651 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41652 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
41653 (vreinterpret_p8_s8): Likewise.
41654 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
41655 (vreinterpret_p8_s16): Likewise.
41656 (vreinterpret_p8_s32): Likewise.
41657 (vreinterpret_p8_s64): Likewise.
41658 (vreinterpret_p8_f32): Likewise.
41659 (vreinterpret_p8_u8): Likewise.
41660 (vreinterpret_p8_u16): Likewise.
41661 (vreinterpret_p8_u32): Likewise.
41662 (vreinterpret_p8_u64): Likewise.
41663 (vreinterpret_p8_p16): Likewise.
41664 (vreinterpretq_p8_s8): Likewise.
41665 (vreinterpretq_p8_s16): Likewise.
41666 (vreinterpretq_p8_s32): Likewise.
41667 (vreinterpretq_p8_s64): Likewise.
41668 (vreinterpretq_p8_f32): Likewise.
41669 (vreinterpretq_p8_u8): Likewise.
41670 (vreinterpretq_p8_u16): Likewise.
41671 (vreinterpretq_p8_u32): Likewise.
41672 (vreinterpretq_p8_u64): Likewise.
41673 (vreinterpretq_p8_p16): Likewise.
41674 (vreinterpret_p16_s8): Likewise.
41675 (vreinterpret_p16_s16): Likewise.
41676 (vreinterpret_p16_s32): Likewise.
41677 (vreinterpret_p16_s64): Likewise.
41678 (vreinterpret_p16_f32): Likewise.
41679 (vreinterpret_p16_u8): Likewise.
41680 (vreinterpret_p16_u16): Likewise.
41681 (vreinterpret_p16_u32): Likewise.
41682 (vreinterpret_p16_u64): Likewise.
41683 (vreinterpret_p16_p8): Likewise.
41684 (vreinterpretq_p16_s8): Likewise.
41685 (vreinterpretq_p16_s16): Likewise.
41686 (vreinterpretq_p16_s32): Likewise.
41687 (vreinterpretq_p16_s64): Likewise.
41688 (vreinterpretq_p16_f32): Likewise.
41689 (vreinterpretq_p16_u8): Likewise.
41690 (vreinterpretq_p16_u16): Likewise.
41691 (vreinterpretq_p16_u32): Likewise.
41692 (vreinterpretq_p16_u64): Likewise.
41693 (vreinterpretq_p16_p8): Likewise.
41694 (vreinterpret_f32_s8): Likewise.
41695 (vreinterpret_f32_s16): Likewise.
41696 (vreinterpret_f32_s32): Likewise.
41697 (vreinterpret_f32_s64): Likewise.
41698 (vreinterpret_f32_u8): Likewise.
41699 (vreinterpret_f32_u16): Likewise.
41700 (vreinterpret_f32_u32): Likewise.
41701 (vreinterpret_f32_u64): Likewise.
41702 (vreinterpret_f32_p8): Likewise.
41703 (vreinterpret_f32_p16): Likewise.
41704 (vreinterpretq_f32_s8): Likewise.
41705 (vreinterpretq_f32_s16): Likewise.
41706 (vreinterpretq_f32_s32): Likewise.
41707 (vreinterpretq_f32_s64): Likewise.
41708 (vreinterpretq_f32_u8): Likewise.
41709 (vreinterpretq_f32_u16): Likewise.
41710 (vreinterpretq_f32_u32): Likewise.
41711 (vreinterpretq_f32_u64): Likewise.
41712 (vreinterpretq_f32_p8): Likewise.
41713 (vreinterpretq_f32_p16): Likewise.
41714 (vreinterpret_s64_s8): Likewise.
41715 (vreinterpret_s64_s16): Likewise.
41716 (vreinterpret_s64_s32): Likewise.
41717 (vreinterpret_s64_f32): Likewise.
41718 (vreinterpret_s64_u8): Likewise.
41719 (vreinterpret_s64_u16): Likewise.
41720 (vreinterpret_s64_u32): Likewise.
41721 (vreinterpret_s64_u64): Likewise.
41722 (vreinterpret_s64_p8): Likewise.
41723 (vreinterpret_s64_p16): Likewise.
41724 (vreinterpretq_s64_s8): Likewise.
41725 (vreinterpretq_s64_s16): Likewise.
41726 (vreinterpretq_s64_s32): Likewise.
41727 (vreinterpretq_s64_f32): Likewise.
41728 (vreinterpretq_s64_u8): Likewise.
41729 (vreinterpretq_s64_u16): Likewise.
41730 (vreinterpretq_s64_u32): Likewise.
41731 (vreinterpretq_s64_u64): Likewise.
41732 (vreinterpretq_s64_p8): Likewise.
41733 (vreinterpretq_s64_p16): Likewise.
41734 (vreinterpret_u64_s8): Likewise.
41735 (vreinterpret_u64_s16): Likewise.
41736 (vreinterpret_u64_s32): Likewise.
41737 (vreinterpret_u64_s64): Likewise.
41738 (vreinterpret_u64_f32): Likewise.
41739 (vreinterpret_u64_u8): Likewise.
41740 (vreinterpret_u64_u16): Likewise.
41741 (vreinterpret_u64_u32): Likewise.
41742 (vreinterpret_u64_p8): Likewise.
41743 (vreinterpret_u64_p16): Likewise.
41744 (vreinterpretq_u64_s8): Likewise.
41745 (vreinterpretq_u64_s16): Likewise.
41746 (vreinterpretq_u64_s32): Likewise.
41747 (vreinterpretq_u64_s64): Likewise.
41748 (vreinterpretq_u64_f32): Likewise.
41749 (vreinterpretq_u64_u8): Likewise.
41750 (vreinterpretq_u64_u16): Likewise.
41751 (vreinterpretq_u64_u32): Likewise.
41752 (vreinterpretq_u64_p8): Likewise.
41753 (vreinterpretq_u64_p16): Likewise.
41754 (vreinterpret_s8_s16): Likewise.
41755 (vreinterpret_s8_s32): Likewise.
41756 (vreinterpret_s8_s64): Likewise.
41757 (vreinterpret_s8_f32): Likewise.
41758 (vreinterpret_s8_u8): Likewise.
41759 (vreinterpret_s8_u16): Likewise.
41760 (vreinterpret_s8_u32): Likewise.
41761 (vreinterpret_s8_u64): Likewise.
41762 (vreinterpret_s8_p8): Likewise.
41763 (vreinterpret_s8_p16): Likewise.
41764 (vreinterpretq_s8_s16): Likewise.
41765 (vreinterpretq_s8_s32): Likewise.
41766 (vreinterpretq_s8_s64): Likewise.
41767 (vreinterpretq_s8_f32): Likewise.
41768 (vreinterpretq_s8_u8): Likewise.
41769 (vreinterpretq_s8_u16): Likewise.
41770 (vreinterpretq_s8_u32): Likewise.
41771 (vreinterpretq_s8_u64): Likewise.
41772 (vreinterpretq_s8_p8): Likewise.
41773 (vreinterpretq_s8_p16): Likewise.
41774 (vreinterpret_s16_s8): Likewise.
41775 (vreinterpret_s16_s32): Likewise.
41776 (vreinterpret_s16_s64): Likewise.
41777 (vreinterpret_s16_f32): Likewise.
41778 (vreinterpret_s16_u8): Likewise.
41779 (vreinterpret_s16_u16): Likewise.
41780 (vreinterpret_s16_u32): Likewise.
41781 (vreinterpret_s16_u64): Likewise.
41782 (vreinterpret_s16_p8): Likewise.
41783 (vreinterpret_s16_p16): Likewise.
41784 (vreinterpretq_s16_s8): Likewise.
41785 (vreinterpretq_s16_s32): Likewise.
41786 (vreinterpretq_s16_s64): Likewise.
41787 (vreinterpretq_s16_f32): Likewise.
41788 (vreinterpretq_s16_u8): Likewise.
41789 (vreinterpretq_s16_u16): Likewise.
41790 (vreinterpretq_s16_u32): Likewise.
41791 (vreinterpretq_s16_u64): Likewise.
41792 (vreinterpretq_s16_p8): Likewise.
41793 (vreinterpretq_s16_p16): Likewise.
41794 (vreinterpret_s32_s8): Likewise.
41795 (vreinterpret_s32_s16): Likewise.
41796 (vreinterpret_s32_s64): Likewise.
41797 (vreinterpret_s32_f32): Likewise.
41798 (vreinterpret_s32_u8): Likewise.
41799 (vreinterpret_s32_u16): Likewise.
41800 (vreinterpret_s32_u32): Likewise.
41801 (vreinterpret_s32_u64): Likewise.
41802 (vreinterpret_s32_p8): Likewise.
41803 (vreinterpret_s32_p16): Likewise.
41804 (vreinterpretq_s32_s8): Likewise.
41805 (vreinterpretq_s32_s16): Likewise.
41806 (vreinterpretq_s32_s64): Likewise.
41807 (vreinterpretq_s32_f32): Likewise.
41808 (vreinterpretq_s32_u8): Likewise.
41809 (vreinterpretq_s32_u16): Likewise.
41810 (vreinterpretq_s32_u32): Likewise.
41811 (vreinterpretq_s32_u64): Likewise.
41812 (vreinterpretq_s32_p8): Likewise.
41813 (vreinterpretq_s32_p16): Likewise.
41814 (vreinterpret_u8_s8): Likewise.
41815 (vreinterpret_u8_s16): Likewise.
41816 (vreinterpret_u8_s32): Likewise.
41817 (vreinterpret_u8_s64): Likewise.
41818 (vreinterpret_u8_f32): Likewise.
41819 (vreinterpret_u8_u16): Likewise.
41820 (vreinterpret_u8_u32): Likewise.
41821 (vreinterpret_u8_u64): Likewise.
41822 (vreinterpret_u8_p8): Likewise.
41823 (vreinterpret_u8_p16): Likewise.
41824 (vreinterpretq_u8_s8): Likewise.
41825 (vreinterpretq_u8_s16): Likewise.
41826 (vreinterpretq_u8_s32): Likewise.
41827 (vreinterpretq_u8_s64): Likewise.
41828 (vreinterpretq_u8_f32): Likewise.
41829 (vreinterpretq_u8_u16): Likewise.
41830 (vreinterpretq_u8_u32): Likewise.
41831 (vreinterpretq_u8_u64): Likewise.
41832 (vreinterpretq_u8_p8): Likewise.
41833 (vreinterpretq_u8_p16): Likewise.
41834 (vreinterpret_u16_s8): Likewise.
41835 (vreinterpret_u16_s16): Likewise.
41836 (vreinterpret_u16_s32): Likewise.
41837 (vreinterpret_u16_s64): Likewise.
41838 (vreinterpret_u16_f32): Likewise.
41839 (vreinterpret_u16_u8): Likewise.
41840 (vreinterpret_u16_u32): Likewise.
41841 (vreinterpret_u16_u64): Likewise.
41842 (vreinterpret_u16_p8): Likewise.
41843 (vreinterpret_u16_p16): Likewise.
41844 (vreinterpretq_u16_s8): Likewise.
41845 (vreinterpretq_u16_s16): Likewise.
41846 (vreinterpretq_u16_s32): Likewise.
41847 (vreinterpretq_u16_s64): Likewise.
41848 (vreinterpretq_u16_f32): Likewise.
41849 (vreinterpretq_u16_u8): Likewise.
41850 (vreinterpretq_u16_u32): Likewise.
41851 (vreinterpretq_u16_u64): Likewise.
41852 (vreinterpretq_u16_p8): Likewise.
41853 (vreinterpretq_u16_p16): Likewise.
41854 (vreinterpret_u32_s8): Likewise.
41855 (vreinterpret_u32_s16): Likewise.
41856 (vreinterpret_u32_s32): Likewise.
41857 (vreinterpret_u32_s64): Likewise.
41858 (vreinterpret_u32_f32): Likewise.
41859 (vreinterpret_u32_u8): Likewise.
41860 (vreinterpret_u32_u16): Likewise.
41861 (vreinterpret_u32_u64): Likewise.
41862 (vreinterpret_u32_p8): Likewise.
41863 (vreinterpret_u32_p16): Likewise.
41864 (vreinterpretq_u32_s8): Likewise.
41865 (vreinterpretq_u32_s16): Likewise.
41866 (vreinterpretq_u32_s32): Likewise.
41867 (vreinterpretq_u32_s64): Likewise.
41868 (vreinterpretq_u32_f32): Likewise.
41869 (vreinterpretq_u32_u8): Likewise.
41870 (vreinterpretq_u32_u16): Likewise.
41871 (vreinterpretq_u32_u64): Likewise.
41872 (vreinterpretq_u32_p8): Likewise.
41873 (vreinterpretq_u32_p16): Likewise.
41875 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41877 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
41879 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
41881 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
41882 (vqnegd_s64): Likewise.
41883 (vqabs_s64): Likewise.
41884 (vqabsd_s64): Likewise.
41886 2014-04-22 Richard Henderson <rth@redhat.com>
41888 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
41889 computation to the top of the loop.
41891 2014-04-22 Renlin <renlin.li@arm.com>
41892 Jiong Wang <jiong.wang@arm.com>
41894 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
41895 * config/aarch64/aarch64.c (aarch64_layout_frame)
41896 (aarch64_initial_elimination_offset): Likewise.
41898 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
41900 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
41903 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
41905 * machmode.h (bitwise_mode_for_mode): Declare.
41906 * stor-layout.h (bitwise_type_for_mode): Likewise.
41907 * stor-layout.c (bitwise_mode_for_mode): New function.
41908 (bitwise_type_for_mode): Likewise.
41909 * builtins.c (fold_builtin_memory_op): Use it instead of
41910 int_mode_for_mode and build_nonstandard_integer_type.
41912 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41914 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
41915 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
41916 (*-*-solaris2*): Simplify.
41917 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
41918 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
41919 *-*-solaris2.9* handling.
41921 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
41923 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
41924 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
41925 handling, simplify.
41926 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
41927 * configure: Regenerate.
41929 * config/i386/sol2-9.h: Remove.
41931 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
41932 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
41933 Remove Solaris 9 references.
41935 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
41937 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
41938 (floatuns<GPI:mode><GPF:mode>2): Remove.
41939 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
41940 and floatuns conversions.
41941 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
41942 and floatuns conversions.
41943 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
41944 (w1,w2): New mode attributes for inequal width conversions.
41946 2014-04-22 Renlin Li <Renlin.Li@arm.com>
41948 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
41949 the output asm format.
41951 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
41953 * config/aarch64/aarch64-simd.md
41954 (aarch64_cm<optab>di): Always split.
41955 (*aarch64_cm<optab>di): New.
41956 (aarch64_cmtstdi): Always split.
41957 (*aarch64_cmtstdi): New.
41959 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41961 PR tree-optimization/60823
41962 * omp-low.c (ipa_simd_modify_function_body): Go through
41963 all SSA_NAMEs and for those refering to vector arguments
41964 which are going to be replaced adjust SSA_NAME_VAR and,
41965 if it is a default definition, change it into a non-default
41966 definition assigned at the beginning of function from new_decl.
41967 (ipa_simd_modify_stmt_ops): Rewritten.
41968 * tree-dfa.c (set_ssa_default_def): When removing default def,
41969 check for NULL loc instead of NULL *loc.
41971 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41973 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
41974 restrictions on core registers for DImode values in Thumb2.
41976 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41978 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
41979 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
41981 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41983 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
41984 (*iordi_notzesidi_di): Likewise.
41985 (*iordi_notsesidi_di): Likewise.
41987 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41989 * config/arm/arm-protos.h (tune_params): New struct members.
41990 * config/arm/arm.c: Initialise tune_params per processor.
41991 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
41992 for speed, based on new tune_params.
41994 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41996 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
41997 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
41998 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
41999 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
42000 * config/aarch64/arm_neon.h (vrnd_f64): Added.
42001 (vrnda_f64): Likewise.
42002 (vrndi_f64): Likewise.
42003 (vrndm_f64): Likewise.
42004 (vrndn_f64): Likewise.
42005 (vrndp_f64): Likewise.
42006 (vrndx_f64): Likewise.
42008 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
42010 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
42011 GET_MODE_SIZE argument is enum machine_mode.
42013 2014-04-22 Jakub Jelinek <jakub@redhat.com>
42016 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
42017 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
42019 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
42021 PR middle-end/60281
42022 * asan.c (asan_emit_stack_protection): Force the base to align to
42023 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
42024 appropriate bits if STRICT_ALIGNMENT.
42025 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
42027 (expand_used_vars): Leave a space in the stack frame for alignment
42028 if STRICT_ALIGNMENT.
42030 2014-04-21 David Malcolm <dmalcolm@redhat.com>
42032 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
42034 (gimple_store_p): Likewise.
42035 (gimple_assign_load_p): Likewise.
42036 (gimple_assign_cast_p): Likewise.
42037 (gimple_clobber_p): Likewise.
42039 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
42040 rather than a gimple.
42041 (gimple_assign_cast_p): Likewise.
42043 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
42046 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
42047 If mode is DDmode and TARGET_E500_DOUBLE allow move.
42049 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
42050 more debug information for E500 if -mdebug=reg.
42052 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
42055 * config/i386/i386.c (ix86_expand_builtin)
42056 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
42057 register for target RTX.
42058 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
42060 2014-04-18 Cong Hou <congh@google.com>
42062 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
42063 the widen-mult pattern by handling two operands with different sizes,
42064 and operands whose size is smaller than half of the result type.
42066 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42068 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
42069 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
42070 (do_estimate_edge_time): Compute it.
42071 * ipa-inline.c (want_inline_small_function_p): Bypass
42072 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
42074 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42076 * ipa-inline.c (spec_rem): New static variable.
42077 (dump_overall_stats): New function.
42078 (dump_inline_stats): New function.
42080 2014-04-18 Richard Henderson <rth@redhat.com>
42082 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
42083 to GET_MODE_SIZE, not a reg_class_t.
42085 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42087 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
42088 (vsx_xxmrglw_<mode>): Likewise.
42090 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
42093 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
42094 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
42095 (rs6000_init_hard_regno_mode_ok): Likewise.
42097 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
42099 * ipa-inline.c (inline_small_functions): Account only non-cold
42101 * doc/invoke.texi (inline-unit-growth): Update documentation.
42103 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
42105 * config/rs6000/rs6000.md (addti3, subti3): New.
42107 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
42110 * config/i386/i386.c (ix86_expand_clear): Remove outdated
42111 comment. Check optimize_insn_for_size_p instead of
42112 optimize_insn_for_speed_p.
42114 2014-04-17 Martin Jambor <mjambor@suse.cz>
42116 * gimple-iterator.c (gsi_start_edge): New function.
42117 * gimple-iterator.h (gsi_start_edge): Declare.
42118 * tree-sra.c (single_non_eh_succ): New function.
42119 (disqualify_ops_if_throwing_stmt): Renamed to
42120 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
42121 having one non-EH successor BB.
42122 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
42123 generate loads into replacements.
42124 (sra_modify_assign): Likewise and and also use the simple path for
42126 (sra_modify_function_body): Commit statements on edges.
42128 2014-04-17 Richard Biener <rguenther@suse.de>
42130 PR middle-end/60849
42131 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
42132 comparison results and add clarifying comment.
42134 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42136 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
42137 (blank_mode): Initialize it.
42138 (emit_mode_size_inline, emit_mode_nunits_inline,
42139 emit_mode_inner_inline): New functions.
42140 (emit_insn_modes_h): Call them and surround their output with
42141 #if GCC_VERSION >= 4001 ... #endif.
42142 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
42143 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
42144 mode_* arrays if the argument is __builtin_constant_p.
42145 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
42146 is enum machine_mode.
42148 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42150 * passes.c (opt_pass::execute): Adjust.
42151 (pass_manager::execute_pass_mode_switching): Likewise.
42152 (early_local_passes::execute): Likewise.
42153 (execute_one_pass): Pass cfun to the pass's execute method.
42154 * tree-pass.h (opt_pass::execute): Add function * argument.
42155 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42156 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42157 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42158 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42159 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42160 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
42161 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
42162 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42163 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42164 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
42165 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
42166 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
42167 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
42168 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
42169 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42170 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42171 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42172 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
42173 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
42174 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42175 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42176 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42177 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42178 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42179 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42180 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42181 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42182 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42183 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42186 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42188 * passes.c (opt_pass::gate): Take function * argument.
42189 (gate_all_early_local_passes): Merge into
42190 (early_local_passes::gate): this.
42191 (gate_all_early_optimizations): Merge into
42192 (all_early_optimizations::gate): this.
42193 (gate_all_optimizations): Mege into
42194 (all_optimizations::gate): this.
42195 (gate_all_optimizations_g): Merge into
42196 (all_optimizations_g::gate): this.
42197 (gate_rest_of_compilation): Mege into
42198 (rest_of_compilation::gate): this.
42199 (gate_postreload): Merge into
42200 (postreload::gate): this.
42201 (dump_one_pass): Pass cfun to the pass's gate method.
42202 (execute_ipa_summary_passes): Likewise.
42203 (execute_one_pass): Likewise.
42204 (ipa_write_summaries_2): Likewise.
42205 (ipa_write_optimization_summaries_1): Likewise.
42206 (ipa_read_summaries_1): Likewise.
42207 (ipa_read_optimization_summaries_1): Likewise.
42208 (execute_ipa_stmt_fixups): Likewise.
42209 * tree-pass.h (opt_pass::gate): Add function * argument.
42210 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
42211 combine-stack-adj.c, combine.c, compare-elim.c,
42212 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42213 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
42214 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
42215 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
42216 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42217 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42218 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42219 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
42220 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
42221 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
42222 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42223 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42224 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
42225 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42226 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42227 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42228 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42229 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42230 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42231 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42232 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42233 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42234 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
42235 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
42236 var-tracking.c, vtable-verify.c, web.c: Adjust.
42238 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42240 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
42241 * configure: Regenerate.
42243 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42245 * passes.c (dump_one_pass): don't check pass->has_gate.
42246 (execute_ipa_summary_passes): Likewise.
42247 (execute_one_pass): Likewise.
42248 (ipa_write_summaries_2): Likewise.
42249 (ipa_write_optimization_summaries_1): Likewise.
42250 (ipa_read_optimization_summaries_1): Likewise.
42251 (execute_ipa_stmt_fixups): Likewise.
42252 * tree-pass.h (pass_data::has_gate): Remove.
42253 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42254 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42255 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42256 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42257 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42258 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
42259 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
42260 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
42261 gimple-low.c, gimple-ssa-isolate-paths.c,
42262 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
42263 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
42264 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42265 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
42266 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
42267 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
42268 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
42269 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
42270 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
42271 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42272 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42273 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42274 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42275 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42276 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42277 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42278 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42279 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42280 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42281 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42282 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42283 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42286 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42288 * pass_manager.h (pass_manager::register_dump_files_1): Remove
42290 * passes.c (pass_manager::register_dump_files_1): Merge into
42291 (pass_manager::register_dump_files): this, and remove its handling of
42292 properties since the pass always has the properties anyway.
42293 (pass_manager::pass_manager): Adjust.
42295 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42297 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
42298 * passes.c (pass_manager::register_dump_files_1): Remove dead code
42299 dealing with properties.
42300 (pass_manager::register_dump_files): Adjust.
42302 2014-03-20 Mark Wielaard <mjw@redhat.com>
42304 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
42305 then represent the bound as normal constant value.
42307 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42310 Forward port from 4.8 branch
42311 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
42313 * config/i386/bmiintrin.h (_blsi_u32): New.
42314 (_blsi_u64): Ditto.
42315 (_blsr_u32): Ditto.
42316 (_blsr_u64): Ditto.
42317 (_blsmsk_u32): Ditto.
42318 (_blsmsk_u64): Ditto.
42319 (_tzcnt_u32): Ditto.
42320 (_tzcnt_u64): Ditto.
42322 2014-04-17 Kito Cheng <kito@0xlab.org>
42324 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
42326 2014-04-17 Richard Biener <rguenther@suse.de>
42328 PR middle-end/60849
42329 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
42330 boolean results for comparisons.
42332 2014-04-17 Richard Biener <rguenther@suse.de>
42334 PR tree-optimization/60836
42335 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
42336 initial PHI args to be gimple values.
42338 2014-04-17 Richard Biener <rguenther@suse.de>
42340 PR tree-optimization/60841
42341 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
42342 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
42343 of stmts to SLP build.
42344 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
42345 (vect_analyze_slp): Likewise.
42346 (vect_analyze_slp_instance): Likewise.
42347 (vect_build_slp_tree): Limit overall SLP tree growth.
42348 * tree-vectorizer.h (vect_analyze_data_refs,
42349 vect_analyze_slp): Adjust prototypes.
42351 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42353 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
42356 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42358 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
42359 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
42360 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
42361 for TARGET_SLOW_PSHUFB
42363 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42365 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
42366 * config/i386/i386.c (intel_cost): Ditto.
42368 2014-04-17 Joey Ye <joey.ye@arm.com>
42370 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
42372 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42374 * opts.c (common_handle_option): Disable -fipa-reference coorectly
42375 with -fuse-profile.
42377 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42379 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
42380 (type_all_derivations_known_p): New predicate.
42381 (type_all_ctors_visible_p): New predicate.
42382 (type_possibly_instantiated_p): New predicate.
42383 (get_odr_type): Compute all_derivations_known.
42384 (dump_odr_type): Dump the flag.
42385 (maybe_record_type): Cleanup.
42386 (record_target_from_binfo): Add bases_to_consider array;
42387 record bases for types w/o instances and skip CXX destructor.
42388 (possible_polymorphic_call_targets_1): Add bases_to_consider
42389 and consider_construction parameters; check if type may have instance.
42390 (get_polymorphic_call_info): Set maybe_in_construction to true
42391 when we know nothing.
42392 (record_targets_from_bases): Skip CXX destructors; they are
42393 never called for types in construction.
42394 (possible_polymorphic_call_targets): Do not record target when
42395 type may not have instance.
42397 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42400 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
42401 external aliases alive, too.
42403 2014-04-16 Andrew Pinski <apinski@cavium.com>
42405 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
42408 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42410 * final.c (compute_alignments): Do not apply loop alignment to a block
42411 falling through to the exit.
42413 2014-04-16 Catherine Moore <clm@codesourcery.com>
42415 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
42416 Adjust constraints for microMIPS store patterns.
42418 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42420 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
42422 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42424 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
42425 (append_use): Run at -O0.
42426 (append_vdef): Likewise.
42427 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
42428 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
42430 2014-04-16 Jakub Jelinek <jakub@redhat.com>
42432 PR tree-optimization/60844
42433 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
42434 (propagate_op_to_single_use, remove_visited_stmt_chain,
42435 linearize_expr, repropagate_negates, reassociate_bb): Use it
42436 instead of gsi_remove.
42438 2014-04-16 Martin Jambor <mjambor@suse.cz>
42440 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
42441 ipa_transforms_to_apply.
42442 (cgraph_function_versioning): Assert that old_node has empty
42443 ipa_transforms_to_apply.
42444 * trans-mem.c (ipa_tm_create_version): Likewise.
42445 * tree-inline.c (tree_function_versioning): Do not duplicate
42446 ipa_transforms_to_apply.
42448 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42451 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
42453 Pass necessary as flags on 64-bit Solaris/x86.
42454 Use lowercase relocs for x86_64-*-*.
42455 * configure: Regenerate.
42457 2014-04-15 Jan Hubicka <jh@suse.cz>
42459 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
42460 (maybe_record_node, likely_target_p): Use it.
42462 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42465 Revert following patch
42467 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
42470 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42471 software floating point or no floating point registers, do not
42472 allow any type in the FPRs. Eliminate a test for SPE SIMD types
42473 in GPRs that occurs after we tested for GPRs that would never be
42476 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42477 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42478 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
42479 specifically allow DDmode, since that does not use the SPE SIMD
42482 2014-03-21 Mark Wielaard <mjw@redhat.com>
42484 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
42485 as unsigned or int depending on type and value used.
42487 2014-04-15 Richard Biener <rguenther@suse.de>
42489 PR rtl-optimization/56965
42490 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
42491 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
42493 * alias.c (true_dependence_1): Do not call
42494 nonoverlapping_component_refs_p.
42495 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
42496 nonoverlapping_component_refs_p.
42497 (indirect_refs_may_alias_p): Likewise.
42499 2014-04-15 Teresa Johnson <tejohnson@google.com>
42501 * cfg.c (dump_bb_info): Fix flags check.
42502 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
42504 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42506 PR rtl-optimization/60663
42507 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
42510 2014-04-15 Richard Biener <rguenther@suse.de>
42512 * lto-streamer.h (LTO_major_version): Bump to 4.
42514 2014-04-15 Richard Biener <rguenther@suse.de>
42516 * common.opt (lto_partition_model): New enum.
42517 (flto-partition=): Merge separate options with a single with argument,
42518 add -flto-partition=one support.
42519 * flag-types.h (enum lto_partition_model): Declare.
42520 * opts.c (finish_options): Remove duplicate -flto-partition=
42522 * lto-wrapper.c (run_gcc): Adjust.
42524 2014-04-15 Richard Biener <rguenther@suse.de>
42526 * alias.c (ncr_compar): New function.
42527 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
42529 2014-04-15 Richard Biener <rguenther@suse.de>
42531 * alias.c (record_component_aliases): Do not walk BINFOs.
42533 2014-04-15 Richard Biener <rguenther@suse.de>
42535 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42536 Add struct function argument and adjust.
42537 (find_func_aliases_for_call): Likewise.
42538 (find_func_aliases): Likewise.
42539 (find_func_clobbers): Likewise.
42540 (intra_create_variable_infos): Likewise.
42541 (compute_points_to_sets): Likewise.
42542 (ipa_pta_execute): Adjust. Do not push/pop cfun.
42544 2014-04-15 Richard Biener <rguenther@suse.de>
42546 * tree.c (iterative_hash_expr): Use enum tree_code_class
42547 to store TREE_CODE_CLASS.
42548 (tree_block): Likewise.
42549 (tree_set_block): Likewise.
42550 * tree.h (fold_build_pointer_plus_loc): Use
42551 convert_to_ptrofftype_loc.
42553 2014-04-15 Jakub Jelinek <jakub@redhat.com>
42556 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
42559 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
42561 * cfgloop.h (struct loop): Move force_vectorize down.
42562 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
42563 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
42564 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
42565 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
42566 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
42567 * tree-core.h (enum annot_expr_kind): Add new kind values.
42568 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
42569 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
42571 * tree.def (ANNOTATE_EXPR): Tweak comment.
42573 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42575 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
42578 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
42580 * tree.h (TYPE_IDENTIFIER): Declare.
42581 * tree.c (subrange_type_for_debug_p): Use it.
42582 * godump.c (go_format_type): Likewise.
42583 * dwarf2out.c (is_cxx_auto, modified_type_die,
42584 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
42585 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
42587 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42590 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
42592 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
42594 * config/i386/i386.c (examine_argument): Return bool. Return true if
42595 parameter should be passed in memory.
42596 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
42597 (construct_container): Update calls to examine_argument.
42598 (function_arg_advance_64): Ditto.
42599 (return_in_memory_32): Merge with ix86_return_in_memory.
42600 (return_in_memory_64): Ditto.
42601 (return_in_memory_ms_64): Ditto.
42603 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42605 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
42606 * coverage.c (coverage_compute_profile_id): Handle externally visible
42609 2014-04-14 Martin Jambor <mjambor@suse.cz>
42611 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
42612 DECL_DISREGARD_INLINE_LIMITS functions.
42614 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42617 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
42619 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42622 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
42623 optimize_insn_for_speed_p instead of
42624 optimize_function_for_speed_p.
42626 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
42628 * doc/invoke.texi (free): Document AArch64.
42630 2014-04-14 Richard Biener <rguenther@suse.de>
42632 PR tree-optimization/60042
42633 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
42634 (insert_into_preds_of_block): Do not prevent PHI insertion
42635 for REFERENCE exprs here ...
42636 (eliminate_dom_walker::before_dom_children): ... but prevent
42637 their use here under similar conditions when applied to the
42638 IL after PRE optimizations.
42640 2014-04-14 Richard Biener <rguenther@suse.de>
42642 * passes.def: Move early points-to after early SRA.
42644 2014-04-14 Richard Biener <rguenther@suse.de>
42646 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
42647 check for which sign-changes we allow when forwarding
42648 a converted value into a switch.
42650 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42652 * stor-layout.c (place_field): Finalize non-constant offset for the
42655 2014-04-14 Richard Biener <rguenther@suse.de>
42657 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
42659 (expand_switch_using_bit_tests_p): Likewise.
42660 (process_switch): Compute and pass on speed_p based on the
42662 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
42663 optimize_bb_for_speed_p.
42665 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42667 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
42668 * function.h (struct function): Rename has_force_vect_loops into
42669 has_force_vectorize_loops.
42670 * lto-streamer-in.c (input_cfg): Adjust for renaming.
42671 (input_struct_function_base): Likewise.
42672 * lto-streamer-out.c (output_cfg): Likewise.
42673 (output_struct_function_base): Likewise.
42674 * omp-low.c (expand_omp_simd): Likewise.
42675 * tree-cfg.c (move_sese_region_to_fn): Likewise.
42676 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
42677 (version_loop_for_if_conversion): Likewise.
42678 (tree_if_conversion): Likewise.
42679 (main_tree_if_conversion): Likewise.
42680 (gate_tree_if_conversion): Likewise.
42681 * tree-inline.c (copy_loops): Likewise.
42682 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
42683 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
42684 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
42685 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
42686 * tree-vectorizer.c (vectorize_loops): Likewise.
42687 * tree-vectorizer.h (unlimited_cost_model): Likewise.
42689 2014-04-14 Richard Biener <rguenther@suse.de>
42692 * lto-streamer-out.c (wrap_refs): New function.
42693 (lto_output): Wrap symbol references in global initializes in
42694 type-preserving MEM_REFs.
42696 2014-04-14 Christian Bruel <christian.bruel@st.com>
42698 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
42700 2014-04-14 Christian Bruel <christian.bruel@st.com>
42702 * config/sh/sh.md (setmemqi): New expand pattern.
42703 * config/sh/sh.h (CLEAR_RATIO): Define.
42704 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
42705 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
42707 2014-04-14 Richard Biener <rguenther@suse.de>
42709 PR middle-end/55022
42710 * fold-const.c (negate_expr_p): Don't negate directional rounding
42712 (fold_negate_expr): Likewise.
42714 2014-04-14 Richard Biener <rguenther@suse.de>
42716 PR tree-optimization/59817
42717 PR tree-optimization/60453
42718 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
42719 recursion to catch all CHRECs in the scalar evolution and restrict
42720 the predicate for the remains appropriately.
42722 2014-04-12 Catherine Moore <clm@codesourcery.com>
42724 * config/mips/constraints.md: Add new register constraint "kb".
42725 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
42726 (*movhi_internal): Likewise.
42727 (*movqi_internal): Likewise.
42728 * config/mips/mips.h (M16_STORE_REGS): New register class.
42729 (REG_CLASS_NAMES): Add M16_STORE_REGS.
42730 (REG_CLASS_CONTENTS): Likewise.
42731 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
42733 2014-04-11 Tobias Burnus <burnus@net-b.de>
42736 * doc/invoke.texi (-Wformat-signedness): Document it.
42737 (Wformat=2): Mention that this enables -Wformat-signedness.
42739 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42741 * common/config/epiphany/epiphany-common.c
42742 (epiphany_option_optimization_table): Enable section anchors by
42743 default at -O1 or higher.
42744 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
42745 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
42746 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
42747 carries no extra cost.
42748 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
42749 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
42750 * config/epiphany/predicates.md (memclob_operand): New predicate.
42751 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
42752 Use memclob_operand predicate and X constraint for operand 3.
42754 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42756 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
42757 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
42760 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42762 PR rtl-optimization/60651
42763 * mode-switching.c (optimize_mode_switching): Make sure to emit
42764 sets of a lower numbered entity before sets of a higher numbered
42765 entity to a mode of the same or lower priority.
42766 When creating a seginfo for a basic block that starts with a code
42767 label, move the insertion point past the code label.
42768 (new_seginfo): Document and enforce requirement that
42769 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
42770 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
42771 * doc/tm.texi: Regenerate.
42773 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
42776 * config/arc/arc.c (arc_save_restore): Fix assert typo.
42778 2013-04-11 Jakub Jelinek <jakub@redhat.com>
42780 * BASE-VER: Set to 4.10.0.
42782 2014-04-11 Tobias Burnus <burnus@net-b.de>
42785 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
42786 * doc/gcc.texi (Service): Update description in the @menu
42787 * doc/invoke.texi (Option Summary): Remove misplaced and
42790 2014-04-11 Steve Ellcey <sellcey@mips.com>
42791 Jakub Jelinek <jakub@redhat.com>
42793 PR middle-end/60556
42794 * expr.c (convert_move): Use emit_store_flag_force instead of
42795 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
42798 2014-04-11 Richard Biener <rguenther@suse.de>
42800 PR middle-end/60797
42801 * varasm.c (assemble_alias): Avoid endless error reporting
42802 recursion by setting TREE_ASM_WRITTEN.
42804 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42806 * config/s390/s390.md: Add a splitter for NOT rtx.
42808 2014-04-11 Jakub Jelinek <jakub@redhat.com>
42810 PR rtl-optimization/60663
42811 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
42813 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
42814 Jakub Jelinek <jakub@redhat.com>
42817 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
42818 flag from decl_node to node.
42820 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42823 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
42824 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
42825 ameliorating the cases where it can be.
42827 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
42830 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42832 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42833 (loadsync_<mode>): Change mode.
42834 (load_quadpti, store_quadpti): New.
42835 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42836 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42837 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
42839 2014-04-09 Cong Hou <congh@google.com>
42842 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
42845 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42847 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
42848 instead of vnor to exploit possible fusion opportunity in the
42850 (altivec_expand_vec_perm_const_le): Likewise.
42852 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42854 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42855 (loadsync_<mode>): Change mode.
42856 (load_quadpti, store_quadpti): New.
42857 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42858 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42860 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
42863 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
42864 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
42865 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
42867 2014-04-08 Richard Biener <rguenther@suse.de>
42869 PR middle-end/60706
42870 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
42871 a 64bit widest int print double-int similar to on HWI64 hosts.
42873 2014-04-08 Richard Biener <rguenther@suse.de>
42875 PR tree-optimization/60785
42876 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
42877 default defs properly.
42879 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
42881 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
42882 (Weffc++): Likewise.
42884 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
42886 * ipa-devirt.c (maybe_record_node): When node is not recorded,
42887 set completep to false rather than true.
42889 2014-04-07 Douglas B Rupp <rupp@adacore.com>
42892 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
42893 ARM_TARGET2_DWARF_FORMAT.
42895 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
42898 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
42899 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
42902 2014-04-07 Richard Biener <rguenther@suse.de>
42904 PR tree-optimization/60766
42905 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
42906 (may_eliminate_iv): Convert cand_value_at result to desired type.
42908 2014-04-07 Jason Merrill <jason@redhat.com>
42911 * common.opt (-fno-gnu-unique): Add.
42912 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
42914 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42916 * haifa-sched.c: Fix outdated function reference and minor
42917 grammar errors in introductory comment.
42919 2014-04-07 Richard Biener <rguenther@suse.de>
42921 PR middle-end/60750
42922 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
42923 for noreturn calls.
42924 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
42926 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
42929 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
42930 size accounting for thunks.
42931 (pa_asm_output_mi_thunk): Use final_start_function() and
42932 final_end_function() to output function start and end directives.
42934 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42936 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
42937 device specific ISA/ feature information. Remove short_sp and
42938 errata_skip ds. Add avr_device_specific_features enum to have device
42940 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
42941 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
42942 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
42943 updated device specific info.
42944 * config/avr/avr-mcus.def: Merge device specific details to
42945 dev_attribute field.
42946 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
42948 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
42949 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
42950 assembler if RMW isa supported by current device.
42951 * config/avr/genmultilib.awk: Update as device info structure changed.
42952 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
42954 2014-04-04 Cong Hou <congh@google.com>
42956 PR tree-optimization/60656
42957 * tree-vect-stmts.c (supportable_widening_operation):
42958 Fix a bug that elements in a vector with vect_used_by_reduction
42959 property are incorrectly reordered when the operation on it is not
42960 consistant with the one in reduction operation.
42962 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
42964 PR rtl-optimization/60155
42965 * gcse.c (record_set_data): New function.
42966 (single_set_gcse): New function.
42967 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
42968 (hoist_code): Likewise.
42969 (get_pressure_class_and_nregs): Likewise.
42971 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
42973 * explow.c (probe_stack_range): Emit a final optimization blockage.
42975 2014-04-04 Anthony Green <green@moxielogic.com>
42977 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
42980 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
42983 * lto-cgraph.c (input_overwrite_node): Check that partitioning
42984 flags are set only during streaming.
42985 * ipa.c (process_references, walk_polymorphic_call_targets,
42986 symtab_remove_unreachable_nodes): Drop bodies of always inline
42987 after early inlining.
42988 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
42990 2014-04-04 Jakub Jelinek <jakub@redhat.com>
42991 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42994 * dwarf2out.c (const_ok_for_output_1): Reject expressions
42997 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43000 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
43002 (cortex_a53_fdivd): Likewise.
43004 2014-04-04 Martin Jambor <mjambor@suse.cz>
43007 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
43008 Adjust all callers.
43009 * cgraph.c (clone_of_p): Also return true if thunks match.
43010 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
43011 cgraph_function_or_thunk_node and an obsolete comment.
43012 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
43014 (build_function_decl_skip_args): Likewise.
43015 (set_new_clone_decl_and_node_flags): New function.
43016 (duplicate_thunk_for_node): Likewise.
43017 (redirect_edge_duplicating_thunks): Likewise.
43018 (cgraph_clone_node): New parameter args_to_skip, pass it to
43019 redirect_edge_duplicating_thunks which is called instead of
43020 cgraph_redirect_edge_callee.
43021 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
43022 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
43024 2014-04-04 Jeff Law <law@redhat.com>
43027 * config/arm/predicates.md (const_int_I_operand): New predicate.
43028 (const_int_M_operand): Similarly.
43029 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
43031 (insv_t2, extv_reg, extzv_t2): Likewise.
43032 (load_multiple_with_writeback): Similarly for const_int_I_operand.
43033 (pop_multiple_with_writeback_and_return): Likewise.
43034 (vfp_pop_multiple_with_writeback): Likewise
43036 2014-04-04 Richard Biener <rguenther@suse.de>
43039 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
43040 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
43042 * gimplify.h (gimple_add_tmp_var_fn): Declare.
43043 * gimplify.c (gimple_add_tmp_var_fn): New function.
43044 * gimple-expr.h (create_tmp_reg_fn): Declare.
43045 * gimple-expr.c (create_tmp_reg_fn): New function.
43046 * gimple-low.c (record_vars_into): Don't change cfun.
43047 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
43048 code generation without cfun.
43050 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
43053 * Makefile.in (install-driver): Fix shell scripting.
43055 2014-04-03 Cong Hou <congh@google.com>
43057 PR tree-optimization/60505
43058 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
43059 threshold of number of iterations below which no vectorization
43061 * tree-vect-loop.c (new_loop_vec_info):
43062 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
43063 * tree-vect-loop.c (vect_analyze_loop_operations):
43064 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
43065 * tree-vect-loop.c (vect_transform_loop):
43066 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
43067 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
43068 of iterations of the loop and see if we should build the epilogue.
43070 2014-04-03 Richard Biener <rguenther@suse.de>
43072 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
43073 (streamer_tree_cache_create): Adjust.
43074 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
43075 to allow optional nodes array.
43076 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
43077 (streamer_tree_cache_append): Likewise.
43078 (streamer_tree_cache_create): Create nodes array optionally
43079 as specified by parameter.
43080 * lto-streamer-out.c (create_output_block): Avoid maintaining
43081 the node array in the writer cache.
43082 (DFS_write_tree): Remove assertion.
43083 (produce_asm_for_decls): Free the out decl state hash table early.
43084 * lto-streamer-in.c (lto_data_in_create): Adjust for
43085 streamer_tree_cache_create prototype change.
43087 2014-04-03 Richard Biener <rguenther@suse.de>
43089 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
43090 set TREE_CHAIN to NULL_TREE.
43092 2014-04-03 Richard Biener <rguenther@suse.de>
43094 PR tree-optimization/60740
43095 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
43096 over all GIMPLE_COND operands.
43098 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
43100 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
43101 (Weffc++): Remove Scott's numbering, merge lists and reference
43104 2014-04-03 Nick Clifton <nickc@redhat.com>
43106 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
43109 2014-04-03 Martin Jambor <mjambor@suse.cz>
43111 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
43112 mention gcc_unreachable before failing.
43113 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
43116 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
43119 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
43120 inconsistent code and instead mark the context inconsistent.
43121 (possible_polymorphic_call_targets): For inconsistent contexts
43122 return empty complete list.
43124 2014-04-02 Anthony Green <green@moxielogic.com>
43126 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
43127 (extendqisi2, extendhisi2): Define.
43128 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
43129 (WCHAR_TYPE): Change to unsigned int.
43131 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43133 PR tree-optimization/60733
43134 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
43135 insertion point for PHI candidates to be the end of the feeding
43136 block for the PHI argument.
43138 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
43140 PR rtl-optimization/60650
43141 * lra-constraints.c (process_alt_operands): Decrease reject for
43142 earlyclobber matching.
43144 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43146 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
43148 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43150 * config/spu/spu.c (pad_bb): Do not crash when the last
43151 insn is CODE_FOR_blockage.
43153 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43155 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
43156 lies outside the target mode.
43158 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
43161 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
43162 software floating point or no floating point registers, do not
43163 allow any type in the FPRs. Eliminate a test for SPE SIMD types
43164 in GPRs that occurs after we tested for GPRs that would never be
43167 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
43168 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
43169 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
43170 specifically allow DDmode, since that does not use the SPE SIMD
43173 2014-04-02 Richard Biener <rguenther@suse.de>
43175 PR middle-end/60729
43176 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
43177 MODE_INTs. Properly use negv_optab.
43178 (expand_abs): Likewise.
43180 2014-04-02 Richard Biener <rguenther@suse.de>
43183 * Makefile.in (install-driver): Guard extra installs with special
43186 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
43188 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43189 Document vec_vgbbd.
43191 2014-04-01 Richard Henderson <rth@redhat.com>
43194 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
43195 alternative enabled before register allocation.
43197 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
43199 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
43200 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
43202 (nios2_large_got_address): Remove unneeded 'sym' parameter.
43203 (nios2_got_address): Update nios2_large_got_address call site.
43204 (nios2_delegitimize_address): New function.
43205 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
43206 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
43207 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
43209 2014-04-01 Martin Husemann <martin@duskware.de>
43211 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
43214 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
43216 PR rtl-optimization/60604
43217 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
43218 check from register_operand.
43219 (register_operand): Redefine in terms of general_operand.
43220 (nonmemory_operand): Use register_operand for the non-constant cases.
43222 2014-04-01 Richard Biener <rguenther@suse.de>
43224 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
43226 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
43228 * doc/invoke.texi (mapp-regs): Clarify.
43230 2014-03-31 Ulrich Drepper <drepper@gmail.com>
43232 * config/i386/avx512fintrin.h (__v32hi): Define type.
43233 (__v64qi): Likewise.
43234 (_mm512_set1_epi8): Define.
43235 (_mm512_set1_epi16): Define.
43236 (_mm512_set4_epi32): Define.
43237 (_mm512_set4_epi64): Define.
43238 (_mm512_set4_pd): Define.
43239 (_mm512_set4_ps): Define.
43240 (_mm512_setr4_epi64): Define.
43241 (_mm512_setr4_epi32): Define.
43242 (_mm512_setr4_pd): Define.
43243 (_mm512_setr4_ps): Define.
43244 (_mm512_setzero_epi32): Define.
43246 2014-03-31 Martin Jambor <mjambor@suse.cz>
43248 PR middle-end/60647
43249 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
43250 callsite_arguments_match_p. Updated all callers. Also check types of
43251 corresponding formal parameters and actual arguments.
43252 (not_all_callers_have_enough_arguments_p) Renamed to
43253 some_callers_have_mismatched_arguments_p.
43255 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
43257 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
43259 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
43262 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
43265 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
43267 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
43268 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
43270 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
43271 Use FMAMODE_NOVF512 mode iterator.
43272 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
43273 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
43274 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
43275 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
43277 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
43278 Use VF_128_256 mode iterator.
43279 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
43282 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43284 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
43285 static chain if needed.
43287 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43290 * lra-constraints.c (index_part_to_reg): New.
43291 (process_address): Use it.
43293 2014-03-27 Jeff Law <law@redhat.com>
43294 Jakub Jelinek <jakub@redhat.com>
43297 * expr.c (do_tablejump): Use simplify_gen_binary rather than
43298 gen_rtx_{PLUS,MULT} to build up the address expression.
43300 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
43301 creating non-canonical RTL.
43303 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43306 * ipa-inline.c (want_inline_small_function_p): Short circuit large
43307 functions; reorganize to make cheap checks first.
43308 (inline_small_functions): Do not estimate growth when dumping;
43310 * ipa-inline.h (inline_summary): Add min_size.
43311 (growth_likely_positive): New function.
43312 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
43313 (set_cond_stmt_execution_predicate): Cleanup.
43314 (estimate_edge_size_and_time): Compute min_size.
43315 (estimate_calls_size_and_time): Likewise.
43316 (estimate_node_size_and_time): Likewise.
43317 (inline_update_overall_summary): Update min_size.
43318 (do_estimate_edge_time): Likewise.
43319 (do_estimate_edge_size): Update.
43320 (do_estimate_edge_hints): Update.
43321 (growth_likely_positive): New function.
43323 2014-03-28 Jakub Jelinek <jakub@redhat.com>
43326 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
43327 also if addr has VOIDmode.
43329 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43331 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
43332 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
43334 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
43335 instructions as well as AdvancedSIMD loads.
43337 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43339 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
43340 Use crypto_aese type.
43341 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
43342 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
43343 crypto_aese, crypto_aesmc. Move to types.md.
43344 * config/arm/types.md (crypto_aes): Split into crypto_aese,
43346 * config/arm/iterators.md (crypto_type): Likewise.
43348 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43350 * cgraph.c: Include expr.h and tree-dfa.h.
43351 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
43354 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43357 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
43358 regs from checking multi-reg pseudos.
43360 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43362 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
43364 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43366 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
43367 if it would clobber the stack pointer, even temporarily.
43369 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
43371 * mode-switching.c: Make small adjustments to the top comment.
43373 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
43375 * config/rs6000/constraints.md (wD constraint): New constraint to
43376 match the constant integer to get the top DImode/DFmode out of a
43377 vector in a VSX register.
43379 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
43380 match the constant integer to get the top DImode/DFmode out of a
43381 vector in a VSX register.
43383 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
43386 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
43389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
43390 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
43392 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
43393 Optimize vec_extract of 64-bit values, where the value being
43394 extracted is in the top word, where we can use scalar
43395 instructions. Add direct move and store support. Combine the big
43396 endian/little endian vector select load support into a single insn.
43397 (vsx_extract_<mode>_internal1): Likewise.
43398 (vsx_extract_<mode>_internal2): Likewise.
43399 (vsx_extract_<mode>_load): Likewise.
43400 (vsx_extract_<mode>_store): Likewise.
43401 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
43402 combined into vsx_extract_<mode>_load.
43403 (vsx_extract_<mode>_one_le): Likewise.
43405 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
43406 define the top 64-bit vector element.
43408 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
43411 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43412 Document vec_vbpermq builtin.
43415 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
43416 enable use of xxsldwi and xxpermdi builtin functions.
43417 (vec_xxpermdi): Likewise.
43419 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43420 Document use of vec_xxsldwi and vec_xxpermdi builtins.
43422 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
43424 PR rtl-optimization/60650
43425 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
43427 (find_spills_for): New.
43428 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
43429 Spill all pseudos on the second iteration.
43431 2014-03-27 Marek Polacek <polacek@redhat.com>
43434 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
43437 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43439 * config/s390/s390.c (s390_can_use_return_insn): Check for
43440 call-saved FPRs on 31 bit.
43442 2014-03-27 Jakub Jelinek <jakub@redhat.com>
43444 PR middle-end/60682
43445 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
43446 if they need regimplification, just drop them instead of
43447 calling gimple_regimplify_operands on them.
43449 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
43452 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
43453 (aarch64_frame_pointer_required): Adjust logic.
43454 (aarch64_can_eliminate): Adjust logic.
43455 (aarch64_override_options_after_change): Adjust logic.
43457 2014-03-27 Dehao Chen <dehao@google.com>
43459 * ipa-inline.c (early_inliner): Update node's inline info.
43461 2014-03-26 Dehao Chen <dehao@google.com>
43463 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
43464 compiler inserted conditional jumps for NAN float check.
43466 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43468 * ubsan.h (ubsan_create_data): Change second argument's type
43469 to const location_t *.
43470 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
43472 (ubsan_create_data): Change second argument to const location_t *PLOC.
43473 Create Loc field whenever PLOC is non-NULL.
43474 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
43475 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
43479 * real.c (real_to_integer2): Change type of low to UHWI.
43481 2014-03-26 Tobias Burnus <burnus@net-b.de>
43483 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
43484 (CILK_SELF_SPECS): New define.
43485 (driver_self_specs): Use it.
43487 2014-03-26 Richard Biener <rguenther@suse.de>
43489 * tree-pretty-print.c (percent_K_format): Implement special
43490 case for LTO and its stripped down BLOCK tree.
43492 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43495 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
43497 * tree-vrp.c (simplify_internal_call_using_ranges): If only
43498 one range is range_int_cst_p, but not both, at least optimize
43499 addition/subtraction of 0 and multiplication by 0 or 1.
43500 * gimple-fold.c (gimple_fold_call): Fold
43501 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
43502 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
43503 INTEGER_CSTs, try to fold at least x * 0 and y - y.
43505 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
43507 PR rtl-optimization/60452
43508 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
43509 <case REG>: Return 1 for invalid offsets from the frame pointer.
43511 2014-03-26 Marek Polacek <polacek@redhat.com>
43514 * doc/extend.texi (C Extensions): Mention variable-length arrays in
43517 2014-03-26 Marek Polacek <polacek@redhat.com>
43520 * doc/extend.texi (Designated Inits): Describe what happens to omitted
43523 2014-03-26 Marek Polacek <polacek@redhat.com>
43526 * ira-color.c (update_conflict_hard_regno_costs): Perform the
43527 multiplication in unsigned type.
43529 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43531 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
43533 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43535 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
43537 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43540 * cif-code.def (UNREACHABLE) New code.
43541 * ipa-inline.c (inline_small_functions): Skip edges to
43542 __builtlin_unreachable.
43543 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
43544 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
43545 predicate to __bulitin_unreachable.
43546 (set_cond_stmt_execution_predicate): Fix issue when
43547 invert_tree_comparison returns ERROR_MARK.
43548 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
43549 propagate to inline clones.
43550 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
43552 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
43553 * cgraphclones.c (cgraph_clone_node): If call destination is already
43554 ureachable, do not redirect it back.
43555 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
43558 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43560 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
43561 Do not modify inline clones.
43563 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43565 * config/i386/i386.md (general_sext_operand): New mode attr.
43566 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
43567 don't generate (sign_extend (const_int)).
43568 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
43569 operands[2]. Use We constraint instead of <i> and
43570 <general_sext_operand> predicate instead of <general_operand>.
43571 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
43572 * config/i386/constraints.md (We): New constraint.
43573 * config/i386/predicates.md (x86_64_sext_operand,
43574 sext_operand): New predicates.
43576 2014-03-25 Martin Jambor <mjambor@suse.cz>
43579 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
43580 inconsistent devirtualizations to __builtin_unreachable.
43582 2014-03-25 Marek Polacek <polacek@redhat.com>
43585 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
43587 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
43589 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
43590 order of elements for big-endian.
43592 2014-03-25 Richard Biener <rguenther@suse.de>
43594 PR middle-end/60635
43595 * gimplify-me.c (gimple_regimplify_operands): Update the
43598 2014-03-25 Martin Jambor <mjambor@suse.cz>
43601 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
43602 (lto_output_varpool_node): Likewise.
43603 (input_overwrite_node): Likewise.
43604 (input_varpool_node): Likewise.
43606 2014-03-25 Richard Biener <rguenther@suse.de>
43608 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
43609 (run_gcc): Likewise.
43611 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43613 * combine.c (simplify_compare_const): Add MODE argument.
43614 Handle mode_width 0 as very large mode_width.
43615 (try_combine, simplify_comparison): Adjust callers.
43617 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
43618 type to avoid signed integer overflow.
43619 * explow.c (plus_constant): Likewise.
43621 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
43623 * doc/generic.texi: Correct typos.
43625 2014-03-24 Tobias Burnus <burnus@net-b.de>
43627 * doc/invoke.texi (-flto): Expand section about
43628 using static libraries with LTO.
43630 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43632 PR rtl-optimization/60501
43633 * optabs.def (addptr3_optab): New optab.
43634 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
43635 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
43636 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
43638 * lra.c (emit_add3_insn): Use the addptr pattern if available.
43640 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
43642 2014-03-24 Ulrich Drepper <drepper@gmail.com>
43644 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
43647 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
43648 (_mm256_undefined_ps): Define.
43649 (_mm256_undefined_pd): Define.
43650 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
43651 (_mm_undefined_pd): Define.
43652 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
43653 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
43654 (_mm512_undefined_ps): Define.
43655 (_mm512_undefined_pd): Define.
43656 Use _mm*_undefined_*.
43657 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
43659 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
43661 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
43662 (lshr_simd): DI mode added.
43663 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
43664 (aarch64_ushr_simddi): Likewise.
43665 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
43666 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
43667 (vshrd_n_u64): Likewise.
43669 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43671 * Makefile.in (s-macro_list): Depend on cc1.
43673 2014-03-23 Teresa Johnson <tejohnson@google.com>
43675 * ipa-utils.c (ipa_print_order): Use specified dump file.
43677 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
43679 PR rtl-optimization/60601
43680 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43682 * gcc.c (eval_spec_function): Initialize save_growing_value.
43684 2014-03-22 Jakub Jelinek <jakub@redhat.com>
43687 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
43688 code == MINUS_EXPR, never swap op0 with op1.
43690 * toplev.c (init_local_tick): Avoid signed integer multiplication
43692 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
43693 shift by first operand's bitsize.
43695 2014-03-21 Jakub Jelinek <jakub@redhat.com>
43698 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
43699 redefine to 1 or 0.
43700 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
43701 TARGET_ISA_64BIT_P(x).
43703 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43705 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
43706 pattern for vector nor instead of subtract from splat(-1).
43707 (altivec_expand_vec_perm_const_le): Likewise.
43709 2014-03-21 Richard Henderson <rth@twiddle.net>
43712 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
43713 related insns after epilogue_completed.
43715 2014-03-21 Martin Jambor <mjambor@suse.cz>
43718 * cgraph.h (symtab_node): New flag body_removed.
43719 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
43720 when removing bodies.
43721 * symtab.c (dump_symtab_base): Dump body_removed flag.
43722 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
43723 had their bodies removed.
43725 2014-03-21 Martin Jambor <mjambor@suse.cz>
43728 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
43731 2014-03-21 Richard Biener <rguenther@suse.de>
43733 PR tree-optimization/60577
43734 * tree-core.h (struct tree_base): Document nothrow_flag use
43735 in DECL_NONALIASED.
43736 * tree.h (DECL_NONALIASED): New.
43737 (may_be_aliased): Adjust.
43738 * coverage.c (build_var): Set DECL_NONALIASED.
43740 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43742 * expr.c (expand_expr_real_1): Remove outdated comment.
43744 2014-03-20 Jakub Jelinek <jakub@redhat.com>
43746 PR middle-end/60597
43747 * ira.c (adjust_cleared_regs): Call copy_rtx on
43748 *reg_equiv[REGNO (loc)].src_p before passing it to
43749 simplify_replace_fn_rtx.
43752 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
43753 into CONST, put pic register as first operand of PLUS. Use
43754 gen_const_mem for both 32-bit and 64-bit PIC got loads.
43756 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43758 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
43760 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43762 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
43763 around for store forwarding issue in the FPU on the UT699.
43764 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
43765 loads and operations if -mfix-ut699 is specified.
43766 (divtf3_hq): Tweak attribute.
43767 (sqrttf2_hq): Likewise.
43769 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43771 * calls.c (store_one_arg): Remove incorrect const qualification on the
43772 type of the temporary.
43773 * cfgexpand.c (expand_return): Likewise.
43774 * expr.c (expand_constructor): Likewise.
43775 (expand_expr_real_1): Likewise.
43777 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
43779 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
43782 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
43785 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
43787 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
43789 * config/arm/aarch-common-protos.h
43790 (alu_cost_table): Fix spelling of "extend".
43791 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
43793 2014-03-19 Richard Biener <rguenther@suse.de>
43795 PR middle-end/60553
43796 * tree-core.h (tree_type_common): Re-order pointer members
43797 to reduce recursion depth during GC walks.
43799 2014-03-19 Marek Polacek <polacek@redhat.com>
43802 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
43803 before accessing it.
43805 2014-03-19 Richard Biener <rguenther@suse.de>
43808 * lto-streamer-in.c (input_function): In WPA stage do not drop
43811 2014-03-19 Jakub Jelinek <jakub@redhat.com>
43813 PR tree-optimization/60559
43814 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
43815 with build_zero_cst assignment.
43817 2014-03-18 Kai Tietz <ktietz@redhat.com>
43819 PR rtl-optimization/56356
43820 * sdbout.c (sdbout_parms): Verify that parms'
43821 incoming argument is valid.
43822 (sdbout_reg_parms): Likewise.
43824 2014-03-18 Richard Henderson <rth@redhat.com>
43827 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
43828 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
43829 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
43831 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
43833 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
43834 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
43835 Italicize plugin event names in description. Explain that
43836 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
43837 Remind that no GCC functions should be called after PLUGIN_FINISH.
43838 Explain what pragmas with expansion are.
43840 2014-03-18 Martin Liska <mliska@suse.cz>
43842 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
43843 gimple call statement is update.
43844 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
43845 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
43847 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43850 * ubsan.c (ubsan_instrument_unreachable): Call
43851 initialize_sanitizer_builtins.
43852 (ubsan_pass): Likewise.
43855 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
43856 varpool_finalize_decl instead of rest_of_decl_compilation.
43858 2014-03-18 Richard Biener <rguenther@suse.de>
43860 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
43861 by using bitmap_and_compl instead of bitmap_and_compl_into.
43862 (df_rd_transfer_function): Likewise.
43864 2014-03-18 Richard Biener <rguenther@suse.de>
43866 * doc/lto.texi (fresolution): Fix typo.
43868 2014-03-18 Richard Biener <rguenther@suse.de>
43870 * doc/invoke.texi (flto): Update for changes in 4.9.
43872 2014-03-18 Richard Biener <rguenther@suse.de>
43874 * doc/loop.texi: Remove section on the removed lambda framework.
43875 Update loop docs with recent changes in preserving loop structure.
43877 2014-03-18 Richard Biener <rguenther@suse.de>
43879 * doc/lto.texi (-fresolution): Document.
43881 2014-03-18 Richard Biener <rguenther@suse.de>
43883 * doc/contrib.texi: Adjust my name.
43885 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43888 * internal-fn.c: Include diagnostic-core.h.
43889 (expand_BUILTIN_EXPECT): New function.
43890 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
43891 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
43892 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
43893 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
43894 IFN_BUILTIN_EXPECT.
43895 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
43896 Revert 3 argument __builtin_expect code.
43897 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
43898 * gimple-fold.c (gimple_fold_call): Likewise.
43899 * tree.h (fold_builtin_expect): New prototype.
43900 * builtins.c (build_builtin_expect_predicate): Add predictor
43901 argument, if non-NULL, create 3 argument __builtin_expect.
43902 (fold_builtin_expect): No longer static. Add ARG2 argument,
43903 pass it through to build_builtin_expect_predicate.
43904 (fold_builtin_2): Adjust caller.
43905 (fold_builtin_3): Handle BUILT_IN_EXPECT.
43906 * internal-fn.def (BUILTIN_EXPECT): New.
43908 2014-03-18 Tobias Burnus <burnus@net-b.de>
43911 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
43912 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
43913 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
43915 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
43918 * predict.c (combine_predictions_for_bb): Fix up formatting.
43919 (expr_expected_value_1, expr_expected_value): Add predictor argument,
43920 fill what it points to if non-NULL.
43921 (tree_predict_by_opcode): Adjust caller, use the predictor.
43922 * predict.def (PRED_COMPARE_AND_SWAP): Add.
43924 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
43926 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
43927 proper constant for the store mode.
43929 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
43931 * symtab.c (change_decl_assembler_name): Fix transparent alias
43932 chain construction.
43934 2014-03-16 Renlin Li <Renlin.Li@arm.com>
43936 * config/aarch64/aarch64.c: Correct the comments about the
43937 aarch64 stack layout.
43939 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
43941 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
43942 check for GF_OMP_FOR_KIND_FOR.
43944 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
43946 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
43947 ymm and zmm register names.
43949 2014-03-17 Jakub Jelinek <jakub@redhat.com>
43952 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
43953 note creation for the 2010-08-31 changes.
43955 2014-03-17 Marek Polacek <polacek@redhat.com>
43957 PR middle-end/60534
43958 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
43959 as -fno-tree-loop-vectorize.
43960 (expand_omp_simd): Likewise.
43962 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
43964 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
43965 (eligible_for_call_delay): New prototype.
43966 * config/sparc/sparc.c (tls_call_delay): Rename into...
43967 (eligible_for_call_delay): ...this. Return false if the instruction
43968 cannot be put in the delay slot of a branch.
43969 (eligible_for_restore_insn): Simplify.
43970 (eligible_for_return_delay): Return false if the instruction cannot be
43971 put in the delay slot of a branch and simplify.
43972 (eligible_for_sibcall_delay): Return false if the instruction cannot be
43973 put in the delay slot of a branch.
43974 * config/sparc/sparc.md (fix_ut699): New attribute.
43975 (tls_call_delay): Delete.
43976 (in_call_delay): Reimplement.
43977 (eligible_for_sibcall_delay): Rename into...
43978 (in_sibcall_delay): ...this.
43979 (eligible_for_return_delay): Rename into...
43980 (in_return_delay): ...this.
43981 (in_branch_delay): Reimplement.
43982 (in_uncond_branch_delay): Delete.
43983 (in_annul_branch_delay): Delete.
43985 2014-03-14 Richard Henderson <rth@redhat.com>
43988 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
43989 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
43990 (*floathi<X87MODEF>2_i387_with_temp): Remove.
43991 (floathi splitters): Remove.
43992 (float<SWI48x>xf2): New pattern.
43993 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
43994 code that tried to handle DImode for 32-bit, but which was excluded
43995 by the pattern's condition. Drop allocation of stack temporary.
43996 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
43997 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
43998 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
43999 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
44000 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
44001 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
44002 (*float<SWI48><MODEF>2_sse_interunit): Remove.
44003 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
44004 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
44005 (*float<SWI48x><X87MODEF>2_i387): Remove.
44006 (all float _with_temp splitters): Remove.
44007 (*float<SWI48x><MODEF>2_i387): New pattern.
44008 (*float<SWI48><MODEF>2_sse): New pattern.
44009 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
44010 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
44012 2014-03-14 Jakub Jelinek <jakub@redhat.com>
44013 Marek Polacek <polacek@redhat.com>
44015 PR middle-end/60484
44016 * common.opt (dump_base_name_prefixed): New Variable.
44017 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
44018 if x_dump_base_name_prefixed is already set, set it at the end.
44020 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
44022 PR rtl-optimization/60508
44023 * lra-constraints.c (get_reload_reg): Add new parameter
44025 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
44026 Pass the new parameter values.
44028 2014-03-14 Richard Biener <rguenther@suse.de>
44030 * common.opt: Revert unintented changes from r205065.
44031 * opts.c: Likewise.
44033 2014-03-14 Richard Biener <rguenther@suse.de>
44035 PR middle-end/60518
44036 * cfghooks.c (split_block): Properly adjust all loops the
44037 block was a latch of.
44039 2014-03-14 Martin Jambor <mjambor@suse.cz>
44042 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
44045 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
44048 * config/avr/avr.c (avr_set_current_function): Pass function name
44049 through default_strip_name_encoding before sanity checking instead
44050 of skipping the first char of the assembler name.
44052 2014-03-13 Richard Henderson <rth@redhat.com>
44055 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
44056 (ix86_force_to_memory, ix86_free_from_memory): Remove.
44057 * config/i386/i386-protos.h: Likewise.
44058 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
44059 in the expander instead of a splitter.
44060 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
44061 any possibility of requiring a memory.
44062 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
44063 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
44064 (fp branch splitters): Update for ix86_split_fp_branch.
44065 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
44066 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
44067 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
44068 (*fop_<MODEF>_2_i387): Remove f/r alternative.
44069 (*fop_<MODEF>_3_i387): Likewise.
44070 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
44071 (splitters for the fop_* register patterns): Remove.
44072 (fscalexf4_i387): Rename from *fscalexf4_i387.
44073 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
44075 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44077 PR tree-optimization/59779
44078 * tree-dfa.c (get_ref_base_and_extent): Use double_int
44079 type for bitsize and maxsize instead of HOST_WIDE_INT.
44081 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
44083 PR rtl-optimization/57320
44084 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
44085 the CFG after thread_prologue_and_epilogue_insns.
44087 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
44089 PR rtl-optimization/57189
44090 * lra-constraints.c (process_alt_operands): Disfavor spilling
44093 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
44095 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
44097 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44099 PR tree-optimization/59025
44100 PR middle-end/60418
44101 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
44102 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
44104 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
44107 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
44108 calls of avr_out_plus_1.
44110 2014-03-13 Bin Cheng <bin.cheng@arm.com>
44112 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
44113 BB's single pred and update the father loop's latch info later.
44115 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
44117 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
44121 (VEC_base): Likewise.
44122 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
44123 registers, we need to swap double words in little endian mode.
44125 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
44126 to be a container mode for 128-bit integer operations added in ISA
44127 2.07. Unlike TImode and PTImode, the preferred register set is
44128 the Altivec/VMX registers for the 128-bit operations.
44130 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
44132 (rs6000_split_128bit_ok_p): Likewise.
44134 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
44135 macros for creating ISA 2.07 normal and overloaded builtin
44136 functions with 3 arguments.
44137 (BU_P8V_OVERLOAD_3): Likewise.
44138 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
44139 for use as overloaded functions.
44140 (VPERM_1TI_UNS): Likewise.
44141 (VSEL_1TI): Likewise.
44142 (VSEL_1TI_UNS): Likewise.
44143 (ST_INTERNAL_1ti): Likewise.
44144 (LD_INTERNAL_1ti): Likewise.
44145 (XXSEL_1TI): Likewise.
44146 (XXSEL_1TI_UNS): Likewise.
44147 (VPERM_1TI): Likewise.
44148 (VPERM_1TI_UNS): Likewise.
44149 (XXPERMDI_1TI): Likewise.
44150 (SET_1TI): Likewise.
44151 (LXVD2X_V1TI): Likewise.
44152 (STXVD2X_V1TI): Likewise.
44153 (VEC_INIT_V1TI): Likewise.
44154 (VEC_SET_V1TI): Likewise.
44155 (VEC_EXT_V1TI): Likewise.
44156 (EQV_V1TI): Likewise.
44157 (NAND_V1TI): Likewise.
44158 (ORC_V1TI): Likewise.
44159 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
44160 added in ISA 2.07. Add both normal 'altivec' builtins, and the
44161 overloaded builtin.
44162 (VADDUQM): Likewise.
44163 (VSUBCUQ): Likewise.
44164 (VADDEUQM): Likewise.
44165 (VADDECUQ): Likewise.
44166 (VSUBEUQM): Likewise.
44167 (VSUBECUQ): Likewise.
44169 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
44170 __int128_t and __uint128_t types.
44171 (__uint128_type): Likewise.
44172 (altivec_categorize_keyword): Add support for vector __int128_t,
44173 vector __uint128_t, vector __int128, and vector unsigned __int128
44174 as a container type for TImode operations that need to be done in
44175 VSX/Altivec registers.
44176 (rs6000_macro_to_expand): Likewise.
44177 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
44178 to support 128-bit integer instructions vaddcuq, vadduqm,
44179 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
44180 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
44182 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
44183 for V1TImode, and set up preferences to use VSX/Altivec registers.
44184 Setup VSX reload handlers.
44185 (rs6000_debug_reg_global): Likewise.
44186 (rs6000_init_hard_regno_mode_ok): Likewise.
44187 (rs6000_preferred_simd_mode): Likewise.
44188 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
44189 (easy_altivec_constant): Likewise.
44190 (output_vec_const_move): Likewise.
44191 (rs6000_expand_vector_set): Convert V1TImode set and extract to
44193 (rs6000_expand_vector_extract): Likewise.
44194 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
44196 (rs6000_const_vec): Add support for V1TImode.
44197 (rs6000_emit_le_vsx_load): Swap double words when loading or
44198 storing TImode/V1TImode.
44199 (rs6000_emit_le_vsx_store): Likewise.
44200 (rs6000_emit_le_vsx_move): Likewise.
44201 (rs6000_emit_move): Add support for V1TImode.
44202 (altivec_expand_ld_builtin): Likewise.
44203 (altivec_expand_st_builtin): Likewise.
44204 (altivec_expand_vec_init_builtin): Likewise.
44205 (altivec_expand_builtin): Likewise.
44206 (rs6000_init_builtins): Add support for V1TImode type. Add
44207 support for ISA 2.07 128-bit integer builtins. Define type names
44208 for the VSX/Altivec vector types.
44209 (altivec_init_builtins): Add support for overloaded vector
44210 functions with V1TImode type.
44211 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
44212 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
44214 (rs6000_split_128bit_ok_p): Likewise.
44215 (rs6000_handle_altivec_attribute): Create V1TImode from vector
44216 __int128_t and vector __uint128_t.
44218 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
44219 and mode attributes.
44221 (VSX_M2): Likewise.
44226 (VS_scalar): Likewise.
44227 (VS_double): Likewise.
44228 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
44230 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
44231 we support the ISA 2.07 128-bit integer arithmetic instructions.
44232 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
44233 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
44234 and TImode types for use with the builtin functions.
44235 (V1TI_type_node): Likewise.
44236 (unsigned_V1TI_type_node): Likewise.
44237 (intTI_type_internal_node): Likewise.
44238 (uintTI_type_internal_node): Likewise.
44240 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
44241 128-bit builtin functions.
44242 (UNSPEC_VADDEUQM): Likewise.
44243 (UNSPEC_VADDECUQ): Likewise.
44244 (UNSPEC_VSUBCUQ): Likewise.
44245 (UNSPEC_VSUBEUQM): Likewise.
44246 (UNSPEC_VSUBECUQ): Likewise.
44247 (VM): Add V1TImode to vector mode iterators.
44249 (VI_unit): Likewise.
44250 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
44251 (altivec_vaddcuq): Likewise.
44252 (altivec_vsubuqm): Likewise.
44253 (altivec_vsubcuq): Likewise.
44254 (altivec_vaddeuqm): Likewise.
44255 (altivec_vaddecuq): Likewise.
44256 (altivec_vsubeuqm): Likewise.
44257 (altivec_vsubecuq): Likewise.
44259 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
44261 (BOOL_128): Likewise.
44262 (BOOL_REGS_OUTPUT): Likewise.
44263 (BOOL_REGS_OP1): Likewise.
44264 (BOOL_REGS_OP2): Likewise.
44265 (BOOL_REGS_UNARY): Likewise.
44266 (BOOL_REGS_AND_CR0): Likewise.
44268 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
44269 128-bit integer builtin support.
44270 (vec_vadduqm): Likewise.
44271 (vec_vaddecuq): Likewise.
44272 (vec_vaddeuqm): Likewise.
44273 (vec_vsubecuq): Likewise.
44274 (vec_vsubeuqm): Likewise.
44275 (vec_vsubcuq): Likewise.
44276 (vec_vsubuqm): Likewise.
44278 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
44279 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
44280 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
44281 128-bit integer add/subtract to ISA 2.07.
44283 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
44285 * config/arc/arc.c (arc_predicate_delay_insns):
44286 Fix third argument passed to conditionalize_nonjump.
44288 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
44290 * config/aarch64/aarch64-builtins.c
44291 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
44292 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
44293 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
44294 instead of __builtin_lfloor.
44295 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
44297 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44299 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
44300 (tree_ssa_ifcombine_bb_1): New function.
44301 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
44302 is an empty forwarder block to then_bb or vice versa and then_bb
44303 and else_bb are effectively swapped.
44305 2014-03-12 Christian Bruel <christian.bruel@st.com>
44308 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
44309 REG_CFA_DEF_CFA note.
44310 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
44311 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
44313 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
44315 PR tree-optimization/60454
44316 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
44318 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44320 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
44321 Do not define target_cpu_default2 to generic.
44322 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
44323 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
44324 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
44326 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44327 Marc Glisse <marc.glisse@inria.fr>
44329 PR tree-optimization/60502
44330 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
44331 instead of build_low_bits_mask.
44333 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44335 PR middle-end/60482
44336 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
44337 if there are multiple uses, but op doesn't live on E edge.
44338 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
44339 clobber stmts before __builtin_unreachable.
44341 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
44343 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
44344 hard_frame_pointer_rtx.
44345 * cse.c (cse_insn): Remove volatile check.
44346 * cselib.c (cselib_process_insn): Likewise.
44347 * dse.c (scan_insn): Likewise.
44349 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44351 * config/arc/arc.c (conditionalize_nonjump): New function,
44353 (arc_ifcvt): ... this.
44354 (arc_predicate_delay_insns): Use it.
44356 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44358 * config/arc/predicates.md (extend_operand): During/after reload,
44359 allow const_int_operand.
44360 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
44361 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
44362 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
44364 (umulsi3_highpart_i): Likewise.
44366 2014-03-11 Richard Biener <rguenther@suse.de>
44368 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
44369 Add asserts to guard possible wrong-code bugs.
44371 2014-03-11 Richard Biener <rguenther@suse.de>
44373 PR tree-optimization/60429
44374 PR tree-optimization/60485
44375 * tree-ssa-structalias.c (set_union_with_increment): Properly
44376 take into account all fields that overlap the shifted vars.
44377 (do_sd_constraint): Likewise.
44378 (do_ds_constraint): Likewise.
44379 (get_constraint_for_ptr_offset): Likewise.
44381 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
44383 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
44384 (nios2_compute_frame_layout):
44385 Add calculation of cfun->machine->fp_save_offset.
44386 (nios2_expand_prologue): Correct setting of frame pointer register
44388 (nios2_expand_epilogue): Update recovery of stack pointer from
44389 frame pointer accordingly.
44390 (nios2_initial_elimination_offset): Update calculation of offset
44391 for eliminating to HARD_FRAME_POINTER_REGNUM.
44393 2014-03-10 Jakub Jelinek <jakub@redhat.com>
44396 * ipa.c (symtab_remove_unreachable_nodes): Don't call
44397 cgraph_get_create_node on VAR_DECLs.
44399 2014-03-10 Richard Biener <rguenther@suse.de>
44401 PR middle-end/60474
44402 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
44404 2014-03-08 Douglas B Rupp <rupp@gnat.com>
44406 * config/vms/vms.opt (vms_float_format): New variable.
44408 2014-03-08 Tobias Burnus <burnus@net-b.de>
44410 * doc/invoke.texi (-fcilkplus): Update implementation status.
44412 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
44413 Richard Biener <rguenther@suse.de>
44415 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
44416 consistently accross all TUs.
44417 (run_gcc): Enable -fshort-double automatically at link at link-time
44418 and disallow override.
44420 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
44423 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
44424 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
44425 if they can't be used.
44427 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44429 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
44430 for Solaris 11/x86 ld.
44431 * configure: Regenerate.
44433 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44435 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
44436 (LIB_TLS_SPEC): Save as ld_tls_libs.
44437 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
44438 (HAVE_AS_IX86_TLSLDM): New test.
44439 * configure, config.in: Regenerate.
44440 * config/i386/i386.c (legitimize_tls_address): Fall back to
44441 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
44442 cannot support TLS_MODEL_LOCAL_DYNAMIC.
44443 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
44444 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
44446 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
44448 * common.opt (fira-loop-pressure): Mark as optimization.
44450 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
44452 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
44453 an OpenMP mappable type.
44455 2014-03-06 Matthias Klose <doko@ubuntu.com>
44457 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
44458 MULTILIB_OSDIRNAMES is not defined.
44460 2014-03-06 Jakub Jelinek <jakub@redhat.com>
44461 Meador Inge <meadori@codesourcery.com>
44464 * config/arm/arm.c (arm_tls_symbol_p): Remove.
44465 (arm_legitimize_address): Call legitimize_tls_address for any
44466 arm_tls_referenced_p expression, handle constant addend. Call it
44467 before testing for !TARGET_ARM.
44468 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
44470 2014-03-06 Richard Biener <rguenther@suse.de>
44472 PR middle-end/60445
44476 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44478 * tree-streamer.c (record_common_node): Assert we don't record
44479 nodes with type double.
44480 (preload_common_node): Skip type double, complex double and double
44481 pointer since it is now frontend dependent due to fshort-double option.
44483 2014-03-06 Richard Biener <rguenther@suse.de>
44485 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
44486 or -fno-lto is specified and the linker has full plugin support.
44487 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
44488 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
44489 * lto-wrapper.c (merge_and_complain): Merge compile-time
44490 optimization levels.
44491 (run_gcc): And pass it through to the link options.
44493 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
44497 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44499 * cselib.c (remove_useless_values): Skip to avoid quadratic
44500 behavior if the condition moved from...
44501 (cselib_process_insn): ... here holds.
44503 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44506 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
44507 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
44510 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
44511 (TM_H): Add x86-tune.def.
44513 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44515 * config/aarch64/aarch64.c (generic_tunings):
44516 Use cortexa57_extra_costs.
44518 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44521 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
44522 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
44523 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
44526 2014-03-04 Heiher <r@hev.cc>
44528 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
44529 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
44531 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
44533 * config/i386/predicates.md (const2356_operand): Change to ...
44534 (const2367_operand): ... this.
44535 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
44537 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44538 (*avx512pf_scatterpf<mode>sf): Ditto.
44539 (avx512pf_scatterpf<mode>df): Ditto.
44540 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44541 (*avx512pf_scatterpf<mode>df): Ditto.
44542 * config/i386/i386.c (ix86_expand_builtin): Update
44543 incorrect hint operand error message.
44545 2014-03-04 Richard Biener <rguenther@suse.de>
44547 * lto-section-in.c (lto_get_section_data): Fix const cast.
44549 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44551 * tree-streamer.c (record_common_node): Assert we don't record
44552 nodes with type double.
44553 (preload_common_node): Skip type double, complex double and double
44554 pointer since it is now frontend dependent due to fshort-double option.
44556 2014-03-04 Richard Biener <rguenther@suse.de>
44559 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
44560 (lto_input_toplevel_asms): Likewise.
44561 * lto-section-in.c (lto_get_section_data): Instead do it here
44564 2014-03-04 Richard Biener <rguenther@suse.de>
44566 PR tree-optimization/60382
44567 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
44568 dead PHIs a reduction.
44570 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
44572 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
44574 (_mm_prefetch): Move out of GCC target("sse") pragma.
44575 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
44576 GCC target("prfchw") pragma.
44577 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
44579 * config/i386/i386.c (ix86_option_override_internal): Enable
44580 -mprfchw with -mprefetchwt1.
44582 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44584 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
44587 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44589 * opts.h (CL_PCH_IGNORE): Define.
44590 * targhooks.c (option_affects_pch_p):
44591 Return false for options that have CL_PCH_IGNORE set.
44592 * opt-functions.awk: Process PchIgnore.
44593 * doc/options.texi: Document PchIgnore.
44595 * config/arc/arc.opt (misize): Add PchIgnore property.
44597 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44599 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
44600 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
44601 constraint on constants to permit them being loaded into
44602 GENERAL_REGS or BASE_REGS.
44604 2014-03-03 Nick Clifton <nickc@redhat.com>
44606 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
44607 anti-cacnonical alternatives.
44608 (negandhi3_real): New pattern.
44609 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
44611 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
44613 * config/avr/avr-mcus.def: Remove atxmega16x1.
44614 * config/avr/avr-tables.opt: Regenerate.
44615 * config/avr/t-multilib: Regenerate.
44616 * doc/avr-mmcu.texi: Regenerate.
44618 2014-03-03 Tobias Grosser <tobias@grosser.es>
44619 Mircea Namolaru <mircea.namolaru@inria.fr>
44621 PR tree-optimization/58028
44622 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
44625 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
44627 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
44628 not handled by recognizers.
44630 2014-03-03 Jakub Jelinek <jakub@redhat.com>
44632 PR middle-end/60175
44633 * function.c (expand_function_end): Don't emit
44634 clobber_return_register sequence if clobber_after is a BARRIER.
44635 * cfgexpand.c (construct_exit_block): Append instructions before
44636 return_label to prev_bb.
44638 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44640 * config/rs6000/constraints.md: Document reserved use of "wc".
44642 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44645 * ipa.c (function_and_variable_visibility): When dissolving comdat
44646 group, also set all symbols to local.
44648 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44653 2013-12-14 Jan Hubicka <jh@suse.cz>
44654 PR middle-end/58477
44655 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
44657 2014-03-02 Jon Beniston <jon@beniston.com>
44663 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
44664 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
44665 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
44666 (simple_return, *simple_return): New patterns
44667 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
44668 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
44670 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
44672 * dwarf2out.c (gen_subprogram_die): Tidy.
44674 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
44677 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
44678 (*mov_t_msb_neg_negc): ... this new insn.
44680 2014-02-28 Jason Merrill <jason@redhat.com>
44683 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
44686 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
44689 * dwarf2out.c (decltype_auto_die): New static.
44690 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
44691 (gen_type_die_with_usage): Handle 'decltype(auto)'.
44692 (is_cxx_auto): Likewise.
44694 2014-02-28 Ian Bolton <ian.bolton@arm.com>
44696 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
44697 we are not using general regs only.
44699 2014-02-28 Richard Biener <rguenther@suse.de>
44702 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
44703 previous fix and only allow to remove trivial pre-headers
44704 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
44705 (remove_forwarder_block): Properly update the latch of a loop.
44707 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44710 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
44711 (cselib_preserved_hash_table): New.
44712 (preserve_constants_and_equivs): Move preserved vals to it.
44713 (cselib_find_slot): Look it up first.
44714 (cselib_init): Initialize it.
44715 (cselib_finish): Release it.
44716 (dump_cselib_table): Dump it.
44718 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44721 * cselib.c (remove_useless_values): Skip to avoid quadratic
44722 behavior if the condition moved from...
44723 (cselib_process_insn): ... here holds.
44725 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44728 * var-tracking.c (vt_initialize): Apply the same condition to
44729 preserve the CFA base value.
44731 2014-02-28 Joey Ye <joey.ye@arm.com>
44734 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
44735 if reload in progress or completed.
44737 2014-02-28 Tobias Burnus <burnus@net-b.de>
44739 PR middle-end/60147
44740 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
44743 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
44745 * doc/tm.texi.in (Condition Code Status): Update documention for
44746 relative locations of cc0-setter and cc0-user.
44748 2014-02-27 Jeff Law <law@redhat.com>
44750 PR rtl-optimization/52714
44751 * combine.c (try_combine): When splitting an unrecognized PARALLEL
44752 into two independent simple sets, if I3 is a jump, ensure the
44753 pattern we place into I3 is a (set (pc) ...).
44755 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
44756 Jeff Law <law@redhat.com>
44758 PR rtl-optimization/49847
44759 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
44760 are in different blocks.
44761 * doc/tm.texi (Condition Code Status): Update documention for
44762 relative locations of cc0-setter and cc0-user.
44764 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
44767 * lra.c (lra_emit_add): Check SUBREG too.
44769 2014-02-27 Andreas Schwab <schwab@suse.de>
44771 * config/m68k/m68k.c (m68k_option_override): Disable
44772 -flive-range-shrinkage for classic m68k.
44773 (m68k_override_options_after_change): Likewise.
44775 2014-02-27 Marek Polacek <polacek@redhat.com>
44777 PR middle-end/59223
44778 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
44779 -Wmaybe-uninitialized.
44781 2014-02-27 Alan Modra <amodra@gmail.com>
44784 * reload1.c (emit_input_reload_insns): When reload_override_in,
44785 set old to rl->in_reg when rl->in_reg is a subreg.
44787 2014-02-26 Richard Biener <rguenther@suse.de>
44790 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
44792 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44794 * common/config/i386/predicates.md (const1256_operand): Remove.
44795 (const2356_operand): New.
44796 (const_1_to_2_operand): Remove.
44797 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44798 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44799 (*avx512pf_gatherpf<mode>sf): Ditto.
44800 (avx512pf_gatherpf<mode>df): Ditto.
44801 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44802 (*avx512pf_gatherpf<mode>df): Ditto.
44803 (avx512pf_scatterpf<mode>sf): Ditto.
44804 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44805 (*avx512pf_scatterpf<mode>sf): Ditto.
44806 (avx512pf_scatterpf<mode>df): Ditto.
44807 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44808 (*avx512pf_scatterpf<mode>df): Ditto.
44809 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
44811 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
44813 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
44814 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
44815 (_mm512_mask_testn_epi64_mask): Move to ...
44816 * config/i386/avx512cdintrin.h: Here.
44817 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
44818 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
44819 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
44820 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
44821 TARGET_AVX512F from TARGET_AVX512CD.
44823 2014-02-26 Richard Biener <rguenther@suse.de>
44826 * ipa.c (walk_polymorphic_call_targets): Properly guard
44827 call to inline_update_overall_summary.
44829 2014-02-26 Bin Cheng <bin.cheng@arm.com>
44832 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
44833 and latches only if requested. Fix latch if it is removed.
44834 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
44835 LOOPS_HAVE_PREHEADERS.
44837 2014-02-25 Andrew Pinski <apinski@cavium.com>
44839 * builtins.c (expand_builtin_thread_pointer): Create a new target
44840 when the target is NULL.
44842 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
44844 PR rtl-optimization/60317
44845 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44846 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44847 * lra-assigns.c: Include params.h.
44848 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
44849 other reload pseudos considerations.
44851 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44853 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
44854 to use canonical form for nor<mode>3.
44856 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44859 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
44862 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44864 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
44865 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
44866 (ix86_handle_option): Handle OPT_mprefetchwt1.
44867 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
44868 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
44870 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
44871 OPTION_MASK_ISA_PREFETCHWT1.
44872 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
44873 (PTA_PREFETCHWT1): New.
44874 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
44875 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
44876 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
44877 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
44878 (*prefetch_avx512pf_<mode>_: Change into ...
44879 (*prefetch_prefetchwt1_<mode>: This.
44880 * config/i386/i386.opt (mprefetchwt1): New.
44881 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
44882 (_mm_prefetch): Handle intent to write.
44883 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
44885 2014-02-25 Richard Biener <rguenther@suse.de>
44887 PR middle-end/60291
44888 * emit-rtl.c (mem_attrs_htab): Remove.
44889 (mem_attrs_htab_hash): Likewise.
44890 (mem_attrs_htab_eq): Likewise.
44891 (set_mem_attrs): Always allocate new mem-attrs when something changed.
44892 (init_emit_once): Do not allocate mem_attrs_htab.
44894 2014-02-25 Richard Biener <rguenther@suse.de>
44897 * lto-opts.c (lto_write_options): Output non-explicit conservative
44898 -fwrapv, -fno-trapv and -fno-strict-overflow.
44899 * lto-wrapper.c (merge_and_complain): Handle merging those options.
44900 (run_gcc): And pass them through.
44902 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44904 * sel-sched.c (calculate_new_fences): New parameter ptime.
44905 Calculate it as a maximum over all fence cycles.
44906 (sel_sched_region_2): Adjust the call to calculate_new_fences.
44907 Print the final schedule timing when sched_verbose.
44909 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44911 PR rtl-optimization/60292
44912 * sel-sched.c (fill_vec_av_set): Do not reset target availability
44913 bit fot the fence instruction.
44915 2014-02-24 Alangi Derick <alangiderick@gmail.com>
44917 * calls.h: Fix typo in comment.
44919 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
44921 * config/pa/pa.c (pa_output_move_double): Don't valididate when
44922 adjusting offsetable addresses.
44924 2014-02-24 Guozhi Wei <carrot@google.com>
44926 * sparseset.h (sparseset_pop): Fix the wrong index.
44928 2014-02-24 Walter Lee <walt@tilera.com>
44930 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
44931 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
44933 * common/config/tilegx/tilegx-common.c
44934 (TARGET_DEFAULT_TARGET_FLAGS): Define.
44935 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
44936 (LINK_SPEC): Ditto.
44937 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
44938 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
44939 (tilegx_gimplify_va_arg_expr): Handle big endian.
44940 (tilegx_expand_unaligned_load): Ditto.
44941 (tilegx_expand_unaligned_store): Ditto.
44942 (TARGET_RETURN_IN_MSB): New.
44943 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
44944 (TARGET_ENDIAN_DEFAULT): New.
44945 (TARGET_BIG_ENDIAN): Handle big endian.
44946 (BYTES_BIG_ENDIAN): Ditto.
44947 (WORDS_BIG_ENDIAN): Ditto.
44948 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
44949 (ENDIAN_SPEC): New.
44950 (EXTRA_SPECS): New.
44951 * config/tilegx/tilegx.md (extv): Handle big endian.
44953 (insn_st<n>): Ditto.
44954 (insn_st<n>_add<bitsuffix>): Ditto.
44955 (insn_stnt<n>): Ditto.
44956 (insn_stnt<n>_add<bitsuffix>):Ditto.
44957 (vec_interleave_highv8qi): Handle big endian.
44958 (vec_interleave_highv8qi_be): New.
44959 (vec_interleave_highv8qi_le): New.
44960 (insn_v1int_h): Handle big endian.
44961 (vec_interleave_lowv8qi): Handle big endian.
44962 (vec_interleave_lowv8qi_be): New.
44963 (vec_interleave_lowv8qi_le): New.
44964 (insn_v1int_l): Handle big endian.
44965 (vec_interleave_highv4hi): Handle big endian.
44966 (vec_interleave_highv4hi_be): New.
44967 (vec_interleave_highv4hi_le): New.
44968 (insn_v2int_h): Handle big endian.
44969 (vec_interleave_lowv4hi): Handle big endian.
44970 (vec_interleave_lowv4hi_be): New.
44971 (vec_interleave_lowv4hi_le): New.
44972 (insn_v2int_l): Handle big endian.
44973 (vec_interleave_highv2si): Handle big endian.
44974 (vec_interleave_highv2si_be): New.
44975 (vec_interleave_highv2si_le): New.
44976 (insn_v4int_h): Handle big endian.
44977 (vec_interleave_lowv2si): Handle big endian.
44978 (vec_interleave_lowv2si_be): New.
44979 (vec_interleave_lowv2si_le): New.
44980 (insn_v4int_l): Handle big endian.
44981 * config/tilegx/tilegx.opt (mbig-endian): New option.
44982 (mlittle-endian): New option.
44983 * doc/install.texi: Document tilegxbe-linux.
44984 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
44986 2014-02-24 Martin Jambor <mjambor@suse.cz>
44989 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
44990 there are no parameter descriptors.
44992 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
44994 PR rtl-optimization/60268
44995 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
44996 initialization to ...
44997 (sched_rgn_init): ... here.
44998 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
45000 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45002 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
45005 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
45007 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
45010 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45012 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
45013 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
45015 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45017 * config/microblaze/predicates.md: Add cmp_op predicate.
45018 * config/microblaze/microblaze.md: Add branch_compare instruction
45019 which uses cmp_op predicate and emits cmp insn before branch.
45020 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
45021 to microblaze_expand_conditional_branch and consolidate logic.
45022 (microblaze_expand_conditional_branch): emit branch_compare
45023 insn instead of handling cmp op separate from branch insn.
45025 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45027 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
45030 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45032 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
45033 define_insn with define_expand and new define_insn
45034 *altivec_lve<VI_char>x_internal.
45035 (altivec_stve<VI_char>x): Replace define_insn with define_expand
45036 and new define_insn *altivec_stve<VI_char>x_internal.
45037 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
45039 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
45041 (altivec_expand_stvex_be): New function.
45043 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
45045 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
45046 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
45047 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
45048 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
45050 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
45053 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
45054 instead of emit_move_insn.
45056 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45058 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
45059 vspltw with vsldoi.
45060 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
45061 gen_altivec_vsumsws.
45063 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45065 * config/rs6000/altivec.md (altivec_lvxl): Rename as
45066 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
45067 (altivec_lvxl_<mode>): New define_expand incorporating
45068 -maltivec=be semantics where needed.
45069 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
45070 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
45071 semantics where needed.
45072 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
45073 (altivec_stvx_<mode>): New define_expand incorporating
45074 -maltivec=be semantics where needed.
45075 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
45076 VM2 iterator instead of V4SI.
45077 (altivec_stvxl_<mode>): New define_expand incorporating
45078 -maltivec=be semantics where needed.
45079 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
45080 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
45081 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
45082 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
45083 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
45084 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
45085 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
45086 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
45087 ALTIVEC_BUILTIN_STVXL.
45088 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
45089 (altivec_expand_stvx_be): Likewise.
45090 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
45091 (altivec_expand_lvx_be): Likewise.
45092 (altivec_expand_stvx_be): Likewise.
45093 (altivec_expand_builtin): Add cases for
45094 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
45095 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
45096 (altivec_init_builtins): Add definitions for
45097 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
45098 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
45100 2014-02-21 Catherine Moore <clm@codesourcery.com>
45102 * doc/invoke.texi (mvirt, mno-virt): Document.
45103 * config/mips/mips.opt (mvirt): New option.
45104 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
45106 2014-02-21 Richard Biener <rguenther@suse.de>
45108 PR tree-optimization/60276
45109 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
45110 (STMT_VINFO_MIN_NEG_DIST): New macro.
45111 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
45112 STMT_VINFO_MIN_NEG_DIST.
45113 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
45114 made for negative dependence distances still hold.
45116 2014-02-21 Richard Biener <rguenther@suse.de>
45118 PR middle-end/60291
45119 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
45120 DECL_INITIAL for globals not in the current function context.
45122 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45124 PR tree-optimization/56490
45125 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
45126 * tree-ssa-uninit.c: Include params.h.
45127 (compute_control_dep_chain): Add num_calls argument, return false
45128 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
45129 num_calls to recursive call.
45130 (find_predicates): Change dep_chain into normal array,
45131 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
45132 variable and adjust compute_control_dep_chain caller.
45133 (find_def_preds): Likewise.
45135 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
45137 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
45138 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
45140 2014-02-21 Nick Clifton <nickc@redhat.com>
45142 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
45143 (pushhi1): Likewise.
45144 (popqi1): Add mode to pre_dec.
45145 (pophi1): Likewise.
45147 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45149 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
45150 mode for mask of V8SFmode permutation.
45152 2014-02-20 Richard Henderson <rth@redhat.com>
45155 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
45156 a new pseudo for OLDVAL.
45158 2014-02-20 Jakub Jelinek <jakub@redhat.com>
45161 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
45162 gen_reg_rtx if d->testing_p.
45163 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
45164 if d->testing_p and we will certainly return true.
45165 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
45168 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
45170 * emit-rtl.c (gen_reg_rtx): Assert that
45171 crtl->emit.regno_pointer_align_length is non-zero.
45173 2014-02-20 Richard Henderson <rth@redhat.com>
45176 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
45177 on failure the store back into EXPECT.
45179 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
45180 Sandra Loosemore <sandra@codesourcery.com>
45182 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
45183 * config/nios2/nios2.c (nios2_function_profiler): Add
45184 -fPIC (flag_pic == 2) support.
45185 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
45186 (nios2_large_offset_p): New function.
45187 (nios2_unspec_reloc_p): Move up position, update to use
45188 nios2_large_offset_p.
45189 (nios2_unspec_address): Remove function.
45190 (nios2_unspec_offset): New function.
45191 (nios2_large_got_address): New function.
45192 (nios2_got_address): Add large offset support.
45193 (nios2_legitimize_tls_address): Update usage of removed and new
45195 (nios2_symbol_binds_local_p): New function.
45196 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
45197 (nios2_legitimize_address): Update to use nios2_large_offset_p.
45198 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
45199 (nios2_print_operand): Merge H/L processing, add hiadj/lo
45200 processing for (const (unspec ...)).
45201 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
45203 2014-02-20 Richard Biener <rguenther@suse.de>
45205 * tree-cfg.c (replace_uses_by): Mark altered BBs before
45206 doing the substitution.
45207 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
45209 2014-02-20 Martin Jambor <mjambor@suse.cz>
45212 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
45213 info when checking whether lattices are bottom.
45215 2014-02-20 Richard Biener <rguenther@suse.de>
45217 PR middle-end/60221
45218 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
45221 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
45224 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
45225 parameter specifying the scaling.
45226 (inline_call): Update.
45227 (want_inline_recursively): Guard division by zero.
45228 (recursive_inlining): Update.
45229 * ipa-inline.h (clone_inlined_nodes): Update.
45231 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45234 * config/i386/i386.c (classify_argument): Pass structures of size
45235 64 bytes or less in register.
45237 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45238 Kirill Yukhin <kirill.yukhin@intel.com>
45240 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
45241 (_mm_rcp28_round_ss): Ditto.
45242 (_mm_rsqrt28_round_sd): Ditto.
45243 (_mm_rsqrt28_round_ss): Ditto.
45244 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
45245 (_mm_rcp14_round_ss): Ditto.
45246 (_mm_rsqrt14_round_sd): Ditto.
45247 (_mm_rsqrt14_round_ss): Ditto.
45248 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
45249 the first input operand, get rid of match_dup.
45250 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
45252 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45254 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
45255 operand as the first input operand, set type attribute.
45256 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45257 Set type attribute.
45258 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
45259 operand as the first input operand, set type attribute.
45261 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45263 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
45266 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
45269 * config/i386/i386.c (construct_container): Remove TFmode check
45270 for X86_64_INTEGER_CLASS.
45272 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
45275 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
45276 only when -Wpsabi is enabled.
45278 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
45281 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
45282 passing arrays in registers are the same as for structs, so remove the
45283 special case for them.
45285 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
45287 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
45288 destination type, extract only the valid bits if the source type is not
45289 integral and has a different mode.
45291 2014-02-19 Richard Biener <rguenther@suse.de>
45294 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
45297 2014-02-19 Richard Biener <rguenther@suse.de>
45300 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
45301 (ipa_modify_call_arguments): Emit an argument load explicitely and
45302 preserve virtual SSA form there and for the replacement call.
45303 Do not update SSA form nor free dominance info.
45305 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45307 * ipa.c (function_and_variable_visibility): Also clear WEAK
45308 flag when disolving COMDAT_GROUP.
45310 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45312 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
45313 * ipa-prop.c (ipa_set_jf_known_type): Return early when
45314 not devirtualizing.
45315 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
45316 do more sanity checks.
45317 (detect_type_change): Return true when giving up early.
45318 (compute_complex_assign_jump_func): Fix type parameter of
45319 ipa_set_ancestor_jf.
45320 (compute_complex_ancestor_jump_func): Likewise.
45321 (update_jump_functions_after_inlining): Fix updating of
45323 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
45325 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45327 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
45328 inline clones when edge disappears.
45330 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
45333 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
45334 Split 64-bit moves into 2 patterns. Do not allow the use of
45335 direct move for TDmode in little endian, since the decimal value
45336 has little endian bytes within a word, but the 64-bit pieces are
45337 ordered in a big endian fashion, and normal subreg's of TDmode are
45339 (mov<mode>_64bit_dm): Likewise.
45340 (movtd_64bit_nodm): Likewise.
45342 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45344 PR tree-optimization/60174
45345 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
45346 statement of an SSA_NAME that occurs in an abnormal PHI node.
45348 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45351 * final.c (SEEN_BB): Remove.
45352 (SEEN_NOTE, SEEN_EMITTED): Renumber.
45353 (final_scan_insn): Don't force_source_line on second
45354 NOTE_INSN_BASIC_BLOCK.
45356 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
45359 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
45360 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
45361 (type_natural_mode): Warn ABI change when %zmm register is not
45362 available for AVX512F vector value passing.
45364 2014-02-18 Kai Tietz <ktietz@redhat.com>
45367 * config/i386/i386.c (ix86_expand_prologue): Use value in
45368 rax register as displacement when restoring %r10 or %rax.
45369 Fix wrong offset when restoring both registers.
45371 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45373 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
45374 assertion with conditional return.
45376 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45377 Uros Bizjak <ubizjak@gmail.com>
45380 * config/i386/driver-i386.c (host_detect_local_cpu): If
45381 YMM state is not saved by the OS, also clear has_f16c. Move
45382 CPUID 0x80000001 handling before YMM state saving checking.
45384 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
45386 PR rtl-optimization/58960
45387 * haifa-sched.c (alloc_global_sched_pressure_data): New,
45388 factored out from ...
45389 (sched_init): ... here.
45390 (free_global_sched_pressure_data): New, factored out from ...
45391 (sched_finish): ... here.
45392 * sched-int.h (free_global_sched_pressure_data): Declare.
45393 * sched-rgn.c (nr_regions_initial): New static global.
45394 (haifa_find_rgns): Initialize it.
45395 (schedule_region): Disable sched-pressure for the newly
45398 2014-02-17 Richard Biener <rguenther@suse.de>
45400 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
45401 release SSA defs of pattern stmts.
45403 2014-02-17 Richard Biener <rguenther@suse.de>
45405 * tree-inline.c (expand_call_inline): Release the virtual
45406 operand defined by the call we are about to inline.
45408 2014-02-17 Richard Biener <rguenther@suse.de>
45410 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
45412 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
45413 Ilya Tocar <ilya.tocar@intel.com>
45415 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
45416 arguments order in builtin.
45417 (_mm512_permutexvar_epi64): Ditto.
45418 (_mm512_mask_permutexvar_epi64): Ditto
45419 (_mm512_maskz_permutexvar_epi32): Ditto
45420 (_mm512_permutexvar_epi32): Ditto
45421 (_mm512_mask_permutexvar_epi32): Ditto
45423 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45425 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
45426 (p8_vmrgow): Likewise.
45428 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45430 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
45433 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
45436 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
45437 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
45438 into 64-bit and 32-bit moves. On 64-bit moves, add support for
45439 using direct move instructions on ISA 2.07. Also adjust
45440 instruction length for 64-bit.
45441 (mov<mode>_64bit, TFmode/TDmode): Likewise.
45442 (mov<mode>_32bit, TFmode/TDmode): Likewise.
45444 2014-02-15 Alan Modra <amodra@gmail.com>
45448 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
45449 find_replacement on parts of insn rtl that might be reloaded.
45451 2014-02-15 Richard Biener <rguenther@suse.de>
45453 PR tree-optimization/60183
45454 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
45455 (tree_ssa_phiprop): Calculate and free post-dominators.
45457 2014-02-14 Jeff Law <law@redhat.com>
45459 PR rtl-optimization/60131
45460 * ree.c (get_extended_src_reg): New function.
45461 (combine_reaching_defs): Use it rather than assuming location of REG.
45462 (find_and_remove_re): Verify first operand of extension is
45463 a REG before adding the insns to the copy list.
45465 2014-02-14 Roland McGrath <mcgrathr@google.com>
45467 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
45468 * configure: Regenerated.
45469 * config.in: Regenerated.
45470 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
45471 instead of ASM_SHORT.
45473 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
45474 Richard Earnshaw <rearnsha@arm.com>
45476 PR rtl-optimization/59535
45477 * lra-constraints.c (process_alt_operands): Encourage alternative
45478 when unassigned pseudo class is superset of the alternative class.
45479 (inherit_reload_reg): Don't inherit when optimizing for code size.
45480 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
45481 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
45482 modes not less than 4 for Thumb1.
45484 2014-02-14 Kyle McMartin <kyle@redhat.com>
45487 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
45489 2014-02-14 Richard Biener <rguenther@suse.de>
45491 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
45492 (get_frame_arg): Drop the assert with langhook types_compatible_p.
45493 Do not strip INDIRECT_REFs.
45495 2014-02-14 Richard Biener <rguenther@suse.de>
45498 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
45499 DECL_FUNCTION_SPECIFIC_TARGET.
45500 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
45501 * tree-streamer-out.c (pack_ts_target_option): Remove.
45502 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
45503 (write_ts_function_decl_tree_pointers): Do not stream
45504 DECL_FUNCTION_SPECIFIC_TARGET.
45505 * tree-streamer-in.c (unpack_ts_target_option): Remove.
45506 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
45507 (lto_input_ts_function_decl_tree_pointers): Do not stream
45508 DECL_FUNCTION_SPECIFIC_TARGET.
45510 2014-02-14 Jakub Jelinek <jakub@redhat.com>
45512 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
45513 (get_initial_def_for_induction, vectorizable_induction): Ignore
45514 debug stmts when looking for exit_phi.
45515 (vectorizable_live_operation): Fix up condition.
45517 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45519 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
45520 nreverse() because it changes the content of original tree list.
45522 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45524 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
45525 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
45527 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45529 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
45530 GNU coding standards.
45532 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45535 * dwarf2out.c (gen_subprogram_die): Don't call
45536 add_calling_convention_attribute if subr_die is old_die.
45538 2014-02-13 Sharad Singhai <singhai@google.com>
45540 * doc/optinfo.texi: Fix order of nodes.
45542 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
45544 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
45545 operands[2], not operands[3].
45547 2014-02-13 Richard Biener <rguenther@suse.de>
45550 * doc/install.texi (ISL): Update recommended version to 0.12.2,
45551 mention the possibility of an in-tree build.
45552 (CLooG): Update recommended version to 0.18.1, mention the
45553 possibility of an in-tree build and clarify that the ISL
45554 bundled with CLooG does not work.
45556 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45559 * expr.c (compress_float_constant): If x is a hard register,
45560 extend into a pseudo and then move to x.
45562 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
45564 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
45565 caused by bad second argument to warning_at() with -mhotpatch and
45566 nested functions (e.g. with gfortran).
45568 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
45570 * opts.c (option_name): Remove "enabled by default" rider.
45572 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
45574 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
45576 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
45577 Uros Bizjak <ubizjak@gmail.com>
45580 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
45581 * configure: Regenerated.
45583 2014-02-12 Richard Biener <rguenther@suse.de>
45585 * vec.c (vec_prefix::calculate_allocation): Move as
45586 inline variant to vec.h.
45587 (vec_prefix::calculate_allocation_1): New out-of-line version.
45588 * vec.h (vec_prefix::calculate_allocation_1): Declare.
45589 (vec_prefix::m_has_auto_buf): Rename to ...
45590 (vec_prefix::m_using_auto_storage): ... this.
45591 (vec_prefix::calculate_allocation): Inline the easy cases
45592 and dispatch to calculate_allocation_1 which doesn't need the
45594 (va_heap::reserve): Use gcc_checking_assert.
45595 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
45596 m_using_auto_storage.
45597 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
45599 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
45600 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
45601 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
45603 2014-02-12 Richard Biener <rguenther@suse.de>
45605 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
45606 when we found a dependence.
45608 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
45610 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
45612 (maybe_fold_stmt): ... into this new function.
45613 * omp-low.c (lower_omp): Update comment.
45615 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
45618 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
45621 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
45623 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
45624 identifiers in comments.
45625 (cortexa53_extra_costs): Likewise.
45626 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
45627 (cortexa7_extra_costs): Likewise.
45628 (cortexa12_extra_costs): Likewise.
45629 (cortexa15_extra_costs): Likewise.
45630 (v7m_extra_costs): Likewise.
45632 2014-02-12 Richard Biener <rguenther@suse.de>
45634 PR middle-end/60092
45635 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
45636 of posix_memalign being successful.
45637 (lower_stmt): Restrict lowering of posix_memalign to when
45638 -ftree-bit-ccp is enabled.
45640 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45642 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
45644 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
45646 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
45648 PR rtl-optimization/60116
45649 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
45650 other_insn once the combination has been validated.
45652 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
45655 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
45657 * ipa-devirt.c: Include demangle.h
45658 (odr_violation_reported): New static variable.
45659 (add_type_duplicate): Update odr_violations.
45660 (maybe_record_node): Add completep parameter; update it.
45661 (record_target_from_binfo): Add COMPLETEP parameter;
45662 update it as needed.
45663 (possible_polymorphic_call_targets_1): Likewise.
45664 (struct polymorphic_call_target_d): Add nonconstruction_targets;
45665 rename FINAL to COMPLETE.
45666 (record_targets_from_bases): Sanity check we found the binfo;
45667 fix COMPLETEP updating.
45668 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
45669 parameter, fix computing of COMPLETEP.
45670 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
45671 at LTO time do demangling.
45672 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
45673 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
45675 (gimple_get_virt_method_for_binfo): Likewise.
45676 * gimple-fold.h (gimple_get_virt_method_for_binfo,
45677 gimple_get_virt_method_for_vtable): Update prototypes.
45679 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
45682 * genautomata.c (add_presence_absence): Fix typo with
45683 {final_}presence_list.
45685 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
45688 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
45689 for VSX/Altivec vectors that land in GPR registers.
45691 2014-02-11 Richard Henderson <rth@redhat.com>
45692 Jakub Jelinek <jakub@redhat.com>
45695 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
45696 around drhs if type conversion to lacc->type is not useless.
45698 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45700 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
45702 (cortex-a57.cortex-a53): Likewise.
45703 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
45705 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45707 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
45710 2014-02-11 Renlin Li <Renlin.Li@arm.com>
45712 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
45713 add_options_for_arm_vfp3.
45715 2014-02-11 Jeff Law <law@redhat.com>
45717 PR middle-end/54041
45718 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
45719 object with an undesirable mode.
45721 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45724 * config/i386/sol2-9.h: New file.
45725 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
45726 *-*-solaris2.9*): Use it.
45728 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45730 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
45731 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
45733 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45735 * config/microblaze/microblaze.c: Extend mcpu version format
45737 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
45739 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
45741 2014-02-10 Richard Henderson <rth@redhat.com>
45744 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
45745 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
45746 ms-abi vs -mno-accumulate-outgoing-args.
45747 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
45748 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
45751 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
45753 PR middle-end/60080
45754 * cfgexpand.c (expand_asm_operands): Attach source location to
45755 ASM_INPUT rtx objects.
45756 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
45758 2014-02-10 Nick Clifton <nickc@redhat.com>
45760 * config/mn10300/mn10300.c (popcount): New function.
45761 (mn10300_expand_prologue): Include saved registers in stack usage
45764 2014-02-10 Jeff Law <law@redhat.com>
45766 PR middle-end/52306
45767 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
45768 when changing the SET_DEST of a prior insn to avoid an input reload.
45770 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45772 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
45773 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
45774 -mcall-openbsd, or -mcall-linux.
45775 (CC1_ENDIAN_BIG_SPEC): Remove.
45776 (CC1_ENDIAN_LITTLE_SPEC): Remove.
45777 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45778 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
45779 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
45780 and %cc1_endian_default.
45781 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45783 2014-02-10 Richard Biener <rguenther@suse.de>
45785 PR tree-optimization/60115
45786 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
45787 MEM_REF handling. Properly verify that the accesses are not
45788 out of the objects bound.
45790 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45792 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
45795 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
45797 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
45798 proper constants and fix formatting.
45799 (possible_polymorphic_call_targets): Fix formatting.
45801 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
45802 Ilya Tocar <ilya.tocar@intel.com>
45804 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
45805 (_mm512_loadu_epi32): Renamed into...
45806 (_mm512_loadu_si512): This.
45807 (_mm512_storeu_epi32): Renamed into...
45808 (_mm512_storeu_si512): This.
45809 (_mm512_maskz_ceil_ps): Removed.
45810 (_mm512_maskz_ceil_pd): Ditto.
45811 (_mm512_maskz_floor_ps): Ditto.
45812 (_mm512_maskz_floor_pd): Ditto.
45813 (_mm512_floor_round_ps): Ditto.
45814 (_mm512_floor_round_pd): Ditto.
45815 (_mm512_ceil_round_ps): Ditto.
45816 (_mm512_ceil_round_pd): Ditto.
45817 (_mm512_mask_floor_round_ps): Ditto.
45818 (_mm512_mask_floor_round_pd): Ditto.
45819 (_mm512_mask_ceil_round_ps): Ditto.
45820 (_mm512_mask_ceil_round_pd): Ditto.
45821 (_mm512_maskz_floor_round_ps): Ditto.
45822 (_mm512_maskz_floor_round_pd): Ditto.
45823 (_mm512_maskz_ceil_round_ps): Ditto.
45824 (_mm512_maskz_ceil_round_pd): Ditto.
45825 (_mm512_expand_pd): Ditto.
45826 (_mm512_expand_ps): Ditto.
45827 * config/i386/i386.c (ix86_builtins): Remove
45828 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
45829 (bdesc_args): Ditto.
45830 * config/i386/predicates.md (const1256_operand): New.
45831 (const_1_to_2_operand): Ditto.
45832 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
45833 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45834 (*avx512pf_gatherpf<mode>sf): Ditto.
45835 (avx512pf_gatherpf<mode>df): Ditto.
45836 (*avx512pf_gatherpf<mode>df_mask): Ditto.
45837 (*avx512pf_gatherpf<mode>df): Ditto.
45838 (avx512pf_scatterpf<mode>sf): Ditto.
45839 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45840 (*avx512pf_scatterpf<mode>sf): Ditto.
45841 (avx512pf_scatterpf<mode>df): Ditto.
45842 (*avx512pf_scatterpf<mode>df_mask): Ditto.
45843 (*avx512pf_scatterpf<mode>df): Ditto.
45844 (avx512f_expand<mode>): Removed.
45845 (<shift_insn><mode>3<mask_name>): Change predicate type.
45847 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45849 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
45850 not at the end of datarefs vector use ordered_remove to avoid
45851 reordering datarefs vector.
45854 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
45855 mark local addressable non-static vars as GOVD_PRIVATE
45856 instead of GOVD_LOCAL.
45857 * omp-low.c (lower_omp_for): Move gimple_bind_vars
45858 and BLOCK_VARS of gimple_bind_block to new_stmt rather
45861 PR middle-end/60092
45862 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
45863 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
45864 assume_aligned or alloc_align attributes.
45865 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
45866 arguments. Handle also assume_aligned and alloc_align attributes.
45867 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
45868 calls to functions with assume_aligned or alloc_align attributes.
45869 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
45871 2014-02-08 Terry Guo <terry.guo@arm.com>
45873 * doc/invoke.texi: Document ARM -march=armv7e-m.
45875 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45877 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
45878 flag on __cilkrts_rethrow builtin.
45881 * ipa-cp.c (determine_versionability): Fail at -O0
45882 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
45883 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
45886 2014-02-04 Jakub Jelinek <jakub@redhat.com>
45889 * tree-inline.c (copy_forbidden): Fail for
45890 __attribute__((optimize (0))) functions.
45892 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45894 * varpool.c: Include pointer-set.h.
45895 (varpool_remove_unreferenced_decls): Variables in other partitions
45896 will not be output; be however careful to not lose information
45897 about partitioning.
45899 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45901 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
45902 lookup in the vtable constructor.
45904 2014-02-07 Jeff Law <law@redhat.com>
45907 * config/m68k/m68k.md (ashldi_extsi): Turn into a
45908 define_insn_and_split.
45910 * ipa-inline.c (inline_small_functions): Fix typos.
45912 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45914 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
45915 (s390_can_use_return_insn): Declare.
45916 * config/s390/s390.h (EPILOGUE_USES): Define.
45917 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
45919 (s390_chunkify_start): Handle return JUMP_LABELs.
45920 (s390_early_mach): Emit a main_pool instruction on the entry edge.
45921 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
45922 (s390_can_use_return_insn): New functions.
45923 (s390_fix_long_loop_prediction): Handle conditional returns.
45924 (TARGET_SET_UP_BY_PROLOGUE): Define.
45925 * config/s390/s390.md (ANY_RETURN): New code iterator.
45926 (*creturn, *csimple_return, return, simple_return): New patterns.
45928 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45930 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
45931 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
45932 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
45933 REG_CFA_RESTORE list when deciding not to restore a register.
45935 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45937 * config/s390/s390.c: Include tree-pass.h and context.h.
45938 (s390_early_mach): New function, split out from...
45939 (s390_emit_prologue): ...here.
45940 (pass_data_s390_early_mach): New pass structure.
45941 (pass_s390_early_mach): New class.
45942 (s390_option_override): Create and register early_mach pass.
45943 Move to end of file.
45945 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45947 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
45948 to match for the exit block.
45950 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45952 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
45953 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
45954 Reject misaligned operands.
45956 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45958 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
45960 2014-02-07 Richard Biener <rguenther@suse.de>
45962 PR middle-end/60092
45963 * gimple-low.c (lower_builtin_posix_memalign): New function.
45964 (lower_stmt): Call it to lower posix_memalign in a way
45965 to make alignment info accessible.
45967 2014-02-07 Jakub Jelinek <jakub@redhat.com>
45970 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
45971 __builtin_setjmp_receiver.
45973 2014-02-07 Richard Biener <rguenther@suse.de>
45975 PR middle-end/60092
45976 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
45977 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
45978 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
45979 Handle BUILT_IN_POSIX_MEMALIGN.
45980 (find_func_clobbers): Likewise.
45981 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
45982 (call_may_clobber_ref_p_1): Likewise.
45984 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45987 * ipa-devirt.c (record_target_from_binfo): Remove overactive
45990 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45993 * lto-cgraph.c (lto_output_node): Use
45994 symtab_get_symbol_partitioning_class.
45995 (lto_output_varpool_node): likewise.
45996 (symtab_get_symbol_partitioning_class): Move here from
45997 lto/lto-partition.c
45998 * cgraph.h (symbol_partitioning_class): Likewise.
45999 (symtab_get_symbol_partitioning_class): Declare.
46001 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46003 * ggc.h (ggc_internal_cleared_alloc): New macro.
46004 * vec.h (vec_safe_copy): Handle memory stats.
46005 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
46006 * target-globals.c (save_target_globals): Likewise.
46008 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46011 * expr.c (emit_move_resolve_push): Export; be bit more selective
46012 on when to clear alias set.
46013 * expr.h (emit_move_resolve_push): Declare.
46014 * function.h (struct function): Add tail_call_marked.
46015 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
46016 * config/i386/i386-protos.h (ix86_expand_push): Remove.
46017 * config/i386/i386.md (TImode move expander): De not call
46019 (FP push expanders): Preserve memory attributes.
46020 * config/i386/sse.md (push<mode>1): Remove.
46021 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
46022 (ix86_expand_push): Remove.
46023 * config/i386/mmx.md (push<mode>1): Remove.
46025 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46027 PR rtl-optimization/60030
46028 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
46029 lopart with paradoxical subreg before shifting it up by hprec.
46031 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46033 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
46034 Remove extra newline at end of file.
46035 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
46036 (arm_issue_rate): Handle cortexa57.
46037 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
46038 (cortex-a57.cortex-a53): Likewise.
46040 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46043 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
46044 don't record in REG_FRAME_RELATED_EXPR registers not set in that
46046 (arm_expand_prologue): Adjust all callers.
46047 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
46048 info, registers also at the lowest numbered registers side. Use
46049 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
46053 * var-tracking.c (adjust_mems): Before adding a SET to
46054 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
46056 2014-02-06 Alan Modra <amodra@gmail.com>
46059 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
46060 change SDmode to DDmode when lra_in_progress.
46062 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46064 PR middle-end/59150
46065 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
46066 free_data_ref on the dr first, and before goto again also set dr
46067 to the next dr. For simd_lane_access, free old datarefs[i] before
46068 overwriting it. For get_vectype_for_scalar_type failure, don't
46069 free_data_ref if simd_lane_access.
46071 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
46074 * tree.h (opts_for_fn): New inline function.
46075 (opt_for_fn): Define.
46076 * config/i386/i386.c (ix86_function_regparm): Use
46077 opt_for_fn (decl, optimize) instead of optimize.
46079 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
46081 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
46082 for SYMBOL_REF in large memory model.
46084 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46086 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
46087 and crypto support.
46088 (cortex-a57): Likewise.
46089 (cortex-a57.cortex-a53): Likewise.
46091 2014-02-06 Yury Gribov <y.gribov@samsung.com>
46092 Kugan Vivekanandarajah <kuganv@linaro.org>
46094 * config/arm/arm.c (arm_vector_alignment_reachable): Check
46096 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
46098 2014-02-06 Richard Biener <rguenther@suse.de>
46100 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
46101 set_loop_copy and initialize_original_copy_tables.
46103 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
46105 * config/aarch64/aarch64-simd.md
46106 (aarch64_ashr_simddi): Change QI to SI.
46108 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46109 Jakub Jelinek <jakub@redhat.com>
46111 PR middle-end/60013
46112 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
46115 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46117 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
46118 CODE_FOR_altivec_vpku[hw]um to
46119 CODE_FOR_altivec_vpku[hw]um_direct.
46120 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
46121 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
46122 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
46123 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
46125 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46127 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
46128 generation for -maltivec=be.
46129 (altivec_vsumsws): Simplify redundant test.
46131 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46133 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
46134 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
46135 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
46136 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
46137 gen_altivec_vpkuwum.
46138 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
46140 (altivec_vpks<VI_char>ss): Likewise.
46141 (altivec_vpks<VI_char>us): Likewise.
46142 (altivec_vpku<VI_char>us): Likewise.
46143 (altivec_vpku<VI_char>um): Likewise.
46144 (altivec_vpku<VI_char>um_direct): New (copy of
46145 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
46147 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
46148 target is little endian and -maltivec=be is not specified.
46149 (*altivec_vupkhs<VU_char>_direct): New (copy of
46150 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
46151 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
46152 target is little endian and -maltivec=be is not specified.
46153 (*altivec_vupkls<VU_char>_direct): New (copy of
46154 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
46155 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
46156 little endian and -maltivec=be is not specified.
46157 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
46158 little endian and -maltivec=be is not specified.
46160 2014-02-05 Richard Henderson <rth@redhat.com>
46163 * combine-stack-adj.c: Revert r206943.
46164 * sched-int.h (struct deps_desc): Add last_args_size.
46165 * sched-deps.c (init_deps): Initialize it.
46166 (sched_analyze_insn): Add OUTPUT dependencies between insns that
46167 contain REG_ARGS_SIZE notes.
46169 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46171 * lto-cgraph.c (asm_nodes_output): Make global.
46172 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
46173 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
46174 (driver_handle_option): Handle OPT_fwpa.
46176 2014-02-05 Jakub Jelinek <jakub@redhat.com>
46179 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
46180 a comment typo and formatting issue. If odr_hash hasn't been
46181 created, return vNULL and set *completep to false.
46183 PR middle-end/57499
46184 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
46185 bb with no successors.
46187 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
46190 * doc/invoke.texi (-march): Clarify documentation for ARM.
46191 (-mtune): Likewise.
46194 2014-02-05 Richard Biener <rguenther@suse.de>
46196 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
46197 when not vectorizing because of too many alias checks.
46198 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
46199 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
46201 2014-02-05 Nick Clifton <nickc@redhat.com>
46203 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
46204 accept extended registers in any mode when compiling for the MN10300.
46206 2014-02-05 Yury Gribov <y.gribov@samsung.com>
46208 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
46209 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
46210 sanitization attributes.
46211 (can_inline_edge_p): Likewise.
46212 (sanitize_attrs_match_for_inline_p): New function.
46214 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46216 * ipa-prop.c (detect_type_change): Shor circuit testing of
46217 type changes on THIS pointer.
46219 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
46222 * config/pa/pa.c (legitimize_tls_address): Return original address
46223 if not passed a SYMBOL_REF rtx.
46224 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
46226 (pa_emit_move_sequence): Simplify TLS source operands.
46227 (pa_legitimate_constant_p): Reject all TLS constants.
46228 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
46229 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
46231 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46233 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
46234 groups when we know they are controlled by LTO.
46235 * varasm.c (default_binds_local_p_1): If object is in other partition,
46236 it will be resolved locally.
46238 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46240 * config/host-linux.c (linux_gt_pch_use_address): Don't
46241 use SSIZE_MAX because it is not always defined.
46243 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
46246 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
46247 threshold for pseudo splitting.
46248 (update_ebb_live_info): Process call argument hard registers and
46249 hard registers from insn definition too.
46250 (max_small_class_regs_num): New constant.
46251 (inherit_in_ebb): Update live hard regs through EBBs. Update
46252 reloads_num only for small register classes. Don't split for
46255 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
46258 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
46261 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46263 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
46264 visibility is safe.
46266 2014-02-04 Marek Polacek <polacek@redhat.com>
46268 * gdbinit.in (pel): Define.
46270 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46272 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
46275 2014-02-04 Richard Biener <rguenther@suse.de>
46278 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
46279 in function context local.
46280 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
46281 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
46282 similar to LTO_imported_decl_ref.
46284 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46286 PR tree-optimization/60002
46287 * cgraphclones.c (build_function_decl_skip_args): Clear
46288 DECL_LANG_SPECIFIC.
46290 PR tree-optimization/60023
46291 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
46292 false to gsi_replace.
46293 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
46294 has been in some EH region and vec_stmt could throw, add
46295 vec_stmt into the same EH region.
46296 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
46297 has no lhs, ignore it.
46298 * internal-fn.c (expand_MASK_LOAD): Likewise.
46301 * tree-inline.c (copy_forbidden): Fail for
46302 __attribute__((optimize (0))) functions.
46305 * omp-low.c (simd_clone_struct_copy): If from->inbranch
46306 is set, copy one less argument.
46307 (expand_simd_clones): Don't subtract clone_info->inbranch
46308 from simd_clone_struct_alloc argument.
46310 PR rtl-optimization/57915
46311 * recog.c (simplify_while_replacing): If all unary/binary/relational
46312 operation arguments are constant, attempt to simplify those.
46314 PR middle-end/59261
46315 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
46316 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
46318 2014-02-04 Richard Biener <rguenther@suse.de>
46320 PR tree-optimization/60012
46321 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
46322 TBAA disambiguation to all DDRs.
46324 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46327 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
46328 (LINK_SPEC): Use it for -shared, -shared-libgcc.
46330 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46333 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
46335 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46337 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
46338 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
46340 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46343 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
46344 to figure out targets of polymorphic calls with known decl.
46345 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46346 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
46347 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
46348 (get_polymorphic_call_info): ... here.
46349 (get_polymorphic_call_info_from_invariant): New function.
46351 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46353 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
46354 lookup via vtable pointer; check for type consistency
46355 and turn inconsitent facts into UNREACHABLE.
46356 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46357 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
46358 type inconsistent querries; return UNREACHABLE instead.
46360 2014-02-03 Richard Henderson <rth@twiddle.net>
46363 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
46364 already processed this node.
46365 (normalize_one_pred_1): Pass along mark_set.
46366 (normalize_one_pred): Create and destroy a pointer_set_t.
46367 (normalize_one_pred_chain): Likewise.
46369 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
46371 PR gcov-profile/58602
46372 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
46374 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46377 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
46378 -fno-devirtualize; try to devirtualize by the knowledge of
46379 virtual table pointer given by aggregate propagation.
46380 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46381 (ipa_print_node_jump_functions): Dump also offset that
46382 is relevant for polymorphic calls.
46383 (determine_known_aggregate_parts): Add arg_type parameter; use it
46384 instead of determining the type from pointer type.
46385 (ipa_compute_jump_functions_for_edge): Update call of
46386 determine_known_aggregate_parts.
46387 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
46388 (gimple_get_virt_method_for_binfo): ... here; simplify using
46389 vtable_pointer_value_to_vtable.
46390 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
46391 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
46392 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
46393 (vtable_pointer_value_to_vtable): Break out from ...; handle also
46395 (vtable_pointer_value_to_binfo): ... here.
46396 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
46398 2014-02-03 Teresa Johnson <tejohnson@google.com>
46400 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
46401 redef of outer loop index variable.
46403 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
46407 * doc/extend.texi (Function Attributes): Typo.
46409 2014-02-03 Cong Hou <congh@google.com>
46411 PR tree-optimization/60000
46412 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
46413 if the vectorized statement is a store. A store statement can only
46414 appear at the end of pattern statements.
46416 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46418 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
46419 (ix86_option_override_internal): Default long double to 64-bit for
46420 32-bit Bionic and to 128-bit for 64-bit Bionic.
46422 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
46423 TARGET_LONG_DOUBLE_128 is true.
46424 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
46426 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
46427 (mlong-double-64): Negate -mlong-double-128.
46428 (mlong-double-128): New option.
46430 * config/i386/i386-c.c (ix86_target_macros): Define
46431 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
46433 * doc/invoke.texi: Document -mlong-double-128.
46435 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46437 PR rtl-optimization/60024
46438 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
46440 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
46442 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
46444 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46446 PR rtl-optimization/57662
46447 * sel-sched.c (code_motion_path_driver): Do not mark already not
46448 existing blocks in the visiting bitmap.
46450 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46452 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
46453 on the insn being emitted.
46455 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
46456 Will Deacon <will.deacon@arm.com>
46458 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
46460 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46462 * config/arm/arm-tables.opt: Regenerate.
46464 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46466 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
46467 for vector types other than V16QImode.
46468 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
46469 define_expand, and call altivec_expand_vec_perm_le when producing
46470 code with little endian element order.
46471 (*altivec_vperm_<mode>_internal): New insn having previous
46472 behavior of altivec_vperm_<mode>.
46473 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
46474 altivec_expand_vec_perm_le when producing code with little endian
46476 (*altivec_vperm_<mode>_uns_internal): New insn having previous
46477 behavior of altivec_vperm_<mode>_uns.
46479 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46481 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
46482 (altivec_vsumsws): Add handling for -maltivec=be with a little
46484 (altivec_vsumsws_direct): New.
46485 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
46486 gen_altivec_vsumsws.
46488 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46490 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
46491 vtable_pointer_value_to_binfo): New functions.
46492 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
46493 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
46495 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
46497 * config/nios2/nios2.md (load_got_register): Initialize GOT
46498 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
46499 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
46501 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46503 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
46504 preserverd by passthrough, do not propagate the type.
46506 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46508 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
46509 (mips_atomic_assign_expand_fenv): New function.
46510 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
46512 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46514 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
46515 (__builtin_mips_set_fcsr): Likewise.
46516 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
46517 MIPS_USI_FTYPE_VOID.
46518 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
46519 (mips16_expand_set_fcsr): Likewise.
46520 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
46521 (mips16_set_fcsr_stub): Likewise.
46522 (mips16_get_fcsr_one_only_stub): New class.
46523 (mips16_set_fcsr_one_only_stub): Likewise.
46524 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
46525 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
46526 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
46527 (hard_float): New availability predicate.
46528 (mips_builtins): Add get_fcsr and set_fcsr.
46529 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
46530 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
46531 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
46532 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
46533 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
46536 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46538 * config/mips/mips.c (mips_one_only_stub): New class.
46539 (mips_need_mips16_rdhwr_p): Replace with...
46540 (mips16_rdhwr_stub): ...this new variable.
46541 (mips16_stub_call_address): New function.
46542 (mips16_rdhwr_one_only_stub): New class.
46543 (mips_expand_thread_pointer): Use mips16_stub_call_address.
46544 (mips_output_mips16_rdhwr): Delete.
46545 (mips_finish_stub): New function.
46546 (mips_code_end): Use it to handle rdhwr stubs.
46548 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
46551 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
46552 when calculating size of integer atomic types.
46554 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
46556 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
46558 2014-02-01 Jakub Jelinek <jakub@redhat.com>
46560 PR tree-optimization/60003
46561 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
46562 * profile.c (branch_prob): Use gimple_call_builtin_p
46563 to check for BUILT_IN_SETJMP_RECEIVER.
46564 * tree-inline.c (copy_bb): Call notice_special_calls.
46566 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
46569 * lra-constraints.c (process_alt_operands): Update reload_sum only
46572 2014-01-31 Richard Henderson <rth@redhat.com>
46574 PR middle-end/60004
46575 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
46576 until after else_eh is processed.
46578 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46580 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
46581 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
46582 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
46583 in smmintrin.h, remove them.
46584 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
46585 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
46586 * config/i386/i386.md (ROUND_SAE): Fix value.
46587 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
46588 (const48_operand): New.
46589 * config/i386/subst.md (round), (round_expand): Use
46590 const_4_or_8_to_11_operand.
46591 (round_saeonly), (round_saeonly_expand): Use const48_operand.
46593 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46595 * config/i386/constraints.md (Yk): Swap meaning with k.
46596 * config/i386/i386.md (movhi_internal): Change Yk to k.
46597 (movqi_internal): Ditto.
46598 (*k<logic><mode>): Ditto.
46601 (kandn<mode>): Ditto.
46602 (*<code>hi_1): Ditto.
46603 (*<code>qi_1): Ditto.
46604 (kxnor<mode>): Ditto.
46605 (kortestzhi): Ditto.
46606 (kortestchi): Ditto.
46608 (*one_cmplhi2_1): Ditto.
46609 (*one_cmplqi2_1): Ditto.
46610 * config/i386/sse.md (): Change k to Yk.
46611 (avx512f_load<mode>_mask): Ditto.
46612 (avx512f_blendm<mode>): Ditto.
46613 (avx512f_store<mode>_mask): Ditto.
46614 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
46615 (avx512f_storedqu<mode>_mask): Ditto.
46616 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
46618 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
46619 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
46620 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
46621 (avx512f_maskcmp<mode>3): Ditto.
46622 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
46623 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
46624 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
46625 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
46626 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
46627 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
46628 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
46629 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
46630 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
46631 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
46632 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
46633 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
46634 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
46635 (vec_extract_lo_<mode>_maskm): Ditto.
46636 (vec_extract_hi_<mode>_maskm): Ditto.
46637 (avx512f_vternlog<mode>_mask): Ditto.
46638 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
46639 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
46640 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
46641 (avx512f_<code>v8div16qi2_mask): Ditto.
46642 (avx512f_<code>v8div16qi2_mask_store): Ditto.
46643 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
46644 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
46645 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
46646 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
46647 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46648 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46649 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46650 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46651 (avx512cd_maskb_vec_dupv8di): Ditto.
46652 (avx512cd_maskw_vec_dupv16si): Ditto.
46653 (avx512f_vpermi2var<mode>3_maskz): Ditto.
46654 (avx512f_vpermi2var<mode>3_mask): Ditto.
46655 (avx512f_vpermi2var<mode>3_mask): Ditto.
46656 (avx512f_vpermt2var<mode>3_maskz): Ditto.
46657 (*avx512f_gathersi<mode>): Ditto.
46658 (*avx512f_gathersi<mode>_2): Ditto.
46659 (*avx512f_gatherdi<mode>): Ditto.
46660 (*avx512f_gatherdi<mode>_2): Ditto.
46661 (*avx512f_scattersi<mode>): Ditto.
46662 (*avx512f_scatterdi<mode>): Ditto.
46663 (avx512f_compress<mode>_mask): Ditto.
46664 (avx512f_compressstore<mode>_mask): Ditto.
46665 (avx512f_expand<mode>_mask): Ditto.
46666 * config/i386/subst.md (mask): Change k to Yk.
46667 (mask_scalar_merge): Ditto.
46670 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
46672 * doc/extend.texi (Vector Extensions): Document ?: in C++.
46674 2014-01-31 Richard Biener <rguenther@suse.de>
46676 PR middle-end/59990
46677 * builtins.c (fold_builtin_memory_op): Make sure to not
46678 use a floating-point mode or a boolean or enumeral type for
46679 the copy operation.
46681 2014-01-30 DJ Delorie <dj@redhat.com>
46683 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
46684 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
46685 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
46686 whenever main() has an epilogue.
46688 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46690 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
46691 unused variable "field".
46692 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
46693 (vsx_mergeh_<mode>): Likewise.
46694 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
46695 (altivec_vmrghh): Likewise.
46696 (altivec_vmrghw): Likewise.
46697 (altivec_vmrglb): Likewise.
46698 (altivec_vmrglh): Likewise.
46699 (altivec_vmrglw): Likewise.
46700 (altivec_vspltb): Add missing uses.
46701 (altivec_vsplth): Likewise.
46702 (altivec_vspltw): Likewise.
46703 (altivec_vspltsf): Likewise.
46705 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46708 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
46709 frame related instructions.
46711 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
46713 PR rtl-optimization/59959
46714 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
46715 any reload of register whose subreg is invalid.
46717 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46719 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
46720 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
46721 Add missing return type - void.
46723 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46725 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
46726 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
46727 remove element index adjustment for endian (now handled in vsx.md
46729 (altivec_expand_vec_perm_const): Use
46730 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
46731 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
46732 (vsx_xxspltw_<mode>): Adjust element index for little endian.
46733 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
46734 define_expand and a new define_insn *altivec_vspltb_internal;
46735 adjust for -maltivec=be on a little endian target.
46736 (altivec_vspltb_direct): New.
46737 (altivec_vsplth): Divide into a define_expand and a new
46738 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
46739 little endian target.
46740 (altivec_vsplth_direct): New.
46741 (altivec_vspltw): Divide into a define_expand and a new
46742 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
46743 little endian target.
46744 (altivec_vspltw_direct): New.
46745 (altivec_vspltsf): Divide into a define_expand and a new
46746 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
46747 a little endian target.
46749 2014-01-30 Richard Biener <rguenther@suse.de>
46751 PR tree-optimization/59993
46752 * tree-ssa-forwprop.c (associate_pointerplus): Check we
46753 can propagate form the earlier stmt and avoid the transform
46754 when the intermediate result is needed.
46756 2014-01-30 Alangi Derick <alangiderick@gmail.com>
46758 * README.Portability: Fix typo.
46760 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
46762 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
46763 comparison_operator with ordered_comparison_operator.
46765 2014-01-30 Nick Clifton <nickc@redhat.com>
46767 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
46768 Rename to mn10300_store_multiple_regs.
46769 * config/mn10300/mn10300.c: Likewise.
46770 * config/mn10300/mn10300.md (store_movm): Fix typo: call
46771 store_multiple_regs.
46772 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
46773 Call mn10300_store_multiple_regs.
46775 2014-01-30 Nick Clifton <nickc@redhat.com>
46776 DJ Delorie <dj@redhat.com>
46778 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
46779 %fp 2 to keep registers after it properly word-aligned.
46780 (rl78_alloc_physical_registers_umul): Handle the case where both
46781 input operands are the same.
46783 2014-01-30 Richard Biener <rguenther@suse.de>
46785 PR tree-optimization/59903
46786 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
46789 2014-01-30 Jason Merrill <jason@redhat.com>
46792 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
46795 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
46797 2014-01-30 Richard Biener <rguenther@suse.de>
46799 PR tree-optimization/59951
46800 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
46802 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
46805 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
46806 SFmode to DFmode case.
46808 2014-01-29 DJ Delorie <dj@redhat.com>
46810 * config/msp430/msp430.opt (-minrt): New.
46811 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
46813 (ENDFILE_SPEC): Likewise.
46815 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
46817 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
46818 (estimate_function_body_sizes): Use it.
46820 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
46823 * dwarf2out.c (is_cxx_auto): New.
46824 (is_base_type): Use it.
46825 (gen_type_die_with_usage): Likewise.
46827 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46829 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
46830 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
46831 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
46832 -maltivec=be with LE targets.
46833 (vsx_mergeh_<mode>): Likewise.
46834 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
46835 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
46836 (altivec_vmrghb): Replace with define_expand and new
46837 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
46838 (altivec_vmrghb_direct): New define_insn.
46839 (altivec_vmrghh): Replace with define_expand and new
46840 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
46841 (altivec_vmrghh_direct): New define_insn.
46842 (altivec_vmrghw): Replace with define_expand and new
46843 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
46844 (altivec_vmrghw_direct): New define_insn.
46845 (*altivec_vmrghsf): Adjust for endianness.
46846 (altivec_vmrglb): Replace with define_expand and new
46847 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
46848 (altivec_vmrglb_direct): New define_insn.
46849 (altivec_vmrglh): Replace with define_expand and new
46850 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
46851 (altivec_vmrglh_direct): New define_insn.
46852 (altivec_vmrglw): Replace with define_expand and new
46853 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
46854 (altivec_vmrglw_direct): New define_insn.
46855 (*altivec_vmrglsf): Adjust for endianness.
46856 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46857 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46858 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46859 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46860 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46861 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46862 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46863 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46865 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
46867 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
46868 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
46871 2014-01-29 Richard Biener <rguenther@suse.de>
46873 PR tree-optimization/58742
46874 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
46875 associate_pointerplus_align.
46876 (associate_pointerplus_diff): New function.
46877 (associate_pointerplus): Likewise. Call associate_pointerplus_align
46878 and associate_pointerplus_diff.
46880 2014-01-29 Richard Biener <rguenther@suse.de>
46882 * lto-streamer.h (LTO_major_version): Bump to 3.
46883 (LTO_minor_version): Reset to 0.
46885 2014-01-29 Renlin Li <Renlin.Li@arm.com>
46887 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
46888 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
46889 (arm_file_start): Generate correct asm header for armv7ve.
46890 * config/arm/bpabi.h: Add multilib support for armv7ve.
46891 * config/arm/driver-arm.c: Change the architectures of cortex-a7
46892 and cortex-a15 to armv7ve.
46893 * config/arm/t-aprofile: Add multilib support for armv7ve.
46894 * doc/invoke.texi: Document -march=armv7ve.
46896 2014-01-29 Richard Biener <rguenther@suse.de>
46898 PR tree-optimization/58742
46899 * tree-ssa-forwprop.c (associate_plusminus): Return true
46900 if we changed sth, defer EH cleanup to ...
46901 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
46902 (simplify_mult): New function.
46904 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46906 PR middle-end/59917
46907 PR tree-optimization/59920
46908 * tree.c (build_common_builtin_nodes): Remove
46909 __builtin_setjmp_dispatcher initialization.
46910 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
46911 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
46912 instead of gsi_after_labels + manually skipping debug stmts.
46913 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
46914 ignore bbs with IFN_ABNORMAL_DISPATCHER.
46915 * tree-inline.c (copy_edges_for_bb): Remove
46916 can_make_abnormal_goto argument, instead add abnormal_goto_dest
46917 argument. Ignore computed_goto_p stmts. Don't call
46918 make_abnormal_goto_edges. If a call might need abnormal edges
46919 for non-local gotos, see if it already has an edge to
46920 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
46921 with true argument, don't do anything then, otherwise add
46922 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
46923 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
46925 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
46926 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
46927 (lower_stmt): Don't set data->calls_builtin_setjmp.
46928 (lower_builtin_setjmp): Adjust comment.
46929 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
46930 * tree-cfg.c (found_computed_goto): Remove.
46931 (factor_computed_gotos): Remove.
46932 (make_goto_expr_edges): Return bool, true for computed gotos.
46933 Don't call make_abnormal_goto_edges.
46934 (build_gimple_cfg): Don't set found_computed_goto, don't call
46935 factor_computed_gotos.
46936 (computed_goto_p): No longer static.
46937 (make_blocks): Don't set found_computed_goto.
46938 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
46939 (make_edges): If make_goto_expr_edges returns true, push bb
46940 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
46941 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
46942 vector. Record mapping between bbs and OpenMP regions if there
46943 are any, adjust make_gimple_omp_edges caller. Call
46944 handle_abnormal_edges.
46945 (make_abnormal_goto_edges): Remove.
46946 * tree-cfg.h (make_abnormal_goto_edges): Remove.
46947 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
46948 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
46949 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
46950 * internal-fn.def (ABNORMAL_DISPATCHER): New.
46951 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
46952 filling *region also set *region_idx to (*region)->entry->index.
46955 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
46956 For REGs set ORIGINAL_REGNO.
46958 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
46960 * doc/md.texi: Mention that a target shouldn't implement
46961 vec_widen_(s|u)mul_even/odd pair if it is less efficient
46964 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46966 PR tree-optimization/59594
46967 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
46968 a copy of the datarefs vector rather than the vector itself.
46970 2014-01-28 Jason Merrill <jason@redhat.com>
46973 * dwarf2out.c (auto_die): New static.
46974 (gen_type_die_with_usage): Handle C++1y 'auto'.
46975 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
46978 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
46981 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
46982 (SPEC_X32): Likewise.
46983 (SPEC_64): Likewise.
46984 * config/i386/i386.c (ix86_option_override_internal): Turn off
46985 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
46987 (x86_file_start): Output .code16gcc for TARGET_16BIT.
46988 * config/i386/i386.h (TARGET_16BIT): New macro.
46989 (TARGET_16BIT_P): Likewise.
46990 * config/i386/i386.opt: Add m16.
46991 * doc/invoke.texi: Document -m16.
46993 2014-01-28 Jakub Jelinek <jakub@redhat.com>
46995 PR preprocessor/59935
46996 * input.c (location_get_source_line): Bail out on when line number
46997 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
46999 2014-01-28 Richard Biener <rguenther@suse.de>
47001 PR tree-optimization/58742
47002 * tree-ssa-forwprop.c (associate_plusminus): Handle
47003 pointer subtraction of the form (T)(P + A) - (T)P.
47005 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47007 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
47010 2014-01-28 Richard Biener <rguenther@suse.de>
47013 2014-01-28 Richard Biener <rguenther@suse.de>
47015 PR rtl-optimization/45364
47016 PR rtl-optimization/59890
47017 * var-tracking.c (local_get_addr_clear_given_value): Handle
47018 already cleared slot.
47019 (val_reset): Handle not allocated local_get_addr_cache.
47020 (vt_find_locations): Use post-order on the inverted CFG.
47022 2014-01-28 Richard Biener <rguenther@suse.de>
47024 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
47026 2014-01-28 Richard Biener <rguenther@suse.de>
47028 PR rtl-optimization/45364
47029 PR rtl-optimization/59890
47030 * var-tracking.c (local_get_addr_clear_given_value): Handle
47031 already cleared slot.
47032 (val_reset): Handle not allocated local_get_addr_cache.
47033 (vt_find_locations): Use post-order on the inverted CFG.
47035 2014-01-28 Alan Modra <amodra@gmail.com>
47037 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
47038 * configure.ac <recursive call for build != host>: Define
47039 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
47040 and LD_FOR_BUILD too.
47041 * configure: Regenerate.
47043 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
47045 * config/i386/i386.c (get_builtin_code_for_version): Separate
47046 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
47047 Broadwell from Haswell.
47049 2014-01-27 Steve Ellcey <sellcey@mips.com>
47051 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
47052 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
47053 * config/mips/mips.c (mips_option_override): Change setting
47055 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
47056 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
47057 Change from Mask to Var.
47059 2014-01-27 Jeff Law <law@redhat.com>
47061 * ipa-inline.c (inline_small_functions): Fix typo.
47063 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
47065 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
47066 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
47067 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
47068 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
47069 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
47070 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
47071 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
47072 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
47073 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
47074 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
47075 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
47076 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
47077 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
47078 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
47079 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
47080 (_mm512_storeu_epi64): Ditto.
47081 (_mm512_cmpge_epi32_mask): Ditto.
47082 (_mm512_cmpge_epu32_mask): Ditto.
47083 (_mm512_cmpge_epi64_mask): Ditto.
47084 (_mm512_cmpge_epu64_mask): Ditto.
47085 (_mm512_cmple_epi32_mask): Ditto.
47086 (_mm512_cmple_epu32_mask): Ditto.
47087 (_mm512_cmple_epi64_mask): Ditto.
47088 (_mm512_cmple_epu64_mask): Ditto.
47089 (_mm512_cmplt_epi32_mask): Ditto.
47090 (_mm512_cmplt_epu32_mask): Ditto.
47091 (_mm512_cmplt_epi64_mask): Ditto.
47092 (_mm512_cmplt_epu64_mask): Ditto.
47093 (_mm512_cmpneq_epi32_mask): Ditto.
47094 (_mm512_cmpneq_epu32_mask): Ditto.
47095 (_mm512_cmpneq_epi64_mask): Ditto.
47096 (_mm512_cmpneq_epu64_mask): Ditto.
47097 (_mm512_expand_pd): Ditto.
47098 (_mm512_expand_ps): Ditto.
47099 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
47100 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
47101 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
47102 * config/i386/i386.c (ix86_builtins): Add
47103 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
47104 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
47105 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
47106 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
47107 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
47108 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
47109 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
47110 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
47111 IX86_BUILTIN_PMOVUSQW512_MEM.
47112 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
47113 __builtin_ia32_pmovsqd512mem_mask,
47114 __builtin_ia32_pmovqd512mem_mask,
47115 __builtin_ia32_pmovusqw512mem_mask,
47116 __builtin_ia32_pmovsqw512mem_mask,
47117 __builtin_ia32_pmovqw512mem_mask,
47118 __builtin_ia32_pmovusdw512mem_mask,
47119 __builtin_ia32_pmovsdw512mem_mask,
47120 __builtin_ia32_pmovdw512mem_mask,
47121 __builtin_ia32_pmovqb512mem_mask,
47122 __builtin_ia32_pmovusqb512mem_mask,
47123 __builtin_ia32_pmovsqb512mem_mask,
47124 __builtin_ia32_pmovusdb512mem_mask,
47125 __builtin_ia32_pmovsdb512mem_mask,
47126 __builtin_ia32_pmovdb512mem_mask.
47127 (bdesc_args): Add __builtin_ia32_expanddf512,
47128 __builtin_ia32_expandsf512.
47129 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
47130 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
47131 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
47132 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
47133 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
47134 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
47135 (avx512f_<code>v8div16qi2_mask_store): This.
47136 (avx512f_expand<mode>): New.
47138 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
47140 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
47142 (_mm512_mask_prefetch_i64gather_pd): Ditto.
47143 (_mm512_prefetch_i32scatter_pd): Ditto.
47144 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
47145 (_mm512_prefetch_i64scatter_pd): Ditto.
47146 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
47147 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
47148 (_mm512_mask_prefetch_i64gather_ps): Ditto.
47149 (_mm512_prefetch_i32scatter_ps): Ditto.
47150 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
47151 (_mm512_prefetch_i64scatter_ps): Ditto.
47152 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
47153 * config/i386/i386-builtin-types.def: Define
47154 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
47155 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
47156 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
47157 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
47158 IX86_BUILTIN_SCATTERPFQPD.
47159 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
47160 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
47161 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
47162 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
47163 __builtin_ia32_scatterpfqps.
47164 (ix86_expand_builtin): Expand new built-ins.
47165 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
47166 fix memory access data type.
47167 (*avx512pf_gatherpf<mode>_mask): Ditto.
47168 (*avx512pf_gatherpf<mode>): Ditto.
47169 (avx512pf_scatterpf<mode>): Ditto.
47170 (*avx512pf_scatterpf<mode>_mask): Ditto.
47171 (*avx512pf_scatterpf<mode>): Ditto.
47172 (GATHER_SCATTER_SF_MEM_MODE): New.
47173 (avx512pf_gatherpf<mode>df): Ditto.
47174 (*avx512pf_gatherpf<mode>df_mask): Ditto.
47175 (*avx512pf_scatterpf<mode>df): Ditto.
47177 2014-01-27 Jakub Jelinek <jakub@redhat.com>
47180 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
47181 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
47184 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47186 * common/config/arm/arm-common.c
47187 (arm_rewrite_mcpu): Handle multiple names.
47189 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47191 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47193 * gimple-builder.h (create_gimple_tmp): Delete.
47195 2014-01-27 Christian Bruel <christian.bruel@st.com>
47197 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
47200 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
47202 * config/pa/pa.md (call): Generate indirect long calls to non-local
47203 functions when outputing 32-bit code.
47204 (call_value): Likewise except for special call to buggy powf function.
47206 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
47207 portable runtime and PIC indirect calls.
47208 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
47209 and PIC call sequences. Use ldo instead of blr to set return register
47210 in PIC call sequence.
47212 2014-01-25 Walter Lee <walt@tilera.com>
47214 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
47215 avoid clobbering a live register.
47217 2014-01-25 Walter Lee <walt@tilera.com>
47219 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
47220 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
47221 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
47222 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
47224 2014-01-25 Walter Lee <walt@tilera.com>
47226 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
47227 arguments on even registers.
47228 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
47230 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
47231 (BIGGEST_ALIGNMENT): Ditto.
47232 (BIGGEST_FIELD_ALIGNMENT): Ditto.
47234 2014-01-25 Walter Lee <walt@tilera.com>
47236 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
47237 insns before bundling.
47238 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47240 2014-01-25 Walter Lee <walt@tilera.com>
47242 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
47243 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
47244 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
47246 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47248 * config/mips/constraints.md (kl): Delete.
47249 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
47250 define expands, using...
47251 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
47252 instructions for MIPS16.
47253 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
47254 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
47256 2014-01-25 Walter Lee <walt@tilera.com>
47258 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
47262 2014-01-25 Walter Lee <walt@tilera.com>
47264 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
47265 (TARGET_EXPAND_TO_RTL_HOOK): Define.
47267 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47269 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
47272 2014-01-25 Jakub Jelinek <jakub@redhat.com>
47274 * print-rtl.c (in_call_function_usage): New var.
47275 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
47276 EXPR_LIST mode as mode and not as reg note name.
47278 PR middle-end/59561
47279 * cfgloopmanip.c (copy_loop_info): If
47280 loop->warned_aggressive_loop_optimizations, make sure
47281 the flag is set in target loop too.
47283 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
47285 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
47287 * builtins.def: Likewise.
47288 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
47289 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
47290 * ira.c (ira_setup_eliminable_regset): Likewise.
47291 * omp-low.c (gate_expand_omp): Likewise.
47292 (execute_lower_omp): Likewise.
47293 (diagnose_sb_0): Likewise.
47294 (gate_diagnose_omp_blocks): Likewise.
47295 (simd_clone_clauses_extract): Likewise.
47298 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47300 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
47301 correction for little endian...
47302 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
47305 2014-01-24 Jeff Law <law@redhat.com>
47307 PR tree-optimization/59919
47308 * tree-vrp.c (find_assert_locations_1): Do not register asserts
47309 for non-returning calls.
47311 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
47313 * common/config/aarch64/aarch64-common.c
47314 (aarch64_rewrite_mcpu): Handle multiple names.
47315 * config/aarch64/aarch64.h
47316 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47318 2014-01-24 Dodji Seketeli <dodji@redhat.com>
47320 * input.c (add_file_to_cache_tab): Handle the case where fopen
47323 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
47326 * config/i386/i386.md (pushsf splitter): Get stack adjustment
47327 from push operand if code of push isn't PRE_DEC.
47329 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47332 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
47333 -mquad-memory-atomic. Update -mquad-memory documentation to say
47334 it is only used for non-atomic loads/stores.
47336 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
47337 -mquad-memory or -mquad-memory-atomic switches.
47339 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
47340 -mquad-memory-atomic to ISA 2.07 support.
47342 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
47343 to separate support of normal quad word memory operations (ldq, stq)
47344 from the atomic quad word memory operations.
47346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
47347 support to separate non-atomic quad word operations from atomic
47348 quad word operations. Disable non-atomic quad word operations in
47349 little endian mode so that we don't have to swap words after the
47350 load and before the store.
47351 (quad_load_store_p): Add comment about atomic quad word support.
47352 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
47353 options printed with -mdebug=reg.
47355 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
47356 -mquad-memory-atomic as the test for whether we have quad word
47357 atomic instructions.
47358 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
47359 or -mp8-vector are used, allow byte/half-word atomic operations.
47361 * config/rs6000/sync.md (load_lockedti): Insure that the address
47362 is a proper indexed or indirect address for the lqarx instruction.
47363 On little endian systems, swap the hi/lo registers after the lqarx
47365 (load_lockedpti): Use indexed_or_indirect_operand predicate to
47366 insure the address is valid for the lqarx instruction.
47367 (store_conditionalti): Insure that the address is a proper indexed
47368 or indirect address for the stqcrx. instruction. On little endian
47369 systems, swap the hi/lo registers before doing the stqcrx.
47371 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
47372 insure the address is valid for the stqcrx. instruction.
47374 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
47375 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
47376 type of quad memory support is available.
47378 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
47380 PR regression/59915
47381 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
47382 there is a danger of looping.
47384 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
47386 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
47387 force flag_ira_loop_pressure if set via command line.
47389 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47391 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
47392 (ashr_simd): New builtin handling DI mode.
47393 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
47394 (aarch64_sshr_simddi): New match pattern.
47395 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
47396 (vshrd_n_s64): Likewise.
47397 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
47399 2014-01-23 Nick Clifton <nickc@redhat.com>
47401 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
47402 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
47403 favour of mcu specific scripts.
47404 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
47407 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47408 Alex Velenko <Alex.Velenko@arm.com>
47410 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
47411 (vaddv_s16): Likewise.
47412 (vaddv_s32): Likewise.
47413 (vaddv_u8): Likewise.
47414 (vaddv_u16): Likewise.
47415 (vaddv_u32): Likewise.
47416 (vaddvq_s8): Likewise.
47417 (vaddvq_s16): Likewise.
47418 (vaddvq_s32): Likewise.
47419 (vaddvq_s64): Likewise.
47420 (vaddvq_u8): Likewise.
47421 (vaddvq_u16): Likewise.
47422 (vaddvq_u32): Likewise.
47423 (vaddvq_u64): Likewise.
47424 (vaddv_f32): Likewise.
47425 (vaddvq_f32): Likewise.
47426 (vaddvq_f64): Likewise.
47427 (vmaxv_f32): Likewise.
47428 (vmaxv_s8): Likewise.
47429 (vmaxv_s16): Likewise.
47430 (vmaxv_s32): Likewise.
47431 (vmaxv_u8): Likewise.
47432 (vmaxv_u16): Likewise.
47433 (vmaxv_u32): Likewise.
47434 (vmaxvq_f32): Likewise.
47435 (vmaxvq_f64): Likewise.
47436 (vmaxvq_s8): Likewise.
47437 (vmaxvq_s16): Likewise.
47438 (vmaxvq_s32): Likewise.
47439 (vmaxvq_u8): Likewise.
47440 (vmaxvq_u16): Likewise.
47441 (vmaxvq_u32): Likewise.
47442 (vmaxnmv_f32): Likewise.
47443 (vmaxnmvq_f32): Likewise.
47444 (vmaxnmvq_f64): Likewise.
47445 (vminv_f32): Likewise.
47446 (vminv_s8): Likewise.
47447 (vminv_s16): Likewise.
47448 (vminv_s32): Likewise.
47449 (vminv_u8): Likewise.
47450 (vminv_u16): Likewise.
47451 (vminv_u32): Likewise.
47452 (vminvq_f32): Likewise.
47453 (vminvq_f64): Likewise.
47454 (vminvq_s8): Likewise.
47455 (vminvq_s16): Likewise.
47456 (vminvq_s32): Likewise.
47457 (vminvq_u8): Likewise.
47458 (vminvq_u16): Likewise.
47459 (vminvq_u32): Likewise.
47460 (vminnmv_f32): Likewise.
47461 (vminnmvq_f32): Likewise.
47462 (vminnmvq_f64): Likewise.
47464 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47466 * config/aarch64/aarch64-simd.md
47467 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
47468 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
47469 (*aarch64_mul3_elt<mode>): Likewise.
47470 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
47471 (*aarch64_mul3_elt_to_64v2df): Likewise.
47472 (*aarch64_mla_elt<mode>): Likewise.
47473 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
47474 (*aarch64_mls_elt<mode>): Likewise.
47475 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
47476 (*aarch64_fma4_elt<mode>): Likewise.
47477 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
47478 (*aarch64_fma4_elt_to_64v2df): Likewise.
47479 (*aarch64_fnma4_elt<mode>): Likewise.
47480 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
47481 (*aarch64_fnma4_elt_to_64v2df): Likewise.
47482 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
47483 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
47484 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47485 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47486 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
47487 (aarch64_sqdmull_lane<mode>_internal): Likewise.
47488 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
47490 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
47492 * config/aarch64/aarch64-simd.md
47493 (aarch64_be_checked_get_lane<mode>): New define_expand.
47494 * config/aarch64/aarch64-simd-builtins.def
47495 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
47496 New builtin definition.
47497 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
47498 Use new safe be builtin.
47500 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47502 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
47504 (aarch64_be_st1<mode>): Likewise.
47505 (aarch_ld1<VALL:mode>): Define_expand modified.
47506 (aarch_st1<VALL:mode>): Likewise.
47507 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
47508 (UNSPEC_ST1): Likewise.
47510 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
47512 * config/microblaze/microblaze.md: Add trap insn and attribute
47514 2014-01-23 Dodji Seketeli <dodji@redhat.com>
47516 PR preprocessor/58580
47517 * input.h (location_get_source_line): Take an additional line_size
47519 (void diagnostics_file_cache_fini): Declare new function.
47520 * input.c (struct fcache): New type.
47521 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
47522 New static constants.
47523 (diagnostic_file_cache_init, total_lines_num)
47524 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
47525 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
47526 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
47527 (get_next_line, read_next_line, goto_next_line, read_line_num):
47528 New static function definitions.
47529 (diagnostic_file_cache_fini): New function.
47530 (location_get_source_line): Take an additional output line_len
47531 parameter. Re-write using lookup_or_add_file_to_cache_tab and
47533 * diagnostic.c (diagnostic_finish): Call
47534 diagnostic_file_cache_fini.
47535 (adjust_line): Take an additional input parameter for the length
47536 of the line, rather than calculating it with strlen.
47537 (diagnostic_show_locus): Adjust the use of
47538 location_get_source_line and adjust_line with respect to their new
47539 signature. While displaying a line now, do not stop at the first
47540 null byte. Rather, display the zero byte as a space and keep
47541 going until we reach the size of the line.
47542 * Makefile.in: Add vec.o to OBJS-libcommon
47544 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47545 Ilya Tocar <ilya.tocar@intel.com>
47547 * config/i386/avx512fintrin.h (_mm512_kmov): New.
47548 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
47549 (__builtin_ia32_kmov16): Ditto.
47550 * config/i386/i386.md (UNSPEC_KMOV): New.
47553 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47555 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
47556 (_mm512_storeu_si512): Ditto.
47558 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
47561 * rtl.h (get_referenced_operands): Declare.
47562 * recog.c (get_referenced_operands): New function.
47563 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
47564 operands have been referenced when recording LO_SUM references.
47566 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
47568 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
47570 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47572 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
47573 Enable for generic and recent AMD targets.
47575 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47577 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
47578 ARG_SIZE note when adjustment was eliminated.
47580 2014-01-22 Jeff Law <law@redhat.com>
47582 PR tree-optimization/59597
47583 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
47584 in file. Accept new argument REGISTERING and use it to modify
47585 dump output appropriately.
47586 (register_jump_thread): Corresponding changes.
47587 (mark_threaded_blocks): Reinstate code to cancel unprofitable
47588 thread paths involving joiner blocks. Add code to dump cancelled
47589 jump threading paths.
47591 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
47593 PR rtl-optimization/59477
47594 * lra-constraints.c (inherit_in_ebb): Process call for living hard
47595 regs. Update reloads_num and potential_reload_hard_regs for all insns.
47597 2014-01-22 Tom Tromey <tromey@redhat.com>
47599 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
47601 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
47603 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47605 PR rtl-optimization/59896
47606 * lra-constraints.c (process_alt_operands): Check unused note for
47607 matched operands of insn with no output reloads.
47609 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
47611 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
47612 (mips_move_from_gpr_cost): Likewise.
47614 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47616 PR rtl-optimization/59858
47617 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
47618 ira_class_hard_regs_num.
47619 (process_alt_operands): Increase reject for dying matched operand.
47621 2014-01-21 Jakub Jelinek <jakub@redhat.com>
47624 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
47625 smaller than size, perform several stores or loads and stores
47626 at dst + count - size to store or copy all of size bytes, rather
47627 than just last modesize bytes.
47629 2014-01-20 DJ Delorie <dj@redhat.com>
47631 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
47632 that CLOBBERs are REGs before propogating their values.
47634 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
47636 PR middle-end/59789
47637 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
47638 (cgraph_inline_failed_type): New function.
47639 * cgraph.h (DEFCIFCODE): Add type.
47640 (cgraph_inline_failed_type_t): New enum.
47641 (cgraph_inline_failed_type): New prototype.
47642 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
47643 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
47644 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
47645 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
47646 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
47647 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
47648 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
47649 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
47650 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
47651 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
47652 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
47653 OPTIMIZATION_MISMATCH.
47654 * tree-inline.c (expand_call_inline): Emit errors during
47655 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
47657 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47660 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
47661 mode attribute in insn output.
47663 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
47665 * output.h (output_constant): Delete.
47666 * varasm.c (output_constant): Make private.
47668 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
47670 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
47672 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47674 PR middle-end/59860
47675 * tree.h (fold_builtin_strcat): New prototype.
47676 * builtins.c (fold_builtin_strcat): No longer static. Add len
47677 argument, if non-NULL, don't call c_strlen. Optimize
47678 directly into __builtin_memcpy instead of __builtin_strcpy.
47679 (fold_builtin_2): Adjust fold_builtin_strcat caller.
47680 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
47682 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47684 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47685 for SImode_address_operand operands, having only a REG argument.
47687 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
47689 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
47690 loader name using mbig-endian.
47691 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
47693 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47695 * doc/invoke.texi (-march): Clarify documentation for AArch64.
47696 (-mtune): Likewise.
47699 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
47701 * config/aarch64/aarch64-protos.h
47702 (aarch64_cannot_change_mode_class_ptr): Declare.
47703 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
47704 aarch64_cannot_change_mode_class_ptr): New.
47705 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
47706 backend hook aarch64_cannot_change_mode_class.
47708 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47710 * common/config/aarch64/aarch64-common.c
47711 (aarch64_handle_option): Don't handle any option order logic here.
47712 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
47713 selected_cpu, warn on architecture version mismatch.
47714 (aarch64_override_options): Fix parsing order for option strings.
47716 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47717 Iain Sandoe <iain@codesourcery.com>
47720 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
47721 warning. Amend comment to reflect current functionality.
47723 2014-01-20 Richard Biener <rguenther@suse.de>
47725 PR middle-end/59860
47726 * builtins.c (fold_builtin_strcat): Remove case better handled
47727 by tree-ssa-strlen.c.
47729 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
47731 * config/aarch64/aarch64.opt
47732 (mcpu, march, mtune): Make case-insensitive.
47734 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47737 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47738 if operands[1] is a REG or ZERO_EXTEND of a REG.
47740 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
47742 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
47744 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
47746 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
47747 long non-pic millicode calls.
47749 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47751 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
47753 2014-01-19 Kito Cheng <kito@0xlab.org>
47755 * builtins.c (expand_movstr): Check movstr expand done or fail.
47757 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47758 H.J. Lu <hongjiu.lu@intel.com>
47761 * config/i386/i386.md (*lea<mode>): Zero-extend return register
47762 to DImode for zero-extended addresses.
47764 2014-01-19 Jakub Jelinek <jakub@redhat.com>
47766 PR rtl-optimization/57763
47767 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
47768 on the new indirect jump_insn and increment LABEL_NUSES (label).
47770 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
47774 * config.gcc (x86_archs): New variable.
47775 (x86_64_archs): Likewise.
47776 (x86_cpus): Likewise.
47777 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
47778 --with-arch/--with-cpu= options.
47779 Support --with-arch=/--with-cpu={nehalem,westmere,
47780 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
47782 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47784 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
47785 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
47787 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47789 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
47791 2014-01-18 Jakub Jelinek <jakub@redhat.com>
47794 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
47795 clear cpp_get_options (parse_in)->warn_unused_macros for
47796 ix86_target_macros_internal with cpp_define.
47798 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
47800 * jump.c (delete_related_insns): Keep (use (insn))s.
47801 * reorg.c (redundant_insn): Check for barriers too.
47803 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47805 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
47807 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
47809 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
47810 call to $$dyncall when TARGET_LONG_CALLS is true.
47812 2014-01-17 Jeff Law <law@redhat.com>
47814 * ree.c (combine_set_extension): Temporarily disable test for
47815 changing number of hard registers.
47817 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47819 PR middle-end/58125
47820 * ipa-inline-analysis.c (inline_free_summary):
47821 Do not free summary of aliases.
47823 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47825 PR middle-end/59706
47826 * gimplify.c (gimplify_expr): Use create_tmp_var
47827 instead of create_tmp_var_raw. If cond doesn't have
47828 integral type, don't add the IFN_ANNOTATE builtin at all.
47830 2014-01-17 Martin Jambor <mjambor@suse.cz>
47833 * ipa-cp.c (prev_edge_clone): New variable.
47834 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
47835 Also resize prev_edge_clone vector.
47836 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
47837 (ipcp_edge_removal_hook): New function.
47838 (ipcp_driver): Register ipcp_edge_removal_hook.
47840 2014-01-17 Andrew Pinski <apinski@cavium.com>
47841 Steve Ellcey <sellcey@mips.com>
47844 * config/mips/mips.c (mips_print_operand): Check operand mode instead
47847 2014-01-17 Jeff Law <law@redhat.com>
47849 PR middle-end/57904
47850 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
47851 so that pass_ccp runs first.
47853 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47855 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
47856 (ix86_adjust_cost): Use !TARGET_XXX.
47857 (do_reorder_for_imul): Likewise.
47858 (swap_top_of_ready_list): Likewise.
47859 (ix86_sched_reorder): Likewise.
47861 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47863 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
47864 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
47865 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
47866 (intel_memset): New. Duplicate slm_memset.
47867 (intel_cost): New. Duplicate slm_cost.
47868 (m_INTEL): New macro.
47869 (processor_target_table): Add "intel".
47870 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
47871 with PROCESSOR_INTEL for "intel".
47872 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
47873 PROCESSOR_SILVERMONT.
47874 (ix86_issue_rate): Likewise.
47875 (ix86_adjust_cost): Likewise.
47876 (ia32_multipass_dfa_lookahead): Likewise.
47877 (swap_top_of_ready_list): Likewise.
47878 (ix86_sched_reorder): Likewise.
47879 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
47880 instead of TARGET_OPT_AGU.
47881 * config/i386/i386.h (TARGET_INTEL): New.
47882 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
47883 (processor_type): Add PROCESSOR_INTEL.
47884 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
47885 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
47887 2014-01-17 Marek Polacek <polacek@redhat.com>
47890 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
47893 2014-01-17 Richard Biener <rguenther@suse.de>
47895 PR tree-optimization/46590
47896 * opts.c (default_options_table): Add entries for
47897 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
47898 all enabled at -O1 but not for -Og.
47899 * common.opt (fbranch-count-reg): Remove Init(1).
47900 (fmove-loop-invariants): Likewise.
47901 (ftree-pta): Likewise.
47903 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47905 * config/i386/i386.c (ix86_data_alignment): For compatibility with
47906 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
47907 decls to at least the GCC 4.8 used alignments.
47910 * tree-nested.c (convert_nonlocal_reference_stmt,
47911 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
47912 of GIMPLE_BIND stmts, adjust associated decls.
47914 2014-01-17 Richard Biener <rguenther@suse.de>
47916 PR tree-optimization/46590
47917 * vec.h (vec<>::bseach): New member function implementing
47918 binary search according to C89 bsearch.
47919 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
47920 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
47921 bitmap pointer again. Make accesses_in_loop a flat array.
47922 (mem_ref_obstack): New global.
47923 (outermost_indep_loop): Adjust for mem_ref->stored changes.
47924 (mark_ref_stored): Likewise.
47925 (ref_indep_loop_p_2): Likewise.
47926 (set_ref_stored_in_loop): New helper function.
47927 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
47928 (memref_free): Adjust.
47929 (record_mem_ref_loc): Simplify.
47930 (gather_mem_refs_stmt): Adjust.
47931 (sort_locs_in_loop_postorder_cmp): New function.
47932 (analyze_memory_references): Sort accesses_in_loop after
47933 loop postorder number.
47934 (find_ref_loc_in_loop_cmp): New function.
47935 (for_all_locs_in_loop): Find relevant cluster of locs in
47936 accesses_in_loop and iterate without recursion.
47937 (execute_sm): Avoid uninit warning.
47938 (struct ref_always_accessed): Simplify.
47939 (ref_always_accessed::operator ()): Likewise.
47940 (ref_always_accessed_p): Likewise.
47941 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
47942 loop postorder numbers here.
47943 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
47946 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47949 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
47950 on decls for which assemble_alias has been called.
47952 2014-01-17 Nick Clifton <nickc@redhat.com>
47954 * config/msp430/msp430.opt: (mcpu): New option.
47955 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
47956 (msp430_option_override): Parse target_cpu. If the MCU name
47957 matches a generic string, clear target_mcu.
47958 (msp430_attr): Allow numeric interrupt values up to 63.
47959 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
47960 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
47962 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
47964 * config/msp430/msp430.md (popm): Use %J rather than %I.
47965 (addsi3): Use msp430_nonimmediate_operand for operand 2.
47966 (addhi_cy_i): Use immediate_operand for operand 2.
47967 * doc/invoke.texi: Document -mcpu option.
47969 2014-01-17 Richard Biener <rguenther@suse.de>
47971 PR rtl-optimization/38518
47972 * df.h (df_analyze_loop): Declare.
47973 * df-core.c: Include cfgloop.h.
47974 (df_analyze_1): Split out main part of df_analyze.
47975 (df_analyze): Adjust.
47976 (loop_inverted_post_order_compute): New function.
47977 (loop_post_order_compute): Likewise.
47978 (df_analyze_loop): New function avoiding whole-function
47979 postorder computes.
47980 * loop-invariant.c (find_defs): Use df_analyze_loop.
47981 (find_invariants): Adjust.
47982 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
47984 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
47986 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
47987 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
47989 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
47991 * ipa-ref.c (ipa_remove_stmt_references): Fix references
47992 traversal when removing references.
47994 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
47997 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
47999 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
48001 PR middle-end/56791
48002 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
48003 pushing a reload for an autoinc when we had previously reloaded an
48004 inner part of the address.
48006 2014-01-16 Jakub Jelinek <jakub@redhat.com>
48008 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
48010 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
48011 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
48012 when not giving up or versioning for alias only because of
48014 (vect_analyze_data_ref_dependences): Set to true.
48015 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
48017 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
48018 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
48021 PR middle-end/58344
48022 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
48025 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
48026 operand 0 predicate for gathers, use a new pseudo as subtarget.
48028 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48030 PR middle-end/59609
48031 * lra-constraints.c (process_alt_operands): Add printing debug info.
48032 Check absence of input/output reloads for matched operands too.
48034 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48036 PR rtl-optimization/59835
48037 * ira.c (ira_init_register_move_cost): Increase cost for
48040 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
48042 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
48044 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
48047 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
48048 non-register objects. Use gen_(high/low)part more consistently.
48051 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
48054 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
48055 endian support, remove tests for WORDS_BIG_ENDIAN.
48056 (p8_mfvsrd_3_<mode>): Likewise.
48057 (reload_gpr_from_vsx<mode>): Likewise.
48058 (reload_gpr_from_vsxsf): Likewise.
48059 (p8_mfvsrd_4_disf): Likewise.
48061 2014-01-16 Richard Biener <rguenther@suse.de>
48063 PR rtl-optimization/46590
48064 * lcm.c (compute_antinout_edge): Use postorder iteration.
48065 (compute_laterin): Use inverted postorder iteration.
48067 2014-01-16 Nick Clifton <nickc@redhat.com>
48069 PR middle-end/28865
48070 * varasm.c (output_constant): Return the number of bytes actually
48072 (output_constructor_array_range): Update the field size with the
48073 number of bytes emitted by output_constant.
48074 (output_constructor_regular_field): Likewise. Also do not
48075 complain if the total number of bytes emitted is now greater
48076 than the expected fieldpos.
48077 * output.h (output_constant): Update prototype and descriptive comment.
48079 2014-01-16 Marek Polacek <polacek@redhat.com>
48081 PR middle-end/59827
48082 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
48083 it is error_mark_node.
48085 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
48087 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
48088 VALID_AVX256_REG_OR_OI_MODE.
48090 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
48092 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
48093 current procedure should be profiled.
48095 2014-01-15 Andrew Pinski <apinski@cavium.com>
48097 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
48098 of moving from/to the STACK_REG register class.
48100 2014-01-15 Richard Henderson <rth@redhat.com>
48103 * reginfo.c (global_regs_decl): Globalize.
48104 * rtl.h (global_regs_decl): Declare.
48105 * ira.c (do_reload): Diagnose frame_pointer_needed and it
48106 reserved via global_regs.
48108 2014-01-15 Teresa Johnson <tejohnson@google.com>
48110 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
48112 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
48114 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
48115 and vmulosh rather than call gen_vec_widen_smult_*.
48116 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
48117 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
48118 (vec_widen_smult_even_v16qi): Likewise.
48119 (vec_widen_umult_even_v8hi): Likewise.
48120 (vec_widen_smult_even_v8hi): Likewise.
48121 (vec_widen_umult_odd_v16qi): Likewise.
48122 (vec_widen_smult_odd_v16qi): Likewise.
48123 (vec_widen_umult_odd_v8hi): Likewise.
48124 (vec_widen_smult_odd_v8hi): Likewise.
48125 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
48126 vmuloub rather than call gen_vec_widen_umult_*.
48127 (vec_widen_umult_lo_v16qi): Likewise.
48128 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
48129 vmulosb rather than call gen_vec_widen_smult_*.
48130 (vec_widen_smult_lo_v16qi): Likewise.
48131 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
48132 rather than call gen_vec_widen_umult_*.
48133 (vec_widen_umult_lo_v8hi): Likewise.
48134 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
48135 rather than call gen_vec_widen_smult_*.
48136 (vec_widen_smult_lo_v8hi): Likewise.
48138 2014-01-15 Jeff Law <law@redhat.com>
48140 PR tree-optimization/59747
48141 * ree.c (find_and_remove_re): Properly handle case where a second
48142 eliminated extension requires widening a copy created for elimination
48143 of a prior extension.
48144 (combine_set_extension): Ensure that the number of hard regs needed
48145 for a destination register does not change when we widen it.
48147 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
48149 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
48150 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
48151 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
48152 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
48153 (avr-*-rtems*): Likewise.
48154 (bfin*-rtems*): Likewise.
48155 (moxie-*-rtems*): Likewise.
48156 (h8300-*-rtems*): Likewise.
48157 (i[34567]86-*-rtems*): Likewise.
48158 (lm32-*-rtems*): Likewise.
48159 (m32r-*-rtems*): Likewise.
48160 (m68k-*-rtems*): Likewise.
48161 (microblaze*-*-rtems*): Likewise.
48162 (mips*-*-rtems*): Likewise.
48163 (powerpc-*-rtems*): Likewise.
48164 (sh-*-rtems*): Likewise.
48165 (sparc-*-rtems*): Likewise.
48166 (sparc64-*-rtems*): Likewise.
48167 (v850-*-rtems*): Likewise.
48168 (m32c-*-rtems*): Likewise.
48170 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
48172 PR rtl-optimization/59511
48173 * ira.c (ira_init_register_move_cost): Use memory costs for some
48174 cases of register move cost calculations.
48175 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
48176 instead of BB frequency.
48177 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
48178 * lra-assigns.c (find_hard_regno_for): Ditto.
48180 2014-01-15 Richard Biener <rguenther@suse.de>
48182 PR tree-optimization/59822
48183 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
48184 (vectorizable_load): Use it to hoist defs of uses of invariant
48185 loads out of the loop.
48187 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
48188 Kugan Vivekanandarajah <kuganv@linaro.org>
48191 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
48194 2014-01-15 Richard Biener <rguenther@suse.de>
48196 PR rtl-optimization/59802
48197 * lcm.c (compute_available): Use inverted postorder to seed
48198 the initial worklist.
48200 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48203 * config/s390/s390.c (s390_preferred_reload_class): Don't return
48204 ADDR_REGS for invalid symrefs in non-PIC code.
48206 2014-01-15 Jakub Jelinek <jakub@redhat.com>
48209 * builtins.c (determine_block_size): Initialize *probable_max_size
48210 even if len_rtx is CONST_INT.
48212 2014-01-14 Andrew Pinski <apinski@cavium.com>
48214 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
48215 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
48216 (cortexa53_tunings): Likewise.
48217 (aarch64_sched_issue_rate): New function.
48218 (TARGET_SCHED_ISSUE_RATE): Define.
48220 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48222 * ira-costs.c (find_costs_and_classes): Add missed
48223 ira_init_register_move_cost_if_necessary.
48225 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48228 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
48230 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
48233 * config/i386/i386.c (type_natural_mode): Add a bool parameter
48234 to indicate if type is used for function return value. Warn ABI
48235 change if the vector mode isn't available for function return value.
48236 (ix86_function_arg_advance): Pass false to type_natural_mode.
48237 (ix86_function_arg): Likewise.
48238 (ix86_gimplify_va_arg): Likewise.
48239 (function_arg_32): Don't warn ABI change.
48240 (ix86_function_value): Pass true to type_natural_mode.
48241 (ix86_return_in_memory): Likewise.
48242 (ix86_struct_value_rtx): Removed.
48243 (TARGET_STRUCT_VALUE_RTX): Likewise.
48245 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
48247 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
48248 converting a conditional jump into a conditional return.
48250 2014-01-14 Richard Biener <rguenther@suse.de>
48252 PR tree-optimization/58921
48253 PR tree-optimization/59006
48254 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
48255 hoisting invariant stmts.
48256 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
48257 invariant loads on the preheader edge if possible.
48259 2014-01-14 Joey Ye <joey.ye@arm.com>
48261 * doc/plugin.texi (Building GCC plugins): Update to C++.
48263 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
48265 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
48266 (_mm_rcp28_round_ss): Ditto.
48267 (_mm_rsqrt28_round_sd): Ditto.
48268 (_mm_rsqrt28_round_ss): Ditto.
48269 (_mm_rcp28_sd): Ditto.
48270 (_mm_rcp28_ss): Ditto.
48271 (_mm_rsqrt28_sd): Ditto.
48272 (_mm_rsqrt28_ss): Ditto.
48273 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
48274 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
48275 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
48276 (IX86_BUILTIN_RCP28SD): Ditto.
48277 (IX86_BUILTIN_RCP28SS): Ditto.
48278 (IX86_BUILTIN_RSQRT28SD): Ditto.
48279 (IX86_BUILTIN_RSQRT28SS): Ditto.
48280 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
48281 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
48282 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
48283 (ix86_expand_special_args_builtin): Expand new FTYPE.
48284 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
48285 (srcp14<mode>): Make insn unary.
48286 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
48287 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
48288 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
48289 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
48290 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
48291 Fix rounding: make it SAE only.
48292 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
48294 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
48296 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
48297 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
48298 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
48299 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
48300 (round_saeonly_mask_scalar_operand4): Ditto.
48301 (round_saeonly_mask_scalar_op3): Ditto.
48302 (round_saeonly_mask_scalar_op4): Ditto.
48304 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48306 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
48307 Implement -maltivec=be for vec_insert and vec_extract.
48309 2014-01-10 DJ Delorie <dj@redhat.com>
48311 * config/msp430/msp430.md (call_internal): Don't allow memory
48312 references with SP as the base register.
48313 (call_value_internal): Likewise.
48314 * config/msp430/constraints.md (Yc): New. For memory references
48315 that don't use SP as a base register.
48317 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
48318 "an integer without a # prefix"
48319 * config/msp430/msp430.md (epilogue_helper): Use it.
48321 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48324 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
48325 AVX512F gather builtins.
48326 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
48327 on gather decls with INTEGER_TYPE masktype.
48328 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
48329 directly into the builtin rather than hoisting it before loop.
48331 PR tree-optimization/59387
48332 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
48333 (scev_const_prop): If folded_casts and type has undefined overflow,
48334 use force_gimple_operand instead of force_gimple_operand_gsi and
48335 for each added stmt if it is assign with
48336 arith_code_with_undefined_signed_overflow, call
48337 rewrite_to_defined_overflow.
48338 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
48339 gimple-fold.h instead.
48340 (arith_code_with_undefined_signed_overflow,
48341 rewrite_to_defined_overflow): Moved to ...
48342 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
48343 rewrite_to_defined_overflow): ... here. No longer static.
48344 Include gimplify-me.h.
48345 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
48346 rewrite_to_defined_overflow): New prototypes.
48348 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48350 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
48352 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
48354 * builtins.c (get_object_alignment_2): Minor tweak.
48355 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
48357 2014-01-13 Christian Bruel <christian.bruel@st.com>
48359 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
48360 optimized non constant lengths.
48362 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48365 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
48366 load as __atomic_load_N if possible.
48368 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48370 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
48372 (rs6000_expand_builtin): Adjust call.
48374 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48377 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
48378 * config/rs6000/rs6000.c: Include target-globals.h.
48379 (rs6000_set_current_function): Instead of doing target_reinit
48380 unconditionally, use save_target_globals_default_opts and
48381 restore_target_globals.
48383 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
48385 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
48386 (rs6000_expand_builtin): Handle mffs and mtfsf.
48387 (rs6000_init_builtins): Define mffs and mtfsf.
48388 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
48389 (rs6000_mffs): New pattern.
48390 (rs6000_mtfsf): New pattern.
48392 2014-01-11 Bin Cheng <bin.cheng@arm.com>
48394 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
48395 Start narrowing with START. Apply candidate-use pair
48396 and check overall cost in narrowing.
48397 (iv_ca_prune): Pass new argument.
48399 2014-01-10 Jeff Law <law@redhat.com>
48401 PR middle-end/59743
48402 * ree.c (combine_reaching_defs): Ensure the defining statement
48403 occurs before the extension when optimizing extensions with
48404 different source and destination hard registers.
48406 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48409 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
48410 vtables into the type inheritance graph.
48412 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48414 PR rtl-optimization/59754
48415 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
48416 modes in the REGNO != REGNO case.
48418 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48420 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
48422 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48424 PR tree-optimization/59745
48425 * tree-predcom.c (tree_predictive_commoning_loop): Call
48426 free_affine_expand_cache if giving up because components is NULL.
48428 * target-globals.c (save_target_globals): Allocate < 4KB structs using
48429 GC in payload of target_globals struct instead of allocating them on
48430 the heap and the larger structs separately using GC.
48431 * target-globals.h (struct target_globals): Make regs, hard_regs,
48432 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
48433 of GTY((skip)) and change type to void *.
48434 (reset_target_globals): Cast loads from those fields to corresponding
48437 2014-01-10 Steve Ellcey <sellcey@mips.com>
48440 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
48441 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
48442 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
48444 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
48447 * aarch64-modes.def (CC_Zmode): New flags mode.
48448 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
48449 represents an equality.
48450 (aarch64_get_condition_code): Handle CC_Zmode.
48451 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
48453 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48455 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
48456 extraction in good case.
48458 2014-01-10 Richard Biener <rguenther@suse.de>
48460 PR tree-optimization/59374
48461 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
48462 checking after SLP discovery. Mark stmts not participating
48463 in any SLP instance properly.
48465 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48467 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
48468 when handling a SET rtx.
48470 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48472 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
48473 (cortex-a57): Likewise.
48474 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
48476 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48478 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
48479 non-iwmmxt builtins.
48481 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48485 * ipa-devirt.c record_target_from_binfo): Take as argument
48486 stack of binfos and lookup matching one for virtual inheritance.
48487 (possible_polymorphic_call_targets_1): Update.
48489 2014-01-10 Huacai Chen <chenhc@lemote.com>
48491 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
48492 kernel strings for Loongson-2E/2F/3A.
48494 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48496 PR middle-end/59670
48497 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
48498 is_gimple_call before calling gimple_call_internal_p.
48500 2014-01-09 Steve Ellcey <sellcey@mips.com>
48502 * Makefile.in (TREE_FLOW_H): Remove.
48503 (TREE_SSA_H): Add file names from tree-flow.h.
48504 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
48505 * tree.h: Remove tree-flow.h reference.
48506 * hash-table.h: Remove tree-flow.h reference.
48507 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
48508 reference with tree-ssa-loop.h.
48510 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48512 * doc/invoke.texi: Add -maltivec={be,le} options, and document
48513 default element-order behavior for -maltivec.
48514 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
48515 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
48516 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
48517 when targeting big endian, at least for now.
48518 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
48520 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48522 PR middle-end/47735
48523 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
48524 var satisfies use_register_for_decl, just take into account type
48525 alignment, rather than decl alignment.
48527 PR tree-optimization/59622
48528 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
48529 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
48530 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
48531 Don't devirtualize for inplace at all. For targets.length () == 1,
48532 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
48534 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48536 * config/i386/i386.md (cpu): Remove the unused btver1.
48538 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48540 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
48542 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48545 * tree-core.h (struct target_globals): New forward declaration.
48546 (struct tree_target_option): Add globals field.
48547 * tree.h (TREE_TARGET_GLOBALS): Define.
48548 (prepare_target_option_nodes_for_pch): New prototype.
48549 * target-globals.h (struct target_globals): Define even if
48550 !SWITCHABLE_TARGET.
48551 * tree.c (prepare_target_option_node_for_pch,
48552 prepare_target_option_nodes_for_pch): New functions.
48553 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
48554 * config/i386/i386.c: Include target-globals.h.
48555 (ix86_set_current_function): Instead of doing target_reinit
48556 unconditionally, use save_target_globals_default_opts and
48557 restore_target_globals.
48559 2014-01-09 Richard Biener <rguenther@suse.de>
48561 PR tree-optimization/59715
48562 * tree-cfg.h (split_critical_edges): Declare.
48563 * tree-cfg.c (split_critical_edges): Export.
48564 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
48566 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
48568 * cfgexpand.c (expand_stack_vars): Optionally disable
48569 asan stack protection.
48570 (expand_used_vars): Likewise.
48571 (partition_stack_vars): Likewise.
48572 * asan.c (asan_emit_stack_protection): Optionally disable
48573 after return stack usage.
48574 (instrument_derefs): Optionally disable memory access instrumentation.
48575 (instrument_builtin_call): Likewise.
48576 (instrument_strlen_call): Likewise.
48577 (asan_protect_global): Optionally disable global variables protection.
48578 * doc/invoke.texi: Added doc for new options.
48579 * params.def: Added new options.
48580 * params.h: Likewise.
48582 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48584 PR rtl-optimization/59724
48585 * ifcvt.c (cond_exec_process_if_block): Don't call
48586 flow_find_head_matching_sequence with 0 longest_match.
48587 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
48588 non-active insns if !stop_after.
48589 (try_head_merge_bb): Revert 2014-01-07 changes.
48591 2014-01-08 Jeff Law <law@redhat.com>
48593 * ree.c (get_sub_rtx): New function, extracted from...
48594 (merge_def_and_ext): Here.
48595 (combine_reaching_defs): Use get_sub_rtx.
48597 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
48599 * cgraph.h (varpool_variable_node): Do not choke on null node.
48601 2014-01-08 Catherine Moore <clm@codesourcery.com>
48603 * config/mips/mips.md (simple_return): Attempt to use JRC
48605 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
48607 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48609 PR rtl-optimization/59137
48610 * reorg.c (steal_delay_list_from_target): Call update_block for
48612 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
48614 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48616 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
48617 two duplicate entries.
48619 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48622 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
48624 * config/mips/mips.c (mips_truncated_op_cost): New function.
48625 (mips_rtx_costs): Adjust test for BADDU.
48626 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
48628 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
48630 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
48631 (*baddu_si): ...this new pattern.
48633 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48636 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
48638 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
48640 PR middle-end/57748
48641 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
48643 (expand_expr, expand_normal): Adjust.
48644 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
48645 inner_reference_p. Use inner_reference_p to expand inner references.
48646 (store_expr): Adjust.
48647 * cfgexpand.c (expand_call_stmt): Adjust.
48649 2014-01-08 Rong Xu <xur@google.com>
48651 * gcov-io.c (gcov_var): Move from gcov-io.h.
48652 (gcov_position): Ditto.
48653 (gcov_is_error): Ditto.
48654 (gcov_rewrite): Ditto.
48655 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
48656 only part to libgcc/libgcov.h.
48658 2014-01-08 Marek Polacek <polacek@redhat.com>
48660 PR middle-end/59669
48661 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
48663 2014-01-08 Marek Polacek <polacek@redhat.com>
48666 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
48668 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48670 PR rtl-optimization/59649
48671 * stor-layout.c (get_mode_bounds): For BImode return
48672 0 and STORE_FLAG_VALUE.
48674 2014-01-08 Richard Biener <rguenther@suse.de>
48676 PR middle-end/59630
48677 * gimple.h (is_gimple_builtin_call): Remove.
48678 (gimple_builtin_call_types_compatible_p): New.
48679 (gimple_call_builtin_p): New overload.
48680 * gimple.c (is_gimple_builtin_call): Remove.
48681 (validate_call): Rename to ...
48682 (gimple_builtin_call_types_compatible_p): ... this and export. Also
48683 check return types.
48684 (validate_type): New static function.
48685 (gimple_call_builtin_p): New overload and adjust.
48686 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
48687 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
48688 (gimple_fold_stmt_to_constant_1): Likewise.
48689 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
48691 2014-01-08 Richard Biener <rguenther@suse.de>
48693 PR middle-end/59471
48694 * gimplify.c (gimplify_expr): Gimplify register-register type
48695 VIEW_CONVERT_EXPRs to separate stmts.
48697 2014-01-07 Jeff Law <law@redhat.com>
48699 PR middle-end/53623
48700 * ree.c (combine_set_extension): Handle case where source
48701 and destination registers in an extension insn are different.
48702 (combine_reaching_defs): Allow source and destination registers
48703 in extension to be different under limited circumstances.
48704 (add_removable_extension): Remove restriction that the
48705 source and destination registers in the extension are the same.
48706 (find_and_remove_re): Emit a copy from the extension's
48707 destination to its source after the defining insn if
48708 the source and destination registers are different.
48710 PR middle-end/59285
48711 * ifcvt.c (merge_if_block): If we are merging a block with more than
48712 one successor with a block with no successors, remove any BARRIER
48713 after the second block.
48715 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
48717 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
48719 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
48722 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
48723 for 14-bit register offsets when INT14_OK_STRICT is false.
48725 2014-01-07 Roland Stigge <stigge@antcom.de>
48726 Michael Meissner <meissner@linux.vnet.ibm.com>
48729 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
48730 Only check TFmode for SPE constants. Don't check TImode or TDmode.
48732 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
48734 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
48737 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
48739 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
48740 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
48741 rtx is const0_rtx or not.
48743 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
48746 * target-globals.c (save_target_globals): Remove this_fn_optab
48748 * toplev.c: Include optabs.h.
48749 (target_reinit): Temporarily restore the global options if another
48750 set of options are in force.
48752 2014-01-07 Jakub Jelinek <jakub@redhat.com>
48754 PR rtl-optimization/58668
48755 * cfgcleanup.c (flow_find_cross_jump): Don't count
48756 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
48757 to determine what is counted.
48758 (flow_find_head_matching_sequence): Use active_insn_p to determine
48760 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
48762 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
48763 determine what is counted.
48765 PR tree-optimization/59643
48766 * tree-predcom.c (split_data_refs_to_components): If one dr is
48767 read and one write, determine_offset fails and the write isn't
48768 in the bad component, just put the read into the bad component.
48770 2014-01-07 Mike Stump <mikestump@comcast.net>
48771 Jakub Jelinek <jakub@redhat.com>
48774 * tree-core.h (struct tree_optimization_option): Change optabs
48775 type from unsigned char * to void *.
48776 * optabs.c (init_tree_optimization_optabs): Adjust
48777 TREE_OPTIMIZATION_OPTABS initialization.
48779 2014-01-06 Jakub Jelinek <jakub@redhat.com>
48782 * config/i386/i386.h (struct machine_function): Add
48783 no_drap_save_restore field.
48784 * config/i386/i386.c (ix86_save_reg): Use
48785 !cfun->machine->no_drap_save_restore instead of
48786 crtl->stack_realign_needed.
48787 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
48788 this function clears frame_pointer_needed. Set
48789 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
48790 and DRAP reg is needed.
48792 2014-01-06 Marek Polacek <polacek@redhat.com>
48795 * doc/implement-c.texi: Mention that other integer types are
48796 permitted as bit-field types in strictly conforming mode.
48798 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
48800 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
48801 is newly allocated.
48803 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
48805 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
48807 2014-01-06 Martin Jambor <mjambor@suse.cz>
48810 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
48812 * ipa-prop.c (ipa_print_node_params): Fix indentation.
48814 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
48818 * var-tracking.c (add_stores): Preserve the value of the source even if
48819 we don't record the store.
48821 2014-01-06 Terry Guo <terry.guo@arm.com>
48823 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
48825 2014-01-05 Iain Sandoe <iain@codesourcery.com>
48828 * config/darwin.c (darwin_function_section): Adjust return values to
48829 correspond to optimisation changes made in r206070.
48831 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
48833 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
48834 from prefetch_block tune setting.
48835 (nocona_cost): Correct size of prefetch block to 64.
48837 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
48839 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
48840 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
48841 used to save the static chain register in the computation of the offset
48842 from which the FP registers need to be restored.
48844 2014-01-04 Jakub Jelinek <jakub@redhat.com>
48846 PR tree-optimization/59519
48847 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
48848 ICE if get_current_def (current_new_name) is already non-NULL, as long
48849 as it is a phi result of some other phi in *new_exit_bb that has
48852 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
48853 or vmovdqu* for misaligned_operand.
48854 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
48855 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
48856 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
48857 aligned_mem for AVX512F masked aligned load and store builtins and for
48858 non-temporal moves.
48860 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
48862 PR tree-optimization/59651
48863 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
48864 Address range for negative step should be added by TYPE_SIZE_UNIT.
48866 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
48868 * config/m68k/m68k.c (handle_move_double): Handle pushes with
48869 overlapping registers also for registers other than the stack pointer.
48871 2014-01-03 Marek Polacek <polacek@redhat.com>
48874 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
48877 2014-01-03 Jakub Jelinek <jakub@redhat.com>
48880 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
48883 * config/i386/i386.md (MODE_SIZE): New mode attribute.
48884 (push splitter): Use <P:MODE_SIZE> instead of
48885 GET_MODE_SIZE (<P:MODE>mode).
48886 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
48887 (mov -1, reg peephole2): Likewise.
48888 * config/i386/sse.md (*mov<mode>_internal,
48889 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
48890 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
48891 *<code><mode>3, *andnot<mode>3<mask_name>,
48892 <mask_codefor><code><mode>3<mask_name>): Likewise.
48893 * config/i386/subst.md (mask_mode512bit_condition,
48894 sd_mask_mode512bit_condition): Likewise.
48896 2014-01-02 Xinliang David Li <davidxl@google.com>
48898 PR tree-optimization/59303
48899 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
48900 (dump_predicates): Better output format.
48901 (pred_equal_p): New function.
48902 (is_neq_relop_p): Ditto.
48903 (is_neq_zero_form_p): Ditto.
48904 (pred_expr_equal_p): Ditto.
48905 (pred_neg_p): Ditto.
48906 (simplify_pred): Ditto.
48907 (simplify_preds_2): Ditto.
48908 (simplify_preds_3): Ditto.
48909 (simplify_preds_4): Ditto.
48910 (simplify_preds): Ditto.
48911 (push_pred): Ditto.
48912 (push_to_worklist): Ditto.
48913 (get_pred_info_from_cmp): Ditto.
48914 (is_degenerated_phi): Ditto.
48915 (normalize_one_pred_1): Ditto.
48916 (normalize_one_pred): Ditto.
48917 (normalize_one_pred_chain): Ditto.
48918 (normalize_preds): Ditto.
48919 (normalize_cond_1): Remove function.
48920 (normalize_cond): Ditto.
48921 (is_gcond_subset_of): Ditto.
48922 (is_subset_of_any): Ditto.
48923 (is_or_set_subset_of): Ditto.
48924 (is_and_set_subset_of): Ditto.
48925 (is_norm_cond_subset_of): Ditto.
48926 (pred_chain_length_cmp): Ditto.
48927 (convert_control_dep_chain_into_preds): Type change.
48928 (find_predicates): Ditto.
48929 (find_def_preds): Ditto.
48930 (destroy_predicates_vecs): Ditto.
48931 (find_matching_predicates_in_rest_chains): Ditto.
48932 (use_pred_not_overlap_with_undef_path_pred): Ditto.
48933 (is_pred_expr_subset): Ditto.
48934 (is_pred_chain_subset_of): Ditto.
48935 (is_included_in): Ditto.
48936 (is_superset_of): Ditto.
48938 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48940 Update copyright years.
48942 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48944 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
48945 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
48946 config/arc/arc.md, config/arc/arc.opt,
48947 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
48948 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
48949 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
48950 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
48951 config/linux-protos.h, config/linux.c, config/winnt-c.c,
48952 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
48953 vtable-verify.c, vtable-verify.h: Use the standard form for the
48956 2014-01-02 Tobias Burnus <burnus@net-b.de>
48958 * gcc.c (process_command): Update copyright notice dates.
48959 * gcov-dump.c: Ditto.
48961 * doc/cpp.texi: Bump @copying's copyright year.
48962 * doc/cppinternals.texi: Ditto.
48963 * doc/gcc.texi: Ditto.
48964 * doc/gccint.texi: Ditto.
48965 * doc/gcov.texi: Ditto.
48966 * doc/install.texi: Ditto.
48967 * doc/invoke.texi: Ditto.
48969 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
48971 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
48973 2014-01-01 Jakub Jelinek <jakub@redhat.com>
48975 * config/i386/sse.md (*mov<mode>_internal): Guard
48976 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
48978 PR rtl-optimization/59647
48979 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
48980 new_rtx into UNSIGNED_FLOAT rtxes.
48982 Copyright (C) 2014 Free Software Foundation, Inc.
48984 Copying and distribution of this file, with or without modification,
48985 are permitted in any medium without royalty provided the copyright
48986 notice and this notice are preserved.