1 2014-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * doc/invoke.texi (ARM options): Remove mention of Advanced RISC
6 2014-12-19 Xingxing Pan <xxingpan@marvell.com>
8 * config/arm/cortex-a9-neon.md (cortex_a9_neon_vmov): Change
9 reservation to cortex_a9_neon_dp.
11 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
13 * config/sh/sh.c (prepare_move_operands): Split HI/QImode load/store
14 to two move insns via r0.
16 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
18 * config/sh/predicates.md (arith_or_int_operand): New predicate.
19 * config/sh/sh.md (addsi3): Use arith_or_int_operand for operand 2.
20 Return fail if operands[0] and operands[1] are overlap when
21 operands[2] is integer constant.
22 (*addsi3_compact): Make it define_insn_and_split which splits
23 reg0 := reg1 + constant to reg0 = constant and reg0 := reg0 + reg1.
25 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
27 * config/sh/sh-protos.h (sh_movsf_ie_ra_split_p): Declare.
28 * config/sh/sh.c (sh_movsf_ie_ra_split_p): New function.
29 * config/sh/sh.md (movsi_ie): Use "mr" constraint for the 8-th
30 altarnative of operand 0.
31 (movesf_ie): Use "X" constraint instead of "Bsc".
32 (movsf_ie_ra): New insn_and_split.
33 (movsf): Use movsfie_ra when lra_in_progress is true.
35 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
37 * config/sh/predicates.md (general_movsrc_operand): Allow only
38 valid plus address expressions.
39 (general_movdst_operand): Likewise.
40 (t_reg_operand): Allow (zero_extend (reg t)).
41 * config/sh/sh-protos.h (sh_hard_regno_caller_save_mode): Declare.
42 * config/sh/sh.c (sh_hard_regno_caller_save_mode): New function.
43 (sh_secondary_reload): Return NO_REGS instead of FPUL_REGS in one
45 * config/sh/sh.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
46 * config/sh/sh.md (untyped_call): Clobber function value
47 registers before call.
49 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
51 * config/sh/sh.c (sh_lra_p): New function.
52 (TARGET_LRA_P): Define.
53 (sh_legitimize_reload_address): Return false if sh_lra_p is true.
54 * config/sh/sh.opt (mlra): New option.
56 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
58 * lra-constraints.c (process_address_1): Try if target can split
59 displacement with targetm.legitimize_address_displacement.
60 * target.def (legitimize_address_displacement): New hook.
61 * targhooks.c (default_legitimize_address_displacement): New function.
62 * targhooks.h (default_legitimize_address_displacement): Declare.
63 * config/sh/sh.c (sh_legitimize_address_displacement): New function.
64 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
65 * doc/tm.texi.in (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): New hook.
66 * doc/tm.texi: Regenerate.
68 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
70 * lra-constraints.c (get_equiv): Don't return memory equivalence
71 when targetm.cannot_substitute_mem_equiv_p is true.
72 * target.def (cannot_substitute_mem_equiv_p): New hook.
73 * config/sh/sh.c (sh_cannot_substitute_mem_equiv_p): New function.
74 (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
75 * doc/tm.texi.in (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): New hook.
76 * doc/tm.texi: Regenerate.
78 2014-12-19 Kaz Kojima <kkojima@gcc.gnu.org>
80 * lra-constraints.c (process_address_1): Swap base_term and
81 index_term if INDEX_REG_CLASS is assigned to base_term already
82 when INDEX_REG_CLASS is a single register class.
84 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
86 * lra-constraints.c (lra-constraints.c): Exchange places of sclass
89 2014-12-18 Vladimir Makarov <vmakarov@redhat.com>
91 PR rtl-optimization/64291
92 * lra-remat.c (bad_for_rematerialization_p): Add UNPSEC_VLOATILE.
93 (create_cands): Process only output reload insn with potential
96 2014-12-18 H.J. Lu <hongjiu.lu@intel.com>
98 * config/i386/i386.c (ix86_expand_call): Skip setting up RAX
99 register for -mskip-rax-setup when there are no parameters
100 passed in vector registers.
101 * config/i386/i386.opt (mskip-rax-setup): New option.
102 * doc/invoke.texi: Document -mskip-rax-setup.
104 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
106 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): Handle shift
107 by 64 by moving const0_rtx.
108 (aarch64_ushr_simddi): Delete.
110 * config/aarch64/aarch64.md (enum unspec): Delete UNSPEC_USHR64.
112 2014-12-18 Alan Lawrence <alan.lawrence@arm.com>
114 * config/aarch64/aarch64.md (enum "unspec"): Remove UNSPEC_SSHR64.
116 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): Change shift
117 amount to 63 if was 64.
118 (aarch64_sshr_simddi): Remove.
120 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
122 * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
124 (aarch64_min_divisions_for_recip_mul): New function.
126 2014-12-18 Wilco Dijkstra <wilco.dijkstra@arm.com>
128 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
130 * gcc/config/aarch64/aarch64.c (generic_tunings): Add code alignment
132 (cortexa53_tunings): Likewise.
133 (cortexa57_tunings): Likewise.
134 (thunderx_tunings): Likewise.
135 (aarch64_override_options): Use new alignment tunings.
137 2014-12-18 Martin Liska <mliska@suse.cz>
139 PR tree-optimization/64330
140 * ipa-icf.c (sem_variable::parse): Add checking
141 for externally visible symbols and do not introduce
142 an alias for an external declaration.
144 2014-12-18 Jan Hubicka <hubicka@ucw.cz>
147 * tree-inline.c (remap_gimple_stmt): Handle gimple_call_from_thunk_p
150 2014-12-18 Martin Liska <mliska@suse.cz>
153 * ipa-icf.c (sem_function::merge): Check for
154 decl_binds_to_current_def_p is newly added to merge operation.
156 2014-12-18 Bin Cheng <bin.cheng@arm.com>
158 PR tree-optimization/62178
159 * tree-ssa-loop-ivopts.c (cheaper_cost_with_cand): New function.
160 (iv_ca_replace): New function.
161 (try_improve_iv_set): New parameter try_replace_p.
162 Break local optimal fixed-point by calling iv_ca_replace.
163 (find_optimal_iv_set_1): Pass new argument to try_improve_iv_set.
165 2014-12-17 Dehao Chen <dehao@google.com>
167 * auto-profile.c (afdo_annotate_cfg): Invoke update_ssa in the right
169 (auto_profile): Recompute inline summary after processing cgraph node.
171 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
174 * config/sh/sh_treg_combine.cc (is_conditional_insn): New function.
175 (cbranch_trace): Add member rtx* condition_rtx_in_insn, initialize it
176 accordingly in constructor.
177 (cbranch_trace::branch_condition_rtx_ref): New function.
178 (cbranch_trace::branch_condition_rtx): Use branch_condition_rtx_ref.
179 (sh_treg_combine::try_invert_branch_condition): Invert condition rtx
180 in insn using reversed_comparison_code and validate_change instead of
182 (sh_treg_combine::execute): Look for conditional insns in basic blocks
183 in addition to conditional branches.
184 * config/sh/sh.md (*movsicc_div0s): Remove combine patterns.
186 2014-12-17 Oleg Endo <olegendo@gcc.gnu.org>
189 * config/sh/sh_treg_combine.cc (sh_treg_combine::try_optimize_cbranch):
190 Combine ccreg inversion and cbranch into inverted cbranch.
192 2014-12-17 Vladimir Makarov <vmakarov@redhat.com>
194 * lra-constraints.c (process_alt_operands): Remove non
195 allocatable hard regs when considering
196 ira_prohibited_class_mode_regs.
198 2014-12-17 Jan Hubicka <hubicka@ucw.cz>
200 * sreal.h (sreal::normalize): Implement inline.
201 (sreal::normalize_up): New function.
202 (sreal::normalize_down): New function.
203 * sreal.c (sreal::normalize): Remove.
205 2014-12-17 James Greenhalgh <james.greenhalgh@arm.com>
207 * config/aarch64/aarch64.md (generic_sched): Delete it.
209 2014-12-17 Jan-Benedict Glaw <jbglaw@lug-owl.de>
211 * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
212 unused argument warning.
214 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
216 * dwarf2out.h (struct array_descr_info): Remove the base_decl field.
217 * dwarf2out.c (enum dw_scalar_form): New.
218 (struct loc_descr_context): New.
219 (add_scalar_info): New.
220 (add_bound_info): Add a context parameter. Use add_scalar_info.
221 (loc_list_from_tree): Add a context parameter. Handle PLACEHOLDER_EXPR
222 nodes for type-related expressions. Likewise for base declarations.
223 (loc_descriptor_from_tree): Add a context parameter.
224 (subrange_type_die): Update calls to add_bound_info.
225 (tls_mem_loc_descriptor): Likewise.
226 (loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
227 parameter. Update calls to loc_list_from_tree.
228 (add_subscript_info): Update calls to add_bound_info.
229 (gen_array_type_die): Update calls to loc_list_from_tree and to
231 (descr_info_loc): Remove.
232 (add_descr_info_field): Remove.
233 (gen_descr_array_type_die): Switch add_descr_info_field calls into
234 add_scalar_info/add_bound_info ones.
235 (gen_subprogram_die): Update calls to loc_list_from_tree.
236 (gen_variable_die): Likewise.
238 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
240 * dwarf2out.c (print_loc_descr): New.
242 (print_attribute): New.
243 (print_loc_descr): New.
244 (print_die): Use print_dw_val.
245 (debug_dwarf_loc_descr): New.
246 * dwarf2out.h (debug_dwarf_loc_descr): New declaration.
248 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
250 * dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
251 even when (dwarf_version < 3 && dwarf_strict).
252 (gen_descr_array_die): Do not output DW_AT_data_locationn,
253 DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
254 attributes when (dwarf_version < 3 && dwarf_strict).
256 2014-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
258 * dwarf2out.h (enum array_descr_ordering): New.
259 (array_descr_dimen): Add a bounds_type structure field.
260 (struct array_descr_info): Add a field to hold index type information
261 and another one to hold ordering information.
262 * dwarf2out.c (gen_type_die_with_usage): Get the main variant before
263 invoking the array descriptor language hook. Initialize the
264 array_descr_info structure before calling the lang-hook.
265 (gen_descr_array_type_die): Use gen_type_die if not processing the main
266 type variant. Replace Fortran-specific code with generic one using
267 this new field. Add a GNAT descriptive type, if any. Output type
268 information for the array bound subrange, if any.
270 2014-12-17 H.J. Lu <hongjiu.lu@intel.com>
271 Jakub Jelinek <jakub@redhat.com>
272 Uros Bizjak <ubizjak@gmail.com>
275 * config/i386/i386-opts.h (ix86_align_data): New enum.
276 * config/i386/i386.c (ix86_data_alignment): Return the ABI
277 alignment value for -malign-data=abi, the cachine line size
278 for -malign-data=cacheline and the older GCC compatible
279 alignment value for for -malign-data=compat.
280 * config/i386/i386.opt (malign-data=): New.
281 * doc/invoke.texi: Document -malign-data=.
283 2014-12-17 Marek Polacek <polacek@redhat.com>
286 * match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
288 2014-12-17 Jakub Jelinek <jakub@redhat.com>
290 PR tree-optimization/64322
291 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
292 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
294 2014-12-17 Tobias Burnus <burnus@net-b.de>
297 * flag-types.h (gfc_init_local_real, gfc_fcoarray,
298 gfc_convert): New enums; moved from fortran/.
300 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
302 * fibonacci_heap.h (min): Return m_data instead of non-existing data.
304 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
306 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
307 return values of const calls as constants.
308 (estimate_function_body_sizes): Expect calls to have false predicates.
310 2014-12-16 Jan Hubicka <hubicka@ucw.cz>
312 * hwint.c (abs_hwi, absu_hwi): Move to ...
313 * hwint.h (abs_hwi, absu_hwi): ... here; make inline.
315 2014-12-16 Marek Polacek <polacek@redhat.com>
318 * match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
319 ((1 << A) & 1) == 0 -> A != 0.
321 2014-12-16 Richard Biener <rguenther@suse.de>
323 * genmatch.c (parser::parser): Initialize capture_ids.
324 (parser::parse_pattern): Properly allocate capture_ids before
325 using them. Set capture_ids to zero when its lifetime is
327 (parser::parse_simplify): Allocate capture_ids only if
330 2014-12-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
332 * sreal.c: Include math.h later.
334 2014-12-16 Felix Yang <felix.yang@huawei.com>
336 PR rtl-optimization/64240
337 * ddg.c (mark_mem_use): Check *iter instead of *x.
339 2014-12-16 Martin Liska <mliska@suse.cz>
342 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
344 2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
346 * config/i386/i386.c (ix86_address_cost): Add explicit restriction
347 to RTL level for the check for PIC register.
349 2014-12-16 Uros Bizjak <ubizjak@gmail.com>
351 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ...
352 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ...
353 * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here.
355 2014-12-16 Chung-Ju Wu <jasonwucj@gmail.com>
358 * config/nds32/nds32.md (casesi_internal): Add '=r' for clobber
361 2014-12-15 DJ Delorie <dj@redhat.com>
363 * config/rl78/rl78.h: Remove SHORT_IMMEDIATES_SIGN_EXTEND.
365 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
368 * tree-streamer.c (preload_common_nodes): Skip preloading
369 of main_identifier_node, pid_type and optimization/option nodes.
371 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
373 PR rtl-optimization/63397
374 * ira-int.h (ira_overall_cost, ira_reg_cost, ira_mem_cost): Use
376 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
377 * ira.c (ira_overall_cost, ira_overall_cost_before): Ditto.
378 (ira_reg_cost, ira_mem_cost): Ditto.
379 (ira_load_cost, ira_store_cost, ira_shuffle_cost): Ditto.
380 (calculate_allocation_cost, do_reload): Use the right
381 format for int64_t values.
383 2014-12-15 Jan Hubicka <hubicka@ucw.cz>
385 * sreal.h (to_double): New method.
386 (shift): Do not ICE on 0.
387 * sreal.c: Include math.h
388 (sreal::to_double): New.
390 2014-12-15 Jakub Jelinek <jakub@redhat.com>
392 PR rtl-optimization/64316
393 * simplify-rtx.c (simplify_relational_operation_1): For
394 (eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
395 CONST0_RTX instead of const0_rtx.
397 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
400 * ira.c (rtx_moveable_p): Prevent UNSPEC_VOLATILE moves.
402 2014-12-15 Vladimir Makarov <vmakarov@redhat.com>
404 * ira-int.h (ira_prohibited_class_mode_regs): Remove.
405 (struct target_ira_int): Move x_ira_prohibited_class_mode_regs to
407 * ira.h (struct target_ira): ... here.
408 (ira_prohibited_class_mode_regs): Define.
409 * lra-constraints.c (process_alt_operands): Add one more condition
410 to refuse alternative when reload pseudo of given class can not
411 hold value of given mode.
413 2014-12-15 Richard Biener <rguenther@suse.de>
415 PR tree-optimization/64312
416 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Use
417 vuse_ssa_val as callback to walk_non_aliased_vuses.
418 (vn_reference_lookup): Likewise.
420 2014-12-15 Segher Boessenkool <segher@kernel.crashing.org>
422 * gcc/config/rs6000/rs6000.md (*add>mode>3_imm_dot,
423 *add<mode>3_imm_dot2): Change the constraint for the second
424 alternative for operand 1 from "r" to "b".
426 2014-12-15 Richard Biener <rguenther@suse.de>
428 * vec.h (vec::safe_grow): Guard against a grow to zero size.
430 2014-12-15 Richard Biener <rguenther@suse.de>
433 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
434 fold_binary to compute the constant to multiply with.
436 2014-12-15 Richard Biener <rguenther@suse.de>
439 * cfgloop.c (mark_loop_for_removal): Make safe against multiple
440 invocations on the same loop.
442 2014-12-15 Marek Polacek <polacek@redhat.com>
445 * fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
447 2014-12-15 Renlin Li <renlin.li@arm.com>
449 * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
450 (CTZ_DEFINED_VALUE_AT_ZERO): Update to support more modes.
452 2014-12-15 Jakub Jelinek <jakub@redhat.com>
455 * tsan.c (instrument_func_entry): Insert __tsan_func_entry
456 call on edge from entry block to single succ instead
457 of after labels of single succ of entry block.
459 2014-12-15 Richard Biener <rguenther@suse.de>
461 PR tree-optimization/64284
462 * tree-ssa-threadupdate.c (duplicate_seme_region): Mark
463 the loop for removal if we copied the loop header.
465 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
468 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Return bool.
469 * ipa.c (set_writeonly_bit): Track if reference was removed.
470 (ipa_discover_readonly_nonaddressable_vars): Return true if any
471 references was removed.
472 * ipa-reference.c (propagate): Return TODO_remove_functions if
473 reference was removed.
475 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
477 * ipa.c (process_references): Fix conditoinal on flag_optimize
479 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
482 * symtab.c (symbol_table::insert_to_assembler_name_hash
483 symbol_table::unlink_from_assembler_name_hash): Do not ICE when
484 DECL_ASSEMBLER_NAME is NULL.
486 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
488 * cgraphunit.c (analyze_functions): Always analyze targets of aliases.
490 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
493 * tree.c (virtual_method_call_p): Return false when OTR type has
496 2014-12-14 Jan Hubicka <hubicka@ucw.cz>
498 * cgraphunit.c (analyze_functions): Do not analyze extern inline
499 funtions when not optimizing; skip comdat locals.
501 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
503 PR rtl-optimization/64037
504 * combine.c (setup_incoming_promotions): Pass the argument
505 before any promotions happen to promote_function_mode.
507 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
509 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGN): Define as a C statment.
511 2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
514 * lra-constraints.c (process_alt_operands): Refuse alternative
515 when reload pseudo of given class can not hold value of given
518 2014-12-12 Thomas Schwinge <thomas@codesourcery.com>
520 * gimple-walk.c (walk_gimple_op) <GIMPLE_OMP_FOR>: Also check
521 intermediate walk_tree results for for_incr.
522 <GIMPLE_OMP_TARGET>: Walk child_fn and data_arg, too.
523 <GIMPLE_OMP_CRITICAL, GIMPLE_OMP_ATOMIC_STORE>: Pretty printing.
525 2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
528 * wide-int.h (wi::div_round, wi::mod_round): Fix rounding of tied
530 * double-int.c (div_and_round_double): Fix handling of unsigned
531 cases. Use same rounding approach as wide-int.h.
533 2014-12-12 Marek Polacek <polacek@redhat.com>
536 * fold-const.c (fold_binary_loc): Add ANY_INTEGRAL_TYPE_P check.
538 2014-12-12 Jakub Jelinek <jakub@redhat.com>
540 PR tree-optimization/64269
541 * tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
542 len2 or diff are too large.
544 2014-12-12 Richard Biener <rguenther@suse.de>
547 * tree-cfg.c (replace_uses_by): Guard assert properly.
549 2014-12-12 Anthony Green <green@moxielogic.com>
551 * config/moxie/moxie.md: Add use of zex instruction.
553 2014-12-12 Marc Glisse <marc.glisse@inria.fr>
555 * real.h (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
556 HONOR_SIGN_DEPENDENT_ROUNDING): Replace macros with 3 overloaded
558 * real.c (HONOR_NANS): Fix indentation.
559 (HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
560 HONOR_SIGN_DEPENDENT_ROUNDING): Define three overloads.
561 * builtins.c (fold_builtin_cproj, fold_builtin_signbit,
562 fold_builtin_fmin_fmax, fold_builtin_classify): Simplify argument
564 * fold-const.c (operand_equal_p, fold_comparison, fold_binary_loc):
566 * gimple-fold.c (gimple_val_nonnegative_real_p): Likewise.
567 * ifcvt.c (noce_try_move, noce_try_minmax, noce_try_abs): Likewise.
568 * omp-low.c (omp_reduction_init): Likewise.
569 * rtlanal.c (may_trap_p_1): Likewise.
570 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
571 * tree-ssa-dom.c (record_equality, record_edge_info): Likewise.
572 * tree-ssa-phiopt.c (value_replacement, abs_replacement): Likewise.
573 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
574 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
576 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
578 * ipa-inline.c (ipa_inline): Fix condition on when
579 TODO_remove_unreachable_functions is needed.
581 2014-12-12 Jan Hubicka <hubicka@ucw.cz>
583 * ipa-devirt.c (possible_polymorphic_call_targets): Return early
584 if otr_type has no BINFO.
586 2014-12-12 Zhenqiang Chen <zhenqiang.chen@arm.com>
588 PR rtl-optimization/63917
589 * ifcvt.c (cc_in_cond): New function.
590 (end_ifcvt_sequence): Make sure new generated insns do not clobber CC.
591 (noce_process_if_block, check_cond_move_block): Check CC references.
593 2014-12-11 Andrew Pinski <apinski@cavium.com>
595 * config/aarch64/aarch64-protos.h (tune_params): Add align field.
596 * config/aarch64/aarch64.c (generic_tunings): Specify align.
597 (cortexa53_tunings): Likewise.
598 (cortexa57_tunings): Likewise.
599 (thunderx_tunings): Likewise.
600 (aarch64_override_options): Set align_loops, align_jumps,
601 align_functions based on what the tuning struct.
603 2014-12-11 Eric Botcazou <ebotcazou@adacore.com>
605 * doc/md.texi (Insn Lengths): Fix description of (pc).
607 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
610 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
611 * ipa-chkp.c (chkp_produce_thunks): Use TODO_remove_functions.
612 * cgraphunit.c (symbol_table::process_new_functions): Add
613 IPA_SSA_AFTER_INLINING.
614 (ipa_passes): Update call of remove_unreachable_nodes.
615 (symbol_table::compile): Remove call of remove_unreachable_nodes.
616 * ipa-inline.c (inline_small_functions): Do not ICE with
618 (ipa_inline): Update symtab->state; fix formatting
619 update call of remove_unreachable_nodes.
620 * passes.c (execute_todo): Update call of remove_unreachable_nodes.
621 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
622 * cgraph.h (enum symtab_state): Add IPA_SSA_AFTER_INLINING.
623 (remove_unreachable_nodes): Update.
624 * ipa.c (process_references): Keep external references only
626 (walk_polymorphic_call_targets): Keep possible polymorphic call
627 target only when devirtualizing.
628 (symbol_table::remove_unreachable_nodes): Remove BEFORE_INLINING_P
630 (ipa_single_use): Update comment.
631 * ipa-pure-const.c (cdtor_p): New function.
632 (propagate_pure_const): Track if some cdtor was turned pure/const.
633 (execute): Return TODO_remove_functions if needed.
634 * ipa-comdats.c (ipa_comdats): Update comment.
636 2014-12-11 Aldy Hernandez <aldyh@redhat.com>
638 * dwarf2out.c (gen_lexical_block_die): Remove unused `depth'
640 (gen_inlined_subroutine_die): Same.
641 (gen_block_die): Same.
642 (decls_for_scope): Same.
644 2014-12-11 Renlin Li <renlin.li@arm.com>
646 * config/aarch64/aarch64-cores.def: Change all AARCH64_FL_FPSIMD to
647 AARCH64_FL_FOR_ARCH8.
648 * config/aarch64/aarch64.c (all_cores): Use FLAGS from
649 aarch64-cores.def file only.
651 2014-12-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
654 * diagnostic.c (diagnostic_action_after_output): Make it extern.
655 Take diagnostic_t argument instead of diagnostic_info. Count also
656 DK_WERROR towards max_errors.
657 (diagnostic_report_diagnostic): Update call according to the above.
658 (error_recursion): Likewise.
659 * diagnostic.h (diagnostic_action_after_output): Declare.
660 * pretty-print.c (pp_formatted_text_data): Delete.
661 (pp_append_r): Call output_buffer_append_r.
662 (pp_formatted_text): Call output_buffer_formatted_text.
663 (pp_last_position_in_text): Call output_buffer_last_position_in_text.
664 * pretty-print.h (output_buffer_formatted_text): New.
665 (output_buffer_append_r): New.
666 (output_buffer_last_position_in_text): New.
668 2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com
670 * config/aarch64/aarch64.c (aarch64_parse_extension): Update error
671 message to say +no only when removing extension.
673 2014-12-11 Andrew MacLeod <amacleod@redhat.com>
675 * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list
676 for generator file. Add comment indicating it is a generated file.
677 * config/tilepro/mul-tables.c: Update generated file.
678 * config/tilegx/mul-tables.c: Likewise.
680 2014-12-11 Segher Boessenkool <segher@kernel.crashing.org>
682 * combine.c (try_combine): Do not allow combining a PARALLEL I2
683 with a register move I3 if that I2 is an asm.
685 2014-12-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
687 * config/arm/arm_neon.h (vrndqn_f32): Rename to...
688 (vrndnq_f32): ... this.
689 (vrndqa_f32): Rename to...
690 (vrndaq_f32): ... this.
691 (vrndqp_f32): Rename to...
692 (vrndpq_f32): ... this.
693 (vrndqm_f32): Rename to...
694 (vrndmq_f32): ... this.
695 (vrndx_f32): New intrinsic.
696 (vrndxq_f32): Likewise.
698 2014-12-11 Marek Polacek <polacek@redhat.com>
700 * fold-const.c (fold_negate_expr): Add ANY_INTEGRAL_TYPE_P check.
701 (extract_muldiv_1): Likewise.
702 (maybe_canonicalize_comparison_1): Likewise.
703 (fold_comparison): Likewise.
704 (tree_binary_nonnegative_warnv_p): Likewise.
705 (tree_binary_nonzero_warnv_p): Likewise.
706 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Likewise.
707 * tree-scalar-evolution.c (simple_iv): Likewise.
708 (scev_const_prop): Likewise.
709 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
710 * tree-vect-generic.c (expand_vector_operation): Likewise.
711 * tree.h (ANY_INTEGRAL_TYPE_CHECK): Define.
712 (ANY_INTEGRAL_TYPE_P): Define.
713 (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED, TYPE_OVERFLOW_TRAPS):
714 Add ANY_INTEGRAL_TYPE_CHECK.
715 (any_integral_type_check): New function.
717 2014-12-11 Tobias Burnus <burnus@net-b.de>
718 Manuel López-Ibáñez <manu@gcc.gnu.org>
720 * error.c (gfc_get_terminal_width): Renamed from
721 get_terminal_width and use same-named common function.
722 (gfc_error_init_1): Update call.
724 2014-12-10 Aldy Hernandez <aldyh@redhat.com>
726 * gdbhooks.py (class DWDieRefPrinter): New class.
727 (build_pretty_printer): Register dw_die_ref's.
729 2014-12-10 Ilya Tocar <ilya.tocar@intel.com>
731 * config.gcc: Support "knl".
732 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knl".
733 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
735 * config/i386/i386.c (m_KNL): Define.
736 (processor_target_table): Add "knl".
738 (ix86_issue_rate): Add PROCESSOR_KNL.
739 (ix86_adjust_cost): Ditto.
740 (ia32_multipass_dfa_lookahead): Ditto.
741 (get_builtin_code_for_version): Handle "knl".
742 (fold_builtin_cpu): Ditto.
743 * config/i386/i386.h (TARGET_KNL): Define.
744 (processor_type): Add PROCESSOR_KNL.
745 * config/i386/i386.md (attr "cpu"): Add knl.
746 * config/i386/x86-tune.def: Add m_KNL.
748 2014-12-10 Jan Hubicka <hubicka@ucw.cz>
750 * doc/invoke.texi: (-devirtualize-at-ltrans): Document.
751 * lto-cgraph.c (lto_output_varpool_node): Mark initializer as removed
752 when it is not streamed to the given ltrans.
753 (compute_ltrans_boundary): Make code adding all polymorphic
754 call targets conditional with !flag_wpa || flag_ltrans_devirtualize.
755 * common.opt (fdevirtualize-at-ltrans): New flag.
757 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
759 * varpool.c (varpool_node::get_create): Force output of vars with
760 "omp declare target" attribute.
762 2014-12-10 Marc Glisse <marc.glisse@inria.fr>
764 * real.h (HONOR_NANS): Replace macro with 3 overloaded declarations.
765 * real.c: Include rtl.h and options.h.
766 (HONOR_NANS): Define three overloads.
767 * builtins.c (fold_builtin_classify, fold_builtin_unordered_cmp):
768 Simplify argument of HONOR_NANS.
769 * fold-const.c (combine_comparisons, fold_truth_not_expr,
770 fold_cond_expr_with_comparison, merge_truthop_with_opposite_arm,
771 fold_comparison, fold_binary_loc): Likewise.
772 * ifcvt.c (noce_try_move, noce_try_minmax): Likewise.
773 * ipa-inline-analysis.c (add_clause,
774 set_cond_stmt_execution_predicate): Likewise.
775 * match.pd: Likewise.
776 * rtlanal.c (may_trap_p_1): Likewise.
777 * simplify-rtx.c (simplify_const_relational_operation): Likewise.
778 * tree-if-conv.c (parse_predicate): Likewise.
779 * tree-ssa-ccp.c (valid_lattice_transition): Likewise.
780 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
781 * tree-ssa-phiopt.c (minmax_replacement, neg_replacement): Likewise.
782 * tree-ssa-reassoc.c (eliminate_using_constants): Likewise.
783 * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
785 2014-12-10 Jakub Jelinek <jakub@redhat.com>
787 PR tree-optimization/62021
788 * omp-low.c (simd_clone_adjust_return_type): Use
789 vector of pointer_sized_int_node types instead vector of pointer
791 (simd_clone_adjust_argument_types): Likewise.
793 2014-12-10 Jakub Jelinek <jakub@redhat.com>
794 Evgeny Stupachenko <evstupac@gmail.com>
797 * config/i386/i386.c (expand_vec_perm_pblendv): If not testing_p,
798 set dcopy.target to a new pseudo.
800 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
802 * config/rs6000/rs6000.md (*add<mode>3): Remove condition.
804 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
806 * config/rs6000/40x.md (ppc403-compare): Remove "compare".
807 config/rs6000/440.md (ppc440-compare): Remove "compare".
808 config/rs6000/476.md (ppc476-compare): Remove "compare".
809 config/rs6000/601.md (ppc601-compare): Remove "compare".
810 config/rs6000/603.md (ppc603-compare): Remove "compare".
811 config/rs6000/6xx.md (ppc604-compare): Remove "compare".
812 config/rs6000/7450.md (ppc7450-compare): Remove "compare".
813 config/rs6000/7xx.md (ppc750-compare): Remove "compare".
814 config/rs6000/8540.md (ppc8540_su): Remove "compare".
815 config/rs6000/cell.md (cell-fast-cmp, cell-cmp-microcoded): Remove
817 config/rs6000/e300c2c3.md (ppce300c3_cmp): Remove "compare".
818 config/rs6000/e500mc.md (e500mc_su): Remove "compare".
819 config/rs6000/e500mc64.md (e500mc64_su2): Remove "compare".
820 config/rs6000/e5500.md (e5500_sfx2): Remove "compare".
821 config/rs6000/e6500.md (e6500_sfx2): Remove "compare".
822 config/rs6000/mpc.md (mpccore-compare): Remove "compare".
823 config/rs6000/power4.md (power4-compare): Remove "compare".
824 config/rs6000/power5.md (power5-compare): Remove "compare".
825 config/rs6000/power6.md (power6-compare): Remove "compare".
826 config/rs6000/power7.md (power7-compare): Remove "compare".
827 config/rs6000/power8.md (power8-compare): Remove "compare". Update
829 config/rs6000/rs6000.c (rs6000_adjust_cost) <TYPE_COMPARE>: Remove
831 (is_cracked_insn): Remove TYPE_COMPARE case.
832 (insn_must_be_first_in_group) <TYPE_COMPARE>: Remove (twice).
833 config/rs6000/rs6000.md (type): Remove "compare".
834 (cell_micro): Remove "compare".
835 config/rs6000/rs64.md (rs64a-compare): Remove "compare".
837 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
839 * config/rs6000/rs6000.md (*anddi3_2rld_dot, *anddi3_rld_dot2):
840 Change type from "compare" to "two".
842 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
845 * config/rs6000/predicates.md (unsigned_comparison_operator): New.
846 (signed_comparison_operator): New.
847 * config/rs6000/rs6000-protos.h (rs6000_emit_eqne): Declare.
848 * config/rs6000/rs6000.c (rs6000_emit_eqne): New function.
849 (rs6000_emit_sCOND): Remove ISEL test (move it to the expander).
850 * config/rs6000/rs6000.md (add<mode>3 for SDI): Expand DImode
851 add to addc,adde directly, if !TARGET_POWERPC64.
852 (sub<mode>3 for SDI): Expand DImode sub to subfc,subfe directly,
853 if !TARGET_POWERPC64.
854 (neg<mode>2): Delete expander.
855 (*neg<mode>2): Rename to "neg<mode>2".
856 (addti3, subti3): Delete.
857 (addti3, subti3): New expanders.
858 (*adddi3_noppc64, *subdi3_noppc64, *negdi2_noppc64): Delete.
859 (cstore<mode>4_unsigned): New expander.
860 (cstore<mode>4): Allow GPR as output (not just SI). Rewrite.
861 (cstore<mode>4 for FP): Remove superfluous quotes.
862 (*eq<mode>, *eq<mode>_compare, *plus_eqsi and splitter,
863 *compare_plus_eqsi and splitter, *plus_eqsi_compare and splitter,
864 *neg_eq0<mode>, *neg_eq<mode>, *ne0_<mode>, plus_ne0_<mode>,
865 compare_plus_ne0_<mode> and splitter, *compare_plus_ne0_<mode>_1 and
866 splitter, *plus_ne0_<mode>_compare and splitter, *leu<mode>,
867 *leu<mode>_compare and splitter, *plus_leu<mode>, *neg_leu<mode>,
868 *and_neg_leu<mode>, *ltu<mode>, *ltu<mode>_compare, *plus_ltu<mode>,
869 *plus_ltu<mode>_1, *plus_ltu<mode>compare, *neg_ltu<mode>, *geu<mode>,
870 *geu<mode>_compare and splitter, *plus_geu<mode>, *neg_geu<mode>,
871 *and_neg_geu<mode>, *plus_gt0<mode>, *gtu<mode>, *gtu<mode>_compare,
872 *plus_gtu<mode>, *plus_gtu<mode>_1, *plus_gtu<mode>_compare,
873 *neg_gtu<mode>, 12 anonymous insns, and 12 anonymous splitters):
875 (eq<mode>3, ne<mode>3): New.
876 (*neg_eq_<mode>, *neg_ne_<mode>): New.
877 (*plus_eq_<mode>, *plus_ne_<mode>): New.
878 (*minus_eq_<mode>, *minus_ne_<mode>): New.
880 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
883 * config/rs6000/predicates.md (adde_operand): New.
884 * config/rs6000/rs6000.md (add<mode>3_carry): New.
885 (*add<mode>3_imm_carry_pos): New.
886 (*add<mode>3_imm_carry_0): New.
887 (*add<mode>3_imm_carry_m1): New.
888 (*add<mode>3_imm_carry_neg): New.
889 (add<mode>3_carry_in): New.
890 (*add<mode>3_carry_in_internal): New.
891 (add<mode>3_carry_in_0): New.
892 (add<mode>3_carry_in_m1): New.
893 (subf<mode>3_carry): New.
894 (*subf<mode>3_imm_carry_0): New.
895 (*subf<mode>3_imm_carry_m1): New.
896 (subf<mode>3_carry_in): New.
897 (*subf<mode>3_carry_in_internal): New.
898 (subf<mode>3_carry_in_0): New.
899 (subf<mode>3_carry_in_m1): New.
900 (subf<mode>3_carry_in_xx): New.
902 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
905 * config/rs6000/rs6000.md (*add<mode>3_internal1): Rename to
907 (*add<mode>3_internal2, *add<mode>3_internal3, and (their splitters):
909 (*add<mode>3_dot, *add<mode>3_dot2): New.
910 (*add<mode>3_imm_dot, *add<mode>3_imm_dot2): New.
912 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
915 * config/rs6000/rs6000.md (*add<mode>3_internal1): Remove addic
918 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
921 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
922 *ctr<mode>_internal5, *ctr<mode>_internal6): Change "r" alternatives
923 to "b". Increase length.
924 (splitters for these): Split to cmp+addi instead of addic.
926 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
929 * config/rs6000/darwin.md (macho_low_si): Remove "r" alternative.
930 (macho_low_di): Ditto.
931 * config/rs6000/rs6000.md (*largetoc_low): Ditto.
932 (tocref<mode>): Ditto.
934 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0_elf_low_be): Ditto.
935 (mov_si<mode>_e500_subreg0_elf_low_le): Ditto.
936 (mov_si<mode>_e500_subreg4_elf_low_be): Ditto. Reformat condition.
937 (mov_si<mode>_e500_subreg4_elf_low_le): Ditto.
939 2014-12-10 Segher Boessenkool <segher@kernel.crashing.org>
942 * config/rs6000/rs6000.c (TARGET_MD_ASM_CLOBBERS): Define.
943 (rs6000_md_asm_clobbers): New function.
945 2014-12-10 Felix Yang <felix.yang@huawei.com>
947 * config/aarch64/aarch64-protos.h (aarch64_function_profiler): Remove
948 declaration of removed function.
950 2014-12-10 Richard Biener <rguenther@suse.de>
953 (move_computations_dom_walker::before_dom_children): Clear
954 SSA_NAME_RANGE_INFO on moved stmts.
956 2014-12-10 Martin Liska <mliska@suse.cz>
958 * sreal.c (sreal::shift_right): New implementation
959 for int64_t as m_sig.
960 (sreal::normalize): Likewise.
961 (sreal::to_int): Likewise.
962 (sreal::operator+): Likewise.
963 (sreal::operator-): Likewise.
964 (sreal::operator*): Likewise.
965 (sreal::operator/): Likewise.
966 (sreal::signedless_minus): Removed.
967 (sreal::signedless_plus): Removed.
968 (sreal::debug): const keyword is added.
969 * sreal.h (sreal::operator<): New implementation
970 for int64_t as m_sig.
971 * ipa-inline.c (recursive_inlining): LONG_MIN is replaced
974 2014-12-10 Martin Liska <mliska@suse.cz>
976 * gimple-iterator.h (gsi_start_bb_nondebug): New function.
977 * ipa-icf-gimple.c (func_checker::compare_bb): Correct iteration
978 replaces loop based on precomputed number of non-debug statements.
980 2014-12-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
982 * config/linux.c (linux_has_ifunc_p): Remove.
983 * config/linux.h (TARGET_HAS_IFUNC_P): Use default version.
985 2014-12-10 Mantas Mikaitis <mantas.mikaitis@arm.com>
987 * contrib/check_GNU_style.sh (col): Got rid of cut operation
988 from the pipe chain and instead added cut inside awk command.
990 2014-12-10 Richard Biener <rguenther@suse.de>
992 PR tree-optimization/64191
993 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not
994 mark clobbers as necessary.
995 (eliminate_unnecessary_stmts): Keep clobbers live if we can.
997 2014-12-10 Jakub Jelinek <jakub@redhat.com>
1000 * config/i386/sse.md (vec_dupv4sf): Move after
1001 <mask_codefor><avx512>_vec_dup_gpr<mode><mask_name> pattern.
1002 (*vec_dupv4si, *vec_dupv2di): Likewise.
1003 (<mask_codefor><avx512>_vec_dup_mem<mode><mask_name>): Merge into ...
1004 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>): ... this
1006 (*vec_dup<mode> AVX2_VEC_DUP_MODE splitter): Disable for
1007 TARGET_AVX512VL (for QI/HI scalar modes only if TARGET_AVX512BW
1009 * config/i386/i386.c (enum ix86_builtins): Remove
1010 IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
1011 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK and
1012 IX86_BUILTIN_PBROADCASTQ512_MEM.
1013 (bdesc_args): Use __builtin_ia32_pbroadcastq512_gpr_mask,
1014 __builtin_ia32_pbroadcastq256_gpr_mask and
1015 __builtin_ia32_pbroadcastq128_gpr_mask instead of *_mem_mask
1016 regardless of OPTION_MASK_ISA_64BIT.
1017 * config/i386/avx512fintrin.h (_mm512_set1_epi64,
1018 _mm512_mask_set1_epi64, _mm512_maskz_set1_epi64): Use *_gpr_mask
1019 builtins regardless of whether TARGET_64BIT is defined or not.
1020 * config/i386/avx512vlintrin.h (_mm256_mask_set1_epi64,
1021 _mm256_maskz_set1_epi64, _mm_mask_set1_epi64, _mm_maskz_set1_epi64):
1024 * config/i386/sse.md (*mov<mode>_internal, *avx512f_gatherdi<mode>_2):
1025 Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
1027 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1030 * doc/extend.texi (__builtin_sh_set_fpscr): Fix typo.
1032 2014-12-10 Marek Polacek <polacek@redhat.com>
1034 PR tree-optimization/61686
1035 * tree-ssa-reassoc.c (range_entry_cmp): Use q->high instead of
1038 2014-12-10 Kito Cheng <kito@0xlab.org>
1040 * doc/libgcc.texi: Update text to match implementation in
1043 2014-12-09 Trevor Saunders <tsaunders@mozilla.com>
1045 * plugin.c, plugin.def, ggc.h, ggc-common.c, gengtype.h, gengtype.c,
1046 gengtype-state.c, gengtype-parse.c, gentype-lex.l, gcc-plugin.h,
1047 doc/plugins.texi, doc/gty.texi: Remove support for if_marked and
1050 2014-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1053 * doc/extend.texi (__builtin_sh_get_fpscr, __builtin_sh_get_fpscr):
1056 2014-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1059 * tree-ssa-reassoc.c (acceptable_pow_call): Disable transformation
1060 for BUILT_IN_POW when flag_errno_math is present.
1062 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
1064 * lto-wrapper.c (compile_offload_image): Start processing in_argv
1065 from 0 instead of 1.
1066 (run_gcc): Put offload objects into offload_argv, put LTO objects and
1067 possible preceding arguments into lto_argv.
1068 Pass offload_argv to compile_images_for_offload_targets instead of argv.
1069 Use lto_argv for LTO recompilation instead of argv.
1071 2014-12-09 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1073 * doc/install.texi: Describe --with-aix-soname option.
1075 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1077 * config/aarch64/aarch64-simd.md (aarch64_get_lanedi): Remove.
1079 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1082 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane):
1084 * config/aarch64/aarch64-simd.md (aarch64_be_checked_get_lane<mode\>):
1086 * config/aarch64/arm_neon.h (aarch64_vget_lane_any): Use GCC
1087 vector extensions, __aarch64_lane, __builtin_aarch64_im_lane_boundsi.
1088 (__aarch64_vget_lane_f32, __aarch64_vget_lane_f64,
1089 __aarch64_vget_lane_p8, __aarch64_vget_lane_p16,
1090 __aarch64_vget_lane_s8, __aarch64_vget_lane_s16,
1091 __aarch64_vget_lane_s32, __aarch64_vget_lane_s64,
1092 __aarch64_vget_lane_u8, __aarch64_vget_lane_u16,
1093 __aarch64_vget_lane_u32, __aarch64_vget_lane_u64,
1094 __aarch64_vgetq_lane_f32, __aarch64_vgetq_lane_f64,
1095 __aarch64_vgetq_lane_p8, __aarch64_vgetq_lane_p16,
1096 __aarch64_vgetq_lane_s8, __aarch64_vgetq_lane_s16,
1097 __aarch64_vgetq_lane_s32, __aarch64_vgetq_lane_s64,
1098 __aarch64_vgetq_lane_u8, __aarch64_vgetq_lane_u16,
1099 __aarch64_vgetq_lane_u32, __aarch64_vgetq_lane_u64): Delete.
1100 (__aarch64_vdup_lane_any): Use __aarch64_vget_lane_any, remove
1102 (__aarch64_vdup_lane_f32, __aarch64_vdup_lane_f64,
1103 __aarch64_vdup_lane_p8, __aarch64_vdup_lane_p16,
1104 __aarch64_vdup_lane_s8, __aarch64_vdup_lane_s16,
1105 __aarch64_vdup_lane_s32, __aarch64_vdup_lane_s64,
1106 __aarch64_vdup_lane_u8, __aarch64_vdup_lane_u16,
1107 __aarch64_vdup_lane_u32, __aarch64_vdup_lane_u64,
1108 __aarch64_vdup_laneq_f32, __aarch64_vdup_laneq_f64,
1109 __aarch64_vdup_laneq_p8, __aarch64_vdup_laneq_p16,
1110 __aarch64_vdup_laneq_s8, __aarch64_vdup_laneq_s16,
1111 __aarch64_vdup_laneq_s32, __aarch64_vdup_laneq_s64,
1112 __aarch64_vdup_laneq_u8, __aarch64_vdup_laneq_u16,
1113 __aarch64_vdup_laneq_u32, __aarch64_vdup_laneq_u64): Remove argument
1114 to __aarch64_vdup_lane_any.
1115 (vget_lane_f32, vget_lane_f64, vget_lane_p8, vget_lane_p16,
1116 vget_lane_s8, vget_lane_s16, vget_lane_s32, vget_lane_s64,
1117 vget_lane_u8, vget_lane_u16, vget_lane_u32, vget_lane_u64,
1118 vgetq_lane_f32, vgetq_lane_f64, vgetq_lane_p8, vgetq_lane_p16,
1119 vgetq_lane_s8, vgetq_lane_s16, vgetq_lane_s32, vgetq_lane_s64,
1120 vgetq_lane_u8, vgetq_lane_u16, vgetq_lane_u32, vgetq_lane_u64,
1121 vdupb_lane_p8, vdupb_lane_s8, vdupb_lane_u8, vduph_lane_p16,
1122 vduph_lane_s16, vduph_lane_u16, vdups_lane_f32, vdups_lane_s32,
1123 vdups_lane_u32, vdupb_laneq_p8, vdupb_laneq_s8, vdupb_laneq_u8,
1124 vduph_laneq_p16, vduph_laneq_s16, vduph_laneq_u16, vdups_laneq_f32,
1125 vdups_laneq_s32, vdups_laneq_u32, vdupd_laneq_f64, vdupd_laneq_s64,
1126 vdupd_laneq_u64, vfmas_lane_f32, vfma_laneq_f64, vfmad_laneq_f64,
1127 vfmas_laneq_f32, vfmss_lane_f32, vfms_laneq_f64, vfmsd_laneq_f64,
1128 vfmss_laneq_f32, vmla_lane_f32, vmla_lane_s16, vmla_lane_s32,
1129 vmla_lane_u16, vmla_lane_u32, vmla_laneq_f32, vmla_laneq_s16,
1130 vmla_laneq_s32, vmla_laneq_u16, vmla_laneq_u32, vmlaq_lane_f32,
1131 vmlaq_lane_s16, vmlaq_lane_s32, vmlaq_lane_u16, vmlaq_lane_u32,
1132 vmlaq_laneq_f32, vmlaq_laneq_s16, vmlaq_laneq_s32, vmlaq_laneq_u16,
1133 vmlaq_laneq_u32, vmls_lane_f32, vmls_lane_s16, vmls_lane_s32,
1134 vmls_lane_u16, vmls_lane_u32, vmls_laneq_f32, vmls_laneq_s16,
1135 vmls_laneq_s32, vmls_laneq_u16, vmls_laneq_u32, vmlsq_lane_f32,
1136 vmlsq_lane_s16, vmlsq_lane_s32, vmlsq_lane_u16, vmlsq_lane_u32,
1137 vmlsq_laneq_f32, vmlsq_laneq_s16, vmlsq_laneq_s32, vmlsq_laneq_u16,
1138 vmlsq_laneq_u32, vmul_lane_f32, vmul_lane_s16, vmul_lane_s32,
1139 vmul_lane_u16, vmul_lane_u32, vmuld_lane_f64, vmuld_laneq_f64,
1140 vmuls_lane_f32, vmuls_laneq_f32, vmul_laneq_f32, vmul_laneq_f64,
1141 vmul_laneq_s16, vmul_laneq_s32, vmul_laneq_u16, vmul_laneq_u32,
1142 vmulq_lane_f32, vmulq_lane_s16, vmulq_lane_s32, vmulq_lane_u16,
1143 vmulq_lane_u32, vmulq_laneq_f32, vmulq_laneq_f64, vmulq_laneq_s16,
1144 vmulq_laneq_s32, vmulq_laneq_u16, vmulq_laneq_u32) : Use
1145 __aarch64_vget_lane_any.
1147 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1150 * gcc/config/aarch64-builtins.c (aarch64_simd_expand_args): Update error
1151 message for SIMD_ARG_CONSTANT.
1153 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1156 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
1157 TYPES_BINOPV): Delete.
1158 (enum aarch64_builtins): Add AARCH64_BUILTIN_SIMD_LANE_CHECK and
1159 AARCH64_SIMD_PATTERN_START.
1160 (aarch64_init_simd_builtins): Register
1161 __builtin_aarch64_im_lane_boundsi; use AARCH64_SIMD_PATTERN_START.
1162 (aarch64_simd_expand_builtin): Handle AARCH64_BUILTIN_LANE_CHECK; use
1163 AARCH64_SIMD_PATTERN_START.
1165 * config/aarch64/aarch64-simd.md (aarch64_im_lane_boundsi): Delete.
1166 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound): Delete.
1168 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK): New.
1169 (__aarch64_vget_lane_f64, __aarch64_vget_lane_s64,
1170 __aarch64_vget_lane_u64, __aarch64_vset_lane_any, vdupd_lane_f64,
1171 vdupd_lane_s64, vdupd_lane_u64, vext_f32, vext_f64, vext_p8, vext_p16,
1172 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
1173 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
1174 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
1175 vextq_u64, vmulq_lane_f64): Use __AARCH64_LANE_CHECK.
1177 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1180 * config/aarch64/arm_neon.h (__AARCH64_NUM_LANES, __aarch64_lane *2):
1182 (aarch64_vset_lane_any): Redefine using previous, same for BE + LE.
1183 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1184 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1185 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64): Remove
1187 (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8, vld1_lane_p16,
1188 vld1_lane_s8, vld1_lane_s16, vld1_lane_s32, vld1_lane_s64,
1189 vld1_lane_u8, vld1_lane_u16, vld1_lane_u32, vld1_lane_u64): Call
1190 __aarch64_vset_lane_any rather than vset_lane_xxx.
1192 2014-12-09 Alan Lawrence <alan.lawrence@arm.com>
1194 * config/aarch64/aarch64.md (absdi2): Remove scratch operand by
1195 earlyclobbering result operand.
1197 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
1198 Remove final qualifier_internal.
1199 (aarch64_fold_builtin): Stop folding abs builtins, except on floats.
1201 2014-12-09 Wilco Dijkstra <wilco.dijkstra@arm.com>
1203 * gcc/config/aarch64/aarch64-protos.h (tune-params): Add reasociation
1205 * gcc/config/aarch64/aarch64.c (TARGET_SCHED_REASSOCIATION_WIDTH):
1207 (aarch64_reassociation_width): New function.
1208 (generic_tunings): Add reassociation tuning parameters.
1209 (cortexa53_tunings): Likewise.
1210 (cortexa57_tunings): Likewise.
1211 (thunderx_tunings): Likewise.
1213 2014-12-09 Andrew Pinski <apinski@cavium.com>
1214 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1216 * config/aarch64/aarch64.c (AARCH64_FUSE_CMP_BRANCH): New define.
1217 (thunderx_tunings): Add AARCH64_FUSE_CMP_BRANCH to fuseable_ops.
1218 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_CMP_BRANCH.
1220 2014-12-09 David Malcolm <dmalcolm@redhat.com>
1223 * dumpfile.c (gcc::dump_manager::get_dump_file_info_by_switch):
1225 (gcc::dump_manager::get_dump_file_name): Split out bulk of
1226 implementation into a new overloaded variant taking a
1228 * dumpfile.h (gcc::dump_manager::get_dump_file_info_by_switch):
1230 (gcc::dump_manager::get_dump_file_name): New overloaded variant of
1231 this function, taking a dump_file_info *.
1233 2014-12-09 Uros Bizjak <ubizjak@gmail.com>
1237 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
1239 PR rtl-optimization/64037
1240 * combine.c (setup_incoming_promotions): Pass the argument
1241 before any promotions happen to promote_function_mode.
1243 2014-12-09 Richard Biener <rguenther@suse.de>
1245 PR tree-optimization/64193
1246 * tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
1247 and valueize the VUSE before looking up the def stmt.
1248 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1249 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
1250 to walk_non_aliased_vuses.
1251 (vn_reference_lookup): Likewise.
1252 * tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
1253 callback to walk_non_aliased_vuses.
1255 2014-12-09 Richard Biener <rguenther@suse.de>
1258 * fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
1260 2014-12-09 Richard Biener <rguenther@suse.de>
1262 PR tree-optimization/64191
1263 * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
1264 not relevant (nor are their uses).
1266 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1268 * lto/lto-partition.c (privatize_symbol_name): Correctly
1269 privatize instrumentation clones.
1271 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1273 * lto-cgraph.c (input_cgraph_1): Don't break existing
1274 instrumentation clone references.
1275 * lto/lto-symtab.c (lto_cgraph_replace_node): Redirect
1276 instrumented_version references appropriately.
1278 2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
1281 * tree-chkp.c (chkp_make_static_bounds): Share bounds var
1282 between nodes sharing assembler name.
1284 2014-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1287 * config/rs6000/rs6000.c (rs6000_emit_move): Do not split TFmode
1288 constant moves if -mupper-regs-df.
1290 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Optimize moving
1292 (movtd_64bit_nodm): Likewise.
1293 (mov<mode>_32bit, FMOVE128 case): Likewise.
1295 2014-12-08 Sandra Loosemore <sandra@codesourcery.com>
1297 * simplify-rtx.c (simplify_relational_operation_1): Handle
1298 simplification identities for BICS patterns.
1300 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1302 * config/nvptx/nvptx.c: Convert htabs to hash_table.
1304 2014-12-08 David Edelsohn <dje.gcc@gmail.com>
1307 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner)
1308 [SYMBOL_REF]: Do not explicitly call create_TOC_reference for
1309 TARGET_TOC. Always use rs6000_emit_move.
1311 2014-12-08 Mark Wielaard <mjw@redhat.com>
1314 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_ATOMIC.
1316 2014-11-15 David Wohlferd <dw@LimeGreenSocks.com>
1319 * cfgexpand.c (expand_asm_operands): Count all inline asm params.
1321 2014-12-08 David Malcolm <dmalcolm@redhat.com>
1324 * cgraph.h (xstrdup_for_dump): New function.
1325 * cgraph.c (cgraph_node::get_create): Replace use of xstrdup
1326 within fprintf with xstrdup_for_dump.
1327 (cgraph_edge::make_speculative): Likewise.
1328 (cgraph_edge::resolve_speculation): Likewise.
1329 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1330 (cgraph_node::dump): Likewise.
1331 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1332 * ipa-cp.c (perhaps_add_new_callers): Likewise.
1333 * ipa-inline.c (report_inline_failed_reason): Likewise.
1334 (want_early_inline_function_p): Likewise.
1335 (edge_badness): Likewise.
1336 (update_edge_key): Likewise.
1337 (flatten_function): Likewise.
1338 (inline_always_inline_functions): Likewise.
1339 * ipa-profile.c (ipa_profile): Likewise.
1340 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
1341 (ipa_make_edge_direct_to_target): Likewise.
1342 (remove_described_reference): Likewise.
1343 (propagate_controlled_uses): Likewise.
1344 * ipa-utils.c (ipa_merge_profiles): Likewise.
1346 2014-12-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1349 * ipa-polymorphic-call.c
1350 (pa_polymorphic_call_context::ipa_polymorphic_call): Allow RESULT_DECL.
1352 2014-12-08 Alex Velenko <Alex.Velenko@arm.com>
1354 * config/aarch64/aarch64.md (and_one_cmpl<mode>3_compare0_no_reuse):
1356 * (and_one_cmpl_<SHIFT:optab><mode>3_compare0_no_reuse):
1359 2014-12-08 Felix Yang <felix.yang@huawei.com>
1360 Haijian Zhang <z.zhanghaijian@huawei.com>
1361 Jiji Jiang <jiangjiji@huawei.com>
1362 Pengfei Sui <suipengfei@huawei.com>
1364 * config/aarch64/arm_neon.h (vrecpe_u32, vrecpeq_u32): Rewrite using
1366 (vfma_f32, vfmaq_f32, vfmaq_f64, vfma_n_f32, vfmaq_n_f32, vfmaq_n_f64,
1367 vfms_f32, vfmsq_f32, vfmsq_f64): Likewise.
1368 (vhsub_s8, vhsub_u8, vhsub_s16, vhsub_u16, vhsub_s32, vhsub_u32,
1369 vhsubq_s8, vhsubq_u8, vhsubq_s16, vhsubq_u16, vhsubq_s32, vhsubq_u32,
1370 vsubhn_s16, vsubhn_u16, vsubhn_s32, vsubhn_u32, vsubhn_s64, vsubhn_u66,
1371 vrsubhn_s16, vrsubhn_u16, vrsubhn_s32, vrsubhn_u32, vrsubhn_s64,
1372 vrsubhn_u64, vsubhn_high_s16, vsubhn_high_u16, vsubhn_high_s32,
1373 vsubhn_high_u32, vsubhn_high_s64, vsubhn_high_u64, vrsubhn_high_s16,
1374 vrsubhn_high_u16, vrsubhn_high_s32, vrsubhn_high_u32, vrsubhn_high_s64,
1375 vrsubhn_high_u64): Likewise.
1376 * config/aarch64/iterators.md (VDQ_SI): New mode iterator.
1377 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_URECPE.
1378 * config/aarch64/aarch64-simd.md (aarch64_urecpe<mode>): New pattern.
1379 * config/aarch64/aarch64-simd-builtins.def (shsub, uhsub, subhn, rsubhn,
1380 subhn2, rsubhn2, urecpe): New builtins.
1382 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1384 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Handle v64qi.
1385 * config/i386/sse.md (VEC_PERM_AVX2): Add v64qi.
1387 2014-12-08 Ilya Tocar <ilya.tocar@intel.com>
1389 * config/i386/i386.c (expand_vec_perm_broadcast_1): Handle v64qi.
1390 (expand_vec_perm_vpermi2_vpshub2): New.
1391 (ix86_expand_vec_perm_const_1): Use it.
1392 (ix86_vectorize_vec_perm_const_ok): Handle v64qi.
1393 * config/i386/sse.md (VEC_PERM_CONST): Add v64qi.
1395 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1397 * tree-chkp.c (chkp_build_returned_bound): Don't predict
1398 return bounds for strchr calls.
1400 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
1402 * tree-chkp.c (chkp_call_returns_bounds_p): New.
1403 (chkp_build_returned_bound): Use zero bounds as
1404 returned by calls not returning bounds.
1406 2014-12-08 Richard Biener <rguenther@suse.de>
1408 * builtins.c (fold_builtin_0): Remove unused ignore parameter.
1409 (fold_builtin_1): Likewise.
1410 (fold_builtin_3): Likewise.
1411 (fold_builtin_varargs): Likewise.
1412 (fold_builtin_2): Likewise. Do not fold stpcpy here.
1413 (fold_builtin_n): Adjust.
1414 (fold_builtin_stpcpy): Move to gimple-fold.c.
1415 (gimple_fold_builtin_stpcpy): Moved and gimplified from builtins.c.
1416 (gimple_fold_builtin): Fold stpcpy here.
1418 2014-12-07 Trevor Saunders <tsaunders@mozilla.com>
1420 * symtab.c (symtab_node::verify): Check for section attribute before
1421 asserting something isn't in a section and a comdat group.
1423 2014-12-07 Oleg Endo <olegendo@gcc.gnu.org>
1426 * config/sh/sh.md (extendqihi2): Allow only for TARGET_SH1.
1428 2014-12-07 Eric Botcazou <ebotcazou@adacore.com>
1430 * compare-elim.c: Fix head comment.
1431 (conforming_compare): Remove redundant test.
1432 (can_eliminate_compare): New function extracted from...
1433 (before_dom_children): ...here. Use it, replace direct uses of
1434 flag_non_call_exceptions and tidy up.
1435 (maybe_select_cc_mode): Tidy up.
1437 2014-12-07 Felix Yang <felix.yang@huawei.com>
1438 Shanyao Chen <chenshanyao@huawei.com>
1440 * config/aarch64/aarch64-simd.md (clrsb<mode>2, popcount<mode>2): New
1442 * config/aarch64/aarch64-simd-builtins.def (clrsb, popcount): New
1444 * config/aarch64/arm_neon.h (vcls_s8, vcls_s16, vcls_s32, vclsq_s8,
1445 vclsq_s16, vclsq_s32, vcnt_p8, vcnt_s8, vcnt_u8, vcntq_p8, vcntq_s8,
1446 vcntq_u8): Rewrite using builtin functions.
1448 2014-12-07 Jan Hubicka <hubicka@ucw.cz>
1450 * symtab.c (symtab_node::equal_address_to): New function.
1451 * cgraph.h (symtab_node::equal_address_to): Declare.
1452 * fold-const.c (fold_comparison, fold_binary_loc): Use it.
1453 * c-family/c-common.c: Refuse weaks for symbols that can not change
1456 2014-12-07 Jonathan Wakely <jwakely@redhat.com>
1458 * doc/invoke.texi (Warning Options): Fix spelling and grammar.
1460 2014-12-06 James Greenhalgh <james.greenhalgh@arm.com>
1461 Sebastian Pop <s.pop@samsung.com>
1462 Brian Rzycki <b.rzycki@samsung.com>
1464 PR tree-optimization/54742
1465 * params.def (max-fsm-thread-path-insns, max-fsm-thread-length,
1466 max-fsm-thread-paths): New.
1468 * doc/invoke.texi (max-fsm-thread-path-insns, max-fsm-thread-length,
1469 max-fsm-thread-paths): Documented.
1471 * tree-cfg.c (split_edge_bb_loc): Export.
1472 * tree-cfg.h (split_edge_bb_loc): Declared extern.
1474 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Restore the
1475 original value of cond when simplification fails.
1476 (fsm_find_thread_path): New.
1477 (fsm_find_control_statement_thread_paths): New.
1478 (thread_through_normal_block): Call find_control_statement_thread_paths.
1480 * tree-ssa-threadupdate.c (dump_jump_thread_path): Pretty print
1483 (duplicate_seme_region): New.
1484 (thread_through_all_blocks): Generate code for EDGE_FSM_THREAD edges
1485 calling duplicate_seme_region.
1487 * tree-ssa-threadupdate.h (jump_thread_edge_type): Add EDGE_FSM_THREAD.
1489 2014-12-06 H.J. Lu <hongjiu.lu@intel.com>
1492 * config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
1493 for TARGET_INLINE_STRINGOPS_DYNAMICALLY.
1495 2014-12-05 Jakub Jelinek <jakub@redhat.com>
1498 * sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
1499 non-NULL, call maybe_get_dominating_check on it even if g is
1502 2014-12-05 Jeff Law <law@redhat.com>
1504 * doc/md.texi: Note problems using function calls to determine
1505 insn lengths and point readers to a potential workaround.
1507 2014-12-05 Andreas Schwab <schwab@linux-m68k.org>
1509 * combine.c (is_parallel_of_n_reg_sets)
1510 (can_split_parallel_of_n_reg_sets): Only define if !HAVE_cc0.
1512 2014-12-05 Andrew Pinski <apinski@cavium.com>
1514 * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather
1515 than CF10 so 2 is appended on the code.
1516 * config/aarch64/aarch64-simd.md (bswap<mode>): Rename to ...
1517 (bswap<mode>2): This so it matches for the optabs.
1519 2014-12-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
1521 * regrename.c (find_best_rename_reg): Rename to ...
1522 (find_rename_reg): This. Also add a parameter to skip tick check.
1523 * regrename.h: Likewise.
1524 * config/c6x/c6x.c (try_rename_operands): Adapt to above renaming.
1526 2014-12-05 Martin Jambor <mjambor@suse.cz>
1529 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
1530 from bits to bytes after checking they are byte-aligned.
1532 2014-12-05 Renlin Li <renlin.li@arm.com>
1534 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.
1535 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1536 * config/aarch64/aarch64.c (AARCH64_CORE): Rename X to IDENT,
1539 2014-12-05 Bin Cheng <bin.cheng@arm.com>
1541 * config/aarch64/aarch64.md (load_pair<mode>): Split to
1542 load_pairsi, load_pairdi, load_pairsf and load_pairdf.
1543 (load_pairsi, load_pairdi, load_pairsf, load_pairdf): Split
1544 from load_pair<mode>. New alternative to support int/fp
1545 registers in fp/int mode patterns.
1546 (store_pair<mode>:): Split to store_pairsi, store_pairdi,
1547 store_pairsf and store_pairdi.
1548 (store_pairsi, store_pairdi, store_pairsf, store_pairdf): Split
1549 from store_pair<mode>. New alternative to support int/fp
1550 registers in fp/int mode patterns.
1551 (*load_pair_extendsidi2_aarch64): New pattern.
1552 (*load_pair_zero_extendsidi2_aarch64): New pattern.
1553 (aarch64-ldpstp.md): Include.
1554 * config/aarch64/aarch64-ldpstp.md: New file.
1555 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
1557 (extract_base_offset_in_addr): New.
1558 (aarch64_operands_ok_for_ldpstp): New.
1559 (aarch64_operands_adjust_ok_for_ldpstp): New.
1560 * config/aarch64/aarch64.c (enum sched_fusion_type): New enum.
1561 (TARGET_SCHED_FUSION_PRIORITY): New hook.
1562 (fusion_load_store): New functon.
1563 (extract_base_offset_in_addr): New function.
1564 (aarch64_gen_adjusted_ldpstp): New function.
1565 (aarch64_sched_fusion_priority): New function.
1566 (aarch64_operands_ok_for_ldpstp): New function.
1567 (aarch64_operands_adjust_ok_for_ldpstp): New function.
1569 2014-12-05 Olivier Hainque <hainque@adacore.com>
1571 * defaults.h: (DWARF_REG_TO_UNWIND_COLUMN): Define default.
1572 * dwarf2cfi.c (init_one_dwarf_reg_size): Honor
1573 DWARF_REG_TO_UNWIND_COLUMN.
1575 2014-12-05 Olivier Hainque <hainque@adacore.com>
1577 * dwarf2cfi.c (init_one_dwarf_reg_size): New helper, processing
1578 one particular reg for expand_builtin_init_dwarf_reg_sizes.
1579 (expand_builtin_init_dwarf_reg_sizes): Rework to use helper and
1580 account for dwarf register spans.
1582 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1585 * config/i386/i386.md (*jcc_1_bnd): New.
1588 (*jcc_1): Remove bnd prefix.
1592 2014-12-05 Renlin Li <renlin.li@arm.com>
1594 * config/aarch64/aarch64.c (aarch64_parse_cpu): Don't define
1596 (aarch64_override_options): Use selected_cpu's tuning.
1598 2014-12-05 David Edelsohn <dje.gcc@gmail.com>
1600 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_LOCAL): Append
1601 alignment to section name. Increase default alignment to word.
1603 2014-12-05 Martin Jambor <mjambor@suse.cz>
1605 * cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
1606 (cgraph_edge): New method redirect_callee_duplicating_thunks.
1607 * cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
1609 (redirect_edge_duplicating_thunks): Turned into edge method
1610 redirect_callee_duplicating_thunks.
1611 (cgraph_node::expand_all_artificial_thunks): New method.
1612 (create_clone): Call expand_all_artificial_thunks.
1613 * ipa-cp.c (perhaps_add_new_callers): Call
1614 redirect_callee_duplicating_thunks instead of redirect_callee.
1615 Also call expand_all_artificial_thunks.
1617 2014-12-05 Ilya Enkovich <ilya.enkovich@intel.com>
1620 * doc/sourcebuild.texi: Add mempcpy and stpcpy for Effective-Target
1623 2014-12-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1625 * diagnostic.h (diagnostic_expand_location): New inline function.
1626 * diagnostic.c (diagnostic_build_prefix): Use it.
1627 (diagnostic_show_locus): Likewise.
1629 2014-12-04 H.J. Lu <hongjiu.lu@intel.com>
1632 * configure.ac (HAVE_LD_PIE_COPYRELOC): Always define.
1633 * configure: Regenerated.
1635 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1637 * diagnostic.c (diagnostic_color_init): New.
1638 * diagnostic.h: Declare.
1639 * gcc.c (driver::global_initializations): Use it.
1640 (driver_handle_option): Handle -fdiagnostics-color_.
1641 * toplev.c: Do not include diagnostic-color.h.
1642 (process_options): Do not initialize color diagnostics here.
1643 * common.opt (fdiagnostics-color=): Add Driver.
1644 * opts-global.c (init_options_once): Initialize color here.
1645 * opts.c (common_handle_option): Use diagnostics_color_init.
1646 * diagnostic-color.h: Fix comment.
1648 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1650 * tree-pretty-print.c (INDENT): Rename "buffer" to "pp".
1652 (buffer): Rename this variable to...
1655 (do_niy): Rename param from "buffer" to "pp".
1656 (dump_decl_name): Likewise.
1657 (dump_function_name): Likewise.
1658 (dump_function_declaration): Likewise.
1659 (dump_array_domain): Likewise.
1660 (dump_omp_clause): Likewise.
1661 (dump_omp_clauses): Likewise.
1662 (dump_location): Likewise.
1663 (dump_block_node): Likewise.
1664 (dump_generic_node): Likewise.
1665 (print_declaration): Likewise.
1666 (print_struct_decl): Likewise.
1667 (print_call_name): Likewise.
1668 (pretty_print_string): Likewise.
1669 (newline_and_indent): Likewise.
1671 (print_generic_decl): Update for renaming of "buffer" to
1673 (print_generic_stmt): Likewise.
1674 (print_generic_stmt_indented): Likewise.
1675 (print_generic_expr): Likewise.
1676 (maybe_init_pretty_print): Likewise.
1678 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1681 * tree-pretty-print.c: Eliminate include of <new>.
1682 (buffer): Convert this variable from a pretty_printer to a
1684 (initialized): Eliminate this variable in favor of the NULL-ness
1686 (print_generic_decl): Update for "buffer" becoming a pointer.
1687 (print_generic_stmt): Likewise.
1688 (print_generic_stmt_indented): Likewise.
1689 (print_generic_expr): Likewise.
1690 (maybe_init_pretty_print): Likewise, allocating "buffer" on the
1691 heap and using its non-NULL-ness to ensure idempotency.
1693 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1696 * ipa-prop.c (ipa_register_cgraph_hooks): Guard insertion of
1697 ipa_add_new_function on function_insertion_hook_holder being
1699 * ipa-reference.c (ipa_reference_c_finalize): Remove
1700 node_removal_hook_holder and node_duplication_hook_holder if
1701 they've been added to symtab.
1702 * toplev.c (toplev::finalize): Call ipa_reference_c_finalize
1703 before cgraph_c_finalize so that the former can access "symtab".
1705 2014-12-04 David Malcolm <dmalcolm@redhat.com>
1707 * doc/cfg.texi (GIMPLE statement iterators): Add note about
1708 gphi_iterator, and use one in the example.
1709 * doc/gimple.texi (Tuple specific accessors): Add missing
1710 GIMPLE_GOTO section and menu item.
1711 (gimple_build_asm, gimple gimple_build_assign_with_ops)
1712 gimple_call_mark_uninlinable, gimple_call_cannot_inline_p): Remove
1713 description of removed functions.
1714 (gimple_build_assign, gimple_build_bind, gimple_build_call,
1715 gimple_build_call_from_tree, gimple_build_call_vec,
1716 gimple_build_catch, gimple_build_cond,
1717 gimple_build_cond_from_tree, gimple_build_debug_bind,
1718 gimple_build_eh_filter, gimple_build_label, gimple_build_goto,
1719 gimple_build_omp_atomic_load, gimple_build_omp_atomic_store,
1720 gimple_build_omp_continue, gimple_build_omp_critical,
1721 gimple_build_omp_for, gimple_build_omp_parallel,
1722 gimple_build_omp_sections, gimple_build_omp_single,
1723 gimple_build_return, gimple_build_resx, gimple_build_switch,
1724 gimple_build_try): Update return type within description to
1725 reflect changes in gimple.h to using gimple subclasses.
1726 (gimple_build_asm_vec): Update return type, params and
1728 (gimple_asm_ninputs): Update param.
1729 (gimple_asm_noutputs, gimple_asm_nclobbers, gimple_asm_input_op
1730 gimple_asm_set_input_op, gimple_asm_output_op
1731 gimple_asm_set_output_op, gimple_asm_clobber_op,
1732 gimple_asm_set_clobber_op, gimple_asm_string,
1733 gimple_asm_volatile_p, gimple_asm_set_volatile, gimple_bind_vars,
1734 gimple_bind_set_vars, gimple_bind_append_vars, gimple_bind_body,
1735 gimple_bind_set_body, gimple_bind_add_stmt, gimple_bind_add_seq,
1736 gimple_bind_block, gimple_bind_set_block, gimple_call_set_fn,
1737 gimple_call_return_type, gimple_call_set_chain,
1738 gimple_call_set_tail, gimple_call_tail_p,
1739 gimple_call_copy_skip_args, gimple_catch_types,
1740 gimple_catch_types_ptr, gimple_catch_handler,
1741 gimple_catch_set_types, gimple_catch_set_handler,
1742 gimple_cond_set_code, gimple_cond_set_lhs, gimple_cond_set_rhs,
1743 gimple_cond_true_label, gimple_cond_set_true_label,
1744 gimple_cond_set_false_label, gimple_cond_false_label,
1745 gimple_cond_make_false, gimple_cond_make_true,
1746 gimple_eh_filter_set_types, gimple_eh_filter_set_failure,
1747 gimple_eh_must_not_throw_fndecl,
1748 gimple_eh_must_not_throw_set_fndecl, gimple_label_label,
1749 gimple_label_set_label, gimple_goto_set_dest,
1750 gimple_omp_atomic_load_set_lhs, gimple_omp_atomic_load_lhs,
1751 gimple_omp_atomic_load_set_rhs, gimple_omp_atomic_load_rhs,
1752 gimple_omp_atomic_store_set_val, gimple_omp_atomic_store_val,
1753 gimple_omp_continue_control_def,
1754 gimple_omp_continue_control_def_ptr,
1755 gimple_omp_continue_set_control_def,
1756 gimple_omp_continue_control_use,
1757 gimple_omp_continue_control_use_ptr,
1758 gimple_omp_continue_set_control_use, gimple_omp_critical_name,
1759 gimple_omp_critical_name_ptr, gimple_omp_critical_set_name,
1760 gimple_omp_parallel_clauses_ptr, gimple_omp_parallel_set_clauses,
1761 gimple_omp_parallel_child_fn, gimple_omp_parallel_child_fn_ptr,
1762 gimple_omp_parallel_set_child_fn, gimple_omp_parallel_data_arg,
1763 gimple_omp_parallel_data_arg_ptr,
1764 gimple_omp_parallel_set_data_arg, gimple_omp_single_set_clauses,
1765 gimple_phi_set_result, gimple_phi_set_arg, gimple_resx_region,
1766 gimple_resx_set_region, gimple_return_retval,
1767 gimple_return_set_retval, gimple_switch_num_labels,
1768 gimple_switch_set_num_labels, gimple_switch_index,
1769 gimple_switch_set_index, gimple_switch_label,
1770 gimple_switch_set_label, gimple_switch_default_label,
1771 gimple_switch_set_default_label, gimple_try_set_eval,
1772 gimple_try_set_cleanup): Update initial param within description
1773 to reflect changes in gimple.h to using gimple subclasses.
1774 (Adding a new GIMPLE statement code): Update to reflect gimple
1775 statement subclassing.
1777 2014-12-04 Sriraman Tallam <tmsriram@google.com>
1778 H.J. Lu <hongjiu.lu@intel.com>
1780 * configure.ac (HAVE_LD_PIE_COPYRELOC): Defined to 1 if
1781 Linux/x86-64 linker supports PIE with copy reloc.
1782 * config.in: Regenerated.
1783 * configure: Likewise.
1785 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1786 pc-relative address for undefined, non-weak, non-function
1787 symbol reference in 64-bit PIE if linker supports PIE with
1790 * doc/sourcebuild.texi: Document pie_copyreloc target.
1792 2014-12-04 Marek Polacek <polacek@redhat.com>
1795 * fold-const.c (fold_unary_loc): Perform the negation in A's type
1796 when transforming ~ (A - 1) or ~ (A + -1) to -A.
1798 2014-12-04 Tobias Burnus <burnus@net-b.de>
1800 * Makefile.in: Remove CLOOGLIB and CLOOGINC.
1802 2014-12-04 Richard Biener <rguenther@suse.de>
1804 * doc/match-and-simplify.texi: Update for recent changes.
1806 2014-12-04 Martin Jambor <mjambor@suse.cz>
1808 * ipa-prop.h (ipa_alignment): New type.
1809 (ipa_jump_func): New field alignment.
1810 (ipcp_transformation_summary) New type.
1811 (ipcp_grow_transformations_if_necessary): Declare.
1812 (ipa_node_agg_replacements): Removed.
1813 (ipcp_transformations): Declare.
1814 (ipcp_get_transformation_summary): New function.
1815 (ipa_get_agg_replacements_for_node): Use it.
1816 * ipa-cp.c (ipcp_param_lattices): New field alignment.
1817 (print_all_lattices): Also print alignment.
1818 (alignment_bottom_p): New function.
1819 (set_alignment_to_bottom): Likewise.
1820 (set_all_contains_variable): Also set alignment to bottom.
1821 (initialize_node_lattices): Likewise.
1822 (propagate_alignment_accross_jump_function): New function.
1823 (propagate_constants_accross_call): Call it.
1824 (ipcp_store_alignment_results): New function.
1825 (ipcp_driver): Call it.
1826 * ipa-prop.c (ipa_node_agg_replacements): Removed.
1827 (ipcp_transformations): New.
1828 (ipa_print_node_jump_functions_for_edge): Also print alignment.
1829 (ipa_set_jf_unknown): New function.
1830 (detect_type_change_from_memory_writes): Use ipa_set_jf_unknown.
1831 (ipa_compute_jump_functions_for_edge): Also calculate alignment.
1832 (update_jump_functions_after_inlining): Use ipa_set_jf_unknown.
1833 (ipcp_grow_transformations_if_necessary): New function.
1834 (ipa_set_node_agg_value_chain): Use ipcp_transformations.
1835 (ipa_node_removal_hook): Likewise.
1836 (ipa_node_duplication_hook): Also duplicate alignment results.
1837 (ipa_write_jump_function): Also stream alignments.
1838 (ipa_read_jump_function): Use ipa_set_jf_unknown, also stream
1840 (write_agg_replacement_chain): Renamed to
1841 write_ipcp_transformation_info, also stream alignments.
1842 (read_agg_replacement_chain): Renamed to
1843 read_ipcp_transformation_info, also stream alignments.
1844 (ipa_prop_write_all_agg_replacement): Renamed to
1845 ipcp_write_transformation_summaries. Stream always.
1846 (ipa_prop_read_all_agg_replacement): Renamed to
1847 ipcp_read_transformation_summaries.
1848 (ipcp_update_alignments): New function.
1849 (ipcp_transform_function): Call it, free also alignments.
1851 2014-12-04 Richard Biener <rguenther@suse.de>
1853 * gimple-fold.c (replace_stmt_with_simplification): Properly
1854 fail when maybe_push_res_to_seq fails.
1856 2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1858 * config/aarch64/aarch64.md (define_insn "prefetch"): New.
1860 2014-12-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1862 * doc/install.texi: Remove mentions of cloog and ppl.
1863 * doc/invoke.texi: Likewise
1865 2014-12-04 Jakub Jelinek <jakub@redhat.com>
1868 * convert.c (convert_to_real, convert_to_expr, convert_to_complex):
1869 Handle COMPOUND_EXPR.
1871 2014-12-04 Richard Biener <rguenther@suse.de>
1873 * builtins.c (target_newline): Export.
1874 (target_percent_s_newline): Likewise.
1875 (fold_builtin_1): Do not fold printf functions here.
1876 (fold_builtin_2): Likewise.
1877 (fold_builtin_3): Likewise, do not fold strncat.
1878 (fold_builtin_strncat): Move to gimple-fold.c.
1879 (fold_builtin_printf): Likewise.
1880 * builtins.h (target_newline): Declare.
1881 (target_percent_s_newline): Likewise.
1882 * gimple-fold.c (gimple_fold_builtin_strncat): Move from
1883 builtins.c and gimplify.
1884 (gimple_fold_builtin_printf): Likewise.
1885 (gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
1886 vprintf, printf_chk and vprintf_chk here.
1888 2014-12-03 David Edelsohn <dje.gcc@gmail.com>
1890 * config/rs6000/rs6000.md (floatsidf2_internal): Use std::swap.
1891 (floatunssidf2_internal): Same.
1892 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Same.
1893 (rs6000_emit_int_cmove): Same.
1894 (rs6000_sched_reorder): Same.
1895 (altivec_expand_vec_perm_const): Same.
1896 (rs6000_expand_vec_perm_const_1): Same.
1898 2014-12-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1900 PR rtl-optimization/64010
1901 * reload.c (push_reload): Before reusing a register contained
1902 in an operand as input reload register, ensure that it is not
1903 used in CALL_INSN_FUNCTION_USAGE.
1905 2014-12-03 Ulrich Drepper <drepper@gmail.com>
1907 * Makefile.in: Use $(LN_S) instead of $(LN) -s and remove file first
1910 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1912 * expmed.c (expand_mult): Use std::swap.
1915 * expmed.c (expand_widening_mult): Return const0_rtx if
1918 * doc/gimple.texi (gimple_build_assign_with_ops): Remove.
1919 (gimple_build_assign): Document the new overloads.
1921 2014-12-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1924 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1925 not create LO_SUM address for constant addresses if the type can
1926 go in Altivec registers.
1928 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1931 * pretty-print.c (output_buffer::output_buffer): Init flush_p to true.
1932 (pp_flush): Flush only if flush_p.
1933 (pp_really_flush): New.
1934 * pretty-print.h (struct output_buffer): Add flush_p.
1935 (pp_really_flush): Declare.
1937 2014-12-03 Jakub Jelinek <jakub@redhat.com>
1939 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add $(GENGTYPE_OBJS),
1940 gcc-ar.o, gcc-nm.o and gcc-ranlib.o.
1941 (GENGTYPE_OBJS): New.
1942 (gengtype-lex.o, gengtype-parse.o, gengtype-state.o, gengtype.o):
1943 Remove explicit dependencies.
1944 (CFLAGS-gengtype-lex.o, CFLAGS-gengtype-parse.o,
1945 CFLAGS-gengtype-state.o, CFLAGS-gengtype.o): Add -DHOST_GENERATOR_FILE
1946 instead of -DGENERATOR_FILE.
1947 (CFLAGS-errors.o): New.
1948 * gengtype.c: Instead of testing GENERATOR_FILE define, test
1949 HOST_GENERATOR_FILE. If defined, include config.h and define
1950 GENERATOR_FILE afterwards, otherwise include bconfig.h.
1951 * gengtype-parse.c: Likewise.
1952 * gengtype-state.c: Likewise.
1953 * gengtype-lex.l: Likewise.
1954 * errors.c: Likewise.
1956 2014-12-03 Joern Rennecke <joern.rennecke@embecosm.com>
1958 * config/epiphany/epiphany.c (epiphany_override_options):
1959 If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
1960 * config/epiphany/epiphany.md (mov<mode>cc): Don't use
1961 reverse_condition_maybe_unordered if flag_finite_math_only is set.
1963 2014-12-03 Andrew Stubbs <ams@codesourcery.com>
1967 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
1968 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1969 when architecture is older than ARMv7.
1971 2014-12-03 Richard Biener <rguenther@suse.de>
1973 * builtins.c (target_percent_c): Export.
1974 (fold_builtin_fprintf): Move to gimple-fold.c.
1975 (fold_builtin_2): Do not fold fprintf functions.
1976 (fold_builtin_3): Likewise.
1977 (fold_builtin_4): Remove.
1978 (fold_builtin_n): Do not call fold_builtin_4.
1979 * builtins.h (target_percent_c): Declare.
1980 * gimple-fold.c (gimple_fold_builtin_fprintf): Move from
1981 builtins.c and gimplify.
1982 (gimple_fold_builtin): Fold fprintf, fprintf_unlocked, vfprintf,
1983 fprintf_chk and vfprintf_chk here.
1985 2014-12-03 Martin Jambor <mjambor@suse.cz>
1988 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check
1989 type sizes before view_converting.
1991 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
1993 PR rtl-optimization/64151
1994 PR rtl-optimization/64156
1995 * ira-costs.c (scan_one_insn): Revert r218266.
1997 2014-12-03 Richard Biener <rguenther@suse.de>
1999 * builtins.c (fold_builtin_fpclassify): Change to take
2000 array of arguments instead of CALL_EXPR tree.
2001 (MAX_ARGS_TO_FOLD_BUILTIN): Remove.
2002 (fold_builtin_n): Dispatch to fold_builtin_varargs.
2003 (fold_call_expr): Always use fold_builtin_n.
2004 (fold_builtin_call_array): Change to not build the unfolded call,
2005 always use fold_builtin_n.
2006 (fold_builtin_varargs): Change to take array of arguments instead
2008 (fold_call_stmt): Always use fold_builtin_n.
2009 * tree.c (build_call_expr_loc_array): Use fold_build_call_array_loc.
2010 * fold-const.c (fold_build_call_array_loc): Build the call
2011 if fold_builtin_call_array returned NULL_TREE.
2012 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Do not build
2013 a CALL_EXPR and use fold_builtin_call_array instead of
2016 2014-12-03 Alan Lawrence <alan.lawrence@arm.com>
2018 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>, orn<mode>3,
2019 bic<mode>3, add<mode>3, sub<mode>3, neg<mode>2, abs<mode>2, and<mode>3,
2020 ior<mode>3, xor<mode>3, one_cmpl<mode>2,
2021 aarch64_simd_lshr<mode> ,arch64_simd_ashr<mode>,
2022 aarch64_simd_imm_shl<mode>, aarch64_simd_reg_sshl<mode>,
2023 aarch64_simd_reg_shl<mode>_unsigned, aarch64_simd_reg_shr<mode>_signed,
2024 ashl<mode>3, lshr<mode>3, ashr<mode>3, vashl<mode>3,
2025 reduc_plus_scal_<mode>, aarch64_vcond_internal<mode><mode>,
2026 vcondu<mode><mode>, aarch64_cm<optab><mode>, aarch64_cmtst<mode>):
2027 Change VDQ to VDQ_I.
2029 (mul<mode>3): Change VDQM to VDQ_BHSI.
2030 (aarch64_simd_vec_set<mode>,vashr<mode>3, vlshr<mode>3, vec_set<mode>,
2031 aarch64_mla<mode>, aarch64_mls<mode>, <su><maxmin><mode>3,
2032 aarch64_<sur>h<addsub><mode>): Change VQ_S to VDQ_BHSI.
2034 (*aarch64_<su>mlal<mode>, *aarch64_<su>mlsl<mode>,
2035 aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>,
2036 aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>, aarch64_<sur>shll_n<mode>):
2037 Change VDW to VD_BHSI.
2038 (*aarch64_combinez<mode>, *aarch64_combinez_be<mode>):
2039 Change VDIC to VD_BHSI.
2041 * config/aarch64/aarch64-simd-builtins.def (saddl, uaddl, ssubl, usubl,
2042 saddw, uaddw, ssubw, usubw, shadd, uhadd, srhadd, urhadd, sshll_n,
2043 ushll_n): Change BUILTIN_VDW to BUILTIN_VD_BHSI.
2045 * config/aarch64/iterators.md (SDQ_I, VDQ, VQ_S, VSDQ_I_BHSI, VDQM, VDW,
2046 VDIC, VDQQHS): Remove.
2047 (Vwtype): Update comment (changing VDW to VD_BHSI).
2049 2014-12-03 Richard Biener <rguenther@suse.de>
2052 * builtins.c (fold_builtin_logarithm): Implement simplifications ...
2053 * match.pd: ... here as patterns.
2055 2014-12-03 Prachi Godbole <prachi.godbole@imgtec.com>
2057 * config/mips/p5600.md (define_automaton, define_cpu_unit): Replace
2058 p5600_agen_pipe and p5600_alu_pipe with p5600_agen_alq_pipe.
2059 (p5600_int_arith_1, p5600_int_arith_2, p5600_int_arith_4): Change
2062 2014-12-03 Tom de Vries <tom@codesourcery.com>
2064 PR rtl-optimization/63957
2065 * doc/invoke.texi: Replace -fuse-caller-save with -fipa-ra.
2066 * final.c (rest_of_handle_final): Replace flag_use_caller_save with
2068 (get_call_reg_set_usage): Same.
2069 * lra-assigns.c (lra_assign): Same.
2070 * lra-constraints.c (need_for_call_save_p): Same.
2071 * lra-lives.c (process_bb_lives): Same.
2072 * lra.c (lra): Same.
2073 * calls.c (expand_call): Same.
2074 (emit_library_call_value_1): Same.
2075 * config/arm/arm.c (arm_option_override): Same.
2076 * opts.c (default_options_table): Replace OPT_fuse_caller_save with
2078 * target.def (call_fusage_contains_non_callee_clobbers): Replace
2079 fuse-caller-save with fipa-ra.
2080 * doc/tm.texi (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Same.
2083 2014-12-03 Yury Gribov <y.gribov@samsung.com>
2085 * sanopt.c (maybe_get_single_definition): New function.
2086 (maybe_get_dominating_check): Ditto.
2087 (can_remove_asan_check): Ditto.
2088 (struct tree_map_traits): New struct.
2089 (struct sanopt_ctx): Use custom traits for asan_check_map.
2090 (maybe_optimize_ubsan_null_ifn): Move code to
2091 maybe_get_dominating_check.
2092 (maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
2093 into account when optimizing.
2094 (sanopt_optimize_walker): Optimize ASan checks even when
2097 2014-12-03 Ilya Enkovich <ilya.enkovich@intel.com>
2099 * config/i386/constraints.md (Yr): New.
2100 * config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
2101 (REG_CLASS_NAMES): Likewise.
2102 (REG_CLASS_CONTENTS): Likewise.
2103 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
2104 which use only NO_REX_SSE_REGS.
2105 (vec_set<mode>_0): Likewise.
2106 (*vec_setv4sf_sse4_1): Likewise.
2107 (sse4_1_insertps): Likewise.
2108 (*sse4_1_extractps): Likewise.
2109 (*sse4_1_mulv2siv2di3<mask_name>): Likewise.
2110 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
2111 (*sse4_1_<code><mode>3<mask_name>): Likewise.
2112 (*sse4_1_<code><mode>3): Likewise.
2113 (*sse4_1_eqv2di3): Likewise.
2114 (sse4_2_gtv2di3): Likewise.
2115 (*vec_extractv4si): Likewise.
2116 (*vec_concatv2si_sse4_1): Likewise.
2117 (vec_concatv2di): Likewise.
2118 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
2119 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
2120 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
2121 (<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
2122 (<sse4_1_avx2>_mpsadbw): Likewise.
2123 (<sse4_1_avx2>packusdw<mask_name>): Likewise.
2124 (<sse4_1_avx2>_pblendvb): Likewise.
2125 (sse4_1_pblendw): Likewise.
2126 (sse4_1_phminposuw): Likewise.
2127 (sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
2128 (sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
2129 (sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
2130 (sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
2131 (sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
2132 (sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2133 (sse4_1_ptest): Likewise.
2134 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
2135 (sse4_1_round<ssescalarmodesuffix>): Likewise.
2136 * config/i386/subst.md (mask_prefix4): New.
2137 * config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
2139 2014-12-03 Segher Boessenkool <segher@kernel.crashing.org>
2141 PR rtl-optimization/52714
2142 * combine.c (try_combine): Allow combining two insns into two
2143 new insns if at least one of those is a noop.
2145 2014-12-03 Bin Cheng <bin.cheng@arm.com>
2147 * target.def (fusion_priority): Wrap code with @smallexample.
2148 * doc/tm.texi: Regenerated.
2150 2014-12-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2152 * diagnostic.c (diagnostic_show_locus): Honor override_column when
2155 2014-12-02 Dmitry Vyukov <dvyukov@google.com>
2157 * asan.c: (asan_finish_file): Use default priority for constructors
2160 2014-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2163 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
2164 invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
2166 2014-12-02 H.J. Lu <hongjiu.lu@intel.com>
2169 * config/i386/i386.c (decide_alg): Stop only if there aren't
2170 any usable algorithms.
2172 2014-12-02 Tom de Vries <tom@codesourcery.com>
2174 PR rtl-optimization/63718
2175 * config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
2178 2014-12-02 Richard Biener <rguenther@suse.de>
2180 * match.pd: When combining divisions exclude the degenerate
2181 case involving INT_MIN from overflow handling.
2183 2014-12-02 Wilco Dijkstra <wilco.dijkstra@arm.com>
2185 * ira-costs.c (scan_one_insn): Improve spill cost adjustment.
2187 2014-12-02 Martin Jambor <mjambor@suse.cz>
2190 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
2191 (cgraph_edge_brings_value_p): New parameter dest, use
2192 same_node_or_its_all_contexts_clone_p and check availability.
2193 (cgraph_edge_brings_value_p): Likewise.
2194 (get_info_about_necessary_edges): New parameter dest, pass it to
2195 cgraph_edge_brings_value_p. Update caller.
2196 (gather_edges_for_value): Likewise.
2197 (perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
2198 both the destination and availability.
2200 2014-12-02 Uros Bizjak <ubizjak@gmail.com>
2203 * config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
2204 using post-reload splitter. Use peephole2 pass instead.
2205 (call_value_osf_tlsldm): Ditto.
2206 (TLS_CALL): New int iterator.
2207 (tls): New int attribute.
2208 (call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
2209 and call_value_tlsldm using TLS_CALL int iterator.
2211 2014-12-02 Richard Biener <rguenther@suse.de>
2212 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2214 * genmatch.c: Include hash-set.h.
2215 (fatal_at): Add source_location overload.
2216 (parser::record_operlist): New method.
2217 (parser::push_simplify): Likewise.
2218 (parser::oper_lists_set): New member.
2219 (parser::oper_lists): Likewise.
2220 (parser::parse_operation): Record seen operator list references.
2221 (parser::parse_c_expr): Likewise.
2222 (parser::parse_simplify): Init oper_lists_set and oper_lists
2223 and use push_simplify.
2224 (parser::parser): Init oper_lists_set and oper_lists.
2226 2014-12-02 Richard Biener <rguenther@suse.de>
2228 * match.pd: Restrict division combining to trunc_div and
2231 2014-12-02 Jakub Jelinek <jakub@redhat.com>
2233 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
2234 Remove NULL last argument from create_tmp_var calls.
2235 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
2236 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
2237 * config/i386/i386.c (add_condition_to_bb,
2238 ix86_atomic_assign_expand_fenv): Likewise.
2239 * config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
2240 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2241 * config/aarch64/aarch64-builtins.c
2242 (aarch64_atomic_assign_expand_fenv): Likewise.
2243 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
2245 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
2246 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
2247 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2249 * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
2250 gimple_build_assign instead of gimple_build_assign_with_ops and swap
2251 the order of first two arguments.
2252 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2253 Likewise. Remove last NULL_TREE argument.
2255 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2257 PR rtl-optimization/59278
2258 * combine (reg_dead_at_p): Consider REG_UNUSED notes.
2260 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2262 * combine.c (try_combine): Use is_parallel_of_n_reg_sets some more.
2264 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2266 * combine.c (is_parallel_of_n_reg_sets): New function.
2267 (can_split_parallel_of_n_reg_sets): New function.
2268 (try_combine): If I2 is a PARALLEL of two SETs, split it into
2269 two insns if possible.
2271 2014-12-01 Tobias Burnus <burnus@net-b.de>
2272 Jack Howarth <howarth@bromo.med.uc.edu>
2275 * configure.ac (ac_has_isl_schedule_constraints_compute_schedule):
2277 * doc/install.texi (ISL): Permit ISL 0.14.
2278 * graphite-optimize-isl.c (getScheduleForBandList, optimize_isl):
2279 Conditionally use ISL 0.13+ functions.
2280 * graphite-interchange.c: Make 'extern "C"' conditional.
2281 * graphite-isl-ast-to-gimple.c: Ditto.
2282 * graphite-poly.c: Ditto.
2283 * graphite-sese-to-poly.c: Ditto.
2284 * config.in: Regenerate.
2285 * gcc/configure: Regenerate.
2287 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2289 * combine.c (distribute_links): Handle multiple SETs.
2291 2014-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2293 * combine.c (struct insn_link): New field `regno'.
2294 (alloc_insn_link): New parameter `regno'. Use it.
2295 (find_single_use): Check the new field.
2296 (can_combine_def_p, can_combine_use_p): New functions. Split
2298 (create_log_links): ... here. Correct data type of `regno'.
2299 Adjust call to alloc_insn_link.
2300 (adjust_for_new_dest): Find regno, use it in call to
2302 (try_combine): Check reg_used_between_p when combining a PARALLEL
2303 as earlier insn. Adjust call to alloc_insn_link.
2304 (distribute_links): Check the new field.
2306 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2309 * real.c (real_from_string): Add missing mpfr_clear.
2311 2014-12-01 David Malcolm <dmalcolm@redhat.com>
2314 * tree-ssa-math-opts.c (execute_cse_sincos_1): Fix a missing
2315 release of stmts by converting it to an auto_vec.
2317 2014-12-01 Richard Biener <rguenther@suse.de>
2319 * Makefile.in (gimple-match.o-warn): Use -Wno-unused instead of
2320 -Wno-unused-variable and -Wno-unused-but-set-variable to restore
2321 bootstrap with old GCC.
2322 (generic-match.o-warn): Likewise.
2324 2014-12-01 Richard Biener <rguenther@suse.de>
2326 * fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
2327 Properly handle FIXED_CST shifts by INTEGER_CST.
2328 (const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
2329 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
2330 VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
2331 VEC_WIDEN_MULT_ODD_EXPR handling here from ...
2332 (fold_binary_loc): ... here. Call const_binop overload
2335 2014-12-01 Marek Polacek <polacek@redhat.com>
2336 Jakub Jelinek <jakub@redhat.com>
2339 * ubsan.c (instrument_object_size): Stop searching if the base
2340 occurs in abnormal phi.
2342 2014-12-01 Marek Polacek <polacek@redhat.com>
2345 * ubsan.c (is_ubsan_builtin_p): Check also built-in class.
2347 2014-12-01 Jakub Jelinek <jakub@redhat.com>
2349 * gimple.h (gimple_build_assign_stat): Remove prototype.
2350 (gimple_build_assign): Remove define. Add overload prototypes
2351 with tree lhs and either a tree rhs, or enum tree_code and
2352 1, 2 or 3 tree operands.
2353 * gimple.c (gimple_build_assign_stat): Renamed to...
2354 (gimple_build_assign): ... this. Add overloads with
2355 enum tree_code and 1, 2 or 3 tree operands.
2356 (gimple_build_assign_with_ops): Remove 1 and 2 operand overloads.
2357 Rename the 3 operand overload to ...
2358 (gimple_build_assign_1): ... this. Make it static inline.
2359 * tree-ssa-strlen.c (get_string_length): Use gimple_build_assign
2360 instead of gimple_build_assign_with_ops, swap the order of first
2361 two arguments and adjust formatting where necessary.
2362 * tree-vect-slp.c (vect_get_constant_vectors,
2363 vect_create_mask_and_perm): Likewise.
2364 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2365 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2366 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2367 * tsan.c (instrument_builtin_call): Likewise.
2368 * tree-chkp.c (chkp_compute_bounds_for_assignment,
2369 chkp_generate_extern_var_bounds): Likewise.
2370 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2371 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
2372 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2373 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2374 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
2375 gimple_mod_subtract): Likewise.
2376 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2377 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2378 vect_recog_sad_pattern, vect_handle_widen_op_by_const,
2379 vect_recog_widen_mult_pattern, vect_recog_pow_pattern,
2380 vect_recog_widen_sum_pattern, vect_operation_fits_smaller_type,
2381 vect_recog_over_widening_pattern, vect_recog_widen_shift_pattern,
2382 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2383 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2384 adjust_bool_pattern_cast, adjust_bool_pattern,
2385 vect_recog_bool_pattern): Likewise.
2386 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
2387 insert_initializers, introduce_cast_before_cand,
2388 replace_one_candidate): Likewise.
2389 * tree-ssa-math-opts.c (insert_reciprocals, powi_as_mults_1,
2390 powi_as_mults, build_and_insert_binop, build_and_insert_cast,
2391 pass_cse_sincos::execute, bswap_replace, convert_mult_to_fma):
2393 * tree-tailcall.c (adjust_return_value_with_ops,
2394 update_accumulator_with_ops): Likewise.
2395 * tree-predcom.c (reassociate_to_the_same_stmt): Likewise.
2396 * tree-ssa-reassoc.c (build_and_add_sum,
2397 optimize_range_tests_to_bit_test, update_ops,
2398 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2399 negate_value, repropagate_negates, attempt_builtin_powi,
2400 reassociate_bb): Likewise.
2401 * tree-vect-loop.c (vect_is_simple_reduction_1,
2402 get_initial_def_for_induction, vect_create_epilog_for_reduction):
2404 * ipa-split.c (split_function): Likewise.
2405 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
2406 abs_replacement, neg_replacement): Likewise.
2407 * tree-profile.c (gimple_gen_edge_profiler): Likewise.
2408 * tree-vrp.c (simplify_truth_ops_using_ranges,
2409 simplify_float_conversion_using_ranges,
2410 simplify_internal_call_using_ranges): Likewise.
2411 * gimple-fold.c (rewrite_to_defined_overflow, gimple_build): Likewise.
2412 * tree-vect-generic.c (expand_vector_divmod,
2413 optimize_vector_constructor): Likewise.
2414 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn,
2415 instrument_bool_enum_load): Likewise.
2416 * tree-ssa-loop-manip.c (create_iv): Likewise.
2417 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2418 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2419 expand_cilk_for, simd_clone_adjust): Likewise.
2420 * trans-mem.c (expand_transaction): Likewise.
2421 * tree-vect-data-refs.c (bump_vector_ptr, vect_permute_store_chain,
2422 vect_setup_realignment, vect_permute_load_chain,
2423 vect_shift_permute_load_chain): Likewise.
2424 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2425 vectorizable_simd_clone_call, vect_gen_widened_results_half,
2426 vect_create_vectorized_demotion_stmts, vectorizable_conversion,
2427 vectorizable_shift, vectorizable_operation, vectorizable_store,
2428 permute_vec_elements, vectorizable_load): Likewise.
2430 2014-12-01 Richard Biener <rguenther@suse.de>
2433 * tree.c (int_cst_hasher::hash): Use TYPE_UID instead of
2434 htab_hash_pointer to not break PCH.
2436 2014-12-01 Richard Biener <rguenther@suse.de>
2438 PR tree-optimization/15346
2439 * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter,
2440 add -Wno-unused-but-set-variable.
2441 * match.pd: Combine two successive divisions.
2443 2014-12-01 Richard Biener <rguenther@suse.de>
2446 * match.pd: Allow conversions in ~A + 1 -> -A, add -A - 1 -> ~A
2448 * fold-const.c (fold_binary_loc): Remove transforms here.
2450 2014-12-01 Maciej W. Rozycki <macro@codesourcery.com>
2452 * config/mips/mips.c (mips16_build_call_stub): Move the save of
2453 the return address in $18 ahead of passing arguments to FPRs.
2455 2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
2458 * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
2459 values in array domain.
2461 2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2463 PR tree-optimization/63941
2464 * tree-if-conv.c (add_to_predicate_list): Delete wrong assertion that
2465 DOM_BB has non-true predicate, conditionally set non-true predicate
2468 2014-12-01 Martin Jambor <mjambor@suse.cz>
2471 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
2472 value of the argument to the type of the value in the condition.
2474 2014-12-01 Oleg Endo <olegendo@gcc.gnu.org>
2478 * config/sh/sh.c (sh_unspec_insn_p,
2479 sh_insn_operands_modified_between_p): New functions.
2480 (sh_split_movrt_negc_to_movt_xor): Do not delete insn if its operands
2481 are modified or if it has side effects, may trap or is volatile.
2483 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2485 * gimple-expr.h (create_tmp_var_raw, create_tmp_var,
2486 create_tmp_reg): Add default NULL value to last argument.
2487 * tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
2488 * gimple-low.c (lower_builtin_posix_memalign): Remove NULL
2489 last argument from create_tmp_var_raw, create_tmp_var,
2490 create_tmp_reg, make_ssa_name and copy_ssa_name calls.
2491 * tree-ssa-strlen.c (get_string_length): Likewise.
2492 * tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
2493 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2494 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2495 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2496 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2497 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2498 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2499 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2500 * tsan.c (instrument_expr, instrument_builtin_call,
2501 instrument_func_entry): Likewise.
2502 * varpool.c (add_new_static_var): Likewise.
2503 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2504 * gimplify.c (internal_get_tmp_var, gimplify_return_expr,
2505 gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
2506 gimplify_init_ctor_eval_range, gimplify_init_constructor,
2507 gimplify_omp_atomic, gimplify_expr): Likewise.
2508 * gimple-builder.c (build_assign, build_type_cast): Likewise.
2509 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
2510 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
2511 vect_loop_versioning): Likewise.
2512 * tree-if-conv.c (version_loop_for_if_conversion): Likewise.
2513 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2514 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2515 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2516 vect_recog_over_widening_pattern): Likewise.
2517 * tree-sra.c (build_ref_for_offset, create_access_replacement):
2519 * tree-cfg.c (make_blocks): Likewise.
2520 * tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
2522 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
2523 * tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
2525 * tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
2526 * tree-tailcall.c (update_accumulator_with_ops): Likewise.
2527 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
2528 execute_load_motion, reassociate_to_the_same_stmt): Likewise.
2529 * tree-ssa-reassoc.c (build_and_add_sum,
2530 optimize_range_tests_to_bit_test, update_ops,
2531 maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
2532 negate_value, repropagate_negates): Likewise.
2533 * tree-vect-loop.c (vect_is_simple_reduction_1,
2534 vect_create_epilog_for_reduction): Likewise.
2535 * ipa-split.c (split_function): Likewise.
2536 * tree-inline.c (remap_ssa_name, setup_one_parameter,
2537 declare_return_variable, tree_function_versioning): Likewise.
2538 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2539 * cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
2541 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2542 neg_replacement): Likewise.
2543 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2545 * tree-vrp.c (simplify_truth_ops_using_ranges,
2546 simplify_float_conversion_using_ranges,
2547 simplify_internal_call_using_ranges): Likewise.
2548 * tree-switch-conversion.c (emit_case_bit_tests,
2549 build_one_array, build_arrays, gen_def_assigns): Likewise.
2550 * gimple-fold.c (gimple_fold_builtin_memory_op,
2551 gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
2552 * tree-vect-generic.c (expand_vector_divmod,
2553 optimize_vector_constructor): Likewise.
2554 * ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
2555 ubsan_expand_objsize_ifn, instrument_si_overflow,
2556 instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
2557 * tree-outof-ssa.c (insert_backedge_copies): Likewise.
2558 * tree-ssa-loop-manip.c (create_iv,
2559 tree_transform_and_unroll_loop): Likewise.
2560 * omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
2561 lower_rec_input_clauses, lower_lastprivate_clauses,
2562 expand_parallel_call, expand_omp_for_static_chunk,
2563 expand_omp_atomic_pipeline, expand_omp_target,
2564 maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
2565 lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
2566 lower_depend_clauses, lower_omp_target, lower_omp_1,
2567 ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
2568 * tree-parloops.c (take_address_of, create_phi_for_local_result,
2569 create_call_for_reduction_1, separate_decls_in_region,
2570 create_parallel_loop): Likewise.
2571 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
2572 handle_scalar_deps_crossing_scop_limits): Likewise.
2573 * trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
2574 expand_assign_tm, expand_call_tm, expand_transaction,
2575 ipa_tm_insert_gettmclone_call): Likewise.
2576 * tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
2578 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2579 vectorizable_call, vectorizable_simd_clone_call,
2580 vectorizable_conversion, vectorizable_store, permute_vec_elements,
2581 vectorizable_load): Likewise.
2583 2014-11-29 Tobias Burnus <burnus@net-b.de>
2584 Manuel López-Ibáñez <manu@gcc.gnu.org>
2586 * opt-functions.awk (lang_enabled_by): Support || for
2588 * optc-gen.awk: Ditto.
2589 * doc/options.texi (LangEnabledBy, EnabledBy): Document the
2592 2014-11-28 Mike Stump <mikestump@comcast.net>
2594 * bitmap.c (bitmap_ior): Zap current as it could be deleted.
2595 (bitmap_ior_and_compl): Likewise.
2597 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2600 * lra.c (lra_substitute_pseudo): Ignore constant with int mode for
2603 2014-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2606 * config/rs6000/rs6000.md (and<mode>3): Don't generate
2607 and<mode>3_imm unless rs6000_gen_cell_microcode is true.
2609 2014-11-28 Vladimir Makarov <vmakarov@redhat.com>
2611 PR rtl-optimization/64087
2612 * lra-lives.c (process_bb_lives): Add debug output.
2613 (lra_create_live_ranges): Don't remove dead insn on the second
2614 call of lra_create_live_ranges_1.
2616 2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
2618 PR rtl-optimization/64037
2619 * combine.c (setup_incoming_promotions): Pass the argument
2620 before any promotions happen to promote_function_mode.
2622 2014-11-28 Evgeny Stupachenko <evstupac@gmail.com>
2624 * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
2625 permutations to loads group of size 3.
2627 2014-11-28 Jiong Wang <jiong.wang@arm.com>
2629 * config/arm/arm.md (copysignsf3): New pattern.
2630 (copysigndf3): Likewise.
2632 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
2633 Ilya Verbin <ilya.verbin@intel.com>
2635 * omp-low.c (lower_omp_critical): Mark critical sections
2636 inside target functions as offloadable.
2638 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2640 * lto-wrapper.c (run_gcc): Set have_lto and have_offload if at least one
2641 file contains sections with LTO and offload IR, respectively.
2643 2014-11-28 Ilya Verbin <ilya.verbin@intel.com>
2645 * cgraphunit.c (ipa_passes): Handle flag_generate_offload.
2646 (symbol_table::compile): Set flag_generate_offload if there is something
2648 * common.opt (flag_generate_offload): New Variable declaration.
2649 * dwarf2out.c (dwarf2out_finish): Handle flag_generate_offload.
2650 * ipa-inline-analysis.c (inline_generate_summary): Do not skip if
2651 flag_generate_offload is set.
2652 * lto-streamer.c (gate_lto_out): Handle flag_generate_offload.
2653 * passes.c (ipa_write_summaries): Do not skip if flag_generate_offload
2655 * toplev.c (compile_file): Emit LTO marker if offload info has been
2656 previously emitted. Do not emit lto_slim marker if
2657 flag_generate_offload is without flag_generate_lto.
2658 * tree.c (free_lang_data): Do not skip if flag_generate_offload is set.
2660 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2662 * config/arm/arm-cores.def (cortex-a17.cortex-a7): New entry.
2663 * config/arm/arm-tables.opt: Regenerate.
2664 * config/arm/arm-tune.md: Regenerate.
2665 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a17.cortex-a7.
2666 * config/arm/t-aprofile: Add cortex-a17.cortex-a7 entry to
2669 2014-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2671 * config/arm/arm.md (generic_sched): Specify cortexa17 in 'no' list.
2672 Include cortex-a17.md.
2673 * config/arm/arm.c (arm_issue_rate): Specify 2 for cortexa17.
2674 * config/arm/arm-cores.def (cortex-a17): New entry.
2675 * config/arm/arm-tables.opt: Regenerate.
2676 * config/arm/arm-tune.md: Regenerate.
2677 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=cortex-a17.
2678 * config/arm/cortex-a17.md: New file.
2679 * config/arm/cortex-a17-neon.md: New file.
2680 * config/arm/driver-arm.c (arm_cpu_table): Add entry for cortex-a17.
2681 * config/arm/t-aprofile: Add cortex-a17 entries to MULTILIB_MATCHES.
2683 2014-11-28 Richard Biener <rguenther@suse.de>
2686 * genmatch.c (dt_node::gen_kids_1): New function, split out
2687 from dt_node::gen_kids.
2688 (decision_tree::cmp_node): DT_TRUE are generally not equal.
2689 (decision_tree::find_node): Treat DT_TRUE as barrier for
2690 node CSE on the same level.
2691 (dt_node::append_node): Do not keep DT_TRUE last.
2692 (dt_node::gen_kids): Emit code after each DT_TRUE node seen.
2694 2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2696 * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for
2699 2014-11-27 Uros Bizjak <ubizjak@gmail.com>
2701 * config/i386/i386.md (preferred_for_size): New attribute
2702 (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size
2703 attribute to conditionally disable alternative 1.
2704 (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size
2705 and prefered_for_speed attributes to conditionally disable
2707 (*movxf_internal): Split Yx*r constraints to r,*r. Use
2708 preferred_for_size attribute to conditionally disable
2709 alternatives 3 and 4.
2710 (*movdf_internal): Split Yd*r constraints to r,*r. Use
2711 preferred_for_size and prefered_for_speed attributes to conditionally
2712 disable alternatives 3 and 4.
2713 * config/i386/constraints.md (Yd, Yx): Remove register constraints.
2715 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2717 * dwarf2out.c (set_block_origin_self): Skip nested functions.
2719 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
2722 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
2724 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
2726 2014-11-27 Martin Liska <mliska@suse.cz>
2727 David Malcolm <dmalcolm@redhat.com>
2729 * ipa-icf.c (sem_function::equals_private): int* is replaced with
2731 (sem_function::bb_dict_test): Likewise.
2732 * ipa-icf.h: Likewise.
2734 2014-11-27 Richard Biener <rguenther@suse.de>
2737 * fold-const.c (const_unop): Re-instantiate missing condition
2738 before calling fold_abs_const.
2740 PR tree-optimization/64088
2741 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
2742 the stmt break from the loop over use operands.
2744 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
2746 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
2748 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
2749 (fold_builtin_cpu): Ditto.
2750 * doc/extend.texi: Documment it.
2752 2014-11-27 Jakub Jelinek <jakub@redhat.com>
2755 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
2756 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
2757 not only if modifier is EXPAND_INITIALIZER, but whenever
2758 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
2760 PR tree-optimization/64024
2761 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
2762 field. Add simd_clone_info field.
2763 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
2764 (STMT_VINFO_SIMD_CLONE_INFO): Define.
2765 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
2766 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
2767 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
2768 base and linear_step from analysis phase and use it during transform
2769 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
2770 multiplied by linear_step.
2771 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
2774 * alias.c (find_base_term): Use std::swap. Prefer tmp2
2775 if it is CONSTANT_P other than CONST_INT.
2777 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2780 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
2782 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
2783 make it TARGET_EITHER.
2784 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
2785 and move HFmode handling from consttable_4 to it.
2786 (consttable_4): Move HFmode handling to consttable_2 pattern.
2787 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
2788 (consttable_2): Ditto.
2790 2014-11-27 Richard Biener <rguenther@suse.de>
2792 * tree-ssa-sccvn.c (try_to_simplify): Allow
2793 gimple_fold_stmt_to_constant_1 to follow SSA edges.
2795 2014-11-27 Richard Biener <rguenther@suse.de>
2797 PR tree-optimization/64083
2798 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
2799 forcibly mark loop for removal the wrong way.
2801 2014-11-27 Richard Biener <rguenther@suse.de>
2804 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
2805 and instead return false when !fstrict-aliasing.
2807 2014-11-27 Richard Biener <rguenther@suse.de>
2809 PR tree-optimization/61634
2810 * tree-vect-slp.c: Include gimple-walk.h.
2811 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
2812 down the SLP tree for one scalar statement.
2813 (vect_detect_hybrid_slp_1): New walker function.
2814 (vect_detect_hybrid_slp_2): Likewise.
2815 (vect_detect_hybrid_slp): Properly handle pattern statements
2816 in a pre-scan over all loop stmts.
2818 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2821 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2822 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2823 aarch64_convert_mode, aarch64_gen_ccmp_first,
2824 aarch64_gen_ccmp_next): New functions.
2825 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
2827 2014-11-26 Jakub Jelinek <jakub@redhat.com>
2829 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
2830 without -pie or -shared, error on -fsanitize=thread -static instead.
2832 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
2835 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
2836 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2837 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
2838 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
2839 Add new optional parameter exclude_virtual_thunks.
2840 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
2841 optional parameter exclude_virtual_thunks.
2842 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
2843 (cgraph_node::set_pure_flag): Likewise.
2844 (cgraph_node::function_symbol): Simplified.
2845 (cgraph_node::function_or_virtual_thunk_symbol): New function.
2846 * ipa-pure-const.c (analyze_function): For virtual thunks set
2847 pure_const_state to IPA_NEITHER.
2848 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
2850 2014-11-26 Richard Biener <rguenther@suse.de>
2853 * tree-data-ref.c (split_constant_offset_1): Do not follow
2854 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2856 2014-11-26 Richard Biener <rguenther@suse.de>
2858 * fold-const.h (const_unop): Declare.
2859 (const_binop): Likewise.
2860 * fold-const.c (const_binop): Export overload that expects
2861 a type parameter and dispatches to fold_relational_const as well.
2862 Check both operand kinds for guarding the transforms.
2863 (const_unop): New function, with constant folding from fold_unary_loc.
2864 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
2865 Remove constant folding done there from the simplifications.
2866 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
2867 (fold_negate_expr): Remove dead code from the REAL_CST case.
2868 Avoid building garbage in the COMPLEX_CST case.
2869 * gimple-match-head.c (gimple_resimplify1): Dispatch to
2871 (gimple_resimplify2): Dispatch to const_binop.
2872 (gimple_simplify): Likewise.
2874 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2877 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
2878 debug statement when searching for a new position for
2879 bounds load/creation statement.
2881 2014-11-26 Marek Polacek <polacek@redhat.com>
2884 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
2885 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
2886 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
2888 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
2891 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
2892 proper size for function_code bitfield.
2893 (pack_ts_function_decl_value_fields): Likewise.
2895 2014-11-21 Mark Wielaard <mjw@redhat.com>
2897 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
2898 * opts.c (common_handle_option): Accept -gdwarf-5.
2899 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
2900 DW_LANG_C_plus_plus_14.
2901 (lower_bound_default): Likewise. Plus DW_LANG_C11.
2902 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
2903 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
2904 (output_compilation_unit_header): Output at most a DWARFv4 header.
2905 (output_skeleton_debug_sections): Likewise.
2906 (output_line_info): Likewise.
2907 (output_aranges): Document header version number.
2909 2014-11-26 Richard Biener <rguenther@suse.de>
2911 * gimple-fold.c (get_symbol_constant_value): Allow all
2912 GIMPLE register type zero-constants.
2914 2014-11-26 Mark Wielaard <mjw@redhat.com>
2916 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
2917 function decl has TREE_THIS_VOLATILE.
2919 2014-11-26 Richard Biener <rguenther@suse.de>
2921 PR tree-optimization/62238
2922 * tree-predcom.c (ref_at_iteration): Unshare the expression
2923 before gimplifying it.
2924 (prepare_initializers_chain): Discard unused seq.
2926 2014-11-26 Prachi Godbole <prachi.godbole@imgtec.com>
2928 * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
2931 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2933 * ira-lives.c (process_bb_node_lives): Make code with conditional
2934 REAL_PIC_OFFSET_TABLE_REGNUM.
2936 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
2939 * ira-lives.c (process_bb_node_lives): Check and remove conflict
2940 of pic pseudo with pic hard reg.
2942 2014-11-25 Rohit <rohitarulraj@freescale.com>
2945 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
2946 added GCC hard register numbers for SPE high registers.
2948 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2950 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
2951 before removing it, not after.
2953 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2955 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
2958 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2960 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
2963 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
2965 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
2966 (rest of file): Replace those with code resp. CODE.
2968 2014-11-25 Tom de Vries <tom@codesourcery.com>
2970 * tree-cfg.c (verify_sese): New function.
2971 (move_sese_region_to_fn): Call verify_sese.
2972 * tree-cfg.h (verify_sese): Declare.
2974 2014-11-25 Richard Biener <rguenther@suse.de>
2977 * lto-streamer-out.c (output_struct_function_base): Stream
2979 * lto-streamer-in.c (input_struct_function_base): Likewise.
2981 2014-11-25 Martin Liska <mliska@suse.cz>
2985 * sreal.c (sreal::operator+): Addition fixed.
2986 (sreal::signedless_plus): Negative numbers are
2988 (sreal::operator-): Subtraction is fixed.
2989 (sreal::signedless_minus): Negative numbers are
2991 * sreal.h (sreal::operator<): Equal negative numbers
2992 are compared correctly.
2993 (sreal::shift): New checking asserts are introduced.
2996 2014-11-25 Richard Biener <rguenther@suse.de>
2998 PR tree-optimization/61927
2999 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
3000 of group and pattern analysis to the one in GCC 4.8.
3002 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
3003 Jakub Jelinek <jakub@redhat.com>
3005 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
3007 * lto-wrapper.c (append_offload_options): Likewise.
3009 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
3011 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
3012 load the static chain if the call was originally direct.
3014 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
3017 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
3018 devirtualization is disabled.
3020 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3023 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3024 Altivec & -16 mask if the type is not valid for Altivec registers.
3025 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3026 reg) that occurs during push_reload processing.
3028 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3029 alternative for moving constant vectors which are easy altivec
3030 constants to GPRs. Set the length attribute each of the
3033 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
3034 work in progress patch was committed instead of the fixes for
3036 * config/rs6000/rs6000.c: Likewise.
3038 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3041 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
3042 and -fno-devirtualize more carefully.
3043 (can_remove_node_now_p): Update.
3045 2014-11-24 Andrew Pinski <apinski@cavium.com>
3048 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
3050 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3052 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
3054 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
3056 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
3057 Refactor by combining switch statements and make arrays into scalars.
3059 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
3062 * dbxout.c: Include stringpool.h
3063 (dbxout_type) [default]: Ignore auto type.
3065 2014-11-24 Richard Biener <rguenther@suse.de>
3067 PR tree-optimization/63679
3068 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
3069 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
3070 to properly leave off at -1.
3071 (fully_constant_vn_reference_p): Generalize folding from
3072 constant initializers.
3073 (vn_reference_lookup_3): When looking through aggregate copies
3074 handle offsetted reads and try simplifying the result to
3076 * gimple-fold.h (fold_ctor_reference): Export.
3077 * gimple-fold.c (fold_ctor_reference): Likewise.
3079 2014-11-24 Petr Murzin <petr.murzin@intel.com>
3081 * simplify-rtx.c (simplify_ternary_operation): Simplify
3082 vec_merge (vec_duplicate (vec_select)).
3084 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3086 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
3087 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
3088 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
3090 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3092 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
3093 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
3094 (cortexa57_tunings): Likewise.
3095 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
3097 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3099 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
3100 in the not conditional jump case.
3101 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3102 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
3104 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3106 * config/aarch64/aarch64.c: Include tm-constrs.h
3107 (AARCH64_FUSE_ADRP_ADD): Define.
3108 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
3109 (cortexa53_tunings): Likewise.
3110 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
3112 2014-11-24 Martin Liska <mliska@suse.cz>
3114 * ipa-inline.c (edge_badness): long is replaced by sreal
3115 as fibonacci_heap template type.
3116 (update_edge_key): Likewise.
3117 (inline_small_functions): Likewise.
3119 2014-11-24 Martin Liska <mliska@suse.cz>
3121 * predict.c (propagate_freq): More elegant sreal API is used.
3122 (estimate_bb_frequencies): Precomputed constants replaced by integer
3124 * sreal.c (sreal::normalize): New function.
3125 (sreal::to_int): Likewise.
3126 (sreal::operator+): Likewise.
3127 (sreal::operator-): Likewise.
3128 (sreal::signedless_plus): Likewise.
3129 (sreal::signedless_minus): Likewise.
3130 (sreal::operator/): Negative number support is added.
3131 * sreal.h: Definition of new functions added.
3132 (inline sreal operator<<): New function.
3133 (inline sreal operator>>): Likewise.
3135 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3137 * config/aarch64/aarch64-protos.h (struct tune_params): Add
3139 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
3140 (cortexa53_tunings): Likewise.
3141 (cortexa57_tunings): Likewise.
3142 (thunderx_tunings): Likewise.
3143 (aarch64_macro_fusion_p): New function.
3144 (aarch_macro_fusion_pair_p): Likewise.
3145 (TARGET_SCHED_MACRO_FUSION_P): Define.
3146 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3147 (AARCH64_FUSE_MOV_MOVK): Likewise.
3148 (AARCH64_FUSE_NOTHING): Likewise.
3150 2014-11-24 Martin Liska <mliska@suse.cz>
3153 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
3154 with replace_key method.
3155 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
3156 (fibonacci_heap::replace_key_data): Likewise.
3157 (fibonacci_heap::replace_key): New method that can even increment key,
3158 this operation costs O(log N).
3159 (fibonacci_heap::extract_min): New argument.
3160 (fibonacci_heap::delete_node): Likewise.
3162 2014-11-24 Richard Biener <rguenther@suse.de>
3164 PR tree-optimization/55334
3165 * function.h (struct function): Add last_clique member.
3166 * tree-inline.c (remap_dependence_clique): New function.
3167 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
3168 (copy_tree_body_r): Likewise.
3169 (copy_cfg_body): Free dependence map.
3170 (copy_gimple_seq_and_replace_locals): Likewise.
3171 * tree-pretty-print.c (dump_generic_node): Dump
3173 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
3174 to answer alias query.
3175 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
3176 tree-pretty-print.h and gimple-walk.h.
3177 (struct variable_info): Add is_restrict_var flag and ruid
3179 (new_var_info): Initialize is_restrict_var.
3180 (make_constraint_from_restrict): Likewise.
3181 (create_variable_info_for): Exclude restricts from global vars
3183 (intra_create_variable_infos): But not those from parameters.
3184 (visit_loadstore): New function.
3185 (maybe_set_dependence_info): Likewise.
3186 (compute_dependence_clique): Likewise.
3187 (compute_may_aliases): Call compute_dependence_clique.
3188 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
3190 (dr_may_alias_p): Use recorded dependence info to answer
3192 * tree-core.h (struct tree_base): Add clique, base struct in
3194 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
3195 (MR_DEPENDENCE_BASE): Likewise.
3196 * tree-inline.h (dependence_hasher): New hash-map kind.
3197 (struct copy_body_data): Add dependence_map pointer.
3198 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
3199 throwing away dependence info.
3200 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
3201 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
3203 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
3206 * config/sh/sh_optimize_sett_clrt.cc
3207 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
3208 of void. Abort at complex edges.
3209 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
3212 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
3215 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
3217 * configure: Regenerated.
3218 * config.in: Regenerated.
3220 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
3222 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
3223 clones as having abstract origin used.
3224 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
3226 (clone_inlined_nodes): Copy abstract originflag.
3227 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
3228 abstract origin node.
3230 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
3232 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
3233 * config/i386/i386.c (ix86_option_override_internal): Do not increase
3234 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3236 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3240 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
3241 Do not emit bitwise not insn. Emit logical not insn sequence instead.
3242 Adjust related comments throughout the file.
3244 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
3248 * config/sh/sh.c (sh_is_logical_t_store_expr,
3249 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
3250 (sh_split_movrt_negc_to_movt_xor): New function.
3251 (sh_find_set_of_reg): Move to ...
3252 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
3253 to template function.
3254 (set_of_reg): Use rtx_insn* for insn member.
3255 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
3256 rtx_insn* for insn argument.
3257 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
3258 sequence using new sh_split_movrt_negc_to_movt_xor function.
3259 (movrt_xor): Allow also for SH2A.
3260 (*movt_movrt): Delete insns and splits.
3262 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
3264 PR tree-optimization/60770
3265 * tree-sra.c (clobber_subtree): New function.
3266 (sra_modify_constructor_assign): Call it.
3268 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
3271 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
3273 (process_bb_lives): Rename dead_insn_p on remove_p
3274 and global_live_info_p on dead_insn_p. Calculate local live info
3275 unconditionally. Remove last argument in calls mark_regno_live and
3276 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
3277 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
3278 Return bool. Rename global_live_info_p on dead_insn_p. Return
3279 flag of live info change.
3280 (lra_create_live_ranges): New.
3282 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3286 * internal-fn.c (expand_arith_overflow_result_store,
3287 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
3288 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
3289 adjust arguments to those functions. Use unsignedp = true for
3290 EQ, NE, GEU, LEU, LTU and GTU comparisons.
3292 PR tree-optimization/64006
3293 * tree-vrp.c (stmt_interesting_for_vrp): Return true
3294 for {ADD,SUB,MUL}_OVERFLOW internal calls.
3295 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
3296 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
3297 immediate uses would change their value ranges and return
3298 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
3299 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
3300 interesting for vrp.
3302 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3305 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
3306 Altivec & -16 mask if the type is not valid for Altivec registers.
3307 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
3308 reg) that occurs during push_reload processing.
3310 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
3311 alternative for moving constant vectors which are easy altivec
3312 constants to GPRs. Set the length attribute each of the
3315 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
3317 * configure.ac: When checking for MIPS .module support ensure that
3318 o32 FPXX is supported to avoid a second configure check.
3319 * configure: Regenerate.
3321 2014-11-21 Jiong Wang <jiong.wang@arm.com>
3323 * config/aarch64/iterators.md (VS): New mode iterator.
3324 (vsi2qi): New mode attribute.
3326 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
3327 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
3328 * config/aarch64/aarch64-builtins.c
3329 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
3331 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
3334 * configure: Regenerated.
3336 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3338 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
3340 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3342 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3343 OPTION_MASK_ISA_PCOMMIT_SET): New.
3344 (ix86_handle_option): Handle OPT_mpcommit.
3345 * config.gcc: Add pcommitintrin.h
3346 * config/i386/pcommitintrin.h: New file.
3347 * config/i386/cpuid.h (bit_PCOMMIT): Define.
3348 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
3349 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3351 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
3352 (PTA_PCOMMIT): Define.
3353 (ix86_option_override_internal): Handle new option.
3354 (ix86_valid_target_attribute_inner_p): Add pcommit.
3355 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
3356 (bdesc_special_args): Add __builtin_ia32_pcommit.
3357 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
3358 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
3359 (pcommit): New instruction.
3360 * config/i386/i386.opt: Add mpcommit.
3361 * config/i386/x86intrin.h: Include pcommitintrin.h.
3363 2014-11-20 Mark Wielaard <mjw@redhat.com>
3366 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
3367 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
3368 (darwin_override_options): Likewise.
3369 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3371 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3373 * dbxout.c (get_lang_number): Likewise.
3374 (dbxout_type): Likewise.
3375 (dbxout_symbol_location): Likewise.
3376 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
3377 also for DW_LANG_{C,C99,ObjC}.
3378 (highest_c_language): New function.
3379 (gen_compile_unit_die): Call highest_c_language to merge LTO
3380 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
3381 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
3382 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
3383 * langhooks.h (struct lang_hooks): Add version comment to name.
3384 (lang_GNU_C): New function declaration.
3385 (lang_GNU_CXX): Likewise.
3386 * langhooks.c (lang_GNU_C): New function.
3387 (lang_GNU_CXX): Likewise.
3388 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
3390 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3392 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
3393 OPTION_MASK_ISA_CLWB_SET): New.
3394 (ix86_handle_option): Handle OPT_mclwb.
3395 * config.gcc: Add clwbintrin.h.
3396 * config/i386/clwbintrin.h: New file.
3397 * config/i386/cpuid.h (bit_CLWB): Define.
3398 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
3399 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3401 * config/i386/i386.c (ix86_target_string): Add -mclwb.
3403 (ix86_option_override_internal): Handle new option.
3404 (ix86_valid_target_attribute_inner_p): Add clwb.
3405 (ix86_builtins): Add IX86_BUILTIN_CLWB.
3406 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
3407 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
3408 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
3409 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
3410 (clwb): New instruction.
3411 * config/i386/i386.opt: Add mclwb.
3412 * config/i386/x86intrin.h: Include clwbintrin.h.
3414 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3416 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
3417 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
3418 (ix86_handle_option): Handle OPT_mavx512vbmi.
3419 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
3420 * config/i386/avx512vbmiintrin.h: New file.
3421 * config/i386/avx512vbmivlintrin.h: Ditto.
3422 * config/i386/cpuid.h (bit_AVX512VBMI): New.
3423 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
3424 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3426 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
3427 (PTA_AVX512VBMI): Define.
3428 (ix86_option_override_internal): Handle new options.
3429 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
3430 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
3431 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
3432 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
3433 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
3434 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
3435 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
3436 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
3437 IX86_BUILTIN_VPERMI2VARQI128.
3438 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
3439 __builtin_ia32_vpmultishiftqb256_mask,
3440 __builtin_ia32_vpmultishiftqb128_mask,
3441 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
3442 __builtin_ia32_vpermt2varqi512_maskz,
3443 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
3444 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
3445 __builtin_ia32_vpermt2varqi256_maskz,
3446 __builtin_ia32_vpermt2varqi128_mask,
3447 __builtin_ia32_vpermt2varqi128_maskz,
3448 __builtin_ia32_vpermi2varqi256_mask,
3449 __builtin_ia32_vpermi2varqi128_mask.
3450 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
3451 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
3452 * config/i386/i386.opt: Add mavx512vbmi.
3453 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
3454 avx512vbmivlintrin.h.
3455 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
3456 (VI1_AVX512VL): New iterator.
3457 (<avx512>_permvar<mode><mask_name>): Use it.
3458 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
3459 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
3460 (<avx512>_vpermi2var<mode>3_mask): Ditto.
3461 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
3462 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
3463 (<avx512>_vpermt2var<mode>3_mask): Ditto.
3464 (vpmultishiftqb<mode><mask_name>): Ditto.
3466 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3468 PR rtl-optimization/63952
3469 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
3470 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
3471 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
3473 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
3475 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
3476 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
3477 (ix86_handle_option): Handle OPT_mavx512ifma.
3478 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
3479 * config/i386/avx512ifmaintrin.h: New file.
3480 * config/i386/avx512ifmaivlntrin.h: Ditto.
3481 * config/i386/cpuid.h (bit_AVX512IFMA): New.
3482 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3484 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3486 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
3487 (PTA_AVX512IFMA): Define.
3488 (ix86_option_override_internal): Handle new options.
3489 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
3490 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
3491 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
3492 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
3493 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
3494 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
3495 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
3496 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
3497 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
3498 __builtin_ia32_vpmadd52luq512_maskz,
3499 __builtin_ia32_vpmadd52huq512_mask,
3500 __builtin_ia32_vpmadd52huq512_maskx,
3501 __builtin_ia32_vpmadd52luq256_mask,
3502 __builtin_ia32_vpmadd52luq256_maskz,
3503 __builtin_ia32_vpmadd52huq256_mask,
3504 __builtin_ia32_vpmadd52huq256_maskz,
3505 __builtin_ia32_vpmadd52luq128_mask,
3506 __builtin_ia32_vpmadd52luq128_maskz,
3507 __builtin_ia32_vpmadd52huq128_mask,
3508 __builtin_ia32_vpmadd52huq128_maskz,
3509 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
3510 * config/i386/i386.opt: Add mavx512ifma.
3511 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
3512 avx512ifmavlintrin.h.
3513 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
3515 (VPMADD52): New iterator.
3516 (vpmadd52type): New attribute.
3517 (vpamdd52huq<mode>_maskz): New.
3518 (vpamdd52luq<mode>_maskz): Ditto.
3519 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
3520 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
3522 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
3525 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3526 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3528 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
3530 * config/mips/mips.c (mips_process_sync_loop): Place a
3531 nop in the delay slot of the branch likely instruction.
3532 (mips_output_sync_loop): Ensure mips_branch_likely is
3533 set before calling mips_output_sync_loop.
3534 (mips_sync_loop_insns): Likewise.
3536 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3539 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
3540 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
3543 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
3545 Forward-port from 2014-10-30 4_9-branch r216934
3548 * config/avr/avr-protos.h (regmask): New inline function.
3549 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
3550 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
3551 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
3552 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
3553 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
3554 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
3555 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
3556 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
3557 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
3558 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
3559 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
3560 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
3561 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
3564 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3567 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
3568 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
3570 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
3572 * config/aarch64/aarch64-simd.md
3573 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
3574 output mnemonic and operands.
3575 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
3576 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
3578 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3580 * config/i386/i386.c (ix86_option_override_internal): Increase
3581 PARAM_MAX_COMPLETELY_PEELED_INSNS.
3583 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
3586 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
3587 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
3588 replace for V16QI, V16HI and V32QI modes.
3589 (ix86_expand_vec_perm_const_1): Add new expand.
3591 2014-11-21 Nick Clifton <nickc@redhat.com>
3593 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
3594 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
3595 (rl78_expand_prologue): Save the ES register in interrupt handlers
3597 (rl78_expand_epilogue): Restore the ES register if necessary.
3598 (rl78_start_function): Mention if the function uses the ES
3600 (rl78_lo16): Record the use of the ES register.
3601 (transcode_memory_rtx): Likewise.
3603 2014-11-21 Jakub Jelinek <jakub@redhat.com>
3605 PR tree-optimization/61773
3606 * tree-ssa-strlen.c (get_string_length): Don't assert
3607 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
3610 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
3611 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
3612 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
3614 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3616 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
3617 HOST_WIDE_INT_M1U instead of ~0.
3618 (includes_rldicr_lshift_p): Likewise.
3620 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3622 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
3623 we need to look into its operand to determine if it is a valid
3626 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3628 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
3629 vaarg_p argument and create correct CFI info.
3630 (nds32_expand_prologue): Pass true or false to
3631 nds32_emit_stack_push_multiple function.
3633 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3635 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
3636 as RTX_FRAME_RELATED_P rtx.
3638 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
3640 * config/nds32/nds32.opt (march): Add help message.
3642 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
3644 * tree-vrp.c (test_for_singularity): New parameter
3645 strict_overflow_p. Set *strict_overflow_p to true if signed
3646 overflow must be undefined for the return value to satisfy the
3648 (simplify_cond_using_ranges): Don't perform the simplification
3649 if it violates overflow rules.
3651 2014-11-20 Marek Polacek <polacek@redhat.com>
3653 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
3655 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
3657 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3658 condition would be removed due to undefined behaviour.
3660 2014-11-20 Andrew Pinski <apinski@cavium.com>
3664 * ipa-polymorphic-call.c (possible_placement_new):
3665 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
3666 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
3667 (extr_type_from_vtbl_ptr_store): Likewise.
3669 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
3671 * config/rs6000/constraints.md: Avoid signed integer overflows.
3672 * config/rs6000/predicates.md: Likewise.
3673 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
3674 (includes_rldic_lshift_p): Likewise.
3675 (includes_rldicr_lshift_p): Likewise.
3676 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
3677 * loop-iv.c (determine_max_iter): Likewise.
3678 (iv_number_of_iterations): Likewise.
3679 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
3680 * varasm.c (get_section_anchor): Likewise.
3682 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
3685 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
3686 expression to aarch64_simd_lane_bounds.
3687 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
3689 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
3690 call to aarch64_simd_lane_bounds.
3691 (aarch64_get_lanedi): Likewise.
3692 (aarch64_ld2_lane<mode>): Likewise.
3693 (aarch64_ld3_lane<mode>): Likewise.
3694 (aarch64_ld4_lane<mode>): Likewise.
3695 (aarch64_im_lane_boundsi): Likewise.
3696 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
3697 parameter. Report calling function in error message if exp is non-NULL.
3699 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3702 * config/sh/sh.c: Use signed char for signed field.
3704 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3706 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
3709 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3711 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
3712 tree-scalar-evolution.c: Replace htab with hash_table.
3714 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3716 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
3717 (lto_free_function_in_decl_state): Likewise.
3718 * lto-streamer-out.c (copy_function_or_variable): Likewise.
3719 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
3720 (lto_file_decl_data_num_ ## name ## s): Likewise.
3721 (struct lto_tree_ref_table): Remove.
3722 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
3724 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3726 * hash-map.h (hash_map::iterator): New class.
3727 (hash_map::begin): New method.
3728 (hash_map::end): Likewise.
3729 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
3730 replace splay_tree with hash_map.
3732 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3734 * hash-table.h (hash_table::hash_table): Call alloc_entries.
3735 (hash_table::alloc_entries): new method.
3736 (hash_table::expand): Call alloc_entries.
3737 (hash_table::empty): Likewise.
3739 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3741 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
3742 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
3744 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
3746 * doc/gty.texi: Document the new cache gty attribute.
3747 * gengtype.c (finish_cache_funcs): New function.
3748 (write_roots): Call gt_clear_cache on global variables with the cache
3750 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
3751 * ggc.h (gt_clear_caches): New declaration.
3752 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
3754 (gt_cleare_cache): New function.
3755 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
3757 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3759 * combine.c (try_combine): Prefer to delete dead SETs inside
3760 a PARALLEL over keeping them.
3762 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
3764 * combine.c (combine_validate_cost): Always print the insn costs
3767 2014-11-20 Richard Henderson <rth@redhat.com>
3770 * config/i386/i386.c (ix86_static_chain): Reinstate the check
3771 for DECL_STATIC_CHAIN.
3773 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
3775 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
3777 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
3778 aarch64_cannot_force_const_mem, aarch64_classify_address,
3779 aarch64_classify_symbolic_expression): Fixup call to
3780 aarch64_classify_symbol.
3781 (aarch64_classify_symbol): Add range-checking for
3782 symbol + offset addressing for tiny and small models.
3784 2014-11-20 Richard Biener <rguenther@suse.de>
3787 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
3788 Guard with single-use operand 0.
3790 2014-11-20 Richard Biener <rguenther@suse.de>
3792 PR tree-optimization/63677
3793 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
3794 (avail_exprs_stack): Make a vector of pairs.
3795 (struct hash_expr_elt): Replace stmt member with vop member.
3796 (expr_elt_hasher::equal): Simplify.
3797 (initialize_hash_element): Adjust.
3798 (initialize_hash_element_from_expr): Likewise.
3799 (dom_opt_dom_walker::thread_across_edge): Likewise.
3800 (record_cond): Likewise.
3801 (dom_opt_dom_walker::before_dom_children): Likewise.
3802 (print_expr_hash_elt): Likewise.
3803 (remove_local_expressions_from_table): Restore previous state
3805 (record_equivalences_from_stmt): Record &x + CST as constant
3806 &MEM[&x, CST] for further propagation.
3807 (vuse_eq): New function.
3808 (lookup_avail_expr): For loads use the alias oracle to see
3809 whether a candidate from the expr hash is usable.
3810 (avail_expr_hash): Do not hash VUSEs.
3812 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3815 * config/arm/arm.md (*movhi_insn): Use right formatting
3818 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
3821 * function.c (assign_parms): Move init of pic_offset_table_rtx
3823 * cfgexpand.c (expand_used_vars): ...here.
3825 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3827 * tree.c (free_lang_data_in_type): If BINFO has no important
3828 information in it, set it to NULL.
3829 (get_binfo_at_offset): Do not walk fields, only bases.
3830 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
3832 * ipa-polymorphic-call.c (record_known_type): Likewise.
3834 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3837 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
3838 congruence_class_group *.
3840 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
3843 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
3844 Output "b" and "nb" suffix for FP mode.
3846 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
3849 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream
3850 out DECL_FUNCTION_SPECIFIC_TARGET
3851 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream
3852 in DECL_FUNCTION_SPECIFIC_TARGET.
3854 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3857 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
3859 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3862 * lra.c (lra): After creating live ranges in preparation for call
3863 to lra_inheritance, set live_p to true.
3865 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3868 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
3870 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
3872 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3875 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
3876 vec<> to auto_vec<> to fix a leak.
3878 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3881 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
3883 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3886 * ira-costs.c (ira_costs_c_finalize): New function.
3887 * ira.h (ira_costs_c_finalize): New prototype.
3888 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
3890 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3893 * ipa-reference.c (ipa_reference_c_finalize): Release
3894 optimization_summary_obstack.
3896 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3899 * toplev.c (toplev::finalize): Free opts_obstack.
3901 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3904 * toplev.c (toplev::finalize): Clean up save_decoded_options.
3906 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3910 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
3911 local bbs_in_hot_partition from vec<> to auto_vec<>.
3913 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3916 * config/alpha/alpha.c (alpha_option_override): Remove static from
3917 "handle_trap_shadows_info" and "align_insns_info".
3918 * config/i386/i386.c (ix86_option_override): Likewise for
3919 "insert_vzeroupper_info".
3920 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
3921 "rl78_devirt_info" and "rl78_move_elim_info".
3922 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
3923 "analyze_swaps_info".
3924 * context.c (gcc::context::~context): New.
3925 * context.h (gcc::context::~context): New.
3926 * dumpfile.c (dump_files): Add "false" initializers for new field
3928 (gcc::dump_manager::~dump_manager): New.
3929 (gcc::dump_manager::dump_register): Add param "take_ownership".
3930 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
3931 (gcc::dump_manager::~dump_manager): New.
3932 (gcc::dump_manager::dump_register): Add param "take_ownership".
3933 * pass_manager.h (gcc::pass_manager::operator delete): New.
3934 (gcc::pass_manager::~pass_manager): New.
3935 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
3936 new "owns_strings" argument to dump_register.
3937 (pass_manager::operator delete): New.
3938 (delete_pass_tree): New function.
3939 (pass_manager::~pass_manager): New.
3940 * statistics.c (statistics_early_init): Pass "false" to
3941 new "owns_strings" argument to dump_register.
3942 * toplev.c (toplev::finalize): Clean up the context and thus the
3945 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3948 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
3949 obstack_free when cleaning up valid_mode_changes_obstack.
3951 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3954 * opts.c (finalize_options_struct): New.
3955 * opts.h (finalize_options_struct): New.
3956 * toplev.c (toplev::finalize): Call finalize_options_struct
3957 on global_options and global_options_set.
3959 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3960 Jakub Jelinek <jakub@redhat.com>
3964 * gcc.c (process_command): Don't check for input/output
3965 filename equality if output is HOST_BIT_BUCKET.
3966 * toplev.c (init_asm_output): Likewise.
3968 2014-11-19 David Malcolm <dmalcolm@redhat.com>
3970 Merger of git branch "gimple-classes-v2-option-3".
3972 * ChangeLog.gimple-classes: New.
3974 * coretypes.h (struct gcond): Add forward decl.
3975 (struct gdebug): Likewise.
3976 (struct ggoto): Likewise.
3977 (struct glabel): Likewise.
3978 (struct gswitch): Likewise.
3979 (struct gassign): Likewise.
3980 (struct gasm): Likewise.
3981 (struct gcall): Likewise.
3982 (struct gtransaction): Likewise.
3983 (struct greturn): Likewise.
3984 (struct gbind): Likewise.
3985 (struct gcatch): Likewise.
3986 (struct geh_filter): Likewise.
3987 (struct geh_mnt): Likewise.
3988 (struct geh_else): Likewise.
3989 (struct gresx): Likewise.
3990 (struct geh_dispatch): Likewise.
3991 (struct gphi): Likewise.
3992 (struct gtry): Likewise.
3993 (struct gomp_atomic_load): Likewise.
3994 (struct gomp_atomic_store): Likewise.
3995 (struct gomp_continue): Likewise.
3996 (struct gomp_critical): Likewise.
3997 (struct gomp_for): Likewise.
3998 (struct gomp_parallel): Likewise.
3999 (struct gomp_task): Likewise.
4000 (struct gomp_sections): Likewise.
4001 (struct gomp_single): Likewise.
4002 (struct gomp_target): Likewise.
4003 (struct gomp_teams): Likewise.
4005 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
4006 for renaming of gimple subclasses.
4008 * gdbhooks.py: Update.
4010 * gimple-iterator.c (gsi_for_phi): New.
4011 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4013 * gimple-iterator.h (struct gphi_iterator): New subclass of
4014 gimple_stmt_iterator.
4015 (gsi_for_phi): New prototype.
4016 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
4018 (gsi_next_nonvirtual_phi): Strengthen param from
4019 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
4022 * gsstruct.def: Update for renamings of classes.
4024 * gimple.c (gimple_build_return): Strengthen return type from
4025 gimple to greturn *.
4026 (gimple_call_reset_alias_info): Strengthen param to gcall *.
4027 (gimple_build_call_1): Strengthen return type from gimple to
4029 (gimple_build_call_vec): Likewise.
4030 (gimple_build_call): Likewise.
4031 (gimple_build_call_valist): Likewise.
4032 (gimple_build_call_internal_1): Likewise.
4033 (gimple_build_call_internal): Likewise.
4034 (gimple_build_call_internal_vec): Likewise.
4035 (gimple_build_call_from_tree): Likewise.
4036 (gimple_build_assign_stat): Strengthen return type from gimple to
4038 (gimple_build_assign_with_ops): Likewise.
4039 (gimple_build_assign_with_ops): Likewise.
4040 (gimple_build_cond): Strengthen return type from gimple to
4042 (gimple_build_cond_from_tree): Likewise.
4043 (gimple_cond_set_condition_from_tree): Require a gcond *.
4044 (gimple_build_label): Strengthen return type from gimple to
4046 (gimple_build_goto): Strengthen return type from gimple to
4048 (gimple_build_bind): Strengthen return type from gimple to
4050 (gimple_build_asm_1): Strengthen return type from gimple to
4052 (gimple_build_asm_vec): Likewise.
4053 (gimple_build_catch): Strengthen return type from gimple to
4055 (gimple_build_eh_filter): Strengthen return type from gimple to
4057 (gimple_build_eh_must_not_throw): Strengthen return type from
4058 gimple to geh_mnt *.
4059 (gimple_build_eh_else): Strengthen return type from gimple to
4061 (gimple_build_try): Update for renaming of gimple_statement_try to
4063 (gimple_build_resx): Strengthen return type from gimple to
4065 (gimple_build_switch_nlabels): Strengthen return type from gimple
4067 (gimple_build_switch): Likewise.
4068 (gimple_build_eh_dispatch): Strengthen return type from gimple to
4070 (gimple_build_debug_bind_stat): Strengthen return type from gimple
4072 (gimple_build_debug_source_bind_stat): Strengthen return type from
4074 (gimple_build_omp_critical): Strengthen return type from gimple to
4076 (gimple_build_omp_for): Strengthen return type from gimple to
4078 (gimple_build_omp_parallel): Strengthen return type from gimple to
4080 (gimple_build_omp_task): Strengthen return type from gimple to
4082 (gimple_build_omp_continue): Strengthen return type from gimple to
4084 (gimple_build_omp_sections): Strengthen return type from gimple to
4086 (gimple_build_omp_single): Strengthen return type from gimple to
4088 (gimple_build_omp_target): Strengthen return type from gimple to
4090 (gimple_build_omp_teams): Strengthen return type from gimple to
4092 (gimple_build_omp_atomic_load): Strengthen return type from gimple
4093 to gomp_atomic_load *.
4094 (gimple_build_omp_atomic_store): Strengthen return type from gimple
4095 to gomp_atomic_store *.
4096 (gimple_build_transaction): Strengthen return type from gimple
4098 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
4099 (gimple_call_fnspec): Require a const gcall *.
4100 (gimple_call_arg_flags): Likewise.
4101 (gimple_call_return_flags): Likewise.
4102 (gimple_set_bb): Add a checked cast.
4103 (gimple_copy): Within the cases, add locals of the appropriate
4104 subclass and use in place of "stmt" and "copy" for typesafety.
4105 (gimple_has_side_effects): Add a checked cast.
4106 (gimple_could_trap_p_1): Likewise.
4107 (gimple_call_copy_skip_args): Require a gcall *, and return one.
4108 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4109 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
4110 dyn_cast, introducing local "return_stmt" and using ti in place
4113 * gimple.h (gimple_vec): Eliminate this typedef.
4114 (struct gimple_statement_call): Rename to...
4115 (struct gcall): ...this.
4116 (struct gimple_statement_bind): Rename to...
4117 (struct gbind): ...this.
4118 (struct gimple_statement_catch): Rename to...
4119 (struct gcatch): ...this.
4120 (struct gimple_statement_eh_filter): Rename to...
4121 (struct geh_filter): ...this.
4122 (struct gimple_statement_eh_else): Rename to...
4123 (struct geh_else): ...this.
4124 (struct gimple_statement_eh_mnt): Rename to...
4125 (struct geh_mnt): ...this.
4126 (struct gimple_statement_phi): Rename to...
4127 (struct gphi): ...this.
4128 (struct gimple_statement_resx): Rename to...
4129 (struct gresx): ...this.
4130 (struct gimple_statement_eh_dispatch): Rename to...
4131 (struct geh_dispatch): ...this.
4132 (struct gimple_statement_try): Rename to...
4133 (struct gtry): ...this.
4134 (struct gimple_statement_asm): Rename to...
4135 (struct gasm): ...this.
4136 (struct gimple_statement_omp_critical): Rename to...
4137 (struct gomp_critical): ...this.
4138 (struct gimple_statement_omp_for): Rename to...
4139 (struct gomp_for): ...this.
4140 (struct gimple_statement_omp_parallel): Rename to...
4141 (struct gomp_parallel): ...this.
4142 (struct gimple_statement_omp_target): Rename to...
4143 (struct gomp_target): ...this.
4144 (struct gimple_statement_omp_task): Rename to...
4145 (struct gomp_task): ...this.
4146 (struct gimple_statement_omp_sections): Rename to...
4147 (struct gomp_sections): ...this.
4148 (struct gimple_statement_omp_continue): Rename to...
4149 (struct gomp_continue): ...this.
4150 (struct gimple_statement_omp_single): Rename to...
4151 (struct gomp_single): ...this.
4152 (struct gimple_statement_omp_teams): Rename to...
4153 (struct gomp_teams): ...this.
4154 (struct gimple_statement_omp_atomic_load): Rename to...
4155 (struct gomp_atomic_load): ...this.
4156 (struct gimple_statement_omp_atomic_store :): Rename to...
4157 (struct gomp_atomic_store :): ...this.
4158 (struct gimple_statement_transaction): Rename to...
4159 (struct gtransaction): ...this.
4160 (struct gcond): New subclass.
4161 (struct gdebug): New subclass.
4162 (struct ggoto): New subclass.
4163 (struct glabel): New subclass.
4164 (struct gswitch): New subclass.
4165 (struct gassign): New subclass.
4166 (struct greturn): New subclass.
4167 (is_a_helper <gimple_statement_asm *>::test): Rename to...
4168 (is_a_helper <gasm *>::test): ...this.
4169 (is_a_helper <gimple_statement_bind *>::test): Rename to...
4170 (is_a_helper <gbind *>::test): ...this.
4171 (is_a_helper <gassign *>::test): New.
4172 (is_a_helper <gimple_statement_call *>::test): Rename to...
4173 (is_a_helper <gcall *>::test): ...this.
4174 (is_a_helper <gimple_statement_catch *>::test): Rename to...
4175 (is_a_helper <gcatch *>::test): ...this.
4176 (is_a_helper <gimple_statement_resx *>::test): Rename to...
4177 (is_a_helper <gresx *>::test): ...this.
4178 (is_a_helper <gcond *>::test): New.
4179 (is_a_helper <gdebug *>::test): New.
4180 (is_a_helper <ggoto *>::test): New.
4181 (is_a_helper <glabel *>::test): New.
4182 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
4183 (is_a_helper <geh_dispatch *>::test): ...this.
4184 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
4185 (is_a_helper <geh_else *>::test): ...this.
4186 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
4187 (is_a_helper <geh_filter *>::test): ...this.
4188 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
4189 (is_a_helper <geh_mnt *>::test): ...this.
4190 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
4191 (is_a_helper <gomp_atomic_load *>::test): ...this.
4192 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
4193 (is_a_helper <gomp_atomic_store *>::test): ...this.
4194 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
4195 (is_a_helper <gomp_continue *>::test): ...this.
4196 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
4197 (is_a_helper <gomp_critical *>::test): ...this.
4198 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
4199 (is_a_helper <gomp_for *>::test): ...this.
4200 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
4201 (is_a_helper <gomp_parallel *>::test): ...this.
4202 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
4203 (is_a_helper <gomp_target *>::test): ...this.
4204 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
4205 (is_a_helper <gomp_sections *>::test): ...this.
4206 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
4207 (is_a_helper <gomp_single *>::test): ...this.
4208 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
4209 (is_a_helper <gomp_teams *>::test): ...this.
4210 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
4211 (is_a_helper <gomp_task *>::test): ...this.
4212 (is_a_helper <gimple_statement_phi *>::test): Rename to...
4213 (is_a_helper <gphi *>::test): ...this.
4214 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
4215 (is_a_helper <gtransaction *>::test): ...this.
4216 (is_a_helper <greturn *>::test): New.
4217 (is_a_helper <gswitch *>::test): New.
4218 (is_a_helper <gimple_statement_try *>::test): Rename to...
4219 (is_a_helper <gtry *>::test): ...this.
4220 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
4221 (is_a_helper <const gasm *>::test): ...this.
4222 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
4223 (is_a_helper <const gbind *>::test): ...this.
4224 (is_a_helper <const gimple_statement_call *>::test): Rename to...
4225 (is_a_helper <const gcall *>::test): ...this.
4226 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
4227 (is_a_helper <const gcatch *>::test): ...this.
4228 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
4229 (is_a_helper <const gresx *>::test): ...this.
4230 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
4231 (is_a_helper <const geh_dispatch *>::test): ...this.
4232 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
4233 (is_a_helper <const geh_filter *>::test): ...this.
4234 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
4236 (is_a_helper <const gomp_atomic_load *>::test): ...this.
4237 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
4239 (is_a_helper <const gomp_atomic_store *>::test): ...this.
4240 (is_a_helper <const gimple_statement_omp_continue *>::test):
4242 (is_a_helper <const gomp_continue *>::test): ...this.
4243 (is_a_helper <const gimple_statement_omp_critical *>::test):
4245 (is_a_helper <const gomp_critical *>::test): ...this.
4246 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
4247 (is_a_helper <const gomp_for *>::test): ...this.
4248 (is_a_helper <const gimple_statement_omp_parallel *>::test):
4250 (is_a_helper <const gomp_parallel *>::test): ...this.
4251 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
4252 (is_a_helper <const gomp_target *>::test): ...this.
4253 (is_a_helper <const gimple_statement_omp_sections *>::test):
4255 (is_a_helper <const gomp_sections *>::test): ...this.
4256 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
4257 (is_a_helper <const gomp_single *>::test): ...this.
4258 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
4259 (is_a_helper <const gomp_teams *>::test): ...this.
4260 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
4261 (is_a_helper <const gomp_task *>::test): ...this.
4262 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
4263 (is_a_helper <const gphi *>::test): ...this.
4264 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
4265 (is_a_helper <const gtransaction *>::test): ...this.
4266 (gimple_build_return): Strengthen return type to greturn *.
4267 (gimple_call_reset_alias_info): Require a gcall *.
4268 (gimple_build_call_vec): Return a gcall *.
4269 (gimple_build_call): Likewise.
4270 (gimple_build_call_valist): Likewise.
4271 (gimple_build_call_internal): Likewise.
4272 (gimple_build_call_internal_vec): Likewise.
4273 (gimple_build_call_from_tree): Likewise.
4274 (gimple_build_assign_stat): Return a gassign *.
4275 (gimple_build_assign_with_ops): Likewise.
4276 (gimple_build_cond): Return a gcond *.
4277 (gimple_build_cond_from_tree): Likewise.
4278 (gimple_cond_set_condition_from_tree): Require a gcond *.
4279 (gimple_build_label): Return a glabel *.
4280 (gimple_build_goto): Return a ggoto *.
4281 (gimple_build_bind): Return a gbind *.
4282 (gimple_build_asm_vec): Return a gasm *.
4283 (gimple_build_catch): Return a gcatch *.
4284 (gimple_build_eh_filter): Return a geh_filter *.
4285 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
4286 (gimple_build_eh_else): Return a geh_else *.
4287 (gimple_build_try): Return a gtry *.
4288 (gimple_build_resx): Return a gresx *.
4289 (gimple_build_switch_nlabels): Return a gswitch *.
4290 (gimple_build_switch): Return a gswitch *.
4291 (gimple_build_eh_dispatch): Return a geh_dispatch *.
4292 (gimple_build_debug_bind_stat): Return a gdebug *.
4293 (gimple_build_debug_source_bind_stat): Return a gdebug *.
4294 (gimple_build_omp_critical): Return a gomp_critical *.
4295 (gimple_build_omp_for): Return a gomp_for *.
4296 (gimple_build_omp_parallel): Return a gomp_parallel *.
4297 (gimple_build_omp_task): Return a gomp_task *.
4298 (gimple_build_omp_continue): Return a gomp_continue *.
4299 (gimple_build_omp_sections): Return a gomp_sections *.
4300 (gimple_build_omp_single): Return a gomp_single *.
4301 (gimple_build_omp_target): Return a gomp_target *.
4302 (gimple_build_omp_teams): Return a gomp_teams *.
4303 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
4304 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
4305 (gimple_build_transaction): Return a gtransaction *.
4306 (gimple_call_arg_flags): Require a const gcall *.
4307 (gimple_call_return_flags): Likewise.
4308 (gimple_call_copy_skip_args): Require and return a gcall *.
4309 (gimple_asm_clobbers_memory_p): Require a const gasm *.
4310 (gimple_seq_first_stmt_as_a_bind): New.
4311 (gimple_assign_nontemporal_move_p): Require a const gassign *
4312 rather than a const_gimple.
4313 (gimple_call_internal_fn): Update for renaming to gcall.
4314 (gimple_call_fntype): Likewise.
4315 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
4316 (gimple_call_set_fn): Likewise.
4317 (gimple_call_set_internal_fn): Likewise.
4318 (gimple_call_set_chain): Likewise.
4319 (gimple_call_set_tail): Likewise.
4320 (gimple_call_tail_p): Likewise.
4321 (gimple_call_set_return_slot_opt): Likewise.
4322 (gimple_call_return_slot_opt_p): Likewise.
4323 (gimple_call_set_from_thunk): Likewise.
4324 (gimple_call_from_thunk_p): Likewise.
4325 (gimple_call_set_va_arg_pack): Likewise.
4326 (gimple_call_va_arg_pack_p): Likewise.
4327 (gimple_call_set_nothrow): Likewise.
4328 (gimple_call_nothrow_p): Likewise.
4329 (gimple_call_set_alloca_for_var): Likewise.
4330 (gimple_call_alloca_for_var_p): Likewise.
4331 (gimple_call_use_set): Likewise.
4332 (gimple_call_clobber_set): Likewise.
4333 (gimple_call_return_type): Require a const gcall * rather than a
4335 (gimple_call_chain_ptr): Likewise.
4336 (gimple_call_copy_flags): Require a pair of gcall *.
4337 (gimple_cond_set_code): Require a gcond * rather than a gimple
4338 (gimple_cond_set_lhs): Likewise.
4339 (gimple_cond_set_rhs): Likewise.
4340 (gimple_cond_set_true_label): Likewise.
4341 (gimple_cond_set_false_label): Likewise.
4342 (gimple_cond_make_false): Likewise.
4343 (gimple_cond_make_true): Likewise.
4344 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
4346 (gimple_cond_rhs_ptr): Likewise.
4347 (gimple_cond_true_label): Likewise.
4348 (gimple_cond_false_label): Likewise.
4349 (gimple_cond_true_p): Likewise.
4350 (gimple_cond_false_p): Likewise.
4351 (gimple_cond_set_condition): Likewise.
4352 (gimple_label_label): Require a const glabel *.
4353 (gimple_label_set_label): Require a glabel *.
4354 (gimple_goto_set_dest): Require a ggoto *.
4355 (gimple_bind_vars): Require a const gbind *.
4356 (gimple_bind_block): Likewise.
4357 (gimple_bind_set_vars): Require a gbind *.
4358 (gimple_bind_append_vars): Likewise.
4359 (gimple_bind_body_ptr): Likewise.
4360 (gimple_bind_body): Likewise.
4361 (gimple_bind_set_body): Likewise.
4362 (gimple_bind_add_stmt): Likewise.
4363 (gimple_bind_add_seq): Likewise.
4364 (gimple_bind_set_block): Likewise.
4365 (gimple_asm_ninputs): Require a const gasm *.
4366 (gimple_asm_noutputs): Likewise.
4367 (gimple_asm_nclobbers): Likewise.
4368 (gimple_asm_nlabels): Likewise.
4369 (gimple_asm_input_op): Likewise.
4370 (gimple_asm_input_op_ptr): Likewise.
4371 (gimple_asm_output_op): Likewise.
4372 (gimple_asm_output_op_ptr): Likewise.
4373 (gimple_asm_clobber_op): Likewise.
4374 (gimple_asm_label_op): Likewise.
4375 (gimple_asm_string): Likewise.
4376 (gimple_asm_volatile_p): Likewise.
4377 (gimple_asm_input_p): Likewise.
4378 (gimple_asm_set_input_op): Require a gasm *.
4379 (gimple_asm_set_output_op): Likewise.
4380 (gimple_asm_set_clobber_op): Likewise.
4381 (gimple_asm_set_label_op): Likewise.
4382 (gimple_asm_set_volatile): Likewise.
4383 (gimple_asm_set_input): Likewise.
4384 (gimple_catch_types): Require a const gcatch *.
4385 (gimple_catch_types_ptr): Require a gcatch *.
4386 (gimple_catch_handler_ptr): Likewise.
4387 (gimple_catch_handler): Likewise.
4388 (gimple_catch_set_types): Likewise.
4389 (gimple_catch_set_handler): Likewise.
4390 (gimple_eh_filter_types): Update for renaming of subclass to
4392 (gimple_eh_filter_types_ptr): Likewise.
4393 (gimple_eh_filter_failure_ptr): Likewise.
4394 (gimple_eh_filter_set_types): Require a geh_filter *.
4395 (gimple_eh_filter_set_failure): Likewise.
4396 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
4397 (gimple_eh_must_not_throw_set_fndecl): Likewise.
4398 (gimple_eh_else_n_body_ptr): Require a geh_else *.
4399 (gimple_eh_else_n_body): Likewise.
4400 (gimple_eh_else_e_body_ptr): Likewise.
4401 (gimple_eh_else_e_body): Likewise.
4402 (gimple_eh_else_set_n_body): Likewise.
4403 (gimple_eh_else_set_e_body): Likewise.
4404 (gimple_try_set_kind): Require a gtry *.
4405 (gimple_try_set_catch_is_cleanup): Likewise.
4406 (gimple_try_set_eval): Likewise.
4407 (gimple_try_set_cleanup): Likewise.
4408 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
4409 (gimple_try_cleanup_ptr): Likewise.
4410 (gimple_phi_capacity): Update for renaming of subclass to gphi.
4411 (gimple_phi_num_args): Likewise.
4412 (gimple_phi_result): Likewise.
4413 (gimple_phi_result_ptr): Likewise.
4414 (gimple_phi_arg): Likewise.
4415 (gimple_phi_set_result): Require a gphi *.
4416 (gimple_phi_set_arg): Likewise.
4417 (gimple_phi_arg_def_ptr): Likewise.
4418 (gimple_phi_arg_edge): Likewise.
4419 (gimple_phi_arg_location): Likewise.
4420 (gimple_phi_arg_location_from_edge): Likewise.
4421 (gimple_phi_arg_set_location): Likewise.
4422 (gimple_phi_arg_has_location): Likewise.
4423 (gimple_resx_region): Require a const gresx *.
4424 (gimple_resx_set_region): Require a gresx *.
4425 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
4426 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
4427 (gimple_switch_num_labels): Require a const gswitch *.
4428 (gimple_switch_set_num_labels): Likewise.
4429 (gimple_switch_index): Likewise.
4430 (gimple_switch_index_ptr): Likewise.
4431 (gimple_switch_label): Likewise.
4432 (gimple_switch_default_label): Likewise.
4433 (gimple_switch_set_index): Require a gswitch *.
4434 (gimple_switch_set_label): Likewise.
4435 (gimple_switch_set_default_label): Likewise.
4436 (gimple_omp_critical_name): Require a const gomp_critical *.
4437 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
4438 (gimple_omp_critical_set_name): Likewise.
4439 (gimple_omp_for_set_kind): Require a gomp_for *.
4440 (gimple_omp_for_set_combined_p): Likewise.
4441 (gimple_omp_for_set_combined_into_p): Likewise.
4442 (gimple_omp_for_clauses): Update for renaming of subclass to
4444 (gimple_omp_for_clauses_ptr): Likewise.
4445 (gimple_omp_for_set_clauses): Likewise.
4446 (gimple_omp_for_collapse): Likewise.
4447 (gimple_omp_for_index): Likewise.
4448 (gimple_omp_for_index_ptr): Likewise.
4449 (gimple_omp_for_set_index): Likewise.
4450 (gimple_omp_for_initial): Likewise.
4451 (gimple_omp_for_initial_ptr): Likewise.
4452 (gimple_omp_for_set_initial): Likewise.
4453 (gimple_omp_for_final): Likewise.
4454 (gimple_omp_for_final_ptr): Likewise.
4455 (gimple_omp_for_set_final): Likewise.
4456 (gimple_omp_for_incr): Likewise.
4457 (gimple_omp_for_incr_ptr): Likewise.
4458 (gimple_omp_for_set_incr): Likewise.
4459 (gimple_omp_for_pre_body): Likewise.
4460 (gimple_omp_for_set_pre_body): Likewise.
4461 (gimple_omp_parallel_clauses): Update for renaming of subclass to
4463 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
4464 (gimple_omp_parallel_set_clauses): Likewise.
4465 (gimple_omp_parallel_child_fn_ptr): Likewise.
4466 (gimple_omp_parallel_set_child_fn): Likewise.
4467 (gimple_omp_parallel_data_arg_ptr): Likewise.
4468 (gimple_omp_parallel_set_data_arg): Likewise.
4469 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
4470 (gimple_omp_parallel_data_arg): Likewise.
4471 (gimple_omp_task_clauses): Update for renaming of subclass to
4473 (gimple_omp_task_clauses_ptr): Likewise.
4474 (gimple_omp_task_set_clauses): Likewise.
4475 (gimple_omp_task_child_fn): Likewise.
4476 (gimple_omp_task_child_fn_ptr): Likewise.
4477 (gimple_omp_task_set_child_fn): Likewise.
4478 (gimple_omp_task_data_arg): Likewise.
4479 (gimple_omp_task_data_arg_ptr): Likewise.
4480 (gimple_omp_task_set_data_arg): Likewise.
4481 (gimple_omp_taskreg_clauses): Whitespace fixes.
4482 (gimple_omp_taskreg_clauses_ptr): Likewise.
4483 (gimple_omp_taskreg_set_clauses): Likewise.
4484 (gimple_omp_taskreg_child_fn): Likewise.
4485 (gimple_omp_taskreg_child_fn_ptr): Likewise.
4486 (gimple_omp_taskreg_set_child_fn): Likewise.
4487 (gimple_omp_taskreg_data_arg): Likewise.
4488 (gimple_omp_taskreg_data_arg_ptr): Likewise.
4489 (gimple_omp_taskreg_set_data_arg): Likewise.
4490 (gimple_omp_task_copy_fn): Update for renaming of subclass to
4492 (gimple_omp_task_copy_fn_ptr): Likewise.
4493 (gimple_omp_task_set_copy_fn): Likewise.
4494 (gimple_omp_task_arg_size): Likewise.
4495 (gimple_omp_task_arg_size_ptr): Likewise.
4496 (gimple_omp_task_set_arg_size): Likewise.
4497 (gimple_omp_task_arg_align): Likewise.
4498 (gimple_omp_task_arg_align_ptr): Likewise.
4499 (gimple_omp_task_set_arg_align): Likewise.
4500 (gimple_omp_single_clauses): Update for renaming of subclass to
4502 (gimple_omp_single_clauses_ptr): Likewise.
4503 (gimple_omp_single_set_clauses): Likewise.
4504 (gimple_omp_target_clauses): Update for renaming of subclass to
4506 (gimple_omp_target_clauses_ptr): Likewise.
4507 (gimple_omp_target_set_clauses): Require a gomp_target *.
4508 (gimple_omp_target_set_kind): Likewise.
4509 (gimple_omp_target_child_fn_ptr): Likewise.
4510 (gimple_omp_target_set_child_fn): Likewise.
4511 (gimple_omp_target_data_arg_ptr): Likewise.
4512 (gimple_omp_target_set_data_arg): Likewise.
4513 (gimple_omp_target_child_fn): Require a const gomp_target *.
4514 (gimple_omp_target_data_arg): Likewise.
4515 (gimple_omp_teams_clauses): Update for renaming of subclass to
4517 (gimple_omp_teams_clauses_ptr): Likewise.
4518 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
4519 (gimple_omp_sections_clauses): Update for renaming of subclass to
4521 (gimple_omp_sections_clauses_ptr): Likewise.
4522 (gimple_omp_sections_set_clauses): Likewise.
4523 (gimple_omp_sections_control): Likewise.
4524 (gimple_omp_sections_control_ptr): Likewise.
4525 (gimple_omp_sections_set_control): Likewise.
4526 (gimple_omp_for_set_cond): Likewise.
4527 (gimple_omp_for_cond): Likewise.
4528 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
4529 (gimple_omp_atomic_store_val_ptr): Likewise.
4530 (gimple_omp_atomic_load_set_lhs): Likewise.
4531 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
4532 (gimple_omp_atomic_load_lhs): Likewise.
4533 (gimple_omp_atomic_load_rhs): Likewise.
4534 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
4535 (gimple_omp_atomic_load_set_rhs): Likewise.
4536 (gimple_omp_atomic_load_rhs_ptr): Likewise.
4537 (gimple_omp_continue_control_def): Require a const gomp_continue *.
4538 (gimple_omp_continue_control_use): Likewise.
4539 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
4540 (gimple_omp_continue_set_control_def): Likewise.
4541 (gimple_omp_continue_control_use_ptr): Likewise.
4542 (gimple_omp_continue_set_control_use): Likewise.
4543 (gimple_transaction_body_ptr): Require a gtransaction *.
4544 (gimple_transaction_body): Likewise.
4545 (gimple_transaction_label_ptr): Likewise.
4546 (gimple_transaction_label): Require a const gtransaction *.
4547 (gimple_transaction_subcode): Likewise.
4548 (gimple_transaction_set_body): Require a gtransaction *.
4549 (gimple_transaction_set_label): Likewise.
4550 (gimple_transaction_set_subcode): Likewise.
4551 (gimple_return_retval_ptr): Require a const greturn *.
4552 (gimple_return_retval): Likewise.
4553 (gimple_return_set_retval): Require a greturn *.
4554 (gimple_expr_type): Introduce local "call_stmt" and use in place of
4555 "stmt" for typesafety.
4557 * asan.c: Use gimple subclasses.
4558 * auto-profile.c: Likewise.
4559 * builtins.c: Likewise.
4560 * builtins.h: Likewise.
4561 * cfgexpand.c: Likewise.
4562 * cfgloop.c: Likewise.
4563 * cfgloopmanip.c: Likewise.
4564 * cgraph.c: Likewise.
4565 * cgraph.h: Likewise.
4566 * cgraphbuild.c: Likewise.
4567 * cgraphclones.c: Likewise.
4568 * cgraphunit.c: Likewise.
4570 * gimple-builder.c: Likewise.
4571 * gimple-builder.h: Likewise.
4572 * gimple-fold.c: Likewise.
4573 * gimple-low.c: Likewise.
4574 * gimple-pretty-print.c: Likewise.
4575 * gimple-ssa-isolate-paths.c: Likewise.
4576 * gimple-ssa-strength-reduction.c: Likewise.
4577 * gimple-streamer-in.c: Likewise.
4578 * gimple-streamer-out.c: Likewise.
4579 * gimple-walk.c: Likewise.
4580 * gimplify-me.c: Likewise.
4581 * gimplify.c: Likewise.
4582 * gimplify.h: Likewise.
4583 * graphite-scop-detection.c: Likewise.
4584 * graphite-sese-to-poly.c: Likewise.
4585 * internal-fn.c: Likewise.
4586 * internal-fn.def:: Likewise.
4587 * internal-fn.h: Likewise.
4588 * ipa-icf-gimple.c: Likewise.
4589 * ipa-icf-gimple.h: Likewise.
4590 * ipa-icf.c: Likewise.
4591 * ipa-inline-analysis.c: Likewise.
4592 * ipa-prop.c: Likewise.
4593 * ipa-prop.h: Likewise.
4594 * ipa-pure-const.c: Likewise.
4595 * ipa-split.c: Likewise.
4596 * lto-streamer-in.c: Likewise.
4597 * lto-streamer-out.c: Likewise.
4598 * omp-low.c: Likewise.
4599 * predict.c: Likewise.
4600 * sanopt.c: Likewise.
4602 * ssa-iterators.h: Likewise.
4604 * trans-mem.c: Likewise.
4605 * tree-call-cdce.c: Likewise.
4606 * tree-cfg.c: Likewise.
4607 * tree-cfg.h: Likewise.
4608 * tree-cfgcleanup.c: Likewise.
4609 * tree-chkp.c: Likewise.
4610 * tree-chkp.h: Likewise.
4611 * tree-complex.c: Likewise.
4612 * tree-data-ref.c: Likewise.
4613 * tree-dfa.c: Likewise.
4614 * tree-eh.c: Likewise.
4615 * tree-eh.h: Likewise.
4616 * tree-emutls.c: Likewise.
4617 * tree-if-conv.c: Likewise.
4618 * tree-inline.c: Likewise.
4619 * tree-inline.h: Likewise.
4620 * tree-into-ssa.c: Likewise.
4621 * tree-into-ssa.h: Likewise.
4622 * tree-loop-distribution.c: Likewise.
4623 * tree-nrv.c: Likewise.
4624 * tree-object-size.c: Likewise.
4625 * tree-outof-ssa.c: Likewise.
4626 * tree-parloops.c: Likewise.
4627 * tree-phinodes.c: Likewise.
4628 * tree-phinodes.h: Likewise.
4629 * tree-predcom.c: Likewise.
4630 * tree-profile.c: Likewise.
4631 * tree-scalar-evolution.c: Likewise.
4632 * tree-scalar-evolution.h
4633 * tree-sra.cn_function):
4634 * tree-ssa-alias.c: Likewise.
4635 * tree-ssa-alias.h: Likewise.
4636 * tree-ssa-ccp.c: Likewise.
4637 * tree-ssa-coalesce.c: Likewise.
4638 * tree-ssa-copy.c: Likewise.
4639 * tree-ssa-copyrename.c: Likewise.
4640 * tree-ssa-dce.c: Likewise.
4641 * tree-ssa-dom.c: Likewise.
4642 * tree-ssa-forwprop.c: Likewise.
4643 * tree-ssa-ifcombine.c: Likewise.
4644 * tree-ssa-live.c: Likewise.
4645 * tree-ssa-loop-im.c: Likewise.
4646 * tree-ssa-loop-ivcanon.c: Likewise.
4647 * tree-ssa-loop-ivopts.c: Likewise.
4648 * tree-ssa-loop-manip.c: Likewise.
4649 * tree-ssa-loop-niter.c: Likewise.
4650 * tree-ssa-loop-prefetch.c: Likewise.
4651 * tree-ssa-loop-unswitch.c: Likewise.
4652 * tree-ssa-math-opts.c: Likewise.
4653 * tree-ssa-operands.c: Likewise.
4654 * tree-ssa-phiopt.c: Likewise.
4655 * tree-ssa-phiprop.c: Likewise.
4656 * tree-ssa-pre.c: Likewise.
4657 * tree-ssa-propagate.c: Likewise.
4658 * tree-ssa-propagate.h: Likewise.
4659 * tree-ssa-reassoc.c: Likewise.
4660 * tree-ssa-sccvn.c: Likewise.
4661 * tree-ssa-sccvn.h: Likewise.
4662 * tree-ssa-sink.c: Likewise.
4664 * tree-ssa-structalias.c
4665 * tree-ssa-tail-merge.c: Likewise.
4666 * tree-ssa-ter.c: Likewise.
4667 * tree-ssa-threadedge.c: Likewise.
4668 * tree-ssa-threadedge.h: Likewise.
4669 * tree-ssa-threadupdate.c: Likewise.
4670 * tree-ssa-uncprop.c: Likewise.
4671 * tree-ssa-uninit.c: Likewise.
4672 * tree-ssa.c: Likewise.
4673 * tree-stdarg.c: Likewise.
4674 * tree-switch-conversion.c: Likewise.
4675 * tree-tailcall.c: Likewise.
4676 * tree-vect-data-refs.c: Likewise.
4677 * tree-vect-generic.c: Likewise.
4678 * tree-vect-loop-manip.c: Likewise.
4679 * tree-vect-loop.c: Likewise.
4680 * tree-vect-patterns.c: Likewise.
4681 * tree-vect-slp.c: Likewise.
4682 * tree-vect-stmts.c: Likewise.
4683 * tree-vectorizer.h: Likewise.
4684 * tree-vrp.c: Likewise.
4686 * ubsan.c: Likewise.
4687 * value-prof.c: Likewise.
4688 * value-prof.h: Likewise.
4689 * vtable-verify.c: Likewise.
4691 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4693 * config/rs6000/constraints.md: Avoid signed integer overflows.
4694 * config/rs6000/predicates.md: Likewise.
4696 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4699 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
4701 2014-11-19 Renlin Li <Renlin.Li@arm.com>
4704 * ira.c (ira): Update preferred class.
4706 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4708 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
4709 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4710 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
4711 inline overload to use it. Add unary arg overload.
4712 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
4713 (gimple_assign_set_rhs_from_tree): Use
4714 gimple_assign_set_rhs_with_ops instead of
4715 gimple_assign_set_rhs_with_ops_1.
4716 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
4717 (gimple_assign_set_rhs_with_ops): ... this.
4718 * ipa-split.c (split_function): Remove last NULL argument
4719 from gimple_build_assign_with_ops call.
4720 * tree-ssa-loop-im.c
4721 (move_computations_dom_walker::before_dom_children): Likewise.
4722 * tsan.c (instrument_builtin_call): Likewise.
4723 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
4724 vectorizable_conversion, vectorizable_load): Likewise.
4725 * tree-vect-loop.c (vect_is_simple_reduction_1,
4726 get_initial_def_for_induction): Likewise.
4727 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4728 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
4729 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
4730 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
4731 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
4732 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
4733 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
4734 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
4735 neg_replacement): Likewise.
4736 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
4737 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
4738 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4739 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
4740 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4741 simd_clone_adjust): Likewise.
4742 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4743 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
4744 replace_one_candidate): Likewise.
4745 * gimple-builder.c (build_type_cast): Likewise.
4746 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
4747 (forward_propagate_addr_expr_1): Remove last NULL argument
4748 from gimple_assign_set_rhs_with_ops call.
4749 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
4750 instead of gimple_assign_set_rhs_with_ops_1.
4751 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
4752 argument from gimple_build_assign_with_ops call.
4753 (repropagate_negates): Remove last NULL argument from
4754 gimple_assign_set_rhs_with_ops call.
4755 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
4756 last NULL argument from gimple_build_assign_with_ops call.
4757 (instrument_bool_enum_load): Likewise. Remove last NULL argument
4758 from gimple_assign_set_rhs_with_ops call.
4759 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
4760 Remove last NULL argument from gimple_build_assign_with_ops call.
4761 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
4762 of gimple_assign_set_rhs_with_ops_1.
4763 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
4764 instead of gimple_assign_set_rhs_with_ops_1.
4765 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
4766 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
4767 from gimple_build_assign_with_ops call.
4768 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
4769 from gimple_assign_set_rhs_with_ops call.
4770 * tree-vrp.c (simplify_truth_ops_using_ranges,
4771 simplify_bit_ops_using_ranges): Remove last NULL argument from
4772 gimple_assign_set_rhs_with_ops call.
4773 (simplify_float_conversion_using_ranges,
4774 simplify_internal_call_using_ranges): Remove last NULL argument from
4775 gimple_build_assign_with_ops call.
4777 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
4780 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
4783 2014-11-19 Marek Polacek <polacek@redhat.com>
4786 * ubsan.c (instrument_object_size): Check for MEM_REF.
4788 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
4791 * cgraph.c (cgraph_node::create): Guard g->have_offload with
4792 ifdef ENABLE_OFFLOADING.
4793 * omp-low.c (create_omp_child_function): Likewise.
4794 (expand_omp_target): Guard node->mark_force_output and offload_funcs
4795 with ifdef ENABLE_OFFLOADING.
4796 * varpool.c (varpool_node::get_create): Guard g->have_offload and
4797 offload_vars with ifdef ENABLE_OFFLOADING.
4799 2014-11-19 Felix Yang <felix.yang@huawei.com>
4800 Shanyao Chen <chenshanyao@huawei.com>
4803 * config/arm/arm.md (define_attr "arch"): Add v6t2.
4804 (define_attr "arch_enabled"): Add test for the above.
4805 (*movhi_insn_arch4): Add new alternative.
4807 2014-11-19 Richard Henderson <rth@redhat.com>
4809 * c-family/c-common.c (c_common_reswords): Add
4810 __builtin_call_with_static_chain.
4811 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
4812 * c/c-parser.c (c_parser_postfix_expression): Handle it.
4813 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
4815 * calls.c (prepare_call_address): Allow decl or type for first arg.
4816 (expand_call): Pass type to prepare_call_address if no decl.
4817 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
4818 the function doesn't use it; fold it otherwise.
4819 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
4820 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
4823 * targhooks.c (default_static_chain): Remove check for
4825 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4826 * config/i386/i386.c (ix86_static_chain): Allow decl or type
4827 as the first argument.
4828 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
4829 of the unused first parameter.
4830 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
4832 * target.def (static_chain): Likewise.
4834 2014-11-19 Renlin Li <renlin.li@arm.com>
4836 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4837 __ARM_FP_FAST, __ARM_FEATURE_FMA, __ARM_FP,
4838 __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
4840 2014-11-19 Marek Polacek <polacek@redhat.com>
4843 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
4844 !TYPE_OVERFLOW_SANITIZED.
4845 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
4846 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
4849 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
4851 * collect2.c (main): Don't call fatal_error before
4852 diagnostic_initialize.
4853 * lto-wrapper.c (main): Likewise.
4855 2014-11-19 Tom de Vries <tom@codesourcery.com>
4857 PR tree-optimization/62167
4858 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
4860 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
4863 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4865 PR tree-optimization/63915
4866 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
4867 true instead of false as last argument to gsi_replace.
4870 * internal-fn.c (expand_ubsan_result_store): New function.
4871 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
4872 Use it instead of just emit_move_insn.
4874 2014-11-19 Richard Biener <rguenther@suse.de>
4876 PR tree-optimization/63844
4877 * omp-low.c (fixup_child_record_type): Use a restrict qualified
4878 referece type for the receiver parameter.
4880 2014-11-19 Jakub Jelinek <jakub@redhat.com>
4883 * ubsan.c: Include tree-eh.h.
4884 (instrument_bool_enum_load): Handle loads that can throw.
4886 PR rtl-optimization/63843
4887 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
4888 optimization of ashiftrt of subreg of lshiftrt, check that code
4891 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
4893 * attribs.c (decl_attributes): Remove always true condition,
4894 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
4896 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
4899 * target.def (use_by_pieces_infrastructure_p): Take unsigned
4900 HOST_WIDE_INT as the size parameter.
4901 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
4902 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
4903 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
4904 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
4905 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
4906 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
4907 * config/aarch64/aarch64.c
4908 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
4909 * doc/tm.texi: Regenerate.
4911 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
4913 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
4914 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
4915 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
4916 (good_cloning_opportunity_p): Likewise.
4917 (ipa-cp gate): Enable ipa-cp with LTO.
4918 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
4919 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
4921 * ipa-inline-transform.c (inline_transform): Check if there are inlines
4922 to apply even at -O0.
4923 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
4924 (analyze_functions): Build type inheritance graph.
4925 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
4926 (want_early_inline_function_p, want_inline_small_function_p):
4928 (check_callers): Likewise.
4929 (edge_badness): Likewise.
4930 (inline_small_functions): Always be ready for indirect inlining
4932 (ipa_inline): Always use want_inline_function_to_all_callers_p.
4933 (early_inline_small_functions): Use opt_for_fn.
4934 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
4935 (estimate_function_body_sizes): Likewise.
4936 (compute_inline_parameters): Likewise.
4937 (estimate_edge_devirt_benefit): Likewise.
4938 (inline_analyze_function): Likewise.
4939 * ipa-devirt.c (ipa_devirt): Likewise.
4940 (gate): Use in_lto_p.
4941 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
4942 (try_make_edge_direct_virtual_call): Likewise.
4943 (update_indirect_edges_after_inlining): Likewise.
4944 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
4945 * common.opt (findirect-inlining): Turn into optimization.
4946 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
4947 (pure_const_generate_summary): Likewise.
4948 (gate_pure_const): Always enable with in_lto_p.
4950 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4952 * config/mips/mips.md (compression): Add `micromips32' setting.
4953 (enabled, length): Handle it.
4954 (shift_compression): Replace `micromips' with `micromips32' in
4955 the `compression' attribute.
4956 (*add<mode>3, sub<mode>3): Likewise.
4958 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
4960 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
4961 range, a jump otherwise.
4963 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4965 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
4967 (cortex_a15_gp_to_vfp): ...This.
4968 (cortex_a15_fp_to_gp): ...And this.
4969 Define and comment bypass from vfp operations to fp->gp moves.
4971 2014-11-18 Martin Liska <mliska@suse.cz>
4973 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
4975 2014-11-18 Martin Liska <mliska@suse.cz>
4977 * bt-load.c (add_btr_def): New fibonacci_heap is used.
4978 (migrate_btr_defs): Likewise.
4980 2014-11-18 Martin Liska <mliska@suse.cz>
4982 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
4984 2014-11-18 Martin Liska <mliska@suse.cz>
4986 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
4987 (find_traces): Likewise.
4988 (find_traces_1_round): Likewise.
4990 2014-11-18 Martin Liska <mliska@suse.cz>
4992 * fibonacci_heap.h: New file.
4993 (fibonacci_heap::insert): Created from fibheap_insert.
4994 (fibonacci_heap::empty): Created from fibheap_empty.
4995 (fibonacci_heap::nodes): Created from fibheap_nodes.
4996 (fibonacci_heap::min_key): Created from fibheap_min_key.
4997 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
4998 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
4999 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
5000 (fibonacci_heap::min): Created from fibheap_min.
5001 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
5002 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
5003 (fibonacci_heap::union_with): Created from fibheap_union.
5004 * ipa-inline.c (update_edge_key): New heap API is used.
5005 (update_caller_keys): Likewise.
5006 (update_callee_keys): Likewise.
5007 (lookup_recursive_calls): Likewise.
5008 (recursive_inlining): Likewise.
5009 (add_new_edges_to_heap): Likewise.
5010 (heap_edge_removal_hook): Likewise.
5011 (inline_small_functions): Likewise.
5013 2014-11-18 Marek Polacek <polacek@redhat.com>
5016 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
5017 put it into TYPE_NAME and TYPE_STUB_DECL.
5018 * ubsan.c (ubsan_type_descriptor_type): New variable.
5019 Function renamed to ...
5020 (ubsan_get_type_descriptor_type): ... this. Cache
5021 return value in ubsan_type_descriptor_type variable.
5022 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
5023 TYPE_NAME and TYPE_STUB_DECL.
5024 (ubsan_get_source_location_type): Create a TYPE_DECL for
5025 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
5026 (ubsan_type_descriptor, ubsan_create_data): Call
5027 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
5028 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
5030 2014-11-18 Felix Yang <felix.yang@huawei.com>
5032 * config/aarch64/aarch64.c (doloop_end): New pattern.
5033 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
5035 2014-11-18 Jason Merrill <jason@redhat.com>
5037 * tree.c (warn_deprecated_use): Show declaration with inform.
5039 2014-11-18 Richard Biener <rguenther@suse.de>
5041 PR tree-optimization/63914
5042 * tree-ssa-ccp.c (canonicalize_value): Remove float value
5044 (valid_lattice_transition): Allow (partial) transition
5045 from NaN to non-NaN if !HONOR_NANS.
5046 (set_lattice_value): Check for valid lattice transitions
5047 only when checking is enabled.
5049 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
5051 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
5053 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
5055 * config/arm/neon-testgen.ml (emit_prologue): Handle new
5056 compile_test_optim argument.
5057 (emit_automatics): Rename to emit_variables. Support variable
5058 indentation of its output.
5059 (compile_test_optim): New function.
5060 (test_intrinsic): Call compile_test_optim.
5061 * config/arm/neon.ml (features): Add Compiler_optim.
5062 (ops): Add Compiler_optim feature to Vbic and Vorn.
5063 (type_in_crypto_only): Replace 'or' by '||'.
5064 (reinterp): Likewise.
5065 (reinterpq): Likewise.
5067 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
5069 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
5070 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
5071 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
5072 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
5073 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
5074 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
5075 pointer dereference.
5077 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
5079 * tree.c (element_mode, integer_truep): New functions.
5080 * tree.h (element_mode, integer_truep): Declare them.
5081 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
5082 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
5083 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
5084 fold_strip_sign_ops): Use element_mode.
5085 (fold_binary_loc): Use element_mode and element_precision.
5086 * match.pd: Use integer_truep, element_mode, element_precision,
5087 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
5088 vectors. Simplify A/-A.
5090 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5092 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
5093 manual swapping implementation.
5094 (movcond_addsi): Likewise.
5095 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
5096 (arm_select_dominance_cc_mode): Likewise.
5097 (arm_reload_out_hi): Likewise.
5098 (gen_operands_ldrd_strd): Likewise.
5099 (output_move_double): Likewise.
5100 (arm_print_operand_address): Likewise.
5101 (thumb_output_move_mem_multiple): Likewise.
5104 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5106 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
5107 (COPYSIGNF_QUALIFIERS): Likewise.
5108 (CREATE_QUALIFIERS): Likewise.
5109 (DUP_QUALIFIERS): Likewise.
5110 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5111 (FLOAT_NARROW_QUALIFIERS): Likewise.
5112 (REINTERP_QUALIFIERS): Likewise.
5113 (RINT_QUALIFIERS): Likewise.
5114 (SPLIT_QUALIFIERS): Likewise.
5115 (FIXCONV_QUALIFIERS): Likewise.
5116 (SCALARMUL_QUALIFIERS): Likewise.
5117 (SCALARMULL_QUALIFIERS): Likewise.
5118 (SCALARMULH_QUALIFIERS): Likewise.
5119 (SELECT_QUALIFIERS): Likewise.
5120 (VTBX_QUALIFIERS): Likewise.
5121 (SHIFTIMM_QUALIFIERS): Likewise.
5122 (SCALARMAC_QUALIFIERS): Likewise.
5123 (LANEMUL_QUALIFIERS): Likewise.
5124 (LANEMULH_QUALIFIERS): Likewise.
5125 (LANEMULL_QUALIFIERS): Likewise.
5126 (SHIFTACC_QUALIFIERS): Likewise.
5127 (SHIFTINSERT_QUALIFIERS): Likewise.
5128 (VTBL_QUALIFIERS): Likewise.
5129 (LOADSTRUCT_QUALIFIERS): Likewise.
5130 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5131 (STORESTRUCT_QUALIFIERS): Likewise.
5132 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5133 (neon_builtin_type_mode): Delete.
5134 (v8qi_UP): Map to V8QImode.
5135 (v8qi_UP): Map to V8QImode.
5136 (v4hi_UP): Map to V4HImode.
5137 (v4hf_UP): Map to V4HFmode.
5138 (v2si_UP): Map to V2SImode.
5139 (v2sf_UP): Map to V2SFmode.
5140 (di_UP): Map to DImode.
5141 (v16qi_UP): Map to V16QImode.
5142 (v8hi_UP): Map to V8HImode.
5143 (v4si_UP): Map to V4SImode.
5144 (v4sf_UP): Map to V4SFmode.
5145 (v2di_UP): Map to V2DImode.
5146 (ti_UP): Map to TImode.
5147 (ei_UP): Map to EImode.
5148 (oi_UP): Map to OImode.
5149 (neon_itype): Delete.
5150 (neon_builtin_datum): Remove itype, make mode a machine_mode.
5151 (VAR1): Update accordingly.
5152 (arm_init_neon_builtins): Use machine_mode directly.
5153 (neon_dereference_pointer): Likewise.
5154 (arm_expand_neon_args): Use qualifiers to decide operand types.
5155 (arm_expand_neon_builtin): Likewise.
5156 * config/arm/arm_neon_builtins.def: Remap operation type for
5159 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5161 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
5162 (enum arm_simd_type): Likewise.
5163 (struct arm_simd_type_info): Likewise
5164 (arm_mangle_builtin_scalar_type): Likewise.
5165 (arm_mangle_builtin_vector_type): Likewise.
5166 (arm_mangle_builtin_type): Likewise.
5167 (arm_simd_builtin_std_type): Likewise.
5168 (arm_lookup_simd_builtin_type): Likewise.
5169 (arm_simd_builtin_type): Likewise.
5170 (arm_init_simd_builtin_types): Likewise.
5171 (arm_init_simd_builtin_scalar_types): Likewise.
5172 (arm_init_neon_builtins): Rewrite using qualifiers.
5173 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
5174 * config/arm/arm-simd-builtin-types.def: New file.
5175 * config/arm/t-arm (arm-builtins.o): Depend on it.
5176 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
5177 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
5178 (int16x4_t): Likewise.
5179 (int32x2_t): Likewise.
5180 (float16x4_t): Likewise.
5181 (float32x2_t): Likewise.
5182 (poly8x8_t): Likewise.
5183 (poly16x4_t): Likewise.
5184 (uint8x8_t): Likewise.
5185 (uint16x4_t): Likewise.
5186 (uint32x2_t): Likewise.
5187 (int8x16_t): Likewise.
5188 (int16x8_t): Likewise.
5189 (int32x4_t): Likewise.
5190 (int64x2_t): Likewise.
5191 (float32x4_t): Likewise.
5192 (poly8x16_t): Likewise.
5193 (poly16x8_t): Likewise.
5194 (uint8x16_t): Likewise.
5195 (uint16x8_t): Likewise.
5196 (uint32x4_t): Likewise.
5197 (uint64x2_t): Likewise.
5199 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5201 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
5202 (neon_itype): Add new types corresponding to the types used in
5204 (arm_unop_qualifiers): New.
5205 (arm_bswap_qualifiers): Likewise.
5206 (arm_binop_qualifiers): Likewise.
5207 (arm_ternop_qualifiers): Likewise.
5208 (arm_getlane_qualifiers): Likewise.
5209 (arm_lanemac_qualifiers): Likewise.
5210 (arm_setlane_qualifiers): Likewise.
5211 (arm_combine_qualifiers): Likewise.
5212 (arm_load1_qualifiers): Likewise.
5213 (arm_load1_lane_qualifiers): Likewise.
5214 (arm_store1_qualifiers): Likewise.
5215 (arm_storestruct_lane_qualifiers): Likewise.
5216 (UNOP_QUALIFIERS): Likewise.
5217 (DUP_QUALIFIERS): Likewise.
5218 (SPLIT_QUALIFIERS): Likewise.
5219 (CONVERT_QUALIFIERS): Likewise.
5220 (FLOAT_WIDEN_QUALIFIERS): Likewise.
5221 (FLOAT_NARROW_QUALIFIERS): Likewise.
5222 (RINT_QUALIFIERS): Likewise.
5223 (COPYSIGNF_QUALIFIERS): Likewise.
5224 (CREATE_QUALIFIERS): Likewise.
5225 (REINTERP_QUALIFIERS): Likewise.
5226 (BSWAP_QUALIFIERS): Likewise.
5227 (BINOP_QUALIFIERS): Likewise.
5228 (FIXCONV_QUALIFIERS): Likewise.
5229 (SCALARMUL_QUALIFIERS): Likewise.
5230 (SCALARMULL_QUALIFIERS): Likewise.
5231 (SCALARMULH_QUALIFIERS): Likewise.
5232 (TERNOP_QUALIFIERS): Likewise.
5233 (SELECT_QUALIFIERS): Likewise.
5234 (VTBX_QUALIFIERS): Likewise.
5235 (GETLANE_QUALIFIERS): Likewise.
5236 (SHIFTIMM_QUALIFIERS): Likewise.
5237 (LANEMAC_QUALIFIERS): Likewise.
5238 (SCALARMAC_QUALIFIERS): Likewise.
5239 (SETLANE_QUALIFIERS): Likewise.
5240 (SHIFTINSERT_QUALIFIERS): Likewise.
5241 (SHIFTACC_QUALIFIERS): Likewise.
5242 (LANEMUL_QUALIFIERS): Likewise.
5243 (LANEMULL_QUALIFIERS): Likewise.
5244 (LANEMULH_QUALIFIERS): Likewise.
5245 (COMBINE_QUALIFIERS): Likewise.
5246 (VTBL_QUALIFIERS): Likewise.
5247 (LOAD1_QUALIFIERS): Likewise.
5248 (LOADSTRUCT_QUALIFIERS): Likewise.
5249 (LOAD1LANE_QUALIFIERS): Likewise.
5250 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
5251 (STORE1_QUALIFIERS): Likewise.
5252 (STORESTRUCT_QUALIFIERS): Likewise.
5253 (STORE1LANE_QUALIFIERS): Likewise.
5254 (STORESTRUCTLANE_QUALIFIERS): Likewise.
5255 (neon_builtin_datum): Keep track of qualifiers.
5258 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5260 * config/arm/arm-builtins.c (VAR1): Add a comma.
5261 (VAR2): Rewrite in terms of VAR1.
5262 (VAR3-10): Likewise.
5263 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
5264 * config/arm/arm_neon_builtins.def: Remove trailing commas.
5266 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5268 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
5269 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
5270 * config/arm/arm-builtins.c: New.
5271 * config/arm/t-arm (arm_builtins.o): New.
5272 * config/arm/arm-protos.h (arm_expand_builtin): New.
5273 (arm_builtin_decl): Likewise.
5274 (arm_init_builtins): Likewise.
5275 (arm_atomic_assign_expand_fenv): Likewise.
5276 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
5277 (arm_init_builtins): Likewise.
5278 (arm_init_iwmmxt_builtins): Likewise
5279 (safe_vector_operand): Likewise
5280 (arm_expand_binop_builtin): Likewise
5281 (arm_expand_unop_builtin): Likewise
5282 (arm_expand_builtin): Likewise
5283 (arm_builtin_decl): Likewise
5284 (insn_flags): Remove static.
5285 (tune_flags): Likewise.
5286 (enum arm_builtins): Move to config/arm/arm-builtins.c.
5287 (arm_init_neon_builtins): Likewise.
5288 (struct builtin_description): Likewise.
5289 (arm_init_iwmmxt_builtins): Likewise.
5290 (arm_init_fp16_builtins): Likewise.
5291 (arm_init_crc32_builtins): Likewise.
5292 (arm_init_builtins): Likewise.
5293 (arm_builtin_decl): Likewise.
5294 (safe_vector_operand): Likewise.
5295 (arm_expand_ternop_builtin): Likewise.
5296 (arm_expand_binop_builtin): Likewise.
5297 (arm_expand_unop_builtin): Likewise.
5298 (neon_dereference_pointer): Likewise.
5299 (arm_expand_neon_args): Likewise.
5300 (arm_expand_neon_builtin): Likewise.
5301 (neon_split_vcombine): Likewise.
5302 (arm_expand_builtin): Likewise.
5303 (arm_builtin_vectorized_function): Likewise.
5304 (arm_atomic_assign_expand_fenv): Likewise.
5306 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5308 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
5309 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
5310 (FL_ARCH3M): Likewise.
5311 (FL_MODE26): Likewise.
5312 (FL_MODE32): Likewise.
5313 (FL_ARCH4): Likewise.
5314 (FL_ARCH5): Likewise.
5315 (FL_THUMB): Likewise.
5316 (FL_LDSCHED): Likewise.
5317 (FL_STRONG): Likewise.
5318 (FL_ARCH5E): Likewise.
5319 (FL_XSCALE): Likewise.
5320 (FL_ARCH6): Likewise.
5321 (FL_VFPV2): Likewise.
5322 (FL_WBUF): Likewise.
5323 (FL_ARCH6K): Likewise.
5324 (FL_THUMB2): Likewise.
5325 (FL_NOTM): Likewise.
5326 (FL_THUMB_DIV): Likewise.
5327 (FL_VFPV3): Likewise.
5328 (FL_NEON): Likewise.
5329 (FL_ARCH7EM): Likewise.
5330 (FL_ARCH7): Likewise.
5331 (FL_ARM_DIV): Likewise.
5332 (FL_ARCH8): Likewise.
5333 (FL_CRC32): Likewise.
5334 (FL_SMALLMUL): Likewise.
5335 (FL_IWMMXT): Likewise.
5336 (FL_IWMMXT2): Likewise.
5337 (FL_TUNE): Likewise.
5338 (FL_FOR_ARCH2): Likewise.
5339 (FL_FOR_ARCH3): Likewise.
5340 (FL_FOR_ARCH3M): Likewise.
5341 (FL_FOR_ARCH4): Likewise.
5342 (FL_FOR_ARCH4T): Likewise.
5343 (FL_FOR_ARCH5): Likewise.
5344 (FL_FOR_ARCH5T): Likewise.
5345 (FL_FOR_ARCH5E): Likewise.
5346 (FL_FOR_ARCH5TE): Likewise.
5347 (FL_FOR_ARCH5TEJ): Likewise.
5348 (FL_FOR_ARCH6): Likewise.
5349 (FL_FOR_ARCH6J): Likewise.
5350 (FL_FOR_ARCH6K): Likewise.
5351 (FL_FOR_ARCH6Z): Likewise.
5352 (FL_FOR_ARCH6ZK): Likewise.
5353 (FL_FOR_ARCH6T2): Likewise.
5354 (FL_FOR_ARCH6M): Likewise.
5355 (FL_FOR_ARCH7): Likewise.
5356 (FL_FOR_ARCH7A): Likewise.
5357 (FL_FOR_ARCH7VE): Likewise.
5358 (FL_FOR_ARCH7R): Likewise.
5359 (FL_FOR_ARCH7M): Likewise.
5360 (FL_FOR_ARCH7EM): Likewise.
5361 (FL_FOR_ARCH8A): Likewise.
5362 * config/arm/arm-protos.h: Take definitions moved from arm.c.
5364 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
5366 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
5367 parameter, rearrange switch statement accordingly.
5368 (arm_evpc_neon_vrev): Remove "Magic Word".
5369 * config/arm/unspecs.md (unspec): Split many UNSPECs to
5370 rounding, or signed/unsigned variants.
5371 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
5372 (vcondu<mode><mode>): Likewise.
5373 (neon_vadd): Remove "Magic Word" operand.
5374 (neon_vaddl): Remove "Magic Word" operand, convert to use
5375 signed/unsigned iterator.
5376 (neon_vaddw): Likewise.
5377 (neon_vhadd): Likewise, also iterate over "rounding" forms.
5378 (neon_vqadd): Remove "Magic Word" operand, convert to use
5379 signed/unsigned iterator.
5380 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
5381 over "rounding" forms.
5382 (neon_vmul): Remove "Magic Word" operand, iterate over
5383 polynomial/float instruction forms.
5384 (neon_vmla): Remove "Magic Word" operand.
5385 (neon_vfma): Likewise.
5386 (neon_vfms): Likewise.
5387 (neon_vmls): Likewise.
5388 (neon_vmlal): Remove "Magic Word" operand, iterate over
5389 signed/unsigned forms.
5390 (neon_vmlsl): Likewise.
5391 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
5393 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
5394 signed/unsigned forms.
5395 (neon_vqdmlsl): Likewise.
5396 (neon_vmull): Likewise.
5397 (neon_vqdmull): Remove "Magic Word" operand.
5398 (neon_vsub): Remove "Magic Word" operand.
5399 (neon_vsubl): Remove "Magic Word" operand, convert to use
5400 signed/unsigned iterator.
5401 (neon_vsubw): Likewise.
5402 (neon_vhsub): Likewise.
5403 (neon_vqsub): Likewise.
5404 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
5405 over "rounding" forms.
5406 (neon_vceq): Remove "Magic Word" operand.
5407 (neon_vcge): Likewise.
5408 (neon_vcgeu): Likewise.
5409 (neon_vcgt): Likewise.
5410 (neon_vcgtu): Likewise.
5411 (neon_vcle): Likewise.
5412 (neon_vclt): Likewise.
5413 (neon_vcage): Likewise.
5414 (neon_vcagt): Likewise.
5415 (neon_vabd): Remove "Magic Word" operand, iterate over
5416 signed/unsigned forms, and split out...
5417 (neon_vabdf): ...this as new.
5418 (neon_vabdl): Remove "Magic Word" operand, iterate over
5419 signed/unsigned forms.
5420 (neon_vaba): Likewise.
5421 (neon_vmax): Remove "Magic Word" operand, iterate over
5422 signed/unsigned and max/min forms, and split out...
5423 (neon_v<maxmin>f): ...this as new.
5424 (neon_vmin): Delete.
5425 (neon_vpadd): Remove "Magic Word" operand.
5426 (neon_vpaddl): Remove "Magic Word" operand, iterate over
5427 signed/unsigned variants.
5428 (neon_vpadal): Likewise.
5429 (neon_vpmax): Remove "Magic Word" operand, iterate over
5430 signed/unsigned and max/min forms, and split out...
5431 (neon_vp<maxmin>f): ...this as new.
5432 (neon_vpmin): Delete.
5433 (neon_vrecps): Remove "Magic Word" operand.
5434 (neon_vrsqrts): Likewise.
5435 (neon_vabs): Likewise.
5436 (neon_vqabs): Likewise.
5437 (neon_vneg): Likewise.
5438 (neon_vqneg): Likewise.
5439 (neon_vcls): Likewise.
5440 (neon_vcnt): Likewise.
5441 (neon_vrecpe): Likewise.
5442 (neon_vrsqrte): Likewise.
5443 (neon_vmvn): Likewise.
5444 (neon_vget_lane): Likewise.
5445 (neon_vget_laneu): New.
5446 (neon_vget_lanedi): Remove "Magic Word" operand.
5447 (neon_vget_lanev2di): Likewise.
5448 (neon_vcvt): Remove "Magic Word" operand, iterate over
5449 signed/unsigned variants.
5450 (neon_vcvt_n): Likewise.
5451 (neon_vmovn): Remove "Magic Word" operand.
5452 (neon_vqmovn): Remove "Magic Word" operand, iterate over
5453 signed/unsigned variants.
5454 (neon_vmovun): Remove "Magic Word" operand.
5455 (neon_vmovl): Remove "Magic Word" operand, iterate over
5456 signed/unsigned variants.
5457 (neon_vmul_lane): Remove "Magic Word" operand.
5458 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
5459 signed/unsigned variants.
5460 (neon_vqdmull_lane): Remove "Magic Word" operand.
5461 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
5463 (neon_vmla_lane): Remove "Magic Word" operand.
5464 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
5465 signed/unsigned variants.
5466 (neon_vqdmlal_lane): Remove "Magic Word" operand.
5467 (neon_vmls_lane): Likewise.
5468 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
5469 signed/unsigned variants.
5470 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
5471 (neon_vmul_n): Remove "Magic Word" operand.
5472 (neon_vmull_n): Rename to...
5473 (neon_vmulls_n): ...this, remove "Magic Word" operand.
5474 (neon_vmullu_n): New.
5475 (neon_vqdmull_n): Remove "Magic Word" operand.
5476 (neon_vqdmulh_n): Likewise.
5477 (neon_vqrdmulh_n): New.
5478 (neon_vmla_n): Remove "Magic Word" operand.
5479 (neon_vmls_n): Likewise.
5480 (neon_vmlal_n): Rename to...
5481 (neon_vmlals_n): ...this, remove "Magic Word" operand.
5482 (neon_vmlalu_n): New.
5483 (neon_vqdmlal_n): Remove "Magic Word" operand.
5484 (neon_vmlsl_n): Rename to...
5485 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
5486 (neon_vmlslu_n): New.
5487 (neon_vqdmlsl_n): Remove "Magic Word" operand.
5488 (neon_vrev64): Remove "Magic Word" operand.
5489 (neon_vrev32): Likewise.
5490 (neon_vrev16): Likewise.
5491 (neon_vshl): Remove "Magic Word" operand, iterate over
5492 signed/unsigned and "rounding" forms.
5493 (neon_vqshl): Likewise.
5494 (neon_vshr_n): Likewise.
5495 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
5497 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
5498 signed/unsigned and "rounding" forms.
5499 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
5501 (neon_vshl_n): Remove "Magic Word" operand.
5502 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
5503 signed/unsigned variants.
5504 (neon_vqshlu_n): Remove "Magic Word" operand.
5505 (neon_vshll_n): Remove "Magic Word" operand, iterate over
5506 signed/unsigned variants.
5507 (neon_vsra_n): Remove "Magic Word" operand, iterate over
5508 signed/unsigned and "rounding" forms.
5509 * config/arm/iterators.md (VPF): New.
5516 (VMLAL_LANE): Likewise.
5518 (VMLSL_LANE): Likewise.
5519 (VQDMULH): Likewise,
5520 (VQDMULH_LANE): Likewise.
5522 (VMULL_LANE): Likewise.
5530 (VMAXMIN): Likewise.
5531 (VMAXMINF): Likewise.
5534 (VPMAXMIN): Likewise.
5535 (VPMAXMINF): Likewise.
5536 (VCVT_US): Likewise.
5537 (VCVT_US_N): Likewise.
5543 (VSHRN_N): Likewise.
5544 (VQSHRN_N): Likewise.
5545 (VQSHRUN_N): Likewise.
5546 (VQSHL_N): Likewise.
5547 (VSHLL_N): Likewise.
5553 (shift_op): Likewise.
5554 * config/arm/arm_neon_builtins.def (vaddl): Split to...
5555 (vaddls): ...this and...
5557 (vaddw): Split to...
5558 (vaddws): ...this and...
5560 (vhadd): Split to...
5561 (vhadds): ...this and...
5562 (vhaddu): ...this and...
5563 (vrhadds): ...this and...
5565 (vqadd): Split to...
5566 (vqadds): ...this and...
5568 (vaddhn): Split to itself and...
5571 (vmulf): ...this and...
5573 (vmlal): Split to...
5574 (vmlals): ...this and...
5576 (vmlsl): Split to...
5577 (vmlsls): ...this and...
5579 (vqdmulh): Split to itself and...
5580 (vqrdmulh): ...this.
5581 (vmull): Split to...
5582 (vmullp): ...this and...
5583 (vmulls): ...this and...
5585 (vmull_n): Split to...
5586 (vmulls_n): ...this and...
5587 (vmullu_n): ...this.
5588 (vmull_lane): Split to...
5589 (vmulls_lane): ...this and...
5590 (vmullu_lane): ...this.
5591 (vqdmulh_n): Split to itself and...
5592 (vqrdmulh_n): ...this.
5593 (vqdmulh_lane): Split to itself and...
5594 (vqrdmulh_lane): ...this.
5596 (vshls): ...this and...
5597 (vshlu): ...this and...
5598 (vrshls): ...this and...
5600 (vqshl): Split to...
5601 (vqshls): ...this and...
5602 (vqrshlu): ...this and...
5603 (vqrshls): ...this and...
5605 (vshr_n): Split to...
5606 (vshrs_n): ...this and...
5607 (vshru_n): ...this and...
5608 (vrshrs_n): ...this and...
5609 (vrshru_n): ...this.
5610 (vshrn_n): Split to itself and...
5611 (vrshrn_n): ...this.
5612 (vqshrn_n): Split to...
5613 (vqshrns_n): ...this and...
5614 (vqshrnu_n): ...this and...
5615 (vqrshrns_n): ...this and...
5616 (vqrshrnu_n): ...this.
5617 (vqshrun_n): Split to itself and...
5618 (vqrshrun_n): ...this.
5619 (vqshl_n): Split to...
5620 (vqshl_s_n): ...this and...
5621 (vqshl_u_n): ...this.
5622 (vshll_n): Split to...
5623 (vshlls_n): ...this and...
5624 (vshllu_n): ...this.
5625 (vsra_n): Split to...
5626 (vsras_n): ...this and...
5627 (vsrau_n): ...this and.
5628 (vrsras_n): ...this and...
5629 (vrsrau_n): ...this and.
5630 (vsubl): Split to...
5631 (vsubls): ...this and...
5633 (vsubw): Split to...
5634 (vsubws): ...this and...
5636 (vqsub): Split to...
5637 (vqsubs): ...this and...
5639 (vhsub): Split to...
5640 (vhsubs): ...this and...
5642 (vsubhn): Split to itself and...
5645 (vabds): ...this and...
5646 (vabdu): ...this and...
5648 (vabdl): Split to...
5649 (vabdls): ...this and...
5652 (vabas): ...this and...
5653 (vabau): ...this and...
5654 (vabal): Split to...
5655 (vabals): ...this and...
5658 (vmaxs): ...this and...
5659 (vmaxu): ...this and...
5662 (vmins): ...this and...
5663 (vminu): ...this and...
5665 (vpmax): Split to...
5666 (vpmaxs): ...this and...
5667 (vpmaxu): ...this and...
5669 (vpmin): Split to...
5670 (vpmins): ...this and...
5671 (vpminu): ...this and...
5673 (vpaddl): Split to...
5674 (vpaddls): ...this and...
5676 (vpadal): Split to...
5677 (vpadals): ...this and...
5680 (vqmovn): Split to...
5681 (vqmovns): ...this and...
5683 (vmovl): Split to...
5684 (vmovls): ...this and...
5686 (vmlal_lane): Split to...
5687 (vmlals_lane): ...this and...
5688 (vmlalu_lane): ...this.
5689 (vmlsl_lane): Split to...
5690 (vmlsls_lane): ...this and...
5691 (vmlslu_lane): ...this.
5692 (vmlal_n): Split to...
5693 (vmlals_n): ...this and...
5694 (vmlalu_n): ...this.
5695 (vmlsl_n): Split to...
5696 (vmlsls_n): ...this and...
5697 (vmlslu_n): ...this.
5698 (vext): Make type "SHIFTINSERT".
5700 (vcvts): ...this and...
5702 (vcvt_n): Split to...
5703 (vcvts_n): ...this and...
5705 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
5706 (vaddl_s16): Likewise.
5707 (vaddl_s32): Likewise.
5708 (vaddl_u8): Likewise.
5709 (vaddl_u16): Likewise.
5710 (vaddl_u32): Likewise.
5711 (vaddw_s8): Likewise.
5712 (vaddw_s16): Likewise.
5713 (vaddw_s32): Likewise.
5714 (vaddw_u8): Likewise.
5715 (vaddw_u16): Likewise.
5716 (vaddw_u32): Likewise.
5717 (vhadd_s8): Likewise.
5718 (vhadd_s16): Likewise.
5719 (vhadd_s32): Likewise.
5720 (vhadd_u8): Likewise.
5721 (vhadd_u16): Likewise.
5722 (vhadd_u32): Likewise.
5723 (vhaddq_s8): Likewise.
5724 (vhaddq_s16): Likewise.
5725 (vhaddq_s32): Likewise.
5726 (vhaddq_u8): Likewise.
5727 (vhaddq_u16): Likewise.
5728 (vrhadd_s8): Likewise.
5729 (vrhadd_s16): Likewise.
5730 (vrhadd_s32): Likewise.
5731 (vrhadd_u8): Likewise.
5732 (vrhadd_u16): Likewise.
5733 (vrhadd_u32): Likewise.
5734 (vrhaddq_s8): Likewise.
5735 (vrhaddq_s16): Likewise.
5736 (vrhaddq_s32): Likewise.
5737 (vrhaddq_u8): Likewise.
5738 (vrhaddq_u16): Likewise.
5739 (vrhaddq_u32): Likewise.
5740 (vqadd_s8): Likewise.
5741 (vqadd_s16): Likewise.
5742 (vqadd_s32): Likewise.
5743 (vqadd_s64): Likewise.
5744 (vqadd_u8): Likewise.
5745 (vqadd_u16): Likewise.
5746 (vqadd_u32): Likewise.
5747 (vqadd_u64): Likewise.
5748 (vqaddq_s8): Likewise.
5749 (vqaddq_s16): Likewise.
5750 (vqaddq_s32): Likewise.
5751 (vqaddq_s64): Likewise.
5752 (vqaddq_u8): Likewise.
5753 (vqaddq_u16): Likewise.
5754 (vqaddq_u32): Likewise.
5755 (vqaddq_u64): Likewise.
5756 (vaddhn_s16): Likewise.
5757 (vaddhn_s32): Likewise.
5758 (vaddhn_s64): Likewise.
5759 (vaddhn_u16): Likewise.
5760 (vaddhn_u32): Likewise.
5761 (vaddhn_u64): Likewise.
5762 (vraddhn_s16): Likewise.
5763 (vraddhn_s32): Likewise.
5764 (vraddhn_s64): Likewise.
5765 (vraddhn_u16): Likewise.
5766 (vraddhn_u32): Likewise.
5767 (vraddhn_u64): Likewise.
5768 (vmul_p8): Likewise.
5769 (vmulq_p8): Likewise.
5770 (vqdmulh_s16): Likewise.
5771 (vqdmulh_s32): Likewise.
5772 (vqdmulhq_s16): Likewise.
5773 (vqdmulhq_s32): Likewise.
5774 (vqrdmulh_s16): Likewise.
5775 (vqrdmulh_s32): Likewise.
5776 (vqrdmulhq_s16): Likewise.
5777 (vqrdmulhq_s32): Likewise.
5778 (vmull_s8): Likewise.
5779 (vmull_s16): Likewise.
5780 (vmull_s32): Likewise.
5781 (vmull_u8): Likewise.
5782 (vmull_u16): Likewise.
5783 (vmull_u32): Likewise.
5784 (vmull_p8): Likewise.
5785 (vqdmull_s16): Likewise.
5786 (vqdmull_s32): Likewise.
5787 (vmla_s8): Likewise.
5788 (vmla_s16): Likewise.
5789 (vmla_s32): Likewise.
5790 (vmla_f32): Likewise.
5791 (vmla_u8): Likewise.
5792 (vmla_u16): Likewise.
5793 (vmla_u32): Likewise.
5794 (vmlaq_s8): Likewise.
5795 (vmlaq_s16): Likewise.
5796 (vmlaq_s32): Likewise.
5797 (vmlaq_f32): Likewise.
5798 (vmlaq_u8): Likewise.
5799 (vmlaq_u16): Likewise.
5800 (vmlaq_u32): Likewise.
5801 (vmlal_s8): Likewise.
5802 (vmlal_s16): Likewise.
5803 (vmlal_s32): Likewise.
5804 (vmlal_u8): Likewise.
5805 (vmlal_u16): Likewise.
5806 (vmlal_u32): Likewise.
5807 (vqdmlal_s16): Likewise.
5808 (vqdmlal_s32): Likewise.
5809 (vmls_s8): Likewise.
5810 (vmls_s16): Likewise.
5811 (vmls_s32): Likewise.
5812 (vmls_f32): Likewise.
5813 (vmls_u8): Likewise.
5814 (vmls_u16): Likewise.
5815 (vmls_u32): Likewise.
5816 (vmlsq_s8): Likewise.
5817 (vmlsq_s16): Likewise.
5818 (vmlsq_s32): Likewise.
5819 (vmlsq_f32): Likewise.
5820 (vmlsq_u8): Likewise.
5821 (vmlsq_u16): Likewise.
5822 (vmlsq_u32): Likewise.
5823 (vmlsl_s8): Likewise.
5824 (vmlsl_s16): Likewise.
5825 (vmlsl_s32): Likewise.
5826 (vmlsl_u8): Likewise.
5827 (vmlsl_u16): Likewise.
5828 (vmlsl_u32): Likewise.
5829 (vqdmlsl_s16): Likewise.
5830 (vqdmlsl_s32): Likewise.
5831 (vfma_f32): Likewise.
5832 (vfmaq_f32): Likewise.
5833 (vfms_f32): Likewise.
5834 (vfmsq_f32): Likewise.
5835 (vsubl_s8): Likewise.
5836 (vsubl_s16): Likewise.
5837 (vsubl_s32): Likewise.
5838 (vsubl_u8): Likewise.
5839 (vsubl_u16): Likewise.
5840 (vsubl_u32): Likewise.
5841 (vsubw_s8): Likewise.
5842 (vsubw_s16): Likewise.
5843 (vsubw_s32): Likewise.
5844 (vsubw_u8): Likewise.
5845 (vsubw_u16): Likewise.
5846 (vsubw_u32): Likewise.
5847 (vhsub_s8): Likewise.
5848 (vhsub_s16): Likewise.
5849 (vhsub_s32): Likewise.
5850 (vhsub_u8): Likewise.
5851 (vhsub_u16): Likewise.
5852 (vhsub_u32): Likewise.
5853 (vhsubq_s8): Likewise.
5854 (vhsubq_s16): Likewise.
5855 (vhsubq_s32): Likewise.
5856 (vhsubq_u8): Likewise.
5857 (vhsubq_u16): Likewise.
5858 (vhsubq_u32): Likewise.
5859 (vqsub_s8): Likewise.
5860 (vqsub_s16): Likewise.
5861 (vqsub_s32): Likewise.
5862 (vqsub_s64): Likewise.
5863 (vqsub_u8): Likewise.
5864 (vqsub_u16): Likewise.
5865 (vqsub_u32): Likewise.
5866 (vqsub_u64): Likewise.
5867 (vqsubq_s8): Likewise.
5868 (vqsubq_s16): Likewise.
5869 (vqsubq_s32): Likewise.
5870 (vqsubq_s64): Likewise.
5871 (vqsubq_u8): Likewise.
5872 (vqsubq_u16): Likewise.
5873 (vqsubq_u32): Likewise.
5874 (vqsubq_u64): Likewise.
5875 (vsubhn_s16): Likewise.
5876 (vsubhn_s32): Likewise.
5877 (vsubhn_s64): Likewise.
5878 (vsubhn_u16): Likewise.
5879 (vsubhn_u32): Likewise.
5880 (vsubhn_u64): Likewise.
5881 (vrsubhn_s16): Likewise.
5882 (vrsubhn_s32): Likewise.
5883 (vrsubhn_s64): Likewise.
5884 (vrsubhn_u16): Likewise.
5885 (vrsubhn_u32): Likewise.
5886 (vrsubhn_u64): Likewise.
5887 (vceq_s8): Likewise.
5888 (vceq_s16): Likewise.
5889 (vceq_s32): Likewise.
5890 (vceq_f32): Likewise.
5891 (vceq_u8): Likewise.
5892 (vceq_u16): Likewise.
5893 (vceq_u32): Likewise.
5894 (vceq_p8): Likewise.
5895 (vceqq_s8): Likewise.
5896 (vceqq_s16): Likewise.
5897 (vceqq_s32): Likewise.
5898 (vceqq_f32): Likewise.
5899 (vceqq_u8): Likewise.
5900 (vceqq_u16): Likewise.
5901 (vceqq_u32): Likewise.
5902 (vceqq_p8): Likewise.
5903 (vcge_s8): Likewise.
5904 (vcge_s16): Likewise.
5905 (vcge_s32): Likewise.
5906 (vcge_f32): Likewise.
5907 (vcge_u8): Likewise.
5908 (vcge_u16): Likewise.
5909 (vcge_u32): Likewise.
5910 (vcgeq_s8): Likewise.
5911 (vcgeq_s16): Likewise.
5912 (vcgeq_s32): Likewise.
5913 (vcgeq_f32): Likewise.
5914 (vcgeq_u8): Likewise.
5915 (vcgeq_u16): Likewise.
5916 (vcgeq_u32): Likewise.
5917 (vcle_s8): Likewise.
5918 (vcle_s16): Likewise.
5919 (vcle_s32): Likewise.
5920 (vcle_f32): Likewise.
5921 (vcle_u8): Likewise.
5922 (vcle_u16): Likewise.
5923 (vcle_u32): Likewise.
5924 (vcleq_s8): Likewise.
5925 (vcleq_s16): Likewise.
5926 (vcleq_s32): Likewise.
5927 (vcleq_f32): Likewise.
5928 (vcleq_u8): Likewise.
5929 (vcleq_u16): Likewise.
5930 (vcleq_u32): Likewise.
5931 (vcgt_s8): Likewise.
5932 (vcgt_s16): Likewise.
5933 (vcgt_s32): Likewise.
5934 (vcgt_f32): Likewise.
5935 (vcgt_u8): Likewise.
5936 (vcgt_u16): Likewise.
5937 (vcgt_u32): Likewise.
5938 (vcgtq_s8): Likewise.
5939 (vcgtq_s16): Likewise.
5940 (vcgtq_s32): Likewise.
5941 (vcgtq_f32): Likewise.
5942 (vcgtq_u8): Likewise.
5943 (vcgtq_u16): Likewise.
5944 (vcgtq_u32): Likewise.
5945 (vclt_s8): Likewise.
5946 (vclt_s16): Likewise.
5947 (vclt_s32): Likewise.
5948 (vclt_f32): Likewise.
5949 (vclt_u8): Likewise.
5950 (vclt_u16): Likewise.
5951 (vclt_u32): Likewise.
5952 (vcltq_s8): Likewise.
5953 (vcltq_s16): Likewise.
5954 (vcltq_s32): Likewise.
5955 (vcltq_f32): Likewise.
5956 (vcltq_u8): Likewise.
5957 (vcltq_u16): Likewise.
5958 (vcltq_u32): Likewise.
5959 (vcage_f32): Likewise.
5960 (vcageq_f32): Likewise.
5961 (vcale_f32): Likewise.
5962 (vcaleq_f32): Likewise.
5963 (vcagt_f32): Likewise.
5964 (vcagtq_f32): Likewise.
5965 (vcalt_f32): Likewise.
5966 (vcaltq_f32): Likewise.
5967 (vtst_s8): Likewise.
5968 (vtst_s16): Likewise.
5969 (vtst_s32): Likewise.
5970 (vtst_u8): Likewise.
5971 (vtst_u16): Likewise.
5972 (vtst_u32): Likewise.
5973 (vtst_p8): Likewise.
5974 (vtstq_s8): Likewise.
5975 (vtstq_s16): Likewise.
5976 (vtstq_s32): Likewise.
5977 (vtstq_u8): Likewise.
5978 (vtstq_u16): Likewise.
5979 (vtstq_u32): Likewise.
5980 (vtstq_p8): Likewise.
5981 (vabd_s8): Likewise.
5982 (vabd_s16): Likewise.
5983 (vabd_s32): Likewise.
5984 (vabd_f32): Likewise.
5985 (vabd_u8): Likewise.
5986 (vabd_u16): Likewise.
5987 (vabd_u32): Likewise.
5988 (vabdq_s8): Likewise.
5989 (vabdq_s16): Likewise.
5990 (vabdq_s32): Likewise.
5991 (vabdq_f32): Likewise.
5992 (vabdq_u8): Likewise.
5993 (vabdq_u16): Likewise.
5994 (vabdq_u32): Likewise.
5995 (vabdl_s8): Likewise.
5996 (vabdl_s16): Likewise.
5997 (vabdl_s32): Likewise.
5998 (vabdl_u8): Likewise.
5999 (vabdl_u16): Likewise.
6000 (vabdl_u32): Likewise.
6001 (vaba_s8): Likewise.
6002 (vaba_s16): Likewise.
6003 (vaba_s32): Likewise.
6004 (vaba_u8): Likewise.
6005 (vaba_u16): Likewise.
6006 (vaba_u32): Likewise.
6007 (vabaq_s8): Likewise.
6008 (vabaq_s16): Likewise.
6009 (vabaq_s32): Likewise.
6010 (vabaq_u8): Likewise.
6011 (vabaq_u16): Likewise.
6012 (vabaq_u32): Likewise.
6013 (vabal_s8): Likewise.
6014 (vabal_s16): Likewise.
6015 (vabal_s32): Likewise.
6016 (vabal_u8): Likewise.
6017 (vabal_u16): Likewise.
6018 (vabal_u32): Likewise.
6019 (vmax_s8): Likewise.
6020 (vmax_s16): Likewise.
6021 (vmax_s32): Likewise.
6022 (vmax_f32): Likewise.
6023 (vmax_u8): Likewise.
6024 (vmax_u16): Likewise.
6025 (vmax_u32): Likewise.
6026 (vmaxq_s8): Likewise.
6027 (vmaxq_s16): Likewise.
6028 (vmaxq_s32): Likewise.
6029 (vmaxq_f32): Likewise.
6030 (vmaxq_u8): Likewise.
6031 (vmaxq_u16): Likewise.
6032 (vmaxq_u32): Likewise.
6033 (vmin_s8): Likewise.
6034 (vmin_s16): Likewise.
6035 (vmin_s32): Likewise.
6036 (vmin_f32): Likewise.
6037 (vmin_u8): Likewise.
6038 (vmin_u16): Likewise.
6039 (vmin_u32): Likewise.
6040 (vminq_s8): Likewise.
6041 (vminq_s16): Likewise.
6042 (vminq_s32): Likewise.
6043 (vminq_f32): Likewise.
6044 (vminq_u8): Likewise.
6045 (vminq_u16): Likewise.
6046 (vminq_u32): Likewise.
6047 (vpadd_s8): Likewise.
6048 (vpadd_s16): Likewise.
6049 (vpadd_s32): Likewise.
6050 (vpadd_f32): Likewise.
6051 (vpadd_u8): Likewise.
6052 (vpadd_u16): Likewise.
6053 (vpadd_u32): Likewise.
6054 (vpaddl_s8): Likewise.
6055 (vpaddl_s16): Likewise.
6056 (vpaddl_s32): Likewise.
6057 (vpaddl_u8): Likewise.
6058 (vpaddl_u16): Likewise.
6059 (vpaddl_u32): Likewise.
6060 (vpaddlq_s8): Likewise.
6061 (vpaddlq_s16): Likewise.
6062 (vpaddlq_s32): Likewise.
6063 (vpaddlq_u8): Likewise.
6064 (vpaddlq_u16): Likewise.
6065 (vpaddlq_u32): Likewise.
6066 (vpadal_s8): Likewise.
6067 (vpadal_s16): Likewise.
6068 (vpadal_s32): Likewise.
6069 (vpadal_u8): Likewise.
6070 (vpadal_u16): Likewise.
6071 (vpadal_u32): Likewise.
6072 (vpadalq_s8): Likewise.
6073 (vpadalq_s16): Likewise.
6074 (vpadalq_s32): Likewise.
6075 (vpadalq_u8): Likewise.
6076 (vpadalq_u16): Likewise.
6077 (vpadalq_u32): Likewise.
6078 (vpmax_s8): Likewise.
6079 (vpmax_s16): Likewise.
6080 (vpmax_s32): Likewise.
6081 (vpmax_f32): Likewise.
6082 (vpmax_u8): Likewise.
6083 (vpmax_u16): Likewise.
6084 (vpmax_u32): Likewise.
6085 (vpmin_s8): Likewise.
6086 (vpmin_s16): Likewise.
6087 (vpmin_s32): Likewise.
6088 (vpmin_f32): Likewise.
6089 (vpmin_u8): Likewise.
6090 (vpmin_u16): Likewise.
6091 (vpmin_u32): Likewise.
6092 (vrecps_f32): Likewise.
6093 (vrecpsq_f32): Likewise.
6094 (vrsqrts_f32): Likewise.
6095 (vrsqrtsq_f32): Likewise.
6096 (vshl_s8): Likewise.
6097 (vshl_s16): Likewise.
6098 (vshl_s32): Likewise.
6099 (vshl_s64): Likewise.
6100 (vshl_u8): Likewise.
6101 (vshl_u16): Likewise.
6102 (vshl_u32): Likewise.
6103 (vshl_u64): Likewise.
6104 (vshlq_s8): Likewise.
6105 (vshlq_s16): Likewise.
6106 (vshlq_s32): Likewise.
6107 (vshlq_s64): Likewise.
6108 (vshlq_u8): Likewise.
6109 (vshlq_u16): Likewise.
6110 (vshlq_u32): Likewise.
6111 (vshlq_u64): Likewise.
6112 (vrshl_s8): Likewise.
6113 (vrshl_s16): Likewise.
6114 (vrshl_s32): Likewise.
6115 (vrshl_s64): Likewise.
6116 (vrshl_u8): Likewise.
6117 (vrshl_u16): Likewise.
6118 (vrshl_u32): Likewise.
6119 (vrshl_u64): Likewise.
6120 (vrshlq_s8): Likewise.
6121 (vrshlq_s16): Likewise.
6122 (vrshlq_s32): Likewise.
6123 (vrshlq_s64): Likewise.
6124 (vrshlq_u8): Likewise.
6125 (vrshlq_u16): Likewise.
6126 (vrshlq_u32): Likewise.
6127 (vrshlq_u64): Likewise.
6128 (vqshl_s8): Likewise.
6129 (vqshl_s16): Likewise.
6130 (vqshl_s32): Likewise.
6131 (vqshl_s64): Likewise.
6132 (vqshl_u8): Likewise.
6133 (vqshl_u16): Likewise.
6134 (vqshl_u32): Likewise.
6135 (vqshl_u64): Likewise.
6136 (vqshlq_s8): Likewise.
6137 (vqshlq_s16): Likewise.
6138 (vqshlq_s32): Likewise.
6139 (vqshlq_s64): Likewise.
6140 (vqshlq_u8): Likewise.
6141 (vqshlq_u16): Likewise.
6142 (vqshlq_u32): Likewise.
6143 (vqshlq_u64): Likewise.
6144 (vqrshl_s8): Likewise.
6145 (vqrshl_s16): Likewise.
6146 (vqrshl_s32): Likewise.
6147 (vqrshl_s64): Likewise.
6148 (vqrshl_u8): Likewise.
6149 (vqrshl_u16): Likewise.
6150 (vqrshl_u32): Likewise.
6151 (vqrshl_u64): Likewise.
6152 (vqrshlq_s8): Likewise.
6153 (vqrshlq_s16): Likewise.
6154 (vqrshlq_s32): Likewise.
6155 (vqrshlq_s64): Likewise.
6156 (vqrshlq_u8): Likewise.
6157 (vqrshlq_u16): Likewise.
6158 (vqrshlq_u32): Likewise.
6159 (vqrshlq_u64): Likewise.
6160 (vshr_n_s8): Likewise.
6161 (vshr_n_s16): Likewise.
6162 (vshr_n_s32): Likewise.
6163 (vshr_n_s64): Likewise.
6164 (vshr_n_u8): Likewise.
6165 (vshr_n_u16): Likewise.
6166 (vshr_n_u32): Likewise.
6167 (vshr_n_u64): Likewise.
6168 (vshrq_n_s8): Likewise.
6169 (vshrq_n_s16): Likewise.
6170 (vshrq_n_s32): Likewise.
6171 (vshrq_n_s64): Likewise.
6172 (vshrq_n_u8): Likewise.
6173 (vshrq_n_u16): Likewise.
6174 (vshrq_n_u32): Likewise.
6175 (vshrq_n_u64): Likewise.
6176 (vrshr_n_s8): Likewise.
6177 (vrshr_n_s16): Likewise.
6178 (vrshr_n_s32): Likewise.
6179 (vrshr_n_s64): Likewise.
6180 (vrshr_n_u8): Likewise.
6181 (vrshr_n_u16): Likewise.
6182 (vrshr_n_u32): Likewise.
6183 (vrshr_n_u64): Likewise.
6184 (vrshrq_n_s8): Likewise.
6185 (vrshrq_n_s16): Likewise.
6186 (vrshrq_n_s32): Likewise.
6187 (vrshrq_n_s64): Likewise.
6188 (vrshrq_n_u8): Likewise.
6189 (vrshrq_n_u16): Likewise.
6190 (vrshrq_n_u32): Likewise.
6191 (vrshrq_n_u64): Likewise.
6192 (vshrn_n_s16): Likewise.
6193 (vshrn_n_s32): Likewise.
6194 (vshrn_n_s64): Likewise.
6195 (vshrn_n_u16): Likewise.
6196 (vshrn_n_u32): Likewise.
6197 (vshrn_n_u64): Likewise.
6198 (vrshrn_n_s16): Likewise.
6199 (vrshrn_n_s32): Likewise.
6200 (vrshrn_n_s64): Likewise.
6201 (vrshrn_n_u16): Likewise.
6202 (vrshrn_n_u32): Likewise.
6203 (vrshrn_n_u64): Likewise.
6204 (vqshrn_n_s16): Likewise.
6205 (vqshrn_n_s32): Likewise.
6206 (vqshrn_n_s64): Likewise.
6207 (vqshrn_n_u16): Likewise.
6208 (vqshrn_n_u32): Likewise.
6209 (vqshrn_n_u64): Likewise.
6210 (vqrshrn_n_s16): Likewise.
6211 (vqrshrn_n_s32): Likewise.
6212 (vqrshrn_n_s64): Likewise.
6213 (vqrshrn_n_u16): Likewise.
6214 (vqrshrn_n_u32): Likewise.
6215 (vqrshrn_n_u64): Likewise.
6216 (vqshrun_n_s16): Likewise.
6217 (vqshrun_n_s32): Likewise.
6218 (vqshrun_n_s64): Likewise.
6219 (vqrshrun_n_s16): Likewise.
6220 (vqrshrun_n_s32): Likewise.
6221 (vqrshrun_n_s64): Likewise.
6222 (vshl_n_s8): Likewise.
6223 (vshl_n_s16): Likewise.
6224 (vshl_n_s32): Likewise.
6225 (vshl_n_s64): Likewise.
6226 (vshl_n_u8): Likewise.
6227 (vshl_n_u16): Likewise.
6228 (vshl_n_u32): Likewise.
6229 (vshl_n_u64): Likewise.
6230 (vshlq_n_s8): Likewise.
6231 (vshlq_n_s16): Likewise.
6232 (vshlq_n_s32): Likewise.
6233 (vshlq_n_s64): Likewise.
6234 (vshlq_n_u8): Likewise.
6235 (vshlq_n_u16): Likewise.
6236 (vshlq_n_u32): Likewise.
6237 (vshlq_n_u64): Likewise.
6238 (vqshl_n_s8): Likewise.
6239 (vqshl_n_s16): Likewise.
6240 (vqshl_n_s32): Likewise.
6241 (vqshl_n_s64): Likewise.
6242 (vqshl_n_u8): Likewise.
6243 (vqshl_n_u16): Likewise.
6244 (vqshl_n_u32): Likewise.
6245 (vqshl_n_u64): Likewise.
6246 (vqshlq_n_s8): Likewise.
6247 (vqshlq_n_s16): Likewise.
6248 (vqshlq_n_s32): Likewise.
6249 (vqshlq_n_s64): Likewise.
6250 (vqshlq_n_u8): Likewise.
6251 (vqshlq_n_u16): Likewise.
6252 (vqshlq_n_u32): Likewise.
6253 (vqshlq_n_u64): Likewise.
6254 (vqshlu_n_s8): Likewise.
6255 (vqshlu_n_s16): Likewise.
6256 (vqshlu_n_s32): Likewise.
6257 (vqshlu_n_s64): Likewise.
6258 (vqshluq_n_s8): Likewise.
6259 (vqshluq_n_s16): Likewise.
6260 (vqshluq_n_s32): Likewise.
6261 (vqshluq_n_s64): Likewise.
6262 (vshll_n_s8): Likewise.
6263 (vshll_n_s16): Likewise.
6264 (vshll_n_s32): Likewise.
6265 (vshll_n_u8): Likewise.
6266 (vshll_n_u16): Likewise.
6267 (vshll_n_u32): Likewise.
6268 (vsra_n_s8): Likewise.
6269 (vsra_n_s16): Likewise.
6270 (vsra_n_s32): Likewise.
6271 (vsra_n_s64): Likewise.
6272 (vsra_n_u8): Likewise.
6273 (vsra_n_u16): Likewise.
6274 (vsra_n_u32): Likewise.
6275 (vsra_n_u64): Likewise.
6276 (vsraq_n_s8): Likewise.
6277 (vsraq_n_s16): Likewise.
6278 (vsraq_n_s32): Likewise.
6279 (vsraq_n_s64): Likewise.
6280 (vsraq_n_u8): Likewise.
6281 (vsraq_n_u16): Likewise.
6282 (vsraq_n_u32): Likewise.
6283 (vsraq_n_u64): Likewise.
6284 (vrsra_n_s8): Likewise.
6285 (vrsra_n_s16): Likewise.
6286 (vrsra_n_s32): Likewise.
6287 (vrsra_n_s64): Likewise.
6288 (vrsra_n_u8): Likewise.
6289 (vrsra_n_u16): Likewise.
6290 (vrsra_n_u32): Likewise.
6291 (vrsra_n_u64): Likewise.
6292 (vrsraq_n_s8): Likewise.
6293 (vrsraq_n_s16): Likewise.
6294 (vrsraq_n_s32): Likewise.
6295 (vrsraq_n_s64): Likewise.
6296 (vrsraq_n_u8): Likewise.
6297 (vrsraq_n_u16): Likewise.
6298 (vrsraq_n_u32): Likewise.
6299 (vrsraq_n_u64): Likewise.
6300 (vabs_s8): Likewise.
6301 (vabs_s16): Likewise.
6302 (vabs_s32): Likewise.
6303 (vabs_f32): Likewise.
6304 (vabsq_s8): Likewise.
6305 (vabsq_s16): Likewise.
6306 (vabsq_s32): Likewise.
6307 (vabsq_f32): Likewise.
6308 (vqabs_s8): Likewise.
6309 (vqabs_s16): Likewise.
6310 (vqabs_s32): Likewise.
6311 (vqabsq_s8): Likewise.
6312 (vqabsq_s16): Likewise.
6313 (vqabsq_s32): Likewise.
6314 (vneg_s8): Likewise.
6315 (vneg_s16): Likewise.
6316 (vneg_s32): Likewise.
6317 (vneg_f32): Likewise.
6318 (vnegq_s8): Likewise.
6319 (vnegq_s16): Likewise.
6320 (vnegq_s32): Likewise.
6321 (vnegq_f32): Likewise.
6322 (vqneg_s8): Likewise.
6323 (vqneg_s16): Likewise.
6324 (vqneg_s32): Likewise.
6325 (vqnegq_s8): Likewise.
6326 (vqnegq_s16): Likewise.
6327 (vqnegq_s32): Likewise.
6328 (vmvn_s8): Likewise.
6329 (vmvn_s16): Likewise.
6330 (vmvn_s32): Likewise.
6331 (vmvn_u8): Likewise.
6332 (vmvn_u16): Likewise.
6333 (vmvn_u32): Likewise.
6334 (vmvn_p8): Likewise.
6335 (vmvnq_s8): Likewise.
6336 (vmvnq_s16): Likewise.
6337 (vmvnq_s32): Likewise.
6338 (vmvnq_u8): Likewise.
6339 (vmvnq_u16): Likewise.
6340 (vmvnq_u32): Likewise.
6341 (vmvnq_p8): Likewise.
6342 (vcls_s8): Likewise.
6343 (vcls_s16): Likewise.
6344 (vcls_s32): Likewise.
6345 (vclsq_s8): Likewise.
6346 (vclsq_s16): Likewise.
6347 (vclsq_s32): Likewise.
6348 (vclz_s8): Likewise.
6349 (vclz_s16): Likewise.
6350 (vclz_s32): Likewise.
6351 (vclz_u8): Likewise.
6352 (vclz_u16): Likewise.
6353 (vclz_u32): Likewise.
6354 (vclzq_s8): Likewise.
6355 (vclzq_s16): Likewise.
6356 (vclzq_s32): Likewise.
6357 (vclzq_u8): Likewise.
6358 (vclzq_u16): Likewise.
6359 (vclzq_u32): Likewise.
6360 (vcnt_s8): Likewise.
6361 (vcnt_u8): Likewise.
6362 (vcnt_p8): Likewise.
6363 (vcntq_s8): Likewise.
6364 (vcntq_u8): Likewise.
6365 (vcntq_p8): Likewise.
6366 (vrecpe_f32): Likewise.
6367 (vrecpe_u32): Likewise.
6368 (vrecpeq_f32): Likewise.
6369 (vrecpeq_u32): Likewise.
6370 (vrsqrte_f32): Likewise.
6371 (vrsqrte_u32): Likewise.
6372 (vrsqrteq_f32): Likewise.
6373 (vrsqrteq_u32): Likewise.
6374 (vget_lane_s8): Likewise.
6375 (vget_lane_s16): Likewise.
6376 (vget_lane_s32): Likewise.
6377 (vget_lane_f32): Likewise.
6378 (vget_lane_u8): Likewise.
6379 (vget_lane_u16): Likewise.
6380 (vget_lane_u32): Likewise.
6381 (vget_lane_p8): Likewise.
6382 (vget_lane_p16): Likewise.
6383 (vget_lane_s64): Likewise.
6384 (vget_lane_u64): Likewise.
6385 (vgetq_lane_s8): Likewise.
6386 (vgetq_lane_s16): Likewise.
6387 (vgetq_lane_s32): Likewise.
6388 (vgetq_lane_f32): Likewise.
6389 (vgetq_lane_u8): Likewise.
6390 (vgetq_lane_u16): Likewise.
6391 (vgetq_lane_u32): Likewise.
6392 (vgetq_lane_p8): Likewise.
6393 (vgetq_lane_p16): Likewise.
6394 (vgetq_lane_s64): Likewise.
6395 (vgetq_lane_u64): Likewise.
6396 (vcvt_s32_f32): Likewise.
6397 (vcvt_f32_s32): Likewise.
6398 (vcvt_f32_u32): Likewise.
6399 (vcvt_u32_f32): Likewise.
6400 (vcvtq_s32_f32): Likewise.
6401 (vcvtq_f32_s32): Likewise.
6402 (vcvtq_f32_u32): Likewise.
6403 (vcvtq_u32_f32): Likewise.
6404 (vcvt_n_s32_f32): Likewise.
6405 (vcvt_n_f32_s32): Likewise.
6406 (vcvt_n_f32_u32): Likewise.
6407 (vcvt_n_u32_f32): Likewise.
6408 (vcvtq_n_s32_f32): Likewise.
6409 (vcvtq_n_f32_s32): Likewise.
6410 (vcvtq_n_f32_u32): Likewise.
6411 (vcvtq_n_u32_f32): Likewise.
6412 (vmovn_s16): Likewise.
6413 (vmovn_s32): Likewise.
6414 (vmovn_s64): Likewise.
6415 (vmovn_u16): Likewise.
6416 (vmovn_u32): Likewise.
6417 (vmovn_u64): Likewise.
6418 (vqmovn_s16): Likewise.
6419 (vqmovn_s32): Likewise.
6420 (vqmovn_s64): Likewise.
6421 (vqmovn_u16): Likewise.
6422 (vqmovn_u32): Likewise.
6423 (vqmovn_u64): Likewise.
6424 (vqmovun_s16): Likewise.
6425 (vqmovun_s32): Likewise.
6426 (vqmovun_s64): Likewise.
6427 (vmovl_s8): Likewise.
6428 (vmovl_s16): Likewise.
6429 (vmovl_s32): Likewise.
6430 (vmovl_u8): Likewise.
6431 (vmovl_u16): Likewise.
6432 (vmovl_u32): Likewise.
6433 (vmul_lane_s16): Likewise.
6434 (vmul_lane_s32): Likewise.
6435 (vmul_lane_f32): Likewise.
6436 (vmul_lane_u16): Likewise.
6437 (vmul_lane_u32): Likewise.
6438 (vmulq_lane_s16): Likewise.
6439 (vmulq_lane_s32): Likewise.
6440 (vmulq_lane_f32): Likewise.
6441 (vmulq_lane_u16): Likewise.
6442 (vmulq_lane_u32): Likewise.
6443 (vmla_lane_s16): Likewise.
6444 (vmla_lane_s32): Likewise.
6445 (vmla_lane_f32): Likewise.
6446 (vmla_lane_u16): Likewise.
6447 (vmla_lane_u32): Likewise.
6448 (vmlaq_lane_s16): Likewise.
6449 (vmlaq_lane_s32): Likewise.
6450 (vmlaq_lane_f32): Likewise.
6451 (vmlaq_lane_u16): Likewise.
6452 (vmlaq_lane_u32): Likewise.
6453 (vmlal_lane_s16): Likewise.
6454 (vmlal_lane_s32): Likewise.
6455 (vmlal_lane_u16): Likewise.
6456 (vmlal_lane_u32): Likewise.
6457 (vqdmlal_lane_s16): Likewise.
6458 (vqdmlal_lane_s32): Likewise.
6459 (vmls_lane_s16): Likewise.
6460 (vmls_lane_s32): Likewise.
6461 (vmls_lane_f32): Likewise.
6462 (vmls_lane_u16): Likewise.
6463 (vmls_lane_u32): Likewise.
6464 (vmlsq_lane_s16): Likewise.
6465 (vmlsq_lane_s32): Likewise.
6466 (vmlsq_lane_f32): Likewise.
6467 (vmlsq_lane_u16): Likewise.
6468 (vmlsq_lane_u32): Likewise.
6469 (vmlsl_lane_s16): Likewise.
6470 (vmlsl_lane_s32): Likewise.
6471 (vmlsl_lane_u16): Likewise.
6472 (vmlsl_lane_u32): Likewise.
6473 (vqdmlsl_lane_s16): Likewise.
6474 (vqdmlsl_lane_s32): Likewise.
6475 (vmull_lane_s16): Likewise.
6476 (vmull_lane_s32): Likewise.
6477 (vmull_lane_u16): Likewise.
6478 (vmull_lane_u32): Likewise.
6479 (vqdmull_lane_s16): Likewise.
6480 (vqdmull_lane_s32): Likewise.
6481 (vqdmulhq_lane_s16): Likewise.
6482 (vqdmulhq_lane_s32): Likewise.
6483 (vqdmulh_lane_s16): Likewise.
6484 (vqdmulh_lane_s32): Likewise.
6485 (vqrdmulhq_lane_s16): Likewise.
6486 (vqrdmulhq_lane_s32): Likewise.
6487 (vqrdmulh_lane_s16): Likewise.
6488 (vqrdmulh_lane_s32): Likewise.
6489 (vmul_n_s16): Likewise.
6490 (vmul_n_s32): Likewise.
6491 (vmul_n_f32): Likewise.
6492 (vmul_n_u16): Likewise.
6493 (vmul_n_u32): Likewise.
6494 (vmulq_n_s16): Likewise.
6495 (vmulq_n_s32): Likewise.
6496 (vmulq_n_f32): Likewise.
6497 (vmulq_n_u16): Likewise.
6498 (vmulq_n_u32): Likewise.
6499 (vmull_n_s16): Likewise.
6500 (vmull_n_s32): Likewise.
6501 (vmull_n_u16): Likewise.
6502 (vmull_n_u32): Likewise.
6503 (vqdmull_n_s16): Likewise.
6504 (vqdmull_n_s32): Likewise.
6505 (vqdmulhq_n_s16): Likewise.
6506 (vqdmulhq_n_s32): Likewise.
6507 (vqdmulh_n_s16): Likewise.
6508 (vqdmulh_n_s32): Likewise.
6509 (vqrdmulhq_n_s16): Likewise.
6510 (vqrdmulhq_n_s32): Likewise.
6511 (vqrdmulh_n_s16): Likewise.
6512 (vqrdmulh_n_s32): Likewise.
6513 (vmla_n_s16): Likewise.
6514 (vmla_n_s32): Likewise.
6515 (vmla_n_f32): Likewise.
6516 (vmla_n_u16): Likewise.
6517 (vmla_n_u32): Likewise.
6518 (vmlaq_n_s16): Likewise.
6519 (vmlaq_n_s32): Likewise.
6520 (vmlaq_n_f32): Likewise.
6521 (vmlaq_n_u16): Likewise.
6522 (vmlaq_n_u32): Likewise.
6523 (vmlal_n_s16): Likewise.
6524 (vmlal_n_s32): Likewise.
6525 (vmlal_n_u16): Likewise.
6526 (vmlal_n_u32): Likewise.
6527 (vqdmlal_n_s16): Likewise.
6528 (vqdmlal_n_s32): Likewise.
6529 (vmls_n_s16): Likewise.
6530 (vmls_n_s32): Likewise.
6531 (vmls_n_f32): Likewise.
6532 (vmls_n_u16): Likewise.
6533 (vmls_n_u32): Likewise.
6534 (vmlsq_n_s16): Likewise.
6535 (vmlsq_n_s32): Likewise.
6536 (vmlsq_n_f32): Likewise.
6537 (vmlsq_n_u16): Likewise.
6538 (vmlsq_n_u32): Likewise.
6539 (vmlsl_n_s16): Likewise.
6540 (vmlsl_n_s32): Likewise.
6541 (vmlsl_n_u16): Likewise.
6542 (vmlsl_n_u32): Likewise.
6543 (vqdmlsl_n_s16): Likewise.
6544 (vqdmlsl_n_s32): Likewise.
6546 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6548 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
6549 Add cost of alu.arith in simple SImode case.
6551 2014-11-18 Jiong Wang <jiong.wang@arm.com>
6553 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
6556 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
6558 * opts.c (finish_options): Disable aggressive opts for sanitizer.
6559 (common_handle_option): Move code to finish_options.
6561 2014-11-18 Yury Gribov <y.gribov@samsung.com>
6564 * stor-layout.c (min_align_of_type): Respect user alignment
6567 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6569 * passes.c (remove_cgraph_node_from_order): New.
6570 (do_per_function_toporder): Register cgraph removal
6573 2014-11-17 Terry Guo <terry.guo@arm.com>
6575 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
6576 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
6577 (generic_vfp): Likewise.
6578 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
6580 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
6582 PR rtl-optimization/63906
6583 * lra-remat.c (operand_to_remat): Check SP and
6584 frame_pointer_required.
6586 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
6588 * doc/invoke.texi (floop-unroll-and-jam): Document
6589 (loop-unroll-jam-size): Likewise.
6590 (loop-unroll-jam-depth): Likewise.
6591 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
6592 (getScheduleForBandList): Replaced unsafe union_map reuse.
6594 2014-11-17 Andrew Pinski <apinski@cavium.com>
6596 * config/aarch64/thunderx.md: Remove copyright which should not
6599 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
6600 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6602 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
6603 Altivec style vector loads that ignore the bottom 3 bits of the
6605 (rs6000_debug_addr_mask): New function to print the addr_mask
6606 values if debugging.
6607 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
6609 (rs6000_setup_reg_addr_masks): Add support for Altivec style
6610 vector loads that ignore the bottom 3 bits of the address. Allow
6611 pre-increment and pre-decrement on floating point, even if the
6612 -mupper-regs-{sf,df} options were used.
6613 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
6614 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
6615 placement for direct move support.
6616 (rs6000_option_override_internal): Add checks for -mupper-regs-df
6617 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
6618 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
6619 depending on the underlying cpu.
6620 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
6621 (rs6000_secondary_reload_toc_costs): Helper function to identify
6622 costs of a TOC load for secondary reload support.
6623 (rs6000_secondary_reload_memory): Helper function for secondary
6624 reload, to determine if a particular memory operation is directly
6625 handled by the hardware, or if it needs support from secondary
6626 reload to create a valid address.
6627 (rs6000_secondary_reload): Rework code, to be clearer. If the
6628 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
6629 reload scalar values, since the FPR registers have D-form
6630 addressing. Move most of the code handling memory to the function
6631 rs6000_secondary_reload_memory, and use the reg_addr structure to
6632 determine what type of address modes are supported. Print more
6633 debug information if -mdebug=addr.
6634 (rs6000_secondary_reload_inner): Rework entire function to be more
6635 general. Use the reg_addr bits to determine what type of
6636 addressing is supported.
6637 (rs6000_preferred_reload_class): Rework. Move constant handling
6638 into a single place. Prefer using FLOAT_REGS for scalar floating
6640 (rs6000_secondary_reload_class): Use a FPR register to move a
6641 value from an Altivec register to a GPR, and vice versa. Move VSX
6642 handling above traditional floating point.
6644 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
6645 Delete some spaces in the constraints.
6646 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
6647 allow using FPR registers to load/store an Altivec register for
6648 scalar floating point types.
6649 (SF->SF move peephole2): Likewise.
6650 (DFmode splitter): Add a define_split to move floating point
6651 constants to the constant pool before register allocation.
6652 Normally constants are put into the pool immediately, but
6653 -ffast-math delays putting them into the constant pool for the
6654 reciprocal approximation support.
6655 (SFmode splitter): Likewise.
6657 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
6658 (-mupper-regs-sf): Likewise.
6660 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6661 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
6663 (-mupper-regs): New combination option that sets -mupper-regs-sf
6664 and -mupper-regs-df by default if the cpu supports the instructions.
6666 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6667 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
6669 * config/rs6000/predicates.md (memory_fp_constant): New predicate
6670 to return true if the operand is a floating point constant that
6671 must be put into the constant pool, before register allocation
6674 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
6675 -mupper-regs-df by default.
6676 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
6677 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
6678 various -mcpu=... options.
6679 (power7 cpu): Enable -mupper-regs-df by default.
6681 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6684 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6686 * ira-conflicts.c (build_conflict_bit_table): Add the current
6687 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
6689 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6691 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
6692 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
6693 (devirtualization_time_bonus): Use it.
6694 (ipcp_discover_new_direct_edges): Likewise.
6695 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
6696 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
6698 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6700 * tree.c (free_lang_data_in_decl): Set
6701 DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimization_default_node.
6703 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6705 * cgraphunit.c (analyze_functions): Use opt_for_fn.
6706 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
6708 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6710 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
6711 (cgraph_node::cannot_return_p): Likewise.
6712 (cgraph_edge::cannot_lead_to_return_p): Likewise.
6713 (cgraph_edge::maybe_hot_p): Likewise.
6715 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6717 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
6718 (optimize_function_for_size_p): Likewise.
6719 (probably_never_executed): Likewise; replace cfun by fun.
6721 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6723 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
6724 variant reading from memory and assembling to ld1.
6726 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
6727 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
6728 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
6729 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
6730 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
6731 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
6732 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
6734 2014-11-17 Jason Merrill <jason@redhat.com>
6736 * tree-inline.c (copy_fn): New.
6737 * tree-inline.h: Declare it.
6739 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
6741 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
6742 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
6743 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
6744 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
6745 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
6746 * config/aarch64/iterators.md (VD1): Remove.
6748 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6750 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
6751 AARCH64_FL_CRYPTO from feature flags.
6752 (cortex-a57): Likewise.
6753 (cortex-a57.cortex-a53): Likewise.
6755 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
6757 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
6758 DECL_FUNCTION_SPECIFIC_TARGET.
6759 * i386.c (ix86_set_current_function): Handle explicit default options.
6761 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6763 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
6765 (expand_builtin_mempcpy_with_bounds): Likewise.
6766 (expand_builtin_memset_with_bounds): Likewise.
6768 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6770 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
6771 ipa-ref.h, plugin-api.h.
6772 (get_string_length): Handle calls with bounds.
6773 (adjust_last_stmt): Likewise.
6774 (handle_builtin_strchr): Likewise.
6775 (handle_builtin_strcpy): Likewise.
6776 (handle_builtin_memcpy): Likewise.
6777 (handle_builtin_strcat): Likewise.
6779 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6781 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
6782 (chkp_get_nochk_fndecl): New.
6783 (chkp_optimize_string_function_calls): New.
6784 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
6785 * tree-cfg.h (insert_cond_bb): New.
6786 * tree-cfg.c (insert_cond_bb): New.
6788 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
6790 * tree-core.h (built_in_class): Add builtin codes to be used
6791 by Pointer Bounds Checker for instrumented builtin functions.
6792 * tree-streamer-in.c: Include ipa-chkp.h.
6793 (streamer_get_builtin_tree): Created instrumented decl if
6795 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
6796 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
6798 (chkp_maybe_clone_builtin_fndecl): New.
6799 (chkp_maybe_create_clone): Support builtin function decls.
6800 (chkp_versioning): Clone builtin functions.
6801 * tree-chkp.c (chkp_instrument_normal_builtin): New.
6802 (chkp_add_bounds_to_call_stmt): Support builtin functions.
6803 (chkp_replace_function_pointer): Likewise.
6804 * builtins.c (expand_builtin_memcpy_args): New.
6805 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
6806 (expand_builtin_memcpy_with_bounds): New.
6807 (expand_builtin_mempcpy_with_bounds): New.
6808 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
6809 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
6810 (expand_builtin_memset_with_bounds): New.
6811 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
6812 (expand_builtin_with_bounds): New.
6813 * builtins.h (expand_builtin_with_bounds): New.
6814 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
6816 2014-11-17 Dodji Seketeli <dodji@redhat.com>
6818 * gimple.h (gimple_set_visited, gimple_visited_p)
6819 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
6820 comments to these accessors.
6822 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
6824 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
6825 Set avr_log_details to "all".
6827 2014-11-17 Richard Biener <rguenther@suse.de>
6830 * match.pd: Guard X / CST -> X * CST' transform against
6833 2014-11-17 Terry Guo <terry.guo@arm.com>
6835 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
6838 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
6840 * ifcvt.c (HAVE_cbranchcc4): Define.
6841 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6842 Use HAVE_cbranchcc4.
6844 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6846 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
6847 aarch64_convert_mode, aarch64_gen_ccmp_first,
6848 aarch64_gen_ccmp_next): New functions.
6849 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
6851 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6853 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
6854 * aarch64.c (aarch64_nzcv_codes): New data.
6855 (aarch64_ccmp_mode_to_code): New.
6856 (aarch64_print_operand): Output nzcv.
6857 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
6859 (cstore<mode>4): Handle ccmp_cc_register.
6860 * config/aarch64/predicates.md (const0_operand): New.
6862 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6864 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
6865 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
6866 extacted from aarch64_get_condition_code.
6867 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
6868 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
6870 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6872 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
6873 aarch64_ccmp_operand): New constraints.
6875 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6877 * Makefile.in: Add ccmp.o.
6880 * expr.c: include "ccmp.h"
6881 (expand_cond_expr_using_cmove): Handle VOIDmode.
6882 (expand_expr_real_1): Try to expand ccmp.
6884 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6886 * cfgexpand.c (expand_gimple_cond): Check ccmp.
6887 * expmed.c (emit_cstore): Make it global.
6888 * expmed.h: #include "insn-codes.h"
6889 (emit_cstore): New prototype.
6890 * expr.c (expand_operands): Make it global.
6891 * expr.h (expand_operands): New prototype.
6892 * optabs.c (get_rtx_code): Make it global.
6893 * optabs.h (get_rtx_code): New prototype.
6895 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6897 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
6898 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6899 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
6901 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
6904 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
6905 Always combine comparisons or conversions from booleans.
6907 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6909 * ipa-polymorphic-call.c
6910 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
6911 (ipa_polymorphic_call_context::meet_speculation_with): New function.
6912 (ipa_polymorphic_call_context::combine_with): Handle types in
6913 construction better.
6914 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
6916 (ipa_polymorphic_call_context::meet_with): New function.
6917 * cgraph.h (class ipa_polymorphic_call_context): Add
6918 meet_width, meet_speculation_with; constify speculation_consistent_p.
6919 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine
6920 with incomming context.
6921 (propagate_context_accross_jump_function): Likewise; be more cureful.
6922 about set_contains_variable.
6923 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
6924 (find_more_scalar_values_for_callers_subset): Fix.
6925 (find_more_contexts_for_caller_subset): Perform meet operation.
6927 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
6929 * passes.c (execute_one_pass): Do not apply all transforms prior
6930 every simple IPA pass.
6931 * cgraphunit.c: Do not include fibheap.h
6932 (expand_thunk): Use get_untransformed_body.
6933 (cgraph_node::expand): Likewise.
6934 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
6935 * cgraph.c (release_function_body): Do not push cfun when CFG
6937 (cgraph_node::get_untransformed_body): Break out from ...
6938 (cgraph_node::get_body): ... here; add code to apply all transforms.
6939 * cgraph.h (cgraph_node): Add get_untransformed_body.
6940 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
6941 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6942 * tree-inline.c (expand_call_inline): LIkewise.
6943 * i386.c (ix86_reset_to_default_globals): Break out from ...
6944 (ix86_set_current_function): ... here;
6945 (ix86_reset_previous_fndecl): Use it.
6946 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
6948 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
6950 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
6951 * doc/tm.texi: Regenerate.
6953 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
6955 * config/sh/sh.c: Do not include algorithm.
6956 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
6958 (sh_emit_compare_and_branch): Ditto.
6959 (sh_emit_compare_and_set): Ditto.
6960 * config/sh/sh.md (replacement peephole2): Ditto.
6961 (cstore4_media): Ditto.
6964 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6966 * lra-remat.c (cand_transf_func): Process regno for
6967 rematerialization too.
6968 * lra.c (lra): Switch on rematerialization pass.
6970 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
6972 * lra.c (lra): Switch off rematerialization pass.
6974 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
6976 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
6977 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
6978 instead of builtins.
6979 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
6981 (_mm_sqrt_sd): Fix comment.
6982 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6983 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6984 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6985 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
6986 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
6987 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
6988 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
6989 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
6990 Use vector extensions instead of builtins.
6991 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
6992 _mm_mullo_epi32): Likewise.
6993 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
6995 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
6996 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
6997 Use vector extensions instead of builtins.
6998 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
6999 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
7000 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
7001 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
7002 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
7003 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
7004 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
7005 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
7007 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
7008 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
7009 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
7010 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
7011 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
7012 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
7013 _mm512_div_ps): Use vector extensions instead of builtins.
7014 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
7015 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
7016 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
7017 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
7020 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
7022 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
7023 * lto-streamer.h (cl_optimization_stream_out,
7024 cl_optimization_stream_in): Declare.
7025 * optc-save-gen.awk: Generate cl_optimization LTO streaming
7026 and hashing routines.
7027 * opth-gen.awk: Add prototype of cl_optimization_hash.
7028 * tree-streamer-in.c (unpack_ts_optimization): Remove.
7029 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
7030 * tree-streamer-out.c (pack_ts_optimization): Remove.
7031 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
7033 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
7035 * common.opt (flag_loop_unroll_and_jam): New flag.
7036 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
7038 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
7039 * graphite-poly.h (struct poly_bb:map_sepclass): New field
7040 * graphite-poly.c (new_poly_bb): Initialization for new field.
7041 (apply_poly_transforms): Support for unroll and jam flag.
7042 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
7044 (generate_luj_sepclass_opt): Build the separation class option.
7045 (generate_luj_options): Set unroll and jam options.
7046 (set_options): Support for unroll and jam options.
7047 (scop_to_isl_ast): Likewise
7048 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
7049 computing the separating class map.
7050 (optimize_isl): Support for the separating class map.
7051 (apply_schedule_map_to_scop): Likewise.
7052 (getScheduleMap): Likewise.
7053 (getScheduleForBand): Likewise.
7054 (getScheduleForBandList): Likewise.
7055 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
7056 * toplev.c (process_options) Likewise.
7058 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7060 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
7062 (replace_loop_annotate): ...here. Call it on the header and on the
7063 latch block, if any. Restore proper behavior of final cleanup.
7065 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
7067 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
7068 for max-completely-peeled-insns limit.
7070 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7072 * ipa-prop.h (ipa_known_type_data): Remove.
7073 (ipa_binfo_from_known_type_jfunc): Remove.
7075 2014-11-14 Andrew Pinski <apinski@cavium.com>
7077 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
7079 * config/aarch64/aarch64.md: Include thunderx.md.
7080 (generic_sched): Set to no for thunderx.
7081 * config/aarch64/thunderx.md: New file.
7083 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7085 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
7088 * config/rs6000/vector.md (VEC_R): Move secondary reload support
7089 insns to rs6000.md from vector.md.
7090 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
7091 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
7092 (vec_reload_and_plus_<mptrsize>): Likewise.
7094 * config/rs6000/rs6000.md (Fa): New mode attribute to give
7095 constraint for the Altivec registers for a type.
7096 (RELOAD): New mode iterator for all of the types that have
7097 secondary reload address support to load up a base register.
7098 (extendsfdf2_fpr): Use correct constraint.
7099 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
7101 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
7102 Generate the non-VSX instruction if all registers were FPRs. Do
7103 not use the patterns in vsx.md for scalar operations.
7104 (floatsi<mode>2_lfiwax_mem): Likewise.
7105 (floatunssi<mode>2_lfiwzx): Likewise.
7106 (floatunssi<mode>2_lfiwzx_mem): Likewise.
7107 (fix_trunc<mode>di2_fctidz): Likewise.
7108 (fixuns_trunc<mode>di2_fctiduz): Likewise.
7109 (fctiwz_<mode>): Likewise.
7110 (fctiwuz_<mode>): Likewise.
7112 (floatdidf2_fpr): Likewise.
7113 (floatdidf2_mem): Likewise.
7114 (floatunsdidf2): Likewise.
7115 (floatunsdidf2_fcfidu): Likewise.
7116 (floatunsdidf2_mem): Likewise.
7117 (floatdisf2_fcfids): Likewise.
7118 (floatdisf2_mem): Likewise.
7119 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
7120 it more obvious that the code is for pre-ISA 2.06 machines.
7121 (floatdisf2_internal2): Likewise.
7122 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
7123 Generate the non-VSX instruction if all registers were FPRs. Do
7124 not use the patterns in vsx.md for scalar operations.
7125 (floatunsdisf2_mem): Likewise.
7126 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
7127 handlers here from vector.md, and expand the types we generate
7128 reload handlers for.
7129 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
7130 (vec_reload_and_plus_<mptrsize>): Likewise.
7132 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
7133 vector forms of the instructions. Move VSX scalar forms to
7134 rs6000.md, and add support for -mupper-regs-sf.
7135 (vsx_floatuns<VSi><mode>2): Likewise.
7136 (vsx_fix_trunc<mode><VSi>2): Likewise.
7137 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7138 (vsx_float_fix_<mode>2): Delete DF version, rename to
7139 vsx_float_fix_v2df2.
7140 (vsx_float_fix_v2df2): Likewise.
7142 2014-11-14 Martin Jambor <mjambor@suse.cz>
7144 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
7145 (ipa_pass_through_data): Removed field type_preserved.
7146 (ipa_ancestor_jf_data): removed fields type and type_preserved.
7147 (ipa_jump_func): Removed field known_type.
7148 (ipa_get_jf_known_type_offset): Removed.
7149 (ipa_get_jf_known_type_base_type): Likewise.
7150 (ipa_get_jf_known_type_component_type): Likewise.
7151 (ipa_get_jf_ancestor_type): Likewise.
7152 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
7153 (ipa_get_jf_pass_through_result): Likewise.
7154 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
7155 (values_equal_for_ipcp_p): Removed BINFO handling.
7156 (ipa_get_indirect_edge_target_1): Updated comment.
7157 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
7158 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
7159 (ipa_set_jf_known_type): Removed.
7160 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
7162 (ipa_set_jf_arith_pass_through): Likewise.
7163 (ipa_set_ancestor_jf): Likewise.
7164 (ipa_binfo_from_known_type_jfunc): Removed.
7165 (prop_type_change_info): Removed fields known_current_type and
7166 multiple_types_encountered.
7167 (extr_type_from_vtbl_ptr_store): Removed.
7168 (check_stmt_for_type_change): Do not attempt to identify changed type.
7169 (detect_type_change_from_memory_writes): Do not set the removed fields,
7170 always set jfunc to unknown.
7171 (compute_complex_assign_jump_func): Do not detect dynamic type change.
7172 (compute_complex_ancestor_jump_func): Likewise.
7173 (compute_known_type_jump_func): Removed.
7174 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
7175 change. Do not comute known type jump functions.
7176 (combine_known_type_and_ancestor_jfs): Removed.
7177 (update_jump_functions_after_inlining): Removed handling of
7178 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
7179 (ipa_write_jump_function): Do not stream removed fields or known type
7181 (ipa_read_jump_function): Likewise.
7183 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
7185 * lra-int.h (lra_create_live_ranges): Add parameter.
7186 * lra-lives.c (temp_bitmap): Move higher.
7187 (initiate_live_solver): Move temp_bitmap initialization into
7188 lra_live_ranges_init.
7189 (finish_live_solver): Move temp_bitmap clearing into
7191 (process_bb_lives): Add parameter. Use it to control live info
7192 update and dead insn elimination. Pass it to mark_regno_live and
7194 (lra_create_live_ranges): Add parameter. Pass it to
7196 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
7197 initiate_live_solver and finish_live_solver.
7198 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
7199 Use temp_bitmap to update avail_cands.
7200 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
7201 check with lra_need_for_spill_p after live range pass. Switch on
7202 rematerialization pass.
7204 2014-11-14 Martin Jambor <mjambor@suse.cz>
7206 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
7207 agg_preserved flag instead.
7208 (ipa_get_jf_ancestor_type_preserved): Likewise.
7209 (ipa_node_params): Rename known_vals to known_csts, update all users.
7210 New field known_contexts.
7211 (ipa_get_indirect_edge_target): Update prototype.
7212 (ipcp_poly_ctx_values_pool): Declare.
7213 (ipa_context_from_jfunc): Likewise.
7214 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
7215 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
7216 parameter newline of method dump.
7217 * ipa-cp.c (ctxlat): New field.
7218 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
7219 (ipcp_poly_ctx_values_pool):New variable.
7220 (ipa_get_poly_ctx_lat): New function.
7221 (print_ipcp_constant_value): New overloaded function for contexts.
7222 (print_all_lattices): Also print contexts.
7223 (ipa_topo_info): New field contexts;
7224 (set_all_contains_variable): Also set the flag in the context lattice.
7225 (initialize_node_lattices): Likewise for flag bottom.
7226 (ipa_get_jf_ancestor_result): Removed BINFO handling.
7227 (ipa_value_from_jfunc): Likewise.
7228 (ipa_context_from_jfunc): New function.
7229 (values_equal_for_ipcp_p): New overloaded function for contexts.
7230 (allocate_and_init_ipcp_value): Construct the value.
7231 (allocate_and_init_ipcp_value): New overloaded function for contexts.
7232 (propagate_scalar_accross_jump_function): Removed handling of
7233 KNOWN_TYPE jump functions.
7234 (propagate_context_accross_jump_function): New function.
7235 (propagate_constants_accross_call): Also propagate contexts.
7236 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
7237 (ipa_get_indirect_edge_target): Likewise.
7238 (devirtualization_time_bonus): Likewise.
7239 (gather_context_independent_values): Create and populate known_contexts
7240 vector rather than known_binfos.
7241 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
7242 (estimate_local_effects): Likewise.
7243 (add_all_node_vals_to_toposort): Also add contexts to teir topological
7245 (ipcp_propagate_stage): Also propagate effects of contexts.
7246 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
7247 ipa_get_indirect_edge_target_1.
7248 (cgraph_edge_brings_value_p): New overloaded function for contexts.
7249 (create_specialized_node): Work on contexts rather than BINFOs.
7250 (find_more_contexts_for_caller_subset): New function.
7251 (known_contexts_useful_p): New function.
7252 (copy_useful_known_contexts): Likewise.
7253 (modify_known_vectors_with_val): Likewise.
7254 (ipcp_val_in_agg_replacements_p): Renamed to
7255 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
7257 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
7258 (decide_about_value): Work on contexts rather than BINFOs.
7259 (decide_whether_version_node): Likewise.
7260 (ipcp_driver): Initialize the new alloc pool.
7261 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
7262 printing of edge contexts.
7263 (ipa_set_ancestor_jf): Replace assert with conditional setting of
7264 type_preserved to false.
7265 (update_jump_functions_after_inlining): Use access function instead of
7266 reading agg_preserved directly. Store combined context in the ancestor
7268 (try_make_edge_direct_virtual_call): Work on contexts rather than
7270 (update_indirect_edges_after_inlining): Get context from
7271 ipa_context_from_jfunc.
7272 (ipa_free_node_params_substructures): Free also known_contexts.
7273 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
7274 (ipa_free_all_structures_after_iinln): Likewise.
7275 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
7276 contexts rather than BINFOs.
7277 (estimate_edge_devirt_benefit): Likewise.
7278 (estimate_edge_size_and_time): Likewise.
7279 (estimate_calls_size_and_time): Likewise.
7280 (estimate_node_size_and_time): Likewise.
7281 (estimate_ipcp_clone_size_and_time): Likewise.
7282 (do_estimate_edge_time): Likewise.
7283 (do_estimate_edge_size): Likewise.
7284 (do_estimate_edge_hints): Likewise.
7285 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
7286 parameter newline, ouput newline only when it is set.
7287 (ipa_polymorphic_call_context::equal_to): New method.
7289 2014-11-14 Martin Jambor <mjambor@suse.cz>
7291 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
7292 users converted to the same specialization as the using class/function
7293 or specialization on tree.
7294 (ipcp_value): Likewise.
7295 (ipcp_lattice): Likewise.
7296 (ipcp_agg_lattice): Now derived from tree specialization of
7298 (values_topo): Moved to new class value_topo_info.
7299 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
7300 Updated all callers.
7301 (print_lattice): Turned into ipcp_lattice::print. Updated all
7303 (value_topo_info): New class template.
7304 (ipa_topo_info): New field constants. New constructor.
7305 (build_toporder_info): Do not clear stack_top, only checkign assert
7307 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
7308 Updated all callers.
7309 (set_lattice_contains_variable): Turned into
7310 ipcp_lattice::set_contains_variable. Updated all callers.
7311 (add_value_source): Turned into ipcp_value::add_source. Updated all
7313 (allocate_and_init_ipcp_value): New function.
7314 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
7315 parameter got default a value. Updated all callers.
7316 (add_scalar_value_to_lattice): Removed, users converted to using
7317 ipcp_lattice::add_value with default value of the last parameter.
7318 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
7320 (propagate_effects): Made method of value_topo_info.
7321 (cgraph_edge_brings_value_p): Now a template function.
7322 (get_info_about_necessary_edges): Likewise.
7323 (gather_edges_for_value): Likewise.
7324 (perhaps_add_new_callers): Likewise.
7325 (decide_about_value): Likewise.
7326 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
7328 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7330 * doc/install.texi (--with-diagnostics-color=): Document.
7332 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
7333 IFN_GOMP_SIMD_LANE without lhs as useless.
7335 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
7336 (varying_state): Add true for can_free.
7337 (check_call): For builtin or internal !nonfreeing_call_p set
7339 (check_stmt): For asm volatile and asm with "memory" set
7341 (analyze_function): Clear local->can_free initially, continue
7342 calling check_stmt until all flags are computed, dump can_free
7344 (pure_const_write_summary): Write can_free flag.
7345 (pure_const_read_summary): Read it back.
7346 (propagate_pure_const): Propagate also can_free flag, set
7347 w->nonfreeing_fn if it is false after propagation.
7348 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
7349 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
7350 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
7351 Also return true for IFN_ABNORMAL_DISPATCHER.
7352 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
7353 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
7354 (input_overwrite_node): Read it back.
7356 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7357 Marek Polacek <polacek@redhat.com>
7359 * sanopt.c: Include tree-ssa-operands.h.
7360 (struct sanopt_info): Add has_freeing_call_p,
7361 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
7362 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
7363 being_visited_p fields.
7364 (struct sanopt_ctx): Add asan_check_map field.
7365 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
7366 maybe_optimize_asan_check_ifn): New functions.
7367 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
7369 (pass_sanopt::execute): Call sanopt_optimize even for
7371 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
7374 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7376 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
7377 'if (extract_scalar_result)' to the only place that it is true.
7379 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
7381 * config.gcc (default_gnu_indirect_function): Set to yes
7382 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
7385 2014-11-14 Felix Yang <felix.yang@huawei.com>
7386 Jiji Jiang <jiangjiji@huawei.com>
7388 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
7389 VALL mode iterator instead of VALLDI.
7391 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
7393 * optc-save-gen.awk: Output cl_target_option_eq,
7394 cl_target_option_hash, cl_target_option_stream_out,
7395 cl_target_option_stream_in functions.
7396 * opth-gen.awk: Output prototypes for
7397 cl_target_option_eq and cl_target_option_hash.
7398 * lto-streamer.h (cl_target_option_stream_out,
7399 cl_target_option_stream_in): Declare.
7400 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
7401 (cl_option_hash_eq): Use cl_target_option_eq.
7402 * tree-streamer-in.c (unpack_value_fields): Stream in
7404 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
7405 DECL_FUNCTION_SPECIFIC_TARGET.
7406 (hash_tree): Hash TREE_TARGET_OPTION; visit
7407 DECL_FUNCTION_SPECIFIC_TARGET.
7408 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
7410 (streamer_write_tree_body): Output TS_TARGET_OPTION.
7412 2014-11-14 Richard Biener <rguenther@suse.de>
7414 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
7415 valueization hook defaulted to no_follow_ssa_edges.
7416 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
7417 2nd valueization hook to gimple_simplify.
7418 * tree-ssa-ccp.c (valueize_op_1): New function to be
7419 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7421 * tree-vrp.c (vrp_valueize_1): New function to be
7422 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
7423 (vrp_visit_assignment_or_call): Adjust.
7425 2014-11-14 Marek Polacek <polacek@redhat.com>
7427 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
7428 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
7429 folding with TYPE_OVERFLOW_SANITIZED.
7431 2014-11-14 Marek Polacek <polacek@redhat.com>
7434 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
7435 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
7436 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
7438 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
7439 instrument BUILT_IN_UNREACHABLE here.
7440 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
7442 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
7443 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
7444 SANITIZE_UNREACHABLE.
7445 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
7446 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
7448 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7450 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
7451 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
7453 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
7455 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
7457 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
7458 vect_create_epilog_for_reduction): Likewise.
7459 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
7461 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7464 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
7465 numerical immediate handling to...
7466 (aarch64_internal_mov_immediate): ...this. New.
7467 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
7468 (aarch64_mov_operand_p): Relax predicate.
7469 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
7470 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
7472 (*movdi_aarch64): Likewise.
7474 2014-11-14 Richard Biener <rguenther@suse.de>
7476 * match.pd: Implement more binary patterns exercised by
7478 * fold-const.c (sing_bit_p): Export.
7479 (exact_inverse): Likewise.
7480 (fold_binary_loc): Remove patterns here.
7481 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7482 * fold-const.h (sing_bit_p): Declare.
7483 (exact_inverse): Likewise.
7485 2014-11-14 Marek Polacek <polacek@redhat.com>
7487 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
7489 2014-11-14 Richard Biener <rguenther@suse.de>
7491 * genmatch.c (add_operator): Allow CONSTRUCTOR.
7492 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
7493 (parser::parse_op): Allow to iterate over predicates.
7495 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7497 * configure.ac (--with-diagnostics-color): New configure
7498 option, default to --with-diagnostics-color=auto.
7499 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
7500 to determine -fdiagnostics-color= option default.
7501 * doc/invoke.texi (-fdiagnostics-color=): Document new
7503 * configure: Regenerated.
7504 * config.in: Regenerated.
7506 2014-11-13 Teresa Johnson <tejohnson@google.com>
7508 PR tree-optimization/63841
7509 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7511 2014-11-14 Bin Cheng <bin.cheng@arm.com>
7513 * timevar.def (TV_SCHED_FUSION): New time var.
7514 * passes.def (pass_sched_fusion): New pass.
7515 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
7516 (extract_base_offset_in_addr, fusion_load_store): New.
7517 (arm_sched_fusion_priority): New.
7518 (arm_option_override): Disable scheduling fusion by default
7519 on non-armv7 processors or ldrd/strd isn't preferred.
7520 * sched-int.h (struct _haifa_insn_data): New field.
7521 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
7522 * sched-rgn.c (rest_of_handle_sched_fusion): New.
7523 (pass_data_sched_fusion, pass_sched_fusion): New.
7524 (make_pass_sched_fusion): New.
7525 * haifa-sched.c (sched_fusion): New.
7526 (insn_cost): Handle sched_fusion.
7527 (priority): Handle sched_fusion by calling target hook.
7528 (enum rfs_decision): New enum value.
7529 (rfs_str): New element for RFS_FUSION.
7530 (rank_for_schedule): Support sched_fusion.
7531 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
7532 (schedule_block, fix_tick_ready): Handle sched_fusion.
7533 * common.opt (flag_schedule_fusion): New.
7534 * tree-pass.h (make_pass_sched_fusion): New.
7535 * target.def (fusion_priority): New.
7536 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
7537 * doc/tm.texi: Regenerated.
7538 * doc/invoke.texi (-fschedule-fusion): New.
7540 2014-11-13 Rong Xu <xur@google.com>
7543 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
7544 footer, instead of unconditionally overwritten.
7546 2014-11-14 Martin Jambor <mjambor@suse.cz>
7548 * cgraph.h (clear_outer_type): Make public. Fix comment.
7549 * ipa-devirt.c (possible_polymorphic_call_targets): Use
7550 clear_outer_type when resetting the context.
7552 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
7555 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
7556 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
7558 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7560 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
7561 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7562 * tree-inline.c (estimate_operator_cost): Likewise.
7563 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
7566 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
7567 against VEC_RSHIFT_EXPR.
7569 * optabs.h (expand_vec_shift_expr): Remove.
7570 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
7571 (expand_vec_shift_expr): Remove.
7572 * tree.def (VEC_RSHIFT_EXPR): Remove
7574 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7576 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
7577 (shift_amt_for_vec_perm_mask): New.
7578 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
7579 and mask appropriate.
7581 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
7582 (have_whole_vector_shift): New.
7583 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
7584 looking for vec_shr_optab.
7585 (vect_create_epilog_for_reduction): Likewise; also rename local variable
7586 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
7587 instead of VEC_RSHIFT_EXPRs.
7589 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
7591 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
7593 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
7594 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
7596 * tree_vec_data_refs.c (vect_permute_load_chain,
7597 vec_permute_store_chain, vec_shift_permute_load_chain): Replace
7598 vect_gen_perm_mask & assert with vect_gen_perm_mask_checked.
7600 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
7602 (vect_gen_perm_mask_checked): New.
7603 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
7604 (vect_gen_perm_mask_any): ...this.
7605 (perm_mask_for_reverse): Call can_vec_perm_p and
7606 vect_gen_perm_mask_checked.
7608 2014-11-13 Felix Yang <felix.yang@huawei.com>
7610 * ipa-utils.h: Fix typo in comments.
7611 * ipa-profile.c: Likewise.
7612 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
7614 2014-11-13 Teresa Johnson <tejohnson@google.com>
7616 PR tree-optimization/63841
7617 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
7619 2014-11-13 Teresa Johnson <tejohnson@google.com>
7621 PR tree-optimization/63841
7622 * tree.c (initializer_zerop): A clobber does not zero initialize.
7624 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7626 * optabs.c (prepare_operand): Gracefully fail if the mode of X
7627 does not match the operand mode expected by the insn pattern.
7629 2014-11-13 Richard Biener <rguenther@suse.de>
7631 * match.pd: Add tcc_comparison, inverted_tcc_comparison
7632 and inverted_tcc_comparison_with_nans operator lists.
7633 Use tcc_comparison in the truth_valued_p predicate definition.
7634 Restrict logical_inverted_value with bit_xor to integral types.
7635 Build a boolean true for simplifying x |^ !x because of
7636 vector types. Implement patterns from forward_propagate_comparison
7637 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
7638 (get_prop_dest_stmt): Likewise.
7639 (pass_forwprop::execute): Do not call it.
7640 * fold-const.c (fold_unary_loc): Remove the pattern here.
7642 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7643 Andrey Turetskiy <andrey.turetskiy@intel.com>
7645 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
7647 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
7648 accelerator compiler.
7649 * config/i386/intelmic-mkoffload.c: New file.
7650 * config/i386/t-intelmic: Ditto.
7652 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7653 Andrey Turetskiy <andrey.turetskiy@intel.com>
7654 Ilya Verbin <ilya.verbin@intel.com>
7656 * common.opt (foffload, foffload-abi): New options.
7657 * config/i386/i386.c (ix86_offload_options): New static function.
7658 (TARGET_OFFLOAD_OPTIONS): Define.
7659 * coretypes.h (enum offload_abi): New enum.
7660 * doc/tm.texi: Regenerate.
7661 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
7662 * gcc.c (offload_targets): New static variable.
7663 (handle_foffload_option): New static function.
7664 (driver_handle_option): Handle OPT_foffload_.
7665 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
7666 according to offload_targets.
7667 * hooks.c (hook_charptr_void_null): New hook.
7668 * hooks.h (hook_charptr_void_null): Declare.
7669 * lto-opts.c: Include lto-section-names.h.
7670 (lto_write_options): Append options from target offload_options hook and
7671 store them to offload_lto section. Do not store target-specific,
7672 driver and diagnostic options in offload_lto section.
7673 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
7675 (append_compiler_options, append_linker_options)
7676 (append_offload_options): New static functions.
7677 (compile_offload_image): Add new arguments with options.
7678 Call append_compiler_options and append_offload_options.
7679 (compile_images_for_offload_targets): Add new arguments with options.
7680 (find_and_merge_options): New static function.
7681 (run_gcc): Outline options handling into the new functions:
7682 find_and_merge_options, append_compiler_options, append_linker_options.
7683 * opts.c (common_handle_option): Don't handle OPT_foffload_.
7684 Forbid OPT_foffload_abi_ for non-offload compiler.
7685 * target.def (offload_options): New target hook.
7687 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7688 Bernd Schmidt <bernds@codesourcery.com>
7689 Andrey Turetskiy <andrey.turetskiy@intel.com>
7690 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7692 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
7693 (process_command): Tweak path construction for the possibility
7694 of being configured as an offload compiler.
7695 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
7696 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
7697 (driver::set_up_specs): Tweak path construction for the possibility of
7698 being configured as an offload compiler.
7699 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
7700 (offload_names, offloadbegin, offloadend): New static variables.
7701 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
7702 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
7703 New static functions.
7704 (run_gcc): Determine whether offload sections are present. If so, run
7705 compile_images_for_offload_targets and return the names of new generated
7706 objects to linker. If there are offload sections, but no LTO sections,
7707 then return the copies of input objects without link-time recompilation.
7709 2014-11-13 Richard Biener <rguenther@suse.de>
7711 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
7713 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7714 Bernd Schmidt <bernds@codesourcery.com>
7715 Andrey Turetskiy <andrey.turetskiy@intel.com>
7716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7718 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
7719 * cgraphunit.c: Include omp-low.h.
7720 * doc/tm.texi: Regenerate.
7721 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
7722 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
7723 * lto-cgraph.c (output_offload_tables): New function.
7724 (input_offload_tables): Likewise.
7725 * lto-section-in.c (lto_section_name): Add "offload_table".
7726 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
7727 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
7728 * lto-streamer-out.c (lto_output): Call output_offload_tables.
7729 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
7730 (output_offload_tables, input_offload_tables): Declare.
7731 * omp-low.c: Include common/common-target.h and lto-section-names.h.
7732 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
7733 (expand_omp_target): Add child_fn into offload_funcs vector.
7734 (add_decls_addresses_to_decl_constructor): New function.
7735 (omp_finish_file): Likewise.
7736 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
7737 * target.def (record_offload_symbol): New DEFHOOK.
7738 * toplev.c: Include omp-low.h.
7739 (compile_file): Call omp_finish_file.
7740 * varpool.c: Include omp-low.h.
7741 (varpool_node::get_create): Add decl into offload_vars vector.
7743 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
7744 Ilya Tocar <ilya.tocar@intel.com>
7745 Andrey Turetskiy <andrey.turetskiy@intel.com>
7746 Bernd Schmidt <bernds@codesourcery.com>
7748 * cgraph.c: Include context.h.
7749 (cgraph_node::create): Set node->offloadable and g->have_offload if
7750 decl have "omp declare target" attribute.
7751 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
7752 * cgraphunit.c: Include lto-section-names.h.
7753 (ipa_passes): Call ipa_write_summaries if there is something to write to
7754 OFFLOAD_SECTION_NAME_PREFIX sections.
7755 (symbol_table::compile): Set flag_generate_lto if there is something to
7757 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
7758 * context.c (gcc::context::context): Initialize have_offload with false.
7759 * context.h (class context): Add have_offload flag.
7760 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
7762 (inline_free_summary): Always remove hooks.
7763 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
7764 from non-offloadable nodes while streaming a node into offload section.
7765 (reachable_from_other_partition_p): Likewise.
7766 (select_what_to_stream): New function.
7767 (compute_ltrans_boundary): Do not call
7768 lto_set_symtab_encoder_in_partition if the node should not be streamed.
7769 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
7770 (section_name_prefix): Declare.
7771 * lto-streamer.c (section_name_prefix): New variable.
7772 (lto_get_section_name): Use section_name_prefix instead of
7773 LTO_SECTION_NAME_PREFIX.
7774 * lto-streamer.h (select_what_to_stream): Declare.
7775 * omp-low.c: Include context.h.
7776 (is_targetreg_ctx): New function.
7777 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
7778 (create_omp_child_function, check_omp_nesting_restrictions): Use new
7779 is_targetreg_ctx function. Replace usage of "omp declare target"
7780 attribute with a cgraph_node flag offloadable.
7781 (expand_omp_target): Set mark_force_output for offloadable functions.
7782 (lower_omp_critical): Set offloadable flag for omp critical symbol.
7783 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
7784 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
7785 if the node should not be streamed out.
7786 * tree-pass.h (ipa_write_summaries): New bool argument.
7787 * varpool.c: Include context.h.
7788 (varpool_node::get_create): Set node->offloadable and g->have_offload if
7789 decl have "omp declare target" attribute.
7791 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7792 Thomas Schwinge <thomas@codesourcery.com>
7793 Ilya Verbin <ilya.verbin@intel.com>
7794 Andrey Turetskiy <andrey.turetskiy@intel.com>
7796 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
7797 (enable_as_accelerator): New variables substituted by configure.
7798 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
7799 being configured as an offload compiler.
7800 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
7802 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
7803 install for the offload compiler.
7804 * config.in: Regenerate.
7805 * configure: Regenerate.
7806 * configure.ac (real_target_noncanonical, accel_dir_suffix)
7807 (enable_as_accelerator): Compute new variables.
7808 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
7809 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7810 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
7811 * doc/install.texi (Options specification): Document
7812 --enable-as-accelerator-for and --enable-offload-targets.
7814 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
7816 PR tree-optimization/63828
7817 * ipa-polymorphic-call.c (possible_placement_new): Check
7818 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
7820 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
7822 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
7823 (REVERSIBLE_CC_MODE): Fix example.
7824 (REVERSE_CONDITION): Fix typo.
7825 * doc/tm.texi: Regenerate.
7827 2014-11-13 Tom de Vries <tom@codesourcery.com>
7829 * omp-low.c (pass_data_expand_omp): Set properties_provided to
7831 (pass_expand_omp::gate): Remove function. Move gate expression to ...
7832 (pass_expand_omp::execute): ... here, as new variable gate. Add early
7833 exit if gate is false.
7834 (pass_data pass_data_expand_omp_ssa): New pass_data.
7835 (class pass_expand_omp_ssa): New pass.
7836 (make_pass_expand_omp_ssa): New function.
7837 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
7838 instead of NEXT_PASS.
7839 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
7840 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
7841 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
7842 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
7843 cfun->omp_expand_needed.
7844 * tree-pass.h: Add define PROP_gimple_eomp.
7845 (make_pass_expand_omp_ssa): Declare.
7847 2014-11-13 Marek Polacek <polacek@redhat.com>
7849 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
7850 * fold-const.c (fold_binary_loc): Use it.
7851 * match.pd: Likewise.
7853 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
7855 * lra-lives.c (struct bb_data): Rename to ...
7856 (struct bb_data_pseudos): ... this.
7857 (initiate_live_solver): Update struct name.
7859 2014-11-13 Richard Biener <rguenther@suse.de>
7861 * match.pd: Implement conditional expression patterns.
7862 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
7864 (combine_cond_exprs): Remove.
7865 (pass_forwprop::execute): Do not call combine_cond_exprs.
7866 * fold-const.c (fold_ternary_loc): Remove patterns here.
7867 (pedantic_omit_one_operand_loc): Remove.
7869 2014-12-13 Richard Biener <rguenther@suse.de>
7872 * match.pd: Implement bswap patterns for transforms checked by
7873 gcc.dg/builtin-bswap-8.c.
7875 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
7877 * lra.c (lra): Switch off rematerialization pass.
7879 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
7881 * common.opt (flra-remat): New.
7882 * opts.c (default_options_table): Add entry for flra_remat.
7883 * timevar_def (TV_LRA_REMAT): New.
7884 * doc/invoke.texi (-flra-remat): Add description of the new
7886 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
7887 lra-saves.c. Add lra-remat.c.
7888 * Makefile.in (OBJS): Add lra-remat.o.
7889 * lra-remat.c: New file.
7890 * lra.c: Add info about the rematerialization pass in the top
7892 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
7893 Process unallocatable regs too.
7894 (lra_constraint_new_insn_uid_start): Remove.
7895 (lra): Add code for calling rematerialization sub-pass.
7896 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
7897 (lra_constrain_insn, lra_remat): New prototypes.
7898 (lra_eliminate_regs_1): Add parameter.
7899 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
7900 Process unallocatable hard regs too.
7901 (process_bb_lives): Ditto.
7902 * lra-spills.c (remove_pseudos): Add argument to
7903 lra_eliminate_regs_1 call.
7904 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
7905 for sp offset calculation.
7906 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
7907 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
7909 (process_insn_for_elimination): Add argument for
7910 eliminate_regs_in_insn call.
7911 * lra-constraints.c (get_equiv_with_elimination): Add argument
7912 for lra_eliminate_regs_1 call.
7913 (process_addr_reg): Add parameter. Use it.
7914 (process_address_1): Ditto. Add argument for process_addr_reg
7916 (process_address): Ditto.
7917 (curr_insn_transform): Add parameter. Use it. Add argument for
7918 process_address calls.
7919 (lra_constrain_insn): New function.
7920 (lra_constraints): Add argument for curr_insn_transform call.
7922 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7924 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
7925 (print_ignored_options): Fix quoting.
7926 * opts.c (common_handle_option): Likewise.
7927 (set_debug_level): Likewise.
7928 * toplev.c (process_options): Likewise.
7930 2014-11-12 Jakub Jelinek <jakub@redhat.com>
7933 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
7934 chain instead of node->indirect_calls. Put !can_throw into
7935 conditions of all the loops.
7937 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
7939 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
7940 set pic_offset_table_rtx.
7942 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
7944 * common/config/mips/mips-common.c (mips_handle_option): Ensure
7945 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
7946 * config.gcc (--with-fp-32): New option.
7947 (--with-odd-spreg-32): Likewise.
7948 * config.in (HAVE_AS_DOT_MODULE): New config define.
7949 * config/mips/mips-protos.h
7950 (mips_secondary_memory_needed): New prototype.
7951 (mips_hard_regno_caller_save_mode): Likewise.
7952 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
7953 (mips_get_arg_info): Assert that V2SFmode is only handled specially
7954 with TARGET_PAIRED_SINGLE_FLOAT.
7955 (mips_return_mode_in_fpr_p): Likewise.
7956 (mips16_call_stub_mode_suffix): Likewise.
7957 (mips_get_reg_raw_mode): New static function.
7958 (mips_return_fpr_pair): O32 return values span two registers.
7959 (mips16_build_call_stub): Likewise.
7960 (mips_function_value_regno_p): Support both FP return registers.
7961 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
7962 specific cases for TARGET_FPXX to move via memory.
7963 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
7964 than UNITS_PER_FPREG 'span' one register.
7965 (mips_dwarf_frame_reg_mode): New static function.
7966 (mips_file_start): Switch to using .module instead of .gnu_attribute.
7967 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
7968 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
7969 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
7970 slots with two CFI directives even for O32 FP64.
7971 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
7972 saving/restoring callee-saved registers.
7973 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
7974 (mips_secondary_memory_needed): New function.
7975 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
7976 odd-numbered single-precision registers when using TARGET_FLOATXX.
7977 Implement -modd-spreg and defaults.
7978 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
7979 callee-saved behaviour.
7980 (mips_hard_regno_caller_save_mode): Implement.
7981 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
7982 (TARGET_GET_RAW_ARG_MODE): Define target hook.
7983 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
7984 * config/mips/mips.h (TARGET_FLOAT32): New macro.
7985 (TARGET_O32_FP64A_ABI): Likewise.
7986 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
7987 _MIPS_SPFPSET builtin define.
7988 (MIPS_FPXX_OPTION_SPEC): New macro.
7989 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
7990 --with-odd-spreg-32=* to -m[no-]odd-spreg.
7991 (ISA_HAS_ODD_SPREG): New macro.
7992 (ISA_HAS_MXHC1): True for anything other than -mfp32.
7993 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
7994 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
7995 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
7996 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7997 (SECONDARY_MEMORY_NEEDED): Likewise.
7998 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
7999 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
8000 FP64A ABI extensions.
8001 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
8003 * config/mips/mips.opt (mfpxx): New target option.
8004 (modd-spreg): Likewise.
8005 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
8006 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
8008 * config/mips/t-mti-elf: Remove fp64 multilib.
8009 * config/mips/t-mti-linux: Likewise.
8010 * configure.ac: Detect .module support.
8011 * configure: Regenerate.
8012 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
8013 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
8016 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
8019 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
8021 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
8022 (x86_output_mi_thunk): Set PIC register to %r11. Call
8023 ix86_init_large_pic_reg to initialize PIC register.
8025 2014-11-12 Kai Tietz <ktietz@redhat.com>
8027 * sdbout.c (sdbout_symbol): Eliminate register only
8028 if decl isn't a global variable.
8030 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
8032 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
8034 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
8035 qualifier_lane_index.
8036 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
8037 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
8038 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
8040 (aarch64_types_getlane_qualifiers): Rename to...
8041 (aarch64_types_binop_imm_qualifiers): ...this.
8042 (TYPES_SHIFTIMM): Follow renaming.
8043 (TYPES_GETLANE): Rename to...
8044 (TYPE_GETREG): ...this.
8046 (aarch64_types_setlane_qualifiers): Rename to...
8047 (aarch64_type_ternop_imm_qualifiers): ...this.
8048 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
8049 (TYPES_SETLANE): Follow renaming above, and rename self to...
8050 (TYPE_SETREG): ...this.
8052 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
8053 (aarch64_simd_expand_args): Add range check and endianness-flip.
8055 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
8057 * config/aarch64/aarch64-simd.md
8058 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
8059 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
8060 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
8062 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
8063 (aarch64_sq<r>dmulh_lane<mode>): ...this.
8065 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
8066 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
8068 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
8069 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
8071 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
8072 (aarch64_sqdmull_lane<mode>): ...this.
8074 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
8075 (aarch64_sqdmull_laneq<mode>): ...this.
8077 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
8078 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
8079 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
8080 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
8082 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
8083 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
8084 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
8085 bounds check and lane flip.
8087 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
8088 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
8089 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
8091 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
8092 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
8093 renaming of TERNOP_LANE to QUADOP_LANE.
8095 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
8096 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
8097 qualifiers to TERNOP_LANE.
8099 2014-11-12 Tobias Burnus <burnus@net-b.de>
8101 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
8102 * configure.ac: Ditto.
8103 * graphite-interchange.c: Remove HAVE_CLOOG block.
8104 * config.in: Regenerate.
8105 * configure: Regenerate.
8107 2014-11-12 Jiong Wang <jiong.wang@arm.com>
8109 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
8111 (EPILOGUE_USES): Guard the check by epilogue_completed.
8112 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
8114 (aarch64_can_eliminate): Check LR_REGNUM liveness.
8116 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8118 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
8120 2014-11-12 Marek Polacek <polacek@redhat.com>
8122 * fold-const.c (fold_binary_loc): Don't fold if the result
8124 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
8125 -(-A) -> A): Likewise.
8127 2014-11-12 Richard Biener <rguenther@suse.de>
8129 Merge from match-and-simplify branch
8130 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8132 * genmatch.c (user_id): Add new member is_oper_list.
8133 (user_id::user_id): Add new default argument.
8134 (parser::parse_operator_list): New function.
8135 (parser::parse_for): Allow operator-list.
8136 (parser::parse_pattern): Call parser::parse_operator_list.
8137 (parser::parse_operation): Reject operator-list.
8138 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
8140 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8142 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
8144 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8146 * genmatch.c (parser::parse_op): Check if predicate is used in
8149 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8151 * genmatch.c (parser::parse_for): Make sure to have a valid
8152 token to report errors at.
8154 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8156 * genmatch.c (parser): Add new member parsing_match_operand.
8157 (parser::parse_operation): Check for conditional convert in result
8159 (parser::parse_expr): Check for commutative operator in result operand.
8160 Check for :type in match operand.
8161 (parser::parse_simplify): Set/unset parsing_match_operand.
8162 (parser::parser): Initialize parsing_match_operand.
8164 2014-10-28 Richard Biener <rguenther@suse.de>
8166 * genmatch.c (parser::parse_for): Properly check for already
8169 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8171 * genmatch.c (error_cb): Adjust for printing warnings.
8172 (warning_at): New function.
8173 (user_id): Add new member used.
8174 (get_operator): Mark user_id as used.
8175 (parse_for): Warn for unused operators.
8177 2014-11-12 Richard Biener <rguenther@suse.de>
8179 * match.pd: Implement simple complex operations cancelling.
8180 * fold-const.c (fold_unary_loc): Remove them here.
8182 2014-11-12 Joseph Myers <joseph@codesourcery.com>
8184 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
8185 Define __NO_MATH_ERRNO__ if -fno-math-errno.
8186 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
8188 2014-11-12 Richard Biener <rguenther@suse.de>
8190 * genmatch.c (::gen_transform): Add capture_info and
8191 expand_compares arguments.
8192 (struct expr): Add is_generic flag.
8193 (lower_cond): New functions lowering [VEC_]COND_EXPR
8194 conditions to a GENERIC and a GIMPLE variant.
8195 (lower): Call lower_cond.
8196 (cmp_operand): Also compare the is_generic flag.
8197 (capture_info::cinfo): Add cond_expr_cond_p flag.
8198 (capture_info::capture_info): Pass down whether the
8199 expression argument is a COND_EXPR condition.
8200 (capture_info::walk_match): Likewise, mark captures
8201 capturing COND_EXPR conditions with cond_expr_cond_p.
8202 (expr::gen_transform): Pass down whether we need to
8203 expand compares from COND_EXPR conditions.
8204 (capture::gen_transform): Expand compares substituted
8205 from COND_EXPR conditions into non-COND_EXPR conditions.
8206 (dt_operand::gen_gimple_expr): Handle explicitely marked
8207 GENERIC expressions as generic.
8208 (dt_simplify::gen): Pass whether we need to expand
8209 conditions to gen_transform. Handle capture results
8210 which are from COND_EXPR conditions.
8211 (main): Pass gimple flag down to lower.
8213 2014-11-12 Jakub Jelinek <jakub@redhat.com>
8216 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
8217 * builtins.c (fold_builtin_arith_overflow): New function.
8218 (fold_builtin_3): Use it.
8219 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
8220 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
8221 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
8222 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
8223 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
8224 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
8225 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
8226 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
8227 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
8228 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
8229 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
8230 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
8231 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
8232 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
8233 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
8234 * expr.c (write_complex_part): Remove prototype, no longer static.
8235 * expr.h (write_complex_part): New prototype.
8236 * function.c (aggregate_value_p): For internal functions return 0.
8237 * gimple-fold.c (arith_overflowed_p): New functions.
8238 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
8239 * gimple-fold.h (arith_overflowed_p): New prototype.
8240 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
8241 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
8243 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
8244 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
8246 * gimplify.c (gimplify_call_expr): Handle gimplification of
8247 internal calls with lhs.
8248 * internal-fn.c (get_range_pos_neg, get_min_precision,
8249 expand_arith_overflow_result_store): New functions.
8250 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
8251 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8252 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8253 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
8254 (ubsan_expand_si_overflow_neg_check): Renamed to ...
8255 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
8256 arguments, remove STMT argument. Handle SUB_OVERFLOW with
8257 0 as first argument expansion.
8258 (ubsan_expand_si_overflow_mul_check): Renamed to ...
8259 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
8260 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
8261 Handle MUL_OVERFLOW expansion.
8262 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
8264 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
8265 expand_neg_overflow, prepare arguments for it.
8266 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
8268 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
8269 expand_MUL_OVERFLOW): New functions.
8270 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
8272 * tree-vrp.c (check_for_binary_op_overflow): New function.
8273 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
8274 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
8275 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
8277 * optabs.def (umulv4_optab): New optab.
8278 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
8279 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
8280 * doc/extend.texi (Integer Overflow Builtins): Document
8281 __builtin_*_overflow.
8283 2014-11-12 Richard Biener <rguenther@suse.de>
8285 * genmatch.c (capture_info::capture_info): Add missing
8287 (capture_info::walk_match): Fix COND_EXPR handling.
8288 (capture_info::walk_result): Likewise.
8290 2014-11-12 Richard Biener <rguenther@suse.de>
8293 * match.pd: Add missing conversion to the -(T)-X pattern.
8295 2014-11-12 Richard Biener <rguenther@suse.de>
8298 * hash-table.h: Include ggc.h also for generator programs.
8299 * genmatch.c (ggc_internal_cleared_alloc): Properly define
8300 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
8302 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8304 PR tree-optimization/63761
8305 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
8306 rather than taking it as a parameter. Add some comments to explain the
8307 gsi_move_before in case of load and why canonicalization of bswap into
8308 a rotation is only done for 16bit values.
8309 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
8310 refer to the statement just before cur_stmt. Ignore 16bit bswap that
8311 are already in canonical form. Adapt bswap_replace to removal of its
8314 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
8316 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
8317 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
8318 (for_each_rtx_in_insn): Delete.
8319 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
8320 * df-core.c: Remove reference to for_each_rtx in comment.
8322 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
8324 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
8325 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
8326 * doc/aarch64-acle-intrinsics.texi: Remove.
8327 * doc/arm-acle-intrinsics.texi: Remove.
8328 * doc/arm-neon-intrinsics.texi: Remove.
8329 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
8330 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
8331 Extension section. Add references to public ACLE specification.
8333 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
8335 * tree-vrp.c (register_edge_assert_for_2): Change return type to
8336 void and adjust accordingly.
8337 (register_edge_assert_for_1): Likewise.
8338 (register_edge_assert_for): Likewise.
8339 (find_conditional_asserts): Likewise.
8340 (find_switch_asserts): Likewise.
8341 (find_assert_locations_1): Likewise.
8342 (find_assert_locations): Likewise.
8343 (insert_range_insertions): Inspect the need_assert_for bitmap.
8345 2014-11-11 Andrew Pinski <apinski@cavium.com>
8348 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
8350 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
8351 at the end of the file.
8353 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
8354 Manuel López-Ibáñez <manu@gcc.gnu.org>
8357 * diagnostic-core.h: Add prototype for fatal_error.
8358 * diagnostic.c (fatal_error): New function fatal_error.
8359 * gcc.c (store_arg): Remove have_o_argbuf_index.
8360 (process_command): Check if input and output files are the same.
8361 * toplev.c (init_asm_output): Check if input and output files are
8364 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8366 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
8368 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
8371 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
8372 smaller than 8 bytes.
8373 (sparc_function_arg_1): Tweak.
8374 (sparc_function_value_1): Tweak.
8376 2014-11-11 David Malcolm <dmalcolm@redhat.com>
8378 * ChangeLog.jit: New.
8379 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
8380 sphinx is installed, falling back to "texinfo" otherwise.
8381 (FULL_DRIVER_NAME): New variable, adapted from the
8382 install-driver target. New target, a symlink within the builddir,
8383 linked to "xgcc", for use when running the JIT library from the
8385 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
8386 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
8388 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
8389 sphinx is installed, falling back to "texinfo" otherwise.
8390 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
8391 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
8392 * configure: Regenerate.
8393 * doc/install.texi (--enable-host-shared): Specify that this is
8394 required when building libgccjit.
8395 (Tools/packages necessary for modifying GCC): Add Sphinx.
8396 * timevar.def (TV_JIT_REPLAY): New.
8401 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8404 * configure: Regenerate.
8406 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
8408 * config/aarch64/aarch64-simd.md
8409 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
8410 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
8411 are punning between float vectors and integer vectors.
8413 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8415 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
8416 open-coded swap with std::swap to swap values.
8417 (alpha_emit_setcc): Ditto.
8418 (alpha_emit_conditional_move): Ditto.
8419 (alpha_split_tmode_pair): Ditto.
8421 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
8423 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
8424 permutations on power of 2 cases.
8426 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8428 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
8429 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
8431 2014-11-11 Richard Biener <rguenther@suse.de>
8433 * tree-core.h (pedantic_lvalues): Remove.
8434 * fold-const.c (pedantic_lvalues): Likewise.
8435 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
8437 2014-11-11 Martin Liska <mliska@suse.cz>
8441 * ipa-icf.c (sem_function::merge): Add new target symbol alias
8443 (sem_variable::merge): Likewise.
8444 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
8446 2014-11-11 Richard Biener <rguenther@suse.de>
8448 * match.pd: Implement patterns from associate_plusminus
8449 and factor in differences from the fold-const.c implementation.
8450 * fold-const.c (fold_binary_loc): Remove patterns here.
8451 * tree-ssa-forwprop.c (associate_plusminus): Remove.
8452 (pass_forwprop::execute): Don't call it.
8453 * tree.c (tree_nop_conversion_p): New function, factored
8454 from tree_nop_conversion.
8455 * tree.h (tree_nop_conversion_p): Declare.
8457 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8459 * system.h: Include algorithm and utility.
8460 * rtl.h: Do not include utility here.
8461 * wide-int.h: Ditto.
8462 * tree-vect-data-refs.c (swap): Remove template.
8463 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
8465 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8469 * system.h: Include <string> before "safe-ctype.h"
8470 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
8471 calls to min/max with wi namespace.
8472 * ipa-chkp.c: Don't include <string>.
8474 2014-11-11 Terry Guo <terry.guo@arm.com>
8476 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
8477 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
8479 (*thumb1_movhf): Likewise.
8481 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8483 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
8484 instead of INT64_MAX.
8486 2014-11-11 Tobias Burnus <burnus@net-b.de>
8488 * doc/install.texi (Prerequisites): Remove CLooG.
8490 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
8492 * ipa-inline.c (edge_badness): Adjust.
8493 (inline_small_functions): Likewise.
8494 * predict.c (propagate_freq): Likewise.
8495 (estimate_bb_frequencies): Likewise.
8496 * sreal.c (sreal::dump): Rename from dump_sreal.
8498 (copy): Remove function.
8499 (sreal::shift_right): Rename from sreal_sift_right.
8500 (sreal::normalize): Rename from normalize.
8501 (sreal_init): Remove function.
8502 (sreal::to_int): Rename from sreal_to_int.
8503 (sreal_compare): Remove function.
8504 (sreal::operator+): Rename from sreal_add.
8505 (sreal::operator-): Rename from sreal_sub.
8506 (sreal::operator*): Rename from sreal_mul.
8507 (sreal::operator/): Rename from sreal_div.
8508 * sreal.h (class sreal): Adjust.
8509 (inline sreal &operator+=): New operator.
8510 (inline sreal &operator-=): Likewise.
8511 (inline sreal &operator/=): Likewise.
8512 (inline sreal &operator*=): Likewise.
8513 (inline bool operator!=): Likewise.
8514 (inline bool operator>): Likewise.
8515 (inline bool operator<=): Likewise.
8516 (inline bool operator>=): Likewise.
8518 2014-11-11 Bin Cheng <bin.cheng@arm.com>
8520 * sched-deps.c (sched_analyze_1): Check pending list if it is not
8521 less than MAX_PENDING_LIST_LENGTH.
8522 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
8524 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8526 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
8527 swap with std::swap to swap values.
8528 (ix86_fixup_binary_operands): Ditto.
8529 (ix86_binary_operator_ok): Ditto.
8530 (ix86_prepare_fp_compare_args): Ditto.
8531 (ix86_expand_branch): Ditto.
8532 (ix86_expand_carry_flag_compare): Ditto.
8533 (ix86_expand_int_movcc): Ditto.
8534 (ix86_prepare_sse_fp_compare_args): Ditto.
8535 (ix86_expand_sse_fp_minmax): Ditto.
8536 (ix86_expand_int_vcond): Ditto.
8537 (ix86_split_long_move): Ditto.
8538 (ix86_expand_sse_comi): Ditto.
8539 (ix86_expand_sse_compare_and_jump): Ditto.
8540 (ix86_expand_sse_compare_mask): Ditto.
8541 * config/i386/i386.md (*add<mode>_1): Ditto.
8542 (addsi_1_zext): Ditto.
8545 (*add<mode>_2): Ditto.
8546 (*addsi_2_zext): Ditto.
8547 (*add<mode>_3): Ditto.
8548 (*addsi_3_zext): Ditto.
8549 (*add<mode>_5): Ditto.
8550 (absneg splitter): Ditto.
8552 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
8555 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
8558 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
8559 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
8560 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
8561 be reloaded through memory.
8565 2014-11-11 Jakub Jelinek <jakub@redhat.com>
8566 Martin Liska <mliska@suse.cz>
8568 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
8569 (func_checker::compare_gimple_call): Compare gimple_call_fn,
8570 gimple_call_chain, gimple_call_fntype and call flags.
8572 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
8574 PR rtl-optimization/63620
8575 PR rtl-optimization/63799
8576 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
8577 and setting PIC pseudo insns.
8578 (lra_create_live_ranges): Fix the typo.
8580 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
8583 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
8584 SSA copies whose source and destination names both occur in
8587 2014-11-10 Roman Gareev <gareevroman@gmail.com>
8589 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
8590 * common.opt: Remove using of fgraphite-code-generator flag.
8591 * flag-types.h: Likewise.
8592 * graphite.c: Remove using of CLooG.
8593 * graphite-blocking.c: Likewise.
8594 * graphite-dependences.c: Likewise.
8595 * graphite-poly.c: Likewise.
8596 * graphite-poly.h: Likewise.
8597 * graphite-scop-detection.c: Likewise.
8598 * graphite-sese-to-poly.c: Likewise.
8599 * graphite-clast-to-gimple.c: Removed.
8600 * graphite-clast-to-gimple.h: Likewise.
8601 * graphite-htab.h: Likewise.
8603 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
8605 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
8608 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8610 * config/frv/frv.c (frv_io_handle_use_1): Delete.
8611 (frv_io_handle_use): Use find_all_hard_regs.
8613 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8615 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
8616 than an rtx *. Take the regstate_t directly rather than via a void *.
8617 Return a bool rather than an int. Iterate over all subrtxes here.
8618 (frv_registers_conflict_p): Update accordingly.
8620 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8622 * config/frv/frv.c: Include rtl-iter.h.
8623 (frv_acc_group_1): Delete.
8624 (frv_acc_group): Use FOR_EACH_SUBRTX.
8626 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
8628 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
8629 (frv_clear_registers_used): Delete.
8630 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
8632 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
8635 * calls.c (initialize_argument_information): When emitting thunk call
8636 use original memory placement of the argument.
8638 2014-11-10 Renlin Li <renlin.li@arm.com>
8641 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
8643 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
8645 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
8646 bswaphi if available.
8648 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
8650 * config/nvptx/nvptx.c: New file.
8651 * config/nvptx/nvptx.h: New file.
8652 * config/nvptx/nvptx-protos.h: New file.
8653 * config/nvptx/nvptx.md: New file.
8654 * config/nvptx/t-nvptx: New file.
8655 * config/nvptx/nvptx.opt: New file.
8656 * common/config/nvptx/nvptx-common.c: New file.
8657 * config.gcc: Handle nvptx-*-*.
8659 2014-11-10 Richard Biener <rguenther@suse.de>
8661 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
8662 released operands on the free list.
8664 2014-11-10 Richard Biener <rguenther@suse.de>
8666 * match.pd: Implement pattern from simplify_mult.
8667 * tree-ssa-forwprop.c (simplify_mult): Remove.
8668 (pass_forwprop::execute): Do not call simplify_mult.
8670 2014-11-10 Richard Biener <rguenther@suse.de>
8672 PR tree-optimization/63800
8673 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
8674 we can restore the previous availability in after_dom_children.
8675 (eliminate_dom_walker::after_dom_children): Restore
8676 previous availability.
8678 2014-11-10 Richard Biener <rguenther@suse.de>
8681 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
8682 properly treat the embedded multiplication as commutative
8683 when looking for feeding negates.
8685 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
8687 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
8689 2014-11-10 Martin Liska <mliska@suse.cz>
8691 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
8692 for the test because of default char signedness
8693 on powerpc64 target.
8695 2014-11-10 Richard Biener <rguenther@suse.de>
8697 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
8698 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
8699 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
8701 2014-11-10 Richard Biener <rguenther@suse.de>
8703 * match.pd: Move rest of the conversion combining patterns
8704 from tree-ssa-forwprop.c.
8705 * tree-ssa-forwprop.c (combine_conversions): Remove.
8706 (pass_forwprop::execute): Do not call it.
8708 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
8710 * gimple-low.c (lower_function_body): Clear the location of the first
8711 inserted representative return if it also fills in for the fallthru.
8713 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
8715 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
8716 that bb is always executed to early exit. Use predicate of
8717 cd-equivalent block for join blocks if it exists.
8718 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
8719 (tree_if_conversion): Free post-dominance information.
8721 2014-11-09 Jason Merrill <jason@redhat.com>
8723 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
8724 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
8725 (_mm_mask_cvtusepi32_storeu_epi16)
8726 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
8728 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
8730 * config/avr/predicates.md (low_io_address_operand): Fix typo.
8732 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
8734 PR rtl-optimization/63620
8735 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
8736 name. Move to lra.c. Make it external.
8737 (substitute_pseudo_within_insn): Ditto.
8738 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
8740 (undo_optional_reloads): Ditto.
8741 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
8743 (lra_substitute_pseudo_within_insn): Ditto.
8744 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
8745 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
8746 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
8748 (struct bb_data, bb_data_t, bb_data): New.
8749 (get_bb_data, get_bb_data_by_index): Ditto.
8750 (all_hard_regs_bitmap): New.
8751 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
8752 (initiate_live_solver, finish_live_solver): New.
8753 (process_bb_lives): Change return type. Add code updating local
8754 live data and removing dead insns. Pass new argument to
8755 mark_regno_live and mark_regno_dead. Check changing bb pseudo
8756 life info. Return the result.
8757 (lra_create_live_ranges): Add code to do global pseudo live
8759 (lra_live_ranges_init): Call initiate_live_solver.
8760 (lra_live_ranges_finish): Call finish_live_solver.
8761 * lra.c (lra_dump_bitmap_with_title): New.
8762 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
8763 from lra-constraints.c.
8765 2014-11-09 Richard Biener <rguenther@suse.de>
8767 * match.pd: Add patterns convering two conversions in a row
8769 * fold-const.c (fold_unary_loc): Remove them here.
8770 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8771 * genmatch.c (dt_node::gen_kids): Check whether we may
8772 follow SSA use-def chains.
8774 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8776 * config/aarch64/aarch64.c: Include rtl-iter.h.
8777 (aarch64_tls_operand_p_1): Delete.
8778 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
8780 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8782 * config/arm/arm.c (arm_note_pic_base): Delete.
8783 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
8785 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8787 * config/arm/arm.c: Include rtl-iter.h.
8788 (arm_tls_referenced_p_1): Delete.
8789 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
8791 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
8793 * config/arm/aarch-common.c: Include rtl-iter.h.
8794 (search_term, arm_find_sub_rtx_with_search_term): Delete.
8795 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
8796 (arm_get_set_operands): Pass the insn pattern rather than the
8798 (arm_no_early_store_addr_dep): Likewise.
8800 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
8802 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
8804 (thumb_set_return_address): Likewise.
8806 2014-11-07 Jeff Law <law@redhat.com>
8808 PR tree-optimization/61515
8809 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
8810 stack rather than looking at every SSA_NAME's value.
8812 2014-11-07 Richard Biener <rguenther@suse.de>
8814 PR tree-optimization/63605
8815 * fold-const.c (fold_binary_loc): Properly use element_precision
8816 for types that may not be scalar.
8818 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
8821 * config/i386/i386.md (builtin_setjmp_receiver): Use
8822 pic_offset_table_rtx for PIC register.
8823 (nonlocal_goto_receiver): Delete.
8825 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
8827 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
8828 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
8830 2014-11-07 Martin Liska <mliska@suse.cz>
8833 * cgraphunit.c (cgraph_node::create_wrapper):
8834 TREE_ADDRESSABLE is set to false for a newly created thunk.
8836 2014-11-07 Martin Liska <mliska@suse.cz>
8839 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
8840 Missing checking for CASE_LOW and CASE_HIGH added.
8842 2014-11-07 Martin Liska <mliska@suse.cz>
8845 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
8846 is correctly handled for thunks created by IPA ICF.
8848 2014-11-07 Jiong Wang <jiong.wang@arm.com>
8849 2014-11-07 Richard Biener <rguenther@suse.de>
8851 PR tree-optimization/63676
8852 * gimple-fold.c (fold_gimple_assign): Do not fold node when
8853 TREE_CLOBBER_P be true.
8855 2014-11-07 Richard Biener <rguenther@suse.de>
8858 * match.pd: Guard conflicting GENERIC pattern properly.
8860 2014-11-07 Richard Biener <rguenther@suse.de>
8862 * match.pd: Add patterns for POINTER_PLUS_EXPR association
8863 and special patterns from tree-ssa-forwprop.c
8864 * fold-const.c (fold_binary_loc): Remove them here.
8865 * tree-ssa-forwprop.c (to_purge): New global bitmap.
8866 (fwprop_set_lattice_val): New function.
8867 (fwprop_invalidate_lattice): Likewise.
8868 (remove_prop_source_from_use): Instead of purging dead EH
8869 edges record blocks to do that in to_purge.
8870 (tidy_after_forward_propagate_addr): Likewise.
8871 (forward_propagate_addr_expr): Invalidate the lattice for
8872 SSA names we release.
8873 (simplify_conversion_from_bitmask): Likewise.
8874 (simplify_builtin_call): Likewise.
8875 (associate_pointerplus_align): Remove.
8876 (associate_pointerplus_diff): Likewise.
8877 (associate_pointerplus): Likewise.
8878 (fold_all_stmts): Merge with ...
8879 (pass_forwprop::execute): ... the original loop over all
8880 basic-blocks. Delay purging dead EH edges and invalidate
8881 the lattice for SSA names we release.
8883 2014-11-07 Terry Guo <terry.guo@arm.com>
8885 * config/arm/arm.opt (masm-syntax-unified): New option.
8886 * doc/invoke.texi (-masm-syntax-unified): Document new option.
8887 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
8888 (ASM_APP_ON): Redefined.
8889 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
8890 code always use UAL syntax.
8891 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
8892 * config/arm/thumb1.md: Likewise.
8894 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
8896 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
8897 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
8900 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
8902 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
8903 Set default_mips_arch and default_mips_abi instead of tm_defines.
8904 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
8906 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
8907 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
8908 based on MIPS_ABI_DEFAULT.
8909 (STANDARD_STARTFILE_PREFIX_2): Ditto.
8911 2014-11-06 Joseph Myers <joseph@codesourcery.com>
8913 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
8914 cases of extended identifiers.
8916 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
8918 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
8920 2014-11-06 DJ Delorie <dj@redhat.com>
8922 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
8924 (movhicc_<code>_<mode>): Likewise.
8925 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
8927 (m32c_eh_return_data_regno): Change to using memregs to avoid
8928 tying up all the compute regs.
8929 (m32c_legitimate_address_p) Subregs are not valid addresses.
8931 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
8933 * function.c (thread_prologue_and_epilogue_insns): No longer static.
8934 * function.h (thread_prologue_and_epilogue_insns): Declare.
8936 * target.def (assemble_undefined_decl): New hooks.
8937 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
8938 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
8939 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
8940 * doc/tm.texi: Regenerate.
8941 * output.h (assemble_undefined_decl): Declare.
8942 (get_fnname_from_decl): Declare.
8943 * varasm.c (assemble_undefined_decl): New function.
8944 (get_fnname_from_decl): New function.
8945 * final.c (rest_of_handle_final): Use it.
8946 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
8947 for nodes without a definition.
8949 * target.def (call_args, end_call_args): New hooks.
8950 * hooks.c (hook_void_rtx_tree): New empty function.
8951 * hooks.h (hook_void_rtx_tree): Declare.
8952 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
8953 * doc/tm.texi: Regenerate.
8954 * calls.c (expand_call): Slightly rearrange the code. Use the two new
8956 (expand_library_call_value_1): Use the two new hooks.
8958 * expr.c (use_reg_mode): Just return for pseudo registers.
8960 * combine.c (try_combine): Don't allow a call as one of the source
8963 * target.def (decl_end): New hook.
8964 * varasm.c (assemble_variable_contents, assemble_constant_contents):
8966 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
8967 * doc/tm.texi: Regenerate.
8969 2014-11-06 Renlin Li <renlin.li@arm.com>
8971 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
8972 (processor): New architecture_version field.
8973 (aarch64_override_options): Initialize aarch64_architecture_version.
8974 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
8975 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
8977 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
8979 * params.def (sra-max-scalarization-size-Ospeed): New.
8980 (sra-max-scalarization-size-Osize): Likewise.
8981 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
8982 (sra-max-scalarization-size-Osize): Likewise.
8983 * toplev.c (process_options): Set default values for new
8985 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
8986 * targhooks.c (get_move_ratio): Remove static designator.
8987 * target.h (get_move_ratio): Declare.
8989 2014-11-06 Marek Polacek <polacek@redhat.com>
8991 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
8992 Remove vector limit.
8994 2014-11-06 Richard Biener <rguenther@suse.de>
8996 * match.pd: Implement bitwise binary and unary simplifications
8997 from tree-ssa-forwprop.c.
8998 * fold-const.c (fold_unary_loc): Remove them here.
8999 (fold_binary_loc): Likewise.
9000 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
9001 (truth_valued_ssa_name): Likewise.
9002 (lookup_logical_inverted_value): Likewise.
9003 (simplify_bitwise_binary_1): Likewise.
9004 (hoist_conversion_for_bitop_p): Likewise.
9005 (simplify_bitwise_binary_boolean): Likewise.
9006 (simplify_bitwise_binary): Likewise.
9007 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
9008 and simplify_bitwise_binary.
9009 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
9010 (decision_tree::insert): Also insert non-expressions.
9012 2014-11-06 Hale Wang <hale.wang@arm.com>
9014 * config/arm/arm-cores.def: Add support for
9015 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9016 cortex-m1.small-multiply.
9017 * config/arm/arm-tables.opt: Regenerate.
9018 * config/arm/arm-tune.md: Regenerate.
9019 * config/arm/arm.c: Update the rtx-costs for MUL.
9020 * config/arm/bpabi.h: Handle
9021 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9022 cortex-m1.small-multiply.
9023 * doc/invoke.texi: Document
9024 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
9025 cortex-m1.small-multiply.
9027 2014-11-06 Hale Wang <hale.wang@arm.com>
9029 * config/arm/arm.c: Add cortex-m7 tune.
9030 * config/arm/arm-cores.def: Use cortex-m7 tune.
9032 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
9035 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
9036 (ix86_encode_section_info): Do not check for non-automatic varibles
9037 when setting SYMBOL_FLAG_FAR_ADDR flag.
9038 (x86_64_elf_select_section): Do not check ix86_cmodel here.
9039 (x86_64_elf_unique_section): Ditto.
9040 (x86_elf_aligned_common): Emit tab before .largecomm.
9042 2014-11-05 Joseph Myers <joseph@codesourcery.com>
9044 PR preprocessor/9449
9045 * doc/cpp.texi (Character sets, Tokenization)
9046 (Implementation-defined behavior): Don't refer to UCNs in
9047 identifiers requiring -fextended-identifiers.
9048 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
9049 by default for C99 and later and C++.
9050 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
9051 identifiers needing -fextended-identifiers.
9053 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
9055 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
9056 for 512-bit wide modes.
9057 (expand_vec_perm_1): Use correct versions of patterns.
9058 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
9059 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
9061 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
9067 * tree-chkp-opt.c: New.
9070 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
9072 (GTFILES): Add tree-chkp.c.
9073 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9074 * tree.def (POINTER_BOUNDS_TYPE): New.
9075 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9076 (POINTER_BOUNDS_MODE): New.
9077 (make_pointer_bounds_mode): New.
9078 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9079 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9080 (layout_type): Support POINTER_BOUNDS_TYPE.
9081 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9082 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
9083 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9084 (type_contains_placeholder_1): Likewise.
9085 (build_common_tree_nodes): Initialize
9086 pointer_bounds_type_node.
9087 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9088 (pointer_bounds_type_node): New.
9089 (POINTER_BOUNDS_P): New.
9090 (BOUNDED_TYPE_P): New.
9092 (CALL_WITH_BOUNDS_P): New.
9093 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
9094 (gimple_call_with_bounds_p): New.
9095 (gimple_call_set_with_bounds): New.
9096 (gimple_return_retbnd): New.
9097 (gimple_return_set_retbnd): New
9098 * gimple.c (gimple_build_return): Increase number of ops
9099 for return statement.
9100 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
9102 * gimple-pretty-print.c (dump_gimple_return): Print second op.
9103 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
9104 * gimplify.c (gimplify_init_constructor): Avoid infinite
9105 loop during gimplification of bounds initializer.
9106 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
9107 (special_function_p): Use original decl name when analyzing
9108 instrumentation clone.
9109 (arg_data): Add fields special_slot, pointer_arg and
9111 (store_bounds): New.
9112 (emit_call_1): Propagate instrumentation flag for CALL.
9113 (initialize_argument_information): Compute pointer_arg,
9114 pointer_offset and special_slot for pointer bounds arguments.
9115 (finalize_must_preallocate): Preallocate when storing bounds
9117 (compute_argument_addresses): Skip pointer bounds.
9118 (expand_call): Store bounds into tables separately. Return
9119 result joined with resulting bounds.
9120 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
9121 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
9122 (expand_return): Add returned bounds arg. Handle returned bounds.
9123 (expand_gimple_stmt_1): Adjust to new expand_return signature.
9124 (gimple_expand_cfg): Reset rtx bounds map.
9125 * expr.c: Include tree-chkp.h, rtl-chkp.h.
9126 (expand_assignment): Handle returned bounds.
9127 (store_expr_with_bounds): New. Replaces store_expr with new bounds
9128 target argument. Handle bounds returned by calls.
9129 (store_expr): Now wraps store_expr_with_bounds.
9130 * expr.h (store_expr_with_bounds): New.
9131 * function.c: Include tree-chkp.h, rtl-chkp.h.
9132 (bounds_parm_data): New.
9133 (use_register_for_decl): Do not registerize decls used for bounds
9135 (assign_parms_augmented_arg_list): Add bounds of the result
9136 structure pointer as the second argument.
9137 (assign_parm_find_entry_rtl): Mark bounds are never passed on
9139 (assign_parm_is_stack_parm): Likewise.
9140 (assign_parm_load_bounds): New.
9141 (assign_bounds): New.
9142 (assign_parms): Load bounds and determine a location for
9144 (diddle_return_value_1): New.
9145 (diddle_return_value): Handle returned bounds.
9146 * function.h (rtl_data): Add field for returned bounds.
9147 * varasm.c: Include tree-chkp.h.
9148 (output_constant): Support POINTER_BOUNDS_TYPE.
9149 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
9150 (ultimate_transparent_alias_target): Move up.
9151 (make_decl_rtl): For instrumented function use
9152 name of the original decl.
9153 (assemble_start_function): Mark function as global
9154 in case it is instrumentation clone of the global
9156 (do_assemble_alias): Follow transparent alias chain
9157 for identifier. Check if original alias is public.
9158 (maybe_assemble_visibility): Use visibility of the
9159 original function for instrumented version.
9160 (default_unique_section): Likewise.
9161 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
9162 (init_emit_once): Build pointer bounds zero constants.
9163 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
9164 * target.def (builtin_chkp_function): New.
9165 (chkp_bound_type): New.
9166 (chkp_bound_mode): New.
9167 (chkp_make_bounds_constant): New.
9168 (chkp_initialize_bounds): New.
9169 (load_bounds_for_arg): New.
9170 (store_bounds_for_arg): New.
9171 (load_returned_bounds): New.
9172 (store_returned_bounds): New.
9173 (chkp_function_value_bounds): New.
9174 (setup_incoming_vararg_bounds): New.
9175 (function_arg): Update hook description with new possible return
9177 * targhooks.h (default_load_bounds_for_arg): New.
9178 (default_store_bounds_for_arg): New.
9179 (default_load_returned_bounds): New.
9180 (default_store_returned_bounds): New.
9181 (default_chkp_bound_type): New.
9182 (default_chkp_bound_mode): New.
9183 (default_builtin_chkp_function): New.
9184 (default_chkp_function_value_bounds): New.
9185 (default_chkp_make_bounds_constant): New.
9186 (default_chkp_initialize_bounds): New.
9187 (default_setup_incoming_vararg_bounds): New.
9188 * targhooks.c (default_load_bounds_for_arg): New.
9189 (default_store_bounds_for_arg): New.
9190 (default_load_returned_bounds): New.
9191 (default_store_returned_bounds): New.
9192 (default_chkp_bound_type): New.
9193 (default_chkp_bound_mode); New.
9194 (default_builtin_chkp_function): New.
9195 (default_chkp_function_value_bounds): New.
9196 (default_chkp_make_bounds_constant): New.
9197 (default_chkp_initialize_bounds): New.
9198 (default_setup_incoming_vararg_bounds): New.
9199 * builtin-types.def (BT_BND): New.
9200 (BT_FN_PTR_CONST_PTR): New.
9201 (BT_FN_CONST_PTR_CONST_PTR): New.
9202 (BT_FN_BND_CONST_PTR): New.
9203 (BT_FN_CONST_PTR_BND): New.
9204 (BT_FN_PTR_CONST_PTR_SIZE): New.
9205 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
9206 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
9207 (BT_FN_VOID_CONST_PTR_SIZE): New.
9208 (BT_FN_VOID_PTR_BND): New.
9209 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
9210 (BT_FN_BND_CONST_PTR_SIZE): New.
9211 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
9212 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
9213 * chkp-builtins.def: New.
9214 * builtins.def: include chkp-builtins.def.
9215 (DEF_CHKP_BUILTIN): New.
9216 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
9217 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
9218 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
9219 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
9220 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
9221 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
9222 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
9223 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
9224 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
9225 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
9226 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
9227 (std_expand_builtin_va_start): Init bounds for va_list.
9228 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
9229 __CHKP__ macro when Pointer Bounds Checker is on.
9230 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
9231 * passes.def (pass_ipa_chkp_versioning): New.
9232 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
9233 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
9234 (pass_chkp_instrumentation_passes): New.
9235 (pass_ipa_chkp_produce_thunks): New.
9236 (pass_local_optimization_passes): New.
9237 (pass_chkp_opt): New.
9238 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
9239 (make_pass_ipa_chkp_produce_thunks): New.
9240 (make_pass_chkp): New.
9241 (make_pass_chkp_opt): New.
9242 (make_pass_early_local_passes): Renamed to ...
9243 (make_pass_build_ssa_passes): This.
9244 (make_pass_chkp_instrumentation_passes): New.
9245 (make_pass_local_optimization_passes): New.
9246 * passes.c (pass_manager::execute_early_local_passes): Execute
9247 early passes in three steps.
9248 (execute_all_early_local_passes): Renamed to ...
9249 (execute_build_ssa_passes): This.
9250 (pass_data_early_local_passes): Renamed to ...
9251 (pass_data_build_ssa_passes): This.
9252 (pass_early_local_passes): Renamed to ...
9253 (pass_build_ssa_passes): This.
9254 (pass_data_chkp_instrumentation_passes): New.
9255 (pass_chkp_instrumentation_passes): New.
9256 (pass_data_local_optimization_passes): New.
9257 (pass_local_optimization_passes): New.
9258 (make_pass_early_local_passes): Renamed to ...
9259 (make_pass_build_ssa_passes): This.
9260 (make_pass_chkp_instrumentation_passes): New.
9261 (make_pass_local_optimization_passes): New.
9262 * c-family/c.opt (fcheck-pointer-bounds): New.
9263 (fchkp-check-incomplete-type): New.
9264 (fchkp-zero-input-bounds-for-main): New.
9265 (fchkp-first-field-has-own-bounds): New.
9266 (fchkp-narrow-bounds): New.
9267 (fchkp-narrow-to-innermost-array): New.
9268 (fchkp-optimize): New.
9269 (fchkp-use-fast-string-functions): New.
9270 (fchkp-use-nochk-string-functions): New.
9271 (fchkp-use-static-bounds): New.
9272 (fchkp-use-static-const-bounds): New.
9273 (fchkp-treat-zero-dynamic-size-as-infinite): New.
9274 (fchkp-check-read): New.
9275 (fchkp-check-write): New.
9276 (fchkp-store-bounds): New.
9277 (fchkp-instrument-calls): New.
9278 (fchkp-instrument-marked-only): New.
9280 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
9281 (handle_bnd_legacy): New.
9282 (handle_bnd_instrument): New.
9283 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
9284 and bnd_instrument. Fix documentation.
9285 (c_common_format_attribute_table): Likewsie.
9286 * toplev.c: include tree-chkp.h.
9287 (process_options): Check Pointer Bounds Checker is supported.
9288 (compile_file): Add chkp_finish_file call.
9289 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
9290 to handle instrumentation clones properly.
9291 (propagate_constants_accross_call): Do not propagate
9292 through instrumentation thunks.
9293 * ipa-pure-const.c (propagate_pure_const): Support
9295 * ipa-inline.c (early_inliner): Check edge has summary allocated.
9296 * ipa-split.c: Include tree-chkp.h.
9298 (split_part_set_ssa_name_p): New.
9299 (consider_split): Do not split retbnd and retval
9301 (insert_bndret_call_after): new.
9302 (split_function): Propagate Pointer Bounds Checker
9303 instrumentation marks and handle returned bounds.
9304 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
9305 into bit field and add with_bounds field.
9306 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
9307 with_bounds field for instrumented calls.
9308 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
9309 CALL_WITH_BOUNDS_P flag for calls.
9310 * tree-ssa-ccp.c: Include tree-chkp.h.
9311 (insert_clobber_before_stack_restore): Handle
9312 BUILT_IN_CHKP_BNDRET calls.
9313 * tree-ssa-dce.c: Include tree-chkp.h.
9314 (propagate_necessity): For free call fed by alloc check
9315 bounds are also provided by the same alloc.
9316 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
9318 * tree-inline.c: Include tree-chkp.h.
9319 (declare_return_variable): Add arg holding
9320 returned bounds slot. Create and initialize returned bounds var.
9321 (remap_gimple_stmt): Handle returned bounds.
9322 Return sequence of statements instead of a single statement.
9323 (insert_init_stmt): Add declaration.
9324 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
9325 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
9326 Properly handle bounds in va_arg_pack and va_arg_pack_len.
9327 (expand_call_inline): Handle returned bounds. Add bounds copy
9328 for generated mem to mem assignments.
9329 * tree-inline.h (copy_body_data): Add fields retbnd and
9331 * value-prof.c: Include tree-chkp.h.
9332 (gimple_ic): Support returned bounds.
9333 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
9334 with "chkp ctor" and "bnd_legacy" attributes.
9335 (symtab_remove_unreachable_nodes): Keep initial values for
9336 pointer bounds to be used for checks eliminations.
9337 (process_references): Handle IPA_REF_CHKP.
9338 (walk_polymorphic_call_targets): Likewise.
9339 * ipa-visibility.c (cgraph_externally_visible_p): Mark
9340 instrumented 'main' as externally visible.
9341 (function_and_variable_visibility): Filter instrumentation
9343 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
9345 (cgraph_node): Add instrumented_version, orig_decl and
9346 instrumentation_clone fields.
9347 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
9348 (varpool_node): Add need_bounds_init field.
9349 (cgraph_local_p): New.
9350 * cgraph.c: Include tree-chkp.h.
9351 (cgraph_node::remove): Fix instrumented_version
9352 of the referenced node if any.
9353 (cgraph_node::dump): Dump instrumentation_clone and
9354 instrumented_version fields.
9355 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
9356 references and instrumentation thunks.
9357 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
9358 all not instrumented instrumentation clones alive.
9359 (cgraph_redirect_edge_call_stmt_to_callee): Support
9361 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
9363 (cgraph_rebuild_references): Likewise.
9364 * cgraphunit.c: Include tree-chkp.h.
9365 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
9367 (varpool_finalize_decl): Register statically initialized decls
9368 in Pointer Bounds Checker.
9369 (walk_polymorphic_call_targets): Do not mark generated call to
9370 __builtin_unreachable as with_bounds.
9371 (output_weakrefs): If there are both instrumented and original
9372 versions, output only one of them.
9373 (cgraph_node::expand_thunk): Set with_bounds flag
9374 for created call statement.
9375 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
9376 (ipa_ref): increase size of use field.
9377 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
9378 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
9379 (ctor_for_folding): Do not fold constant bounds vars.
9380 * lto-streamer.h (LTO_minor_version): Change minor version from
9382 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
9384 (lto_output_node): Output instrumentation_clone,
9385 thunk.add_pointer_bounds_args and orig_decl field.
9386 (lto_output_ref): Adjust to new ipa_ref::use field size.
9387 (input_overwrite_node): Read instrumentation_clone field.
9388 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
9390 (input_ref): Adjust to new ipa_ref::use field size.
9391 (input_cgraph_1): Compute instrumented_version fields and restore
9392 IDENTIFIER_TRANSPARENT_ALIAS chains.
9393 (lto_output_varpool_node): Output
9394 need_bounds_init value.
9395 (input_varpool_node): Read need_bounds_init value.
9396 * lto-partition.c (add_symbol_to_partition_1): Keep original
9397 and instrumented versions together.
9398 (privatize_symbol_name): Restore transparent alias chain if required.
9399 (add_references_to_partition): Add references to pointer bounds vars.
9400 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
9401 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
9402 (gen_type_die_with_usage): Skip pointer bounds.
9403 (dwarf2out_global_decl): Likewise.
9404 (is_base_type): Support POINTER_BOUNDS_TYPE.
9405 (gen_formal_types_die): Skip pointer bounds.
9406 (gen_decl_die): Likewise.
9407 * var-tracking.c (vt_add_function_parameters): Skip
9409 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
9411 (sem_variable::merge): Reset need_bounds_init flag.
9412 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
9414 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9415 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9416 (TARGET_LOAD_RETURNED_BOUNDS): New.
9417 (TARGET_STORE_RETURNED_BOUNDS): New.
9418 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9419 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9420 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9421 (TARGET_CHKP_BOUND_TYPE): New.
9422 (TARGET_CHKP_BOUND_MODE): New.
9423 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9424 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9425 * doc/tm.texi: Regenerated.
9426 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9429 * doc/invoke.texi (-mmpx): New.
9431 (chkp-max-ctor-size): New.
9432 * config/i386/constraints.md (w): New.
9435 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9436 * config/i386/i386-modes.def (BND32): New.
9438 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9439 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
9440 (regclass_map): Add bound registers.
9441 (dbx_register_map): Likewise.
9442 (dbx64_register_map): Likewise.
9443 (svr4_dbx_register_map): Likewise.
9444 (isa_opts): Add -mmpx.
9446 (ix86_option_override_internal): Support MPX ISA.
9447 (ix86_conditional_register_usage): Support bound registers.
9448 (ix86_code_end): Add MPX bnd prefix.
9449 (output_set_got): Likewise.
9450 (print_reg): Avoid prefixes for bound registers.
9451 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9452 (ix86_print_operand_punct_valid_p): Likewise.
9453 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9455 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
9456 (ix86_class_likely_spilled_p): Add bound regs support.
9457 (ix86_hard_regno_mode_ok): Likewise.
9458 (x86_order_regs_for_local_alloc): Likewise.
9459 (ix86_bnd_prefixed_insn_p): New.
9460 (ix86_builtins): Add
9461 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
9462 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
9463 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
9464 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
9465 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
9466 IX86_BUILTIN_BNDUPPER.
9467 (builtin_isa): Add leaf_p and nothrow_p fields.
9468 (def_builtin): Initialize leaf_p and nothrow_p.
9469 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
9472 (bdesc_mpx_const): New.
9473 (ix86_init_mpx_builtins): New.
9474 (ix86_init_builtins): Call ix86_init_mpx_builtins.
9475 (ix86_emit_cmove): New.
9476 (ix86_emit_move_max): New.
9477 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
9478 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
9479 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
9480 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
9481 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
9482 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
9483 (ix86_function_value_bounds): New.
9484 (ix86_builtin_mpx_function): New.
9485 (ix86_get_arg_address_for_bt): New.
9486 (ix86_load_bounds): New.
9487 (ix86_store_bounds): New.
9488 (ix86_load_returned_bounds): New.
9489 (ix86_store_returned_bounds): New.
9490 (ix86_mpx_bound_mode): New.
9491 (ix86_make_bounds_constant): New.
9492 (ix86_initialize_bounds):
9493 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
9494 (TARGET_STORE_BOUNDS_FOR_ARG): New.
9495 (TARGET_LOAD_RETURNED_BOUNDS): New.
9496 (TARGET_STORE_RETURNED_BOUNDS): New.
9497 (TARGET_CHKP_BOUND_MODE): New.
9498 (TARGET_BUILTIN_CHKP_FUNCTION): New.
9499 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
9500 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
9501 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
9502 (ix86_option_override_internal): Do not
9503 support x32 with MPX.
9504 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
9506 (function_arg_advance_32): Return number of used integer
9508 (function_arg_advance_64): Likewise.
9509 (function_arg_advance_ms_64): Likewise.
9510 (ix86_function_arg_advance): Handle pointer bounds.
9511 (ix86_function_arg): Likewise.
9512 (ix86_function_value_regno_p): Mark fisrt bounds registers as
9513 possible function value.
9514 (ix86_function_value_1): Handle pointer bounds type/mode
9515 (ix86_return_in_memory): Likewise.
9516 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
9517 (ix86_expand_call): Generate returned bounds.
9518 (ix86_setup_incoming_vararg_bounds): New.
9519 (ix86_va_start): Initialize bounds for pointers in va_list.
9520 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
9521 * config/i386/i386.h (TARGET_MPX): New.
9522 (TARGET_MPX_P): New.
9523 (FIRST_PSEUDO_REGISTER): Fix to new value.
9524 (FIXED_REGISTERS): Add bound registers.
9525 (CALL_USED_REGISTERS): Likewise.
9526 (REG_ALLOC_ORDER): Likewise.
9527 (HARD_REGNO_NREGS): Likewise.
9528 (VALID_BND_REG_MODE): New.
9529 (FIRST_BND_REG): New.
9530 (LAST_BND_REG): New.
9531 (reg_class): Add BND_REGS.
9532 (REG_CLASS_NAMES): Likewise.
9533 (REG_CLASS_CONTENTS): Likewise.
9535 (ANY_BND_REG_P): New.
9537 (HI_REGISTER_NAMES): Add bound registers.
9538 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
9540 * config/i386/i386.md (UNSPEC_BNDMK): New.
9541 (UNSPEC_BNDMK_ADDR): New.
9542 (UNSPEC_BNDSTX): New.
9543 (UNSPEC_BNDLDX): New.
9544 (UNSPEC_BNDLDX_ADDR): New.
9545 (UNSPEC_BNDCL): New.
9546 (UNSPEC_BNDCU): New.
9547 (UNSPEC_BNDCN): New.
9548 (UNSPEC_MPX_FENCE): New.
9549 (UNSPEC_SIZEOF): New.
9552 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9553 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9554 (prefix_rep): Check for bnd prefix.
9555 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9556 (length_nobnd): New.
9557 (length): Use length_nobnd when specified.
9558 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9563 (*jcc_1): Add MPX bnd prefix.
9566 (*indirect_jump): Likewise.
9567 (*tablejump_1): Likewise.
9568 (simple_return_internal): Likewise.
9569 (simple_return_internal_long): Likewise.
9570 (simple_return_pop_internal): Likewise.
9571 (simple_return_indirect_internal): Likewise.
9575 (*mov<mode>_internal_mpx): New.
9576 (<mode>_<bndcheck>): New.
9577 (*<mode>_<bndcheck>): New.
9582 move_size_reloc_<mode>): New.
9583 * config/i386/predicates.md (address_mpx_no_base_operand): New.
9584 (address_mpx_no_index_operand): New.
9585 (bnd_mem_operator): New.
9586 (symbol_operand): New.
9587 (x86_64_immediate_size_operand): New.
9588 * config/i386/i386.opt (mmpx): New.
9589 * config/i386/i386-builtin-types.def (BND): New.
9591 (BND_FTYPE_PCVOID_ULONG): New.
9592 (VOID_FTYPE_BND_PCVOID): New.
9593 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
9594 (BND_FTYPE_PCVOID_PCVOID): New.
9595 (BND_FTYPE_PCVOID): New.
9596 (BND_FTYPE_BND_BND): New.
9597 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
9598 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
9599 (ULONG_FTYPE_VOID): New.
9600 (PVOID_FTYPE_BND): New.
9602 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
9604 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
9605 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
9606 pass_cleanup_barriers, pass_delay_slots,
9607 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
9608 pass_shorten_branches, pass_est_nothrow_function_flags,
9609 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
9610 into pass_late_compilation.
9611 (pass_late_compilation): Add.
9612 * passes.c (pass_data_late_compilation, pass_late_compilation,
9613 make_pass_late_compilation): New.
9614 * timevar.def (TV_LATE_COMPILATION): New.
9616 * target.def (omit_struct_return_reg): New data hook.
9617 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
9618 * doc/tm.texi: Regenerate.
9619 * function.c (expand_function_end): Use it.
9621 * target.def (no_register_allocation): New data hook.
9622 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
9623 * doc/tm.texi: Regenerate.
9624 * ira.c (gate_ira): New function.
9625 (pass_data_ira): Set has_gate.
9626 (pass_ira): Add a gate function.
9627 (pass_data_reload): Likewise.
9628 (pass_reload): Add a gate function.
9630 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
9631 no register allocation happens on the target and return.
9632 * final.c (alter_subreg): Ensure register is not a pseudo before
9633 calling simplify_subreg.
9634 (output_operand): Assert that x isn't a pseudo only if doing
9635 register allocation.
9637 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
9640 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
9643 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
9645 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
9646 * rtl.h (SUBREG_P): New macro added.
9648 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
9650 * config/aarch64/aarch64-builtins.c
9651 (aarch64_build_scalar_type): Remove.
9652 (aarch64_scalar_builtin_types, aarch64_simd_type,
9653 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
9654 aarch64_mangle_builtin_vector_type,
9655 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
9656 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
9657 aarch64_init_simd_builtin_types,
9658 aarch64_init_simd_builtin_scalar_types): New.
9659 (aarch64_init_simd_builtins): Refactor.
9660 (aarch64_init_crc32_builtins): Fixup with qualifier.
9661 * config/aarch64/aarch64-protos.h
9662 (aarch64_mangle_builtin_type): Export.
9663 * config/aarch64/aarch64-simd-builtin-types.def: New.
9664 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
9665 (aarch64_mangle_type): Refactor.
9666 * config/aarch64/arm_neon.h: Declare vector types based on
9668 * config/aarch64/t-aarch64: Update dependency.
9670 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
9672 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
9673 atomic_update_decl): Guard declaration with #ifdef.
9675 2014-11-04 Marek Polacek <polacek@redhat.com>
9677 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
9679 2014-11-04 Marek Polacek <polacek@redhat.com>
9681 * Makefile.in (OBJS): Add sanopt.o.
9682 (GTFILES): Add sanopt.c.
9683 * asan.h (asan_expand_check_ifn): Declare.
9684 * asan.c (asan_expand_check_ifn): No longer static.
9685 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
9686 * sanopt.c: ...here. New file.
9688 2014-11-04 Jiong Wang <jiong.wang@arm.com>
9689 Wilco Dijkstra <wilco.dijkstra@arm.com>
9692 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
9695 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
9697 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
9698 also verify that mode is equal to the mode of op0.
9700 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
9701 emit into a sequence instead.
9703 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9705 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
9707 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9709 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
9710 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
9711 (reduc_smax_<mode> *2): Rename to...
9712 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
9713 (reduc_umin_<mode> *2): Rename to...
9714 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
9715 (reduc_umax_<mode> *2): Rename to...
9716 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
9718 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
9720 config/arm/neon.md (reduc_plus_*): Rename to...
9721 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
9723 2014-11-04 Michael Collison <michael.collison@linaro.org>
9725 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
9726 to support constraints for CONST_INT in atomic operations.
9727 * config/aarch64/atomics.md
9728 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
9729 (atomic_nand<mode>): Likewise.
9730 (atomic_fetch_<atomic_optab><mode>): Likewise.
9731 (atomic_fetch_nand<mode>): Likewise.
9732 (atomic_<atomic_optab>_fetch<mode>): Likewise.
9733 (atomic_nand_fetch<mode>): Likewise.
9735 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9737 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
9738 of __ARM_FEATURE_IDIV.
9740 2014-11-04 Marek Polacek <polacek@redhat.com>
9742 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
9744 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9746 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
9748 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
9751 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9752 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9753 Allow CC mode if HAVE_cbranchcc4.
9755 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9757 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
9758 with -fdump-go-spec. Anonymous substructures are now flattened and
9759 replaced by their fields (record) or the first named, non-bitfield
9762 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9764 * input.c (expand_location_to_spelling_point): Fix typo.
9765 (expansion_point_location_if_in_system_header): Fix comment.
9767 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9769 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
9771 2014-11-03 Richard Biener <rguenther@suse.de>
9773 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
9774 like ordinary operations.
9775 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
9778 2014-11-03 Joseph Myers <joseph@codesourcery.com>
9780 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
9782 * configure, config.h.in: Regenerate.
9783 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
9784 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9785 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9786 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
9787 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
9788 (RS6000_GLIBC_ATOMIC_FENV): New macro.
9789 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
9790 (atomic_update_decl): New static variables.
9791 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
9792 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
9793 and __atomic_feupdateenv for soft-float and no-FPRs.
9795 2014-11-03 Richard Biener <rguenther@suse.de>
9797 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
9798 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
9799 * fold-const.c (fold_unary_loc): Remove them here.
9800 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9801 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
9802 GIMPLE_UNARY_RHS case.
9803 (gimple_fold_stmt_to_constant_1): Likewise.
9804 (replace_stmt_with_simplification): Fix inverted comparison.
9806 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9808 PR tree-optimization/60770
9809 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
9810 statement should be removed.
9811 (maybe_register_def): Likewise. Replace clobbers with default
9813 (rewrite_dom_walker::before_dom_children): Remove statement if
9814 rewrite_update_stmt says so.
9815 * tree-ssa-live.c: Include tree-ssa.h.
9816 (set_var_live_on_entry): Do not mark undefined variables as live.
9817 (verify_live_on_entry): Do not check undefined variables.
9818 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
9819 of partially undefined variables.
9820 * tree-ssa.c (ssa_undefined_value_p): Likewise.
9821 (execute_update_addresses_taken): Do not drop clobbers.
9823 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
9825 PR tree-optimization/63666
9826 * fold-const.c: Include "optabs.h".
9827 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
9828 can_vec_perm_p permutation to one that is not.
9830 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9832 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
9834 2014-11-03 Andrew Pinski <apinski@cavium.com>
9836 * config/mips/mips-cpus.def (octeon3): New cpu.
9837 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
9838 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
9839 of the comparison no longer matches mode of the operands.
9840 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
9841 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
9842 (TARGET_OCTEON2): Likewise.
9843 (TUNE_OCTEON): Add Octeon3.
9844 * config/mips/mips.md (processor): Add octeon3.
9845 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
9846 (octeon_arith): Add octeon3.
9847 (octeon_condmove): Remove.
9848 (octeon_condmove_o1): New reservation.
9849 (octeon_condmove_o2): New reservation.
9850 (octeon_condmove_o3_int_on_cc): New reservation.
9851 (octeon_load_o2): Add octeon3.
9852 (octeon_cop_o2): Likewise.
9853 (octeon_store): Likewise.
9854 (octeon_brj_o2): Likewise.
9855 (octeon_imul3_o2): Likewise.
9856 (octeon_imul_o2): Likewise.
9857 (octeon_mfhilo_o2): Likewise.
9858 (octeon_imadd_o2): Likewise.
9859 (octeon_idiv_o2_si): Likewise.
9860 (octeon_idiv_o2_di): Likewise.
9861 (octeon_fpu): Add to the automaton.
9862 (octeon_fpu): New cpu unit.
9863 (octeon_condmove_o2): Check for non floating point modes.
9864 (octeon_load_o2): Add prefetchx.
9865 (octeon_cop_o2): Don't check for octeon3.
9866 (octeon3_faddsubcvt): New reservation.
9867 (octeon3_fmul): Likewise.
9868 (octeon3_fmadd): Likewise.
9869 (octeon3_div_sf): Likewise.
9870 (octeon3_div_df): Likewise.
9871 (octeon3_sqrt_sf): Likewise.
9872 (octeon3_sqrt_df): Likewise.
9873 (octeon3_rsqrt_sf): Likewise.
9874 (octeon3_rsqrt_df): Likewise.
9875 (octeon3_fabsnegmov): Likewise.
9876 (octeon_fcond): Likewise.
9877 (octeon_fcondmov): Likewise.
9878 (octeon_fpmtc1): Likewise.
9879 (octeon_fpmfc1): Likewise.
9880 (octeon_fpload): Likewise.
9881 (octeon_fpstore): Likewise.
9882 * config/mips/mips-tables.opt: Regenerate.
9883 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
9885 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
9887 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
9888 Allow CC mode if HAVE_cbranchcc4.
9890 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9892 * config/arc/arc.c (write_ext_corereg_1): Delete.
9893 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
9895 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9897 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
9898 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
9900 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9902 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
9903 (small_data_pattern_1): Delete.
9904 (small_data_pattern): Use FOR_EACH_SUBRTX.
9906 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
9908 * config/arc/arc.c: Include rtl-iter.h.
9909 (arc_rewrite_small_data_1): Delete.
9910 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
9912 2014-11-02 Michael Collison <michael.collison@linaro.org>
9914 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
9915 to support vector modes.
9916 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9918 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
9920 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
9921 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
9922 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
9923 * optabs.c: (gen_move_insn): Move to expr.c.
9924 * expr.h: Move protypes and enums to optabs.h.
9925 * expr.c: (gen_move_insn): Relocate from optabs.c.
9926 * genemit.c (main): Include insn-codes.h.
9927 * gengtype.c (open_base_files): Include insn-codes.h.
9928 * asan.c: Include insn-codes.h.
9929 * bb-reorder.c: Ditto.
9930 * builtins.c: Ditto.
9932 * cfgexpand.c: Ditto.
9933 * cilk-common.c: Ditto.
9940 * function.c: Ditto.
9942 * internal-fn.c: Ditto.
9943 * loop-unroll.c: Ditto.
9945 * modulo-sched.c: Ditto.
9947 * postreload.c: Ditto.
9951 * shrink-wrap.c: Ditto.
9952 * simplify-rtx.c: Ditto.
9954 * target-globals.c: Ditto.
9955 * targhooks.c: Ditto.
9957 * tree-if-conv.c: Ditto.
9958 * tree-ssa-forwprop.c: Ditto.
9959 * tree-ssa-loop-prefetch.c: Ditto.
9960 * tree-ssa-math-opts.c: Ditto.
9961 * tree-ssa-phiopt.c: Ditto.
9962 * tree-ssa-reassoc.c: Ditto.
9963 * tree-switch-conversion.c: Ditto.
9964 * tree-vect-data-refs.c: Ditto.
9965 * tree-vect-generic.c: Ditto.
9966 * tree-vect-loop.c: Ditto.
9967 * tree-vect-patterns.c: Ditto.
9968 * tree-vect-slp.c: Ditto.
9969 * tree-vect-stmts.c: Ditto.
9970 * tree-vrp.c: Ditto.
9971 * value-prof.c: Ditto.
9972 * config/aarch64/aarch64-builtins.c: Ditto.
9973 * config/alpha/alpha.c: Ditto.
9974 * config/arm/arm.c: Ditto.
9975 * config/cris/cris.c: Ditto.
9976 * config/epiphany/epiphany.c: Ditto.
9977 * config/frv/frv.c: Ditto.
9978 * config/h8300/h8300.c: Ditto.
9979 * config/ia64/ia64.c: Ditto.
9980 * config/iq2000/iq2000.c: Ditto.
9981 * config/m32c/m32c.c: Ditto.
9982 * config/mep/mep.c: Ditto.
9983 * config/microblaze/microblaze.c: Ditto.
9984 * config/mips/mips.c: Ditto.
9985 * config/mn10300/mn10300.c: Ditto.
9986 * config/moxie/moxie.c: Ditto.
9987 * config/msp430/msp430.c: Ditto.
9988 * config/nios2/nios2.c: Ditto.
9989 * config/pa/pa.c: Ditto.
9990 * config/rl78/rl78.c: Ditto.
9991 * config/rs6000/rs6000.c: Ditto.
9992 * config/rx/rx.c: Ditto.
9993 * config/s390/s390.c: Ditto.
9994 * config/sh/sh.c: Ditto.
9995 * config/sh/sh_treg_combine.cc: Ditto.
9996 * config/spu/spu.c: Ditto.
9997 * config/stormy16/stormy16.c: Ditto.
9998 * config/tilegx/mul-tables.c: Ditto.
9999 * config/tilegx/tilegx.c: Ditto.
10000 * config/tilepro/mul-tables.c: Ditto.
10001 * config/tilepro/tilepro.c: Ditto.
10002 * config/vax/vax.c: Ditto.
10004 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10006 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
10007 (CLEAR_BY_PIECES_P): Likewise.
10008 (SET_BY_PIECES_P): Likewise.
10009 (STORE_BY_PIECES_P): Likewise.
10010 * doc/tm.texi: Regenerate.
10011 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
10012 SET_BY_PIECES_P, STORE_BY_PIECES_P.
10013 * expr.c (MOVE_BY_PIECES_P): Remove.
10014 (CLEAR_BY_PIECES_P): Likewise.
10015 (SET_BY_PIECES_P): Likewise.
10016 (STORE_BY_PIECES_P): Likewise.
10017 (can_move_by_pieces): Rewrite in terms of
10018 targetm.use_by_pieces_infrastructure_p.
10019 (emit_block_move_hints): Likewise.
10020 (can_store_by_pieces): Likewise.
10021 (store_by_pieces): Likewise.
10022 (clear_storage_hints): Likewise.
10023 (emit_push_insn): Likewise.
10024 (expand_constructor): Likewise.
10026 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10028 * config/aarch64/aarch64.c
10029 (aarch64_use_by_pieces_infrastructre_p): New.
10030 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
10031 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
10033 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10035 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
10036 (STORE_BY_PIECES_P): Likewise.
10037 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10038 (mips_move_by_pieces_p): Rename to...
10039 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
10040 parameters, use the default hook implementation as a
10043 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10045 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10046 (sh_use_by_pieces_infrastructure_p): Likewise.
10047 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
10048 (STORE_BY_PIECES_P): Likewise.
10049 (SET_BY_PIECES_P): Likewise.
10051 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10053 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
10054 (arc_use_by_pieces_infrastructure_p): Likewise.
10055 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
10056 (CAN_MOVE_BY_PIECES): Likewise.
10058 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10060 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
10061 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
10062 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
10063 (CLEAR_BY_PIECES): Likewise.
10064 (SET_BY_PIECES): Likewise.
10065 (STORE_BY_PIECES): Likewise.
10067 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
10069 * target.def (use_by_pieces_infrastructure_p): New.
10070 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
10072 (STORE_BY_PIECES_P): Likewise.
10073 (CLEAR_BY_PIECES_P): Likewise.
10074 (SET_BY_PIECES_P): Likewise.
10075 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
10076 * doc/tm.texi: Regenerate.
10077 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
10078 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
10079 (STORE_BY_PIECES_P): Likewise.
10080 (CLEAR_BY_PIECES_P): Likewise.
10081 (SET_BY_PIECES_P): Likewise.
10082 (STORE_MAX_PIECES): Move to...
10083 * defaults.h (STORE_MAX_PIECES): ...here.
10084 * targhooks.c (get_move_ratio): New.
10085 (default_use_by_pieces_infrastructure_p): Likewise.
10086 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
10087 * target.h (by_pieces_operation): New.
10089 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10092 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
10093 assignment to 'nargs' variable.
10095 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
10098 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
10099 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
10100 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
10101 be reloaded through memory.
10105 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10107 PR rtl-optimization/63659
10108 * ree.c (update_reg_equal_equiv_notes): New function.
10109 (combine_set_extension, transform_ifelse): Use it.
10111 2014-10-31 Jeff Law <law@redhat.com>
10113 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
10114 and Jonny Grant (collect2).
10116 2014-10-31 Richard Biener <rguenther@suse.de>
10118 * builtins.c (fold_builtin_atomic_always_lock_free): Use
10119 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
10121 (fold_builtin_expect): Likewise.
10122 (integer_valued_real_p): Likewise.
10123 * cfgexpand.c (expand_debug_expr): Likewise.
10124 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
10125 (find_foldable_builtin_expect): Likewise.
10126 * trans-mem.c (thread_private_new_memory): Likewise.
10127 * tree-affine.c (aff_combination_expand): Likewise.
10128 * tree-data-ref.c (initialize_matrix_A): Likewise.
10129 * tree-inline.c (copy_bb): Likewise.
10130 * tree-pretty-print.c (dump_function_name): Likewise.
10131 (print_call_name): Likewise.
10132 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
10133 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
10134 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
10135 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
10136 (vect_recog_widen_mult_pattern): Likewise.
10137 (vect_operation_fits_smaller_type): Likewise.
10138 * tree-vrp.c (find_assert_locations_1): Likewise.
10139 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10140 converts to NOP_EXPR.
10142 2014-10-31 Richard Biener <rguenther@suse.de>
10144 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
10145 CONVERT_EXPRs in generated code.
10146 (dt_simplify::gen): Likewise.
10148 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
10151 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
10152 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
10153 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
10154 using mcount in 32bit PIC mode.
10155 (ix86_elim_entry_set_got): New.
10156 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
10157 in PROLOGUE, delete initial if possible.
10159 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
10161 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
10162 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
10164 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10166 PR tree-optimization/63259
10167 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
10168 rotation left if it is a 16 bit byte swap.
10169 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
10170 and RROTATE_EXPR statements if it is a byte rotation.
10172 2014-10-31 Jakub Jelinek <jakub@redhat.com>
10175 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
10176 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
10177 instead of vr0.min - vr1.min and vr0.max - vr1.max.
10179 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
10182 * ipa-icf.c (sem_function::~sem_function): Change free to delete
10183 to avoid alloc-dealloc mismatch with new, called in
10184 ipa_icf::sem_function::init.
10186 2014-10-30 Felix Yang <felix.yang@huawei.com>
10188 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
10189 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
10190 (xtensa_reorg, xtensa_reorg_loops): New.
10191 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
10192 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
10193 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
10194 (xtensa_doloop_hooks): Define.
10195 * config/xtensa/xtensa.md (doloop_end, loop_end): New
10196 (zero_cost_loop_start): Rewritten.
10197 (zero_cost_loop_end): Likewise.
10199 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
10201 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
10203 2014-10-30 Richard Biener <rguenther@suse.de>
10205 * genmatch.c: Remove <map>, <utility> and <string> includes.
10206 Include ggc.h and hash-map.h.
10207 (ggc_internal_cleared_alloc): Provide stub definition.
10208 (ggc_free): Likewise.
10209 (struct capture_id_map_hasher): New traits for hash_map.
10210 (cid_map_t): New typedef.
10211 (everywhere else): Replace std::map use with cid_map_t.
10212 * hash-map.h (hash_map::elements): New member function.
10213 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
10214 hash-map.h and $(GGC_H) as dependency.
10216 2014-10-30 Richard Biener <rguenther@suse.de>
10218 * genmatch.c (capture_info::walk_c_expr): Ignore capture
10219 uses inside TREE_TYPE ().
10220 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
10221 (find_candidates_dom_walker::before_dom_children): Likewise.
10222 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
10223 (replace_profitable_candidates): Likewise.
10224 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
10225 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
10226 * convert.c (convert_to_integer): Use CASE_CONVERT.
10228 2014-10-30 Richard Biener <rguenther@suse.de>
10230 * match.pd: Implement more patterns that simplify to a single value.
10231 * fold-const.c (fold_binary_loc): Remove them here.
10232 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
10233 (fwprop_ssa_val): Remove restriction on single uses.
10235 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10237 * config/avr/driver-avr.c (avr_set_current_device): Remove.
10239 2014-10-30 Martin Liska <mliska@suse.cz>
10243 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
10244 (func_checker::compare_gimple_label): Simlified comparison introduced.
10245 * ipa-icf-gimple.h: Missing comment added.
10247 2014-10-30 Jeff Law <law@redhat.com>
10249 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
10250 argument from rtx to rtx_insn *.
10251 (compute_movmem_length, compute_clrmem_length): Likewise.
10252 (copy_fp_args, length_fp_args): Likewise.
10253 * config/pa/pa.c (legitimize_pic_address): Promote local variable
10254 "insn" from rtx to rtx_insn *.
10255 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
10256 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
10257 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
10258 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
10259 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
10260 (compute_movmem_length, compute_clrmem_length): Likewise.
10261 (copy_fp-args, length_fp_args): Likewise.
10263 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10265 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
10267 (CUMULATIVE_ARGS): Guard against target includes.
10268 (machine_function): Likewise.
10270 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10272 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
10273 recog state after aarch64_prev_real_insn call.
10275 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10277 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
10279 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10281 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
10282 (struct machine_function): Gate definition on
10283 !defined(USED_FOR_TARGET).
10285 2014-10-29 DJ Delorie <dj@redhat.com>
10287 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
10289 2014-10-29 Martin Liska <mliska@suse.cz>
10292 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
10293 to local declarations.
10294 * function.c (add_local_decl): Implementation moved from header
10295 file, assert introduced for tree type.
10296 * function.h: Likewise.
10298 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10300 * godump.c (go_format_type): Represent "float _Complex" and
10301 "double _Complex" as complex64 or complex128 in Go, as appropriate.
10303 2014-10-29 Richard Biener <rguenther@suse.de>
10305 * match.pd: Implement a first set of conversion patterns.
10306 * fold-const.c (fold_unary_loc): Remove them here.
10307 * tree-ssa-forwprop.c (simplify_vce): Remove.
10308 (pass_forwprop::execute): Do not call simplify_vce.
10310 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10312 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
10313 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
10314 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
10315 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
10316 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
10317 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
10318 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
10319 config/arc/arc.h, config/arc/predicates.md,
10320 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
10321 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
10322 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
10323 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
10324 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
10325 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
10326 config/cr16/cr16-protos.h, config/cr16/cr16.c,
10327 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
10328 config/darwin-protos.h, config/darwin.c,
10329 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
10330 config/epiphany/epiphany.md, config/fr30/fr30.c,
10331 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
10332 config/h8300/h8300-protos.h, config/h8300/h8300.c,
10333 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
10334 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
10335 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
10336 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
10337 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
10338 config/lm32/lm32-protos.h, config/lm32/lm32.c,
10339 config/m32c/m32c-protos.h, config/m32c/m32c.c,
10340 config/m32r/m32r-protos.h, config/m32r/m32r.c,
10341 config/m68k/m68k-protos.h, config/m68k/m68k.c,
10342 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10343 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
10344 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
10345 config/mips/mips-protos.h, config/mips/mips.c,
10346 config/mmix/mmix-protos.h, config/mmix/mmix.c,
10347 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
10348 config/moxie/moxie.c, config/msp430/msp430-protos.h,
10349 config/msp430/msp430.c, config/nds32/nds32-cost.c,
10350 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
10351 config/nds32/nds32-protos.h, config/nds32/nds32.c,
10352 config/nios2/nios2-protos.h, config/nios2/nios2.c,
10353 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
10354 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
10355 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
10356 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10357 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
10358 config/s390/predicates.md, config/s390/s390-protos.h,
10359 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
10360 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
10361 config/sh/sh.md, config/sparc/predicates.md,
10362 config/sparc/sparc-protos.h, config/sparc/sparc.c,
10363 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
10364 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10365 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
10366 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
10367 config/tilepro/tilepro.c, config/v850/v850-protos.h,
10368 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
10369 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
10370 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
10371 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
10372 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
10373 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
10374 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
10375 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
10376 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
10377 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
10378 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
10379 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
10380 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
10381 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
10382 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
10383 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
10384 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
10385 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
10386 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
10387 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
10388 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
10389 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
10390 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
10391 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
10392 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
10393 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
10394 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
10395 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
10396 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
10397 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
10398 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
10399 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
10400 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
10401 var-tracking.c, varasm.c: Remove redundant enum from
10403 * gengtype.c (main): Treat machine_mode as a scalar typedef.
10404 * genmodes.c (emit_insn_modes_h): Hide inline functions if
10407 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10409 PR rtl-optimization/63340 (part 2)
10410 * rtl.h (invalid_mode_change_p): Delete.
10411 (valid_mode_changes_for_regno): New function.
10412 * reginfo.c (invalid_mode_change_p): Delete.
10413 (valid_mode_changes_for_regno): New function.
10414 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
10415 classes to registers that are allowed by valid_mode_changes_for_regno.
10416 (setup_regno_cost_classes_by_mode): Likewise.
10417 (print_allocno_costs): Remove invalid_mode_change_p test.
10418 (print_pseudo_costs, find_costs_and_classes): Likewise.
10420 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
10422 PR rtl-optimization/63340 (part 1)
10423 * ira-costs.c (all_cost_classes): New variable.
10424 (complete_cost_classes): New function, split out from...
10425 (setup_cost_classes): ...here.
10426 (initiate_regno_cost_classes): Set up all_cost_classes.
10427 (restrict_cost_classes): New function.
10428 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
10429 registers that are valid for the register's mode.
10430 (setup_regno_cost_classes_by_mode): Model the mode cache as a
10431 restriction of all_cost_classes to a particular mode.
10432 (print_allocno_costs): Remove contains_reg_of_mode check.
10433 (print_pseudo_costs, find_costs_and_classes): Likewise.
10435 2014-10-29 Richard Biener <rguenther@suse.de>
10437 PR tree-optimization/63666
10438 * tree-vect-slp.c (vect_get_mask_element): Properly handle
10439 accessing out-of-bound elements.
10441 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10443 Anna Tikhonova <anna.tikhonova@intel.com>
10444 Ilya Tocar <ilya.tocar@intel.com>
10445 Andrey Turetskiy <andrey.turetskiy@intel.com>
10446 Ilya Verbin <ilya.verbin@intel.com>
10447 Kirill Yukhin <kirill.yukhin@intel.com>
10448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10450 * config/i386/i386.md
10451 (movhi_internal): Always detect maskmov.
10452 (movqi_internal): Fix target check.
10454 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
10455 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10456 Anna Tikhonova <anna.tikhonova@intel.com>
10457 Ilya Tocar <ilya.tocar@intel.com>
10458 Andrey Turetskiy <andrey.turetskiy@intel.com>
10459 Ilya Verbin <ilya.verbin@intel.com>
10460 Kirill Yukhin <kirill.yukhin@intel.com>
10461 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10463 * config/i386/avx512bwintrin.h: Add new intrinsics.
10464 * config/i386/avx512vlbwintrin.h: Ditto.
10465 * config/i386/avx512vlintrin.h: Ditto.
10467 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10469 * godump.c (precision_to_units): New helper function.
10470 (go_append_artificial_name): Ditto.
10471 (go_append_decl_name): Ditto.
10472 (go_append_bitfield): Ditto.
10473 (go_get_uinttype_for_precision): Ditto.
10474 (go_append_padding): Ditto.
10475 (go_force_record_alignment): Ditto.
10476 (go_format_type): Represent unions with an array of uints of the size
10477 of the alignment in go. This fixes the 'random' size of the union's
10478 representation using just the first field.
10479 (go_format_type): Add argument that indicates whether a record is
10480 nested (used for generation of artificial go names).
10481 (go_output_fndecl): Adapt to new go_format_type signature.
10482 (go_output_typedef): Ditto.
10483 (go_output_var): Ditto.
10484 (go_output_var): Prefer to output type as alias (typedef).
10485 (go_format_type): Bitfields in records are simulated as arrays of bytes
10488 * godump.c (go_format_type): Fix handling of arrays with zero elements.
10490 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
10492 * cgraph.h: Flatten. Remove all include files.
10493 (symbol_table::initialize): Move to cgraph.c.
10494 * cgraph.c: Adjust include files.
10495 (symbol_table::initialize): Relocate from cgraph.h.
10496 * gengtype.c (open_base_files): Adjust include files.
10497 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
10499 * ipa-inline.h: Remove all include files.
10500 * ipa-prop.h: Ditto.
10501 * ipa-reference.h: Ditto.
10502 * ipa-utils.h: Ditto:
10503 * lto-streamer.h: Remove cgraph.h from include list.
10504 * asan.c: Adjust include files.
10505 * auto-profile.c: Ditto.
10506 * bb-reorder.c: Ditto.
10508 * cfgexpand.c: Ditto.
10509 * cgraphbuild.c: Ditto.
10510 * cgraphclones.c: Ditto.
10511 * cgraphunit.c: Ditto.
10512 * combine.c: Ditto.
10513 * coverage.c: Ditto.
10514 * data-streamer.c: Ditto.
10515 * data-streamer-in.c: Ditto.
10516 * data-streamer-out.c: Ditto.
10518 * dwarf2out.c: Ditto.
10522 * fold-const.c: Ditto.
10523 * ggc-page.c: Ditto.
10524 * gimple-fold.c: Ditto.
10525 * gimple-iterator.c: Ditto.
10526 * gimple-pretty-print.c: Ditto.
10527 * gimple-streamer-in.c: Ditto.
10528 * gimple-streamer-out.c: Ditto.
10529 * gimplify.c: Ditto.
10531 * ipa-comdats.c: Ditto.
10533 * ipa-devirt.c: Ditto.
10534 * ipa-icf.c: Ditto.
10535 * ipa-icf-gimple.c: Ditto.
10536 * ipa-inline-analysis.c: Ditto.
10537 * ipa-inline.c: Ditto.
10538 * ipa-inline-transform.c: Ditto.
10539 * ipa-polymorphic-call.c: Ditto.
10540 * ipa-profile.c: Ditto.
10541 * ipa-prop.c: Ditto.
10542 * ipa-pure-const.c: Ditto.
10543 * ipa-ref.c: Ditto.
10544 * ipa-reference.c: Ditto.
10545 * ipa-split.c: Ditto.
10546 * ipa-utils.c: Ditto.
10547 * ipa-visibility.c: Ditto.
10548 * langhooks.c: Ditto.
10549 * lto-cgraph.c: Ditto.
10550 * lto-compress.c: Ditto.
10551 * lto-opts.c: Ditto.
10552 * lto-section-in.c: Ditto.
10553 * lto-section-out.c: Ditto.
10554 * lto-streamer.c: Ditto.
10555 * lto-streamer-in.c: Ditto.
10556 * lto-streamer-out.c: Ditto.
10557 * omp-low.c: Ditto.
10558 * opts-global.c: Ditto.
10560 * predict.c: Ditto.
10561 * print-tree.c: Ditto.
10562 * profile.c: Ditto.
10564 * stor-layout.c: Ditto.
10567 * trans-mem.c: Ditto.
10569 * tree-cfg.c: Ditto.
10570 * tree-eh.c: Ditto.
10571 * tree-emutls.c: Ditto.
10572 * tree-inline.c: Ditto.
10573 * tree-nested.c: Ditto.
10574 * tree-pretty-print.c: Ditto.
10575 * tree-profile.c: Ditto.
10576 * tree-sra.c: Ditto.
10577 * tree-ssa-alias.c: Ditto.
10578 * tree-ssa-loop-ivcanon.c: Ditto.
10579 * tree-ssa-loop-ivopts.c: Ditto.
10580 * tree-ssa-pre.c: Ditto.
10581 * tree-ssa-structalias.c: Ditto.
10582 * tree-streamer.c: Ditto.
10583 * tree-streamer-in.c: Ditto.
10584 * tree-streamer-out.c: Ditto.
10585 * tree-switch-conversion.c: Ditto.
10586 * tree-tailcall.c: Ditto.
10587 * tree-vect-data-refs.c: Ditto.
10588 * tree-vectorizer.c: Ditto.
10589 * tree-vect-stmts.c: Ditto.
10592 * value-prof.c: Ditto.
10594 * varpool.c: Ditto.
10595 * config/arm/arm.c: Ditto.
10596 * config/bfin/bfin.c: Ditto.
10597 * config/c6x/c6x.c: Ditto.
10598 * config/cris/cris.c: Ditto.
10599 * config/darwin.c: Ditto.
10600 * config/darwin-c.c: Ditto.
10601 * config/i386/i386.c: Ditto.
10602 * config/i386/winnt.c: Ditto.
10603 * config/microblaze/microblaze.c: Ditto.
10604 * config/mips/mips.c: Ditto.
10605 * config/rs6000/rs6000.c: Ditto.
10606 * config/rx/rx.c: Ditto.
10608 2014-10-28 Richard Biener <rguenther@suse.de>
10610 * gimple-fold.h (follow_single_use_edges): Declare.
10611 * gimple-fold.c (follow_single_use_edges): New function.
10612 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
10613 * tree-ssa-propagate.c
10614 (substitute_and_fold_dom_walker::before_dom_children): Allow
10615 following single-use edges when folding stmts we propagated into.
10617 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10618 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10619 Anna Tikhonova <anna.tikhonova@intel.com>
10620 Ilya Tocar <ilya.tocar@intel.com>
10621 Andrey Turetskiy <andrey.turetskiy@intel.com>
10622 Ilya Verbin <ilya.verbin@intel.com>
10623 Kirill Yukhin <kirill.yukhin@intel.com>
10624 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10626 * config/i386/avx512bwintrin.h: New.
10627 * config/i386/avx512dqintrin.h: Ditto.
10628 * config/i386/avx512vlbwintrin.h: Ditto.
10629 * config/i386/avx512vldqintrin.h: Ditto.
10630 * config/i386/avx512vlintrin.h: Ditto.
10631 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
10632 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
10634 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10635 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10636 Anna Tikhonova <anna.tikhonova@intel.com>
10637 Ilya Tocar <ilya.tocar@intel.com>
10638 Andrey Turetskiy <andrey.turetskiy@intel.com>
10639 Ilya Verbin <ilya.verbin@intel.com>
10640 Kirill Yukhin <kirill.yukhin@intel.com>
10641 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10643 * config/i386/i386.c
10644 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
10645 avx_shufpd256_mask, avx_vpermilv2df_mask.
10647 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10649 Anna Tikhonova <anna.tikhonova@intel.com>
10650 Ilya Tocar <ilya.tocar@intel.com>
10651 Andrey Turetskiy <andrey.turetskiy@intel.com>
10652 Ilya Verbin <ilya.verbin@intel.com>
10653 Kirill Yukhin <kirill.yukhin@intel.com>
10654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10656 * config/i386/i386.c
10657 (ix86_init_mmx_sse_builtins):
10658 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
10659 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
10660 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
10661 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
10662 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
10663 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
10664 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
10665 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
10666 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
10667 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
10668 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
10669 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
10670 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
10671 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
10672 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
10673 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
10674 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
10675 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
10677 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10678 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10679 Anna Tikhonova <anna.tikhonova@intel.com>
10680 Ilya Tocar <ilya.tocar@intel.com>
10681 Andrey Turetskiy <andrey.turetskiy@intel.com>
10682 Ilya Verbin <ilya.verbin@intel.com>
10683 Kirill Yukhin <kirill.yukhin@intel.com>
10684 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10686 * config/i386/i386.c
10687 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
10688 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
10689 IX86_BUILTIN_GATHER3ALTDIV8SI.
10690 (ix86_expand_builtin):
10691 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
10692 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
10693 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
10694 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
10695 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
10696 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
10697 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
10698 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
10699 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
10700 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
10701 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
10702 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
10703 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
10704 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
10705 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
10706 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
10707 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
10708 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
10709 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
10710 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
10712 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
10713 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10714 Anna Tikhonova <anna.tikhonova@intel.com>
10715 Ilya Tocar <ilya.tocar@intel.com>
10716 Andrey Turetskiy <andrey.turetskiy@intel.com>
10717 Ilya Verbin <ilya.verbin@intel.com>
10718 Kirill Yukhin <kirill.yukhin@intel.com>
10719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10721 * config/i386/i386-builtin-types.def
10740 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
10741 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
10742 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
10743 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
10744 (V16SF_FTYPE_V16HI): Ditto.
10745 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
10746 (V16SF_FTYPE_V16SI): Ditto.
10747 (V4DI_FTYPE_V4DI): Ditto.
10748 (V16SI_FTYPE_V16SF): Ditto.
10749 (V8DI_FTYPE_PV2DI): Ditto.
10750 (V8DF_FTYPE_PV2DF): Ditto.
10751 (V4DI_FTYPE_PV2DI): Ditto.
10752 (V4DF_FTYPE_PV2DF): Ditto.
10753 (V16SI_FTYPE_PV2SI): Ditto.
10754 (V16SF_FTYPE_PV2SF): Ditto.
10755 (V8SF_FTYPE_FLOAT): Ditto.
10756 (V4SF_FTYPE_FLOAT): Ditto.
10757 (V4DF_FTYPE_DOUBLE): Ditto.
10758 (V8SF_FTYPE_PV4SF): Ditto.
10759 (V8SI_FTYPE_PV4SI): Ditto.
10760 (V4SI_FTYPE_PV2SI): Ditto.
10761 (V8SF_FTYPE_PV2SF): Ditto.
10762 (V8SI_FTYPE_PV2SI): Ditto.
10763 (V16SF_FTYPE_PV8SF): Ditto.
10764 (V16SI_FTYPE_PV8SI): Ditto.
10765 (V8DI_FTYPE_V8SF): Ditto.
10766 (V4DI_FTYPE_V4SF): Ditto.
10767 (V2DI_FTYPE_V4SF): Ditto.
10768 (V64QI_FTYPE_QI): Ditto.
10769 (V32HI_FTYPE_HI): Ditto.
10770 (V16UHI_FTYPE_V16UHI): Ditto.
10771 (V32UHI_FTYPE_V32UHI): Ditto.
10772 (V2UDI_FTYPE_V2UDI): Ditto.
10773 (V4UDI_FTYPE_V4UDI): Ditto.
10774 (V8UDI_FTYPE_V8UDI): Ditto.
10775 (V4USI_FTYPE_V4USI): Ditto.
10776 (V16USI_FTYPE_V16USI): Ditto.
10777 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
10778 (V2DF_FTYPE_V8DF_INT): Ditto.
10779 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
10780 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
10781 (V8DF_FTYPE_V8DF_INT): Ditto.
10782 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
10783 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
10784 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
10785 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
10786 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
10787 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
10788 (V8DI_FTYPE_V8DI_INT): Ditto.
10789 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
10790 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
10791 (V8SF_FTYPE_V16SF_INT): Ditto.
10792 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
10793 (V64QI_FTYPE_V32HI_V32HI): Ditto.
10794 (V32HI_FTYPE_V16SI_V16SI): Ditto.
10795 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
10796 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10797 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
10798 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
10799 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
10800 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
10801 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10802 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10803 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
10804 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10805 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10806 (V32HI_FTYPE_V64QI_V64QI): Ditto.
10807 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10808 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10809 (V32HI_FTYPE_V32HI_V32HI): Ditto.
10810 (V32HI_FTYPE_V32HI_INT): Ditto.
10811 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10812 (V16SI_FTYPE_V32HI_V32HI): Ditto.
10813 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10814 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10815 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10816 (V8SI_FTYPE_V16SI_INT): Ditto.
10817 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10818 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10819 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10820 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10821 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
10822 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
10823 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10824 (V8DI_FTYPE_V16SI_V16SI): Ditto.
10825 (V8DI_FTYPE_V64QI_V64QI): Ditto.
10826 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10827 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10828 (V2DI_FTYPE_V8DI_INT): Ditto.
10829 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10830 (QI_FTYPE_QI): Ditto.
10831 (SI_FTYPE_SI): Ditto.
10832 (DI_FTYPE_DI): Ditto.
10833 (HI_FTYPE_V16QI): Ditto.
10834 (SI_FTYPE_V32QI): Ditto.
10835 (DI_FTYPE_V64QI): Ditto.
10836 (QI_FTYPE_V8HI): Ditto.
10837 (HI_FTYPE_V16HI): Ditto.
10838 (SI_FTYPE_V32HI): Ditto.
10839 (QI_FTYPE_V4SI): Ditto.
10840 (QI_FTYPE_V8SI): Ditto.
10841 (HI_FTYPE_V16SI): Ditto.
10842 (QI_FTYPE_V2DI): Ditto.
10843 (QI_FTYPE_V4DI): Ditto.
10844 (QI_FTYPE_V8DI): Ditto.
10845 (V16QI_FTYPE_HI): Ditto.
10846 (V32QI_FTYPE_SI): Ditto.
10847 (V64QI_FTYPE_DI): Ditto.
10848 (V8HI_FTYPE_QI): Ditto.
10849 (V16HI_FTYPE_HI): Ditto.
10850 (V32HI_FTYPE_SI): Ditto.
10851 (V4SI_FTYPE_QI): Ditto.
10852 (V4SI_FTYPE_HI): Ditto.
10853 (V8SI_FTYPE_QI): Ditto.
10854 (V8SI_FTYPE_HI): Ditto.
10855 (V2DI_FTYPE_QI): Ditto.
10856 (V4DI_FTYPE_QI): Ditto.
10857 (QI_FTYPE_QI_QI): Ditto.
10858 (SI_FTYPE_SI_SI): Ditto.
10859 (DI_FTYPE_DI_DI): Ditto.
10860 (QI_FTYPE_QI_INT): Ditto.
10861 (SI_FTYPE_SI_INT): Ditto.
10862 (DI_FTYPE_DI_INT): Ditto.
10863 (HI_FTYPE_V16QI_V16QI): Ditto.
10864 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10865 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10866 (SI_FTYPE_V32QI_V32QI): Ditto.
10867 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10868 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10869 (DI_FTYPE_V64QI_V64QI): Ditto.
10870 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10871 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10872 (QI_FTYPE_V8HI_V8HI): Ditto.
10873 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10874 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10875 (HI_FTYPE_V16HI_V16HI): Ditto.
10876 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10877 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10878 (SI_FTYPE_V32HI_V32HI): Ditto.
10879 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10880 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10881 (QI_FTYPE_V4SI_V4SI): Ditto.
10882 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10883 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10884 (QI_FTYPE_V8SI_V8SI): Ditto.
10885 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10886 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10887 (QI_FTYPE_V2DI_V2DI): Ditto.
10888 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10889 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10890 (QI_FTYPE_V4DI_V4DI): Ditto.
10891 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10892 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10893 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
10894 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
10895 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10896 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10897 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10898 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
10899 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10900 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10901 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10902 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
10903 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10904 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10905 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10906 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10907 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10908 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10909 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10910 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10911 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10912 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10913 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10914 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
10915 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10916 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10917 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10918 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10919 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10920 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10921 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10922 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10923 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10924 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10925 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10926 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10927 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10928 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10929 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10930 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10931 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10932 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10933 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10934 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10935 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10936 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10937 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10938 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10939 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10940 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10941 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10942 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10943 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10944 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10945 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10946 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10947 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10948 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10949 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10950 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10951 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10952 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10953 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10954 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
10955 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
10956 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
10957 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
10958 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
10959 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
10960 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
10961 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
10962 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
10963 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10964 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10965 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10966 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
10967 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10968 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10969 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
10970 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10971 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10972 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
10973 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10974 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10975 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10976 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10977 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10978 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10979 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10980 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10981 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10982 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10983 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10984 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10985 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10986 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10987 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10988 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10989 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10990 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10991 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10992 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10993 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10994 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10995 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10996 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10997 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10998 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10999 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
11000 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11001 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11002 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
11003 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
11004 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11005 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
11006 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11007 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11008 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
11009 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11010 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
11011 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11012 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
11013 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
11014 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
11015 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11016 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
11017 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
11018 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
11019 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
11020 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
11021 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
11022 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
11023 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
11024 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
11025 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
11026 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
11027 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
11028 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
11029 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
11030 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
11031 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
11032 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
11033 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
11034 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
11035 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
11036 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
11037 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
11038 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
11039 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
11040 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
11041 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
11042 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
11043 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
11044 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
11045 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
11046 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
11047 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
11048 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
11049 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
11050 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
11051 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
11052 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
11053 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
11054 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
11055 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
11056 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
11057 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
11058 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
11059 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
11060 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
11061 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
11062 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
11063 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
11064 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
11065 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
11066 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11067 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
11068 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
11069 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11070 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
11071 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
11072 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11073 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
11074 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
11075 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
11076 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
11077 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
11078 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
11079 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
11080 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
11081 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
11082 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
11083 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
11084 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
11085 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
11086 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
11087 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
11088 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
11089 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
11090 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
11091 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
11092 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
11093 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
11094 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
11095 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
11096 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11097 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11098 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11099 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11100 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
11101 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
11102 (QI_FTYPE_V8DF_INT): Ditto.
11103 (QI_FTYPE_V4DF_INT): Ditto.
11104 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
11105 (QI_FTYPE_V2DF_INT): Ditto.
11106 (HI_FTYPE_V16SF_INT): Ditto.
11107 (QI_FTYPE_V8SF_INT): Ditto.
11108 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
11109 (QI_FTYPE_V4SF_INT): Ditto.
11110 (QI_FTYPE_V8DF_INT_QI): Ditto.
11111 (QI_FTYPE_V4DF_INT_QI): Ditto.
11112 (QI_FTYPE_V2DF_INT_QI): Ditto.
11113 (HI_FTYPE_V16SF_INT_HI): Ditto.
11114 (QI_FTYPE_V8SF_INT_QI): Ditto.
11115 (QI_FTYPE_V4SF_INT_QI): Ditto.
11116 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
11117 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
11118 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
11119 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
11120 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11121 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
11122 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
11123 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
11124 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
11125 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
11126 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
11127 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
11128 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
11129 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
11130 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
11131 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
11132 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
11133 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
11134 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
11135 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
11136 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
11137 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
11138 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
11139 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
11140 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
11141 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
11142 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
11143 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
11144 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
11145 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
11146 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
11147 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
11148 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
11149 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
11150 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
11151 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
11152 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
11153 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
11154 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
11155 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
11156 (V8DI_FTYPE_V8DI_INT): Ditto.
11157 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
11158 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11159 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11160 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11161 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
11162 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
11163 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
11164 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
11165 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
11166 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
11167 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
11168 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
11169 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
11170 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
11171 * config/i386/i386.c (ix86_builtins):
11172 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
11173 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
11174 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
11175 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
11176 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
11177 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
11178 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
11179 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
11180 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
11181 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
11182 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
11183 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
11184 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
11185 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
11186 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
11187 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
11188 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
11189 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
11190 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
11191 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
11192 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
11193 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
11194 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
11195 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
11196 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
11197 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
11198 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
11199 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
11200 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
11201 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
11202 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
11203 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
11204 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
11205 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
11206 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
11207 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
11208 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
11209 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
11210 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
11211 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
11212 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
11213 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
11214 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
11215 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
11216 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
11217 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
11218 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
11219 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
11220 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
11221 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
11222 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
11223 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
11224 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
11225 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
11226 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
11227 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
11228 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
11229 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
11230 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
11231 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
11232 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
11233 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
11234 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
11235 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
11236 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
11237 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
11238 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
11239 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
11240 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
11241 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
11242 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
11243 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
11244 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
11245 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
11246 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
11247 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
11248 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
11249 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
11250 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
11251 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
11252 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
11253 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
11254 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
11255 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
11256 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
11257 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
11258 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
11259 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
11260 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
11261 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
11262 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
11263 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
11264 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
11265 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
11266 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
11267 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
11268 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
11269 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
11270 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
11271 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
11272 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
11273 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
11274 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
11275 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
11276 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
11277 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
11278 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
11279 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
11280 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
11281 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
11282 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
11283 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
11284 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
11285 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
11286 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
11287 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
11288 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
11289 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
11290 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
11291 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
11292 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
11293 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
11294 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
11295 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
11296 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
11297 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
11298 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
11299 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
11300 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
11301 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
11302 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
11303 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
11304 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
11305 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
11306 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
11307 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
11308 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
11309 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
11310 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
11311 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
11312 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
11313 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
11314 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
11315 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
11316 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
11317 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
11318 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
11319 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
11320 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
11321 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
11322 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
11323 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
11324 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
11325 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
11326 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
11327 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
11328 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
11329 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
11330 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
11331 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
11332 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
11333 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
11334 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
11335 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
11336 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
11337 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
11338 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
11339 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
11340 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
11341 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
11342 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
11343 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
11344 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
11345 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
11346 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
11347 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
11348 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
11349 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
11350 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
11351 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
11352 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
11353 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
11354 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
11355 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
11356 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
11357 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
11358 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
11359 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
11360 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
11361 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
11362 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
11363 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
11364 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
11365 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
11366 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
11367 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
11368 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
11369 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
11370 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
11371 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
11372 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
11373 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
11374 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
11375 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
11376 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
11377 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
11378 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
11379 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
11380 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
11381 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
11382 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
11383 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
11384 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
11385 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
11386 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
11387 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
11388 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
11389 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
11390 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
11391 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
11392 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
11393 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
11394 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
11395 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
11396 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
11397 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
11398 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
11399 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
11400 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
11401 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
11402 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
11403 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
11404 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
11405 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
11406 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
11407 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
11408 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
11409 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
11410 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
11411 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
11412 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
11413 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
11414 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
11415 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
11416 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
11417 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
11418 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
11419 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
11420 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
11421 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
11422 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
11423 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
11424 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
11425 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
11426 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
11427 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
11428 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
11429 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
11430 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
11431 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
11432 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
11433 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
11434 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
11435 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
11436 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
11437 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
11438 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
11439 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
11440 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
11441 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
11442 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
11443 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
11444 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
11445 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
11446 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
11447 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
11448 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
11449 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
11450 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
11451 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
11452 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
11453 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
11454 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
11455 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
11456 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
11457 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
11458 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
11459 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
11460 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
11461 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
11462 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
11463 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
11464 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
11465 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
11466 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
11467 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
11468 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
11469 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
11470 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
11471 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
11472 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
11473 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
11474 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
11475 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
11476 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
11477 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
11478 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
11479 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
11480 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
11481 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
11482 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
11483 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
11484 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
11485 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
11486 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
11487 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
11488 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
11489 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
11490 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
11491 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
11492 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
11493 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
11494 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
11495 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
11496 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
11497 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
11498 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
11499 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
11500 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
11501 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
11502 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
11503 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
11504 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
11505 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
11506 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
11507 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
11508 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
11509 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
11510 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
11511 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
11512 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
11513 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
11514 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
11515 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
11516 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
11517 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
11518 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
11519 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
11520 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
11521 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
11522 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
11523 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
11524 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
11525 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
11526 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
11527 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
11528 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
11529 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
11530 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
11531 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
11532 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
11533 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
11534 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
11535 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
11536 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
11537 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
11538 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
11539 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
11540 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
11541 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
11542 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
11543 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
11544 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
11545 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
11546 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
11547 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
11548 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
11549 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
11550 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
11551 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
11552 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
11553 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
11554 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
11555 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
11556 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
11557 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
11558 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
11559 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
11560 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
11561 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
11562 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
11563 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
11564 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
11565 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
11566 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
11567 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
11568 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
11569 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
11570 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
11571 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
11572 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
11573 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
11574 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
11575 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
11576 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
11577 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
11578 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
11579 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
11580 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
11581 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
11582 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
11583 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
11584 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
11585 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
11586 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
11587 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
11588 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
11589 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
11590 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
11591 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
11592 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
11593 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
11594 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
11595 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
11596 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
11597 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
11598 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
11599 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
11600 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
11601 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
11602 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
11603 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
11604 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
11605 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
11606 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
11607 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
11608 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
11609 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
11610 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
11611 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
11612 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
11613 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
11614 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
11615 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
11616 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
11617 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
11618 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
11619 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
11620 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
11621 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
11622 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
11623 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
11624 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
11625 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
11626 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
11627 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
11628 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
11629 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
11630 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
11631 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
11632 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
11633 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
11634 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
11635 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
11636 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
11637 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
11638 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
11639 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
11640 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
11641 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
11642 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
11643 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
11644 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
11645 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
11646 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
11647 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
11648 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
11649 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
11650 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
11651 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
11652 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
11653 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
11654 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
11655 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
11656 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
11657 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
11658 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
11659 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
11660 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
11661 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
11662 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
11663 (bdesc_special_args):
11664 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
11665 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
11666 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
11667 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
11668 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
11669 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
11670 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
11671 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
11672 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
11673 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
11674 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
11675 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
11676 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
11677 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
11678 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
11679 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
11680 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
11681 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
11682 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
11683 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
11684 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
11685 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
11686 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
11687 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
11688 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
11689 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
11690 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
11691 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
11692 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
11693 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
11694 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
11695 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
11696 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
11697 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
11698 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
11699 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
11700 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
11701 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
11702 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
11703 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
11704 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
11705 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
11706 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
11707 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
11708 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
11709 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
11710 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
11711 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
11712 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
11713 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
11714 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
11715 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
11716 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
11717 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
11718 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
11719 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
11720 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
11721 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
11722 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
11723 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
11724 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
11725 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
11726 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
11727 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
11728 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
11729 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
11730 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
11731 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
11732 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
11733 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
11734 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
11735 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
11736 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
11737 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
11738 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
11739 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
11740 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
11741 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
11742 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
11743 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
11744 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
11745 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
11746 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
11747 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
11748 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
11749 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
11750 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
11751 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
11752 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
11753 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
11754 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
11755 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
11756 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
11757 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
11758 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
11759 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
11760 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
11761 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
11762 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
11763 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
11764 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
11765 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
11766 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
11767 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
11768 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
11769 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
11770 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
11771 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
11772 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
11773 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
11774 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
11775 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
11776 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
11777 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
11778 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
11779 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
11780 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
11781 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
11782 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
11783 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
11784 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
11785 __builtin_ia32_reducesd, __builtin_ia32_reducess,
11786 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
11787 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
11788 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
11789 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
11790 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
11791 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
11792 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
11793 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
11794 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
11795 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
11796 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
11797 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
11798 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
11799 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
11800 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
11801 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
11802 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
11803 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
11804 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
11805 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
11806 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
11807 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
11808 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
11809 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
11810 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
11811 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
11812 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
11813 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
11814 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
11815 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
11816 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
11817 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
11818 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
11819 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
11820 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
11821 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
11822 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
11823 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
11824 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
11825 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
11826 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
11827 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
11828 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
11829 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
11830 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
11831 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
11832 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
11833 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
11834 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
11835 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
11836 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
11837 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
11838 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
11839 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
11840 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
11841 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
11842 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
11843 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
11844 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
11845 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
11846 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
11847 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
11848 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
11849 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
11850 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
11851 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
11852 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
11853 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
11854 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
11855 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
11856 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
11857 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
11858 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
11859 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
11860 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
11861 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
11862 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
11863 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
11864 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
11865 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
11866 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
11867 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
11868 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
11869 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
11870 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
11871 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
11872 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
11873 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
11874 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
11875 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
11876 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
11877 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
11878 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
11879 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
11880 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
11881 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
11882 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
11883 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
11884 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
11885 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
11886 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
11887 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
11888 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
11889 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
11890 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
11891 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
11892 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
11893 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
11894 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
11895 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
11896 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
11897 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
11898 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
11899 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
11900 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
11901 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
11902 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
11903 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
11904 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
11905 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
11906 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
11907 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
11908 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
11909 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
11910 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
11911 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
11912 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
11913 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
11914 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
11915 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
11916 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
11917 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
11918 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
11919 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
11920 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
11921 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
11922 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
11923 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
11924 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
11925 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
11926 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
11927 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
11928 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
11929 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
11930 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
11931 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
11932 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
11933 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
11934 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
11935 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
11936 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
11937 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
11938 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
11939 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
11940 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
11941 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
11942 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
11943 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
11944 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
11945 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
11946 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
11947 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
11948 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
11949 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
11950 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
11951 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
11952 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
11953 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
11954 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
11955 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
11956 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
11957 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
11958 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
11959 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
11960 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
11961 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
11962 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
11963 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
11964 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
11965 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
11966 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
11967 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
11968 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
11969 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
11970 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
11971 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
11972 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
11973 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
11974 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
11975 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
11976 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
11977 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
11978 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
11979 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
11980 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
11981 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
11982 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
11983 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
11984 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
11985 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
11986 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
11987 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
11988 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
11989 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
11990 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
11991 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
11992 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
11993 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
11994 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
11995 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
11996 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
11997 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
11998 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
11999 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
12000 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
12001 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
12002 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
12003 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
12004 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
12005 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
12006 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
12007 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
12008 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
12009 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
12010 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
12011 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
12012 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
12013 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
12014 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
12015 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
12016 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
12017 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
12018 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
12019 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
12020 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
12021 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
12022 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
12023 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
12024 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
12025 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
12026 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
12027 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
12028 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
12029 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
12030 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
12031 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
12032 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
12033 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
12034 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
12035 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
12036 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
12037 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
12038 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
12039 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
12040 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
12041 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
12042 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
12043 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
12044 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
12045 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
12046 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
12047 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
12048 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
12049 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
12050 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
12051 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
12052 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
12053 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
12054 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
12055 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
12056 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
12057 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
12058 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
12059 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
12060 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
12061 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
12062 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
12063 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
12064 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
12065 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
12066 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
12067 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
12068 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
12069 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
12070 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
12071 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
12072 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
12073 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
12074 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
12075 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
12076 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
12077 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
12078 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
12079 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
12080 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
12081 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
12082 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
12083 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
12084 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
12085 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
12086 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
12087 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
12088 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
12089 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
12090 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
12091 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
12092 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
12093 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
12094 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
12095 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
12096 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
12097 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
12098 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
12099 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
12100 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
12101 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
12102 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
12103 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
12104 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
12105 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
12106 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
12107 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
12108 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
12109 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
12110 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
12111 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
12112 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
12113 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
12114 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
12115 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
12116 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
12117 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
12118 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
12119 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
12120 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
12121 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
12122 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
12123 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
12124 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
12125 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
12126 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
12127 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
12128 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
12129 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
12130 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
12131 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
12132 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
12133 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
12134 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
12135 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
12136 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
12137 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
12138 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
12139 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
12140 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
12141 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
12142 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
12143 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
12144 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
12145 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
12146 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
12147 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
12148 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
12149 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
12150 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
12151 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
12152 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
12153 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
12154 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
12155 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
12156 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
12157 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
12158 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
12159 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
12160 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
12161 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
12162 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
12163 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
12164 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
12165 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
12166 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
12167 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
12168 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
12169 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
12170 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
12171 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
12172 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
12173 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
12174 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
12175 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
12176 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
12177 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
12178 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
12179 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
12180 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
12181 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
12182 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
12183 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
12184 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
12185 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
12186 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
12187 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
12188 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
12189 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
12190 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
12191 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
12192 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
12193 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
12194 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
12195 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
12196 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
12197 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
12198 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
12199 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
12200 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
12201 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
12202 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
12203 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
12204 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
12205 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
12206 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
12207 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
12208 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
12209 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
12210 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
12211 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
12212 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
12213 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
12214 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
12215 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
12216 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
12217 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
12218 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
12219 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
12220 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
12221 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
12222 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
12223 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
12224 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
12225 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
12226 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
12227 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
12228 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
12229 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
12230 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
12231 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
12232 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
12233 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
12234 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
12235 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
12236 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
12237 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
12238 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
12239 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
12240 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
12241 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
12242 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
12243 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
12244 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
12245 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
12246 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
12247 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
12248 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
12249 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
12250 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
12251 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
12252 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
12253 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
12254 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
12255 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
12256 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
12257 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
12258 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
12259 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
12260 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
12261 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
12262 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
12263 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
12264 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
12265 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
12266 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
12267 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
12268 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
12269 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
12270 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
12271 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
12272 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
12274 2014-10-28 Jakub Jelinek <jakub@redhat.com>
12276 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
12277 type for the left shift in CASE_CONVERT case.
12279 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
12281 * asan.h (asan_intercepted_p): New function.
12282 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
12283 hash value construction. Call iterative_hash_expr instead of explicit
12285 (asan_mem_ref_hasher::equal): Change condition.
12286 (has_mem_ref_been_instrumented): Likewise.
12287 (update_mem_ref_hash_table): Likewise.
12288 (maybe_update_mem_ref_hash_table): New function.
12289 (instrument_strlen_call): Removed.
12290 (get_mem_refs_of_builtin_call): Handle new parameter.
12291 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
12292 of instrument_mem_region_access if intercepted_p is true.
12293 (instrument_mem_region_access): Instrument only base with len instead of
12294 base and end with 1.
12295 (build_check_stmt): Remove start_instrumented and end_instrumented
12297 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
12298 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
12299 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
12300 * builtins.c (expand_builtin): Include asan.h. Don't expand
12301 string/memory builtin functions that have interceptors if ASan is
12304 2014-10-28 Richard Biener <rguenther@suse.de>
12306 PR middle-end/63665
12307 * fold-const.c (fold_comparison): Properly guard simplifying
12308 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
12310 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
12312 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
12313 * fold-const.c (const_binop): Likewise.
12314 * cfgexpand.c (expand_debug_expr): Likewise.
12315 * tree-inline.c (estimate_operator_cost): Likewise.
12316 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12317 * optabs.c (optab_for_tree_code): Likewise.
12318 (expand_vec_shift_expr): Likewise, update comment.
12319 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
12320 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
12321 * optabs.def: Remove vec_shl_optab.
12322 * doc/md.texi: Remove references to vec_shr_m.
12324 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12326 * asan.c (report_error_func): Add noabort path.
12327 (check_func): Ditto. Formatting.
12328 (asan_expand_check_ifn): Handle noabort path.
12329 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
12331 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
12332 * opts.c (finish_options): Reword comment.
12333 * sanitizer.def: Add noabort ASan builtins.
12335 2014-10-28 Yury Gribov <y.gribov@samsung.com>
12337 * asan.c (set_asan_shadow_offset): New function.
12338 (asan_shadow_offset): Likewise.
12339 (asan_emit_stack_protection): Call asan_shadow_offset.
12340 (build_shadow_mem_access): Likewise.
12341 * asan.h (set_asan_shadow_offset): Declare.
12342 * common.opt (fasan-shadow-offset): New option.
12343 (frandom-seed): Fixed parameter name.
12344 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
12345 (frandom-seed): Fixed parameter name.
12346 * opts-global.c (handle_common_deferred_options): Handle
12347 -fasan-shadow-offset.
12348 * opts.c (common_handle_option): Likewise.
12350 2014-10-27 Jiong Wang <jiong.wang@arm.com>
12353 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
12355 2014-10-27 DJ Delorie <dj@redhat.com>
12357 * tree.c (build_common_tree_nodes): Don't even store the
12358 __int128 types if they're not supported.
12360 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12362 * config/i386/i386.c (ix86_loop_memcount): Delete.
12363 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
12365 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12367 * config/i386/i386.c (find_constant_1): Delete.
12368 (find_constant): Use FOR_EACH_SUBRTX.
12370 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12372 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
12373 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
12375 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12377 * config/i386/i386.c: Include rtl-iter.h
12378 (ix86_check_avx256_register): Take a const_rtx and return a bool.
12379 (ix86_check_avx256_stores): Update call accordingly.
12380 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12381 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
12383 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12385 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
12386 Take an rtx and return a bool.
12387 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
12388 Use FOR_EACH_SUBRTX_VAR.
12389 * config/alpha/predicates.md (some_small_symbolic_operand): Update
12392 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12394 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
12396 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
12397 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
12399 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12401 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
12402 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
12404 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12406 * config/alpha/alpha.c: Include rtl-iter.h.
12407 (split_small_symbolic_operand_1): Delete.
12408 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
12410 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12412 * config/s390/s390.c: Include rtl-iter.h.
12413 (check_dpu): Delete.
12414 (s390_loop_unroll_adjust): Only iterate over patterns.
12415 Use FOR_EACH_SUBRTX.
12417 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
12419 * config/spu/spu.c: Include rtl-iter.h
12420 (ea_symbol_ref): Replace with...
12421 (ea_symbol_ref_p): ...this new function.
12422 (spu_legitimate_address_p): Update call accordingly.
12423 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
12425 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
12426 Tom Tromey <tromey@redhat.com>
12428 * aclocal.m4, configure: Rebuild.
12429 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
12430 * configure.ac: Use GCC_ENABLE_PLUGINS.
12431 * stor-layout.c (finish_bitfield_layout): Now public. Change
12432 argument type to 'tree'.
12433 (finish_record_layout): Update.
12434 * stor-layout.h (finish_bitfield_layout): Declare.
12436 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12438 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
12439 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12440 Restore, enable for bigendian, update to use __builtin..._scal...
12442 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12444 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
12445 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
12446 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
12447 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
12449 * config/aarch64/aarch64-simd.md
12450 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
12451 (reduc_<maxmin_uns>_internal<mode>): ...this.
12452 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
12453 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
12455 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
12456 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
12457 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
12459 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
12460 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
12461 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
12462 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
12463 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
12464 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
12465 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
12466 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
12468 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12470 * config/aarch64/aarch64-simd-builtins.def
12471 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
12473 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
12475 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
12476 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
12478 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
12479 (aarch64_reduc_plus_internal<mode>): ...this.
12481 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
12482 (aarch64_reduc_plus_internalv2si): ...this.
12484 (reduc_splus_<mode>/V2F): Rename to...
12485 (aarch64_reduc_plus_internal<mode>): ...this.
12487 * config/aarch64/iterators.md
12488 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
12489 (UNSPEC_ADDV): New.
12490 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
12492 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
12493 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
12494 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
12495 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
12496 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
12498 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12500 PR tree-optimization/61114
12501 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
12502 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
12504 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
12505 back to old reduc_... + BIT_FIELD_REF only if not.
12507 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
12508 return the reduce-to-scalar (reduc_..._scal) optab.
12509 (scalar_reduc_to_vector): New.
12511 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
12512 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
12515 * optabs.h (scalar_reduc_to_vector): Declare.
12517 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
12518 to either scalar or vector.
12520 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12522 PR tree-optimization/61114
12523 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
12524 extract_bit_field around optab result.
12526 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
12529 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
12530 for REDUC_{MIN,MAX,PLUS}_EXPR.
12532 * tree-vect-loop.c (vect_analyze_loop): Update comment.
12533 (vect_create_epilog_for_reduction): For direct vector reduction, use
12534 result of tree code directly without extract_bit_field.
12536 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
12539 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
12541 * basic-block.h: Remove all includes.
12542 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
12543 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
12544 * Makefile.in (GTFILES): Add cfg.h to list.
12545 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
12546 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
12547 * genconditions.c (write_header): Add predict.h and basic-block.h to
12549 * genemit.c (main): Ditto.
12550 * genpreds.c (write_insn_preds_c): Ditto.
12551 * genrecog.c (write_header): Ditto.
12552 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
12553 to list of includes.
12554 * alias.c: Adjust include files.
12556 * auto-inc-dec.c: Ditto.
12557 * auto-profile.c: Ditto.
12558 * bb-reorder.c: Ditto.
12559 * bt-load.c: Ditto.
12560 * builtins.c: Ditto.
12561 * caller-save.c: Ditto.
12564 * cfganal.c: Ditto.
12565 * cfgbuild.c: Ditto.
12566 * cfgcleanup.c: Ditto.
12567 * cfgexpand.c: Ditto.
12568 * cfghooks.c: Ditto.
12569 * cfgloop.c: Ditto.
12570 * cfgloopanal.c: Ditto.
12571 * cfgloopmanip.c: Ditto.
12573 * cgraphbuild.c: Ditto.
12574 * cgraphclones.c: Ditto.
12575 * cgraphunit.c: Ditto.
12576 * combine-stack-adj.c: Ditto.
12577 * combine.c: Ditto.
12578 * compare-elim.c: Ditto.
12579 * coverage.c: Ditto.
12583 * data-streamer-in.c: Ditto.
12584 * data-streamer-out.c: Ditto.
12585 * data-streamer.c: Ditto.
12589 * df-core.c: Ditto.
12590 * df-problems.c: Ditto.
12591 * df-scan.c: Ditto.
12594 * dominance.c: Ditto.
12595 * domwalk.c: Ditto.
12597 * dwarf2cfi.c: Ditto.
12598 * emit-rtl.c: Ditto.
12599 * et-forest.c: Ditto.
12604 * fold-const.c: Ditto.
12605 * function.c: Ditto.
12607 * gcc-plugin.h: Ditto.
12609 * generic-match-head.c: Ditto.
12610 * ggc-page.c: Ditto.
12611 * gimple-builder.c: Ditto.
12612 * gimple-expr.c: Ditto.
12613 * gimple-fold.c: Ditto.
12614 * gimple-iterator.c: Ditto.
12615 * gimple-low.c: Ditto.
12616 * gimple-match-head.c: Ditto.
12617 * gimple-pretty-print.c: Ditto.
12618 * gimple-ssa-isolate-paths.c: Ditto.
12619 * gimple-ssa-strength-reduction.c: Ditto.
12620 * gimple-streamer-in.c: Ditto.
12621 * gimple-streamer-out.c: Ditto.
12622 * gimple-streamer.h: Ditto.
12623 * gimple-walk.c: Ditto.
12625 * gimplify-me.c: Ditto.
12626 * gimplify.c: Ditto.
12628 * graphite-blocking.c: Ditto.
12629 * graphite-clast-to-gimple.c: Ditto.
12630 * graphite-dependences.c: Ditto.
12631 * graphite-interchange.c: Ditto.
12632 * graphite-isl-ast-to-gimple.c: Ditto.
12633 * graphite-optimize-isl.c: Ditto.
12634 * graphite-poly.c: Ditto.
12635 * graphite-scop-detection.c: Ditto.
12636 * graphite-sese-to-poly.c: Ditto.
12637 * graphite.c: Ditto.
12638 * haifa-sched.c: Ditto.
12639 * hw-doloop.c: Ditto.
12641 * init-regs.c: Ditto.
12642 * internal-fn.c: Ditto.
12644 * ipa-devirt.c: Ditto.
12645 * ipa-icf-gimple.c: Ditto.
12646 * ipa-icf.c: Ditto.
12647 * ipa-inline-analysis.c: Ditto.
12648 * ipa-inline.c: Ditto.
12649 * ipa-polymorphic-call.c: Ditto.
12650 * ipa-profile.c: Ditto.
12651 * ipa-prop.c: Ditto.
12652 * ipa-pure-const.c: Ditto.
12653 * ipa-reference.c: Ditto.
12654 * ipa-split.c: Ditto.
12655 * ipa-utils.c: Ditto.
12657 * ira-build.c: Ditto.
12658 * ira-color.c: Ditto.
12659 * ira-conflicts.c: Ditto.
12660 * ira-costs.c: Ditto.
12661 * ira-emit.c: Ditto.
12662 * ira-lives.c: Ditto.
12666 * loop-doloop.c: Ditto.
12667 * loop-init.c: Ditto.
12668 * loop-invariant.c: Ditto.
12669 * loop-iv.c: Ditto.
12670 * loop-unroll.c: Ditto.
12671 * lower-subreg.c: Ditto.
12672 * lra-assigns.c: Ditto.
12673 * lra-coalesce.c: Ditto.
12674 * lra-constraints.c: Ditto.
12675 * lra-eliminations.c: Ditto.
12676 * lra-lives.c: Ditto.
12677 * lra-spills.c: Ditto.
12679 * lto-cgraph.c: Ditto.
12680 * lto-compress.c: Ditto.
12681 * lto-opts.c: Ditto.
12682 * lto-section-in.c: Ditto.
12683 * lto-section-out.c: Ditto.
12684 * lto-streamer-in.c: Ditto.
12685 * lto-streamer-out.c: Ditto.
12686 * lto-streamer.c: Ditto.
12688 * mode-switching.c: Ditto.
12689 * modulo-sched.c: Ditto.
12690 * omp-low.c: Ditto.
12692 * opts-global.c: Ditto.
12694 * postreload-gcse.c: Ditto.
12695 * postreload.c: Ditto.
12696 * predict.c: Ditto.
12697 * print-rtl.c: Ditto.
12698 * profile.c: Ditto.
12701 * reg-stack.c: Ditto.
12702 * regcprop.c: Ditto.
12703 * regcprop.h: Ditto.
12704 * reginfo.c: Ditto.
12705 * regrename.c: Ditto.
12706 * regstat.c: Ditto.
12708 * reload1.c: Ditto.
12710 * resource.c: Ditto.
12711 * rtlanal.c: Ditto.
12712 * sched-deps.c: Ditto.
12713 * sched-ebb.c: Ditto.
12714 * sched-int.h: Ditto.
12715 * sched-rgn.c: Ditto.
12716 * sched-vis.c: Ditto.
12717 * sel-sched-dump.c: Ditto.
12718 * sel-sched-ir.c: Ditto.
12719 * sel-sched-ir.h: Ditto.
12720 * sel-sched.c: Ditto.
12722 * shrink-wrap.c: Ditto.
12723 * stack-ptr-mod.c: Ditto.
12725 * store-motion.c: Ditto.
12729 * trans-mem.c: Ditto.
12730 * tree-affine.c: Ditto.
12731 * tree-call-cdce.c: Ditto.
12732 * tree-cfg.c: Ditto.
12733 * tree-cfgcleanup.c: Ditto.
12734 * tree-chrec.c: Ditto.
12735 * tree-complex.c: Ditto.
12736 * tree-data-ref.c: Ditto.
12737 * tree-dfa.c: Ditto.
12738 * tree-eh.c: Ditto.
12739 * tree-emutls.c: Ditto.
12740 * tree-if-conv.c: Ditto.
12741 * tree-inline.c: Ditto.
12742 * tree-into-ssa.c: Ditto.
12743 * tree-loop-distribution.c: Ditto.
12744 * tree-nested.c: Ditto.
12745 * tree-nrv.c: Ditto.
12746 * tree-object-size.c: Ditto.
12747 * tree-outof-ssa.c: Ditto.
12748 * tree-parloops.c: Ditto.
12749 * tree-phinodes.c: Ditto.
12750 * tree-predcom.c: Ditto.
12751 * tree-pretty-print.c: Ditto.
12752 * tree-profile.c: Ditto.
12753 * tree-scalar-evolution.c: Ditto.
12754 * tree-sra.c: Ditto.
12755 * tree-ssa-address.c: Ditto.
12756 * tree-ssa-alias.c: Ditto.
12757 * tree-ssa-ccp.c: Ditto.
12758 * tree-ssa-coalesce.c: Ditto.
12759 * tree-ssa-copy.c: Ditto.
12760 * tree-ssa-copyrename.c: Ditto.
12761 * tree-ssa-dce.c: Ditto.
12762 * tree-ssa-dom.c: Ditto.
12763 * tree-ssa-dse.c: Ditto.
12764 * tree-ssa-forwprop.c: Ditto.
12765 * tree-ssa-ifcombine.c: Ditto.
12766 * tree-ssa-live.c: Ditto.
12767 * tree-ssa-loop-ch.c: Ditto.
12768 * tree-ssa-loop-im.c: Ditto.
12769 * tree-ssa-loop-ivcanon.c: Ditto.
12770 * tree-ssa-loop-ivopts.c: Ditto.
12771 * tree-ssa-loop-manip.c: Ditto.
12772 * tree-ssa-loop-niter.c: Ditto.
12773 * tree-ssa-loop-prefetch.c: Ditto.
12774 * tree-ssa-loop-unswitch.c: Ditto.
12775 * tree-ssa-loop.c: Ditto.
12776 * tree-ssa-math-opts.c: Ditto.
12777 * tree-ssa-operands.c: Ditto.
12778 * tree-ssa-phiopt.c: Ditto.
12779 * tree-ssa-phiprop.c: Ditto.
12780 * tree-ssa-pre.c: Ditto.
12781 * tree-ssa-propagate.c: Ditto.
12782 * tree-ssa-reassoc.c: Ditto.
12783 * tree-ssa-sccvn.c: Ditto.
12784 * tree-ssa-sink.c: Ditto.
12785 * tree-ssa-strlen.c: Ditto.
12786 * tree-ssa-structalias.c: Ditto.
12787 * tree-ssa-tail-merge.c: Ditto.
12788 * tree-ssa-ter.c: Ditto.
12789 * tree-ssa-threadedge.c: Ditto.
12790 * tree-ssa-threadupdate.c: Ditto.
12791 * tree-ssa-uncprop.c: Ditto.
12792 * tree-ssa-uninit.c: Ditto.
12793 * tree-ssa.c: Ditto.
12794 * tree-ssanames.c: Ditto.
12795 * tree-stdarg.c: Ditto.
12796 * tree-streamer-in.c: Ditto.
12797 * tree-streamer-out.c: Ditto.
12798 * tree-streamer.c: Ditto.
12799 * tree-switch-conversion.c: Ditto.
12800 * tree-tailcall.c: Ditto.
12801 * tree-vect-data-refs.c: Ditto.
12802 * tree-vect-generic.c: Ditto.
12803 * tree-vect-loop-manip.c: Ditto.
12804 * tree-vect-loop.c: Ditto.
12805 * tree-vect-patterns.c: Ditto.
12806 * tree-vect-slp.c: Ditto.
12807 * tree-vect-stmts.c: Ditto.
12808 * tree-vectorizer.c: Ditto.
12809 * tree-vrp.c: Ditto.
12813 * valtrack.c: Ditto.
12814 * valtrack.h: Ditto.
12815 * value-prof.c: Ditto.
12816 * var-tracking.c: Ditto.
12818 * varpool.c: Ditto.
12819 * vtable-verify.c: Ditto.
12821 * config/aarch64/aarch64-builtins.c: Ditto.
12822 * config/aarch64/aarch64.c: Ditto.
12823 * config/alpha/alpha.c: Ditto.
12824 * config/arc/arc.c: Ditto.
12825 * config/arm/arm.c: Ditto.
12826 * config/avr/avr.c: Ditto.
12827 * config/bfin/bfin.c: Ditto.
12828 * config/c6x/c6x.c: Ditto.
12829 * config/cr16/cr16.c: Ditto.
12830 * config/cris/cris.c: Ditto.
12831 * config/darwin-c.c: Ditto.
12832 * config/darwin.c: Ditto.
12833 * config/epiphany/epiphany.c: Ditto.
12834 * config/epiphany/mode-switch-use.c: Ditto.
12835 * config/epiphany/resolve-sw-modes.c: Ditto.
12836 * config/fr30/fr30.c: Ditto.
12837 * config/frv/frv.c: Ditto.
12838 * config/h8300/h8300.c: Ditto.
12839 * config/i386/i386.c: Ditto.
12840 * config/i386/winnt.c: Ditto.
12841 * config/ia64/ia64.c: Ditto.
12842 * config/iq2000/iq2000.c: Ditto.
12843 * config/lm32/lm32.c: Ditto.
12844 * config/m32c/m32c.c: Ditto.
12845 * config/m32r/m32r.c: Ditto.
12846 * config/m68k/m68k.c: Ditto.
12847 * config/mcore/mcore.c: Ditto.
12848 * config/mep/mep.c: Ditto.
12849 * config/microblaze/microblaze.c: Ditto.
12850 * config/mips/mips.c: Ditto.
12851 * config/mmix/mmix.c: Ditto.
12852 * config/mn10300/mn10300.c: Ditto.
12853 * config/moxie/moxie.c: Ditto.
12854 * config/msp430/msp430.c: Ditto.
12855 * config/nds32/nds32-cost.c: Ditto.
12856 * config/nds32/nds32-fp-as-gp.c: Ditto.
12857 * config/nds32/nds32-intrinsic.c: Ditto.
12858 * config/nds32/nds32-isr.c: Ditto.
12859 * config/nds32/nds32-md-auxiliary.c: Ditto.
12860 * config/nds32/nds32-memory-manipulation.c: Ditto.
12861 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
12862 * config/nds32/nds32-predicates.c: Ditto.
12863 * config/nds32/nds32.c: Ditto.
12864 * config/nios2/nios2.c: Ditto.
12865 * config/pa/pa.c: Ditto.
12866 * config/pdp11/pdp11.c: Ditto.
12867 * config/rl78/rl78.c: Ditto.
12868 * config/rs6000/rs6000.c: Ditto.
12869 * config/rx/rx.c: Ditto.
12870 * config/s390/s390.c: Ditto.
12871 * config/sh/sh-mem.cc: Ditto.
12872 * config/sh/sh.c: Ditto.
12873 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
12874 * config/sh/sh_treg_combine.cc: Ditto.
12875 * config/sparc/sparc.c: Ditto.
12876 * config/spu/spu.c: Ditto.
12877 * config/stormy16/stormy16.c: Ditto.
12878 * config/tilegx/tilegx.c: Ditto.
12879 * config/tilepro/tilepro.c: Ditto.
12880 * config/v850/v850.c: Ditto.
12881 * config/vax/vax.c: Ditto.
12882 * config/xtensa/xtensa.c: Ditto.
12884 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
12886 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
12887 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
12888 Remove using preprocessor directives.
12890 2014-10-27 Richard Biener <rguenther@suse.de>
12892 * match.pd (0 % X): Properly use the iterator iterating over
12893 all modulo operators.
12896 2014-10-27 Richard Biener <rguenther@suse.de>
12898 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
12899 (lattice): New global.
12900 (fwprop_ssa_val): New function.
12901 (fold_all_stmts): Likewise.
12902 (pass_forwprop::execute): Finally fold all stmts.
12904 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12907 * doc/invoke.texi (fmessage-length): Update text to match reality.
12909 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12911 * config/microblaze/microblaze.c: Include rtl-iter.h.
12912 (microblaze_tls_referenced_p_1): Delete.
12913 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
12915 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12917 * config/mips/mips.c (mips_at_reg_p): Delete.
12918 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
12920 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12922 * config/mips/mips.c (mips_record_lo_sum): Replace with...
12923 (mips_record_lo_sums): ...this new function.
12924 (mips_reorg_process_insns): Update accordingly.
12926 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12928 * config/mips/mips.c (mips_sim_insn): Update comment.
12929 (mips_sim_wait_regs_2): Delete.
12930 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
12932 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12934 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
12935 and return a bool. Iterate over all subrtxes here.
12936 (r10k_needs_protection_p): Update accordingly.
12938 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12940 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
12941 rather than an rtx pointer. Change type of insn from "void *"
12942 to its real type. Return bool rather than int. Iterate over
12944 (r10k_needs_protection_p_store): Update accordingly.
12945 (r10k_needs_protection_p): Likewise.
12947 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12949 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
12950 (mips16_rewrite_pool_refs): Take the insn and constant pool as
12951 parameters. Iterate over the instruction's pattern and return void.
12952 (mips16_lay_out_constants): Update accordingly.
12954 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12956 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
12957 (mips_refers_to_kernel_reg_p): ...this new function.
12958 (mips_expand_prologue): Update accordingly.
12960 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12962 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
12963 as a parameter instead of the containing MEM. Iterate over all
12964 subrtxes. Don't return a value.
12965 (mips_rewrite_small_data): Update call accordingly.
12967 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12969 * config/mips/mips.c: Include rtl-iter.h.
12970 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
12971 Take the context as a parameter instead of the containing MEM.
12972 Iterate over all subrtxes.
12973 (mips_small_data_pattern_p): Update call accordingly.
12975 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12977 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
12978 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
12980 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12982 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
12983 return a bool. Replace "void *" with specific type. Iterate
12985 (mep_store_data_bypass_1): Update calls accordingly.
12987 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12989 * config/mep/mep.c: Include rtl-iter.h.
12990 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
12991 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
12993 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
12995 * config/xtensa/xtensa.c: Include rtl-iter.h.
12996 (xtensa_tls_referenced_p_1): Delete.
12997 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
12999 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13001 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
13002 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
13004 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13006 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
13007 rtx as argument and return the number of changes.
13008 * config/sh/sh.c: Include rtl-iter.h.
13009 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
13010 over all subrtxes. Return the number of changes made.
13011 * config/sh/sh.md: Update caller accordingly.
13013 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13015 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
13016 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
13018 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
13020 * config/m68k/m68k.c: Include rtl-iter.h.
13021 (m68k_final_prescan_insn_1): Delete.
13022 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
13024 2014-10-25 Jakub Jelinek <jakub@redhat.com>
13026 PR tree-optimization/63641
13027 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
13028 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
13030 2014-10-25 Alan Modra <amodra@gmail.com>
13032 PR rtl-optimization/63615
13033 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
13034 decomposing PLUS or MINUS if operands are not placed adjacent
13035 in the "ops" array.
13037 2014-10-25 Joseph Myers <joseph@codesourcery.com>
13039 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
13040 not allow e500 double in registers not satisyfing
13043 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
13045 * dwarf2out.c (declare_in_namespace): Only emit external
13046 declarations in the local scope once.
13048 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
13050 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
13052 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13054 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
13055 update uses to use new macro arguments.
13056 (__LD3_LANE_FUNC): Likewise.
13057 (__LD4_LANE_FUNC): Likewise.
13059 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
13061 * config/aarch64/aarch64-builtins.c
13062 (aarch64_types_loadstruct_lane_qualifiers): Define.
13063 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
13064 ld4_lane): New builtins.
13065 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
13067 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13068 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13069 (aarch64_ld2_lane<mode>): New expand.
13070 (aarch64_ld3_lane<mode>): Likewise.
13071 (aarch64_ld4_lane<mode>): Likewise.
13072 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13073 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
13075 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
13077 * avr-protos.h (avr_out_sign_extend): New.
13078 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
13079 (avr_out_sign_extend): New function.
13080 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
13081 (extendhisi2, extendpsisi2): Use it.
13082 (adjust_len) [sext]: New.
13084 2014-10-24 Martin Liska <mliska@suse.cz>
13086 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
13089 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13091 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
13092 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13093 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
13094 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
13096 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13098 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
13100 * config/aarch64/aarch64.c (is_mem_p): Delete.
13101 (is_memory_op): Rename to...
13102 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
13103 (dep_between_memop_and_curr): Assert that the input is a SET.
13104 (aarch64_madd_needs_nop): Add comment. Do not call
13105 dep_between_memop_and_curr on NULL body.
13106 (aarch64_final_prescan_insn): Add comment.
13107 Include rtl-iter.h.
13109 2014-10-24 Richard Biener <rguenther@suse.de>
13111 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
13112 to genmatch BUILD_LIBS instead.
13114 2014-10-24 Richard Biener <rguenther@suse.de>
13116 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
13117 and build_call_expr_loc.
13118 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
13119 non_lvalue_loc to build it for GENERIC.
13120 (decision_tree::gen_generic): Add location argument to
13121 generic_simplify prototype.
13122 (capture_info): New class.
13123 (capture_info::capture_info): New constructor.
13124 (capture_info::walk_match): New method.
13125 (capture_info::walk_result): New method.
13126 (capture_info::walk_c_expr): New method.
13127 (dt_simplify::gen): Handle preserving side-effects for
13128 GENERIC code generation.
13129 (decision_tree::gen_generic): Do not reject operands
13130 with TREE_SIDE_EFFECTS.
13131 * generic-match.h: New file.
13132 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
13133 * match.pd: Add some constant folding patterns from fold-const.c.
13134 * fold-const.c: Include generic-match.h.
13135 (fold_unary_loc): Dispatch to generic_simplify.
13136 (fold_ternary_loc): Likewise.
13137 (fold_binary_loc): Likewise. Remove patterns now implemented
13138 by generic_simplify.
13139 * gimple-fold.c (replace_stmt_with_simplification): New function.
13140 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
13141 (no_follow_ssa_edges): New function.
13142 (fold_stmt): New overload with valueization hook. Use
13143 no_follow_ssa_edges for the overload without hook.
13144 (fold_stmt_inplace): Likewise.
13145 * gimple-fold.h (no_follow_ssa_edges): Declare.
13147 2014-10-24 Felix Yang <felix.yang@huawei.com>
13148 Jiji Jiang <jiangjiji@huawei.com>
13151 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
13152 (__LD3R_FUNC): Ditto.
13153 (__LD4R_FUNC): Ditto.
13154 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
13155 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
13156 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
13157 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
13158 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
13159 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
13160 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
13161 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
13162 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
13163 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
13164 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
13165 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
13166 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
13167 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
13168 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
13169 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
13170 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
13171 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
13172 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
13173 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
13174 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
13176 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
13177 (aarch64_simd_ld3r<mode>): Likewise.
13178 (aarch64_simd_ld4r<mode>): Likewise.
13179 (aarch64_ld2r<mode>): New expand.
13180 (aarch64_ld3r<mode>): Likewise.
13181 (aarch64_ld4r<mode>): Likewise.
13183 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13185 * rtlanal.c (get_base_term): Handle SCRATCH.
13187 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13189 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
13192 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13194 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
13195 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
13196 (max_issue, choose_ready, sched_init): Update.
13198 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13200 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
13201 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
13202 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
13203 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
13204 (print_rank_for_schedule_stats): Print out elements of ready list that
13205 ended up on their respective places due to each of the sorting
13207 (ready_sort): Update.
13208 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
13209 (schedule_block): Update.
13211 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13213 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
13214 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
13215 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
13216 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
13217 (model_start_schedule): Update.
13218 (sched_pressure_start_bb): New static function. Calculate
13219 sched_class_regs_num.
13220 (schedule_block): Use it.
13221 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
13223 2014-10-24 Richard Biener <rguenther@suse.de>
13225 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
13226 host library and make sure to pull in the required libintl
13227 and libiconv dependencies.
13229 2014-10-24 Richard Biener <rguenther@suse.de>
13231 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
13233 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
13236 * collect2.c (main): Filter out -fno-lto.
13238 2014-10-24 Martin Liska <mliska@suse.cz>
13240 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
13241 division by zero in dumps.
13242 (sem_item_optimizer::merge_classes): Ditto.
13244 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
13246 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
13248 2014-10-23 Ian Lance Taylor <iant@google.com>
13250 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
13252 2014-10-23 Ian Lance Taylor <iant@google.com>
13254 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
13256 2014-10-23 Jakub Jelinek <jakub@redhat.com>
13259 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
13260 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
13261 instead of only handling autoinc in dest if it is a MEM.
13262 (vt_stack_adjustments): Fix up formatting.
13264 2014-10-23 DJ Delorie <dj@redhat.com>
13266 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
13267 independend of -mlarge.
13268 * config/msp430/constraints.md (Ys): Update comment.
13270 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
13274 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
13275 while it is pseudo.
13276 * dse.c (deletable_insn_p): Likewise.
13278 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
13280 * config/avr/avr.c: Fix GNU coding rules and typos.
13281 * config/avr/avr.h: Dito.
13282 * config/avr/avr-c.c: Dito.
13283 * config/avr/avr.md: Dito.
13285 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13287 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
13289 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
13291 (define_expand "abs<mode>2"): Ditto.
13293 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
13295 * tree-core.h (tree_var_decl): Extend `function_code' field
13296 by one bit, move `regdecl_flag' field to ...
13297 (tree_decl_with_vis): Here.
13298 * tree.h (DECL_STATIC_CHAIN): Update struct name.
13300 2014-10-23 Richard Biener <rguenther@suse.de>
13302 * Makefile.in (BUILD_CPPLIB): Add.
13303 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
13306 2014-10-23 Richard Biener <rguenther@suse.de>
13308 * fold-const.c (fold_binary_loc): Preserve side-effects of
13309 X - X when simplifying to 0.
13310 * stor-layout.c (finish_bitfield_representative): Strip
13311 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
13313 2014-10-22 Richard Biener <rguenther@suse.de>
13314 Tobias Burnus <burnus@net-b.de>
13317 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
13319 2014-10-22 Dehao Chen <dehao@google.com>
13321 * auto-profile.c: Change order of header files.
13323 2014-10-22 Guozhi Wei <carrot@google.com>
13325 PR tree-optimization/63530
13326 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
13327 pointer alignment according to DR_MISALIGNMENT.
13329 2014-10-22 David Malcolm <dmalcolm@redhat.com>
13331 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
13333 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
13335 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
13336 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
13337 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
13338 * dominance.h: New. Add prototypes for dominance.c.
13339 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
13340 * cfghooks.h: (struct profile_record) Relocate here.
13341 Relocate 2 prototypes from basic-block.h.
13342 * basic-block.h: Move prototypes and struct to new header files.
13343 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
13344 * rtl.h: Move a few prototypes to new header files.
13345 * cfgcleanup.c (merge_memattrs): Make static.
13346 * genopinit.c (main): Add predict.h to list of includes.
13347 * predict.h: Update prototype list to match predict.c.
13348 * predict.c (maybe_hot_count_p): Export.
13349 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
13350 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
13351 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
13352 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
13353 * profile.h: Adjust prototypes.
13354 * ifcvt.h: New. Relocate struct ce_if_block here.
13355 * ifcvt.c: Include ifcvt.h.
13356 * config/frv/frv.c: Include ifcvt.h.
13357 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
13359 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13361 * lra.c (lra): Remove call to recog_init.
13362 * config/i386/i386.md (preferred_for_speed): New attribute
13363 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
13364 "enabled". Remove check for sched1.
13366 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13368 * recog.h (recog_data_d): Remove enabled_alternatives.
13369 * recog.c (extract_insn): Don't set it.
13370 * reload.c (find_reloads): Call get_enabled_alternatives.
13372 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13374 * recog.h (constrain_operands): Add an alternative_mask parameter.
13375 (constrain_operands_cached): Likewise.
13376 (get_preferred_alternatives): Declare new form.
13377 * recog.c (get_preferred_alternatives): New bb-taking instance.
13378 (constrain_operands): Take the set of available alternatives as
13380 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
13381 (extract_constrain_insn_cached): Update calls to constrain_operands.
13382 * caller-save.c (reg_save_code): Likewise.
13383 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13384 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
13385 * ree.c (combine_reaching_defs): Likewise.
13386 * reload.c (can_reload_into): Likewise.
13387 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
13388 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
13389 (emit_insn_if_valid_for_reload): Likewise.
13390 * reorg.c (fill_slots_from_thread): Likewise.
13391 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
13392 * config/pa/pa.c (pa_can_combine_p): Likewise.
13393 * config/rl78/rl78.c (insn_ok_now): Likewise.
13394 * config/sh/sh.md (define_peephole2): Likewise.
13395 * final.c (final_scan_insn): Update call to constrain_operands_cached.
13397 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13399 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
13401 * genattr.c (main): Handle "preferred_for_size" and
13402 "preferred_for_speed" in the same way as "enabled".
13403 * recog.h (bool_attr): New enum.
13404 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
13405 (get_preferred_alternatives, check_bool_attrs): Declare.
13406 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
13407 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
13409 (get_enabled_alternatives): Use get_bool_attr_mask.
13410 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
13411 instead of recog_data.enabled_alternatives.
13412 * ira.c (ira_setup_alts): Likewise.
13413 * postreload.c (reload_cse_simplify_operands): Likewise.
13414 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13415 * ira-lives.c (preferred_alternatives): New variable.
13416 (process_bb_node_lives): Set it.
13417 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
13418 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
13419 of recog_data.enabled_alternatives.
13420 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
13421 to preferred_alternatives.
13422 * lra-constraints.c (process_alt_operands): Update accordingly.
13423 * lra.c (lra_set_insn_recog_data): Likewise.
13424 (lra_update_insn_recog_data): Assert check_bool_attrs.
13426 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
13428 * recog.h (extract_constrain_insn): Declare.
13429 * recog.c (extract_constrain_insn): New function.
13430 * lra.c (check_rtl): Use it.
13431 * postreload.c (reload_cse_simplify_operands): Likewise.
13432 * reg-stack.c (check_asm_stack_operands): Likewise.
13433 (subst_asm_stack_regs): Likewise.
13434 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13435 * regrename.c (build_def_use): Likewise.
13436 * sel-sched.c (get_reg_class): Likewise.
13437 * config/arm/arm.c (note_invalid_constants): Likewise.
13438 * config/s390/predicates.md (execute_operation): Likewise.
13440 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13441 Yury Gribov <y.gribov@samsung.com>
13443 * common.opt (flag_sanitize_recover): New variable.
13444 (fsanitize-recover): Remove Var/Init, deprecate.
13445 (fsanitize-recover=): New option.
13446 * doc/invoke.texi (fsanitize-recover): Update docs.
13447 * opts.c (finish_options): Use opts->x_flag_sanitize
13448 instead of flag_sanitize. Prohibit -fsanitize-recover
13449 for anything besides UBSan. Formatting.
13450 (common_handle_option): Handle OPT_fsanitize_recover_
13451 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13452 instead of flag_sanitize.
13453 * asan.c (pass_sanopt::execute): Fix up formatting.
13454 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
13455 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
13456 instrument_bool_enum_load, ubsan_instrument_float_cast,
13457 instrument_nonnull_arg, instrument_nonnull_return): Check
13458 bits in flag_sanitize_recover bitmask instead of
13459 flag_sanitize_recover as bool flag.
13461 2014-10-22 Jiong Wang <jiong.wang@arm.com>
13463 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
13465 2014-10-22 Renlin Li <renlin.li@arm.com>
13467 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
13468 __ARM_FEATURE_IDIV__.
13470 2014-10-22 Richard Biener <rguenther@suse.de>
13472 * Makefile.in (s-match): Adjust dependencies to only catch
13475 2014-10-22 Richard Biener <rguenther@suse.de>
13476 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
13478 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
13479 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
13480 (gimple-match.c): Generate by triggering s-match.
13481 (generic-match.c): Likewise.
13482 (s-match): Rule to build gimple-match.c and generic-match.c
13483 by running the genmatch generator program.
13484 (build/hash-table.o): Dependencies to build hash-table.c for the host.
13485 (build/genmatch.o): Dependencies to build genmatch.
13486 (genprog): Add match.
13487 (build/genmatch): Likewise.
13488 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
13489 * generic-match-head.c: New file.
13490 * gimple-match-head.c: Likewise.
13491 * gimple-match.h: Likewise.
13492 * genmatch.c: Likewise.
13493 * match.pd: Likewise.
13494 * builtins.h (fold_builtin_n): Export.
13495 * builtins.c (fold_builtin_n): Likewise.
13496 * gimple-fold.h (gimple_build): Declare various overloads.
13497 (gimple_simplify): Likewise.
13498 (gimple_convert): Re-implement in terms of gimple_build.
13499 * gimple-fold.c (gimple_convert): Remove.
13500 (gimple_build): New functions.
13501 * doc/match-and-simplify.texi: New file.
13502 * doc/gccint.texi: Add menu item Match and Simplify and include
13503 match-and-simplify.texi.
13505 2014-10-22 Jakub Jelinek <jakub@redhat.com>
13508 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
13509 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
13510 even for just TARGET_AVX2, not only for
13511 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
13512 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
13513 otherwise build it using concatenation of 256-bit
13515 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
13516 avx512 broadcast patterns.
13517 (vec_dup<mode>): Likewise. For avx2 use
13518 v<sseintprefix>broadcast<bcstscalarsuff> instead of
13519 vbroadcast<ssescalarmodesuffix>.
13520 (AVX2_VEC_DUP_MODE): New mode iterator.
13521 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
13522 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
13525 * config/i386/i386.c (ix86_pic_register_p): Also return
13526 true if x is a hard register with ORIGINAL_REGNO equal to
13527 pic_offset_table_rtx pseudo REGNO.
13528 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
13529 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
13531 2014-10-22 Alan Modra <amodra@gmail.com>
13533 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
13534 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
13535 (gcc_obstack_init): Use obstack_specify_allocation in place of
13537 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
13538 (regexp_representation): Likewise.
13539 * godump.c (go_output_type): Likewise.
13541 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
13543 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
13544 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
13545 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
13547 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13549 * doc/invoke.texi (pedantic-errors): Explain better.
13551 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
13552 Vidya Praveen <vidya.praveen@atmel.com>
13553 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
13554 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
13555 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
13557 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
13558 __MEMX for avrtiny.
13559 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
13560 (avr_nonconst_pointer_addrspace): Likewise.
13561 * config/avr/avr.h (AVR_HAVE_LPM): Define.
13563 Added AVRTINY architecture to avr target.
13564 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
13565 (base_arch_s): member added for AVRTINY architecture.
13566 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
13567 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
13568 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
13569 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
13570 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
13571 in callee saved register list.
13572 (avr_option_override): CCP address updated for AVRTINY.
13573 (avr_init_expanders): tmp and zero rtx initialized as per arch.
13574 Reset avr_have_dimode if AVRTINY.
13575 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
13576 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
13577 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
13578 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
13579 (expand_epilogue): Likewise.
13580 (avr_print_operand): Print CCP address in case of AVRTINY also.
13582 (function_arg_regno_p): Check different register list for arguments
13584 (init_cumulative_args): Check for AVRTINY to update number of argument
13586 (tiny_valid_direct_memory_access_range): New function. Return false if
13587 direct memory access range is not in accepted range for AVRTINY.
13588 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
13589 indirect load (with displacement) for AVRTINY.
13590 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
13591 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
13592 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
13593 indirect load (no displacement) for AVRTINY.
13594 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
13595 indirect load (with displacement) for AVRTINY.
13596 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
13597 indirect load for pre-decrement address.
13598 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
13599 functions. Update instruction length for AVRTINY.
13600 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
13602 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
13603 (out_movsi_r_mr): Likewise, for SImode.
13604 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
13605 indirect store (no displacement) for AVRTINY.
13606 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
13607 indirect store (with displacement) for AVRTINY.
13608 (out_movsi_mr_r): Emit out insn for IO address store. Update store
13609 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
13611 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
13612 indirect load (no displacement) for PSImode in AVRTINY.
13613 (avr_out_load_psi_reg_disp_tiny): New function to handle register
13614 indirect load (with displacement) for PSImode in AVRTINY.
13615 (avr_out_load_psi): Call PSImode register indirect load functions for
13616 AVRTINY. Update instruction length for AVRTINY.
13617 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
13618 indirect store (no displacement) for PSImode in AVRTINY.
13619 (avr_out_store_psi_reg_disp_tiny): New function to handle register
13620 indirect store (with displacement) for PSImode in AVRTINY.
13621 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
13622 register indirect store functions for AVRTINY.
13623 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
13624 register indirect store (with displacement) for AVRTINY.
13625 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
13626 register indirect store function for QImode in AVRTINY.
13627 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
13628 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
13629 indirect store (no displacement) for HImode in AVRTINY.
13630 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
13631 indirect store (with displacement) for HImode in AVRTINY.
13632 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
13633 indirect store for post-increment address in HImode.
13634 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
13635 register indirect store function for HImode in AVRTINY.
13636 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
13637 in case of AVRTINY.
13638 (order_regs_for_local_alloc): Updated register allocation order for
13640 (avr_conditional_register_usage): New function. It is a target hook
13641 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
13642 used registers list and register allocation order for AVRTINY.
13643 (avr_return_in_memory): Update return value size for AVRTINY.
13644 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
13645 for AVRTINY arch and tiny program memory base address.
13646 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
13647 (avr_texinfo): Added description for AVRTINY arch.
13648 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
13649 STATIC_CHAIN_REGNUM for AVRTINY.
13650 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
13651 * config/avr/avr.md: Added constants for tmp/ zero registers in
13652 AVRTINY. Attributes for AVRTINY added.
13653 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
13654 memory access range.
13655 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
13656 in AVRTINY memory access range.
13657 (*mov<mode>): Likewise for HImode and SImode.
13658 (*movsf): Likewise for SFmode.
13659 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
13661 * config/avr/avr-protos.h: Added function prototype for
13662 tiny_valid_direct_memory_access_range.
13663 * config/avr/avr-tables.opt: Regenerate.
13664 * gcc/config/avr/t-multilib: Regenerate.
13665 * doc/avr-mmcu.texi: Regenerate.
13667 2014-10-21 Andrew Pinski <apinski@cavium.com>
13669 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
13670 available option also.
13671 * config/aarch64/aarch64-cost-tables.h: New file.
13672 * config/aarch64/aarch64-cores.def (thunderx): New core.
13673 * config/aarch64/aarch64-tune.md: Regenerate.
13674 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
13675 of config/arm/aarch-cost-tables.h.
13676 (thunderx_regmove_cost): New variable.
13677 (thunderx_tunings): New variable.
13679 2014-10-21 Dehao Chen <dehao@google.com>
13681 * auto-profile.c: New file.
13682 * auto-profile.h: New file.
13683 * basic-block.h (maybe_hot_count_p): New export func.
13684 (add_working_set): New export func.
13685 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
13686 (GCOV_TAG_AFDO_FUNCTION): Likewise.
13687 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
13688 * opts.c (enable_fdo_optimizations): New func.
13689 (common_handle_option): Handle -fauto-profile flag.
13690 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
13691 (class pass_early_inline): Export early_inliner.
13692 (early_inliner): Likewise.
13693 (pass_early_inline::execute): Likewise.
13694 * ipa-inline.h (early_inliner): Likewise.
13695 * predict.c (maybe_hot_count_p): New export func.
13696 (counts_to_freqs): AutoFDO logic.
13697 (rebuild_frequencies): Likewise.
13698 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
13699 * profile.c (add_working_set): New func.
13700 * Makefile.in (auto-profile.o): New object file.
13701 * passes.def (pass_ipa_auto_profile): New pass.
13702 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
13703 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
13704 * toplev.c (compile_file): AutoFDO logic.
13705 * doc/invoke.texi (-fauto-profile): New doc.
13706 * coverage.c (coverage_init): AutoFDO logic.
13707 * common.opt (-fauto-profile): New flag.
13708 * timevar.def (TV_IPA_AUTOFDO): New tag.
13709 * value-prof.c (gimple_alloc_histogram_value): New export func.
13710 (check_ic_target): Likewise.
13711 * value-prof.h (gimple_alloc_histogram_value): Likewise.
13712 (check_ic_target): Likewise.
13714 2014-10-21 David Malcolm <dmalcolm@redhat.com>
13716 * cgraph.c (cgraph_c_finalize): New function.
13717 * cgraph.h (cgraph_c_finalize): New prototype.
13718 (cgraphunit_c_finalize): New prototype.
13719 * cgraphunit.c (first_analyzed): Move from analyze_functions
13721 (first_analyzed_var): Likewise.
13722 (analyze_functions): Move static variables into file-scope.
13723 (cgraphunit_c_finalize): New function.
13724 * diagnostic.c (diagnostic_finish): Free the memory for
13725 context->classify_diagnostic and context->printer, running the
13726 destructor for the latter.
13727 (bt_stop): Use toplev::main.
13728 * dwarf2out.c (dwarf2out_finalize): New function.
13729 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
13730 * gcse.c (gcse_c_finalize): New function.
13731 * gcse.h (gcse_c_finalize): New prototype.
13732 * ggc-page.c (init_ggc): Make idempotent.
13733 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
13734 * ipa-cp.c (ipa_cp_c_finalize): New function.
13735 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
13736 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
13737 a field of class pass_ipa_pure_const.
13738 (node_duplication_hook_holder): Likewise.
13739 (node_removal_hook_holder): Likewise.
13740 (register_hooks): Convert to method...
13741 (pass_ipa_pure_const::register_hooks): ...here, converting
13742 static variable init_p into...
13743 (pass_ipa_pure_const::init_p): ...new field.
13744 (pure_const_generate_summary): Update invocation of
13745 register_hooks to invoke as a method of current_pass.
13746 (pure_const_read_summary): Likewise.
13747 (propagate): Convert to...
13748 (pass_ipa_pure_const::execute): ...method.
13749 * ipa-reference.c (ipa_init): Move static bool init_p from here
13751 (ipa_init_p): New file-scope variable, so that it can be reset
13752 when repeatedly invoking the compiler within one process by...
13753 (ipa_reference_c_finalize): New function.
13754 * ipa-reference.h (ipa_reference_c_finalize): New.
13755 * main.c (main): Replace invocation of toplev_main with
13756 construction of a toplev instance, and call its "main" method.
13757 * params.c (global_init_params): Add an assert that
13758 params_finished is false.
13759 (params_c_finalize): New.
13760 * params.h (params_c_finalize): New.
13761 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
13762 invoking generate_summary, for the benefit of pass_ipa_pure_const.
13763 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
13764 before calling write_summary hook.
13765 (ipa_write_optimization_summaries_1): Likewise when calling
13766 write_optimization_summary hook.
13767 (ipa_read_summaries_1): Likewise for read_summary hook.
13768 (ipa_read_optimization_summaries_1): Likewise for
13769 read_optimization_summary hook.
13770 (execute_ipa_stmt_fixups): Likewise.
13771 * stringpool.c (init_stringpool): Clean up if we're called more
13773 * timevar.c (timevar_init): Ignore repeated calls.
13774 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
13776 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
13777 (initialize_rtl): Move static local "initialized_once"
13778 into file scope, and rename to...
13779 (rtl_initialized): New variable.
13780 (do_compile): Move timevar initialization from here to
13781 toplev::start_timevars.
13782 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
13783 toplev::finalize): New functions.
13784 (toplev_main): Rename to...
13785 (toplev::main): ...this.
13786 * toplev.h (class toplev): New class.
13788 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13790 * loop-doloop.c: Include loop-unroll.h.
13792 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
13794 * cfg.h: New. Header file for cfg.c.
13795 * cfganal.h: New. Header file for cfganal.c.
13796 * lcm.h: New. Header file for lcm.c.
13797 * loop-unroll.h: New. Header file for loop-unroll.h.
13798 * cfgloop.h: (unroll_loops): Remove prototype.
13799 * basic-block.h: Move prototypes and structs to new header files.
13800 Include cfg.h, cfganal.h, and lcm.h.
13801 * loop-init.c: Include loop-unroll.h.
13802 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
13803 * modulo-sched.c: Include loop-unroll.h.
13805 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
13807 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
13808 MARKER_BYTE_UNKNOWN markers when handling casts.
13810 2014-10-21 Richard Biener <rguenther@suse.de>
13812 * tree-ssa-phiopt.c (value_replacement): Properly verify we
13813 are the non-singleton PHI.
13815 2014-10-21 Jakub Jelinek <jakub@redhat.com>
13817 PR tree-optimization/63563
13818 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
13819 if either dra or drb stmts are not normal loads/stores.
13821 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
13823 * config/i386/i386.c (expand_vec_perm_1): Fix
13824 expand_vec_perm_palignr case.
13825 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
13828 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
13830 * cfgloopanal.c (seq_cost): Delete.
13831 * rtl.h (seq_cost): New prototype.
13832 * rtlanal.c (seq_cost): New function.
13833 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
13835 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
13837 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
13838 * basic-block.h: Remove prototypes for cfgrtl.c.
13839 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
13840 prototypes to cfgrtl.h.
13841 * profile.h (profile_info): Add extern export declaration.
13842 * rtl.h: Remove prototypes for cfgrtl.h.
13843 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
13844 * ipa-inline.c: Include profile.h.
13845 * loop-unroll.c: Ditto.
13846 * modulo-sched.c: Ditto.
13847 * postreload-gcse.c: Ditto.
13848 * predict.c: Ditto.
13849 * sched-ebb.c: Ditto.
13850 * sched-rgn.c: Ditto.
13852 * tree-ssa-loop-ivcanon.c: Ditto.
13854 2014-10-20 Richard Biener <rguenther@suse.de>
13856 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
13857 operands to get a def operand kind match. Signal mismatches
13858 to the parent so we can try swapping its operands.
13859 (vect_build_slp_tree): Try swapping operands if they have
13860 a mismatched operand kind.
13862 2014-10-20 Alan Modra <amodra@gmail.com>
13865 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
13866 Increase "ops" array size. Correct array size tests. Init
13867 n_constants in loop. Break out of innermost loop when finding
13868 a trivial CONST expression.
13870 2014-10-20 Martin Liska <mliska@suse.cz>
13873 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
13874 Gimple tempate string is compared.
13876 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
13878 * varasm.c (const_alias_set): Remove.
13879 (init_varasm_once): Remove initialization of const_alias_set.
13880 (build_constant_desc): Do not set alias set to const_alias_set.
13882 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
13884 * configure: Regenerate.
13885 * configure.ac: Move the test for section attribute specifier "e" in GAS
13886 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
13887 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
13888 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
13889 ifdef HAVE_GAS_SECTION_EXCLUDE.
13891 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
13893 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
13894 match_operand expression.
13896 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
13897 David Edelsohn <dje.gcc@gmail.com>
13899 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
13901 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13903 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13905 * doc/invoke.texi (Options to Request or Suppress Warnings):
13906 Explain options precedence.
13907 (Wtrampolines): Do not indent paragraph.
13909 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
13911 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
13912 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
13913 (pa_jump_in_call_delay): Likewise.
13914 * config/pa/pa.c (pa_option_override): Remove jump in call delay
13916 (pa_output_millicode_call): Remove support for jump in call delay.
13917 (pa_output_call): Likewise.
13918 (pa_jump_in_call_delay): Delete.
13919 (pa_following_call): Likewise.
13920 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
13921 (uncond_branch): Remove following call check from attribute length.
13923 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
13926 * config/sh/sh-modes.def (PSI): Remove.
13927 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
13928 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
13929 (sh_reorg): Remove commented out FPSCR code.
13930 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
13931 insn instead of move insn.
13932 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
13933 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
13935 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
13936 (sh1_builtin_p): Uncomment.
13937 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
13938 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
13939 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
13940 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
13941 (general_movsrc_operand, general_movdst_operand): Disallow
13943 * config/sh/sh.md (FPSCR_FR): New constant.
13944 (push_fpscr): Emit sts_fpscr insn.
13945 (pop_fpscr): Emit lds_fpscr_insn.
13946 (movsi_ie): Disallow FPSCR operands.
13947 (fpu_switch, unnamed related split, extend_psi_si,
13948 truncate_si_psi): Remove insns.
13949 (lds_fpscr, sts_fpscr): New insns.
13950 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
13952 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
13954 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
13955 (clone_inlined_nodes): Do not overwrite the clone if above predicate
13958 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
13960 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
13961 (expand_vec_perm_d): Ditto.
13962 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
13963 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
13965 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
13966 (ix86_expand_sse_unpack): Handle V64QImode.
13967 (expand_vec_perm_blend): Update conditions for TARGET, handle
13968 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
13969 (expand_vec_perm_pshufb): Handle V64QImode.
13970 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
13971 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
13972 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
13973 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
13974 (ix86_expand_vecop_qihi): Handle V64QImode.
13975 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
13976 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
13977 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
13978 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
13979 (mul<mode>3): Use VI1_AVX512.
13980 (<sse2_avx2>_packsswb): Ditto.
13981 (<sse2_avx2>_packuswb): Ditto.
13982 (<ssse3_avx2>_pshufb<mode>3): Ditto.
13983 (<shift_insn><mode>3): Ditto.
13985 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
13987 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
13988 conditions to fix bootstrap.
13990 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
13992 gcc-plugin.h: Add tm.h and flattened includes from function.h.
13994 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
13995 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13996 Anna Tikhonova <anna.tikhonova@intel.com>
13997 Ilya Tocar <ilya.tocar@intel.com>
13998 Andrey Turetskiy <andrey.turetskiy@intel.com>
13999 Ilya Verbin <ilya.verbin@intel.com>
14000 Kirill Yukhin <kirill.yukhin@intel.com>
14001 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14003 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
14004 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
14005 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
14006 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
14007 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
14008 (define_expand "vec_init<mode>"): Use VF48_I1248.
14010 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
14011 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14012 Anna Tikhonova <anna.tikhonova@intel.com>
14013 Ilya Tocar <ilya.tocar@intel.com>
14014 Andrey Turetskiy <andrey.turetskiy@intel.com>
14015 Ilya Verbin <ilya.verbin@intel.com>
14016 Kirill Yukhin <kirill.yukhin@intel.com>
14017 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14019 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
14020 expand_sse2_mulvxdi3.
14022 2014-10-17 Richard Biener <rguenther@suse.de>
14024 * fold-const.c (fold_comparison): Remove redundant constant
14025 folding and operand swapping.
14026 (fold_binary_loc): Do comparison operand swapping here.
14027 (fold_ternary_loc): Canonicalize operand order for
14028 commutative ternary operations.
14029 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
14032 2014-10-17 Jakub Jelinek <jakub@redhat.com>
14034 PR tree-optimization/63464
14035 * gimple.h (gimple_seq_discard): New prototype.
14036 * gimple.c: Include stringpool.h and tree-ssanames.h.
14037 (gimple_seq_discard): New function.
14038 * optabs.h (lshift_cheap_p): New prototype.
14039 * optabs.c (lshift_cheap_p): New function, moved from...
14040 * tree-switch-conversion.c (lshift_cheap_p): ... here.
14041 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
14042 (reassoc_branch_fixups): New variable.
14043 (update_range_test): Add otherrangep and seq arguments.
14044 Unshare exp. If otherrange is NULL, use for other ranges
14045 array of pointers pointed by otherrangep instead.
14046 Emit seq before gimplified statements for tem.
14047 (optimize_range_tests_diff): Adjust update_range_test
14049 (optimize_range_tests_xor): Likewise. Fix up comment.
14050 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
14052 (optimize_range_tests): Adjust update_range_test caller.
14053 Call optimize_range_tests_to_bit_test.
14054 (branch_fixup): New function.
14055 (execute_reassoc): Call branch_fixup.
14057 PR tree-optimization/63302
14058 * tree-ssa-reassoc.c (optimize_range_tests_xor,
14059 optimize_range_tests_diff): Use !integer_pow2p () instead of
14062 2014-10-17 Martin Liska <mliska@suse.cz>
14064 * ipa-icf.c (sem_function::merge): Local flags are set to false
14065 to enforce equal calling convention to be used.
14066 * opts.c (common_handle_option): Indentation fix.
14068 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
14070 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
14072 2014-10-17 Tom de Vries <tom@codesourcery.com>
14074 PR rtl-optimization/61605
14075 * regcprop.c (copyprop_hardreg_forward_1): Use
14076 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
14078 2014-10-17 Tom de Vries <tom@codesourcery.com>
14080 PR rtl-optimization/61605
14081 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.
14082 Don't notice stores for noops. Don't regard noops as copies.
14084 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
14086 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
14087 register in a special way.
14088 (__cpuid_count): Ditto.
14089 * config/i386/driver-i386.h: Protect with
14090 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
14091 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
14092 is required to compile the function.
14094 2014-10-16 DJ Delorie <dj@redhat.com>
14096 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
14099 * config/rs6000/rs6000-c.c (rid_int128): New.
14100 (rs6000_macro_to_expand): Use instead of RID_INT128.
14102 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
14104 * function.h: Flatten file. Remove includes, adjust prototypes to
14105 reflect only what is in function.h.
14106 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14107 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
14109 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
14110 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
14111 prototypes to predict.h.
14112 (init_varasm_status): Move prototype to varasm.h.
14113 * expr.h: Adjust include files.
14114 (enum direction, struct args_size, struct locate_and_pad_arg_data,
14115 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
14117 (locate_and_pad_parm): Move prototype to function.h.
14118 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
14119 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
14120 assign_temp, reposition_prologue_and_epilogue_notes,
14121 prologue_epilogue_contains, sibcall_epilogue_contains,
14122 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
14123 set_return_jump_label): Move prototypes to function.h.
14124 * predict.h (optimize_function_for_size_p,
14125 optimize_function_for_speed_p): Relocate prototypes from function.h.
14126 * shrink-wrap.h (emit_return_into_block, active_insn_between,
14127 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
14129 * varasm.h (init_varasm_status): Relocate prototype from function.h.
14130 * genattrtab.c (write_header): Add predict.h to include list.
14131 * genconditions.c (write_header): Add predict.h to include list.
14132 * genemit.c (main): Adjust header file includes.
14133 * gengtype.c (ifiles): Add flattened function.h header files.
14134 * genoutput.c (output_prologue): Add predict.h to include list.
14135 * genpreds.c (write_insn_preds_c): Adjust header file includes.
14136 * genrecog.c (write_header): Add flattened function.h header files.
14137 * alias.c: Adjust include files.
14138 * auto-inc-dec.c: Likewise.
14139 * basic-block.h: Likewise.
14140 * bb-reorder.c: Likewise.
14141 * bt-load.c: Likewise.
14142 * builtins.c: Likewise.
14143 * caller-save.c: Likewise.
14144 * calls.c: Likewise.
14145 * cfgbuild.c: Likewise.
14146 * cfgcleanup.c: Likewise.
14147 * cfgexpand.c: Likewise.
14148 * cfgloop.c: Likewise.
14149 * cfgloop.h: Likewise.
14150 * cfgrtl.c: Likewise.
14151 * cgraph.h: Likewise.
14152 * cgraphclones.c: Likewise.
14153 * cgraphunit.c: Likewise.
14154 * combine-stack-adj.c: Likewise.
14155 * combine.c: Likewise.
14156 * coverage.c: Likewise.
14157 * cprop.c: Likewise.
14159 * cselib.c: Likewise.
14160 * dbxout.c: Likewise.
14162 * df-core.c: Likewise.
14163 * df-problems.c: Likewise.
14164 * df-scan.c: Likewise.
14165 * dojump.c: Likewise.
14166 * dwarf2cfi.c: Likewise.
14167 * dwarf2out.c: Likewise.
14168 * emit-rtl.c: Likewise.
14169 * except.c: Likewise.
14170 * explow.c: Likewise.
14171 * expr.c: Likewise.
14172 * final.c: Likewise.
14173 * function.c: Likewise.
14174 * gcse.c: Likewise.
14175 * gimple-fold.c: Likewise.
14176 * gimple-low.c: Likewise.
14177 * gimple-streamer.h: Likewise.
14178 * haifa-sched.c: Likewise.
14179 * ifcvt.c: Likewise.
14181 * jump.c: Likewise.
14183 * loop-invariant.c: Likewise.
14184 * lra-assigns.c: Likewise.
14185 * lra-coalesce.c: Likewise.
14186 * lra-constraints.c: Likewise.
14187 * lra-eliminations.c: Likewise.
14188 * lra-lives.c: Likewise.
14189 * lra-spills.c: Likewise.
14191 * lto-cgraph.c: Likewise.
14192 * lto-section-in.c: Likewise.
14193 * lto-section-out.c: Likewise.
14194 * lto-streamer-in.c: Likewise.
14195 * lto-streamer-out.c: Likewise.
14196 * mode-switching.c: Likewise.
14197 * modulo-sched.c: Likewise.
14198 * omp-low.c: Likewise.
14199 * optabs.c: Likewise.
14200 * passes.c: Likewise.
14201 * postreload-gcse.c: Likewise.
14202 * postreload.c: Likewise.
14203 * predict.c: Likewise.
14204 * profile.c: Likewise.
14205 * recog.c: Likewise.
14207 * reg-stack.c: Likewise.
14208 * regcprop.c: Likewise.
14209 * reginfo.c: Likewise.
14210 * regrename.c: Likewise.
14211 * reload.c: Likewise.
14212 * reload1.c: Likewise.
14213 * reorg.c: Likewise.
14214 * resource.c: Likewise.
14215 * rtlanal.c: Likewise.
14216 * sched-deps.c: Likewise.
14217 * sched-ebb.c: Likewise.
14218 * sched-rgn.c: Likewise.
14219 * sel-sched-dump.c: Likewise.
14220 * sel-sched-ir.c: Likewise.
14221 * sel-sched.c: Likewise.
14222 * shrink-wrap.c: Likewise.
14223 * simplify-rtx.c: Likewise.
14224 * statistics.c: Likewise.
14225 * stmt.c: Likewise.
14226 * stor-layout.c: Likewise.
14227 * store-motion.c: Likewise.
14228 * symtab.c: Likewise.
14229 * targhooks.c: Likewise.
14230 * toplev.c: Likewise.
14231 * trans-mem.c: Likewise.
14232 * tree-cfg.c: Likewise.
14233 * tree-cfgcleanup.c: Likewise.
14234 * tree-dfa.c: Likewise.
14235 * tree-eh.c: Likewise.
14236 * tree-inline.c: Likewise.
14237 * tree-into-ssa.c: Likewise.
14238 * tree-nested.c: Likewise.
14239 * tree-nrv.c: Likewise.
14240 * tree-profile.c: Likewise.
14241 * tree-ssa-alias.c: Likewise.
14242 * tree-ssa-ccp.c: Likewise.
14243 * tree-ssa-copy.c: Likewise.
14244 * tree-ssa-copyrename.c: Likewise.
14245 * tree-ssa-dom.c: Likewise.
14246 * tree-ssa-operands.c: Likewise.
14247 * tree-ssa-propagate.c: Likewise.
14248 * tree-ssa-structalias.c: Likewise.
14249 * tree-ssa-tail-merge.c: Likewise.
14250 * tree-ssa-threadedge.c: Likewise.
14251 * tree-ssa-threadupdate.c: Likewise.
14252 * tree-ssa-uncprop.c: Likewise.
14253 * tree-ssa-uninit.c: Likewise.
14254 * tree-ssa.c: Likewise.
14255 * tree-stdarg.c: Likewise.
14256 * tree-tailcall.c: Likewise.
14257 * tree.c: Likewise.
14258 * tsan.c: Likewise.
14259 * valtrack.c: Likewise.
14260 * varasm.c: Likewise.
14261 * vmsdbgout.c: Likewise.
14263 * config/aarch64/aarch64.c: Add flattened includes from function.h.
14264 * config/alpha/alpha.c: Likewise.
14265 * config/arc/arc.c: Likewise.
14266 * config/arm/arm.c: Likewise.
14267 * config/avr/avr-log.c: Likewise.
14268 * config/avr/avr.c: Likewise.
14269 * config/bfin/bfin.c: Likewise.
14270 * config/c6x/c6x.c: Likewise.
14271 * config/cr16/cr16.c: Likewise.
14272 * config/cris/cris.c: Likewise.
14273 * config/darwin.c: Likewise.
14274 * config/epiphany/epiphany.c: Likewise.
14275 * config/epiphany/mode-switch-use.c: Likewise.
14276 * config/epiphany/resolve-sw-modes.c: Likewise.
14277 * config/fr30/fr30.c: Likewise.
14278 * config/frv/frv.c: Likewise.
14279 * config/h8300/h8300.c: Likewise.
14280 * config/i386/i386.c: Likewise.
14281 * config/ia64/ia64.c: Likewise.
14282 * config/iq2000/iq2000.c: Likewise.
14283 * config/lm32/lm32.c: Likewise.
14284 * config/m32c/m32c.c: Likewise.
14285 * config/m32r/m32r.c: Likewise.
14286 * config/m68k/m68k.c: Likewise.
14287 * config/mcore/mcore.c: Likewise.
14288 * config/mep/mep-pragma.c: Likewise.
14289 * config/mep/mep.c: Likewise.
14290 * config/microblaze/microblaze.c: Likewise.
14291 * config/mips/mips.c: Likewise.
14292 * config/mmix/mmix.c: Likewise.
14293 * config/mn10300/mn10300.c: Likewise.
14294 * config/moxie/moxie.c: Likewise.
14295 * config/msp430/msp430.c: Likewise.
14296 * config/nds32/nds32-cost.c: Likewise.
14297 * config/nds32/nds32-fp-as-gp.c: Likewise.
14298 * config/nds32/nds32-intrinsic.c: Likewise.
14299 * config/nds32/nds32-isr.c: Likewise.
14300 * config/nds32/nds32-md-auxiliary.c: Likewise.
14301 * config/nds32/nds32-memory-manipulation.c: Likewise.
14302 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14303 * config/nds32/nds32-predicates.c: Likewise.
14304 * config/nds32/nds32.c: Likewise.
14305 * config/nios2/nios2.c: Likewise.
14306 * config/pa/pa.c: Likewise.
14307 * config/pdp11/pdp11.c: Likewise.
14308 * config/rl78/rl78.c: Likewise.
14309 * config/rs6000/rs6000.c: Likewise.
14310 * config/rx/rx.c: Likewise.
14311 * config/s390/s390.c: Likewise.
14312 * config/score/score.c: Likewise.
14313 * config/sh/sh.c: Likewise.
14314 * config/sparc/sparc.c: Likewise.
14315 * config/spu/spu.c: Likewise.
14316 * config/stormy16/stormy16.c: Likewise.
14317 * config/tilegx/tilegx.c: Likewise.
14318 * config/tilepro/tilepro.c: Likewise.
14319 * config/v850/v850.c: Likewise.
14320 * config/vax/vax.c: Likewise.
14321 * config/xtensa/xtensa.c: Likewise.
14323 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
14325 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
14326 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
14328 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14330 * config/sh/sh-protos.h (fldi_ok): Remove.
14331 * config/sh/sh.c (fldi_ok): Likewise.
14332 (sh_secondary_reload): Don't use fldi_ok.
14333 * config/sh/constraints.md (G constraint, H constraint): Don't use
14336 2014-10-16 Martin Liska <mliska@suse.cz>
14338 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
14339 Cast to unsigned long.
14340 (sem_item_optimizer::dump_cong_classes): Likewise.
14342 2014-10-16 Tom de Vries <tom@codesourcery.com>
14344 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
14345 with SSA_NAME_IN_FREELIST.
14347 2014-10-16 Richard Biener <rguenther@suse.de>
14349 PR middle-end/63554
14350 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
14351 (fold_builtin_strncat_chk): Move ...
14352 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
14353 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
14355 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14358 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
14361 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14362 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14363 Anna Tikhonova <anna.tikhonova@intel.com>
14364 Ilya Tocar <ilya.tocar@intel.com>
14365 Andrey Turetskiy <andrey.turetskiy@intel.com>
14366 Ilya Verbin <ilya.verbin@intel.com>
14367 Kirill Yukhin <kirill.yukhin@intel.com>
14368 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14370 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
14373 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14375 Anna Tikhonova <anna.tikhonova@intel.com>
14376 Ilya Tocar <ilya.tocar@intel.com>
14377 Andrey Turetskiy <andrey.turetskiy@intel.com>
14378 Ilya Verbin <ilya.verbin@intel.com>
14379 Kirill Yukhin <kirill.yukhin@intel.com>
14380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14382 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
14383 V16SI, V32HI, V64QI modes.
14385 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
14388 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
14389 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
14391 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
14392 to match fp insn patterns.
14393 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
14395 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
14396 expand_df_unop, expand_df_binop): Remove.
14397 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
14398 FPSCR_STAT_REG as not call clobbered.
14399 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
14400 invoking fpscr_set_from_mem.
14402 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
14403 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
14405 (REGISTER_NAMES): Adjust.
14406 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14407 (FIRST_PSEUDO_REGISTER): Increase to 156.
14408 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
14409 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
14411 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
14412 FPSCR_MODES_REG and FPSCR_STAT_REG.
14413 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
14415 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
14416 FPSCR_SZ): Add new constants.
14417 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
14419 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
14420 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
14421 Use TARGET_FPU_ANY condition.
14422 (fpu_switch peephole2): Remove.
14423 (fpu_switch split): Use simple_mem_operand to capture the mem and
14424 adjust split implementation.
14425 (extend_psi_si, truncate_si_psi): New insns.
14426 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
14427 set of FPSCR_MODES_REG.
14429 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
14430 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
14431 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
14432 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
14433 call_value_compact, call_value_compact_rettramp, call,
14434 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
14435 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
14436 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
14437 sibcall_value_compact, sibcall_value, call_value_pop_compact,
14438 call_value_pop_compact_rettramp, various unnamed splits):
14439 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
14442 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
14443 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
14444 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
14445 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
14446 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
14448 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
14449 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
14450 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
14451 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
14452 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
14453 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
14454 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
14456 2014-10-16 Martin Liska <mliska@suse.cz>
14457 Jan Hubicka <hubicka@ucw.cz>
14459 * Makefile.in: New object files included.
14460 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
14462 (verify_edge_corresponds_to_fndecl): More sensitive verification
14463 of nodes that are merged by IPA ICF.
14464 * cgraph.h (cgraph_node::num_references): New function.
14465 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
14466 * common.opt: New options ipa-icf, ipa-icf-functions and
14467 ipa-icf-variables introduced.
14468 * doc/invoke.texi: Documentation of new options introduced.
14469 * ipa-icf-gimple.c: New file.
14470 * ipa-icf-gimple.h: New file.
14471 * ipa-icf.c: New file.
14472 * ipa-icf.h: New file.
14473 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
14474 (input_overwrite_node): Likewise.
14475 * lto-section-in.c: New icf section added.
14476 * lto-streamer.h (enum lto_section_type): Likewise.
14477 * opts.c (common_handle_option): New option added.
14478 * passes.def: New pass included.
14479 * timevar.def: Time variable for IPA ICF added.
14480 * tree-pass.h: New IPA ICF pass entry point added.
14482 2014-10-16 Richard Biener <rguenther@suse.de>
14484 PR tree-optimization/63168
14485 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
14486 latches if after merging they are no longer simple.
14487 * cfghooks.c (merge_blocks): Handle merging a latch block
14488 into another block.
14490 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14491 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14492 Anna Tikhonova <anna.tikhonova@intel.com>
14493 Ilya Tocar <ilya.tocar@intel.com>
14494 Andrey Turetskiy <andrey.turetskiy@intel.com>
14495 Ilya Verbin <ilya.verbin@intel.com>
14496 Kirill Yukhin <kirill.yukhin@intel.com>
14497 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14499 * config/i386/sse.md
14500 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
14501 support AVX-512VL instructions.
14503 2014-10-16 DJ Delorie <dj@redhat.com>
14505 * tree-core.h: Fix comment to not assume pointers are multiples of
14508 2014-10-15 Tom Tromey <tromey@redhat.com>
14510 * timevar.h (class auto_timevar): New class.
14512 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
14515 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14516 Remove the second alternative.
14517 (regprefix): Remove mode attribute.
14518 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
14519 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
14522 2013-11-05 Ian Lance Taylor <iant@google.com>
14524 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14525 If possible, add .cfi directives to record change to bx.
14526 * config/i386/i386.c (ix86_emit_cfi): New function.
14527 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
14529 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
14532 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
14534 * lto-streamer-out.c (lto_output): Handle correctly thunks that was
14537 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
14539 PR rtl-optimization/63448
14540 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
14541 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
14542 (LRA_MAX_INHERITANCE_PASSES): Use it.
14543 (lra_constraint_iter_after_spill): Remove.
14544 (lra_assignment_iter): New.
14545 (lra_assignment_iter_after_spill): New.
14546 * lra-assigns.c (lra_assignment_iter): New.
14547 (lra_assignment_iter_after_spill): New.
14548 (former_reload_pseudo_spill_p): New.
14549 (spill_for): Set up former_reload_pseudo_spill_p.
14550 (setup_live_pseudos_and_spill_after_risky): Ditto.
14551 (assign_by_spills): Ditto.
14552 (lra_assign): Increment lra_assignment_iter. Print the iteration
14553 number. Reset former_reload_pseudo_spill_p. Check
14554 lra_assignment_iter_after_spill.
14555 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
14556 lra_assignment_iter and lra_assignment_iter_after_spill.
14557 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
14558 (lra_constraints): Remove code with
14559 lra_assignment_iter_after_spill.
14561 2014-10-15 Teresa Johnson <tejohnson@google.com>
14564 * tree-ssa-threadupdate.c (recompute_probabilities): Better
14567 2014-10-15 Renlin Li <renlin.li@arm.com>
14569 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14570 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
14571 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
14572 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
14574 2014-10-15 Richard Biener <rguenther@suse.de>
14576 * gimple-fold.c (gimple_fold_call): Properly keep virtual
14577 SSA form up-to-date when devirtualizing a call to
14578 __builtin_unreachable and avoid fixing up EH info here.
14580 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14582 Anna Tikhonova <anna.tikhonova@intel.com>
14583 Ilya Tocar <ilya.tocar@intel.com>
14584 Andrey Turetskiy <andrey.turetskiy@intel.com>
14585 Ilya Verbin <ilya.verbin@intel.com>
14586 Kirill Yukhin <kirill.yukhin@intel.com>
14587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14589 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
14590 to support AVX-512BW.
14591 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
14592 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
14593 (define_insn "*<plusminus_insn><mode>3"): Ditto.
14594 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
14595 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14596 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
14597 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
14598 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
14599 (define_insn "*andnot<mode>3"): Ditto.
14600 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
14601 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
14602 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
14603 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
14604 (define_insn "*abs<mode>2"): Remove masking support.
14605 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
14606 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
14607 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
14609 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
14610 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14611 Anna Tikhonova <anna.tikhonova@intel.com>
14612 Ilya Tocar <ilya.tocar@intel.com>
14613 Andrey Turetskiy <andrey.turetskiy@intel.com>
14614 Ilya Verbin <ilya.verbin@intel.com>
14615 Kirill Yukhin <kirill.yukhin@intel.com>
14616 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14618 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
14619 * config/i386/sse.md
14620 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
14621 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
14622 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
14623 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14624 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
14625 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14626 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
14628 2014-10-15 Renlin Li <renlin.li@arm.com>
14630 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
14632 2014-10-15 Jakub Jelinek <jakub@redhat.com>
14634 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
14635 MINUS_EXPR in unsigned type to avoid undefined behavior.
14637 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
14639 * stor-layout.c (self_referential_size): Do not promote arguments.
14641 2014-10-15 Marek Polacek <polacek@redhat.com>
14643 * doc/invoke.texi: Update to reflect that GNU11 is the default
14645 * c-common.h (c_language_kind): Update comment.
14647 2014-10-15 Richard Biener <rguenther@suse.de>
14649 * hash-table.c: Include bconfig.h if building for the host.
14650 * hash-table.h: Do not include ggc.h on the host but just declare
14651 a few ggc allocation templates.
14653 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
14654 Jeff Law <law@redhat.com>
14656 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
14657 multiple hard registers, use smaller mode derived from MODE.
14659 2014-10-15 Andreas Schwab <schwab@suse.de>
14661 * explow.c (convert_memory_address_addr_space_1): Mark in_const
14662 as ATTRIBUTE_UNUSED.
14664 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
14666 * loop-unroll.c (decide_unrolling_and_peeling): Rename to
14667 (decide_unrolling): ... this one.
14668 (peel_loops_completely): Remove.
14669 (decide_peel_simple): Remove.
14670 (decide_peel_once_rolling): Remove.
14671 (decide_peel_completely): Remove.
14672 (peel_loop_simple): Remove.
14673 (peel_loop_completely): Remove.
14674 (unroll_and_peel_loops): Rename to ...
14675 (unroll_loops): ... this one; handle only unrolling.
14676 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and LPT_PEEL_SIMPLE.
14677 (UAP_PEEL): Remove.
14678 (unroll_and_peel_loops): Remove.
14679 (unroll_loops): New.
14680 * passes.def: Replace pass_rtl_unroll_and_peel_loops
14681 by pass_rtl_unroll_loops.
14682 * loop-init.c (gate_rtl_unroll_and_peel_loops,
14683 rtl_unroll_and_peel_loops): Rename to ...
14684 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
14685 (pass_rtl_unroll_and_peel_loops): Rename to ...
14686 (pass_rtl_unroll_loops): ... this one.
14687 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
14688 (make_pass_rtl_unroll_loops): New.
14689 * tree-ssa-loop-ivcanon.c (estimated_peeled_sequence_size,
14690 try_peel_loop): New.
14691 (canonicalize_loop_induction_variables): Update.
14693 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14695 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
14696 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
14697 !TARGET_HARD_FLOAT_POSTINC.
14698 (*lsip, *ssip): new instructions.
14700 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
14702 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
14705 2014-10-14 Andrew Pinski <apinski@cavium.com>
14707 * explow.c (convert_memory_address_addr_space): Rename to ...
14708 (convert_memory_address_addr_space_1): This. Add in_const argument.
14709 Inside a CONST RTL, permute the conversion and addition of constant
14710 for zero and sign extended pointers.
14711 (convert_memory_address_addr_space): New function.
14713 2014-10-14 Andrew Pinski <apinski@cavium.com>
14716 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14718 PR middle-end/49721
14719 * explow.c (convert_memory_address_addr_space): Also permute the
14720 conversion and addition of constant for zero-extend.
14722 2014-10-14 DJ Delorie <dj@redhat.com>
14724 * config/msp430/msp430-modes.def (PSI): Add.
14726 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding):
14728 (msp430_hard_regno_nregs_with_padding): New.
14729 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
14730 (msp430_hard_regno_nregs_has_padding): New.
14731 (msp430_hard_regno_nregs_with_padding): New.
14732 (msp430_unwind_word_mode): Use PSImode instead of SImode.
14733 (msp430_addr_space_legitimate_address_p): New.
14734 (msp430_asm_integer): New.
14735 (msp430_init_dwarf_reg_sizes_extra): New.
14736 (msp430_print_operand): Use X suffix for PSImode even in small model.
14737 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
14738 (PTR_SIZE): ...but 4 bytes for EH.
14739 (SIZE_TYPE): Use __int20.
14740 (PTRDIFF_TYPE): Likewise.
14741 (INCOMING_FRAME_SP_OFFSET): Adjust.
14742 * config/msp430/msp430.md (movqi_topbyte): New.
14743 (movpsi): Use fixed suffixes.
14744 (movsipsi2): Enable for 430X, not large model.
14745 (extendhipsi2): Likewise.
14746 (zero_extendhisi2): Likewise.
14747 (zero_extendhisipsi2): Likewise.
14748 (extend_and_shift1_hipsi2): Likewise.
14749 (extendpsisi2): Likewise.
14750 (*bitbranch<mode>4_z): Fix suffix logic.
14752 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
14755 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
14756 do not choke on null node.
14757 <VAR_DECL>: Likewise.
14759 2014-10-14 DJ Delorie <dj@redhat.com>
14761 * machmode.h (int_n_data_t): New.
14762 (int_n_enabled_p): New.
14764 * tree.c (int_n_enabled_p): New.
14765 (int_n_trees): New.
14766 (make_or_reuse_type): Check for all __intN types, not just __int128.
14767 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
14769 * tree.h (int128_integer_type_node): Remove.
14770 (int128_unsigned_type_node): Remove.
14771 (int_n_trees_t): New.
14772 (int_n_enabled_p): New.
14773 (int_n_trees): New.
14774 * toplev.c (standard_type_bitsize): New.
14775 (do_compile): Check which __intN types are enabled for the current run.
14776 * builtin-types.def (BT_INT128): Remove.
14777 (BT_UINT128): Remove.
14778 * machmode.def: Add macro to create __int128 for all targets.
14779 * stor-layout.c (mode_for_size): Support __intN types.
14780 (smallest_mode_for_size): Likewise.
14781 (initialize_sizetypes): Support __intN types.
14782 * genmodes.c (struct mode_data): Add int_n field.
14783 (blank_mode): Likewise.
14786 (emit_insn_modes_h): Count __intN entries and define NUM_INT_N_ENTS.
14787 (emit_mode_int_n): New.
14788 (emit_insn_modes_c): Call it.
14789 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
14790 types, not just __int128.
14791 * tree-core.h (integer_type_kind): Remove __int128-specific
14792 entries, reserve spots for __intN entries.
14794 * config/msp430/msp430-modes.def (PSI): Add.
14796 2014-10-14 Kito Cheng <kito@0xlab.org>
14798 * ira.c: Fix typo in comment.
14800 * ira-build.c: Ditto.
14801 * ira-color.c: Ditto.
14802 * ira-emit.c: Ditto.
14803 * ira-int.h: Ditto.
14804 * ira-lives.c: Ditto.
14806 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
14808 PR rtl-optimization/63475
14809 * alias.c (true_dependence_1): Always use get_addr to extract
14810 true address operands from x_addr and mem_addr. Use extracted
14811 address operands to check for references with alignment ANDs.
14812 Use extracted address operands with find_base_term and
14813 base_alias_check. For noncanonicalized operands call canon_rtx with
14814 extracted address operand.
14815 (write_dependence_1): Ditto.
14816 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
14818 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
14821 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
14824 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14826 Anna Tikhonova <anna.tikhonova@intel.com>
14827 Ilya Tocar <ilya.tocar@intel.com>
14828 Andrey Turetskiy <andrey.turetskiy@intel.com>
14829 Ilya Verbin <ilya.verbin@intel.com>
14830 Kirill Yukhin <kirill.yukhin@intel.com>
14831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14833 * config/i386/i386.c
14834 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
14835 (ix86_expand_int_vcond): Ditto.
14837 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14839 Anna Tikhonova <anna.tikhonova@intel.com>
14840 Ilya Tocar <ilya.tocar@intel.com>
14841 Andrey Turetskiy <andrey.turetskiy@intel.com>
14842 Ilya Verbin <ilya.verbin@intel.com>
14843 Kirill Yukhin <kirill.yukhin@intel.com>
14844 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14846 * config/i386/i386.c
14847 (emit_reduc_half): Handle V64QI and V32HI mode.
14848 * config/i386/sse.md
14849 (define_mode_iterator VI_AVX512BW): New.
14850 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
14852 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14853 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14854 Anna Tikhonova <anna.tikhonova@intel.com>
14855 Ilya Tocar <ilya.tocar@intel.com>
14856 Andrey Turetskiy <andrey.turetskiy@intel.com>
14857 Ilya Verbin <ilya.verbin@intel.com>
14858 Kirill Yukhin <kirill.yukhin@intel.com>
14859 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14861 * config/i386/sse.md
14862 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
14864 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14865 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14866 Anna Tikhonova <anna.tikhonova@intel.com>
14867 Ilya Tocar <ilya.tocar@intel.com>
14868 Andrey Turetskiy <andrey.turetskiy@intel.com>
14869 Ilya Verbin <ilya.verbin@intel.com>
14870 Kirill Yukhin <kirill.yukhin@intel.com>
14871 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14873 * config/i386/i386.c
14874 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
14875 * config/i386/sse.md
14876 (define_mode_iterator VI): Add V64QI and V32HI modes.
14878 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14879 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14880 Anna Tikhonova <anna.tikhonova@intel.com>
14881 Ilya Tocar <ilya.tocar@intel.com>
14882 Andrey Turetskiy <andrey.turetskiy@intel.com>
14883 Ilya Verbin <ilya.verbin@intel.com>
14884 Kirill Yukhin <kirill.yukhin@intel.com>
14885 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14887 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
14889 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14891 Anna Tikhonova <anna.tikhonova@intel.com>
14892 Ilya Tocar <ilya.tocar@intel.com>
14893 Andrey Turetskiy <andrey.turetskiy@intel.com>
14894 Ilya Verbin <ilya.verbin@intel.com>
14895 Kirill Yukhin <kirill.yukhin@intel.com>
14896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14898 * config/i386/sse.md
14899 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
14900 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
14902 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14903 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14904 Anna Tikhonova <anna.tikhonova@intel.com>
14905 Ilya Tocar <ilya.tocar@intel.com>
14906 Andrey Turetskiy <andrey.turetskiy@intel.com>
14907 Ilya Verbin <ilya.verbin@intel.com>
14908 Kirill Yukhin <kirill.yukhin@intel.com>
14909 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14911 * config/i386/sse.md
14912 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
14913 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
14915 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14916 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14917 Anna Tikhonova <anna.tikhonova@intel.com>
14918 Ilya Tocar <ilya.tocar@intel.com>
14919 Andrey Turetskiy <andrey.turetskiy@intel.com>
14920 Ilya Verbin <ilya.verbin@intel.com>
14921 Kirill Yukhin <kirill.yukhin@intel.com>
14922 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14924 * config/i386/sse.md
14925 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
14926 (define_mode_iterator VI2_AVX2): Add V32HI mode.
14927 (define_expand "mul<mode>3<mask_name>"): Add masking.
14928 (define_insn "*mul<mode>3<mask_name>"): Ditto.
14929 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
14930 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
14931 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
14932 (define_mode_attr SDOT_PMADD_SUF): Ditto.
14933 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
14934 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
14935 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
14936 (define_insn "avx2_packusdw"): Delete.
14937 (define_insn "sse4_1_packusdw"): Ditto.
14938 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
14940 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14941 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14942 Anna Tikhonova <anna.tikhonova@intel.com>
14943 Ilya Tocar <ilya.tocar@intel.com>
14944 Andrey Turetskiy <andrey.turetskiy@intel.com>
14945 Ilya Verbin <ilya.verbin@intel.com>
14946 Kirill Yukhin <kirill.yukhin@intel.com>
14947 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14949 * config/i386/sse.md
14950 (define_insn "vec_dup<mode>"): Update constraints.
14952 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14953 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14954 Anna Tikhonova <anna.tikhonova@intel.com>
14955 Ilya Tocar <ilya.tocar@intel.com>
14956 Andrey Turetskiy <andrey.turetskiy@intel.com>
14957 Ilya Verbin <ilya.verbin@intel.com>
14958 Kirill Yukhin <kirill.yukhin@intel.com>
14959 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14961 * config/i386/sse.md
14962 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
14963 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
14964 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
14966 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14968 Anna Tikhonova <anna.tikhonova@intel.com>
14969 Ilya Tocar <ilya.tocar@intel.com>
14970 Andrey Turetskiy <andrey.turetskiy@intel.com>
14971 Ilya Verbin <ilya.verbin@intel.com>
14972 Kirill Yukhin <kirill.yukhin@intel.com>
14973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14975 * config/i386/sse.md
14976 (define_expand "mul<mode>3<mask_name>"): Add masking.
14978 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14979 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14980 Anna Tikhonova <anna.tikhonova@intel.com>
14981 Ilya Tocar <ilya.tocar@intel.com>
14982 Andrey Turetskiy <andrey.turetskiy@intel.com>
14983 Ilya Verbin <ilya.verbin@intel.com>
14984 Kirill Yukhin <kirill.yukhin@intel.com>
14985 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14987 * config/i386/sse.md
14988 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
14989 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
14991 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14993 Anna Tikhonova <anna.tikhonova@intel.com>
14994 Ilya Tocar <ilya.tocar@intel.com>
14995 Andrey Turetskiy <andrey.turetskiy@intel.com>
14996 Ilya Verbin <ilya.verbin@intel.com>
14997 Kirill Yukhin <kirill.yukhin@intel.com>
14998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15000 * config/i386/sse.md
15001 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
15002 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
15003 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
15006 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15007 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15008 Anna Tikhonova <anna.tikhonova@intel.com>
15009 Ilya Tocar <ilya.tocar@intel.com>
15010 Andrey Turetskiy <andrey.turetskiy@intel.com>
15011 Ilya Verbin <ilya.verbin@intel.com>
15012 Kirill Yukhin <kirill.yukhin@intel.com>
15013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15015 * config/i386/sse.md
15016 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
15017 use VF_128_256 mode iterator and update assembler emit code.
15018 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
15019 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
15020 Add masking, use VF_128_256 mode iterator.
15021 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
15022 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
15023 Add masking, use VF_128_256 mode iterator and update assembler emit
15025 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
15026 (define_mode_attr avx512flogicsuff): Delete.
15027 (define_insn "avx512f_<logic><mode>"): Ditto.
15028 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
15030 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
15032 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15033 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15034 Anna Tikhonova <anna.tikhonova@intel.com>
15035 Ilya Tocar <ilya.tocar@intel.com>
15036 Andrey Turetskiy <andrey.turetskiy@intel.com>
15037 Ilya Verbin <ilya.verbin@intel.com>
15038 Kirill Yukhin <kirill.yukhin@intel.com>
15039 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15041 * config/i386/sse.md
15042 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
15043 (define_expand "vashr<mode>3<mask_name>"): Add masking,
15044 use VI12_128 mode iterator.
15045 (define_expand "ashrv2di3<mask_name>"): New.
15047 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15048 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15049 Anna Tikhonova <anna.tikhonova@intel.com>
15050 Ilya Tocar <ilya.tocar@intel.com>
15051 Andrey Turetskiy <andrey.turetskiy@intel.com>
15052 Ilya Verbin <ilya.verbin@intel.com>
15053 Kirill Yukhin <kirill.yukhin@intel.com>
15054 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15056 * config/i386/i386.c
15057 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
15058 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
15059 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
15060 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
15061 CODE_FOR_avx512vl_ucmpv4si3_mask.
15062 * config/i386/sse.md
15063 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
15064 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
15066 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
15067 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
15068 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
15069 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
15070 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
15071 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
15073 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15074 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15075 Anna Tikhonova <anna.tikhonova@intel.com>
15076 Ilya Tocar <ilya.tocar@intel.com>
15077 Andrey Turetskiy <andrey.turetskiy@intel.com>
15078 Ilya Verbin <ilya.verbin@intel.com>
15079 Kirill Yukhin <kirill.yukhin@intel.com>
15080 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15082 * config/i386/sse.md
15083 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
15084 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
15085 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
15086 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
15087 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
15088 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
15089 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15090 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
15091 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
15093 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15095 Anna Tikhonova <anna.tikhonova@intel.com>
15096 Ilya Tocar <ilya.tocar@intel.com>
15097 Andrey Turetskiy <andrey.turetskiy@intel.com>
15098 Ilya Verbin <ilya.verbin@intel.com>
15099 Kirill Yukhin <kirill.yukhin@intel.com>
15100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15102 * config/i386/sse.md
15103 (define_insn "avx512f_blendm<mode>"): Delete.
15104 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
15105 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
15106 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
15107 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
15109 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15112 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15115 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
15117 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
15118 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
15119 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
15120 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
15123 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
15126 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
15128 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
15131 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
15134 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
15137 2014-10-14 Richard Biener <rguenther@suse.de>
15139 PR tree-optimization/63512
15140 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
15143 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
15146 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
15147 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
15149 (negsf2_i): Rename to *negsf2_i.
15150 (abssf2_i): Rename to *abssf2_i.
15151 (negdf2_i): Rename to *negdf2_i.
15152 (absdf2_i): Rename to *absdf2_i.
15154 2014-10-14 Felix Yang <felix.yang@huawei.com>
15155 Jeff Law <law@redhat.com>
15157 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
15158 "replace" into boolean bitfields; turn member "loop_depth" into a short
15159 integer; add new member "no_equiv" and "reserved".
15160 (no_equiv): Set no_equiv of struct equivalence if register is marked
15161 as having no known equivalence.
15162 (update_equiv_regs): Check all definitions for a multiple-set
15163 register to make sure that the RHS have the same value.
15165 2014-10-13 Richard Henderson <rth@redhat.com>
15167 * combine-stack-adj.c (no_unhandled_cfa): New.
15168 (maybe_merge_cfa_adjust): New.
15169 (combine_stack_adjustments_for_block): Use them.
15171 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
15173 * Makefile.in (TAGS): Tag ../include files.
15175 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15177 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
15178 to rs6000_dbx_register_number.
15179 (DWARF_FRAME_REGNUM): Redefine as identity map.
15180 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
15181 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
15182 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
15183 argument to handle .debug_frame and .eh_frame directly. Always
15184 translate SPE high register numbers. Add special treatment for CR,
15185 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
15187 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
15188 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
15189 (RS6000_USE_DWARF_NUMBERING): Define.
15190 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
15191 (RS6000_USE_DWARF_NUMBERING): Define.
15192 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
15193 (RS6000_USE_DWARF_NUMBERING): Define.
15194 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
15195 (RS6000_USE_DWARF_NUMBERING): Define.
15196 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
15197 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
15199 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15201 * config/i386/i386.c (ix86_address_cost): Lower cost for
15202 when address contains GOT register.
15204 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
15205 Vladimir Makarov <vmakarov@redhat.com>
15208 PR middle-end/47602
15209 PR rtl-optimization/55458
15210 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
15211 (ix86_init_pic_reg): New.
15212 (ix86_select_alt_pic_regnum): Add check on pseudo register.
15213 (ix86_save_reg): Likewise.
15214 (ix86_expand_prologue): Remove PIC register initialization
15215 now performed in ix86_init_pic_reg.
15216 (ix86_output_function_epilogue): Add check on pseudo register.
15217 (set_pic_reg_ever_alive): New.
15218 (legitimize_pic_address): Replace df_set_regs_ever_live with new
15219 set_pic_reg_ever_alive.
15220 (legitimize_tls_address): Likewise.
15221 (ix86_pic_register_p): New check.
15222 (ix86_delegitimize_address): Add check on pseudo register.
15223 (ix86_expand_call): Insert move from pseudo PIC register to ABI
15224 defined REAL_PIC_OFFSET_TABLE_REGNUM.
15225 (TARGET_INIT_PIC_REG): New.
15226 (TARGET_USE_PSEUDO_PIC_REG): New.
15227 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
15228 if pic_offset_table_rtx exists.
15229 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
15231 * doc/tm.texi: Regenerate.
15232 * function.c (assign_parms): Generate pseudo register for PIC.
15233 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
15235 * ira-color.c (color_pass): Add check on pseudo register.
15236 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
15238 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
15240 (ira): Add target specific PIC register initialization.
15241 (do_reload): Keep PIC pseudo register.
15242 * lra-assigns.c (spill_for): Add checks on pseudo register.
15243 * lra-constraints.c (contains_symbol_ref_p): New.
15244 (lra_constraints): Enable lra risky transformations when PIC is pseudo
15246 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
15247 * target.def (use_pseudo_pic_reg): New.
15248 (init_pic_reg): New.
15250 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
15252 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
15253 Remove m_SILVERMONT and m_INTEL from the tune.
15255 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15257 PR libfortran/63471
15258 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15259 when _HPUX_SOURCE is defined.
15261 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15263 PR tree-optimization/62127
15264 * tree.c (remap_type_1): When remapping array, remap
15267 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
15269 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
15270 longer impact parallelization.
15272 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
15275 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
15277 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
15279 * asan.c (instrument_derefs): BIT_FIELD_REF added.
15281 2014-10-13 Richard Biener <rguenther@suse.de>
15283 PR tree-optimization/63419
15284 * gimple-fold.h (gimple_convert): New function.
15285 * gimple-fold.c (gimple_convert): Likewise.
15286 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
15287 to split out required conversions early.
15289 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
15291 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
15292 Add the parts of an insn in reverse order, with the pattern at
15293 the top of the queue. Detect when we're iterating over a SEQUENCE
15294 pattern and in that case just consider patterns of subinstructions.
15296 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
15299 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
15301 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
15303 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
15304 address. Use def chains to handle GBR clobbering call insns.
15306 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
15308 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
15309 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
15310 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
15311 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
15312 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
15313 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
15314 * doc/gty.texi (for_user): Document new option.
15315 * gengtype.c (create_user_defined_type): Don't try to get a struct for
15317 (walk_type): Don't error out on for_user option.
15318 (write_func_for_structure): Emit user marking routines if requested by
15320 (write_local_func_for_structure): Likewise.
15321 (main): Mark types with for_user option as used.
15322 * ggc.h (gt_pch_nx): Add overload for unsigned int.
15323 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
15324 * hash-table.h (ggc_hasher): New struct.
15325 (hash_table::create_ggc): New function.
15326 (gt_pch_nx): New overload for hash_table.
15328 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
15330 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
15331 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
15332 * config/sh/sh.c: Likewise.
15333 * config/sh/sh-mem.cc: Likewise.
15334 * config/sh/sh.md: Likewise.
15335 * config/sh/predicates.md: Likewise.
15336 * config/sh/sync.md: Likewise.
15338 2014-10-11 Martin Liska <mliska@suse.cz>
15340 PR middle-end/63376
15341 * cgraphunit.c (symbol_table::process_new_functions): Missing call
15342 for call_cgraph_insertion_hooks added.
15344 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15347 * stor-layout.c (min_align_of_type): Don't decrease alignment
15348 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
15349 TYPE_USER_ALIGN is set.
15351 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
15353 PR rtl-optimization/63483
15354 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
15355 references when alignment ANDs are involved.
15356 (write_dependence_p): Ditto.
15357 (may_alias_p): Ditto.
15359 2014-10-10 Marek Polacek <polacek@redhat.com>
15361 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
15362 * doc/invoke.texi: Document -fsanitize=object-size.
15363 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
15364 or it into SANITIZE_UNDEFINED.
15365 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
15366 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
15367 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
15368 * opts.c (common_handle_option): Handle -fsanitize=object-size.
15369 * ubsan.c: Include tree-object-size.h.
15370 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
15371 (ubsan_expand_bounds_ifn): Use false instead of 0.
15372 (ubsan_expand_objsize_ifn): New function.
15373 (instrument_object_size): New function.
15374 (pass_ubsan::execute): Add object size instrumentation.
15375 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
15377 2014-10-10 Richard Henderson <rth@redhat.com>
15380 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
15381 Restrict the set of expressions we're willing to move.
15383 2014-10-10 Jeff Law <law@redhat.com>
15385 * ira.c (struct equivalence): Promote INIT_INSNs field to
15386 an rtx_insn_list. Add comments.
15387 (no_equiv): Promote LIST to an rtx_insn_list. Update
15388 testing for and creating the special marker. Use methods
15389 to extract the insn and next pointers. Promote INSN to an
15391 (update_equiv_regs): Update test for special marker in the
15394 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15396 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
15397 * configure: Regenerate.
15398 * config/aarch64/aarch64.c (aarch64_override_options): Handle
15399 TARGET_FIX_ERR_A53_835769_DEFAULT.
15400 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
15402 * doc/install.texi (aarch64*-*-*): Document
15403 new --enable-fix-cortex-a53-835769 option.
15405 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15406 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15408 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
15409 (ADJUST_INSN_LENGTH): Define.
15410 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
15411 * config/aarch64/aarch64.c (is_mem_p): New function.
15412 (is_memory_op): Likewise.
15413 (aarch64_prev_real_insn): Likewise.
15414 (is_madd_op): Likewise.
15415 (dep_between_memop_and_curr): Likewise.
15416 (aarch64_madd_needs_nop): Likewise.
15417 (aarch64_final_prescan_insn): Likewise.
15418 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
15419 and -mno-fix-cortex-a53-835769 options.
15421 2014-10-10 Jakub Jelinek <jakub@redhat.com>
15423 PR tree-optimization/63464
15424 * tree-switch-conversion.c (struct case_bit_test): Remove
15425 hi and lo fields, add wide_int mask field.
15426 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
15427 hi/lo fields into wide_int mask operations, optimize by pretending
15428 minval to be 0 if maxval is small enough.
15429 (process_switch): Adjust caller.
15431 2014-10-10 Richard Biener <rguenther@suse.de>
15433 PR tree-optimization/63379
15434 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
15435 a neutral operand for min/max when it is not a reduction chain.
15437 2014-10-10 Richard Biener <rguenther@suse.de>
15439 PR tree-optimization/63476
15440 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
15441 (BB_LIVE_VOP_ON_EXIT): New define.
15442 (create_expression_by_pieces): Assign VUSEs to stmts.
15443 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
15444 (pass_pre::execute): Assert virtual SSA form is up-to-date
15447 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
15449 * lra-assigns.c (assign_by_spills): Error out on spill failure.
15451 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
15453 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
15456 2014-10-09 Richard Biener <rguenther@suse.de>
15458 PR tree-optimization/63380
15459 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
15462 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
15464 * config/avr/avr.opt (mmcu=): Change to have a string value.
15465 (mn-flash=, mskip-bug, march=, mrmw): New options.
15466 (HeaderInclude): New.
15467 (mmcu=): Remove Var / Init clauses.
15468 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
15470 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
15471 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
15472 (SYMBOL_FLAG_IO_LOW): Define.
15473 (avr_device_to_as, avr_device_to_ld): Don't declare.
15474 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
15475 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
15476 (EXTRA_SPEC_FUNCTIONS): Don't define.
15477 (ASM_SPEC): Translate -arch= option to -mmcu= option.
15478 (LINK_SPEC): Translate -arch= option to -m= option.
15479 Don't use device_to_ld / device_to_data_start.
15480 (STARTFILE_SPEC): Now empty.
15481 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
15482 * config/avr/gen-avr-mmcu-specs.c: New file.
15483 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
15484 (s-device-specs): Likewise.
15485 (GCC_PASSES): Add s-device-specs.
15486 (install-driver): Depend on install-device-specs.
15487 (install-device-specs): New rule.
15488 * config/avr/avr.c (avr_option_override): Look up mcu arch by
15489 avr_arch_index and provide fallback initialization for avr_n_flash.
15490 (varasm.h): #include.
15491 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
15492 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
15493 (avr_attribute_table): Add "io", "address" and "io_low".
15494 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
15495 Add special handling for symbols with "io" and/or "address" attributes.
15496 (avr_asm_asm_output_aligned_bss): New function.
15497 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
15498 as appropriate. Handle io_low attribute.
15499 (avr_out_sbxx_branch): Handle symbolic io addresses.
15500 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
15501 avr_n_flash instead of avr_current_device->n_flash.
15502 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
15503 (avr_emit_movmemhi): Likewise.
15504 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
15505 Use TARGET_RMW instead of avr_current_device->dev_attributes.
15506 Don't define avr_current_device->macro (that's the specfile's job).
15507 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
15508 * config/avr/avr.c (avr_2word_insn_p): Likewise.
15509 * config/avr/avr.md (*cpse.ne): Likewise.
15510 (mov<mode>): Use avr_eval_addr_attrib.
15511 (cbi): Change constraint for low_io_address_operand operand to "i".
15512 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
15513 * config/avr/predicates.md (io_address_operand):
15514 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
15515 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
15516 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
15518 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
15519 * config/avr/genmultilib.awk: Use -march=.
15520 Remove Multilib matches processing.
15521 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
15522 * config/avr/avr-arch.h: Add double include guard.
15523 (avr_mcu_t) <library_name>: Update comment.
15524 * config/avr/driver-avr.c (avr_device_to_as): Delete.
15525 (avr_device_to_ld, avr_device_to_data_start): Likewise.
15526 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
15527 (avr_device_to_sp8): Likewise.
15528 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
15530 * doc/extend.texi (io, address): Document new AVR variable attributes.
15531 (io_low): Likewise.
15533 2014-10-09 Marek Polacek <polacek@redhat.com>
15535 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
15537 2014-10-08 Richard Biener <rguenther@suse.de>
15539 PR tree-optimization/61969
15540 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
15543 2014-10-09 Richard Biener <rguenther@suse.de>
15545 PR tree-optimization/63445
15546 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
15547 overflow for non-equality compares.
15549 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
15551 PR rtl-optimization/57003
15552 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15553 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
15554 killing regs_invalidated_by_call.
15556 2014-10-08 Teresa Johnson <tejohnson@google.com>
15558 PR bootstrap/63432.
15559 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
15560 (ssa_fix_duplicate_block_edges): Invoke it.
15561 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
15563 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
15566 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15567 atomic_fetch_<fetchop_name>si_hard,
15568 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
15569 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
15570 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
15571 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
15573 2014-10-08 Rong Xu <xur@google.com>
15575 * gcov-tool.c (profile_overlap): New driver function
15576 to compute profile overlap.
15577 (print_overlap_usage_message): New.
15578 (overlap_usage): New.
15580 (print_usage): Add calls to overlap function.
15582 * doc/gcov-tool.texi: Add documentation.
15584 2014-10-08 Steve Ellcey <sellcey@mips.com>
15586 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
15587 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
15589 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
15591 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
15592 pattern matching of MEM_REF.
15593 (check_stmt_for_type_change): Update.
15595 2014-10-08 Steve Ellcey <sellcey@mips.com>
15597 * config/mips/linux64.h: Remove.
15598 * config/mips/gnu-user64.h: Remove.
15599 * gcc.config (mips*-*-*): Remove references to linux64.h and
15601 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
15602 with modified version from gnu-user64.h.
15603 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
15604 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
15605 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
15607 (GNU_USER_LINK_EMULATION64): Ditto.
15608 (GNU_USER_LINK_EMULATIONN32): Ditto.
15609 (GLIBC_DYNAMIC_LINKER32): Ditto.
15610 (GLIBC_DYNAMIC_LINKER64): Ditto.
15611 (GLIBC_DYNAMIC_LINKERN32): Ditto.
15612 (UCLIBC_DYNAMIC_LINKER32): Ditto.
15613 (UCLIBC_DYNAMIC_LINKER64): Ditto.
15614 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
15615 (BIONIC_DYNAMIC_LINKERN32): Ditto.
15616 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
15617 (GLIBC_DYNAMIC_LINKER): Delete.
15618 (UCLIBC_DYNAMIC_LINKER): Delete.
15620 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
15621 Richard Biener <rguenther@suse.de>
15623 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
15624 Get address space from operand 0 (BASE).
15626 2014-10-07 Iain Sandoe <iain@codesourcery.com>
15629 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
15631 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
15633 * dwarf2out.c: Remove current_function_has_inlines.
15634 (gen_subprogram_die): Same.
15635 (gen_inlined_subroutine_die): Same.
15637 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
15639 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
15641 (_addcarry_u64): Ditto.
15642 (_addcarryx_u64): Ditto.
15644 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15646 * cgraph.h (cgraph_node::get_fun): Declare.
15647 * cgraph.c (cgraph_node::get_fun): New method.
15648 * ipa-inline.c (can_inline_edge_p): Use it.
15650 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
15652 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
15653 and -ftrapping-math.
15654 * lto-wrapper.c (merge_and_complain): Likewise.
15655 (run_gcc): Likewise.
15657 2014-10-06 Rong Xu <xur@google.com>
15659 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
15660 * tree-profile.c: (params.h): New include.
15661 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
15662 and __gcov_indirect_call_topn_counters for
15663 indirect_call_topn_profile.
15664 (gimple_init_edge_profiler): New decls for
15665 __gcov_indirect_call_topn_profiler.
15666 (gimple_gen_ic_profiler): Generate the correct profiler call.
15667 (gimple_gen_ic_func_profiler): Fix format.
15668 * value-prof.c (params.h): New include.
15669 (dump_histogram_value): Hanlde indirect_call_topn counters.
15670 (stream_in_histogram_value): Ditto.
15671 (gimple_indirect_call_to_profile): Use indirect_call_topn
15672 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
15673 (gimple_find_values_to_profile): Hanlde indirect_call_topn
15675 * value-prof.h (enum hist_type): Histrogram type for
15676 indirect_call_topn counters.
15677 * profile.c (instrument_values): Instrument
15678 indirect_call_topn counters.
15680 2014-10-06 Rong Xu <xur@google.com>
15682 * Makefile.in: Fix dependence.
15683 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
15684 indirect call topn profiler.
15685 * gcov-io.h: Ditto.
15687 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15689 * calls.c (expand_call): Do not use the target as the return slot if
15690 it is not sufficiently aligned.
15692 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15694 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
15695 discussion of permutes and why we don't handle them.
15697 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15699 * config/sparc/predicates.md (int_register_operand): Delete.
15701 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
15703 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
15705 2014-10-06 Jakub Jelinek <jakub@redhat.com>
15707 * ubsan.h (ubsan_get_source_location): New prototype.
15708 * ubsan.c (ubsan_source_location_type): New variable.
15709 Function renamed to ...
15710 (ubsan_get_source_location_type): ... this. Cache
15711 return value in ubsan_source_location_type variable.
15712 (ubsan_source_location, ubsan_create_data): Use
15713 ubsan_get_source_location_type instead of
15714 ubsan_source_location_type.
15715 * asan.c (asan_protect_global): Don't protect globals
15716 with ubsan_get_source_location_type () type.
15717 (asan_add_global): Provide global decl location info
15720 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15722 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
15725 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15727 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
15729 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
15731 (ipa_polymorphic_call_context::dump): Fix formating.
15732 (walk_ssa_copies): Add logic avoiding loops; update uses.
15733 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
15735 2014-10-02 Mark Wielaard <mjw@redhat.com>
15738 * dwarf2out.c (gen_subprogram_die): When a member function is
15739 explicitly deleted then add a DW_AT_GNU_deleted attribute.
15740 * langhooks.h (struct lang_hooks_for_decls): Add
15741 function_decl_deleted_p langhook.
15742 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
15743 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
15745 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15747 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
15748 NULL pointer checks.
15749 (ipa_polymorphic_call_context::get_dynamic_type): Return true
15750 if type doesn't change.
15751 * cgraph.h (cgraph_indirect_call_info): New flag.
15752 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
15753 (cgraph_node::dump): Dump it.
15754 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
15755 of context.get_dynamic_type.
15756 (ipa_make_edge_direct_to_target): Do not speculate
15757 edge that is already speuclative.
15758 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
15759 speculate to __builtin_unreachable
15760 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
15762 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
15764 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
15766 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
15767 get_dynamic_type; drop TODO.
15768 * ipa-polymorphic-call.c
15769 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
15770 for otr_type to be unknown.
15772 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15774 * common/config/score/score-common.c: Remove.
15775 * config.gcc: Remove support for score-*.
15776 * config/score/constraints.md: Remove.
15777 * config/score/elf.h: Remove.
15778 * config/score/predicates.md: Remove.
15779 * config/score/score-conv.h: Remove.
15780 * config/score/score-generic.md: Remove.
15781 * config/score/score-modes.def: Remove.
15782 * config/score/score-protos.h: Remove.
15783 * config/score/score.c: Remove.
15784 * config/score/score.h: Remove.
15785 * config/score/score.md: Remove.
15786 * config/score/score.opt: Remove.
15787 * doc/md.texi: Don't document score-*.
15789 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
15792 * genconditions.c: Directly include ggc.h before rtl.h.
15794 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15796 * ipa-polymorphic-call.c
15797 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
15798 code determining speculative type.
15799 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
15801 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15803 * altivec.md (altivec_lvsl): New define_expand.
15804 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
15805 (altivec_lvsr): New define_expand.
15806 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
15807 * rs6000.c (rs6000_expand_builtin): Change to use
15808 altivec_lvs[lr]_direct; remove commented-out code.
15810 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15812 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15813 Issue a warning message when vec_lvsl or vec_lvsr is used with a
15814 little endian target.
15816 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15818 * tree-pretty-print.c (dump_location): Make it extern. Dump also
15820 * tree-pretty-print.h (dump_location): Declare.
15821 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
15822 (pp_gimple_stmt_1): Likewise.
15823 (dump_implicit_edges): Likewise.
15824 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
15828 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15830 * gcc.c (driver::global_initializations): Remove "const" so
15831 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
15832 and decoded_options_count.
15834 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
15836 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
15838 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
15839 TARGET_E500_DOUBLE case here.
15841 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
15846 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
15848 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
15850 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
15851 * lto-cgraph.c (lto_output_edge, input_edge): Stream
15852 in_polymorphic_cdtor
15853 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
15854 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
15855 * cgraphclones.c (cgraph_edge::clone): Likewise.
15856 * ipa-prop.c (update_jump_functions_after_inlining,
15857 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
15858 to possible_dynamic_type_change.
15859 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
15860 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15861 IN_POLY_CDOTR argument.
15863 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
15864 for BASE and OUTER_TYPE being NULL.
15865 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
15866 in_poly_cdtor parameter.
15868 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15870 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
15871 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
15873 (expand_vec_perm_1): Likewise.
15875 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15876 Uros Bizjak <ubizjak@gmail.com>
15878 PR tree-optimization/61403
15879 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
15880 error in comment. Also optimize 256-bit vectors for AVX2
15881 or AVX (floating vectors only), provided the first permutation
15882 can be performed in one insn.
15884 2014-10-03 David Malcolm <dmalcolm@redhat.com>
15886 * gcc.c (class driver): New class.
15887 (main): Reimplement in terms of driver::main, moving most of the
15888 locals to be locals within individual methods of class driver.
15889 The remaining locals "explicit_link_files", "decoded_options" and
15890 "decoded_options_count" are used by multiple driver:: methods, and
15891 so become member data. Doing so isolates the argc/argv reads and
15892 writes. Replace "goto out" with a special exit code from
15893 new method driver::prepare_infiles. Split out the old
15894 implementation of main into the following...
15895 (driver::main): New function, corresponding to the old "main"
15897 (driver::set_progname): New function, taken from the old
15898 "main" implementation.
15899 (driver::expand_at_files): Likewise.
15900 (driver::decode_argv): Likewise.
15901 (driver::global_initializations): Likewise.
15902 (driver::build_multilib_strings): Likewise.
15903 (driver::set_up_specs): Likewise.
15904 (driver::putenv_COLLECT_GCC): Likewise.
15905 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
15906 (driver::handle_unrecognized_options): Likewise.
15907 (driver::maybe_print_and_exit): Likewise.
15908 (driver::prepare_infiles): Likewise.
15909 (driver::do_spec_on_infiles): Likewise.
15910 (driver::maybe_run_linker): Likewise.
15911 (driver::final_actions): Likewise.
15912 (driver::get_exit_code): Likewise.
15914 2014-10-03 Yury Gribov <y.gribov@samsung.com>
15916 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
15917 don't emit empty ctors.
15919 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
15921 * convert.c (convert_to_integer): Do not introduce useless conversions
15922 between integral types.
15924 2014-10-03 David Sherwood <david.sherwood@arm.com>
15926 * ira-int.h (ira_allocno): Mark hard_regno as signed.
15928 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
15930 * lra-constraints.c (inherit_in_ebb): Handle calls with
15931 multiple return values.
15932 * caller-save.c (save_call_clobbered_regs): Likewise.
15934 2014-10-03 Jakub Jelinek <jakub@redhat.com>
15936 * tree-vect-data-refs.c (vect_permute_load_chain,
15937 vect_shift_permute_load_chain): Fix a typo in temporary var names,
15938 suffle3 to shuffle3.
15941 * omp-low.c (taskreg_contexts): New variable.
15942 (scan_omp_parallel): Push newly created context into taskreg_contexts
15943 vector and move record layout code to finish_taskreg_scan.
15944 (scan_omp_task): Likewise.
15945 (finish_taskreg_scan): New function.
15946 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
15947 vector elements and release it.
15950 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
15951 of palignr arguments can't be used due to min 0 or max - min
15952 too high, try also op0, op1 order of palignr arguments.
15954 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
15956 * cgraph.h (ipa_polymorphic_call_context):
15957 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
15958 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
15959 * ipa-polymorphic-call.c
15960 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
15961 past end of dynamic types.
15962 (ipa_polymorphic_call_context::stream_out,
15963 speculative_outer_type): Stream dynamic flag.
15964 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
15965 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
15967 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
15969 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
15970 * ipa-prop.c (update_jump_functions_after_inlining,
15971 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
15973 2014-10-02 Teresa Johnson <tejohnson@google.com>
15975 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
15976 up when synthesizing counts to avoid rounding errors.
15978 2014-10-02 Teresa Johnson <tejohnson@google.com>
15980 PR middle-end/63422
15981 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
15982 asserts to handle incoming insanities.
15984 2014-10-02 Martin Jambor <mjambor@suse.cz>
15986 PR tree-optimization/63375
15987 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
15990 2014-10-02 Olivier Hainque <hainque@adacore.com>
15992 * Makefile.in (CROSS): Define, to @CROSS.
15994 2014-10-02 Jakub Jelinek <jakub@redhat.com>
15997 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
15998 if it expands to a single insn only.
15999 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
16000 fail unless in_order is true. Add forward declaration.
16001 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
16002 is useful for one_operand_p.
16003 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
16005 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16007 * cgraphclones.c (build_function_type_skip_args): Do not make new
16008 type variant of old.
16010 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16012 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
16013 when speculation is added.
16014 (ipa_edge_args): Add polymorphic_call_contexts.
16015 (ipa_get_ith_polymorhic_call_context): New accesor.
16016 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
16017 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
16018 (ipa_compute_jump_functions_for_edge): Compute contexts.
16019 (update_jump_functions_after_inlining): Update contexts.
16020 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
16021 update dumping; add speculative edge creation.
16022 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
16024 (update_indirect_edges_after_inlining): Pass down context.
16025 (ipa_edge_duplication_hook): Duplicate contexts.
16026 (ipa_write_node_info): Stream out contexts.
16027 (ipa_read_node_info): Stream in contexts.
16028 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
16030 (try_speculative_devirtualization): New function.
16031 * ipa-utils.h (try_speculative_devirtualization): Declare.
16033 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16035 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
16036 dumping during WPA.
16038 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16040 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
16043 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
16045 * ipa-polymorphic-call.c
16046 (ipa_polymorphic_call_context::restrict_to_inner_class):
16047 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
16048 use speculation_consistent_p to do so; Add CONSDER_BASES
16049 and CONSIDER_PLACEMENT_NEW parameters.
16050 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
16051 short circuit obvious cases.
16052 (ipa_polymorphic_call_context::dump): Improve formatting.
16053 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
16054 combine_speculation_with to record speculations; Do not ICE when
16055 object is located in pointer type decl; do not ICE for methods
16056 of UNION_TYPE; do not record nonpolymorphic types.
16057 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
16058 (ipa_polymorphic_call_context::combine_speculation_with): New method.
16059 (ipa_polymorphic_call_context::combine_with): New method.
16060 (ipa_polymorphic_call_context::make_speculative): Move here; use
16061 combine speculation.
16062 * cgraph.h (ipa_polymorphic_call_context): Update
16063 restrict_to_inner_class prototype; add offset_by, make_speculative,
16064 combine_with, useless_p, combine_speculation_with and
16065 speculation_consistent_p methods.
16066 (ipa_polymorphic_call_context::offset_by): New method.
16067 (ipa_polymorphic_call_context::useless_p): New method.
16069 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
16071 PR rtl-optimization/62151
16072 * combine.c (can_combine_p): Allow the destination register of INSN
16073 to be clobbered in I3.
16074 (subst): Do not substitute into clobbers of registers.
16076 2014-10-01 Jakub Jelinek <jakub@redhat.com>
16079 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
16080 offset, TARGET_MEM_REF and SSA_NAME.
16082 * config/i386/i386.c (expand_vec_perm_palignr): Handle
16083 256-bit vectors for TARGET_AVX2.
16085 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
16086 dfirst permutation.
16089 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
16090 argument to avx2_permv2ti.
16092 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16094 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
16096 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
16098 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
16099 (fmod<mode>3): Ditto.
16100 (fpremxf4_i387): Ditto.
16101 (reminderxf3): Ditto.
16102 (reminder<mode>3): Ditto.
16103 (fprem1xf4_i387): Ditto.
16105 2014-09-30 Teresa Johnson <tejohnson@google.com>
16107 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
16108 duplicate_blocks bitmap.
16109 (remove_ctrl_stmt_and_useless_edges): Ditto.
16110 (create_block_for_threading): Ditto.
16111 (compute_path_counts): New function.
16112 (update_profile): Ditto.
16113 (recompute_probabilities): Ditto.
16114 (update_joiner_offpath_counts): Ditto.
16115 (freqs_to_counts_path): Ditto.
16116 (clear_counts_path): Ditto.
16117 (ssa_fix_duplicate_block_edges): Update profile info.
16118 (ssa_create_duplicates): Pass new parameter.
16119 (ssa_redirect_edges): Remove old profile update.
16120 (thread_block_1): New duplicate_blocks bitmap,
16121 remove old profile update.
16122 (thread_single_edge): Pass new parameter.
16124 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
16126 PR middle-end/62120
16127 * varasm.c (decode_reg_name_and_count): Check availability for
16128 registers from ADDITIONAL_REGISTER_NAMES.
16130 2014-09-30 David Malcolm <dmalcolm@redhat.com>
16133 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
16134 (PLUGIN_HEADERS): Add pass-instances.def.
16136 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
16138 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
16140 * config/aarch64/aarch64-simd.md
16141 (aarch64_sqdmull_laneq<mode>): Expand iterator.
16142 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
16143 (vqdmulls_lane_s32): Fix return type.
16144 (vqdmulls_laneq_s32): New.
16146 2014-09-30 Jakub Jelinek <jakub@redhat.com>
16148 PR inline-asm/63282
16149 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
16150 or invert_jump_1 if jump isn't any_condjump_p.
16152 2014-09-30 Terry Guo <terry.guo@arm.com>
16154 * config/arm/arm-cores.def (cortex-m7): New core name.
16155 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
16157 * config/arm/arm-tables.opt: Regenerated.
16158 * config/arm/arm-tune.md: Regenerated.
16159 * config/arm/arm.h (TARGET_VFP5): New macro.
16160 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
16161 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
16162 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
16163 * doc/invoke.texi: Document new cpu and fpu names.
16165 2014-09-30 Jiong Wang <jiong.wang@arm.com>
16167 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
16168 before sinking insn.
16170 2014-09-30 David Sherwood <david.sherwood@arm.com>
16172 * ira-int.h (ira_allocno): Add "wmode" field.
16173 * ira-build.c (create_insn_allocnos): Add new "parent" function
16175 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
16176 that cannot be accessed in wmode.
16178 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
16180 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
16183 2014-09-29 Andi Kleen <ak@linux.intel.com>
16185 * opts.c (print_filtered_help): Print --param min/max/default
16188 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
16190 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
16192 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
16194 * tree-vrp.c (get_single_symbol): New function.
16195 (build_symbolic_expr): Likewise.
16196 (symbolic_range_based_on_p): New predicate.
16197 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
16198 for PLUS and MINUS. Do not drop symbolic ranges at the end.
16199 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
16200 operand is symbolic and based on the other operand.
16202 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
16204 * config/microblaze/microblaze.md (call_internal1): Use VOID
16205 instead of SI to fix "((void (*)(void)) 0)()" issue
16207 2014-09-29 Nick Clifton <nickc@redhat.com>
16209 * config/msp430/msp430.c (msp430_expand_prologue): Return a
16210 CLOBBER rtx for naked functions.
16211 (msp430_expand_epilogue): Likewise.
16212 (msp430_use_f5_series_hwmult): Cache result.
16213 (use_32bit_hwmult): Cache result.
16214 (msp430_no_hwmult): New function.
16215 (msp430_output_labelref): Use it.
16217 2014-09-29 Jakub Jelinek <jakub@redhat.com>
16219 PR middle-end/63247
16220 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
16221 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
16222 use the alignment of avar rather than ovar.
16224 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
16226 * config/pa/pa.c (pa_output_function_epilogue): Only update
16227 last_address when a nonnote insn is found.
16229 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16232 * ipa-devirt.c (possible_polymorphic_call_targets): Silence
16235 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16238 * ipa-polymorphic-call.c
16239 (ipa_polymorphic_call_context::restrict_to_inner_class): Fix pasto
16240 in checking array size.
16242 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
16244 PR middle-end/35545
16245 * passes.def (pass_tracer): Move before last dominator pass.
16247 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
16249 * gcc.c (try_generate_repro): Remove argument "prog". Change all
16251 (run_attempt): Handle errors of "pex_run" invocation.
16253 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
16255 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
16256 (CC1_SPEC): Define.
16257 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
16258 (TARGET_ASAN_SHADOW_OFFSET): Define.
16260 2014-09-26 Martin Liska <mliska@suse.cz>
16262 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
16264 * cgraph.h: Likewise.
16265 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new
16266 argument introduced.
16267 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos
16269 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function
16270 transformed to global.
16271 * tree-ssa-alias.h: Likewise.
16273 2014-09-26 Jakub Jelinek <jakub@redhat.com>
16274 Max Ostapenko <m.ostapenko@partner.samsung.com>
16276 * common.opt: New option.
16277 * doc/invoke.texi: Describe new option.
16278 * gcc.c (execute): Don't free first string early, but at the end
16279 of the function. Call retry_ice if compiler exited with
16281 (main): Factor out common code.
16282 (print_configuration): New function.
16283 (files_equal_p): Likewise.
16284 (check_repro): Likewise.
16285 (run_attempt): Likewise.
16286 (do_report_bug): Likewise.
16287 (append_text): Likewise.
16288 (try_generate_repro): Likewise
16290 2014-09-25 Andi Kleen <ak@linux.intel.com>
16292 * config/i386/i386.c (x86_print_call_or_nop): New function.
16293 (x86_function_profiler): Support -mnop-mcount and
16295 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
16296 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
16298 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16300 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
16301 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
16302 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
16305 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16307 * ipa-utils.h (subbinfo_with_vtable_at_offset,
16308 type_all_derivations_known_p, type_known_to_have_no_deriavations_p,
16309 types_must_be_same_for_odr, types_odr_comparable): Declare.
16310 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
16311 * ipa-polymorphic-call.c: New file.
16312 (contains_polymorphic_type_p, possible_placement_new,
16313 ipa_polymorphic_call_context::restrict_to_inner_class,
16314 contains_type_p, decl_maybe_in_construction_p,
16315 ipa_polymorphic_call_context::stream_out,
16316 ipa_polymorphic_call_context::debug,
16317 ipa_polymorphic_call_context::stream_in,
16318 ipa_polymorphic_call_context::set_by_decl,
16319 ipa_polymorphic_call_context::set_by_invariant,
16321 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16322 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16323 extr_type_from_vtbl_ptr_store, record_known_type
16324 check_stmt_for_type_change,
16325 ipa_polymorphic_call_context::get_dynamic_type): Move here from
16327 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
16328 and streamer-hooks.h
16329 (contains_polymorphic_type_p, possible_placement_new,
16330 ipa_polymorphic_call_context::restrict_to_inner_class,
16331 contains_type_p, decl_maybe_in_construction_p,
16332 ipa_polymorphic_call_context::stream_out,
16333 ipa_polymorphic_call_context::debug,
16334 ipa_polymorphic_call_context::stream_in,
16335 ipa_polymorphic_call_context::set_by_decl,
16336 ipa_polymorphic_call_context::set_by_invariant,
16338 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16339 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
16340 extr_type_from_vtbl_ptr_store, record_known_type
16341 check_stmt_for_type_change,
16342 ipa_polymorphic_call_context::get_dynamic_type): Move to
16343 ipa-polymorphic-call.c
16344 (type_all_derivations_known_p, types_odr_comparable,
16345 types_must_be_same_for_odr): Export.
16346 (type_known_to_have_no_deriavations_p): New function.
16347 * Makefile.in: Add ipa-polymorphic-call.c
16349 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
16351 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
16352 for better storage.
16353 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
16354 (possible_polymorphic_call_targets): Instead of computing both
16355 speculative and non-speculative answers, do just one at a time.
16356 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
16357 (dump_targets): Break out from ...
16358 (dump_possible_polymorphic_call_targets): ... here; dump both
16359 speculative and non-speculative lists.
16360 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
16361 * ipa-utils.h (possible_polymorphic_call_targets): Update.
16363 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
16365 PR rtl-optimization/63348
16366 * emit-rtl.c (try_split): Do not emit extra barrier.
16368 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
16370 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
16371 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
16373 (aarch64_<sur>shll2_n<mode>): Likewise.
16374 (aarch64_<sur>shr_n<mode>): Likewise.
16375 (aarch64_<sur>sra_n<mode>: Likewise.
16376 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
16377 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
16378 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
16379 * config/aarch64/iterators.md (ve_mode): New.
16380 (offsetlr): Remap to infix text for use in new predicates.
16381 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
16382 (aarch64_simd_shift_imm_hi): Likewise.
16383 (aarch64_simd_shift_imm_si): Likewise.
16384 (aarch64_simd_shift_imm_di): Likewise.
16385 (aarch64_simd_shift_imm_offset_qi): Likewise.
16386 (aarch64_simd_shift_imm_offset_hi): Likewise.
16387 (aarch64_simd_shift_imm_offset_si): Likewise.
16388 (aarch64_simd_shift_imm_offset_di): Likewise.
16389 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
16390 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
16391 (aarch64_simd_shift_imm_bitsize_si): Likewise.
16392 (aarch64_simd_shift_imm_bitsize_di): Likewise.
16394 2014-09-25 Jiong Wang <jiong.wang@arm.com>
16396 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
16397 new created BB as the intersection of live-in from "old_dest" and
16398 live-out from "bb".
16400 2014-09-25 Felix Yang <felix.yang@huawei.com>
16402 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
16403 * genautomata.c (merge_states): Ditto.
16405 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
16408 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
16409 in instruction sequence.
16411 2014-09-25 Nick Clifton <nickc@redhat.com>
16414 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
16415 in instruction sequence.
16417 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16420 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
16421 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
16423 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16425 Anna Tikhonova <anna.tikhonova@intel.com>
16426 Ilya Tocar <ilya.tocar@intel.com>
16427 Andrey Turetskiy <andrey.turetskiy@intel.com>
16428 Ilya Verbin <ilya.verbin@intel.com>
16429 Kirill Yukhin <kirill.yukhin@intel.com>
16430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16432 * config/i386/sse.md
16433 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
16434 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
16435 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
16436 (define_expand "<avx512>_perm<mode>_mask"): ... this.
16437 Use VI8F_256_512 mode iterator.
16438 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
16439 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
16441 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16443 Anna Tikhonova <anna.tikhonova@intel.com>
16444 Ilya Tocar <ilya.tocar@intel.com>
16445 Andrey Turetskiy <andrey.turetskiy@intel.com>
16446 Ilya Verbin <ilya.verbin@intel.com>
16447 Kirill Yukhin <kirill.yukhin@intel.com>
16448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16450 * config/i386/sse.md
16451 (define_insn "avx_movshdup256<mask_name>"): Add masking.
16452 (define_insn "sse3_movshdup<mask_name>"): Ditto.
16453 (define_insn "avx_movsldup256<mask_name>"): Ditto.
16454 (define_insn "sse3_movsldup<mask_name>"): Ditto.
16455 (define_insn "vec_dupv2df<mask_name>"): Ditto.
16456 (define_insn "*vec_concatv2df"): Add EVEX version.
16458 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16459 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16460 Anna Tikhonova <anna.tikhonova@intel.com>
16461 Ilya Tocar <ilya.tocar@intel.com>
16462 Andrey Turetskiy <andrey.turetskiy@intel.com>
16463 Ilya Verbin <ilya.verbin@intel.com>
16464 Kirill Yukhin <kirill.yukhin@intel.com>
16465 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16467 * config/i386/sse.md
16468 (define_insn "vec_set<mode>_0"): Add EVEX version.
16470 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16471 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16472 Anna Tikhonova <anna.tikhonova@intel.com>
16473 Ilya Tocar <ilya.tocar@intel.com>
16474 Andrey Turetskiy <andrey.turetskiy@intel.com>
16475 Ilya Verbin <ilya.verbin@intel.com>
16476 Kirill Yukhin <kirill.yukhin@intel.com>
16477 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16479 * config/i386/sse.md
16481 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
16483 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16484 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
16485 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
16486 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
16487 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
16488 (define_expand "sse2_cvtpd2ps_mask): New.
16489 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
16490 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
16492 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16493 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16494 Anna Tikhonova <anna.tikhonova@intel.com>
16495 Ilya Tocar <ilya.tocar@intel.com>
16496 Andrey Turetskiy <andrey.turetskiy@intel.com>
16497 Ilya Verbin <ilya.verbin@intel.com>
16498 Kirill Yukhin <kirill.yukhin@intel.com>
16499 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16501 * config/i386/i386.c
16502 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
16503 (ufix_notruncv8dfv8si2_mask_round): ... this.
16504 * config/i386/sse.md
16505 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
16506 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
16507 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
16508 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
16509 (define_expand "sse2_cvtpd2dq"): Delete.
16510 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
16511 make 2nd operand const0 vector.
16512 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
16514 (define_mode_attr pd2udqsuff): New.
16516 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
16517 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
16518 (define_insn "*avx_cvttpd2dq256_2"): Delete.
16519 (define_expand "sse2_cvttpd2dq"): Ditto.
16520 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
16521 make 2nd operand const0 vector.
16523 2014-09-25 Jakub Jelinek <jakub@redhat.com>
16525 PR tree-optimization/63341
16526 * tree-vectorizer.h (vect_create_data_ref_ptr,
16527 vect_create_addr_base_for_vector_ref): Add another tree argument
16528 defaulting to NULL_TREE.
16529 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
16530 argument, pass it down to vect_create_addr_base_for_vector_ref.
16531 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
16532 add that to base_offset too if non-NULL.
16533 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
16534 for dr_explicit_realign_optimized set it to vector byte size
16535 - 1 instead of setting offset, pass byte_offset down to
16536 vect_create_data_ref_ptr.
16538 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16540 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
16541 forgotten debug output; canonicalize querries more wtih LTO.
16543 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16545 * cgraph.h (class ipa_polymorphic_call_context): Move here from
16546 ipa-utils.h; add stream_int and stream_out methods.
16547 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
16548 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
16549 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
16551 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16552 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16553 ipa_polymorphic_call_context::clear_speculation,
16554 ipa_polymorphic_call_context::clear_outer_type): Move here from
16556 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
16557 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16558 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
16559 ipa_polymorphic_call_context::clear_speculation,
16560 ipa_polymorphic_call_context::clear_outer_type): Likewise.
16561 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
16563 (ipa_polymorphic_call_context::stream_out): New method.
16564 (ipa_polymorphic_call_context::stream_in): New method.
16565 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
16566 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
16568 (ipa_analyze_call_uses): Simplify.
16569 (update_indirect_edges_after_inlining): Do not care about outer_type.
16570 (ipa_write_indirect_edge_info): Update.
16571 (ipa_write_indirect_edge_info): Likewise.
16572 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
16573 (dump_edge_flags): Break out from ...
16574 (cgraph_node::dump): ... here; dump indirect edges.
16576 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
16578 * ipa-utils.h (polymorphic_call_context): Add
16579 metdhos dump, debug and clear_outer_type.
16580 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16581 (ipa_polymorphic_call_context::clear_outer_type): New method.
16582 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
16583 * ipa-devirt.c (types_odr_comparable): New function.
16584 (types_must_be_same_for_odr): New function.
16585 (odr_subtypes_equivalent_p): Simplify.
16586 (possible_placement_new): Break out from ...
16587 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
16588 be more cuatious about returning false in cases the context may be
16589 valid in derived type or via placement new.
16590 (contains_type_p): Clear maybe_derived_type
16591 (ipa_polymorphic_call_context::dump): New method.
16592 (ipa_polymorphic_call_context::debug): New method.
16593 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
16594 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
16595 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
16596 (possible_polymorphic_call_targets): Trust
16597 context.restrict_to_inner_class to suceed on all valid cases;
16598 remove confused sanity check.
16599 (dump_possible_polymorphic_call_targets): Simplify.
16601 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
16603 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
16604 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
16605 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
16606 varpool.c: Rename all instances of DECL_ABSTRACT to
16609 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16611 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
16612 special handling for stores whose SET_SRC is an UNSPEC (such as
16615 2014-09-24 Jiong Wang <jiong.wang@arm.com>
16617 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
16618 !REG_P (src) to release more instruction sink opportunities.
16620 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
16622 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
16623 move costs for 128-bit types.
16625 2014-09-24 Martin Jambor <mjambor@suse.cz>
16627 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
16628 when duplicating a PASS_THROUGH jump function when creating a
16631 2014-09-24 Marek Polacek <polacek@redhat.com>
16635 * asan.c (maybe_instrument_call): Add default case.
16636 * ipa-pure-const.c (special_builtin_state): Likewise.
16637 * predict.c (expr_expected_value_1): Likewise.
16638 * lto-streamer-out.c (write_symbol): Initialize variable.
16640 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16642 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
16644 (vmuld_laneq_f64): Likewise.
16645 (vmuls_lane_f32): Likewise.
16646 (vmuls_laneq_f32): Likewise.
16648 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
16651 * varpool.c (varpool_node::add): Pass decl attributes
16652 to lookup_attribute.
16654 2014-09-24 Jakub Jelinek <jakub@redhat.com>
16657 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
16659 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16661 PR tree-optimization/63266
16662 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
16663 marker for unknown byte value.
16664 (MARKER_MASK): New macro.
16665 (MARKER_BYTE_UNKNOWN): New macro.
16666 (HEAD_MARKER): New macro.
16667 (do_shift_rotate): Mark bytes with unknown values due to sign
16668 extension when doing an arithmetic right shift. Replace hardcoded
16669 mask for marker by new MARKER_MASK macro.
16670 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
16671 numbers accordingly.
16673 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16675 Anna Tikhonova <anna.tikhonova@intel.com>
16676 Ilya Tocar <ilya.tocar@intel.com>
16677 Andrey Turetskiy <andrey.turetskiy@intel.com>
16678 Ilya Verbin <ilya.verbin@intel.com>
16679 Kirill Yukhin <kirill.yukhin@intel.com>
16680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16682 * config/i386/sse.md
16684 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
16686 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
16687 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
16689 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16691 Anna Tikhonova <anna.tikhonova@intel.com>
16692 Ilya Tocar <ilya.tocar@intel.com>
16693 Andrey Turetskiy <andrey.turetskiy@intel.com>
16694 Ilya Verbin <ilya.verbin@intel.com>
16695 Kirill Yukhin <kirill.yukhin@intel.com>
16696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16698 * config/i386/sse.md
16699 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
16700 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
16701 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
16702 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
16703 (define_expand "avx512vl_pshuflw_mask"): New.
16704 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
16705 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
16706 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
16707 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
16708 (define_expand "avx512vl_pshufhw_mask"): New.
16709 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
16711 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16712 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16713 Anna Tikhonova <anna.tikhonova@intel.com>
16714 Ilya Tocar <ilya.tocar@intel.com>
16715 Andrey Turetskiy <andrey.turetskiy@intel.com>
16716 Ilya Verbin <ilya.verbin@intel.com>
16717 Kirill Yukhin <kirill.yukhin@intel.com>
16718 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16720 * config/i386/i386.c
16721 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
16722 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
16723 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
16724 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
16725 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
16726 * config/i386/sse.md
16727 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
16729 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
16730 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
16732 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
16733 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
16734 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
16735 (define_expand "avx512vl_pshufd_mask"): New.
16736 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
16738 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16740 Anna Tikhonova <anna.tikhonova@intel.com>
16741 Ilya Tocar <ilya.tocar@intel.com>
16742 Andrey Turetskiy <andrey.turetskiy@intel.com>
16743 Ilya Verbin <ilya.verbin@intel.com>
16744 Kirill Yukhin <kirill.yukhin@intel.com>
16745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16747 * config/i386/i386.c
16748 (CODE_FOR_avx2_extracti128): Rename to ...
16749 (CODE_FOR_avx_vextractf128v4di): this.
16750 (CODE_FOR_avx2_inserti128): Rename to ...
16751 (CODE_FOR_avx_vinsertf128v4di): this.
16752 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
16753 CODE_FOR_avx_vextractf128v4di.
16754 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
16755 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
16756 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
16757 CODE_FOR_avx512vl_vinsertv8si.
16758 * config/i386/sse.md
16760 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
16761 AVX512_VEC mode iterator.
16763 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
16766 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
16767 AVX512_VEC_2 mode iterator.
16768 (define_insn "vec_set_lo_<mode><mask_name>"): New.
16769 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16770 (define_expand "avx512vl_vinsert<mode>"): Ditto.
16771 (define_insn "avx2_vec_set_lo_v4di"): Delete.
16772 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
16773 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
16774 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16775 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
16776 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16777 (define_expand "avx2_extracti128"): Delete.
16778 (define_expand "avx2_inserti128"): Ditto.
16780 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16781 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16782 Anna Tikhonova <anna.tikhonova@intel.com>
16783 Ilya Tocar <ilya.tocar@intel.com>
16784 Andrey Turetskiy <andrey.turetskiy@intel.com>
16785 Ilya Verbin <ilya.verbin@intel.com>
16786 Kirill Yukhin <kirill.yukhin@intel.com>
16787 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16789 * config/i386/sse.md
16790 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
16791 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
16792 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
16793 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
16794 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
16795 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
16796 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
16797 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
16798 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
16799 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
16800 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
16801 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
16802 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
16804 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
16806 PR rtl-optimization/63210
16807 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
16808 HARD_REGNO is not available for CONFLICT_A.
16810 2014-09-23 Andi Kleen <ak@linux.intel.com>
16812 * cgraph.h (symtab_node): Add no_reorder attribute.
16813 (symbol_table::output_asm_statements): Remove.
16814 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
16815 (cgraph_node::create_version_clone): Dito.
16816 (symbol_table::output_asm_statements): Remove.
16817 * trans-mem.c (ipa_tm_create_version_alias): Dito.
16818 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
16819 (output_in_order): Add no_reorder flag. Only handle no_reorder
16821 (symbol_table::compile): Add separate pass for no_reorder nodes.
16822 (process_common_attributes): Set no_reorder flag in symtab node.
16824 (process_function_and_variable_attributes): Pass symtab nodes to
16825 process_common_attributes.
16826 * doc/extend.texi (no_reorder): Document no_reorder attribute.
16827 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
16828 (lto_output_varpool_node): Dito.
16829 (input_overwrite_node): Dito.
16830 (input_varpool_node): Dito.
16831 * varpool.c (varpool_node::add): Set no_reorder attribute.
16832 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
16833 (symbol_table::output_variables): Dito.
16834 * symtab.c (symtab_node::dump_base): Print no_reorder.
16836 2014-09-23 Jiong Wang <jiong.wang@arm.com>
16838 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM
16839 not be INVALID_REGNUM.
16841 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
16843 * configure: Regenerate.
16845 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
16847 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
16848 when result_mode == shift_mode.
16850 2014-09-23 Kostya Serebryany <kcc@google.com>
16852 Update to match the changed asan API.
16853 * asan.c (asan_global_struct): Update the __asan_global definition
16854 to match the new API.
16855 (asan_add_global): Ditto.
16856 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
16859 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16861 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
16862 refine the constraints used on 32/64-bit floating point moves.
16863 (f32_av): Likewise.
16864 (f64_vsx): Likewise.
16865 (f64_dm): Likewise.
16866 (f64_av): Likewise.
16867 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
16868 (BOOL_REGS_OP1): Likewise.
16869 (BOOL_REGS_OP2): Likewise.
16870 (BOOL_REGS_UNARY): Likewise.
16871 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
16872 32/64-bit floating point moves. Do not use wa, instead use ww/ws
16873 for moves involving VSX registers. Do not use constraints that
16874 target VSX registers for decimal types.
16875 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
16876 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
16878 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
16880 * tree.h (int_bit_position): Turn into inline function;
16881 implement using wide int.
16882 * tree.c (int_bit_position): Remove.
16884 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
16887 * target-globals.c (target_globals::~target_globals): Fix location
16888 of ira_int destruction.
16890 2014-09-23 Renlin Li <renlin.li@arm.com>
16892 * config/aarch64/aarch64.md (return): New.
16893 (simple_return): Likewise.
16894 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
16895 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
16897 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
16899 * common/config/aarch64/aarch64-common.c:
16900 (default_options aarch_option_optimization_table):
16901 Default to -fsched-pressure.
16903 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
16905 * cfgcleanup.c (try_optimize_cfg): Do not remove label
16906 with LABEL_PRESERVE_P flag set.
16908 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16909 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16910 Anna Tikhonova <anna.tikhonova@intel.com>
16911 Ilya Tocar <ilya.tocar@intel.com>
16912 Andrey Turetskiy <andrey.turetskiy@intel.com>
16913 Ilya Verbin <ilya.verbin@intel.com>
16914 Kirill Yukhin <kirill.yukhin@intel.com>
16915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16917 * config/i386/sse.md
16918 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
16919 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
16920 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
16921 (define_insn "sse2_shufpd_v2df_mask"): New.
16923 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16925 Anna Tikhonova <anna.tikhonova@intel.com>
16926 Ilya Tocar <ilya.tocar@intel.com>
16927 Andrey Turetskiy <andrey.turetskiy@intel.com>
16928 Ilya Verbin <ilya.verbin@intel.com>
16929 Kirill Yukhin <kirill.yukhin@intel.com>
16930 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16932 * config/i386/sse.md
16933 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
16934 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
16935 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
16936 (define_insn "sse_shufps_v4sf_mask"): New.
16938 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16940 Anna Tikhonova <anna.tikhonova@intel.com>
16941 Ilya Tocar <ilya.tocar@intel.com>
16942 Andrey Turetskiy <andrey.turetskiy@intel.com>
16943 Ilya Verbin <ilya.verbin@intel.com>
16944 Kirill Yukhin <kirill.yukhin@intel.com>
16945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16947 * config/i386/sse.md
16948 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
16949 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
16950 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
16951 (define_insn "unpcklps128_mask"): New.
16953 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
16954 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16955 Anna Tikhonova <anna.tikhonova@intel.com>
16956 Ilya Tocar <ilya.tocar@intel.com>
16957 Andrey Turetskiy <andrey.turetskiy@intel.com>
16958 Ilya Verbin <ilya.verbin@intel.com>
16959 Kirill Yukhin <kirill.yukhin@intel.com>
16960 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16962 * config/i386/sse.md
16963 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
16964 (define_insn "avx512vl_unpckhpd128_mask"): New.
16965 (define_expand "avx_movddup256<mask_name>"): Add masking.
16966 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
16967 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
16968 (define_insn "avx512vl_unpcklpd128_mask"): New.
16970 2014-09-22 Joseph Myers <joseph@codesourcery.com>
16972 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16973 * doc/tm.texi: Regenerate.
16974 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
16975 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16976 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16978 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16979 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16980 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16981 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16982 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16984 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16985 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16986 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16987 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16988 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16989 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16990 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16991 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16992 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16993 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
16994 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
16997 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
16999 * tree-ssa-ccp.c (prop_value_d): Rename to ...
17000 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
17001 * ipa-prop.c (struct type_change_info): Rename to ...
17002 (prop_type_change_info): ... this; update uses.
17003 * ggc-page.c (globals): Rename to ...
17004 (static struct ggc_globals): ... this; update uses.
17005 * tree-ssa-loop-im.c (mem_ref): Rename to ...
17006 (im_mem_ref): ... this; update uses.
17007 * ggc-common.c (loc_descriptor): Rename to ...
17008 (ggc_loc_descriptor): ... this; update uses.
17009 * lra-eliminations.c (elim_table): Rename to ...
17010 (lra_elim_table): ... this; update uses.
17011 * bitmap.c (output_info): Rename to ...
17012 (bitmap_output_info): ... this; update uses.
17013 * gcse.c (expr): Rename to ...
17014 (gcse_expr) ... this; update uses.
17015 (occr): Rename to ...
17016 (gcse_occr): .. this; update uses.
17017 * tree-ssa-copy.c (prop_value_d): Rename to ...
17018 (prop_value_t): ... this.
17019 * predict.c (block_info_def): Rename to ...
17020 (block_info): ... this; update uses.
17021 (edge_info_def): Rename to ...
17022 (edge_info): ... this; update uses.
17023 * profile.c (bb_info): Rename to ...
17024 (bb_profile_info): ... this; update uses.
17025 * alloc-pool.c (output_info): Rename to ...
17026 (pool_output_info): ... this; update uses.
17027 * ipa-cp.c (topo_info): Rename to ..
17028 (ipa_topo_info): ... this; update uses.
17029 * tree-nrv.c (nrv_data): Rename to ...
17030 (nrv_data_t): ... this; update uses.
17031 * ipa-split.c (bb_info): Rename to ...
17032 (split_bb_info): ... this one.
17033 * profile.h (edge_info): Rename to ...
17034 (edge_profile_info): ... this one; update uses.
17035 * dse.c (bb_info): Rename to ...
17036 (dse_bb_info): ... this one; update uses.
17037 * cprop.c (occr): Rename to ...
17038 (cprop_occr): ... this one; update uses.
17039 (expr): Rename to ...
17040 (cprop_expr): ... this one; update uses.
17042 2014-09-22 Jason Merrill <jason@redhat.com>
17044 * Makefile.in (check-parallel-%): Add @.
17046 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17048 * config/aarch64/geniterators.sh: New.
17049 * config/aarch64/iterators.md (VDQF_DF): New.
17050 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
17051 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
17053 2014-09-22 Peter A. Bigot <pab@pabigot.com>
17055 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
17056 -lnosys when -msim absent.
17058 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
17060 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
17062 2014-09-22 Richard Biener <rguenther@suse.de>
17064 * gimplify.c (gimplify_init_constructor): Do not leave
17065 non-GIMPLE vector constructors around.
17066 * tree-cfg.c (verify_gimple_assign_single): Verify that
17067 CONSTRUCTORs have gimple elements.
17069 2014-09-22 Jakub Jelinek <jakub@redhat.com>
17072 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
17073 insert a debug source bind stmt setting DEBUG_EXPR_DECL
17074 instead of a normal gimple assignment stmt.
17076 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
17078 * config/bfin/bfin.md: Fix use of constraints in define_split.
17080 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17082 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
17083 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
17085 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17087 * hard-reg-set.h: Include hash-table.h.
17088 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
17090 * target-globals.c (target_globals::~target_globals): Call
17091 hard_regs->finalize.
17092 * rtl.h (subreg_shape): New structure.
17093 (shape_of_subreg): New function.
17094 (simplifiable_subregs): Declare.
17095 * reginfo.c (simplifiable_subreg): New structure.
17096 (simplifiable_subregs_hasher): Likewise.
17097 (simplifiable_subregs): New function.
17098 (invalid_mode_changes): Delete.
17099 (alid_mode_changes, valid_mode_changes_obstack): New variables.
17100 (record_subregs_of_mode): Remove subregs_of_mode parameter.
17101 Record valid mode changes in valid_mode_changes.
17102 (find_subregs_of_mode): Remove subregs_of_mode parameter.
17103 Update calls to record_subregs_of_mode.
17104 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
17105 handling. Initialize new variables. Update call to
17106 find_subregs_of_mode.
17107 (invalid_mode_change_p): Check new variables instead of
17108 invalid_mode_changes.
17109 (finish_subregs_of_mode): Finalize new variables instead of
17110 invalid_mode_changes.
17111 (target_hard_regs::finalize): New function.
17112 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
17113 even when CLASS_CANNOT_CHANGE_MODE is undefined.
17115 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17117 * combine.c (subst): Use simplify_subreg_regno rather than
17118 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
17120 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17122 * rtl.h (subreg_info): Expand commentary
17123 * rtlanal.c (subreg_get_info): Likewise.
17125 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
17127 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
17128 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
17129 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
17131 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
17133 * config/arm/arm.c: #include "tm-constrs.h"
17134 (thumb1_size_rtx_costs): Adjust rtx costs.
17136 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
17138 * configure.ac (target_header_dir): Move block defining
17139 this to before the block setting inhibit_libc.
17140 (inhibit_libc): When considering $with_headers, just
17141 check it it's explicitly "no". If not, also check if
17142 $target_header_dir/stdio.h is present. If not, set
17144 * configure: Regenerate.
17146 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
17148 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
17150 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17152 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
17153 insn for divides by integer powers of two.
17154 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
17155 (mod<mode>3): Fix formatting.
17156 (three anonymous define_insn and two define_split): Delete.
17158 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17160 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
17161 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
17162 (floatdisf2_internal2): Ditto.
17163 (ashrdi3_no_power): Ditto. Fix formatting.
17165 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17167 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
17168 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
17171 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17173 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
17174 constant, use addsi3 directly.
17175 (three anonymous define_insn, two define_split): Delete.
17176 (sub<mode>3): Move. Do not allow constant second operand.
17177 Generate different insn for constant first operand.
17178 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
17179 (subf<mode>3_imm): New.
17180 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
17181 (*plus_ltu<mode>): Only handle registers.
17182 (*plus_ltu<mode>_1): New. Handle integer third operand.
17183 (*plus_gtu<mode>): Only handle registers.
17184 (*plus_gtu<mode>_1): New. Handle integer third operand.
17186 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17188 * config/rs6000/rs6000.md (iorxor): New code_iterator.
17189 (iorxor): New code_attr.
17190 (IORXOR): New code_attr.
17191 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
17192 (ior<mode>3, xor<mode>3): Delete.
17193 (<iorxor><mode>3): New.
17194 (splitter for "big" integer ior, xor): New.
17195 (*bool<mode>3): Move. Also handle AND.
17196 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
17197 (splitter for "big" integer ior, xor): Delete.
17199 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17201 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
17202 (two anonymous define_insn and two define_split): Delete.
17203 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
17205 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17207 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
17208 (two anonymous define_insn and two define_split): Delete.
17209 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
17211 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17213 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
17215 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
17217 * config/rs6000/predicates.md (ca_operand): Allow subregs.
17218 (input_operand): Do not allow ca_operand.
17219 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
17220 carry bit, allow SImode and Pmode.
17221 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
17223 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
17225 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
17226 clobbered registers using clobber_reg. Remove UNSPEC decoration.
17227 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
17228 (*call_rex64_ms_sysv): Remove.
17229 (*call_value_rex64_ms_sysv): Ditto.
17230 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
17232 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
17234 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
17235 operand 3 to "CnL".
17237 2014-09-20 Andreas Schwab <schwab@suse.de>
17239 * config/ia64/ia64.md: Remove constraints from define_split
17242 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17244 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class;
17246 (possible_polymorphic_call_targets,
17247 dump_possible_polymorphic_call_targets,
17248 possible_polymorphic_call_target_p,
17249 possible_polymorphic_call_target_p): Simplify.
17250 (get_dynamic_type): Remove.
17251 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
17252 (clear_speculation): Bring to ipa-deivrt.h
17253 (get_class_context): Rename to ...
17254 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
17255 (contains_type_p): Update.
17256 (get_dynamic_type): Rename to ...
17257 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
17258 (possible_polymorphic_call_targets): UPdate.
17259 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
17260 * ipa-prop.c (ipa_analyze_call_uses): Update.
17262 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17264 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
17265 privatize dynamic TLS variables.
17267 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17269 * diagnostic.c (warning_n): New function.
17270 * diagnostic-core.h (warning_n): Declare.
17271 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
17272 output dynamic counts when available.
17274 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17276 PR tree-optimization/63255
17277 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
17278 issue in setting body_removed flag.
17280 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17283 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
17284 that visibility change is possible
17285 (handle_weakref_attribute): Likewise.
17286 * cgraph.h (symtab_node): Add method get_create and
17287 field refuse_visibility_changes.
17288 (symtab_node::get_create): New method.
17289 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
17290 * varasm.c (mark_weak): Verify that visibility change is possible.
17292 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17294 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
17295 for base_reg_operand to be common between LO_SUM and PLUS.
17296 (fusion_gpr_mem_combo): New predicate to match a fused address
17297 that combines the addis and memory offset address.
17299 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
17301 (emit_fusion_gpr_load): Likewise.
17303 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
17304 signature to pass each argument separately, rather than
17305 using an operands array. Rewrite the insns found by peephole2 to
17306 be a single insn, rather than hoping the insns will still be
17307 together when the peephole pass is done. Drop being called via a
17309 (emit_fusion_gpr_load): Change calling signature to be called from
17310 the fusion_gpr_load_<mode> insns with a combined memory address
17311 instead of the peephole pass passing the addis and offset
17314 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
17316 (power8 fusion peephole): Drop support for doing power8 via a
17317 normal peephole that was created by the peephole2 pass.
17318 (power8 fusion peephole2): Create a new insn with the fused
17319 address, so that the fused operation is kept together after
17320 register allocation is done.
17321 (fusion_gpr_load_<mode>): Likewise.
17323 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
17326 * tree.c (need_assembler_name_p): Do not mangle variadic types.
17328 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
17330 * recog.c (scratch_operand): Do not simply allow all hard registers:
17331 only allow those that are allocatable.
17333 2014-09-19 Felix Yang <felix.yang@huawei.com>
17335 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
17336 comments and fix spacing to conform to coding style.
17338 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17340 * genrecog.c (validate_pattern): Allow empty constraints in
17343 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
17345 * dwarf2out.c (decl_ultimate_origin): Update comment.
17346 * tree.c (block_ultimate_origin): Same.
17348 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17350 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17351 Update GCC version name to GCC 5.
17352 (rs6000_function_arg_boundary): Likewise.
17353 (rs6000_function_arg): Likewise.
17355 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17357 * config/sh/sh.md: Fix use of constraints in define_split.
17359 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
17362 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
17364 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17366 * doc/md.texi (Modifiers): Consistently use "read/write"
17367 nomenclature rather than "input/output".
17368 * genrecog.c (constraints_supported_in_insn_p): New.
17369 (validate_pattern): If needed, also check constraints on
17370 MATCH_SCRATCH operands.
17371 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
17372 operands with no '=' or '+' modifier.
17374 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
17376 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
17377 scratch register as written.
17379 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17381 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
17384 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17386 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
17389 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17392 * config/s390/s390.c (s390_emit_epilogue): When doing the return
17393 address load optimization force s390_optimize_prologue to leave it
17394 that way. Only do the optimization if we already decided to push
17395 r14 into a stack slot.
17397 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
17399 * asan.c (build_check_stmt): Alignment arg was added.
17400 (asan_expand_check_ifn): Optimization for alignment >= 8.
17402 2014-09-19 Olivier Hainque <hainque@adacore.com>
17404 * config/i386/vxworksae.h: Remove obsolete definitions.
17405 (STACK_CHECK_PROTECT): Define.
17406 * config/i386/vx-common.h: Remove. Merge contents within
17407 config/i386/vxworks.h.
17408 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
17411 2014-09-19 Olivier Hainque <hainque@adacore.com>
17413 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
17414 * config/rs6000/t-vxworksmils: New file.
17415 * config/rs6000/vxworksmils.h: New file.
17417 2014-09-19 Olivier Hainque <hainque@adacore.com>
17419 * varasm.c (default_section_type_flags): Flag .persistent.bss
17420 sections as SECTION_BSS.
17422 2014-09-19 Nick Clifton <nickc@redhat.com>
17424 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
17425 pop'ed registers so that DCE does not eliminate them.
17427 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
17430 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
17432 2014-09-18 Joseph Myers <joseph@codesourcery.com>
17434 * system.h (LIBGCC2_TF_CEXT): Poison.
17435 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
17436 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
17437 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
17438 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
17439 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
17440 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
17441 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
17442 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
17443 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
17445 2014-09-19 Kito Cheng <kito@0xlab.org>
17447 * except.h: Fix header guard.
17448 * addresses.h: Add missing header guard.
17449 * cfghooks.h: Likewise.
17450 * collect-utils.h: Likewise.
17451 * collect2-aix.h: Likewise.
17452 * conditions.h: Likewise.
17453 * cselib.h: Likewise.
17454 * dwarf2asm.h: Likewise.
17455 * graphds.h: Likewise.
17456 * graphite-scop-detection.h: Likewise.
17457 * gsyms.h: Likewise.
17458 * hw-doloop.h: Likewise.
17459 * incpath.h: Likewise.
17460 * ipa-inline.h: Likewise.
17461 * ipa-ref.h: Likewise.
17462 * ira-int.h: Likewise.
17464 * lra-int.h: Likewise.
17466 * lto-section-names.h: Likewise.
17467 * read-md.h: Likewise.
17468 * reload.h: Likewise.
17469 * rtl-error.h: Likewise.
17470 * sdbout.h: Likewise.
17471 * targhooks.h: Likewise.
17472 * tree-affine.h: Likewise.
17473 * xcoff.h: Likewise.
17474 * xcoffout.h: Likewise.
17476 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17479 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
17482 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
17485 * lra.c (lra): Call recog_init.
17487 2014-09-18 Jakub Jelinek <jakub@redhat.com>
17490 * asan.c (transform_statements): Don't instrument clobber statements.
17492 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17494 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
17495 to neon_load1_1reg<q>.
17497 2014-09-17 Jakub Jelinek <jakub@redhat.com>
17500 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
17501 if there are only debug stmts after the noreturn call, instead
17502 remove the debug stmts.
17504 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
17506 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
17507 (odr_types_equivalent_p): Use pair hash.
17508 (odr_subtypes_equivalent_p): Likewise, do structural compare
17509 on ODR types that may be mismatched.
17510 (warn_odr): Support warning when only one field is given.
17511 (odr_types_equivalent_p): Strenghten comparsions made;
17513 (add_type_duplicate): Update VISITED hash set.
17515 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17517 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
17518 Enable selection of 'posix' or no thread model.
17520 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
17522 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
17523 when architecture is older than ARMv7.
17525 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
17528 * config/pa/pa.c (pa_function_value): Directly handle aggregates
17529 that fit exactly in a word or double word.
17531 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
17533 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
17534 zmm/k regs support.
17536 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
17537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17538 Anna Tikhonova <anna.tikhonova@intel.com>
17539 Ilya Tocar <ilya.tocar@intel.com>
17540 Andrey Turetskiy <andrey.turetskiy@intel.com>
17541 Ilya Verbin <ilya.verbin@intel.com>
17542 Kirill Yukhin <kirill.yukhin@intel.com>
17543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17545 * config/i386/i386.c
17546 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
17547 * config/i386/sse.md
17548 (define_mode_iterator VI48F_256): New.
17549 (define_mode_attr extract_type): Ditto.
17550 (define_mode_attr extract_suf): Ditto.
17551 (define_mode_iterator AVX512_VEC): Ditto.
17553 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
17555 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
17557 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
17559 (define_mode_attr extract_type_2): Ditto.
17560 (define_mode_attr extract_suf_2): Ditto.
17561 (define_mode_iterator AVX512_VEC_2): Ditto.
17563 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
17564 AVX512_VEC_2 mode iterator.
17565 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17566 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
17567 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17568 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17569 (define_split for V16FI mode): Ditto.
17570 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17571 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17572 (define_split for VI8F_256 mode): Ditto.
17573 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17574 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
17575 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
17576 (define_split for VI4F_256 mode): Ditto.
17577 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
17578 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
17579 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
17580 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
17581 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
17582 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
17583 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
17584 Update `type' attribute, remove explicit `memory' attribute calculation.
17586 2014-09-16 Kito Cheng <kito@0xlab.org>
17588 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
17589 ira_spilled_reg_stack_slots_num if using lra.
17590 (do_reload): Remove release ira_spilled_reg_stack_slots part.
17591 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
17592 make sure not using lra.
17593 (ira_reuse_stack_slot): Likewise.
17594 (ira_mark_new_stack_slot): Likewise.
17596 2014-09-15 Andi Kleen <ak@linux.intel.com>
17598 * function.c (allocate_struct_function): Force
17599 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
17600 profiling is disabled.
17602 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17604 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
17605 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
17606 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
17607 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
17608 macro with statically checked member functions.
17609 * rtl.h (rtx_insn::deleted): New method.
17610 (rtx_insn::set_deleted): Likewise.
17611 (rtx_insn::set_undeleted): Likewise.
17612 (INSN_DELETED_P): Remove.
17614 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
17616 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
17617 result of emit_jump_insn_before to a new variable.
17618 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
17619 (mark_jump_label_1): Likewise.
17620 (mark_jump_label_asm): Likewise.
17621 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
17622 * rtl.h (mark_jump_label): Adjust.
17624 2014-09-15 Jakub Jelinek <jakub@redhat.com>
17626 * Makefile.in (dg_target_exps): Remove.
17627 (check_gcc_parallelize): Change to just an upper bound number.
17628 (check-%-subtargets): Always print the non-parallelized goals.
17629 (check_p_vars, check_p_comma, check_p_subwork): Remove.
17630 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
17631 check_p_numbers3, check_p_numbers4, check_p_numbers5,
17632 check_p_numbers6): New variables.
17633 (check_p_numbers): Set to sequence from 1 to 9999.
17634 (check_p_subdirs): Set to sequence from 1 to minimum of
17635 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
17637 (check-%, check-parallel-%): Rewritten so that for parallelized
17638 testing each job runs all the *.exp files, with
17639 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
17641 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17643 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
17645 (arc_sets_cc_p): Likewise.
17646 * config/arc/arc.c (arc_print_operand): Use methods of
17647 "final_sequence" for clarity, and to enable strengthening of
17648 locals "jump" and "delay" from rtx to rtx_insn *.
17649 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
17650 rtx_insn *; use method of rtx_sequence for typesafety.
17651 (arc_get_insn_variants): Use insn method of rtx_sequence for
17653 (arc_pad_return): Likewise.
17654 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
17655 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
17656 dyn_cast to rtx_sequence *, using insn method for typesafety.
17657 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
17658 rtx_sequence * and use insn method when invoking get_attr_length.
17659 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
17660 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
17661 rtx_sequence *, introducing a local "seq", using its insn method
17662 from typesafety and clarity.
17663 (add_sched_insns_for_speculation): Strengthen local "next" from
17665 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
17666 (predicate_insn): Likewise.
17667 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
17669 * config/cris/cris.c (cris_notice_update_cc): Likewise.
17670 * config/epiphany/epiphany-protos.h
17671 (extern void epiphany_insert_mode_switch_use): Likewise for param
17673 (get_attr_sched_use_fpu): Likewise for param.
17674 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
17675 Likewise for param "insn".
17676 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
17677 param "insn" of "target_insert_mode_switch_use" callback.
17678 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
17679 (frv_issues_to_branch_unit_p): Likewise.
17680 (frv_pack_insn_p): Likewise.
17681 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
17682 const rtx * (i.e. mutable rtx_def * const *) to
17683 rtx_insn * const *.
17684 * config/i386/i386-protos.h (standard_sse_constant_opcode):
17685 Strengthen first param from rtx to rtx_insn *.
17686 (output_fix_trunc): Likewise.
17687 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
17688 (output_fix_trunc): Likewise.
17689 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
17691 (min_insn_size): Likewise for param "insn".
17692 (get_mem_group): Likewise.
17693 (is_cmp): Likewise.
17694 (get_insn_path): Likewise.
17695 (get_insn_group): Likewise.
17696 (count_num_restricted): Likewise.
17697 (fits_dispatch_window): Likewise.
17698 (add_insn_window): Likewise.
17699 (add_to_dispatch_window): Likewise.
17700 (debug_insn_dispatch_info_file): Likewise.
17701 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
17703 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
17704 "cmp" and local "prev".
17705 (m32c_output_compare): Likewise for param "insn".
17706 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
17707 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
17708 (define_predicate "large_insn_p"): Likewise.
17709 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
17710 param from rtx to rtx_insn *.
17711 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
17712 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
17713 (m68k_sched_attr_size): Likewise.
17714 (sched_get_opxy_mem_type): Likewise for param "insn".
17715 (m68k_sched_attr_op_mem): Likewise.
17716 (sched_mem_operand_p): Likewise.
17717 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
17718 * config/mep/mep.c (mep_multi_slot): Likewise.
17719 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
17721 (mips_sync_loop_insns): Likewise.
17722 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
17723 method of "final_sequence" for typesafety.
17724 (mips_process_sync_loop): Strengthen param "insn" from rtx to
17726 (mips_output_sync_loop): Likewise.
17727 (mips_sync_loop_insns): Likewise.
17728 (mips_74k_agen_init): Likewise.
17729 (mips_sched_init): Use NULL rather than NULL_RTX when working with
17731 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
17732 Strengthen param "insn" from rtx to rtx_insn *.
17733 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
17735 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for param.
17736 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
17737 "insn". Use method of rtx_sequence for typesafety.
17738 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
17740 (branch_needs_nop_p): Likewise.
17741 (use_skip_p): Likewise.
17742 (pa_insn_refs_are_delayed): Likewise.
17743 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
17744 for locals "insn", "ninsn".
17745 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
17747 (is_cracked_insn): Likewise.
17748 (is_branch_slot_insn): Likewise.
17749 (is_nonpipeline_insn): Likewise.
17750 (insn_terminates_group_p): Likewise.
17751 (insn_must_be_first_in_group): Likewise.
17752 (insn_must_be_last_in_group): Likewise.
17753 (force_new_group): Likewise for param "next_insn".
17754 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
17756 (s390_sched_score): Likewise.
17757 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
17758 (rtx sfunc_uses_reg): Likewise for sole param.
17759 * config/sh/sh.c (sh_print_operand): Use insn method of
17760 final_sequence for typesafety.
17761 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
17762 Use insn method of final_sequence for typesafety.
17763 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
17764 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
17766 (eligible_for_return_delay): Likewise.
17767 (eligible_for_sibcall_delay): Likewise.
17768 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
17769 (eligible_for_return_delay): Likewise.
17770 (eligible_for_sibcall_delay): Likewise.
17771 * config/stormy16/stormy16-protos.h
17772 (xstormy16_output_cbranch_hi): Likewise for final param.
17773 (xstormy16_output_cbranch_si): Likewise.
17774 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
17775 (xstormy16_output_cbranch_si): Likewise.
17776 * config/v850/v850-protos.h (notice_update_cc): Likewise.
17777 * config/v850/v850.c (notice_update_cc): Likewise.
17779 * final.c (get_attr_length_1): Strengthen param "insn" and param
17780 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
17781 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
17782 (get_attr_min_length): Likewise.
17783 (shorten_branches): Likewise for signature of locals "length_fun"
17784 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
17785 from a checked cast and use its methods for clarity and to enable
17786 strengthening local "inner_insn" from rtx to rtx_insn *.
17787 * genattr.c (gen_attr): When writing out the prototypes of the
17788 various generated "get_attr_" functions, strengthen the params of
17789 the non-const functions from rtx to rtx_insn *.
17790 Similarly, strengthen the params of insn_default_length,
17791 insn_min_length, insn_variable_length_p, insn_current_length.
17792 (main): Similarly, strengthen the param of num_delay_slots,
17793 internal_dfa_insn_code, insn_default_latency, bypass_p,
17794 insn_latency, min_issue_delay, print_reservation,
17795 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
17796 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
17797 to hook_int_rtx_insn_unreachable.
17798 * genattrtab.c (write_attr_get): When writing out the generated
17799 "get_attr_" functions, strengthen the param "insn" from rtx to
17800 rtx_insn *, eliminating a checked cast.
17801 (make_automaton_attrs): When writing out prototypes of
17802 "internal_dfa_insn_code_", "insn_default_latency_" functions
17803 and the "internal_dfa_insn_code" and "insn_default_latency"
17804 callbacks, strengthen their params from rtx to rtx_insn *
17805 * genautomata.c (output_internal_insn_code_evaluation): When
17806 writing out code, add a checked cast from rtx to rtx_insn * when
17807 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
17808 (output_dfa_insn_code_func): Strengthen param of generated
17809 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
17810 (output_trans_func): Likewise for generated function
17811 "state_transition".
17812 (output_internal_insn_latency_func): When writing out generated
17813 function "internal_insn_latency", rename params from "insn" and
17814 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
17815 locals "insn" and "insn2" as rtx_insn * with checked casts once
17816 we've proven that we're not dealing with const0_rtx.
17817 (output_insn_latency_func): Strengthen param of generated
17818 function "insn_latency" from rtx to rtx_insn *.
17819 (output_print_reservation_func): Likewise for generated function
17820 "print_reservation".
17821 (output_insn_has_dfa_reservation_p): Likewise for generated
17822 function "insn_has_dfa_reservation_p".
17823 * hooks.c (hook_int_rtx_unreachable): Rename to...
17824 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
17825 from rtx to rtx_insn *.
17826 * hooks.h (hook_int_rtx_unreachable): Likewise.
17827 (extern int hook_int_rtx_insn_unreachable): Likewise.
17828 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
17829 (get_attr_min_length): Likewise.
17830 * recog.c (get_enabled_alternatives): Likewise.
17831 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
17832 * reorg.c (find_end_label): Introduce local rtx "pat" and
17833 strengthen local "insn" from rtx to rtx_insn *.
17834 (redundant_insn): Use insn method of "seq" rather than element for
17835 typesafety; strengthen local "control" from rtx to rtx_insn *.
17836 * resource.c (mark_referenced_resources): Add checked cast to
17837 rtx_insn * within INSN/JUMP_INSN case.
17838 (mark_set_resources): Likewise.
17839 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
17842 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17844 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
17845 param "label" from rtx to rtx_insn *.
17846 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
17848 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
17849 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
17850 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
17851 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
17852 * final.c (default_label_align_after_barrier_max_skip): Strengthen
17853 param from rtx to rtx_insn *.
17854 (default_loop_align_max_skip): Likewise.
17855 (default_label_align_max_skip): Likewise.
17856 (default_jump_align_max_skip): Likewise.
17857 * target.def (label_align_after_barrier_max_skip): Likewise.
17858 (loop_align_max_skip): Likewise.
17859 (label_align_max_skip): Likewise.
17860 (jump_align_max_skip): Likewise.
17861 * targhooks.h (default_label_align_after_barrier_max_skip): Likewise.
17862 (default_loop_align_max_skip): Likewise.
17863 (default_label_align_max_skip): Likewise.
17864 (default_jump_align_max_skip): Likewise.
17866 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17868 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
17869 from const_rtx to const rtx_insn *. Update union members from rtx
17871 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
17872 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
17873 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
17874 strengthen both params from const_rtx to const rtx_insn *.
17875 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
17876 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
17877 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
17879 * target.def (can_follow_jump): Strengthen both params from
17880 const_rtx to const rtx_insn *, and update default implementation
17881 from hook_bool_const_rtx_const_rtx_true to
17882 hook_bool_const_rtx_insn_const_rtx_insn_true.
17884 2014-09-15 David Malcolm <dmalcolm@redhat.com>
17886 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
17887 "insn" from rtx to rtx_insn *.
17888 * sched-int.h (deps_start_bb): Likewise for 2nd param.
17890 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17892 Anna Tikhonova <anna.tikhonova@intel.com>
17893 Ilya Tocar <ilya.tocar@intel.com>
17894 Andrey Turetskiy <andrey.turetskiy@intel.com>
17895 Ilya Verbin <ilya.verbin@intel.com>
17896 Kirill Yukhin <kirill.yukhin@intel.com>
17897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17899 * config/i386/sse.md
17900 (define_insn "vcvtph2ps<mask_name>"): Add masking.
17901 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
17902 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
17903 (define_expand "vcvtps2ph_mask"): New.
17904 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
17905 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
17906 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
17908 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
17909 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17910 Anna Tikhonova <anna.tikhonova@intel.com>
17911 Ilya Tocar <ilya.tocar@intel.com>
17912 Andrey Turetskiy <andrey.turetskiy@intel.com>
17913 Ilya Verbin <ilya.verbin@intel.com>
17914 Kirill Yukhin <kirill.yukhin@intel.com>
17915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17917 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
17919 (define_mode_iterator VI24_AVX512BW_1): Ditto.
17920 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
17921 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
17922 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
17923 also for TARGET_AVX512VL.
17924 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
17926 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
17928 * doc/install.texi (Options specification): add
17929 --disable-libsanitizer item.
17931 2014-09-14 James Clarke <jrtc27@jrtc27.com>
17932 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17935 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
17937 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
17938 kernel version check to avoid incrementing it after every major OS X
17940 (darwin_default_min_version): Avoid static memory buffer.
17942 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
17944 * tree.c (need_assembler_name_p): Store C++ type mangling only
17947 2014-09-13 Marek Polacek <polacek@redhat.com>
17949 * tree.c (protected_set_expr_location): Don't check whether T is
17952 2014-09-12 DJ Delorie <dj@redhat.com>
17954 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
17955 (extend_and_shift1_hipsi2): Likewise.
17956 (extend_and_shift2_hipsi2): Likewise.
17958 2014-09-12 David Malcolm <dmalcolm@redhat.com>
17960 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
17961 with NULL when dealing with an insn.
17962 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
17963 from rtx to rtx_insn *.
17964 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
17965 const_rtx to const rtx_insn *.
17966 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
17968 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
17970 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
17973 2014-09-12 Joseph Myers <joseph@codesourcery.com>
17975 * target.def (libgcc_floating_mode_supported_p): New hook.
17976 * targhooks.c (default_libgcc_floating_mode_supported_p): New
17978 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
17979 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
17980 (LIBGCC2_HAS_TF_MODE): Remove.
17981 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
17982 * doc/tm.texi: Regenerate.
17983 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
17985 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
17986 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
17987 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
17988 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
17989 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17990 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
17991 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
17992 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
17993 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
17994 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
17996 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
17997 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17998 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
17999 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18000 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18001 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18002 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18003 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
18004 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
18005 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
18006 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
18007 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
18008 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
18009 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
18011 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
18013 (ia64_libgcc_floating_mode_supported_p): New function.
18014 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
18015 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
18016 (IA64_NO_LIBGCC_TFMODE): Define.
18017 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
18018 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18019 (pdp11_scalar_mode_supported_p): New function.
18020 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
18021 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
18023 2014-09-12 Richard Biener <rguenther@suse.de>
18025 PR middle-end/63237
18026 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
18028 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
18030 * tree.c (integer_each_onep): New function.
18031 * tree.h (integer_each_onep): Declare it.
18032 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
18033 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
18034 (X & 1) == 0 for vector and complex.
18036 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18038 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
18040 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
18041 cost to spilling from integer to FP registers.
18043 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18045 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
18047 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
18048 are now handled correctly.
18050 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18052 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
18053 handling of CALLER_SAVE_REGS and POINTER_REGS.
18055 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
18057 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
18058 the number of hard registers.
18060 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18061 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18062 Anna Tikhonova <anna.tikhonova@intel.com>
18063 Ilya Tocar <ilya.tocar@intel.com>
18064 Andrey Turetskiy <andrey.turetskiy@intel.com>
18065 Ilya Verbin <ilya.verbin@intel.com>
18066 Kirill Yukhin <kirill.yukhin@intel.com>
18067 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18069 * config/i386/sse.md
18070 (define_mode_iterator VI48_AVX512VL): New.
18071 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
18072 "avx512f_vternlog<mode>_maskz" and update mode iterator.
18073 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
18074 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
18075 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
18076 "avx512f_vternlog<mode>_mask" and update mode iterator.
18077 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
18078 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
18080 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
18081 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
18082 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
18083 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
18084 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
18085 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
18087 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18088 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18089 Anna Tikhonova <anna.tikhonova@intel.com>
18090 Ilya Tocar <ilya.tocar@intel.com>
18091 Andrey Turetskiy <andrey.turetskiy@intel.com>
18092 Ilya Verbin <ilya.verbin@intel.com>
18093 Kirill Yukhin <kirill.yukhin@intel.com>
18094 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18096 * config/i386/sse.md (VI128_256): Delete.
18097 (define_mode_iterator VI124_256): New.
18098 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
18099 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
18100 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
18101 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
18102 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
18103 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
18104 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
18105 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
18107 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
18108 in presence of AVX-512.
18110 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
18111 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18112 Anna Tikhonova <anna.tikhonova@intel.com>
18113 Ilya Tocar <ilya.tocar@intel.com>
18114 Andrey Turetskiy <andrey.turetskiy@intel.com>
18115 Ilya Verbin <ilya.verbin@intel.com>
18116 Kirill Yukhin <kirill.yukhin@intel.com>
18117 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18119 * config/i386/sse.md
18120 (define_expand "<avx512>_gathersi<mode>"): Rename from
18121 "avx512f_gathersi<mode>".
18122 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
18123 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
18124 (define_expand "<avx512>_gatherdi<mode>"): Rename from
18125 "avx512f_gatherdi<mode>".
18126 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
18127 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
18129 (define_expand "<avx512>_scattersi<mode>"): Rename from
18130 "avx512f_scattersi<mode>".
18131 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
18132 (define_expand "<avx512>_scatterdi<mode>"): Rename from
18133 "avx512f_scatterdi<mode>".
18134 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
18136 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
18138 * ira.h (ira_finish_once): Delete.
18139 * ira-int.h (target_ira_int::~target_ira_int): Declare.
18140 (target_ira_int::free_ira_costs): Likewise.
18141 (target_ira_int::free_register_move_costs): Likewise.
18142 (ira_finish_costs_once): Delete.
18143 * ira.c (free_register_move_costs): Replace with...
18144 (target_ira_int::free_register_move_costs): ...this new function.
18145 (target_ira_int::~target_ira_int): Define.
18146 (ira_init): Call free_register_move_costs as a member function rather
18147 than a global function.
18148 (ira_finish_once): Delete.
18149 * ira-costs.c (free_ira_costs): Replace with...
18150 (target_ira_int::free_ira_costs): ...this new function.
18151 (ira_init_costs): Call free_ira_costs as a member function rather
18152 than a global function.
18153 (ira_finish_costs_once): Delete.
18154 * target-globals.c (target_globals::~target_globals): Call the
18155 target_ira_int destructor.
18156 * toplev.c: Include lra.h.
18157 (finalize): Call lra_finish_once rather than ira_finish_once.
18159 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
18161 * common.opt (flto-odr-type-merging): New flag.
18162 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
18163 (types_same_for_odr): Likewise.
18164 (odr_subtypes_equivalent_p): Likewise.
18165 (add_type_duplicate): Do not walk type variants.
18166 (register_odr_type): New function.
18167 * ipa-utils.h (register_odr_type): Declare.
18168 (odr_type_p): New function.
18169 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
18171 * doc/invoke.texi (-flto-odr-type-merging): Document.
18172 * tree.c (need_assembler_name_p): Compute ODR names when asked
18174 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
18176 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
18179 * config/i386/i386.c (ix86_option_override_internal): Also turn
18180 off OPTION_MASK_ABI_X32 for -m16.
18182 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18184 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
18187 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
18190 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18191 Directly forward to __*_DENORM_MIN__.
18193 2014-09-11 David Malcolm <dmalcolm@redhat.com>
18195 * rtl.h (LABEL_REF_LABEL): New macro.
18197 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
18198 of XEXP (, 0), where we know that we have a LABEL_REF.
18199 * cfgbuild.c (make_edges): Likewise.
18200 (purge_dead_tablejump_edges): Likewise.
18201 * cfgexpand.c (convert_debug_memory_address): Likewise.
18202 * cfgrtl.c (patch_jump_insn): Likewise.
18203 * combine.c (distribute_notes): Likewise.
18204 * cse.c (hash_rtx_cb): Likewise.
18205 (exp_equiv_p): Likewise.
18206 (fold_rtx): Likewise.
18207 (check_for_label_ref): Likewise.
18208 * cselib.c (rtx_equal_for_cselib_1): Likewise.
18209 (cselib_hash_rtx): Likewise.
18210 * emit-rtl.c (mark_label_nuses): Likewise.
18211 * explow.c (convert_memory_address_addr_space): Likewise.
18212 * final.c (output_asm_label): Likewise.
18213 (output_addr_const): Likewise.
18214 * gcse.c (add_label_notes): Likewise.
18215 * genconfig.c (walk_insn_part): Likewise.
18216 * genrecog.c (validate_pattern): Likewise.
18217 * ifcvt.c (cond_exec_get_condition): Likewise.
18218 (noce_emit_store_flag): Likewise.
18219 (noce_get_alt_condition): Likewise.
18220 (noce_get_condition): Likewise.
18221 * jump.c (maybe_propagate_label_ref): Likewise.
18222 (mark_jump_label_1): Likewise.
18223 (redirect_exp_1): Likewise.
18224 (rtx_renumbered_equal_p): Likewise.
18225 * lra-constraints.c (operands_match_p): Likewise.
18226 * reload.c (operands_match_p): Likewise.
18227 (find_reloads): Likewise.
18228 * reload1.c (set_label_offsets): Likewise.
18229 * reorg.c (get_branch_condition): Likewise.
18230 * rtl.c (rtx_equal_p_cb): Likewise.
18231 (rtx_equal_p): Likewise.
18232 * rtlanal.c (reg_mentioned_p): Likewise.
18233 (rtx_referenced_p): Likewise.
18234 (get_condition): Likewise.
18235 * sched-vis.c (print_value): Likewise.
18236 * varasm.c (const_hash_1): Likewise.
18237 (compare_constant): Likewise.
18238 (const_rtx_hash_1): Likewise.
18239 (output_constant_pool_1): Likewise.
18241 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
18243 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
18244 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
18246 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
18247 cr6_test_for_lt_reverse): Ditto.
18249 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
18252 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
18254 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18256 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
18257 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
18258 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
18259 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
18262 (aarch64_fold_builtin): Remove all reinterpret cases.
18264 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
18266 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
18268 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
18269 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
18270 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
18271 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
18272 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
18273 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
18274 aarch64_reinterpretv2df<mode>): Delete.
18276 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
18278 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
18279 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
18280 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
18281 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
18282 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
18283 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
18284 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
18285 vreinterpret_u32_f64): Use cast.
18287 * config/aarch64/iterators.md (VD_RE): Delete.
18289 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
18291 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
18292 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
18293 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
18294 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
18295 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
18296 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
18297 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
18298 Replace inline assembler with __aarch64_vset_lane_any.
18300 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
18302 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
18304 (vmull_high_lane_s32): Likewise.
18305 (vmull_high_lane_u16): Likewise.
18306 (vmull_high_lane_u32): Likewise.
18308 2014-09-11 Jason Merrill <jason@redhat.com>
18311 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
18313 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
18316 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
18317 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
18318 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
18320 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18321 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18322 Anna Tikhonova <anna.tikhonova@intel.com>
18323 Ilya Tocar <ilya.tocar@intel.com>
18324 Andrey Turetskiy <andrey.turetskiy@intel.com>
18325 Ilya Verbin <ilya.verbin@intel.com>
18326 Kirill Yukhin <kirill.yukhin@intel.com>
18327 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18329 * config/i386/sse.md
18330 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
18331 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
18332 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
18334 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
18335 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
18337 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18339 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
18340 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
18341 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
18342 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
18343 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
18344 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
18345 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
18346 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
18348 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
18350 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
18351 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
18352 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
18354 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18356 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
18357 to access removed nodes.
18359 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18361 PR tree-optimization/63186
18362 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
18363 (mark_nonssa_use): Likewise.
18364 (verify_non_ssa_vars): Verify all header blocks for label
18367 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18368 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18369 Anna Tikhonova <anna.tikhonova@intel.com>
18370 Ilya Tocar <ilya.tocar@intel.com>
18371 Andrey Turetskiy <andrey.turetskiy@intel.com>
18372 Ilya Verbin <ilya.verbin@intel.com>
18373 Kirill Yukhin <kirill.yukhin@intel.com>
18374 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18376 * config/i386/sse.md
18377 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
18378 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
18379 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
18380 "<avx2_avx512f>_permvar<mode><mask_name>".
18381 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
18382 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
18383 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
18384 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
18386 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
18387 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18388 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
18389 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
18391 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
18393 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
18394 V2DF, V4SF, DF, and DI modes.
18395 (vsx_fmav2df2): Likewise.
18396 (vsx_float_fix_<mode>2): Likewise.
18397 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
18399 2014-09-10 Xinliang David Li <davidxl@google.com>
18402 * config/arm/arm.md (movcond_addsi): Handle case where source
18403 and target operands are the same.
18405 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18407 * final.c (this_is_asm_operands): Strengthen this variable from
18408 rtx to const rtx_insn *.
18409 * output.h (this_is_asm_operands): Likewise.
18410 * rtl-error.c (location_for_asm): Strengthen param "insn" from
18411 const_rtx to const rtx_insn *.
18412 (diagnostic_for_asm): Likewise.
18413 * rtl-error.h (error_for_asm): Likewise.
18414 (warning_for_asm): Likewise.
18416 2014-09-10 David Malcolm <dmalcolm@redhat.com>
18418 * genextract.c (print_header): When writing out insn_extract to
18419 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
18420 * recog.h (insn_extract): Strengthen the param from rtx to
18423 2014-09-10 Mike Stump <mikestump@comcast.net>
18425 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
18428 2014-09-10 Martin Jambor <mjambor@suse.cz>
18430 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
18431 (analyze): Do not set analyze flag if expand_thunk returns false;.
18432 (create_wrapper): Likewise.
18433 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
18435 2014-09-10 Martin Jambor <mjambor@suse.cz>
18438 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
18439 new decl properly. Analyze the new thunk if it is expanded.
18441 2014-09-10 Andreas Schwab <schwab@suse.de>
18443 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
18444 [USED_FOR_TARGET]: Define.
18446 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
18448 * config/mips/mips.c (mips_secondary_reload_class): Handle
18451 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
18453 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
18456 2014-09-10 Jakub Jelinek <jakub@redhat.com>
18458 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
18459 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
18460 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
18461 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
18462 flag_delete_null_pointer_checks for them.
18463 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18464 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
18465 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
18466 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
18467 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
18469 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
18470 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
18471 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
18472 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
18473 * doc/invoke.texi (-fsanitize=nonnull-attribute,
18474 -fsanitize=returns-nonnull-attribute): Document.
18476 * ubsan.h (struct ubsan_mismatch_data): Removed.
18477 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18478 * ubsan.c (ubsan_source_location): For unknown locations,
18479 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
18480 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
18481 Allow more than one location and arbitrary extra arguments passed
18482 in ... instead of through MISMATCH pointer.
18483 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
18484 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18485 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
18488 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18489 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18490 Anna Tikhonova <anna.tikhonova@intel.com>
18491 Ilya Tocar <ilya.tocar@intel.com>
18492 Andrey Turetskiy <andrey.turetskiy@intel.com>
18493 Ilya Verbin <ilya.verbin@intel.com>
18494 Kirill Yukhin <kirill.yukhin@intel.com>
18495 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18497 * config/i386/sse.md
18498 (define_mode_iterator VI48F): New.
18499 (define_insn "<avx512>_compress<mode>_mask"): Rename from
18500 "avx512f_compress<mode>_mask" and update mode iterator.
18501 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
18502 "avx512f_compressstore<mode>_mask" and update mode iterator.
18503 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
18504 "avx512f_expand<mode>_maskz" and update mode iterator.
18505 (define_insn "<avx512>_expand<mode>_mask"): Rename from
18506 "avx512f_expand<mode>_mask" and update mode iterator.
18508 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18509 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18510 Anna Tikhonova <anna.tikhonova@intel.com>
18511 Ilya Tocar <ilya.tocar@intel.com>
18512 Andrey Turetskiy <andrey.turetskiy@intel.com>
18513 Ilya Verbin <ilya.verbin@intel.com>
18514 Kirill Yukhin <kirill.yukhin@intel.com>
18515 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18517 * config/i386/i386.c
18518 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
18519 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
18520 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
18521 avx512dq_rangepv4sf_mask.
18522 * config/i386/sse.md
18523 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
18525 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
18526 (define_insn "reduces<mode>"): Ditto.
18527 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
18529 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
18530 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
18531 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
18533 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18534 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18535 Anna Tikhonova <anna.tikhonova@intel.com>
18536 Ilya Tocar <ilya.tocar@intel.com>
18537 Andrey Turetskiy <andrey.turetskiy@intel.com>
18538 Ilya Verbin <ilya.verbin@intel.com>
18539 Kirill Yukhin <kirill.yukhin@intel.com>
18540 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18542 * config/i386/i386.c
18543 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
18544 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
18545 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
18546 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
18547 avx512vl_getmantv2df_mask.
18548 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
18549 avx512f_vgetmantv4sf_round.
18550 * config/i386/sse.md
18551 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
18552 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
18554 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
18555 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
18556 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
18557 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
18559 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
18560 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
18561 update mode iterator.
18563 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
18564 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
18567 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
18568 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
18569 update mode iterator.
18570 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
18571 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
18574 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
18575 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
18577 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
18578 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
18579 update mode iterator.
18580 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
18581 "avx512f_getmant<mode><round_saeonly_name>".
18583 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
18586 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
18588 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
18589 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18590 Anna Tikhonova <anna.tikhonova@intel.com>
18591 Ilya Tocar <ilya.tocar@intel.com>
18592 Andrey Turetskiy <andrey.turetskiy@intel.com>
18593 Ilya Verbin <ilya.verbin@intel.com>
18594 Kirill Yukhin <kirill.yukhin@intel.com>
18595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18597 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
18598 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
18599 (define_mode_iterator FMAMODE_AVX512): New.
18600 (define_mode_iterator FMAMODE): Remove conditions.
18601 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
18602 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
18603 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
18605 (define_mode_iterator FMAMODE_NOVF512): Remove.
18606 (define_insn "*fma_fmadd_<mode>"): Rename from
18607 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
18608 FMAMODE mode iterator.
18609 (define_mode_iterator VF_SF_AVX512VL): New.
18610 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
18611 Use VF_SF_AVX512VL mode iterator.
18612 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
18613 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18615 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
18616 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18618 (define_insn "*fma_fmsub_<mode>"): Rename from
18619 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
18620 FMAMODE mode iterator.
18621 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
18622 Use VF_SF_AVX512VL mode iterator.
18623 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
18624 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18626 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
18627 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18629 (define_insn "*fma_fnmadd_<mode>"): Rename from
18630 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
18631 use FMAMODE mode iterator.
18632 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
18633 Use VF_SF_AVX512VL mode iterator.
18634 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
18635 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18637 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
18638 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18640 (define_insn "*fma_fnmsub_<mode>"): Rename from
18641 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
18642 FMAMODE mode iterator.
18643 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
18644 Use VF_SF_AVX512VL mode iterator.
18645 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
18646 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18648 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
18649 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18651 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
18652 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
18653 use VF_AVX512VL mode iterator.
18654 (define_insn "*fma_fmaddsub_<mode>"): Rename from
18655 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
18656 remove subst usage.
18657 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
18658 Use VF_SF_AVX512VL mode iterator.
18659 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
18660 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
18662 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
18663 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18665 (define_insn "*fma_fmsubadd_<mode>"): Rename from
18666 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
18667 remove usage of subst.
18668 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
18669 Use VF_SF_AVX512VL mode iterator.
18670 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
18671 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
18673 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
18674 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
18677 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
18680 * calls.c (precompute_arguments): Check
18681 promoted_for_signed_and_unsigned_p and set the promoted mode.
18682 (promoted_for_signed_and_unsigned_p): New function.
18683 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
18684 and set the promoted mode.
18685 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
18686 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
18687 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
18689 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18691 * opth-gen.awk: Generate mapping from cpp message reasons to the
18692 options that enable them.
18693 * doc/options.texi (CppReason): Document.
18695 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18697 * doc/invoke.texi (Wnormalized=): Update.
18699 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
18702 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
18703 operands. Split off the constant operand alternative to ...
18704 (*bool<mode>3_imm): New.
18706 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18708 * rtl.h (single_set_2): Strengthen first param from const_rtx to
18709 const rtx_insn *, and move prototype to above...
18710 (single_set): ...this. Convert this from a macro to an inline
18711 function, enforcing the requirement that the param is a const
18713 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
18715 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
18716 Strengthen both params from rtx to rtx_insn *.
18717 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18718 Likewise; introduce locals "producer_set", "consumer_set", using
18719 them in place of "producer" and "consumer" when dealing with SET
18721 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
18722 when invoking single_set in region guarded by INSN_P.
18723 (avr_out_bitop): Likewise.
18724 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
18725 region guarded by GET_CODE check, using methods to strengthen
18726 local "this_insn" from rtx to rtx_insn *, and for clarity.
18727 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
18728 Strengthen local "insn" from rtx to rtx_insn *.
18729 (define_insn_and_split "xload<mode>_A"): Likewise.
18730 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
18732 (find_load): Likewise for return type.
18733 (workaround_speculation): Likewise for both locals named
18735 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
18737 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
18739 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
18741 * config/h8300/h8300.c (notice_update_cc): Likewise.
18742 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
18743 "insn" and "dep_insn".
18744 (exact_store_load_dependency): Likewise for both params.
18745 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
18746 since this now clashes with inline function. Instead, delay
18747 calling single_set until the point where its needed, and then
18748 assign the result to "compare_set" and rework the conditional that
18750 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
18751 local "last" from rtx to rtx_insn *.
18752 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
18754 (mips_store_data_bypass_p): Likewise for both params.
18755 * config/mips/mips.c (mips_load_store_insns): Likewise for second
18757 (mips_store_data_bypass_p): Likewise for both params.
18758 (mips_orphaned_high_part_p): Likewise for param "insn".
18759 * config/mn10300/mn10300.c (extract_bundle): Likewise.
18760 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
18761 Introduce local rtx "insn2_pat".
18762 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
18764 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
18765 Introduce local rtx "set", using it in place of "insn" for the
18766 result of single_set. This appears to fix a bug, since the call
18767 to find_regno_note on a SET does nothing.
18768 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
18769 params from rtx to rtx_insn *.
18770 (set_to_load_agen): Likewise.
18771 * config/s390/s390.c (s390_label_align): Likewise for local
18772 "prev_insn". Introduce new rtx locals "set" and "src", using
18773 them in place of "prev_insn" for the results of single_set
18774 and SET_SRC respectively.
18775 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
18776 Introduce new rtx local "set" using in place of "jump" for the
18777 result of single_set. Use SET_SRC (set) rather than plain
18779 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
18781 (noncall_uses_reg): Likewise.
18782 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
18783 guarded by GET_CODE check, using its methods for clarity, and to
18784 enable strengthening local "this_insn" from rtx to rtx_insn *.
18785 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
18786 "insn" from rtx to rtx_insn *.
18787 (define_expand "umulhisi3"): Likewise.
18788 (define_expand "smulsi3_highpart"): Likewise.
18789 (define_expand "umulsi3_highpart"): Likewise.
18790 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18791 local "after". Replace GET_CODE check with a dyn_cast,
18792 introducing new local rtx_sequence * "seq", using insn method for
18795 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
18796 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
18797 place of "insn" once we're dealing with patterns rather than the
18799 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
18800 (scan_trace): Likewise for local "elt", updating lookups within
18801 sequence to use insn method rather than element method.
18802 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
18804 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
18805 * ifcvt.c (noce_try_abs): Likewise for local "insn".
18806 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
18807 invoking single_set.
18808 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
18809 "insn" from rtx to rtx_insn *.
18810 (skip_usage_debug_insns): Likewise for return type, adding a
18812 (check_secondary_memory_needed_p): Likewise for local "insn".
18813 (inherit_reload_reg): Likewise.
18814 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
18815 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
18817 (store_data_bypass_p): Likewise for both params.
18818 (if_test_bypass_p): Likewise.
18819 * recog.h (store_data_bypass_p): Likewise for both params.
18820 (if_test_bypass_p): Likewise.
18821 * reload.c (find_equiv_reg): Likewise for local "where".
18822 * reorg.c (delete_jump): Likewise for param "insn".
18823 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
18824 to const rtx_insn *.
18825 * store-motion.c (replace_store_insn): Likewise for param "del".
18826 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
18827 and use its methods for clarity, and to strengthen local "del"
18828 from rtx to rtx_insn *.
18829 (build_store_vectors): Use insn method of "st" when calling
18830 replace_store_insn for typesafety and clarity.
18832 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18834 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
18835 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
18836 on how to make it legal in future.
18838 2014-09-09 David Malcolm <dmalcolm@redhat.com>
18840 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
18842 (restinsn): Likewise.
18843 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18844 Likewise for param.
18845 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
18847 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
18849 (arc_hazard): Likewise for both params.
18850 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
18851 checked casts to rtx_sequence * and uses of the insn method for
18853 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
18854 (arc_adjust_insn_length): Likewise for param "insn".
18855 (struct insn_length_parameters_s): Likewise for first param of
18856 "get_variants" callback field.
18857 (arc_get_insn_variants): Likewise for first param and local
18858 "inner". Replace a check of GET_CODE with a dyn_cast to
18859 rtx_sequence *, using methods for type-safety and clarity.
18860 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
18861 rtx_sequence * and uses of the insn method for type-safety when
18862 invoking arc_adjust_insn_length.
18863 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
18865 (arm_address_offset_is_imm): Likewise.
18866 (struct tune_params): Likewise for params 1 and 3 of the
18867 "sched_adjust_cost" callback field.
18868 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
18869 params 1 and 3 ("insn" and "dep").
18870 (xscale_sched_adjust_cost): Likewise.
18871 (fa726te_sched_adjust_cost): Likewise.
18872 (cortexa7_older_only): Likewise for param "insn".
18873 (cortexa7_younger): Likewise.
18874 (arm_attr_length_move_neon): Likewise.
18875 (arm_address_offset_is_imm): Likewise.
18876 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
18877 * config/avr/avr.c (avr_notice_update_cc): Likewise.
18878 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
18879 (workaround_speculation): Likewise for local "last_condjump".
18880 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
18881 (shadow_or_blockage_p): Likewise.
18882 (get_unit_reqs): Likewise.
18883 (get_unit_operand_masks): Likewise.
18884 (c6x_registers_update): Likewise.
18885 (returning_call_p): Likewise.
18886 (can_use_callp): Likewise.
18887 (convert_to_callp): Likewise.
18888 (find_last_same_clock): Likwise for local "t".
18889 (reorg_split_calls): Likewise for local "shadow".
18890 (hwloop_pattern_reg): Likewise for param "insn".
18891 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
18892 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
18893 (frv_extract_membar): Likewise.
18894 (frv_optimize_membar_local): Strengthen param "last_membar" from
18895 rtx * to rtx_insn **.
18896 (frv_optimize_membar_global): Strengthen param "membar" from rtx
18898 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
18900 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
18901 both params from rtx to rtx_insn *.
18902 (ia64_ld_address_bypass_p): Likewise.
18903 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
18905 (ia64_safe_type): Likewise.
18906 (group_barrier_needed): Likewise.
18907 (safe_group_barrier_needed): Likewise.
18908 (ia64_single_set): Likewise.
18909 (is_load_p): Likewise.
18910 (record_memory_reference): Likewise.
18911 (get_mode_no_for_insn): Likewise.
18912 (important_for_bundling_p): Likewise.
18913 (unknown_for_bundling_p): Likewise.
18914 (ia64_st_address_bypass_p): Likewise for both params.
18915 (ia64_ld_address_bypass_p): Likewise.
18916 (expand_vselect): Introduce new local rtx_insn * "insn", using it
18917 in place of rtx "x" after the emit_insn call.
18918 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
18919 Strengthen param from rtx to rtx_insn *.
18920 (ix86_agi_dependent): Likewise for both params.
18921 (ix86_attr_length_immediate_default): Likewise for param 1.
18922 (ix86_attr_length_address_default): Likewise for param.
18923 (ix86_attr_length_vex_default): Likewise for param 1.
18924 * config/i386/i386.c (ix86_attr_length_immediate_default):
18925 Likewise for param "insn".
18926 (ix86_attr_length_address_default): Likewise.
18927 (ix86_attr_length_vex_default): Likewise.
18928 (ix86_agi_dependent): Likewise for both params.
18929 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
18930 (vselect_insn): Likewise for this variable.
18931 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
18933 (m68k_sched_attr_opy_type): Likewise.
18934 * config/m68k/m68k.c (sched_get_operand): Likewise.
18935 (sched_attr_op_type): Likewise.
18936 (m68k_sched_attr_opx_type): Likewise.
18937 (m68k_sched_attr_opy_type): Likewise.
18938 (sched_get_reg_operand): Likewise.
18939 (sched_get_mem_operand): Likewise.
18940 (m68k_sched_address_bypass_p): Likewise for both params.
18941 (sched_get_indexed_address_scale): Likewise.
18942 (m68k_sched_indexed_address_bypass_p): Likewise.
18943 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
18944 (m68k_sched_indexed_address_bypass_p): Likewise.
18945 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
18946 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
18948 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
18949 params from rtx to rtx_insn *.
18950 (mips_fmadd_bypass): Likewise.
18951 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
18952 (mips_linked_madd_p): Likewise.
18953 (mips_macc_chains_last_hilo): Likewise for this variable.
18954 (mips_macc_chains_record): Likewise for param.
18955 (vr4130_last_insn): Likewise for this variable.
18956 (vr4130_swap_insns_p): Likewise for both params.
18957 (mips_ls2_variable_issue): Likewise for param.
18958 (mips_need_noat_wrapper_p): Likewise for param "insn".
18959 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
18960 in place of "x" after the emit_insn.
18961 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
18962 params from rtx to rtx_insn *.
18963 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
18964 (pa_combine_instructions): Introduce local "par" for result of
18965 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
18967 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
18968 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
18969 (rl78_alloc_physical_registers_op1): Likewise.
18970 (rl78_alloc_physical_registers_op2): Likewise.
18971 (rl78_alloc_physical_registers_ro1): Likewise.
18972 (rl78_alloc_physical_registers_cmp): Likewise.
18973 (rl78_alloc_physical_registers_umul): Likewise.
18974 (rl78_alloc_address_registers_macax): Likewise.
18975 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
18976 * config/s390/predicates.md (execute_operation): Likewise for
18978 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
18980 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
18981 (addr_generation_dependency_p): Likewise for param "insn".
18982 (s390_agen_dep_p): Likewise for both params.
18983 (s390_fpload_toreg): Likewise for param "insn".
18984 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
18985 * config/sh/sh.c (sh_loop_align): Likewise for param and local
18987 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
18988 * config/sh/sh_treg_combine.cc
18989 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
18991 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
18992 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
18993 "and_insn", "load", "shift".
18994 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
18996 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
18997 for XEXP (note, 0) of the REG_CC_SETTER note.
18998 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
18999 rtx_insn *, eliminating a checked cast made redundant by this.
19000 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
19002 * genattr.c (main): When writing out the prototype to
19003 const_num_delay_slots, strengthen the param from rtx to
19005 * genattrtab.c (write_const_num_delay_slots): Likewise when
19006 writing out the implementation of const_num_delay_slots.
19007 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
19008 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
19009 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
19010 favor of new rtx locals "src" and "set" and new local rtx_insn *
19012 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
19014 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
19015 locals "cond", "if_then_else", "set" and new rtx_insn * locals
19017 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
19018 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
19019 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
19020 the top-level scope, replacing with new more tightly-scoped rtx
19021 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
19022 "new_insn", "copy_of_insn_b", and make local rtx "set" more
19024 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
19026 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
19028 (ira_setup_alts): Likewise for param "insn".
19029 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
19030 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
19032 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
19033 new more-tightly scoped rtx locals "add3_insn", "insn",
19034 "add2_insn" and rtx_insn * "move_insn".
19035 * postreload-gcse.c (eliminate_partially_redundant_load): Add
19036 checked cast on result of gen_move_insn when invoking
19038 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
19040 (verify_changes): Add a checked cast on "object" when invoking
19042 (extract_insn_cached): Strengthen param "insn" from rtx to
19044 (extract_constrain_insn_cached): Likewise.
19045 (extract_insn): Likewise.
19046 * recog.h (insn_invalid_p): Likewise for param 1.
19047 (recog_memoized): Likewise for param.
19048 (extract_insn): Likewise.
19049 (extract_constrain_insn_cached): Likewise.
19050 (extract_insn_cached): Likewise.
19051 * reload.c (can_reload_into): Likewise for local "test_insn".
19052 * reload.h (cleanup_subreg_operands): Likewise for param.
19053 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
19054 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
19055 result of emit_insn. Remove a checked cast made redundant by this
19057 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
19059 * sel-sched.c (get_reg_class): Likewise.
19061 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
19062 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19064 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
19065 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
19067 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
19069 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19071 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
19072 const rtx_insn *, and from rtx to rtx_insn * for the other
19073 overloaded variant.
19074 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
19075 INSN_LOCATION, since we know INSN_P holds.
19076 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
19077 (insn_file): Likewise.
19078 (insn_scope): Likewise.
19079 (insn_location): Likewise.
19081 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
19082 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
19083 for the result of gen_load_const_gp.
19084 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
19085 param from rtx to rtx_insn *.
19086 * config/rs6000/rs6000.c (output_call): Likewise.
19087 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
19088 introducing a checked cast to rtx_sequence * and use of the insn
19090 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
19091 from rtx to rtx_insn *.
19092 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
19093 (insn_line): Likewise.
19094 (insn_file): Likewise.
19095 (insn_location): Likewise.
19096 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
19097 from rtx to rtx_insn *.
19098 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
19099 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
19100 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
19101 via a checked cast.
19102 * reorg.c (relax_delay_slots): Strengthen locals named "after"
19103 from rtx to rtx_insn *; use methods of "pat" for type-safety.
19105 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19107 * combine.c (try_combine): Eliminate checked cast on result of
19109 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
19110 autogenerated one by strengthening the return type and params 2 and 3
19111 from rtx to rtx_insn *, and by naming the params.
19112 * gengenrtl.c (special_rtx): Add INSN to those that are
19114 * rtl.h (gen_rtx_INSN): New prototype.
19116 2014-09-09 David Malcolm <dmalcolm@redhat.com>
19118 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
19120 (no_equiv): Likewise.
19121 (update_equiv_regs): Likewise.
19122 (setup_reg_equiv): Likewise. Strengthen locals "elem",
19123 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
19124 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
19126 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
19127 from rtx to rtx_insn_list *.
19128 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
19129 rtx_insn_list * and use methods for clarity and typesafety.
19130 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
19132 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
19133 redundant check on INSN_P (insns): this cannot hold, as "insns" is
19134 an INSN_LIST, not an insn.
19135 (reverse_equiv_p): Strengthen local "insns" from rtx to
19136 rtx_insn_list * and use methods for clarity and typesafety.
19137 (contains_reloaded_insn_p): Likewise for local "list".
19139 2014-09-09 Jiong Wang <jiong.wang@arm.com>
19141 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
19142 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
19143 (arm_builtin_vectorized_function): Likewise.
19144 * config/arm/arm_neon_builtins.def: New macro for copysignf.
19145 * config/arm/neon.md (neon_copysignf<mode>): New pattern for
19148 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
19150 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
19151 * builtins.h (default_target_builtins): Likewise.
19152 * gcse.h (default_target_gcse): Likewise.
19153 * target-globals.h (target_globals): Add a destructor. Convert
19154 void-pointer fields back to their real type and change from
19155 GTY((atomic)) to GTY((skip)).
19156 (restore_target_globals): Remove casts accordingly.
19157 * target-globals.c (save_target_globals): Use XCNEW rather than
19158 ggc_internal_cleared_alloc to allocate non-GC structures.
19159 Use ggc_cleared_alloc to allocate the target_globals structure
19161 (target_globals::~target_globals): Define.
19163 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19165 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
19166 mnemonic instead of fldmfdd.
19167 * config/arm/arm.c (vfp_output_fstmd): Rename to...
19168 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
19169 Output vpush when address register is SP.
19170 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
19171 (vfp_output_vstmd): ... This.
19172 * config/arm/vfp.md (push_multi_vfp): Update call to
19175 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19177 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
19179 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19181 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
19182 (*sqrtdf2_vfp): Likewise.
19183 (*cmpsf_vfp): Likewise.
19184 (*cmpsf_trap_vfp): Likewise.
19185 (*cmpdf_vfp): Likewise.
19186 (*cmpdf_trap_vfp): Likewise.
19188 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19190 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
19191 (*truncdfsf2_vfp): Likewise.
19192 (*truncsisf2_vfp): Likewise.
19193 (*truncsidf2_vfp): Likewise.
19194 (fixuns_truncsfsi2): Likewise.
19195 (fixuns_truncdfsi2): Likewise.
19196 (*floatsisf2_vfp): Likewise.
19197 (*floatsidf2_vfp): Likewise.
19198 (floatunssisf2): Likewise.
19199 (floatunssidf2): Likewise.
19201 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19203 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
19204 (*muldf3_vfp): Likewise.
19205 (*mulsf3negsf_vfp): Likewise.
19206 (*muldf3negdf_vfp): Likewise.
19207 (*mulsf3addsf_vfp): Likewise.
19208 (*muldf3adddf_vfp): Likewise.
19209 (*mulsf3subsf_vfp): Likewise.
19210 (*muldf3subdf_vfp): Likewise.
19211 (*mulsf3negsfaddsf_vfp): Likewise.
19212 (*fmuldf3negdfadddf_vfp): Likewise.
19213 (*mulsf3negsfsubsf_vfp): Likewise.
19214 (*muldf3negdfsubdf_vfp): Likewise.
19216 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19218 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
19219 (*absdf2_vfp): Likewise.
19220 (*negsf2_vfp): Likewise.
19221 (*negdf2_vfp): Likewise.
19222 (*addsf3_vfp): Likewise.
19223 (*adddf3_vfp): Likewise.
19224 (*subsf3_vfp): Likewise.
19225 (*subdf3_vfp): Likewise.
19226 (*divsf3_vfp): Likewise.
19227 (*divdf3_vfp): Likewise.
19229 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19231 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
19233 (arm_print_operand): Don't convert real values to decimal
19234 representation in default case.
19235 (fp_immediate_constant): Delete.
19236 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
19237 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
19239 (*thumb2_movsi_vfp): Likewise.
19240 (*movdi_vfp): Likewise.
19241 (*movdi_vfp_cortexa8): Likewise.
19242 (*movhf_vfp_neon): Likewise.
19243 (*movhf_vfp): Likewise.
19244 (*movsf_vfp): Likewise.
19245 (*thumb2_movsf_vfp): Likewise.
19246 (*movdf_vfp): Likewise.
19247 (*thumb2_movdf_vfp): Likewise.
19248 (*movsfcc_vfp): Likewise.
19249 (*thumb2_movsfcc_vfp): Likewise.
19250 (*movdfcc_vfp): Likewise.
19251 (*thumb2_movdfcc_vfp): Likewise.
19253 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
19255 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
19256 (-mtune): Likewise.
19259 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19262 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
19263 Use qualifier_immediate for last operand. Rename to...
19264 (aarch64_types_ternop_lane_qualifiers): ... This.
19265 (TYPES_QUADOP): Rename to...
19266 (TYPES_TERNOP_LANE): ... This.
19267 (aarch64_simd_expand_args): Return const0_rtx when encountering user
19268 error. Change return of 0 to return of NULL_RTX.
19269 (aarch64_crc32_expand_builtin): Likewise.
19270 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
19271 ICE when expanding unknown builtin.
19272 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
19273 TERNOP_LANE qualifiers.
19274 (sqdmlsl_lane): Likewise.
19275 (sqdmlal_laneq): Likewise.
19276 (sqdmlsl_laneq): Likewise.
19277 (sqdmlal2_lane): Likewise.
19278 (sqdmlsl2_lane): Likewise.
19279 (sqdmlal2_laneq): Likewise.
19280 (sqdmlsl2_laneq): Likewise.
19282 2014-09-09 Nick Clifton <nickc@redhat.com>
19284 * doc/invoke.texi (Optimization Options): Add missing @gol to the
19286 (S/390 and zSeries Options): Remove superfluous word from the
19287 description of the -mhotpatch option.
19289 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
19291 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
19292 * ira.c: #include "shrink-wrap.h"
19293 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
19294 * ifcvt.c: #include "shrink-wrap.h"
19295 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
19297 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
19299 * common/config/picochip/picochip-common.c: Remove.
19300 * config.gcc: Remove support for picochip.
19301 * config/picochip/constraints.md: Remove.
19302 * config/picochip/dfa_space.md: Remove.
19303 * config/picochip/dfa_speed.md: Remove.
19304 * config/picochip/picochip-protos.h: Remove.
19305 * config/picochip/picochip.c: Remove.
19306 * config/picochip/picochip.h: Remove.
19307 * config/picochip/picochip.md: Remove.
19308 * config/picochip/picochip.opt: Remove.
19309 * config/picochip/predicates.md: Remove.
19310 * config/picochip/t-picochip: Remove.
19311 * doc/md.texi: Don't document picochi.
19313 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19315 * basic-block.h (control_flow_insn_p): Strengthen param from
19316 const_rtx to const rtx_insn *.
19317 * cfgbuild.c (control_flow_insn_p): Likewise.
19319 2014-09-08 David Malcolm <dmalcolm@redhat.com>
19321 * gcse.c (modify_mem_list): Strengthen this variable from
19322 vec<rtx> * to vec<rtx_insn *> *.
19323 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
19325 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
19326 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
19327 (record_last_mem_set_info): Strengthen param "insn" from rtx to
19329 (record_last_set_info): Likewise for local "last_set_insn".
19331 2014-09-08 DJ Delorie <dj@redhat.com>
19333 * doc/invoke.texi (MSP430 Options): Add -minrt.
19335 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19337 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
19338 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
19339 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
19341 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
19343 (adjust_splat): New function.
19344 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
19345 (dump_swap_insn_table): Add case for SH_SPLAT.
19347 2014-09-08 Richard Biener <rguenther@suse.de>
19350 * tree-inline.c (copy_loops): The source loop header should
19351 always be non-NULL.
19352 (tree_function_versioning): If loops need fixup after removing
19353 unreachable blocks fix them.
19354 * omp-low.c (simd_clone_adjust): Do not add incr block to
19355 loop under construction.
19357 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
19359 * config/aarch64/aarch64-builtins.c
19360 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
19362 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19364 * config/i386/cygming.h (TF_SIZE): Remove.
19365 * config/i386/darwin.h (TF_SIZE): Remove.
19366 * config/i386/dragonfly.h (TF_SIZE): Remove.
19367 * config/i386/freebsd.h (TF_SIZE): Remove.
19368 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
19369 * config/i386/openbsdelf.h (TF_SIZE): Remove.
19370 * config/i386/sol2.h (TF_SIZE): Remove.
19371 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
19372 * config/ia64/linux.h (TF_SIZE): Remove.
19373 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
19374 * doc/tm.texi: Regenerate.
19375 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
19377 2014-09-08 Joseph Myers <joseph@codesourcery.com>
19379 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19381 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
19383 * doc/tm.texi: Regenerate.
19384 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
19386 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
19387 * config/cris/cris.h (__make_dp): Remove.
19389 2014-09-08 Richard Biener <rguenther@suse.de>
19392 * cfgloop.c (mark_loop_for_removal): Track former header
19394 * cfgloop.h (struct loop): Add former_header member unconditionally.
19395 * loop-init.c (fix_loop_structure): Enable bogus loop removal
19396 diagnostic unconditionally.
19398 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19401 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
19402 constraint for operand0 and remove write only modifier from operand3.
19404 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
19406 PR rtl-optimization/62208
19407 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
19408 rather than const0_rtx in eq/ne-xor simplifications.
19410 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
19412 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
19413 (arc_output_mi_thunk): Likewise.
19415 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
19416 arguments to silence bogus warning.
19418 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
19420 PR middle-end/63171
19421 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
19423 2014-09-06 Tom de Vries <tom@codesourcery.com>
19425 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
19426 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
19427 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19429 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
19432 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
19433 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
19435 2014-09-05 Easwaran Raman <eraman@google.com>
19437 PR rtl-optimization/62146
19438 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
19439 hoisted instruction unconditional.
19441 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
19444 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
19445 Do not allow any_mask_operand for operands[2].
19446 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
19448 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19450 * config/arc/arc.c (arc_print_operand): Use insn method of
19451 final_sequence for type-safety.
19452 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
19453 "insn" from rtx to rtx_insn *.
19454 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
19455 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
19456 Likewise for locals "branch", "label".
19457 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
19458 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
19459 (same_cmp_following_p): Likewise for locals "i2", "i3".
19460 * config/sh/sh_optimize_sett_clrt.cc
19461 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
19462 param "cbranch_insn".
19463 * function.c (convert_jumps_to_returns): Likewis for local "jump".
19464 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
19465 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
19467 (condjump_p): Likewise.
19468 (condjump_in_parallel_p): Likewise.
19469 (pc_set): Likewise.
19470 (any_uncondjump_p): Likewise.
19471 (any_condjump_p): Likewise.
19472 (condjump_label): Likewise.
19473 (returnjump_p): Strengthen param "insn" from rtx to
19475 (onlyjump_p): Strengthen param "insn" from const_rtx to
19477 (jump_to_label_p): Likewise.
19478 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
19479 (invert_jump): Likewise.
19480 * reorg.c (simplejump_or_return_p): Add checked cast when calling
19482 (get_jump_flags): Strengthen param "insn" from rtx to
19484 (get_branch_condition): Likewise.
19485 (condition_dominates_p): Likewise.
19486 (make_return_insns): Move declaration of local "pat" earlier, to
19487 after we've handled NONJUMP_INSN_P and non-sequences, using its
19488 methods to simplify the code and for type-safety.
19489 * rtl.h (find_constant_src): Strengthen param from const_rtx to
19491 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
19492 (condjump_p): Strengthen param from const_rtx to
19494 (any_condjump_p): Likewise.
19495 (any_uncondjump_p): Likewise.
19496 (pc_set): Likewise.
19497 (condjump_label): Likewise.
19498 (simplejump_p): Likewise.
19499 (returnjump_p): Likewise.
19500 (onlyjump_p): Likewise.
19501 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
19502 (invert_jump): Likewise.
19503 (condjump_in_parallel_p): Strengthen param from const_rtx to
19505 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
19506 to const rtx_insn *.
19507 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
19508 to const rtx_insn *.
19509 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
19511 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19513 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
19514 above the conditional, and convert the check on GET_CODE to a
19515 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
19516 the conditional. Simplify the conditional by using methods of
19519 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19521 * haifa-sched.c (check_clobbered_conditions): Strengthen local
19522 "link" from rtx to rtx_insn_list *, and use its methods for
19523 clarity and type-safety.
19524 (toggle_cancelled_flags): Likewise.
19525 (restore_last_backtrack_point): Likewise.
19526 (queue_to_ready): Use insn method of "link" in one place.
19527 (schedule_block): Strengthen local "link" from rtx to
19528 rtx_insn_list *, and use its methods for clarity and type-safety.
19530 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19532 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
19533 param "insn" from const_rtx to const rtx_insn *.
19534 (sched_get_reverse_condition_uncached): Likewise.
19535 (sched_get_condition_with_rev): Likewise.
19536 (sched_has_condition_p): Likewise.
19537 (sched_insns_conditions_mutex_p): Likewise for both params.
19538 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
19539 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
19540 (setup_insn_reg_uses): Move local "list" to be more tightly
19541 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
19542 its methods for clarity and type-safety.
19543 (sched_analyze_1): Strengthen local "pending" from rtx to
19544 rtx_insn_list *, and local "pending_mem" from rtx to
19545 rtx_expr_list *. Use methods of each for clarity and type-safety.
19546 (sched_analyze_2): Likewise.
19547 (sched_analyze_insn): Likewise.
19549 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
19550 param from const_rtx to const rtx_insn *.
19551 (sched_insns_conditions_mutex_p): Likewise for both params.
19552 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
19555 * system.h (CONST_CAST_RTX_INSN): New macro.
19557 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19559 * recog.c (peep2_attempt): Strengthen return type from rtx to
19561 (peep2_update_life): Likewise for params "last", "prev", removing
19562 a checked cast made redundant by this.
19563 (peephole2_optimize): Likewise for local "last".
19565 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19567 * basic-block.h (set_block_for_insn): Eliminate this macro in
19569 * rtl.h (set_block_for_insn): New inline function, imposing the
19570 requirement that the "insn" param is an rtx_insn *.
19572 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19574 * caller-save.c (setup_save_areas): Strengthen local "insn" from
19576 * final.c (get_call_reg_set_usage): Likewise for first param,
19577 eliminating a checked cast.
19578 * regs.h (get_call_reg_set_usage): Likewise for first param.
19579 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
19580 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
19581 cast, replacing references to "x" with "call_insn" where
19583 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
19584 rtx_insn *, adding a checked cast.
19586 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19588 * output.h (final_scan_insn): Strengthen first param from rtx to
19591 * final.c (final_scan_insn): Likewise, renaming it back from
19592 "uncast_insn" to "insn", eliminating the checked cast.
19594 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
19595 "vec" with an rtx_sequence * "seq", taking a copy of
19596 "final_sequence", and using methods of "seq" for clarity, and for
19597 type-safety in the calls to final_scan_insn.
19598 * config/mips/mips.c (mips_output_conditional_branch): Use methods
19599 of "final_sequence" for clarity, and for type-safety in the call to
19601 * config/sh/sh.c (print_slot): Strengthen param from rtx to
19602 rtx_sequence * and rename from "insn" to "seq".
19604 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19606 * jump.c (delete_related_insns): Introduce a new local "table" by
19607 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
19608 get_labels method of "table" to simplify access to the labels in
19611 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19613 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
19614 f_minmaxs, f_minmaxd types.
19616 2014-09-05 Richard Biener <rguenther@suse.de>
19618 * cfgloop.c (mark_loop_for_removal): Record former header
19619 when ENABLE_CHECKING.
19620 * cfgloop.h (strut loop): Add former_header member when
19622 * loop-init.c (fix_loop_structure): Sanity check loops
19623 marked for removal if they re-appeared.
19625 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19627 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
19628 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
19630 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
19631 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
19632 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
19633 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
19634 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
19635 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
19636 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
19637 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
19638 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
19639 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
19640 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
19641 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
19642 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
19643 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
19644 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
19645 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
19646 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
19647 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
19648 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
19649 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
19650 with int{32,16,8}_t.
19652 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19654 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
19655 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
19656 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
19657 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
19658 Remove temporary __asm__ and reimplement.
19660 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19662 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
19663 handling cmge, cmgt, cmeq, cmtst.
19665 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
19666 cmlt, cmgeu, cmgtu, cmtst): Remove.
19668 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
19669 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
19670 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
19671 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
19673 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19675 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
19676 TYPES_TST): Define.
19677 (aarch64_fold_builtin): Update pattern for cmtst.
19679 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
19682 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
19684 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
19685 Switch operands, separate out more cases, refactor.
19687 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
19689 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
19690 argument; rename old version to...
19691 (aarch64_const_vec_all_same_in_range_p): ...this.
19692 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
19694 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
19696 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19698 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19699 Remove qualifier_const_pointer, update comment.
19701 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19703 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
19705 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19707 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
19708 varargs with pointer parameter.
19709 (aarch64_simd_expand_builtin): pass pointer into previous.
19711 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19713 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
19716 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
19718 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
19719 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
19720 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
19721 Replace temporary asm with call to builtin.
19722 (vrbit_p8, vrbitq_p8): New functions.
19724 2014-09-05 Richard Biener <rguenther@suse.de>
19726 * cfgloop.c (mark_loop_for_removal): New function.
19727 * cfgloop.h (mark_loop_for_removal): Declare.
19728 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
19729 (merge_blocks): Likewise.
19730 (duplicate_block): Likewise.
19731 * except.c (sjlj_emit_dispatch_table): Likewise.
19732 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
19733 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19734 (thread_through_loop_header): Likewise.
19736 2014-09-05 Richard Biener <rguenther@suse.de>
19738 PR middle-end/63148
19739 * fold-const.c (try_move_mult_to_index): Remove.
19740 (fold_binary_loc): Do not call it.
19741 * tree-data-ref.c (dr_analyze_indices): Strip conversions
19742 from the base object again.
19744 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19746 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
19749 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19752 * config/arm/arm.md (setmem): New pattern.
19753 * config/arm/arm-protos.h (struct tune_params): New fields.
19754 (arm_gen_setmem): New prototype.
19755 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
19756 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19757 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19758 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
19759 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
19760 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
19761 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
19762 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19763 (arm_const_inline_cost): New function.
19764 (arm_block_set_max_insns): New function.
19765 (arm_block_set_non_vect_profit_p): New function.
19766 (arm_block_set_vect_profit_p): New function.
19767 (arm_block_set_unaligned_vect): New function.
19768 (arm_block_set_aligned_vect): New function.
19769 (arm_block_set_unaligned_non_vect): New function.
19770 (arm_block_set_aligned_non_vect): New function.
19771 (arm_block_set_vect, arm_gen_setmem): New functions.
19773 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19775 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
19777 2014-09-05 Bin Cheng <bin.cheng@arm.com>
19779 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
19781 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19783 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
19785 * valtrack.h: Adjust.
19787 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19789 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
19791 (emit_jump_insn_before_noloc): Likewise.
19792 (emit_call_insn_before_noloc): Likewise.
19793 (emit_label_before): Likewise.
19794 (emit_label_after): Likewise.
19795 (emit_insn_before_setloc): Likewise.
19796 (emit_jump_insn_before_setloc): Likewise.
19797 (emit_call_insn_before_setloc): Likewise.
19798 (emit_call_insn_before): Likewise.
19801 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19803 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
19804 rtx_insn *, eliminating a checked cast.
19806 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19808 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
19809 const_rtx to const rtx_insn *.
19810 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
19813 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19815 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
19816 fixup_args_size_notes.
19817 * expr.c (fixup_args_size_notes): Strengthen first two params from
19818 rtx to rtx_insn *, eliminating a checked cast.
19819 * rtl.h (fixup_args_size_notes): Strengthen first two params from
19822 2014-09-05 David Malcolm <dmalcolm@redhat.com>
19824 * haifa-sched.c (get_ready_element): Strengthen return type from
19826 * sched-int.h (get_ready_element): Likewise.
19828 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
19831 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
19832 indexed_or_indirect_operand instead of memory_operand.
19833 (floatsi<mode>2_lfiwzx_mem): Ditto.
19835 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19837 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
19838 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
19839 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
19841 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
19843 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
19845 (get_last_nonnote_insn): Likewise.
19846 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
19847 * resource.c (find_basic_block): Likewise.
19849 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
19852 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19854 * genattr.c (main): Within the prototype of insn_latency written
19855 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
19856 * genautomata.c (output_internal_maximal_insn_latency_func):
19857 Within the implementation of insn_latency written out to
19858 insn-automata.c, strengthen both params from rtx to rtx_insn *,
19859 eliminating a pair of checked casts.
19861 2014-09-04 David Malcolm <dmalcolm@redhat.com>
19863 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
19866 * rtl.h (eh_returnjump_p): Likewise.
19868 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
19870 * Makefile.in (TAGS): Handle constructs in timevar.def.
19872 2014-09-04 Guozhi Wei <carrot@google.com>
19875 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
19876 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
19877 it into two patterns.
19878 (move_lo_quad_internal_be_<mode>): Likewise.
19880 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
19882 * doc/options.texi: Document that Var and Init are required if CPP
19884 * optc-gen.awk: Require Var and Init if CPP is given.
19885 * common.opt (Wpedantic): Use Init.
19887 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19889 * config/rs6000/rs6000.c (special_handling_values): Add
19891 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
19892 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
19893 as swappable with special handling SH_EXTRACT. Remove
19894 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
19896 (adjust_extract): New function.
19897 (handle_special_swappables): Add default to case statement; add
19898 case for SH_EXTRACT that calls adjust_extract.
19899 (dump_swap_insn_table): Handle SH_EXTRACT.
19901 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19903 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
19904 selection of 0th memory doubleword, regardless of endianness.
19906 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19908 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
19910 2014-09-04 Alan Modra <amodra@gmail.com>
19913 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
19916 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
19918 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
19919 * targhooks.c (default_dwarf_frame_reg_mode): New function.
19920 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
19921 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
19922 * doc/tm.texi: Regenerate.
19923 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
19924 selection logic to default_dwarf_frame_reg_mode.
19926 2014-09-03 Marek Polacek <polacek@redhat.com>
19928 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
19931 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19933 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
19934 the automodified register.
19936 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
19938 * output.h (get_some_local_dynamic_name): Declare.
19939 * final.c (some_local_dynamic_name): New variable.
19940 (get_some_local_dynamic_name): New function.
19941 (final_end_function): Clear some_local_dynamic_name.
19942 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
19943 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19944 (print_operand): Report an error if '%&' is used inappropriately.
19945 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
19946 (get_some_local_dynamic_name_1): Delete.
19947 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
19948 (rs6000_get_some_local_dynamic_name): Delete.
19949 (rs6000_get_some_local_dynamic_name_1): Delete.
19950 (print_operand): Report an error if '%&' is used inappropriately.
19951 * config/s390/s390.c (machine_function): Remove some_ld_name.
19952 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19953 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
19954 * config/sparc/sparc.c: Include rtl-iter.h.
19955 (machine_function): Remove some_ld_name.
19956 (sparc_print_operand): Report an error if '%&' is used inappropriately.
19957 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
19959 2014-09-03 Richard Henderson <rth@redhat.com>
19961 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
19962 (aarch64_popwb_pair_reg): Remove.
19963 (aarch64_set_frame_expr): Remove.
19964 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
19965 the restore ops performed by the insns generated.
19966 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
19967 insn. Perform the calls_eh_return addition later; do not attempt to
19968 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
19969 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
19970 special markup at all. Load cfun->machine->frame.hard_fp_offset
19971 into a local variable.
19972 (aarch64_frame_pointer_required): Don't check calls_alloca.
19974 2014-09-03 Richard Biener <rguenther@suse.de>
19976 * opts.c (default_options_optimization): Adjust
19977 max-combine-insns to 2 for -Og.
19979 2014-09-03 Martin Jambor <mjambor@suse.cz>
19982 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
19983 pass-trough jump functions correctly.
19985 2014-09-03 Martin Jambor <mjambor@suse.cz>
19988 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
19989 created replacements in ascending order of offsets.
19990 (known_aggs_to_agg_replacement_list): Likewise.
19992 2014-09-03 Martin Liska <mliska@suse.cz>
19994 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
19995 is set to set uninitialized value for vnresult.
19997 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
19999 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
20000 for TARGET_MUST_PASS_IN_STACK.
20002 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20004 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
20005 for TARGET_ARG_PARTIAL_BYTES.
20007 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20009 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
20010 instructions for varargs implementation.
20011 (nds32_expand_epilogue): Emit stack adjustment instructions for
20012 varargs implementation.
20014 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20016 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
20017 optimization detection.
20019 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20021 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
20023 (nds32_function_arg_advance): Deal with nameless arguments.
20024 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
20025 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
20026 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
20028 2014-09-03 Richard Biener <rguenther@suse.de>
20030 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
20031 (struct bb_bitmap_sets): Remove deferred member.
20032 (BB_DEFERRED): Remove.
20033 (defer_or_phi_translate_block): Remove.
20034 (compute_antic_aux): Remove deferring of blocks, assert
20035 proper iteration order.
20036 (compute_antic): Do not set BB_DEFERRED.
20037 (eliminate): Allocate el_avail of proper size initially.
20039 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20041 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
20042 according to the value of crtl->args.pretend_args_size.
20044 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20046 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
20047 varargs information.
20049 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20051 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
20052 implementation for TARGET_SETUP_INCOMING_VARARGS.
20053 (nds32_strict_argument_naming): Refine comment.
20054 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
20055 Define for future implementation.
20057 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
20059 * config/i386/adxintrin.h (_subborrow_u32): New.
20060 (_addcarry_u32): Ditto.
20061 (_subborrow_u64): Ditto.
20062 (_addcarry_u64): Ditto.
20063 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
20064 IX86_BUILTIN_SBB64.
20065 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
20066 __builtin_ia32_sbb_u64
20068 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20070 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
20071 GPR-specific stuff.
20072 (nds32_function_arg_advance): Likewise.
20073 (nds32_init_cumulative_args): Likewise.
20074 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
20075 (NDS32_FIRST_GPR_REGNUM): Define.
20076 (NDS32_LAST_GPR_REGNUM): Define.
20077 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
20078 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20079 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
20080 (machine_function): Use GRP-specific stuff.
20082 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20084 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
20085 (nds32_expand_epilogue): Likewise.
20086 (nds32_expand_prologue_v3push): Likewise.
20087 (nds32_expand_epilogue_v3pop): Likewise.
20089 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20091 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
20092 v3push/v3pop for variadic function.
20093 * config/nds32/nds32.md (prologue, epilogue): Likewise.
20095 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20097 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20098 Check rtx for varargs implementation.
20099 (nds32_output_stack_pop): Likewise.
20100 * config/nds32/nds32-protos.h: Have a rtx argument for
20101 nds32_output_stack_push and nds32_output_stack_pop.
20102 * config/nds32/nds32.md: Likewise.
20104 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20106 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
20107 to check if FUNC is an interrupt service routine.
20108 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
20110 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20112 * config/nds32/nds32.h (machine_function): Add some fields for variadic
20113 arguments implementation.
20115 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20117 * config/nds32/nds32-predicates.c
20118 (nds32_valid_stack_push_pop): Rename to ...
20119 (nds32_valid_stack_push_pop_p): ... this.
20120 * config/nds32/nds32-protos.h: Likewise.
20121 * config/nds32/predicates.md: Likewise.
20123 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20125 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
20126 (nds32_emit_stack_v3push): ... this.
20127 (nds32_gen_stack_v3pop): Rename to ...
20128 (nds32_emit_stack_v3pop): ... this and consider CFA restore
20131 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20133 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
20134 (nds32_emit_stack_push_multiple): ... this.
20135 (nds32_gen_stack_pop_multiple): Rename to ...
20136 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
20139 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20142 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
20143 and add a second splitter to handle the remaining cases.
20145 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
20147 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
20149 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20151 * cfgexpand.c (label_rtx_for_bb): Change type to
20152 hash_map<basic_block, rtx_code_label *> *.
20153 (expand_gimple_basic_block): Adjust.
20154 (pass_expand::execute): Likewise.
20156 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20158 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
20159 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
20160 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
20161 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
20162 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
20163 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
20164 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
20167 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
20169 * alloc-pool.c: Include coretypes.h.
20170 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
20171 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
20172 hash_set instead of htab.
20173 * ggc-page.c (in_gc): New variable.
20174 (ggc_free): Do nothing if a collection is taking place.
20175 (ggc_collect): Set in_gc appropriately.
20176 * ggc.h (gt_ggc_mx(const char *)): New function.
20177 (gt_pch_nx(const char *)): Likewise.
20178 (gt_ggc_mx(int)): Likewise.
20179 (gt_pch_nx(int)): Likewise.
20180 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
20181 (hash_map::hash_entry::pch_nx): Likewise.
20182 (hash_map::hash_entry::pch_nx_helper): Likewise.
20183 (hash_map::hash_map): Adjust.
20184 (hash_map::create_ggc): New function.
20185 (gt_ggc_mx): Likewise.
20186 (gt_pch_nx): Likewise.
20187 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
20188 (default_hashset_traits::pch_nx): Likewise.
20189 (hash_set::hash_entry::ggc_mx): Likewise.
20190 (hash_set::hash_entry::pch_nx): Likewise.
20191 (hash_set::hash_entry::pch_nx_helper): Likewise.
20192 (hash_set::hash_set): Adjust.
20193 (hash_set::create_ggc): New function.
20194 (hash_set::elements): Likewise.
20195 (gt_ggc_mx): Likewise.
20196 (gt_pch_nx): Likewise.
20197 * hash-table.h (hash_table::hash_table): Adjust.
20198 (hash_table::m_ggc): New member.
20199 (hash_table::~hash_table): Adjust.
20200 (hash_table::expand): Likewise.
20201 (hash_table::empty): Likewise.
20202 (gt_ggc_mx): New function.
20203 (hashtab_entry_note_pointers): Likewise.
20204 (gt_pch_nx): Likewise.
20206 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20208 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
20209 built-in definition.
20210 (XVCVUXDDP_SCALE): Likewise.
20211 (XVCVDPSXDS_SCALE): Likewise.
20212 (XVCVDPUXDS_SCALE): Likewise.
20213 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20214 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
20215 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
20216 VSX_BUILTIN_XVCVDPUXDS_SCALE.
20217 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
20219 * config/rs6000/rs6000.c (real.h): New include.
20220 (rs6000_scale_v2df): New function.
20221 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
20222 (UNSPEC_VSX_XVCVUXDDP): Likewise.
20223 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
20224 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
20225 (vsx_xvcvsxddp_scale): New define_expand.
20226 (vsx_xvcvsxddp): New define_insn.
20227 (vsx_xvcvuxddp_scale): New define_expand.
20228 (vsx_xvcvuxddp): New define_insn.
20229 (vsx_xvcvdpsxds_scale): New define_expand.
20230 (vsx_xvcvdpsxds): New define_insn.
20231 (vsx_xvcvdpuxds_scale): New define_expand.
20232 (vsx_xvcvdpuxds): New define_insn.
20233 * doc/extend.texi (vec_ctf): Add new prototypes.
20234 (vec_cts): Likewise.
20235 (vec_ctu): Likewise.
20236 (vec_splat): Likewise.
20237 (vec_div): Likewise.
20238 (vec_mul): Likewise.
20240 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20243 * config/arm/neon.md
20244 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
20245 <v_cmp_result>): New pattern.
20246 * config/arm/iterators.md (NEON_VCVT): New int iterator.
20247 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
20248 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
20249 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
20250 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
20251 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
20253 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20256 * config/arm/iterators.md (FIXUORS): New code iterator.
20257 (VCVT): New int iterator.
20258 (su_optab): New code attribute.
20260 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
20262 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20264 * config/aarch64/predicates.md (aarch64_comparison_operation):
20265 New special predicate.
20266 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
20267 aarch64_comparison_operation instead of matching an operator.
20268 Update operand numbers.
20269 (csinc3<mode>_insn): Likewise.
20270 (*csinv3<mode>_insn): Likewise.
20271 (*csneg3<mode>_insn): Likewise.
20272 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
20273 * config/aarch64/aarch64.c (aarch64_get_condition_code):
20274 Return -1 instead of aborting on invalid condition codes.
20275 (aarch64_print_operand): Update aarch64_get_condition_code callsites
20276 to assert that the returned condition code is valid.
20277 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
20279 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
20281 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
20282 tree.def, and gimple.def
20284 2014-09-02 Jakub Jelinek <jakub@redhat.com>
20285 Balaji V. Iyer <balaji.v.iyer@intel.com>
20286 Igor Zamyatin <igor.zamyatin@intel.com>
20288 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
20289 (__cilkrts_cilk_for_64): Likewise.
20290 * cilk-common.c (declare_cilk_for_builtin): New function.
20291 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
20292 __cilkrts_cilk_for_64 bultins.
20293 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
20295 (cilk_for_32_fndecl): New define.
20296 (cilk_for_64_fndecl): Likewise.
20297 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
20298 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
20299 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
20300 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
20301 GF_OMP_FOR_COMBINED_INTO.
20302 * gimplify.c (gimplify_scan_omp_clauses): Added
20303 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20304 (gimplify_adjust_omp_clauses): Ditto.
20305 (gimplify_omp_for): Added CILK_FOR case.
20306 (gimplify_expr): Ditto.
20307 * omp-low.c: Include cilk.h.
20308 (extract_omp_for_data): Set appropriate kind for
20309 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
20310 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
20311 (create_omp_child_function_name): Added second argument to handle
20313 (cilk_for_check_loop_diff_type): New function.
20314 (expand_cilk_for_call): Likewise.
20315 (expand_cilk_for): Likewise.
20316 (create_omp_child_function): Set cilk_for_count; handle the cases when
20317 it is true; call create_omp_child_function_name with second argument.
20318 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
20319 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
20320 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
20321 * tree-nested.c (convert_nonlocal_omp_clauses): Added
20322 OMP_CLAUSE__CILK_FOR_COUNT_ case.
20323 (convert_local_omp_clauses): Ditto.
20324 * tree-pretty-print.c (dump_omp_clause): Added
20325 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
20326 (dump_generic_node): Added CILK_FOR case.
20327 * tree.c (omp_clause_num_ops): New element
20328 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
20329 (omp_clause_code_name): New element _Cilk_for_count_.
20330 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
20331 * tree.def: Add tree code for CILK_FOR.
20333 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20335 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
20336 (ppc403-compare): Add "exts with dot" case.
20337 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
20338 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
20339 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
20340 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
20341 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
20342 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
20343 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
20344 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20345 cell-cmp-microcoded): Similarly.
20346 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
20347 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
20348 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
20349 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
20350 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
20351 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
20352 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
20353 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
20354 (power6-compare): Add "exts with dot" case.
20355 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
20356 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
20357 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
20359 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
20360 if avoiding Cell microcode.
20361 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
20362 (is_cracked_insn): Ditto.
20363 (insn_must_be_first_in_group): Ditto.
20364 * config/rs6000/rs6000.md (dot): Adjust comment.
20365 (cell_micro): Handle exts+dot.
20366 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
20367 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
20368 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
20369 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
20370 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
20371 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
20372 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
20374 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20376 * config/rs6000/rs6000.md (QHSI): Delete.
20377 (EXTQI, EXTHI, EXTSI): New mode iterators.
20378 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
20379 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20380 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
20381 9 anonymous instructions, and 8 splitters): Delete.
20382 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
20383 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
20384 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
20385 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
20386 *zero_extendsi<mode>2_dot2): New.
20388 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20390 * config/rs6000/rs6000.md (any_extend): New code iterator.
20391 (u, su): New code attributes.
20392 (dmode, DMODE): New mode attributes.
20393 (<su>mul<mode>3_highpart): New.
20394 (*<su>mul<mode>3_highpart): New.
20395 (<su>mulsi3_highpart_le): New.
20396 (<su>muldi3_highpart_le): New.
20397 (<su>mulsi3_highpart_64): New.
20398 (<u>mul<mode><dmode>3): New.
20399 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
20400 splitters): Delete.
20401 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
20402 splitters): Delete.
20404 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
20406 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
20407 *mulsi3_internal2, and two splitters): Delete.
20408 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
20410 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
20412 2014-09-02 Richard Biener <rguenther@suse.de>
20414 PR tree-optimization/62695
20415 * tree-ssa-structalias.c (find_func_clobbers): Add missing
20418 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
20421 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
20423 2014-09-01 Andi Kleen <ak@linux.intel.com>
20425 * file-find.c (add_prefix_begin): Add.
20426 (do_add_prefix): Rename from add_prefix with first argument.
20427 (add_prefix): Add new wrapper.
20428 * file-find.h (add_prefix_begin): Add.
20429 * gcc-ar.c (main): Support -B option.
20431 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
20433 * genemit.c: Include dumpfile.h.
20434 (gen_split): Print name of splitter function to dump file.
20436 2014-09-01 Richard Biener <rguenther@suse.de>
20438 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
20439 Use stack auto_vecs for constraint expressions.
20440 (find_func_aliases_for_call): Likewise.
20441 (find_func_aliases): Likewise.
20442 (find_func_clobbers): Likewise.
20444 2014-09-01 Richard Biener <rguenther@suse.de>
20446 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
20447 operands vector in most cases. Remove redundant code.
20449 2014-09-01 Olivier Hainque <hainque@adacore.com>
20451 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
20452 $WIND_BASE instead of designating a harcoded arbitrary home dir.
20453 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
20455 2014-09-01 Richard Biener <rguenther@suse.de>
20457 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
20458 copy_reference_ops_from_call, vn_nary_op_compute_hash,
20459 vn_reference_compute_hash, vn_reference_insert): Remove.
20460 (vn_reference_lookup_call): New function.
20461 * tree-ssa-sccvn.c (vn_reference_compute_hash,
20462 copy_reference_ops_from_ref, copy_reference_ops_from_call,
20463 vn_reference_insert, vn_nary_op_compute_hash): Make static.
20464 (create_reference_ops_from_call): Remove.
20465 (vn_reference_lookup_3): Properly update shared_lookup_references.
20466 (vn_reference_lookup_pieces): Assert that we updated
20467 shared_lookup_references properly.
20468 (vn_reference_lookup): Likewise.
20469 (vn_reference_lookup_call): New function.
20470 (visit_reference_op_call): Use it. Avoid re-building the
20472 (visit_reference_op_load): Remove redundant lookup.
20473 (visit_reference_op_store): Perform special tail-merging work
20474 only when possibly doing tail-merging.
20475 (visit_use): Likewise.
20476 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
20478 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20481 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
20482 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
20483 (find_inc): Revert 2014-08-13 change.
20485 2014-09-01 Marek Polacek <polacek@redhat.com>
20487 PR middle-end/61903
20488 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
20489 Change the type of V to unsigned HOST_WIDE_INT.
20491 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20493 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
20494 the size of byte markers.
20495 (do_shift_rotate): Fix confusion between host, target and marker byte
20497 (verify_symbolic_number_p): Likewise.
20498 (find_bswap_or_nop_1): Likewise.
20499 (find_bswap_or_nop): Likewise.
20501 2014-09-01 Olivier Hainque <hainque@adacore.com>
20503 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
20504 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
20506 2014-09-01 Jakub Jelinek <jakub@redhat.com>
20508 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
20509 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
20510 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
20512 2014-09-01 Yury Gribov <y.gribov@samsung.com>
20516 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
20517 (build_check_stmt): Likewise.
20518 (instrument_strlen_call): Likewise.
20519 (asan_expand_check_ifn): Likewise and fix types.
20520 (maybe_cast_to_ptrmode): New function.
20522 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20524 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
20526 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
20528 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
20530 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
20532 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
20533 prefix to function labels when generating fast indirect calls.
20535 2014-08-30 David Malcolm <dmalcolm@redhat.com>
20539 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
20540 param back from rtx_insn * to rtx. Rename param from "label" to
20541 "label_or_return", reintroducing "label" as an rtx_insn * after
20542 we've ensured it's not a RETURN.
20543 (first_active_target_insn): Likewise for return type and param;
20544 add a checked cast to rtx_insn * once we've ensured "insn" is not
20546 (steal_delay_list_from_target): Convert param "pnew_thread" back
20547 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
20549 (own_thread_p): Convert param "thread" back from an rtx_insn * to
20550 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
20551 cast once we've established we're not dealing with a RETURN,
20552 renaming subsequent uses of "thread" to "thread_insn".
20553 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
20555 (follow_jumps): Convert return type and param "label" from
20556 rtx_insn * back to rtx. Move initialization of "value" to after
20557 the handling for ANY_RETURN_P, adding a checked cast there to
20558 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
20559 rename to "this_label_or_return", reintroducing "this_label" as
20560 an rtx_insn * once we've handled the case where it could be an
20562 (fill_slots_from_thread): Rename param "thread" to
20563 "thread_or_return", converting from an rtx_insn * back to an rtx.
20564 Reintroduce name "thread" as an rtx_insn * local with a checked
20565 cast once we've handled the case of it being an ANY_RETURN_P.
20566 Convert local "new_thread" from an rtx_insn * back to an rtx.
20567 Add a checked cast when assigning to "trial" from "new_thread".
20568 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
20569 checked cast to rtx_insn * from "new_thread" when invoking
20571 (fill_eager_delay_slots): Convert locals "target_label",
20572 "insn_at_target" from rtx_insn * back to rtx.
20573 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
20574 (relax_delay_slots): Convert locals "trial", "target_label" from
20575 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
20576 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
20577 invoking update_block.
20578 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
20579 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
20581 * resource.h (mark_target_live_regs): Undo erroneous conversion
20582 of second param of r214693, converting it back from rtx_insn * to
20583 rtx, since it could be a RETURN.
20585 * resource.c (find_dead_or_set_registers): Similarly, convert
20586 param "jump_target" back from an rtx_insn ** to an rtx *, as we
20587 could be writing back a RETURN. Rename local rtx_insn * "next" to
20588 "next_insn", and introduce "lab_or_return" as a local rtx,
20589 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
20590 (mark_target_live_regs): Undo erroneous conversion
20591 of second param of r214693, converting it back from rtx_insn * to
20592 rtx, since it could be a RETURN. Rename it from "target" to
20593 "target_maybe_return", reintroducing the name "target" as a local
20594 rtx_insn * with a checked cast, after we've handled the case of
20597 2014-08-29 DJ Delorie <dj@redhat.com>
20599 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
20600 pointer size up to a power of two.
20601 * defaults.h (DWARF2_ADDR_SIZE): Round up.
20602 (POINTER_SIZE_UNITS): New, rounded up value.
20603 * dwarf2asm.c (size_of_encoded_value): Use it.
20604 (dw2_output_indirect_constant_1): Likewise.
20605 * expmed.c (init_expmed_one_conv): We now know the sizes of
20607 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
20608 * optabs.c (expand_float): Use precision, not size.
20609 (expand_fix): Likewise.
20610 * simplify-rtx (simplify_unary_operation_1): Likewise.
20611 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20612 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
20613 (default_assemble_integer) Likewise.
20614 (dump_tm_clone_pairs): Likewise.
20615 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
20616 * var-tracking.c (adjust_mems): Allow partial-int modes also.
20617 (prepare_call_arguments): Likewise.
20618 * stor-layout.c (finalize_type_size): Preserve precision.
20619 (layout_type): Use precision, not size.
20621 * expr.c (convert_move): If the target has an explicit converter,
20624 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20626 * gdbinit.in: Skip various inline functions in rtl.h when
20629 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
20632 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
20634 2014-08-29 Richard Biener <rguenther@suse.de>
20636 PR tree-optimization/62291
20637 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
20638 exactly the vector size needed and use quick_push.
20639 (phi_translate_1): Adjust comment.
20640 (valid_in_sets): Remove block argument and remove pointless
20642 (dependent_clean): Adjust for removal of block argument.
20644 (compute_antic_aux): Likewise.
20645 (compute_partial_antic_aux): Likewise.
20647 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20649 Anna Tikhonova <anna.tikhonova@intel.com>
20650 Ilya Tocar <ilya.tocar@intel.com>
20651 Andrey Turetskiy <andrey.turetskiy@intel.com>
20652 Ilya Verbin <ilya.verbin@intel.com>
20653 Kirill Yukhin <kirill.yukhin@intel.com>
20654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20656 * config/i386/sse.md
20657 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
20658 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
20659 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
20660 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
20662 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
20663 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20664 Anna Tikhonova <anna.tikhonova@intel.com>
20665 Ilya Tocar <ilya.tocar@intel.com>
20666 Andrey Turetskiy <andrey.turetskiy@intel.com>
20667 Ilya Verbin <ilya.verbin@intel.com>
20668 Kirill Yukhin <kirill.yukhin@intel.com>
20669 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20671 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
20672 * config/i386/sse.md
20673 (define_mode_iterator VI4_128_8_256): New.
20674 (define_mode_iterator VI2_128_4_256): Ditto.
20675 (define_mode_iterator PMOV_DST_MODE): Rename into
20676 (define_mode_iterator PMOV_DST_MODE_1): this.
20677 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
20678 Use PMOV_DST_MODE_1 mode iterator.
20679 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20681 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
20683 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
20684 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
20685 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
20686 (define_mode_iterator PMOV_DST_MODE_2): New.
20687 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
20688 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
20689 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
20691 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
20692 (define_mode_attr pmov_dst_3): Ditto.
20693 (define_mode_attr pmov_dst_zeroed_3): Ditto.
20694 (define_mode_attr pmov_suff_3): Ditto.
20695 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
20696 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
20697 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
20698 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
20699 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
20700 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
20701 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
20702 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
20703 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
20704 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
20705 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
20706 (define_mode_attr pmov_dst_4): Ditto.
20707 (define_mode_attr pmov_dst_zeroed_4): Ditto.
20708 (define_mode_attr pmov_suff_4): Ditto.
20709 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
20710 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
20711 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
20712 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
20713 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
20714 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
20715 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
20716 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
20717 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
20718 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
20719 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
20721 2014-08-29 Richard Biener <rguenther@suse.de>
20723 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
20724 NON_LVALUE_EXPR in gimple.
20726 2014-08-29 Richard Biener <rguenther@suse.de>
20728 PR middle-end/62292
20729 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
20730 from previous refactoring.
20731 (gimple_fold_builtin_strncpy): Likewise.
20733 2014-08-29 David Malcolm <dmalcolm@redhat.com>
20736 * function.c (assign_parm_setup_reg): Remove erroneous checked
20737 cast to rtx_insn * on result of gen_extend_insn in favor of
20738 introducing a new local rtx "pat".
20740 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20742 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
20743 to silence warning.
20744 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
20746 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20748 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
20749 (next_insn): Likewise.
20750 * emit-rtl.c (next_insn): Likewise.
20751 (previous_insn): Likewise.
20752 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
20753 "insn" and "next" from rtx to rtx_insn *.
20754 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
20755 "insn", "insn1", "vliw_start", "prologue_end_note",
20756 "last_insn_in_packet".
20758 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20760 * shrink-wrap.h (active_insn_between): Strengthen both params from
20762 * function.c (active_insn_between): Likewise.
20764 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20766 * genattr.c (main): When writing out insn-attr.h, strengthen param
20767 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
20768 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
20769 writing out the definition of dfa_clear_single_insn_cache to the
20770 generated insn-automata.c
20772 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20774 * resource.h (clear_hashed_info_for_insn): Strengthen param from
20776 (incr_ticks_for_insn): Likewise.
20777 (init_resource_info): Likewise.
20779 * resource.c (init_resource_info): Likewise.
20780 (clear_hashed_info_for_insn): Likewise.
20781 (incr_ticks_for_insn): Likewise.
20783 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
20785 (steal_delay_list_from_target): Use methods of "seq".
20786 (try_merge_delay_insns): Use methods of "merged_insns".
20787 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
20788 (reorg_redirect_jump): Likewise for param "jump".
20790 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20792 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
20794 * config/s390/s390.c (s390_split_branches): Eliminate top-level
20795 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
20797 (s390_mainpool_finish): In three places, split out a local rtx
20798 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
20799 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
20800 and split another local rtx "insn" out into rtx "pat" and
20802 * config/sh/sh.c (output_branchy_insn): Rather than working
20803 directly on operands[9], introduce local rtx_code_label *
20804 variables named "lab" in two places, working on them, and then
20805 assigning them to operands[9], so that the intervening operations
20806 are known by the type system to be on insns.
20808 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20810 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
20813 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
20814 in invocation of INSN_HAS_LOCATION.
20816 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20818 * config/rs6000/altivec.h (vec_xl): New #define.
20819 (vec_xst): Likewise.
20820 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
20821 (XXSPLTD_V2DI): Likewise.
20822 (DIV_V2DI): Likewise.
20823 (UDIV_V2DI): Likewise.
20824 (MUL_V2DI): Likewise.
20825 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20826 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
20827 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
20828 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
20829 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
20830 (UNSPEC_VSX_DIVSD): Likewise.
20831 (UNSPEC_VSX_DIVUD): Likewise.
20832 (UNSPEC_VSX_MULSD): Likewise.
20833 (vsx_mul_v2di): New insn-and-split.
20834 (vsx_div_v2di): Likewise.
20835 (vsx_udiv_v2di): Likewise.
20836 (vsx_xxspltd_<mode>): New insn.
20838 2014-08-28 David Malcolm <dmalcolm@redhat.com>
20840 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
20842 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
20843 (NEXT_INSN): Likewise.
20844 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
20845 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
20847 (no_labels_between_p): Likewise for both params.
20849 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
20850 cast when using NEXT_INSN on operands[2].
20851 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
20852 "insn" from rtx to rtx_insn *, adding a checked cast.
20853 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
20855 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
20857 (arc_text_label): Likewise for param "insn".
20858 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
20860 (arc_ccfsm_record_condition): Likewise for param "jump".
20861 (arc_text_label): Likewise for local "label".
20862 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
20863 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
20864 a method for typesafety. Add a checked cast.
20865 * config/arc/constraints.md (Clb): Add a checked cast when getting
20866 the CODE_LABEL from a LABEL_REF.
20867 * config/arm/arm.c (require_pic_register): Strengthen locals
20868 "seq", "insn" from rtx to rtx_insn *.
20869 (create_fix_barrier): Likewise for locals "selected", "next".
20870 (thumb1_reorg): Likewise for locals "prev", "insn".
20871 (arm_expand_prologue): Likewise for local "last".
20872 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
20874 (thumb2_output_casesi): Likewise for operands[2].
20875 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
20876 strengthen local "insn" from rtx to rtx_insn *.
20877 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
20878 type and param "insn".
20879 (find_prev_insn_start): Likewise.
20880 (hwloop_optimize): Likewise for locals "insn", "last_insn",
20882 (gen_one_bundle): Likewise for loal "t".
20883 (find_load): Likewise for param "insn".
20884 (workaround_speculation): Likewise for locals "insn", "next",
20885 "target", "next_tgt".
20886 * config/c6x/c6x.c (assign_reservations): Likewise for both params
20887 and for locals "insn", "within", "last".
20888 (count_unit_reqs): Likewise for params "head", "tail" and local
20890 (try_rename_operands): Likewise for params "head", "tail".
20891 (reshuffle_units): Likewise for locals "head", "tail", "insn".
20892 (struct c6x_sched_context): Likewise for fields
20893 "last_scheduled_insn", "last_scheduled_iter0".
20894 (init_sched_state): Replace NULL_RTX with NULL.
20895 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
20897 (undo_split_delayed_nonbranch): Likewise for param and for local
20899 (conditionalize_after_sched): Likewise for local "insn".
20900 (bb_earliest_end_cycle): Likewise.
20901 (filter_insns_above): Likewise for locals "insn", "next".
20902 (hwloop_optimize): Remove redundant checked cast.
20903 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
20904 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
20905 NULL_RTX with NULL.
20906 (cris_simple_epilogue): Likewise.
20907 (cris_expand_prologue): Likewise.
20908 (cris_expand_epilogue): Likewise.
20909 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
20910 local "insn" from rtx to rtx_insn *.
20911 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
20912 (struct frv_packet_group): Likewise for the elements within array
20913 fields "insns", "sorted", and for field "nop".
20914 (frv_packet): Likewise for the elements within array field
20916 (frv_add_insn_to_packet): Likewise for param "insn".
20917 (frv_insert_nop_in_packet): Likewise for param "insn" and local
20919 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
20920 (frv_sort_insn_group_1): Likewise for local "insn".
20921 (frv_optimize_membar_local): Likewise.
20922 (frv_align_label): Likewise for locals "x", "last", "barrier",
20924 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
20926 (ia64_sched_init): Likewise for local "insn".
20927 (scheduled_good_insn): Likewise for param "last".
20928 (struct _ia64_sched_context): Likewise for field
20929 "last_scheduled_insn".
20930 (ia64_init_sched_context): Replace NULL_RTX with NULL.
20931 (struct bundle_state): Likewise for field "insn".
20932 (issue_nops_and_insn): Likewise for param "insn".
20933 (get_next_important_insn): Likewise for return type and both
20935 (ia64_add_bundle_selector_before): Likewise for param "insn".
20936 (bundling): Likewise for params "prev_head_insn", "tail" and
20937 locals "insn", "next_insn", "b". Eliminate top-level local rtx
20938 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
20939 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
20940 Strengthen final param from rtx to rtx_insn *.
20941 (iq2000_move_1word): Likewise for second param.
20942 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
20943 param "cur_insn" and local "next_insn".
20944 (iq2000_move_1word): Likewise for param "insn".
20945 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
20946 casts when using NEXT_INSN on operands[1].
20947 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
20948 "insn" from rtx to rtx_insn *.
20949 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
20950 "x", introducing local rtx_insn * "insn" for when working with the
20951 CODE_LABEL of the LABEL_REF.
20952 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
20954 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
20956 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
20958 (conditionalize_block): Likewise for return type and param.
20959 (mcore_is_dead): Likewise for param "first" and local "insn".
20960 (emit_new_cond_insn): Likewise for return type.
20961 (conditionalize_block): Likewise for return type, param, and
20962 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
20964 (conditionalize_optimization): Likewise for local "insn".
20965 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
20967 * config/microblaze/microblaze.md: Add checked casts when using
20969 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
20970 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
20971 and rtx_insn * "insn".
20972 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
20973 checked cast when using NEXT_INSN on operands[2].
20974 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
20975 local "insn" from rtx to rtx_insn *.
20976 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
20978 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
20979 Add a checked cast when using NEXT_INSN on operands[1].
20980 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
20982 (pa_output_cbranch): Likewise for final param.
20983 (pa_output_lbranch): Likewise for second param.
20984 (pa_output_bb): Likewise for third param.
20985 (pa_output_bvb): Likewise.
20986 (pa_output_dbra): Likewise for second param.
20987 (pa_output_movb): Likewise.
20988 (pa_output_parallel_movb): Likewise.
20989 (pa_output_parallel_addb): Likewise.
20990 (pa_output_millicode_call): Likewise for first param.
20991 (pa_output_mul_insn): Likewise for second param.
20992 (pa_output_div_insn): Likewise for third param.
20993 (pa_output_mod_insn): Likewise for second param.
20994 (pa_jump_in_call_delay): Likewise for param.
20995 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
20996 (pa_output_div_insn): Likewise.
20997 (pa_output_mod_insn): Likewise.
20998 (pa_output_cbranch): Likewise.
20999 (pa_output_lbranch): Likewise.
21000 (pa_output_bb): Likewise.
21001 (pa_output_bvb): Likewise.
21002 (pa_output_dbra): Likewise.
21003 (pa_output_movb): Likewise.
21004 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
21005 to simplify and for typesafety.
21006 (pa_output_call): Use method of rtx_sequence *.
21007 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
21008 (pa_jump_in_call_delay): Likewise.
21009 (pa_output_parallel_movb): Likewise.
21010 (pa_output_parallel_addb): Likewise.
21011 (pa_following_call): Likewise.
21012 (pa_combine_instructions): Likewise for locals "anchor",
21014 (pa_can_combine_p): Likewise for params "anchor", "floater" and
21015 locals "start", "end".
21016 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
21017 param "insn" and local "local_insn".
21018 (picochip_final_prescan_insn): Likewise for local "local_insn".
21019 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
21021 (uses_TOC): Likewise.
21022 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
21023 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
21024 splitting out to more tightly-scoped locals, 3 as rtx and one as
21026 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
21028 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
21030 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
21032 (fixup_addr_diff_vecs): Likewise.
21033 (reg_unused_after): Likewise for param 2.
21034 (sh_can_redirect_branch): Likewise for both params.
21035 (check_use_sfunc_addr): Likewise for param 1.
21036 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
21037 (find_barrier): Likewise for local "last_got".
21038 (gen_block_redirect): Likewise for return type, param "jump" and
21039 locals "prev", "scan", "next", "insn".
21040 (struct far_branch): Likewise for fields "near_label",
21041 "insert_place", "far_label".
21042 (gen_far_branch): Likewise for local "jump".
21043 (fixup_addr_diff_vecs): Likewise for param "first" and locals
21045 (barrier_align): Likewise for param and for locals "prev", "x".
21046 Introduce local rtx_sequence * "prev_seq" and use insn method for
21047 typesafety and clarity.
21048 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
21049 (get_dest_uid): Likewise for local "dest".
21050 (split_branches): Likewise for locals "next", "beyond", "label",
21051 "block", "far_label". Add checked casts when assigning to
21052 bp->far_label and "far_label".
21053 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
21054 (sequence_insn_p): Likewise.
21055 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
21056 more loop-scoped rtx "insn" when walking LABEL_REFS.
21057 (sh_can_redirect_branch): Strengthen both params from rtx to
21059 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
21060 new local rtx_sequence * "seq" via a dyn_cast, and use a method
21061 for clarity and typesafety.
21062 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
21063 "insn" from rtx to rtx_insn *.
21064 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
21065 when using NEXT_INSN on the CODE_LABEL in operands[2].
21066 (define_insn "casesi_worker_2"): Likewise.
21067 (define_insn "casesi_shift_media"): Likewise.
21068 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
21070 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
21071 Strengthen field "insn" from rtx to rtx_insn *.
21072 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
21073 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
21074 param "start_insn" and local "start_insn".
21075 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
21077 (find_set_of_reg_bb): Likewise for param "insn".
21078 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
21079 (trace_reg_uses): Likewise for param "start_insn".
21080 (sh_treg_combine::cbranch_trace): Likewise for field
21082 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
21084 (sh_treg_combine::record_set_of_reg): Likewise for param
21085 "start_insn" and local "i".
21086 (sh_treg_combine::can_remove_cstore): Likewise for local
21088 (sh_treg_combine::try_optimize_cbranch): Likewise for param
21090 (sh_treg_combine::execute): Likewise for local "i".
21091 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
21093 (sparc_check_64): Likewise for second param.
21094 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
21095 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
21096 dyn_cast, using its insn method for typesafety and clarity.
21097 (empty_delay_slot): Strengthen param "insn" from rtx to
21099 (set_extends): Likewise.
21100 (sparc_check_64): Likewise.
21101 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
21102 for locals "seq", "last_insn".
21103 (combine_bnp): Likewise for param "insn".
21104 (xstormy16_reorg): Likewise for local "insn".
21105 * config/v850/v850.c (substitute_ep_register): Likewise for params
21106 "first_insn", "last_insn" and local "insn".
21107 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
21108 elements of "regs" array, and local "insn".
21109 * except.c (emit_note_eh_region_end): Likewise for param "insn".
21110 * final.c (final_sequence): Strengthen this global from rtx to
21112 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
21114 (final_scan_insn): Update assignment to "final_sequence" to be
21115 from "seq", the cast version of "body", for type-safety.
21116 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
21117 "insns" from rtx to rtx_insn *.
21118 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
21119 * genattr.c (main): When writing out generated insn-attr.h,
21120 strengthen params 1 and 3 of eligible_for_delay,
21121 eligible_for_annul_true, eligible_for_annul_false from rtx to
21123 * genattrtab.c (write_eligible_delay): Likewise when writing out
21124 generated insn-attrtab.c; also local "insn" the generated
21126 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
21128 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
21129 "start_label" from rtx to rtx_insn *.
21130 * ira.c (decrease_live_ranges_number): Likewise for local "p".
21131 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
21132 "insns" and local "insn".
21133 (validate_equiv_mem): Likewise for param "start" and local "insn".
21134 (memref_used_between_p): Likewise for params "start", "end" and
21136 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
21138 * loop-doloop.c (doloop_optimize): Within region guarded by
21139 INSN_P (doloop_pat), introduce a new local rtx_insn *
21140 "doloop_insn" via a checked cast, and use it for typesafety,
21141 eventually writing the value back into doloop_pat.
21142 * output.h (final_sequence): Strengthen this global from rtx to
21144 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
21145 reintroducing "insn" as an rtx_insn * via a checked cast.
21146 Strengthen param "attempt" and local "new_insn"from rtx to
21148 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
21150 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
21151 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
21152 "p" in favor of more tightly-scoped replacements, sometimes rtx
21153 and sometimes rtx_insn *, as appropriate.
21154 (delete_output_reload): Eliminate top-level rtx "i1", splitting
21155 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
21156 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
21157 local "trial" from rtx to rtx_insn *.
21158 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
21159 rtx to rtx_insn *. Strenghten local "pat" from rtx to
21160 rtx_sequence * and use methods for clarity and typesafety.
21161 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
21162 rtx to rtx_insn *. Strenghten local "li" from rtx to
21163 rtx_insn_list * and use its methods for clarity and typesafety.
21164 (steal_delay_list_from_target): Strengthen param "insn" from rtx
21166 (steal_delay_list_from_fallthrough): Likewise.
21167 (try_merge_delay_insns): Likewise for param "thread" and locals
21168 "trial", "next_trial", "delay_insn".
21169 (redundant_insn): Likewise for param "target" and local "trial".
21170 (own_thread_p): Likewise for param "thread" and locals
21171 "active_insn", "insn".
21172 (get_label_before): Likewise for param "insn".
21173 (fill_simple_delay_slots): Likewise for local "new_label"; use
21174 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
21175 (label_before_next_insn): Strengthen return type and local "insn"
21176 from rtx to rtx_insn *.
21177 (relax_delay_slots): Likewise for locals "other", "tmp".
21178 (make_return_insns): Likewise for param "first" and locals "insn",
21179 "jump_insn", "prev". Move declaration of "pat" to its assignment
21180 and strengthen from rtx to rtx_sequence *. Use its methods for
21181 clarity and typesafety.
21182 * rtlanal.c (no_labels_between_p): Strengthen params from
21183 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
21185 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
21186 from const_rtx to const rtx_insn *.
21187 (reg_set_between_p): Rename param "from_insn" to
21188 "uncast_from_insn", and reintroduce "from_insn" as a
21189 const rtx_insn * via a checked cast.
21190 (modified_between_p): Likewise for param "start" as "uncast_start".
21191 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
21192 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
21193 "tmp", head" from rtx to rtx_insn *.
21194 (recompute_rev_top_order): Likewise for local "insn".
21195 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
21196 * store-motion.c (build_store_vectors): Likewise for local "insn".
21197 Strengthen local "st" from rtx to rtx_insn_list * and use methods
21198 for clarity and typesafety.
21199 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
21201 (computation_cost): Likewise for local "seq".
21202 (get_address_cost): Likewise.
21204 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21206 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
21208 (label_is_jump_target_p): Likewise for second param.
21210 * rtlanal.c (tablejump_p): Likewise for param "insn".
21211 (label_is_jump_target_p): Likewise for param "jump_insn".
21213 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21215 * rtl.h (find_first_parameter_load): Strengthen return type and
21216 both params from rtx to rtx_insn *.
21217 * rtlanal.c (find_first_parameter_load): Strengthen return type,
21218 both params and locals "before", "first_set" from rtx to
21219 rtx_insn *. Remove now-redundant cast.
21220 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
21222 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21224 * rtl.h (find_last_value): Delete.
21225 * rtlanal.c (find_last_value): Delete.
21227 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21229 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
21230 from rtx to rtx_insn *.
21231 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
21232 rtx "note" with new local rtx_insn * "new_head" when calculating
21233 head insn of new basic block.
21234 * combine.c (combine_split_insns): Strengthen return type and local
21235 "ret" from rtx to rtx_insn *.
21236 (likely_spilled_retval_p): Likewise for locals "use" and "p".
21237 (try_combine): Eliminate local "m_split", splitting into new
21238 locals "m_split_insn" and "m_split_pat".
21239 (find_split_point): Strengthen local "seq" from rtx into
21241 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
21242 locals "label", "branch".
21243 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
21245 (define_expand "umulsi3_highpart"): Likewise for local "insn".
21246 * dse.c (note_add_store_info): Likewise for fields "first",
21248 (note_add_store): Likewise for local "insn".
21249 (emit_inc_dec_insn_before): Likewise for locals "insn",
21251 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
21252 (replace_read): Likewise for locals "insns", "this_insn".
21253 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
21254 (notice_eh_throw): Likewise for param "insn".
21255 (before_next_cfi_note): Likewise for return type, param, and local
21257 (connect_traces): Likewise for local "note".
21258 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
21259 (verify_rtl_sharing): Likewise.
21260 (unshare_all_rtl_in_chain): Likewise for param "insn".
21261 (get_first_nonnote_insn): Likewise for local "insn".
21262 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
21263 "seq" and use its methods to clarify things.
21264 (next_insn): Strengthen return type from rtx to rtx_insn *.
21265 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
21266 local rtx_insn * using a checked cast, dropping a checked cast
21267 made redundant by this change. Use a cast to and method of
21268 rtx_sequence to clarify the code.
21269 (previous_insn): Rename param "insn" to "uncast_insn" and
21270 reintroduce "insn" as a local rtx_insn * using a checked cast,
21271 dropping a checked cast made redundant by this change. Use a cast
21272 to and method of rtx_sequence to clarify the code.
21273 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
21274 reintroduce "insn" as a local rtx_insn * using a checked cast,
21275 dropping a checked cast made redundant by this change.
21276 (next_nonnote_insn_bb): Likewise.
21277 (prev_nonnote_insn): Likewise.
21278 (prev_nonnote_insn_bb): Likewise.
21279 (next_nondebug_insn): Likewise.
21280 (prev_nondebug_insn): Likewise.
21281 (next_nonnote_nondebug_insn): Likewise.
21282 (prev_nonnote_nondebug_insn): Likewise.
21283 (next_real_insn): Likewise.
21284 (prev_real_insn): Likewise.
21285 (next_active_insn): Likewise.
21286 (prev_active_insn): Likewise.
21287 (next_cc0_user): Likewise. Use rtx_sequence and a method for
21289 (prev_cc0_setter): Likewise.
21290 (try_split): Rename param "trial" to "uncast_trial" and
21291 reintroduce "insn" as a local rtx_insn * using a checked cast,
21292 dropping checked casts made redundant by this change.
21293 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
21295 (remove_insn): Rename param "insn" to "uncast_insn" and
21296 reintroduce "insn" as a local rtx_insn * using a checked cast.
21297 (emit_pattern_after_setloc): Likewise for param "after", as
21299 (emit_pattern_after): Likewise. Strengthen local "prev" from
21301 (emit_pattern_before_setloc): Rename param "before" to
21302 "uncast_before" and reintroduce "before" as a local rtx_insn *
21303 using a checked cast. Strengthen locals "first", "last" from
21305 (emit_pattern_before): Likewise rename/cast param "before" to
21306 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
21307 * except.c (copy_reg_eh_region_note_forward): Strengthen param
21308 "first" and local "insn" from rtx to rtx_insn *.
21309 (copy_reg_eh_region_note_backward): Likewise for param "last"
21311 * expr.c (fixup_args_size_notes): Rename param "last" to
21312 "uncast_last" and reintroduce "last" as a local rtx_insn *
21313 using a checked cast. Strengthen local "insn" from rtx to
21315 * function.c (set_insn_locations): Strengthen param "insn" from
21317 (record_insns): Likewise for param "insns" and local "tmp".
21318 (active_insn_between): Rename param "tail" to
21319 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
21320 using a checked cast.
21321 (thread_prologue_and_epilogue_insns): Split out top-level local
21322 rtx "seq" into three different rtx_insn * locals. Strengthen
21323 local "prologue_seq" from rtx to rtx_insn *.
21324 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
21325 from rtx to rtx_insn *.
21326 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
21327 (priority): Likewise for locals "prev_first", "twin".
21328 (setup_insn_max_reg_pressure): Likewise for param "after".
21329 (sched_setup_bb_reg_pressure_info): Likewise.
21330 (no_real_insns_p): Strengthen params from const_rtx to
21332 (schedule_block): Strengthen local "next_tail" from rtx to
21334 * ifcvt.c (find_active_insn_before): Strengthen return type and
21335 param "insn" from rtx to rtx_insn *.
21336 (find_active_insn_after): Likewise.
21337 (cond_exec_process_insns): Likewise for param "start" and local "insn".
21338 (cond_exec_process_if_block): Likewise for locals "then_start",
21339 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
21340 (noce_process_if_block): Likewise for local "jump".
21341 (merge_if_block): Likewise for two locals named "end".
21342 (cond_exec_find_if_block): Likewise for local "last_insn".
21343 * jump.c (delete_related_insns): Rename param "insn" to
21344 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
21345 checked cast. Strengthen local "p" from rtx to rtx_insn *.
21346 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
21348 (split_reg): Likewise.
21349 * lra.c (lra_process_new_insns): Likewise.
21350 * modulo-sched.c (permute_partial_schedule): Strengthen param
21351 "last" from rtx to rtx_insn *.
21352 * optabs.c (add_equal_note): Likewise for param "insns" and local
21354 (expand_binop_directly): Add checked casts to rtx_insn * within
21355 NEXT_INSN (pat) uses.
21356 (expand_unop_direct): Likewise.
21357 (maybe_emit_unop_insn): Likewise.
21358 * recog.c (peep2_attempt): Strengthen locals "last",
21359 "before_try", "x" from rtx to rtx_insn *.
21360 * reorg.c (optimize_skip): Strengthen return type and local
21361 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
21362 and locals "trial", "next_trial" from rtx to rtx_insn *.
21363 * resource.c (next_insn_no_annul): Strengthen return type and
21364 param "insn" from rtx to rtx_insn *. Use a cast to and method of
21365 rtx_sequence to clarify the code.
21366 (mark_referenced_resources): Add a checked cast to rtx_insn *
21367 within PREV_INSN (x).
21368 (find_dead_or_set_registers): Strengthen return type, param
21369 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
21370 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
21372 (mark_target_live_regs): Strengthen params "insns" and "target",
21373 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
21374 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
21376 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
21377 from rtx to rtx_insn *.
21378 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
21379 from rtx to rtx_insn *.
21380 (copy_reg_eh_region_note_backward): Likewise.
21381 (unshare_all_rtl_in_chain): Likewise for sole param.
21382 (dump_rtl_slim): Strengthen second and third params from const_rtx
21383 to const rtx_insn *.
21384 * sched-deps.c (sched_free_deps): Strengthen params "head" and
21385 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
21386 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
21387 "next_tail" from rtx to rtx_insn *.
21388 (begin_move_insn): Likewise for local "next".
21389 * sched-int.h (sched_free_deps): Likewise for first and second
21391 (no_real_insns_p): Strengthen both params from const_rtx to
21393 (sched_setup_bb_reg_pressure_info): Strengthen second params from
21395 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
21397 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
21398 and locals "insn", "tail" from const_rtx to const rtx_insn *.
21399 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
21401 (debug_rtl_slim): Strengthen params "first" and "last" from
21402 const_rtx to const rtx_insn *.
21403 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
21404 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
21405 (convert_to_simple_return): Likewise for param "returnjump".
21406 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
21408 (convert_to_simple_return): Likewise for param "returnjump".
21409 * valtrack.c (propagate_for_debug): Likewise for params
21411 * valtrack.h (propagate_for_debug): Likewise for second param.
21413 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21415 * output.h (insn_current_reference_address): Strengthen param
21416 from rtx to rtx_insn *.
21417 * final.c (insn_current_reference_address): Likewise.
21419 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21421 * basic-block.h (inside_basic_block_p): Strengthen param from
21422 const_rtx to const rtx_insn *.
21423 * cfgbuild.c (inside_basic_block_p): Likewise.
21425 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21427 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
21429 (get_trace_info): Likewise for param "insn".
21430 (save_point_p): Likewise.
21431 (maybe_record_trace_start): Likewise for both params.
21432 (maybe_record_trace_start_abnormal): Likewise.
21433 (create_trace_edges): Likewise for sole param and for three of the
21434 locals named "lab".
21435 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
21436 to rtx_insn *, and update a call to pat->element to pat->insn.
21438 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21440 * function.h (struct expr_status): Convert field "x_forced_labels"
21441 from rtx_expr_list * to rtx_insn_list *.
21443 * cfgbuild.c (make_edges): Convert local "x" from an
21444 rtx_expr_list * to an rtx_insn_list *, replacing use of
21445 "element" method with "insn" method.
21446 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21447 * except.c (sjlj_emit_dispatch_table): Replace use of
21448 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
21450 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
21451 rtx_expr_list * to an rtx_insn_list *, replacing use of
21452 "element" method with "insn" method.
21453 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21454 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
21455 rtx_insn *, adding a checked cast. Replace use of
21456 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
21458 (expand_label): Likewise for local "label_r".
21460 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21462 * function.h (struct rtl_data): Convert field
21463 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
21465 * rtl.h (remove_node_from_insn_list): New prototype.
21467 * builtins.c (expand_builtin): When prepending to
21468 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21470 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
21471 to rtx_insn_list *, and use its "insn" method rather than
21473 * cfgrtl.c (delete_insn): Use new function
21474 remove_node_from_insn_list rather than
21475 remove_node_from_expr_list.
21476 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
21477 to rtx_insn_list *, and use its "insn" method rather than
21479 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21480 * reload1.c (set_initial_label_offsets): Likewise for local "x".
21481 * rtlanal.c (remove_node_from_insn_list): New function, adapted
21482 from remove_node_from_expr_list.
21483 * stmt.c (expand_label): When prepending to
21484 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
21487 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21489 * function.h (struct rtl_data): Strengthen fields "x_return_label"
21490 and "x_naked_return_label" from rtx to rtx_code_label *.
21492 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21494 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
21495 (SET_NEXT_INSN): Likewise.
21496 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
21498 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
21499 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
21500 to split out the SEQUENCE from local "bundle", strengthening the
21501 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
21502 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
21503 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
21504 and the type of the elements of the "slot" array from rtx to
21506 (reorg_split_calls): Likewise for locals "insn" and "next", and
21507 the type of the elements of the "slot" array.
21509 * config/frv/frv.c (frv_nops): Likewise for the elements of this
21511 (frv_function_prologue): Likewise for locals "insn", "next",
21513 (frv_register_nop): Introduce a local "nop_insn" to be the
21514 rtx_insn * containing rtx "nop".
21516 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
21517 used as an insn and sometimes as a pattern, so rename it to
21518 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
21519 using it where dealing with the core insn.
21521 * config/picochip/picochip.c (reorder_var_tracking_notes):
21522 Strengthen locals "insn", "next", "last_insn", "queue",
21523 "next_queue", "prev" from rtx to rtx_insn *.
21525 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
21526 the second param is an rtx_insn ** rather than an rtx **.
21527 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
21528 from rtx to rtx_sequence *, and introduce local named "sequence",
21529 using methods of rtx_sequence to clarify the code.
21530 (remove_insn): Introduce local rtx_sequence * named "sequence" and
21532 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
21533 Rename param "after" to "uncast_after", reintroducing "after" as a
21534 local rtx_insn * with a checked cast.
21535 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
21536 reintroducing "after" as a local rtx_insn * with a checked cast.
21537 Strengthen local "last" from rtx to rtx_insn * and remove the
21538 now-redundant checked casts.
21539 (copy_delay_slot_insn): Strengthen return type and param from rtx
21542 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
21543 "last" from rtx to rtx_insn *.
21545 2014-08-28 David Malcolm <dmalcolm@redhat.com>
21547 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
21548 param from rtx to rtx_insn *.
21550 * emit-rtl.c (copy_delay_slot_insn): Likewise.
21552 * reorg.c (skip_consecutive_labels): Strengthen return type, param
21553 and local "insn" from rtx to rtx_insn *.
21554 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
21555 (unfilled_slots_next): Likewise.
21556 (function_return_label): Strengthen from rtx to rtx_code_label *.
21557 (function_simple_return_label): Likewise.
21558 (first_active_target_insn): Strengthen return type and param from
21560 (find_end_label): Strengthen return type from rtx to
21561 rtx_code_label *; strengthen locals as appropriate.
21562 (emit_delay_sequence): Strengthen return type, param "insn" and
21563 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
21564 and local "li" from rtx to rtx_insn_list *, using methods of
21565 rtx_insn_list for clarity and typesafety.
21566 (add_to_delay_list): Strengthen return type and param "insn" from
21567 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
21568 rtx_insn_list * and use methods of rtx_insn_list.
21569 (delete_from_delay_slot): Strengthen return type, param "insn",
21570 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
21571 Strengthen local "seq" from rtx to rtx_sequence *, and local
21572 "delay_list" from rtx to rtx_insn_list *, using methods of
21573 rtx_sequence for clarity and type-safety.
21574 (delete_scheduled_jump): Add checked cast when invoking
21575 delete_from_delay_slot. Strengthen local "trial" from rtx to
21577 (optimize_skip): Strengthen return type and local "delay_list"
21578 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
21580 (steal_delay_list_from_target): Strengthen return type, param
21581 "delay_list" and local "new_delay_list" from rtx to
21582 rtx_insn_list *. Strengthen param "seq" from rtx to
21583 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
21585 Split out local "temp" into multiple more-tightly scoped locals:
21586 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
21587 of rtx_insn_list and rtx_sequence for clarity and typesafety.
21588 Strengthen locals named "trial" from rtx to rtx_insn *.
21589 (steal_delay_list_from_fallthrough): Strengthen return type and
21590 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
21591 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
21592 Strengthen local "trial" from rtx to rtx_insn *.
21593 (try_merge_delay_insns): Strength local "merged_insns" from rtx
21594 to rtx_insn_list * and use its methods. Strengthen local "pat"
21595 from rtx to rtx_sequence * and use its methods. Strengthen locals
21596 "dtrial" and "new_rtx" from rtx to rtx_insn *.
21597 (get_label_before): Strengthen return type and local "label" from
21599 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
21600 "next_trial", "next", prev". Strengthen local "delay_list" from
21601 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
21603 (follow_jumps): Strengthen return type, param "label" and locals
21604 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
21605 (fill_slots_from_thread): Strengthen return type, param
21606 "delay_list" from rtx to rtx_insn_list *. Strengthen params
21607 "insn", "thread", "opposite_thread" and locals "new_thread",
21608 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
21609 "sequence" from a checked cast to rtx_sequence so that we can call
21610 steal_delay_list_from_target and steal_delay_list_from_fallthrough
21611 with an rtx_sequence *.
21612 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
21613 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
21614 Strengthen local "delay_list" from rtx to rtx_insn_list *.
21615 (relax_delay_slots): Strengthen param "first" and locals "insn",
21616 "next", "trial", "delay_insn", "target_label" from rtx to
21617 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
21618 Introduce a local "trial_seq" for PATTERN (trial) of type
21619 rtx_sequence *, in both cases using methods of rtx_sequence.
21620 (dbr_schedule): Strengthen param "first" and locals "insn",
21621 "next", "epilogue_insn" from rtx to rtx_insn *.
21623 2014-08-28 Richard Biener <rguenther@suse.de>
21625 PR tree-optimization/62283
21626 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21627 Do not peel loops for alignment where the vector loop likely
21628 doesn't run at least VF times.
21630 2014-08-28 Bin Cheng <bin.cheng@arm.com>
21632 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
21633 important_candidates. Consider all important candidates if
21634 IVS doesn't give any result. Remove check on ivs->upto.
21635 (try_add_cand_for): Call iv_ca_add_use only once.
21637 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21639 Anna Tikhonova <anna.tikhonova@intel.com>
21640 Ilya Tocar <ilya.tocar@intel.com>
21641 Andrey Turetskiy <andrey.turetskiy@intel.com>
21642 Ilya Verbin <ilya.verbin@intel.com>
21643 Kirill Yukhin <kirill.yukhin@intel.com>
21644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21646 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
21647 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
21649 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
21650 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21651 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
21652 (define_insn "*mul<mode>3"): Add EVEX version.
21654 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21655 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21656 Anna Tikhonova <anna.tikhonova@intel.com>
21657 Ilya Tocar <ilya.tocar@intel.com>
21658 Andrey Turetskiy <andrey.turetskiy@intel.com>
21659 Ilya Verbin <ilya.verbin@intel.com>
21660 Kirill Yukhin <kirill.yukhin@intel.com>
21661 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21663 * config/i386/sse.md
21664 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
21665 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
21666 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
21667 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
21668 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
21669 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
21670 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
21671 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
21672 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
21673 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
21674 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
21675 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
21676 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
21677 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
21678 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
21679 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"):
21682 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21683 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21684 Anna Tikhonova <anna.tikhonova@intel.com>
21685 Ilya Tocar <ilya.tocar@intel.com>
21686 Andrey Turetskiy <andrey.turetskiy@intel.com>
21687 Ilya Verbin <ilya.verbin@intel.com>
21688 Kirill Yukhin <kirill.yukhin@intel.com>
21689 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21691 * config/i386/sse.md
21692 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
21693 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
21694 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
21696 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21697 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21698 Anna Tikhonova <anna.tikhonova@intel.com>
21699 Ilya Tocar <ilya.tocar@intel.com>
21700 Andrey Turetskiy <andrey.turetskiy@intel.com>
21701 Ilya Verbin <ilya.verbin@intel.com>
21702 Kirill Yukhin <kirill.yukhin@intel.com>
21703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21705 * config/i386/sse.md
21706 (define_mode_iterator VI128_256): New.
21707 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
21709 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
21710 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21711 Anna Tikhonova <anna.tikhonova@intel.com>
21712 Ilya Tocar <ilya.tocar@intel.com>
21713 Andrey Turetskiy <andrey.turetskiy@intel.com>
21714 Ilya Verbin <ilya.verbin@intel.com>
21715 Kirill Yukhin <kirill.yukhin@intel.com>
21716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21718 * config/i386/sse.md
21719 (define_mode_iterator VI8_256_512): New.
21720 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
21722 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21723 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
21725 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
21727 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21729 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
21730 pointer to the cumulative reloc value and return the value for
21731 this reloc instead.
21732 (compute_reloc_for_rtx): Take a const_rtx. Call
21733 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
21734 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
21735 for_each_rtx for the CONST case.
21737 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21739 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
21740 (mark_constants_in_pattern): ...this new function to iterate over
21742 (mark_constants): Update accordingly.
21744 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21746 * varasm.c: Include rtl-iter.h.
21747 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
21748 Remove the pointer to the cumulative hashval_t and just return
21749 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
21750 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21751 Accumulate the hashval_ts here instead of const_rtx_hash_1.
21753 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21755 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
21756 Give real type of data parameter. Remove return value.
21757 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
21758 to iterate over subrtxes.
21760 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21762 * var-tracking.c (use_narrower_mode_test): Turn from being a
21763 for_each_rtx callback to being a function that examines each
21765 (adjust_mems): Update accordingly.
21767 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21769 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
21770 callback to being a function that examines each subrtx itself.
21771 Remove handling of null rtxes.
21772 (add_uses): Update accordingly.
21774 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21776 * var-tracking.c: Include rtl-iter.h.
21777 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
21778 to being a function that examines each subrtx itself.
21779 (use_type): Update accordingly.
21781 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21783 * store-motion.c: Include rtl-iter.h.
21784 (extract_mentioned_regs_1): Delete.
21785 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
21786 for_each_rtx to iterate over subrtxes.
21788 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21790 * sel-sched.c: Include rtl-iter.h
21791 (count_occurrences_1): Delete.
21792 (count_occurrences_equiv): Turn rtxes into const_rtxes.
21793 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21795 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21797 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
21798 * rtlanal.c (tls_referenced_p_1): Delete.
21799 (tls_referenced_p): Take a const_rtx rather than an rtx.
21800 Use FOR_EACH_SUBRTX rather than for_each_rtx.
21802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21804 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
21805 (for_each_inc_dec): Take an rtx rather than an rtx *.
21806 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
21807 (cselib_record_sets): Likewise.
21808 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
21809 (check_for_inc_dec): Likewise.
21810 * rtlanal.c (for_each_inc_dec_ops): Delete.
21811 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
21812 rather than a pointer to the memory address. Replace
21813 for_each_inc_dec_ops argument with separate function and data
21814 arguments. Abort on non-autoinc addresses.
21815 (for_each_inc_dec_find_mem): Delete.
21816 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
21817 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
21819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21821 * rtl.h (find_all_hard_regs): Declare.
21822 * rtlanal.c (find_all_hard_regs): New function.
21823 (record_hard_reg_uses_1): Delete.
21824 (record_hard_reg_uses): Use find_all_hard_regs.
21826 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21828 * rtl.h (replace_label_data): Delete.
21829 (replace_label): Take the old label, new label and update-nuses flag
21830 as direct arguments. Return void.
21831 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
21832 * rtlanal.c (replace_label): Update interface as above. Handle
21833 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
21834 iterator. Use FOR_EACH_SUBRTX_PTR.
21836 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21838 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
21839 with const_rtx parameters.
21840 * varasm.c (get_pool_constant): Likewise.
21841 * rtlanal.c (rtx_referenced_p_1): Delete.
21842 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21843 Assert that the rtx we're looking for is nonnull. Allow searches
21844 for constant pool SYMBOL_REFs.
21846 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21848 * reload1.c: Include rtl-iter.h.
21849 (note_reg_elim_costly): Turn from being a for_each_rtx callback
21850 to being a function that examines each subrtx itself.
21851 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
21853 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21855 * regcprop.c (cprop_find_used_regs_1): Delete.
21856 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
21858 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21860 * regcprop.c: Include rtl-iter.h.
21861 (kill_value): Take a const_rtx.
21862 (kill_autoinc_value): Turn from being a for_each_rtx callback
21863 to being a function that examines each subrtx itself.
21864 (copyprop_hardreg_forward_1): Update accordingly.
21866 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21868 * reg-stack.c: Include rtl-iter.h.
21869 (subst_stack_regs_in_debug_insn): Delete.
21870 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
21871 instead of for_each_rtx.
21873 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21875 * lower-subreg.c (find_decomposable_subregs): Turn from being
21876 a for_each_rtx callback to being a function that examines each
21877 subrtx itself. Remove handling of null rtxes.
21878 (decompose_multiword_subregs): Update accordingly.
21880 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21882 * lower-subreg.c (adjust_decomposed_uses): Delete.
21883 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
21884 Remove handling of null rtxes.
21886 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21888 * lower-subreg.c: Include rtl-iter.h.
21889 (resolve_subreg_use): Turn from being a for_each_rtx callback
21890 to being a function that examines each subrtx itself. Remove
21891 handling of null rtxes.
21892 (resolve_reg_notes, resolve_simple_move): Update accordingly.
21893 (decompose_multiword_subregs): Likewise.
21895 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21897 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
21898 to being a function that examines each subrtx itself.
21899 (simplify_using_condition, simplify_using_initial_values): Update
21902 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21904 * loop-iv.c: Include rtl-iter.h.
21905 (find_single_def_src): New function.
21906 (replace_single_def_regs): Turn from being a for_each_rtx callback
21907 to being a function that examines each subrtx itself.
21908 (replace_in_expr, simplify_using_initial_values): Update accordingly.
21910 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21912 * jump.c (eh_returnjump_p_1): Delete.
21913 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21914 Remove handling of null rtxes.
21916 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21918 * jump.c: Include rtl-iter.h.
21919 (returnjump_p_1): Delete.
21920 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
21921 Remove handling of null rtxes.
21923 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21925 * ira.c: Include rtl-iter.h.
21926 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
21927 to being a function that examines each subrtx itself. Remove
21928 handling of null rtxes.
21929 (update_equiv_regs): Update call accordingly.
21931 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21933 * fwprop.c: Include rtl-iter.h.
21934 (varying_mem_p): Turn from being a for_each_rtx callback to being
21935 a function that examines each subrtx itself.
21936 (propagate_rtx): Update accordingly.
21938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21940 * function.c: Include rtl-iter.h
21941 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
21942 callback to being a function that examines each subrtx itself.
21943 Return the changed flag.
21944 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
21945 (instantiate_virtual_regs): Update calls accordingly.
21947 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21949 * final.c: Include rtl-iter.h.
21950 (mark_symbol_ref_as_used): Delete.
21951 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
21954 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21956 * emit-rtl.c: Include rtl-iter.h.
21957 (find_auto_inc): Turn from being a for_each_rtx callback to being
21958 a function that examines each subrtx itself. Assume the first operand
21959 to an RTX_AUTOINC is the automodified register.
21960 (try_split): Update call accordingly.
21962 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21964 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
21965 Return a bool, inverting the result so that 0/false means "not ok".
21966 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
21967 subrtxes of a CONST.
21968 (mem_loc_descriptor, add_const_value_attribute)
21969 (resolve_addr_in_expr): Update calls accordingly.
21971 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21973 * dwarf2out.c: Include rtl-iter.h.
21974 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
21975 Remove unused data parameter. Return a bool, inverting the result
21976 so that 0/false means "not ok".
21977 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
21978 instead of for_each_rtx.
21980 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21982 * dse.c: Include rtl-iter.h.
21983 (check_mem_read_rtx): Change void * parameter to real type.
21984 Remove return value.
21985 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
21986 for_each_rtx. Don't handle null rtxes.
21988 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21990 * df-problems.c: Include rtl-iter.h.
21991 (find_memory): Turn from being a for_each_rtx callback to being
21992 a function that examines each subrtx itself. Continue to look for
21993 volatile references even after a nonvolatile one has been found.
21994 (can_move_insns_across): Update calls accordingly.
21996 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21998 * ddg.c (walk_mems_2, walk_mems_1): Delete.
21999 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
22000 to iterate over subrtxes. Return a bool rather than an int.
22002 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22004 * ddg.c: Include rtl-iter.h.
22005 (mark_mem_use_1): Rename to...
22006 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
22007 instead of for_each_rtx.
22008 (mem_read_insn_p): Update accordingly.
22010 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22012 * cse.c (change_cc_mode_args): Delete.
22013 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
22014 a function that examines each subrtx itself. Take the fields of
22015 change_cc_mode_args as argument and return void.
22016 (cse_change_cc_mode_insn): Update calls accordingly.
22018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22020 * cse.c (is_dead_reg): Change argument to const_rtx.
22021 (dead_debug_insn_data): Delete.
22022 (is_dead_debug_insn): Expand commentary. Turn from being a
22023 for_each_rtx callback to being a function that examines
22024 each subrtx itself. Take the fields of dead_debug_insn_data
22026 (delete_trivially_dead_insns): Update call accordingly.
22028 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22030 * cse.c (check_for_label_ref): Move earlier in file. Turn from
22031 being a for_each_rtx callback to being a function that examines
22032 each subrtx itself.
22033 (cse_extended_basic_block): Update call accordingly.
22035 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22037 * cse.c (check_dependence_data): Delete.
22038 (check_dependence): Change from being a for_each_rtx callback to being
22039 a function that examines all subrtxes itself. Don't handle null rtxes.
22040 (invalidate): Update call accordingly.
22042 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22044 * cse.c: Include rtl-iter.h.
22045 (approx_reg_cost_1): Delete.
22046 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22047 Don't handle null rtxes.
22049 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22051 * cfgcleanup.c: Include rtl-iter.h.
22052 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
22053 to being a function that examines each subrtx itself.
22054 (thread_jump): Update accordingly.
22056 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22058 * combine-stack-adj.c: Include rtl-iter.h.
22059 (record_stack_refs_data): Delete.
22060 (record_stack_refs): Turn from being a for_each_rtx callback
22061 to being a function that examines each subrtx itself.
22062 Take a pointer to the reflist. Invert sense of return value
22063 so that true means success and false means failure. Don't
22065 (combine_stack_adjustments_for_block): Update accordingly.
22067 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22069 * combine.c (record_truncated_value): Turn from being a for_each_rtx
22070 callback to a function that takes an rtx and returns a bool
22071 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
22074 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22076 * combine.c: Include rtl-iter.h.
22077 (unmentioned_reg_p_1): Delete.
22078 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
22079 Don't handle null rtxes.
22081 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22083 * calls.c: Include rtl-iter.h.
22084 (internal_arg_pointer_based_exp_1): Delete.
22085 (internal_arg_pointer_based_exp): Take a const_rtx.
22086 Use FOR_EACH_SUBRTX to iterate over subrtxes.
22088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22090 * caller-save.c: Include rtl-iter.h.
22091 (add_used_regs_1): Delete.
22092 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
22093 to iterate over subrtxes. Assert that any remaining pseudos
22096 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22098 * bt-load.c: Include rtl-iter.h.
22099 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
22100 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
22101 to iterate over subrtxes.
22102 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
22103 find_btr_use rather than btr_referenced_p.
22105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22107 * alias.c: Include rtl-iter.h.
22108 (refs_newer_value_cb): Delete.
22109 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
22111 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
22113 * rtl-iter.h: New file.
22114 * rtlanal.c: Include it.
22115 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
22116 (generic_subrtx_iterator <T>::add_single_to_queue)
22117 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
22118 (generic_subrtx_iterator <T>::free_array): New functions.
22119 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
22120 (generic_subrtx_iterator <const_rtx_accessor>)
22121 (generic_subrtx_iterator <rtx_var_accessor>
22122 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
22123 (setup_reg_subrtx_bounds): New function.
22124 (init_rtlanal): Call it.
22126 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
22129 * config/sh/sh.md (ashlsi3): Handle negative shift count for
22131 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
22133 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
22135 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
22137 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22139 * rtl.h (JUMP_LABEL_AS_INSN): New.
22141 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22143 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
22145 (alloc_EXPR_LIST): Strengthen return type from rtx to
22147 (remove_free_EXPR_LIST_node): Likewise for param.
22148 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
22149 from rtx to rtx_expr_list *.
22150 * sched-int.h (struct deps_desc): Strengthen fields
22151 "pending_read_mems" and "pending_write_mems" from rtx to
22154 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
22155 rtx to rtx_expr_list *.
22156 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
22157 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22159 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
22160 from rtx to rtx_expr_list *.
22161 * loop-iv.c (simplify_using_initial_values): Strengthen local
22162 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
22163 "pnote_next" from rtx * to rtx_expr_list **.
22164 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
22165 param "exprp" from rtx * to rtx_expr_list **.
22166 (add_insn_mem_dependence): Strengthen local "mem_list" from
22167 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
22168 to rtx_expr_list *.
22169 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
22170 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
22171 param "old_mems_p" from rtx * to rtx_expr_list **.
22172 * var-tracking.c (struct adjust_mem_data): Strengthen field
22173 "side_effects" from rtx to rtx_expr_list *.
22174 (adjust_insn): Replace NULL_RTX with NULL when assigning to
22176 (prepare_call_arguments): Likewise.
22178 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22180 * function.h (struct rtl_data): Strengthen field
22181 "x_stack_slot_list" from rtx to rtx_expr_list *.
22183 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
22184 when assigning to stack_slot_list.
22186 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22188 * function.h (struct rtl_data): Strengthen field
22189 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
22190 * rtl.h (remove_node_from_expr_list): Strengthen second param from
22191 rtx * to rtx_expr_list **.
22193 * cfgbuild.c (make_edges): In loop over
22194 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
22195 rtx_expr_list *, and use methods of the latter class to clarify
22197 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
22198 rtx_expr_list *, and use methods of the latter class to clarify
22200 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
22201 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22202 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
22203 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
22204 to rtx_expr_list *. Use methods of the latter class to clarify
22207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22209 * function.h (struct expr_status): Strengthen field
22210 "x_forced_labels" from rtx to rtx_expr_list *.
22212 * cfgbuild.c (make_edges): Split local "x" into two locals,
22213 strengthening one from rtx to rtx_expr_list *, and using methods
22215 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
22216 loop over forced_labels, introduce strengthen it from rtx to
22217 rtx_expr_list *, using methods to clarify the code.
22218 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
22219 to rtx_expr_list *, using methods of said class to clarify the
22221 * reload1.c (set_initial_label_offsets): Split local "x" into two
22222 per-loop variables, strengthening the first from rtx to
22223 rtx_expr_list * and using methods.
22225 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22227 * coretypes.h (class rtx_expr_list): Add forward declaration.
22228 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
22229 * gengenrtl.c (special_rtx): Add EXPR_LIST.
22230 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
22231 invariant: GET_CODE (X) == EXPR_LIST.
22232 (is_a_helper <rtx_expr_list *>::test): New.
22233 (rtx_expr_list::next): New.
22234 (rtx_expr_list::element): New.
22235 (gen_rtx_EXPR_LIST): New.
22237 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22239 * varasm.c (mark_constants): Convert a GET_CODE check into a
22240 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22241 Use methods of rtx_sequence to clarify the code.
22243 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22245 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
22246 local "seq" via a checked cast, and use methods of rtx_sequence
22247 to simplify the code.
22249 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22251 * resource.c (mark_referenced_resources): Strengthen local
22252 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
22253 using methods of rtx_sequence to clarify the code.
22254 (find_dead_or_set_registers): Within the switch statement, convert
22255 a GET_CODE check to a dyn_cast, introducing local "seq". Within
22256 the JUMP_P handling, introduce another local "seq", adding a
22257 checked cast to rtx_sequence *. In both cases, use methods of
22258 rtx_sequence to clarify the code.
22259 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
22260 via a checked cast, and use methods of rtx_sequence to simplify
22263 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22265 * reorg.c (redundant_insn): In two places in the function, replace
22266 a check of GET_CODE with a dyn_cast, introducing local "seq", and
22267 usings methods of rtx_sequence to clarify the code.
22269 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22271 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
22272 local "seq" with a checked cast, and use methods of rtx_sequence
22273 to clarify the code.
22275 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22277 * function.c (contains): Introduce local "seq" for PATTERN (insn),
22278 with a checked cast, in the region for where we know it's a
22279 SEQUENCE. Use methods of rtx_sequence.
22281 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22283 * final.c (get_attr_length_1): Replace GET_CODE check with a
22284 dyn_cast, introducing local "seq" and the use of methods of
22286 (shorten_branches): Likewise, introducing local "body_seq".
22287 Strengthen local "inner_insn" from rtx to rtx_insn *.
22288 (reemit_insn_block_notes): Replace GET_CODE check with a
22289 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
22290 Use methods of rtx_sequence.
22291 (final_scan_insn): Likewise, introducing local "seq" for when
22292 "body" is known to be a SEQUENCE, using its methods.
22294 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22296 * except.c (can_throw_external): Strengthen local "seq" from rtx
22297 to rtx_sequence *. Use methods of rtx_sequence.
22298 (insn_nothrow_p): Likewise.
22300 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22302 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
22303 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
22304 Use methods of rtx_sequence.
22305 (scan_trace): Likewise for local "pat".
22307 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22309 * coretypes.h (class rtx_sequence): Add forward declaration.
22310 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
22311 invariant: GET_CODE (X) == SEQUENCE.
22312 (is_a_helper <rtx_sequence *>::test): New.
22313 (is_a_helper <const rtx_sequence *>::test): New.
22314 (rtx_sequence::len): New.
22315 (rtx_sequence::element): New.
22316 (rtx_sequence::insn): New.
22318 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22320 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
22322 (alloc_INSN_LIST): Strengthen return type from rtx to
22324 (copy_INSN_LIST): Likewise for return type and param.
22325 (concat_INSN_LIST): Likewise for both params and return type.
22326 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
22327 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
22328 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
22329 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
22331 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
22332 "implicit_sets", "control_uses", "clobbers" from rtx to
22334 (struct deps_desc): Likewise for fields "pending_read_insns",
22335 "pending_write_insns", "pending_jump_insns",
22336 "last_pending_memory_flush", "last_function_call",
22337 "last_function_call_may_noreturn", "sched_before_next_call",
22338 "sched_before_next_jump".
22339 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
22340 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
22342 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
22343 from rtx to rtx_insn_list *.
22344 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
22347 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
22348 to rtx_insn_list **.
22349 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
22351 (queue_insn): Likewise for local "link".
22352 (struct haifa_saved_data): Strengthen field "insn_queue" from
22353 rtx * to rtx_insn_list **.
22354 (save_backtrack_point): Update allocation of save->insn_queue to
22355 reflect the strengthening of elements from rtx to rtx_insn_list *.
22356 (queue_to_ready): Strengthen local "link" from rtx to
22357 rtx_insn_list *; use methods "next" and "insn" when traversing the
22359 (early_queue_to_ready): Likewise for locals "link", "next_link",
22361 (schedule_block): Update allocation of insn_queue to reflect the
22362 strengthening of elements from rtx to rtx_insn_list *. Strengthen
22363 local "link" from rtx to rtx_insn_list *, and use methods when
22365 (add_to_speculative_block): Strengthen locals "twins" and
22366 "next_node" from rtx to rtx_insn_list *, and use methods when
22367 working with them. Strengthen local "twin" from rtx to
22368 rtx_insn *, eliminating a checked cast.
22369 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
22370 from rtx to rtx_insn_list *, and use methods when working with
22373 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
22374 from rtx to rtx_insn_list *, adding a checked cast.
22375 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
22377 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
22378 "newlink" from rtx to rtx_insn_list *. Strengthen local
22379 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
22380 from rtx to rtx_insn *.
22381 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
22382 from rtx to rtx_insn_list *. Use methods of the latter class.
22383 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
22384 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
22385 (remove_free_INSN_LIST_node): Strengthen return type and local
22386 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
22387 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
22388 rtx_insn_list *, using "insn" method.
22390 * sched-deps.c (add_dependence_list): Strengthen param "list"
22391 from rtx to rtx_insn_list *, and use methods when working with it.
22392 (add_dependence_list_and_free): Strengthen param "listp" from
22393 rtx * to rtx_insn_list **.
22394 (remove_from_dependence_list): Strenghten param "listp" from rtx *
22395 to rtx_insn_list **, and use methods when working with *listp.
22396 (remove_from_both_dependence_lists): Strengthen param "listp" from
22397 rtx * to rtx_insn_list **
22398 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
22399 to rtx_insn_list **. Eliminate local "link", in favor of two new
22400 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
22402 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
22403 by introducing local "cond_deps".
22404 (remove_from_deps): Strengthen param "insn" from rtx to
22407 * sched-rgn.c (concat_insn_mem_list): Strengthen param
22408 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
22409 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
22410 Use methods of rtx_insn_list.
22412 * store-motion.c (struct st_expr): Strengthen fields
22413 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
22414 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
22416 (find_moveable_store): Split out "tmp" into multiple more-tightly
22417 scoped locals. Use methods of rtx_insn_list *.
22418 (compute_store_table): Strengthen local "tmp" from rtx to
22419 rtx_insn *. Use methods of rtx_insn_list *.
22421 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22423 * coretypes.h (class rtx_insn_list): Add forward declaration.
22424 * rtl.h (class rtx_insn_list): New subclass of rtx_def
22425 (is_a_helper <rtx_insn_list *>::test): New.
22426 (rtx_insn_list::next): New.
22427 (rtx_insn_list::insn): New.
22428 (gen_rtx_INSN_LIST): Add prototype.
22429 * emit-rtl.c (gen_rtx_INSN_LIST): New.
22430 * gengenrtl.c (special_rtx): Add INSN_LIST.
22432 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22434 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
22435 "prev" from rtx to rtx_insn *.
22437 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22439 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
22440 functions. Require merely an rtx for now, not an rtx_insn *.
22441 (BLOCK_FOR_INSN): Likewise.
22442 (INSN_LOCATION): Likewise.
22443 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
22445 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22447 * rtl.h (PATTERN): Convert this macro into a pair of inline
22448 functions, for now, requiring const_rtx and rtx.
22450 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22452 * target.def (unwind_emit): Strengthen param "insn" from rtx to
22454 (final_postscan_insn): Likewise.
22455 (adjust_cost): Likewise.
22456 (adjust_priority): Likewise.
22457 (variable_issue): Likewise.
22458 (macro_fusion_pair_p): Likewise.
22459 (dfa_post_cycle_insn): Likewise.
22460 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
22461 (first_cycle_multipass_issue): Likewise.
22462 (dfa_new_cycle): Likewise.
22463 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
22464 (speculate_insn): Likewise for param "insn".
22465 (gen_spec_check): Likewise for params "insn" and "label".
22466 (get_insn_spec_ds): Likewise for param "insn".
22467 (get_insn_checked_ds): Likewise.
22468 (dispatch_do): Likewise.
22469 (dispatch): Likewise.
22470 (cannot_copy_insn_p): Likewise.
22471 (invalid_within_doloop): Likewise.
22472 (legitimate_combined_insn): Likewise.
22473 (needed): Likewise.
22476 * doc/tm.texi: Automatically updated to reflect changes to
22479 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
22481 (schedule_block): Likewise.
22482 (sched_init): Likewise.
22483 (sched_speculate_insn): Strengthen param "insn" from rtx to
22485 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
22487 * hooks.c (hook_bool_rtx_true): Rename to...
22488 hook_bool_rtx_insn_true): ...this, and strengthen first param from
22490 (hook_constcharptr_const_rtx_null): Rename to...
22491 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22492 first param from const_rtx to const rtx_insn *.
22493 (hook_bool_rtx_int_false): Rename to...
22494 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22495 param from rtx to rtx_insn *.
22496 (hook_void_rtx_int): Rename to...
22497 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22500 * hooks.h (hook_bool_rtx_true): Rename to...
22501 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
22503 (hook_bool_rtx_int_false): Rename to...
22504 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
22505 param from rtx to rtx_insn *.
22506 (hook_void_rtx_int): Rename to...
22507 (hook_void_rtx_insn_int): ...this, and strengthen first param from
22509 (hook_constcharptr_const_rtx_null): Rename to...
22510 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
22511 first param from const_rtx to const rtx_insn *.
22513 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
22514 and local "prev" from rtx to rtx_insn *.
22516 * sched-int.h (sched_speculate_insn): Strengthen first param from
22519 * sel-sched.c (create_speculation_check): Likewise for local "label".
22520 * targhooks.c (default_invalid_within_doloop): Strengthen param
22521 "insn" from const_rtx to const rtx_insn *.
22522 * targhooks.h (default_invalid_within_doloop): Strengthen param
22523 from const_rtx to const rtx_insn *.
22525 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
22526 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
22528 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
22530 (arc_invalid_within_doloop): Likewise, with const.
22532 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
22533 (arm_cannot_copy_insn_p): Likewise for param "insn".
22534 (arm_unwind_emit): Likewise.
22536 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
22539 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
22540 (c6x_variable_issue): Likewise. Removed now-redundant checked
22542 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
22544 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
22545 Likewise for param "insn".
22546 (epiphany_mode_after): Likewise.
22547 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
22548 params "insn", "dep_insn".
22549 (epiphany_mode_needed): Likewise for param "insn".
22550 (epiphany_mode_after): Likewise.
22552 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
22553 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22554 (ix86_avx_u128_mode_needed): Likewise.
22555 (ix86_i387_mode_needed): Likewise.
22556 (ix86_mode_needed): Likewise.
22557 (ix86_avx_u128_mode_after): Likewise.
22558 (ix86_mode_after): Likewise.
22559 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
22560 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
22561 (ix86_adjust_priority): Likewise for param "insn".
22562 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
22563 (do_dispatch): Likewise.
22564 (has_dispatch): Likewise.
22565 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
22567 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
22568 reflect renaming of default hook implementation from
22569 hook_constcharptr_const_rtx_null to
22570 hook_constcharptr_const_rtx_insn_null.
22571 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
22573 (ia64_variable_issue): Likewise for param "insn".
22574 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
22575 (ia64_dfa_new_cycle): Likewise.
22576 (ia64_get_insn_spec_ds): Likewise.
22577 (ia64_get_insn_checked_ds): Likewise.
22578 (ia64_speculate_insn): Likewise.
22579 (ia64_gen_spec_check): Likewise for params "insn", "label".
22580 (ia64_asm_unwind_emit): Likewise for param "insn".
22582 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
22584 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
22585 "insn", "def_insn".
22586 (m68k_sched_variable_issue): Likewise for param "insn".
22588 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
22591 * config/microblaze/microblaze.c (microblaze_adjust_cost):
22592 Likewise for params "insn", "dep".
22594 * config/mips/mips.c (mips_adjust_cost): Likewise.
22595 (mips_variable_issue): Likewise for param "insn".
22596 (mips_final_postscan_insn): Likewise.
22598 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
22599 for params "insn", "dep".
22601 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
22603 (pa_adjust_priority): Likewise for param "insn".
22605 * config/picochip/picochip.c (picochip_sched_adjust_cost):
22606 Likewise for params "insn", "dep_insn".
22608 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
22610 (rs6000_variable_issue): Likewise.
22611 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
22612 (rs6000_debug_adjust_cost): Likewise.
22613 (rs6000_adjust_priority): Likewise for param "insn".
22614 (rs6000_use_sched_lookahead_guard): Likewise.
22615 (get_next_active_insn): Likewise for return type and both params.
22616 (redefine_groups): Likewise for params "prev_head_insn", "tail"
22617 and locals "insn", "next_insn".
22618 (pad_groups): Likewise.
22620 * config/s390/s390.c (s390_adjust_priority): Likewise for param
22622 (s390_cannot_copy_insn_p): Likewise.
22623 (s390_sched_variable_issue): Likewise for third param, eliminating
22625 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
22626 default hook implementation from hook_constcharptr_const_rtx_null
22627 to hook_constcharptr_const_rtx_insn_null.
22629 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
22630 from rtx to rtx_insn *.
22631 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
22632 (sh_variable_issue): Likewise for param "insn".
22633 (sh_dfa_new_cycle): Likewise.
22634 (sh_mode_needed): Likewise.
22635 (sh_mode_after): Likewise.
22637 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
22638 params "insn", "dep_insn".
22639 (hypersparc_adjust_cost): Likewise.
22640 (sparc_adjust_cost): Likewise.
22642 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
22643 param, eliminated checked cast.
22644 (spu_sched_adjust_cost): Likewise for first and third params.
22646 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
22647 params "insn" and "dep_insn" from rtx to rtx_insn *.
22649 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
22651 2014-08-27 David Malcolm <dmalcolm@redhat.com>
22653 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
22654 (set_is_load_p): ...this, updating to work on a SET pattern rather
22656 (is_store_insn): Rename to...
22657 (set_is_store_p): ...this, updating to work on a SET pattern
22658 rather than an insn.
22659 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
22660 top of function to where it is needed. Rewrite the bogus
22661 condition that checks for "insn" and "dep" being PARALLEL to
22662 instead use single_set, introducing locals "insn_set" and
22663 "dep_set". Given that we only ever returned "cost" for a non-pair
22664 of SETs, bail out early if we don't have a pair of SET.
22665 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
22666 use the new locals "insn_set" and "dep_set", and update calls to
22667 is_load_insn and is_store_insn to be calls to set_is_load_p and
22670 2014-08-27 Guozhi Wei <carrot@google.com>
22673 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
22674 amount before using it.
22676 2014-08-27 Richard Biener <rguenther@suse.de>
22678 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
22679 get_maxval_strlen inside a more useful API.
22680 (gimple_fold_builtin_with_strlen): Remove and fold into ...
22681 (gimple_fold_builtin): ... caller.
22682 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
22683 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
22684 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
22685 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
22686 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
22687 gimple_fold_builtin_sprintf): Adjust to compute maxval
22690 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
22693 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
22695 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22697 Anna Tikhonova <anna.tikhonova@intel.com>
22698 Ilya Tocar <ilya.tocar@intel.com>
22699 Andrey Turetskiy <andrey.turetskiy@intel.com>
22700 Ilya Verbin <ilya.verbin@intel.com>
22701 Kirill Yukhin <kirill.yukhin@intel.com>
22702 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22704 * config/i386/sse.md
22705 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
22706 Use `concat_tg_mode' attribute to determine asm register size.
22708 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22709 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22710 Anna Tikhonova <anna.tikhonova@intel.com>
22711 Ilya Tocar <ilya.tocar@intel.com>
22712 Andrey Turetskiy <andrey.turetskiy@intel.com>
22713 Ilya Verbin <ilya.verbin@intel.com>
22714 Kirill Yukhin <kirill.yukhin@intel.com>
22715 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22717 * config/i386/sse.md
22718 (define_mode_iterator VI48_AVX512VL): New.
22719 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
22720 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
22721 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
22722 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22723 with VI1): Change mode iterator.
22724 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22725 with VI_ULOADSTORE_BW_AVX512VL): New.
22726 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22727 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22728 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22729 with VI1): Change mode iterator.
22730 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22731 with VI_ULOADSTORE_BW_AVX512VL): New.
22732 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
22733 with VI_ULOADSTORE_F_AVX512VL): Ditto.
22734 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22735 with VI1): Change mode iterator.
22736 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22737 with VI_ULOADSTORE_BW_AVX512VL): New.
22738 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
22739 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
22740 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
22741 (define_insn "<avx512>_storedqu<mode>_mask" with
22742 VI48_AVX512VL): New.
22743 (define_insn "<avx512>_storedqu<mode>_mask" with
22744 VI12_AVX512VL): Ditto.
22746 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
22747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22748 Anna Tikhonova <anna.tikhonova@intel.com>
22749 Ilya Tocar <ilya.tocar@intel.com>
22750 Andrey Turetskiy <andrey.turetskiy@intel.com>
22751 Ilya Verbin <ilya.verbin@intel.com>
22752 Kirill Yukhin <kirill.yukhin@intel.com>
22753 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22755 * config/i386/sse.md
22756 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
22757 (define_mode_iterator VI48_AVX512BW): New.
22758 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
22759 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22760 with VI48_AVX2_48_AVX512F): New.
22761 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
22762 with VI2_AVX512VL): Ditto.
22764 2014-08-27 Richard Biener <rguenther@suse.de>
22766 PR middle-end/62239
22767 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
22768 (fold_builtin_3): Do not fold strcat_chk here.
22769 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
22771 (gimple_fold_builtin): Fold strcat_chk here.
22773 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
22775 * dwarf2out.h (dwarf2out_decl): Remove prototype.
22776 * dwarf2out.c (dwarf2out_decl): Make static.
22778 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
22780 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
22782 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22784 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
22785 from rtx to rtx_insn *.
22786 (cselib_lookup_from_insn): Likewise for final param.
22787 (cselib_subst_to_values_from_insn): Likewise.
22788 (cselib_add_permanent_equiv): Likewise.
22790 * cselib.c (cselib_current_insn): Likewise for this variable.
22791 (cselib_subst_to_values_from_insn): Likewise for param "insn".
22792 (cselib_lookup_from_insn): Likewise.
22793 (cselib_add_permanent_equiv): Likewise for param "insn" and local
22794 "save_cselib_current_insn".
22795 (cselib_process_insn): Replace use of NULL_RTX with NULL.
22797 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
22798 from rtx to rtx_insn *.
22800 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22802 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
22805 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22807 * df.h (df_dump_insn_problem_function): Strengthen first param of
22808 this callback from const_rtx to const rtx_insn *.
22809 (struct df_insn_info): Strengthen field "insn" from rtx to
22811 (DF_REF_INSN): Eliminate this function, reinstating the older
22813 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
22814 (df_reg_defined): Likewise.
22815 (df_find_use): Likewise.
22816 (df_reg_used): Likewise.
22817 (df_dump_insn_top): Strengthen param 1 from const_rtx to
22819 (df_dump_insn_bottom): Likewise.
22820 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
22821 (df_insn_debug_regno): Likewise.
22822 (debug_df_insn): Likewise.
22823 (df_rd_simulate_one_insn): Likewise for param 2.
22824 (df_word_lr_simulate_defs): Likewise for param 1.
22825 (df_word_lr_simulate_uses): Likewise.
22826 (df_md_simulate_one_insn): Likewise for param 2.
22827 (df_simulate_find_noclobber_defs): Likewise for param 1.
22828 (df_simulate_find_defs): Likewise.
22829 (df_simulate_defs): Likewise.
22830 (df_simulate_uses): Likewise.
22831 (df_simulate_one_insn_backwards): Likewise for param 2.
22832 (df_simulate_one_insn_forwards): Likewise.
22833 (df_uses_create): Likewise for param 2.
22834 (df_insn_create_insn_record): Likewise for param 1.
22835 (df_insn_delete): Likewise.
22836 (df_insn_rescan): Likewise.
22837 (df_insn_rescan_debug_internal): Likewise.
22838 (df_insn_change_bb): Likewise.
22839 (df_notes_rescan): Likewise.
22840 * rtl.h (remove_death): Likewise for param 2.
22841 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
22843 * sched-int.h (reemit_notes): Strengthen param from rtx to
22845 * valtrack.h (propagate_for_debug): Likewise for param 1.
22847 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
22848 local "tmp_rtx" from const_rtx to const rtx_insn *.
22849 * combine.c (remove_death): Strengthen param "insn" from rtx to
22851 (move_deaths): Likewise for local "where_dead".
22852 * cse.c (delete_trivially_dead_insns): Introduce local
22853 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
22854 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
22856 (df_reg_defined): Likewise.
22857 (df_find_use): Likewise.
22858 (df_reg_used): Likewise.
22859 (df_dump_insn_problem_data): Strengthen param "insn" from
22860 const_rtx to const rtx_insn *.
22861 (df_dump_insn_top): Likewise.
22862 (df_dump_insn_bottom): Likewise.
22863 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
22864 (df_insn_debug_regno): Likewise.
22865 (debug_df_insn): Likewise.
22866 (DF_REF_INSN): Delete.
22867 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
22868 from rtx to rtx_insn *.
22869 (df_chain_insn_top_dump): Strengthen param "insn" from
22870 const_rtx to const rtx_insn *.
22871 (df_chain_insn_bottom_dump): Likewise.
22872 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
22874 (df_word_lr_simulate_uses): Likewise.
22875 (df_print_note): Likewise.
22876 (df_remove_dead_and_unused_notes): Likewise.
22877 (df_set_unused_notes_for_mw): Likewise.
22878 (df_set_dead_notes_for_mw): Likewise.
22879 (df_create_unused_note): Likewise.
22880 (df_simulate_find_defs): Likewise.
22881 (df_simulate_find_uses): Likewise.
22882 (df_simulate_find_noclobber_defs): Likewise.
22883 (df_simulate_defs): Likewise.
22884 (df_simulate_uses): Likewise.
22885 (df_simulate_one_insn_backwards): Likewise.
22886 (df_simulate_one_insn_forwards): Likewise.
22887 (df_md_simulate_one_insn): Likewise.
22888 * df-scan.c (df_uses_create): Likewise.
22889 (df_insn_create_insn_record): Likewise.
22890 (df_insn_delete): Likewise.
22891 (df_insn_rescan): Likewise.
22892 (df_insn_rescan_debug_internal): Likewise.
22893 (df_insn_change_bb): Likewise.
22894 (df_notes_rescan): Likewise.
22895 (df_refs_add_to_chains): Likewise.
22896 (df_insn_refs_verify): Likewise.
22897 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
22898 when invoking df_insn_delete.
22899 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
22900 (set_unique_reg_note): Add checked cast.
22901 * final.c (cleanup_subreg_operands): Likewise.
22902 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
22903 "insn" from rtx to rtx_insn *.
22904 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
22905 "last" from rtx to rtx_insn *.
22906 * ira-emit.c (change_regs_in_insn): New function.
22907 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
22908 Invoke change_regs_in_insn rather than change_regs.
22909 * ira.c (update_equiv_regs): Strengthen locals "insn",
22910 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
22911 for_each_rtx_in_insn rather than for_each_rtx.
22912 * recog.c (confirm_change_group): Add checked casts.
22913 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
22915 (peep2_fill_buffer): Add checked cast.
22916 * rtlanal.c (remove_note): Likewise.
22917 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
22918 locals "next" "end" from rtx to rtx_insn *.
22920 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22922 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
22924 (struct reg_use_data): Likewise for field "insn".
22925 (insn_cost): Likewise for param.
22926 (real_insn_for_shadow): Likewise for return type and param.
22927 (increase_insn_priority): Likewise for param 1.
22928 (debug_dependencies): Likewise for both params.
22930 * haifa-sched.c (insn_delay): Likewise for param "insn".
22931 (real_insn_for_shadow): Likewise for return type and param "insn".
22932 (update_insn_after_change): Likewise for param "insn".
22933 (recompute_todo_spec): Likewise for param "next" and locals "pro",
22935 (insn_cost): Likewise for param "insn".
22936 (increase_insn_priority): Likewise.
22937 (calculate_reg_deaths): Likewise.
22938 (setup_insn_reg_pressure_info): Likewise.
22939 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
22940 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
22941 (model_recompute): Likewise.
22942 (must_restore_pattern_p): Likewise for param "next".
22943 (model_excess_cost): Likewise for param "insn".
22944 (queue_remove): Likewise.
22945 (adjust_priority): Likewise for param "prev".
22946 (update_register_pressure): Likewise for param "insn".
22947 (setup_insn_max_reg_pressure): Likewise for local "insn".
22948 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
22949 (model_add_to_schedule): Likewise.
22950 (model_reset_queue_indices): Likewise for local "insn".
22951 (unschedule_insns_until): Strengthen local "recompute_vec" from
22952 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
22953 "con" from rtx to rtx_insn *.
22954 (restore_last_backtrack_point): Likewise for both locals "x". Add
22956 (estimate_insn_tick): Likewise for param "insn".
22957 (commit_schedule): Likewise for params "prev_head", "tail" and
22959 (verify_shadows): Likewise for locals "i1", "i2".
22960 (dump_insn_stream): Likewise for params "head", "tail" and locals
22961 "next_tail", "insn".
22962 (schedule_block): Likewise for locals "insn", "x". Add a checked
22964 (fix_inter_tick): Likewise for params "head", "tail".
22965 (create_check_block_twin): Likewise for local "jump".
22966 (haifa_change_pattern): Likewise for param "insn".
22967 (haifa_speculate_insn): Likewise.
22968 (dump_new_block_header): Likewise for params "head", "tail".
22969 (fix_jump_move): Likewise for param "jump".
22970 (move_block_after_check): Likewise.
22971 (sched_init_insn_luid): Likewise for param "insn".
22972 (sched_init_luids): Likewise for local "insn".
22973 (insn_luid): Likewise for param "insn".
22974 (init_h_i_d): Likewise.
22975 (haifa_init_h_i_d): Likewise for local "insn".
22976 (haifa_init_insn): Likewise for param "insn".
22977 * sched-deps.c (add_dependence): Likewise for local "real_pro",
22979 (create_insn_reg_use): Likewise for param "insn".
22980 (setup_insn_reg_uses): Likewise. Add a checked cast.
22981 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
22982 "tail" from rtx to rtx_insn *.
22983 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
22984 "insn", "next_tail".
22986 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22988 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
22989 from rtx to rtx_insn *.
22990 (model_add_to_schedule): Likewise for locals "start", "end",
22993 2014-08-26 David Malcolm <dmalcolm@redhat.com>
22995 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
22997 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
22998 "to" and locals "insn", "next", "copy". Remove now-redundant
23001 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23003 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
23004 rtx_insn * and param 4 from rtx * to rtx_insn **.
23005 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
23006 param 2 from rtx * to rtx_insn **.
23008 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
23009 rtx_insn * and final param from rtx * to rtx_insn **.
23011 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
23012 from rtx to rtx_insn *.
23013 (try_head_merge_bb): Likewise for both locals named "move_upto".
23014 * df-problems.c (can_move_insns_across): Likewise for params
23015 "from", "to", "across_from", "across_to" and locals "insn",
23016 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
23018 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
23019 from rtx to rtx_insn *.
23020 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
23021 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23022 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
23024 (noce_try_abs): Likewise.
23025 (noce_get_condition): Likewise for param "jump". Strengthen param
23026 "earliest" from rtx * to rtx_insn **.
23027 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
23029 (find_cond_trap): Likewise.
23030 (dead_or_predicable): Likewise for local "earliest".
23031 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
23033 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
23034 and local "prev". Strengthen param "earliest" from rtx * to
23036 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
23037 Strengthen param "earliest" from rtx * to rtx_insn **.
23039 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23041 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
23042 "to" and local "insn" from rtx to rtx_insn *.
23044 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23046 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
23047 from rtx to rtx_insn *.
23048 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
23049 (code_motion_path_driver): Likewise for local "last_insn".
23050 (simplify_changed_insns): Likewise for local "insn".
23052 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23054 * rtl.h (push_to_sequence): Strengthen param from rtx to
23056 (push_to_sequence2): Likewise for both params.
23057 (delete_insns_since): Likewise for param.
23058 (reorder_insns_nobb): Likewise for all three params.
23059 (set_new_first_and_last_insn): Likewise for both params.
23061 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
23062 rtx_insn *. Remove now-redundant cast.
23063 (set_last_insn): Likewise.
23065 * builtins.c (expand_builtin_return): Strengthen local
23066 "call_fusage" from rtx to rtx_insn *.
23067 * cfgrtl.c (create_basic_block_structure): Likewise for local
23069 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
23070 "first", "last" and local "insn".
23071 (delete_insns_since): Likewise for param "from".
23072 (reorder_insns_nobb): Likewise for params "from", "to", "after"
23074 (push_to_sequence): Likewise for param "first" and local "last".
23075 (push_to_sequence2): Likewise for params "first" and "last".
23076 * lra.c (emit_add3_insn): Likewise for local "last".
23077 (lra_emit_add): Likewise.
23078 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
23080 (process_address_1): Likewise for locals "insn", last".
23081 * modulo-sched.c (ps_first_note): Likewise for return type.
23082 * optabs.c (expand_binop_directly): Likewise for param "last".
23084 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23086 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
23088 * emit-rtl.c (get_last_insn_anywhere): Likewise.
23090 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23092 * function.h (struct sequence_stack): Strengthen fields "first"
23093 and "last" from rtx to rtx_insn *.
23094 (struct emit_status): Likewise for fields "x_first_insn" and
23097 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
23098 (set_first_insn): Add checked cast.
23099 (get_last_insn): Remove now-redundant checked cast.
23100 (set_last_insn): Add checked cast.
23102 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
23103 "saved_first" and "saved_last" from rtx to rtx_insn *.
23105 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23107 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
23108 (unlink_insn_chain): Strengthen both params from rtx to
23111 * cfgrtl.c (cfg_layout_function_header): Likewise for this
23113 (unlink_insn_chain): Likewise for params "first" and "last".
23114 Remove now-redundant checked cast.
23115 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
23116 (fixup_reorder_chain): Strengthen local "insn" from rtx to
23118 * emit-rtl.c (link_insn_into_chain): Likewise for all three
23120 (add_insn): Likewise for param "insn" and local "prev".
23121 (add_insn_after_nobb): Likewise for both params and local "next".
23122 (add_insn_before_nobb): Likewise for both params and local "prev".
23123 (add_insn_after): Rename param "after" to "uncast_after",
23124 introducing local "after" with another checked cast.
23125 (add_insn_before): Rename params "insn" and "before", giving them
23126 "uncast_" prefixes, adding the old names back using checked casts.
23127 (emit_note_after): Likewise for param "after".
23128 (emit_note_before): Likewise for param "before".
23129 (emit_label): Add a checked cast.
23131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23133 * cselib.h (cselib_record_sets_hook): Strengthen initial param
23134 "insn" from rtx to rtx_insn *.
23136 * cselib.c (cselib_record_sets_hook): Likewise.
23138 * var-tracking.c (add_with_sets): Likewise, renaming back from
23139 "uncast_insn" to "insn" and eliminating the checked cast from rtx
23142 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23144 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
23145 and "header_" from rtx to rtx_insn *.
23146 (struct basic_block_d): Likewise for field "head_" within "x"
23147 field of union basic_block_il_dependent.
23148 (BB_HEAD): Drop function...
23149 (SET_BB_HEAD): ...and this function in favor of...
23150 (BB_HEAD): ...reinstate macro.
23151 (BB_END): Drop function...
23152 (SET_BB_END): ...and this function in favor of...
23153 (BB_END): ...reinstate macro.
23154 (BB_HEADER): Drop function...
23155 (SET_BB_HEADER): ...and this function in favor of...
23156 (BB_HEADER): ...reinstate macro.
23158 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
23159 (fix_crossing_unconditional_branches): Likewise.
23160 * caller-save.c (save_call_clobbered_regs): Likewise.
23161 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
23162 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
23163 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23164 (merge_blocks_move_successor_nojumps): Likewise.
23165 (outgoing_edges_match): Update use of for_each_rtx to
23166 for_each_rtx_in_insn.
23167 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
23168 (expand_gimple_cond): Likewise.
23169 (expand_gimple_tailcall): Likewise.
23170 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
23172 (construct_exit_block): Drop use of SET_BB_END.
23173 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
23175 (delete_insn): Rename param "insn" to "uncast_insn", introducing
23176 a new local "insn" with a checked cast to rtx_insn *. Drop use of
23177 SET_BB_HEAD and SET_BB_END.
23178 (create_basic_block_structure): Drop use of SET_BB_HEAD and
23180 (rtl_delete_block): Drop use of SET_BB_HEAD.
23181 (rtl_split_block): Drop use of SET_BB_END.
23182 (emit_nop_for_unique_locus_between): Likewise.
23183 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
23184 (block_label): Drop use of SET_BB_HEAD.
23185 (fixup_abnormal_edges): Drop use of SET_BB_END.
23186 (record_effective_endpoints): Drop use of SET_BB_HEADER.
23187 (relink_block_chain): Likewise.
23188 (fixup_reorder_chain): Drop use of SET_BB_END.
23189 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
23190 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
23191 rtx_insn **. Drop use of SET_BB_HEADER.
23192 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
23194 (BB_HEAD): Delete this function.
23195 (SET_BB_HEAD): Likewise.
23196 (BB_END): Likewise.
23197 (SET_BB_END): Likewise.
23198 (BB_HEADER): Likewise.
23199 (SET_BB_HEADER): Likewise.
23200 * emit-rtl.c (add_insn_after): Rename param "insn" to
23201 "uncast_insn", adding a new local "insn" and a checked cast to
23202 rtx_insn *. Drop use of SET_BB_END.
23203 (remove_insn): Strengthen locals "next" and "prev" from rtx to
23204 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
23205 (reorder_insns): Drop use of SET_BB_END.
23206 (emit_insn_after_1): Strengthen param "first" and locals "last",
23207 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
23208 (emit_pattern_after_noloc): Add checked cast.
23209 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
23210 (restore_other_notes): Likewise.
23211 (move_insn): Likewise.
23212 (sched_extend_bb): Likewise.
23213 (fix_jump_move): Likewise.
23214 * ifcvt.c (noce_process_if_block): Likewise.
23215 (dead_or_predicable): Likewise.
23216 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
23217 * reg-stack.c (change_stack): Drop use of SET_BB_END.
23218 * sel-sched-ir.c (sel_move_insn): Likewise.
23219 * sel-sched.c (move_nop_to_previous_block): Likewise.
23221 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
23223 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23225 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23227 * basic-block.h (create_basic_block_structure): Strengthen params
23228 1 "head" and 2 "end" from rtx to rtx_insn *.
23229 * cfgrtl.c (create_basic_block_structure): Likewise.
23230 (rtl_create_basic_block): Update casts from void * to rtx to
23231 rtx_insn *, so that we can pass them as rtx_insn * to
23232 create_basic_block_structure.
23233 * sel-sched-ir.c (sel_create_basic_block): Likewise.
23235 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23237 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
23239 (check_for_inc_dec): Strengthen param "insn" from rtx to
23242 * cselib.h (cselib_process_insn): Likewise.
23244 * cselib.c (cselib_record_sets): Likewise.
23245 (cselib_process_insn): Likewise.
23247 * dse.c (struct insn_info): Likewise for field "insn".
23248 (check_for_inc_dec_1): Likewise for local "insn".
23249 (check_for_inc_dec): Likewise for param "insn".
23250 (scan_insn): Likewise.
23251 (dse_step1): Likewise for local "insn".
23253 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
23254 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
23256 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23258 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
23259 from rtx to rtx_insn *.
23260 (DEP_PRO): Delete this function and...
23261 (SET_DEP_PRO): ...this function in favor of...
23262 (DEP_PRO): ...reinstate this macro.
23263 (DEP_CON): Delete this function and...
23264 (SET_DEP_CON): ...this function in favor of...
23265 (DEP_CON): ...reinstate this old macro.
23266 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
23267 (init_dep): Likewise.
23268 (set_priorities): Likewise for both params.
23269 (sd_copy_back_deps): Likewise for params 1 and 2.
23271 * haifa-sched.c (priority): Likewise for param "insn" and local
23273 (set_priorities): Likewise for params "head" and "tail" and local
23275 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
23277 (add_to_speculative_block): Add a checked cast.
23278 (create_check_block_twin): Drop use of SET_DEP_CON.
23279 (add_jump_dependencies): Strengthen params "insn" and "jump" from
23282 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
23283 Drop use of SET_DEP_PRO
23284 (init_dep): Strengthen params "pro" and "con" from rtx to
23286 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
23287 use of SET_DEP_CON.
23290 (SET_DEP_PRO): Delete.
23291 (SET_DEP_CON): Delete.
23293 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23295 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
23296 from rtx to rtx_insn *.
23297 (VINSN_INSN_RTX): Eliminate rvalue function and...
23298 (SET_VINSN_INSN): ...lvalue function in favor of...
23299 (VINSN_INSN_RTX): reinstate this old macro.
23301 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
23302 in favor of VINSN_INSN_RTX.
23303 (VINSN_INSN_RTX): Delete this function.
23304 (SET_VINSN_INSN_RTX): Likewise.
23306 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23308 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
23309 (BND_TO): Delete this function and...
23310 (SET_BND_TO): ...this functions in favor of...
23311 (BND_TO): ...reinstating this macro.
23312 (struct _fence): Strengthen field "executing_insns" from
23313 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
23314 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23315 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
23316 and param "insn" from rtx to insn_t.
23317 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
23320 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
23322 (rtx_vec_t): Likewise.
23323 (struct sched_deps_info_def): Strengthen param of "start_insn"
23324 callback from rtx to rtx_insn *. Likewise for param "insn2" of
23325 "note_mem_dep" callback and first param of "note_dep" callback.
23327 * haifa-sched.c (add_to_speculative_block): Strengthen param
23328 "insn" from rtx to rtx_insn *.
23329 (clear_priorities): Likewise.
23330 (calc_priorities): Likewise for local "insn".
23332 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
23333 Remove redundant checked cast.
23334 (haifa_note_mem_dep): Likewise for param "pending_insn".
23335 (haifa_note_dep): Likewise for param "elem".
23336 (note_mem_dep): Likewise for param "e".
23337 (sched_analyze_1): Add checked casts.
23338 (sched_analyze_2): Likewise.
23340 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
23341 from rtx to rtx_insn *.
23342 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
23343 from vec<rtx> * to vec<rtx_insn *> *.
23345 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
23347 (flist_add): Strengthen param "executing_insns" from
23348 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23349 (advance_deps_context): Remove now-redundant checked cast.
23350 (init_fences): Replace uses of NULL_RTX with NULL.
23351 (merge_fences): Strengthen params "last_scheduled_insn" and
23352 "sched_next" from rtx to rtx_insn * and "executing_insns" from
23353 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
23354 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
23355 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
23356 an instruction, rather than doing double-duty as a pattern.
23357 (return_nop_to_pool): Update for change of insn_t.
23358 (deps_init_id): Remove now-redundant checked cast.
23359 (struct sched_scan_info_def): Strengthen param of "init_insn"
23360 callback from rtx to insn_t.
23361 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
23362 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
23364 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
23365 "end" from rtx to rtx_insn *.
23366 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
23367 (rtx insn_rtx, bool force_unique_p)
23368 (BND_TO): Delete function.
23369 (SET_BND_TO): Delete function.
23371 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
23373 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
23374 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
23376 (undo_transformations): Likewise for param "insn".
23377 (update_liveness_on_insn): Likewise.
23378 (compute_live_below_insn): Likewise for param "insn" and local
23380 (update_data_sets): Likewise for param "insn".
23381 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
23382 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
23383 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
23385 (move_cond_jump): Likewise for param "insn".
23386 (move_cond_jump): Drop use of SET_BND_TO.
23387 (compute_av_set_on_boundaries): Likewise.
23388 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
23389 (update_and_record_unavailable_insns): Strengthen local "bb_end"
23390 from rtx to rtx_insn *.
23391 (maybe_emit_renaming_copy): Likewise for param "insn".
23392 (maybe_emit_speculative_check): Likewise.
23393 (handle_emitting_transformations): Likewise.
23394 (remove_insn_from_stream): Likewise.
23395 (code_motion_process_successors): Strengthen local "succ" from rtx
23398 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23400 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
23401 ilist_t, not _xlist_t;
23402 (ILIST_INSN): Define in terms of new union field "insn".
23403 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
23405 (struct _list_node): Add new field "insn" to the union, of type
23407 (ilist_add): Replace macro with an inline function, requiring an
23409 (ilist_remove): Define this macro directly in terms of
23410 _list_remove, rather than indirectly via _xlist_remove.
23411 (ilist_clear): Likewise, in terms of _list_clear rather than
23413 (ilist_is_in_p): Replace macro with an inline function, requiring
23415 (_list_iter_cond_insn): New function.
23416 (ilist_iter_remove): Define this macro directly in terms of
23417 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
23418 (ilist_iterator): Define directly in terms of _list_iterator
23419 rather than indirectly through _xlist_iterator.
23420 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
23421 than in terms of _FOR_EACH_X.
23422 (FOR_EACH_INSN_1): Likewise.
23424 2014-08-26 Joseph Myers <joseph@codesourcery.com>
23428 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
23429 DECL_HARD_REGISTER and return for invalid register specifications.
23430 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
23431 DECL_HARD_REGISTER, call expand_one_error_var.
23432 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
23433 CC_REGNUM with non-MODE_CC modes.
23434 (arm_regno_class): Return NO_REGS for PC_REGNUM.
23436 2014-08-26 Marek Polacek <polacek@redhat.com>
23439 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
23441 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
23443 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
23444 qi cost; add di cost.
23445 (cortexa57_addrcost_table): Likewise.
23447 2014-08-26 Marek Polacek <polacek@redhat.com>
23450 * expr.c (is_aligning_offset): Remove logical not.
23452 2014-08-26 Marek Polacek <polacek@redhat.com>
23455 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
23456 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
23458 2014-08-26 Richard Biener <rguenther@suse.de>
23460 PR tree-optimization/62175
23461 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23462 expand possibly trapping operations.
23464 2014-08-26 David Malcolm <dmalcolm@redhat.com>
23466 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
23467 "insn" from rtx to rtx_insn *.
23468 (permute_load): Likewise for param "insn".
23469 (permute_store): Likewise.
23470 (handle_special_swappables): Likewise for local "insn".
23471 (replace_swap_with_copy): Likewise for locals "insn" and
23473 (rs6000_analyze_swaps): Likewise for local "insn".
23475 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23477 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
23480 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23482 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
23483 "note_list" from rtx to rtx_insn *.
23484 (BB_NOTE_LIST): Replace this function and...
23485 (SET_BB_NOTE_LIST): ...this function with...
23486 (BB_NOTE_LIST): ...the former macro implementation.
23488 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
23489 local "from_start" from rtx to rtx_insn *. Strengthen param
23490 "to_endp" from rtx * to rtx_insn **.
23492 * haifa-sched.c (concat_note_lists): Likewise.
23493 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
23495 (sel_restore_notes): Likewise.
23496 (move_bb_info): Likewise.
23497 (BB_NOTE_LIST): Delete this function.
23498 (SET_BB_NOTE_LIST): Delete this function.
23499 * sel-sched.c (create_block_for_bookkeeping): Eliminate
23500 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
23502 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23504 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
23505 from rtx * to rtx_insn **.
23506 (reorder2): Likewise.
23507 (dependencies_evaluation_hook): Strengthen params "head", "tail"
23508 from rtx to rtx_insn *.
23510 * doc/tm.texi: Update mechanically for above change to target.def.
23512 * sched-int.h (note_list): Strengthen this variable from rtx to
23514 (remove_notes): Likewise for both params.
23515 (restore_other_notes): Likewise for return type and first param.
23516 (struct ready_list): Strengthen field "vec" from rtx * to
23518 (struct dep_replacement): Strenghten field "insn" from rtx to
23520 (struct deps_desc): Likewise for fields "last_debug_insn",
23522 (struct haifa_sched_info): Likewise for callback field
23523 "can_schedule_ready_p"'s param, for first param of "new_ready"
23524 callback field, for both params of "rank" callback field, for
23525 first field of "print_insn" callback field (with a const), for
23526 both params of "contributes_to_priority" callback, for param
23527 of "insn_finishes_block_p" callback, for fields "prev_head",
23528 "next_tail", "head", "tail", for first param of "add_remove_insn"
23529 callback, for first param of "begin_schedule_ready" callback, for
23530 both params of "begin_move_insn" callback, and for second param
23531 of "advance_target_bb" callback.
23532 (add_dependence): Likewise for params 1 and 2.
23533 (sched_analyze): Likewise for params 2 and 3.
23534 (deps_analyze_insn): Likewise for param 2.
23535 (ready_element): Likewise for return type.
23536 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23537 (try_ready): Strenghten param from rtx to rtx_insn *.
23538 (sched_emit_insn): Likewise for return type.
23539 (record_delay_slot_pair): Likewise for params 1 and 2.
23540 (add_delay_dependencies): Likewise for param.
23541 (contributes_to_priority): Likewise for both params.
23542 (find_modifiable_mems): Likewise.
23544 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
23545 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
23546 "first_older_only_insn" from rtx to rtx_insn *.
23547 (arm_sched_reorder): Strengthen param "ready" from rtx * to
23550 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
23551 "last_scheduled_iter0" from rtx to rtx_insn *.
23552 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
23553 (c6x_sched_reorder_1): 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_sched_reorder): Strengthen param "ready" from rtx * to
23558 (c6x_sched_reorder2): Strengthen param "ready" and locals
23559 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
23560 "insn" from rtx to rtx_insn *.
23561 (c6x_variable_issue): Add a checked cast when assigning from insn
23562 to ss.last_scheduled_iter0.
23563 (split_delayed_branch): Strengthen param "insn" and local "i1"
23564 from rtx to rtx_insn *.
23565 (split_delayed_nonbranch): Likewise.
23566 (undo_split_delayed_nonbranch): Likewise for local "insn".
23567 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
23568 "entry_after", "end_packet", "head_insn", "tail_insn",
23569 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
23570 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
23571 to rtx_insn **. Remove now-redundant checked cast on last_insn,
23572 but add a checked cast on loop->start_label. Consolidate calls to
23573 avoid assigning result of gen_spkernel to "insn", now an
23576 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
23577 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
23579 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
23580 rtx_insn **. Strengthen locals "top", "next" from rtx to
23582 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
23583 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
23584 (add_parameter_dependencies): Strengthen params "call", "head" and
23585 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
23586 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
23587 (add_dependee_for_func_arg): Likewise for param "arg" and local
23589 (ix86_dependencies_evaluation_hook): Likewise for params "head",
23590 "tail" and locals "insn", "first_arg".
23592 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
23593 for params "head", "tail" and locals "insn", "next", "next_tail".
23594 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
23595 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
23596 "insn", "lowest", "highest" from rtx to rtx_insn *.
23597 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
23599 (ia64_sched_reorder2): Likewise.
23601 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
23602 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
23603 from rtx * to rtx_insn **.
23604 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
23606 (mep_print_sched_insn): Strengthen param "insn" from rtx to
23608 (mep_sched_reorder): Strengthen param "ready" from rtx * to
23609 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
23612 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
23613 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
23615 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
23616 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
23617 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
23619 (vr4130_reorder): Likewise.
23620 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
23622 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
23624 (mips_sched_reorder): Likewise.
23625 (mips_sched_reorder2): Likewise.
23627 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
23629 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
23630 Strengthen local "tmp" from rtx to rtx_insn *.
23631 (rs6000_sched_reorder2): Likewise.
23633 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
23634 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
23635 (s390_sched_reorder): Strengthen param "ready" from rtx * to
23636 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
23638 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
23639 "tmp2" from rtx to rtx_insn *.
23640 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
23641 Strengthen local "insn" from rtx to rtx_insn *.
23642 (ready_reorder): Strengthen param "ready" from rtx * to
23643 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
23644 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
23645 (sh_reorder2): Likewise.
23647 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
23648 local "insn" from rtx to rtx_insn *.
23650 * haifa-sched.c (note_list): Strengthen this variable from rtx to
23652 (scheduled_insns): Strengthen this variable from vec<rtx> to
23654 (set_modulo_params): Likewise for locals "i1", "i2".
23655 (record_delay_slot_pair): Likewise for params "i1", "i2".
23656 (add_delay_dependencies): Likewise for param "insn".
23657 (cond_clobbered_p): Likewise.
23658 (recompute_todo_spec): Likewise for local "prev".
23659 (last_scheduled_insn): Likewise for this variable.
23660 (nonscheduled_insns_begin): Likewise.
23661 (model_set_excess_costs): Strengthen param "insns" from rtx * to
23663 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
23665 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
23666 Strengthen local "insn" from rtx to rtx_insn *.
23667 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
23668 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
23669 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
23670 (ready_remove_first): Likewise for return type and local "t".
23671 (ready_element): Likewise for return type.
23672 (ready_remove): Likewise for return type and local "t".
23673 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
23674 (check_clobbered_conditions): Strengthen local "x" from rtx to
23675 rtx_insn *, adding a checked cast.
23676 (schedule_insn): Likewise for param "insn".
23677 (remove_notes): Likewise for params "head", "tail" and locals
23678 "next_tail", "insn", "next".
23679 (struct haifa_saved_data): Likewise for fields
23680 "last_scheduled_insn", "nonscheduled_insns_begin".
23681 (save_backtrack_point): Update for change to field "vec" of
23683 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
23685 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
23686 from rtx to rtx_insn *
23687 (resolve_dependencies): Strengthen param "insn" from rtx to
23689 (restore_other_notes): Likewise for return type, for param "head"
23690 and local "note_head".
23691 (undo_all_replacements): Likewise for local "insn".
23692 (first_nonscheduled_insn): Likewise for return type and local "insn".
23693 (queue_to_ready): Likewise for local "insn", adding checked casts.
23694 (early_queue_to_ready): Likewise for local "insn".
23695 (debug_ready_list_1): Strengthen local "p" from rtx * to
23697 (move_insn): Strengthen param "insn" and local "note" from rtx to
23699 (insn_finishes_cycle_p): Likewise for param "insn".
23700 (max_issue): Likewise for local "insn".
23701 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
23703 (commit_schedule): Strengthen param "prev_head" and local "insn"
23704 from rtx to rtx_insn *
23705 (prune_ready_list): Likewise for local "insn".
23706 (schedule_block): Likewise for locals "prev_head", "head", "tail",
23707 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
23708 (set_priorities): Likewise for local "prev_head".
23709 (try_ready): Likewise for param "next".
23710 (fix_tick_ready): Likewise.
23711 (change_queue_index): Likewise.
23712 (sched_extend_ready_list): Update for change to field "vec" of
23714 (generate_recovery_code): Strengthen param "insn" from rtx to
23716 (begin_speculative_block): Likewise.
23717 (create_check_block_twin): Likewise for param "insn" and locals
23718 "label", "check", "twin". Introduce local "check_pat" to avoid
23719 "check" being used as a plain rtx before being used as an insn.
23720 (fix_recovery_deps): Add a checked cast to rtx_insn * when
23721 extracting elements from ready_list.
23722 (sched_remove_insn): Strengthen param "insn" from rtx to
23724 (sched_emit_insn): Likewise for return type.
23725 (ready_remove_first_dispatch): Likewise for return type and local
23728 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
23730 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
23733 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
23734 from rtx to rtx_insn *.
23735 (add_dependence_list): Likewise for param "insn". Add a checked
23737 (add_dependence_list_and_free): Strengthen param "insn" from rtx
23738 to rtx_insn *. Strengthen param "list_p" from rtx * to
23740 (chain_to_prev_insn): Strengthen param "insn" and locals
23741 "prec_nonnote", "i" from rtx to rtx_insn *.
23742 (flush_pending_lists): Likewise for param "insn".
23743 (cur_insn): Likewise for this variable.
23744 (haifa_start_insn): Add a checked cast.
23745 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
23746 (sched_analyze_reg): Likewise for param "insn".
23747 (sched_analyze_1): Likewise.
23748 (sched_analyze_2): Likewise. Add checked casts.
23749 (sched_analyze_insn): Likewise. Also for local "prev".
23750 (deps_analyze_insn): Likewise for param "insn".
23751 (sched_analyze): Likewise for params "head", "tail" and local "insn".
23752 (add_dependence_1): Likewise for params "insn", "elem".
23753 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
23754 (parse_add_or_inc): Likewise for param "insn".
23755 (find_inc): Likewise for local "inc_cand".
23756 (find_modifiable_mems): Likewise for params "head", "tail" and
23757 locals "insn", "next_tail".
23759 * sched-ebb.c (init_ready_list): Likewise for local "insn".
23760 (begin_schedule_ready): Likewise for param "insn".
23761 (begin_move_insn): Likewise for params "insn" and "last".
23762 (ebb_print_insn): Strengthen param "insn" from const_rtx to
23764 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
23765 (ebb_contributes_to_priority): Likewise for params "next", "insn".
23766 (ebb_add_remove_insn): Likewise for param "insn".
23767 (advance_target_bb): Likewise.
23769 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
23771 (check_live): Likewise for param "insn".
23772 (init_ready_list): Likewise for local "insn".
23773 (can_schedule_ready_p): Likewise for param "insn".
23774 (begin_schedule_ready): Likewise.
23775 (new_ready): Likewise for param "next".
23776 (rgn_print_insn): Likewise for param "insn".
23777 (rgn_rank): Likewise for params "insn1", "insn2".
23778 (contributes_to_priority): Likewise for params "next", "insn".
23779 (rgn_insn_finishes_block_p): Likewise for param "insn".
23780 (add_branch_dependences): Likewise for params "head", "tail" and
23781 locals "insn", "last".
23782 (rgn_add_remove_insn): Likewise for param "insn".
23783 (advance_target_bb): Likewise.
23785 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
23786 const_rtx to const rtx_insn *.
23788 * sel-sched-dump.h (sel_print_insn): Likewise.
23790 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
23791 (deps_init_id): Likewise.
23793 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
23794 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
23797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23799 * output.h (final_start_function): Strengthen param 1 from rtx to
23802 * final.c (final_start_function): Likewise, renaming back from
23803 "uncast_first" to "first", and dropping the checked cast from rtx
23806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23808 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
23809 * final.c (final): Likewise. Rename param back from
23810 "uncast_first" to "first" and eliminate the checked cast from rtx
23813 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23815 * output.h (shorten_branches): Strengthen param from rtx to
23818 * final.c (shorten_branches): Likewise, renaming param back from
23819 "uncast_first" to "first", and dropping the checked cast from rtx
23822 * genattr.c (gen_attr): Likewise when writing out the prototype of
23825 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23827 * sched-int.h (struct haifa_sched_info): Strengthen fields
23828 "prev_head" and "next_tail" from rtx to rtx_insn *.
23830 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23832 * rtl.h (rtx_jump_table_data::get_labels): New method.
23833 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
23834 with use of the new rtx_jump_table_data::get_labels method.
23835 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
23836 to rtx_jump_table_data *. Simplify by using get_labels method.
23837 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
23838 a dyn_cast, introducing local "table", using it to replace
23839 label-lookup logic with a get_labels method call.
23840 (patch_jump_insn): Simplify using get_labels method.
23841 * dwarf2cfi.c (create_trace_edges): Likewise.
23842 * rtlanal.c (label_is_jump_target_p): Likewise.
23844 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23846 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
23849 * emit-rtl.c (unshare_all_rtl_1): Likewise.
23850 (unshare_all_rtl_again): Likewise, also for local "p".
23852 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23854 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
23856 * cfgrtl.c (delete_insn_and_edges): Likewise.
23858 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23860 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
23861 from rtx to rtx_insn *.
23863 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
23865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23867 * function.c (thread_prologue_and_epilogue_insns): Likewise for
23868 locals "returnjump", "epilogue_end", "insn", "next".
23870 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
23871 "returnjump" from rtx * to rtx_insn **.
23872 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
23874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23876 * basic-block.h (struct edge_def). Strengthen "r" within
23877 union edge_def_insns from rtx to rtx_insn *.
23879 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
23880 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
23882 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
23883 from rtx to rtx_insn *.
23884 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
23886 * postreload-gcse.c (reg_killed_on_edge): Likewise.
23887 (reg_used_on_edge): Likewise.
23888 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
23889 (gt_pch_nx): New overload for rtx_insn *&.
23890 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
23891 from rtx to rtx_insn *.
23893 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23895 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
23896 from rtx to rtx_insn *.
23897 (BB_FOOTER): Replace function with access macro.
23898 (SET_BB_FOOTER): Delete.
23900 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
23902 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23903 (emit_barrier_after_bb): Likewise.
23904 (record_effective_endpoints): Likewise.
23905 (relink_block_chain): Likewise.
23906 (fixup_fallthru_exit_predecessor): Likewise.
23907 (cfg_layout_duplicate_bb): Likewise.
23908 (cfg_layout_split_block): Likewise.
23909 (cfg_layout_delete_block): Likewise.
23910 (cfg_layout_merge_blocks): Likewise.
23911 (BB_FOOTER): Delete function.
23912 (SET_BB_FOOTER): Delete function.
23913 * combine.c (update_cfg_for_uncondjump): Replace uses of
23914 SET_BB_FOOTER with BB_FOOTER.
23916 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23918 * except.h (struct eh_landing_pad_d): Strengthen field
23919 "landing_pad" from rtx to rtx_code_label *.
23921 * except.c (sjlj_emit_dispatch_table): Likewise for param
23923 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
23925 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23927 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
23928 first param from rtx to rtx_insn *.
23929 * config/xtensa/xtensa.c (struct machine_function): Likewise for
23930 field "set_frame_ptr_insn".
23931 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
23932 "csend" from rtx to rtx_code_label *.
23933 (xtensa_expand_atomic): Likewise for local "csloop".
23934 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
23936 (xtensa_call_tls_desc): Likewise for return type and locals
23937 "call_insn", "insns".
23938 (xtensa_legitimize_tls_address): Likewise for local "insns".
23939 (xtensa_expand_prologue): Likewise for locals "insn", "first".
23941 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23943 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
23944 first param from rtx to rtx_insn *.
23945 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
23948 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23950 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
23951 Strengthen param 1 from rtx to rtx_insn *.
23952 (tilepro_output_cbranch): Likewise.
23953 (tilepro_adjust_insn_length): Likewise.
23954 (tilepro_final_prescan_insn): Likewise for sole param.
23956 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
23957 Likewise for local "last".
23958 (cbranch_predicted_p): Likewise for param "insn".
23959 (tilepro_output_simple_cbranch_with_opcode): Likewise.
23960 (tilepro_output_cbranch_with_opcode): Likewise.
23961 (tilepro_output_cbranch): Likewise.
23962 (frame_emit_load): Likewise for return type and locals "seq",
23964 (emit_sp_adjust): Likewise for return type and local "insn".
23965 (tilepro_expand_epilogue): Likewise for locals "last_insn",
23967 (tilepro_adjust_insn_length): Likewise for param "insn".
23968 (next_insn_to_bundle): Likewise for return type and params
23970 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
23971 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
23973 (match_addli_pcrel): Likewise for param "insn".
23974 (replace_addli_pcrel): Likewise.
23975 (match_auli_pcrel): Likewise.
23976 (replace_auli_pcrel): Likewise.
23977 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
23979 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
23980 "queue", "next_queue", "prev".
23981 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
23982 (tilepro_final_prescan_insn): Likewise for param "insn".
23984 2014-08-25 David Malcolm <dmalcolm@redhat.com>
23986 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
23987 Strengthen param 1 from rtx to rtx_insn *.
23988 (tilegx_output_cbranch): Likewise.
23989 (tilegx_adjust_insn_length): Likewise.
23990 (tilegx_final_prescan_insn): Likewise for sole param.
23992 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
23994 (cbranch_predicted_p): Likewise for param "insn".
23995 (tilegx_output_simple_cbranch_with_opcode): Likewise.
23996 (tilegx_output_cbranch_with_opcode): Likewise.
23997 (tilegx_output_cbranch): Likewise.
23998 (frame_emit_load): Likewise for return type.
23999 (set_frame_related_p): Likewise for locals "seq", "insn".
24000 (emit_sp_adjust): Likewise for return type, and for local "insn".
24001 Introduce local "pat" for use in place of "insn" where the latter
24002 isn't an instruction.
24003 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
24004 from rtx to rtx_insn *.
24005 (tilegx_adjust_insn_length): Likewise for param "insn".
24006 (next_insn_to_bundle): Likewise for return type and params "r" and
24008 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
24010 (replace_insns): Likewise for params "old_insn", "new_insns".
24011 (replace_mov_pcrel_step1): Likewise for param "insn" and local
24013 (replace_mov_pcrel_step2): Likewise.
24014 (replace_mov_pcrel_step3): Likewise.
24015 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
24017 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24018 "queue", "next_queue", "prev".
24019 (tilegx_output_mi_thunk): Likewise for local "insn".
24020 (tilegx_final_prescan_insn): Likewise for param "insn".
24022 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24024 * config/spu/spu.c (frame_emit_store): Strengthen return type from
24026 (frame_emit_load): Likewise.
24027 (frame_emit_add_imm): Likewise, also for local "insn".
24028 (spu_expand_prologue): Likewise for local "insn".
24029 (struct spu_bb_info): Likewise for field "prop_jump".
24030 (emit_nop_for_insn): Likewise for param "insn" and local
24032 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
24034 (spu_emit_branch_hint): Likewise for params "before", "branch" and
24035 locals "hint", "insn".
24036 (get_branch_target): Likewise for param "branch".
24037 (insn_clobbers_hbr): Likewise for param "insn".
24038 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
24039 locals "insn", "before_4", "before_16".
24040 (insert_hbrp): Likewise for local "insn".
24041 (spu_machine_dependent_reorg): Likewise for locals "branch",
24042 "insn", "next", "bbend".
24043 (uses_ls_unit): Likewise for param "insn".
24044 (get_pipe): Likewise.
24045 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
24046 introducing a checked cast.
24047 (spu_sched_adjust_cost): Likewise for params "insn" and
24049 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
24050 (spu_sms_res_mii): Likewise.
24052 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24054 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
24055 from rtx to rtx_insn *.
24056 (output_cbranch): Likewise for param 6.
24057 (output_return): Likewise for param 1.
24058 (output_sibcall): Likewise.
24059 (output_v8plus_shift): Likewise.
24060 (output_v8plus_mult): Likewise.
24061 (output_v9branch): Likewise for param 7.
24062 (output_cbcond): Likewise for param 3.
24064 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
24066 (sparc_legitimize_pic_address): Likewise.
24067 (sparc_emit_call_insn): Likewise.
24068 (emit_save_or_restore_regs): Likewise.
24069 (emit_window_save): Likewise for return type and local "insn".
24070 (sparc_expand_prologue): Likewise for local "insn".
24071 (sparc_flat_expand_prologue): Likewise.
24072 (output_return): Likewise for param "insn".
24073 (output_sibcall): Likewise for param "insn" and local "delay".
24074 (output_ubranch): Likewise for param "insn".
24075 (output_cbranch): Likewise.
24076 (output_cbcond): Likewise.
24077 (output_v9branch): Likewise.
24078 (output_v8plus_shift): Likewise.
24079 (sparc_output_mi_thunk): Likewise for local "insn".
24080 (get_some_local_dynamic_name): Likewise.
24081 (output_v8plus_mult): Likewise for param "insn".
24083 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24085 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
24086 from rtx to rtx_insn *.
24087 (output_branchy_insn): Likewise for param 3.
24088 (output_far_jump): Likewise for param 1.
24089 (final_prescan_insn): Likewise.
24090 (sh_insn_length_adjustment): Likewise for sole param.
24092 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
24093 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
24095 (sh_emit_compare_and_set): Likewise for local "lab".
24096 (output_far_jump): Strengthen param "insn" and local "prev" from
24098 (output_branchy_insn): Likewise for param "insn" and local
24100 (output_ieee_ccmpeq): Likewise for param "insn".
24101 (struct label_ref_list_d): Strengthen field "label" from rtx to
24103 (pool_node): Likewise.
24104 (pool_window_label): Likewise for this global.
24105 (add_constant): Likewise for return type and locals "lab", "new_rtx".
24106 (dump_table): Strengthen params "start", "barrier" and local
24107 "scan" from rtx to rtx_insn *.
24108 (broken_move): Likewise for param "insn".
24109 (untangle_mova): Likewise for params "first_mova" and "new_mova".
24110 Strengthen param "first_mova" from rtx * to rtx_insn **.
24111 (mova_p): Likewise for param "insn".
24112 (fixup_mova): Likewise for param "mova".
24113 (find_barrier): Likewise for return type, params "mova" and
24114 "from", and locals "barrier_before_mova", "found_barrier",
24115 "good_barrier", "orig", "last_symoff", "next". Strengthen local
24116 "label" from rtx to rtx_code_label *.
24117 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
24119 (sh_reorg): Likewise for locals "link", "scan", "barrier".
24120 (split_branches): Likewise for param "first" and local "insn".
24121 (final_prescan_insn): Likewise for param "insn".
24122 (sequence_insn_p): Likewise for locals "prev", "next".
24123 (sh_insn_length_adjustment): Likewise for param "insn".
24124 (sh_can_redirect_branch): Likewise for local "insn".
24125 (find_r0_life_regions): Likewise for locals "end", "insn".
24126 (sh_output_mi_thunk): Likewise for local "insns".
24128 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24130 * config/score/score.c (score_output_mi_thunk): Strengthen local
24131 "insn" from rtx to rtx_insn *.
24132 (score_prologue): Likewise.
24134 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24136 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
24137 1 from rtx to rtx_insn *.
24138 (s390_emit_jump): Likewise for return type.
24139 (s390_emit_call): Likewise.
24140 (s390_load_got): Likewise.
24142 * config/s390/s390.c (last_scheduled_insn): Likewise for this
24144 (s390_match_ccmode): Likewise for param "insn".
24145 (s390_emit_jump): Likewise for return type.
24146 (s390_split_branches): Likewise for local "label".
24147 (struct constant): Strengthen field "label" from rtx to
24149 (struct constant_pool): Likewise for field "label". Strengthen
24150 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
24152 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
24154 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
24155 (s390_end_pool): Likewise.
24156 (s390_dump_pool): Likewise for local "insn".
24157 (s390_mainpool_start): Likewise.
24158 (s390_chunkify_start): Likewise.
24159 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
24160 with insns. Strengthen locals "label", "jump", "barrier", "next",
24161 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
24162 (s390_chunkify_finish): Strengthen local "insn" from rtx to
24164 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
24165 "jump", "label", "next_insn".
24166 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
24167 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
24169 (s390_load_got): Likewise for return type and local "insns".
24170 (s390_save_gprs_to_fprs): Likewise for local "insn".
24171 (s390_restore_gprs_from_fprs): Likewise.
24172 (pass_s390_early_mach::execute): Likewise.
24173 (s390_emit_prologue): Likewise for local "insns".
24174 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
24176 (s390_emit_call): Strengthen return type and local "insn" from
24178 (s390_emit_tpf_eh_return): Likewise for local "insn".
24179 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
24180 "next_insn", introducing locals "s_pat", "rpat" to allow this.
24181 (s390_fix_long_loop_prediction): Likewise for param "insn" and
24183 (s390_non_addr_reg_read_p): Likewise for param "insn".
24184 (find_cond_jump): Likewise for return type and param "insn".
24185 (s390_swap_cmp): Likewise for param "insn".
24186 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
24187 "prev_insn", "next_insn".
24188 (s390_reorg): Likewise for locals "insn", "target".
24189 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
24190 (s390_sched_variable_issue): For now, rename param "insn" to
24191 "uncast_insn", introducing a checked cast.
24192 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
24194 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
24195 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
24197 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24199 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
24200 param from rtx to rtx_insn *.
24201 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
24203 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24205 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
24206 4 from rtx to rtx_insn *.
24207 (rs6000_final_prescan_insn): Likewise for first param.
24208 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
24210 (rs6000_get_some_local_dynamic_name): Likewise.
24211 (output_cbranch): Likewise for param "insn".
24212 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
24213 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
24214 (rs6000_emit_allocate_stack): Likewise for local "insn".
24215 (load_cr_save): Likewise.
24216 (restore_saved_cr): Likewise.
24217 (restore_saved_lr): Likewise.
24218 (emit_cfa_restores): Likewise.
24219 (rs6000_output_function_epilogue): Likewise for locals "insn" and
24220 "deleted_debug_label".
24221 (rs6000_output_mi_thunk): Likewise for local "insn".
24222 (rs6000_final_prescan_insn): Likewise for param "insn".
24224 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24226 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
24227 Strengthen param "insn" from rtx to rtx_insn *.
24228 * config/picochip/picochip.c (picochip_current_prescan_insn):
24229 Likewise for this variable.
24230 (picochip_final_prescan_insn): Likewise for param "insn".
24232 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24234 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
24235 from rtx to rtx_insn *.
24236 (pa_output_indirect_call): Likewise.
24237 (pa_adjust_insn_length): Likewise.
24238 (pa_attr_length_millicode_call): Likewise.
24239 (pa_attr_length_call): Likewise.
24240 (pa_attr_length_indirect_call): Likewise.
24242 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
24244 (pa_attr_length_millicode_call): Likewise.
24245 (pa_attr_length_call): Likewise.
24246 (pa_output_call): Likewise.
24247 (pa_attr_length_indirect_call): Likewise.
24248 (pa_output_indirect_call): Likewise.
24250 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24252 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
24253 Strengthen first param from rtx to rtx_insn *.
24254 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
24257 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24259 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
24260 type from rtx to rtx_insn *.
24261 (mips_expand_call): Likewise.
24262 (mips_adjust_insn_length): Likewise for first param.
24263 (mips_output_conditional_branch): Likewise.
24264 (mips_output_order_conditional_branch): Likewise.
24265 (mips_final_prescan_insn): Likewise.
24267 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
24268 rtx_insn * for the SEQUENCE case.
24269 (SEQ_END): Likewise.
24270 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
24271 (mips_emit_call_insn): Likewise, also for local "insn".
24272 (mips16_gp_pseudo_reg): Likewise for local "scan".
24273 (mips16_build_call_stub): Likewise for return type and for local
24274 "insn". Introduce a new local "pattern" so that "insn" can indeed
24276 (mips_expand_call): Strengthen return type and local "insn" from
24278 (mips_block_move_loop): Strengthen local "label" from rtx to
24280 (mips_expand_synci_loop): Likewise for locals "label",
24282 (mips_set_frame_expr): Strengthen local "insn" from rtx to
24284 (mips16e_collect_argument_saves): Likewise for locals "insn",
24286 (mips_find_gp_ref): Likewise for param of callback for "pred"
24287 param, and for local "insn".
24288 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
24289 (mips_insn_has_flexible_gp_ref_p): Likewise.
24290 (mips_epilogue_emit_cfa_restores): Likewise for return type and
24292 (mips_epilogue_set_cfa): Likewise for local "insn".
24293 (mips_expand_epilogue): Likewise.
24294 (mips_adjust_insn_length): Likewise for param "insn".
24295 (mips_output_conditional_branch): Likewise.
24296 (mips_output_order_conditional_branch): Likewise.
24297 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
24298 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
24299 "falu2_turn_enabled_insn".
24300 (mips_builtin_branch_and_move): Strengthen locals "true_label",
24301 "done_label" from rtx to rtx_code_label *.
24302 (struct mips16_constant): Likewise for field "label".
24303 (mips16_add_constant): Likewise for return type.
24304 (mips16_emit_constants_1): Strengthen return type and param "insn"
24305 from rtx to rtx_insn *.
24306 (mips16_emit_constants): Likewise for param "insn".
24307 (mips16_insn_length): Likewise.
24308 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
24309 to rtx_code_label *.
24310 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
24311 from rtx to rtx_insn *.
24312 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
24313 "jump". Strengthen local "label" from rtx to rtx_code_label *.
24314 (r10k_simplify_address): Strengthen param "insn" and local
24315 "def_insn" from rtx to rtx_insn *.
24316 (r10k_safe_address_p): Strengthen param "insn" from rtx to
24318 (r10k_needs_protection_p_1): Update target type of cast of data
24319 from to rtx to rtx_insn *.
24320 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
24321 rtx * to rtx_insn **.
24322 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
24324 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
24325 (mips_call_expr_from_insn): Likewise for param "insn".
24326 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
24327 (mips_find_pic_call_symbol): Likewise for param "insn".
24328 (mips_annotate_pic_calls): Likewise for local "insn".
24329 (mips_sim_insn): Likewise for this variable.
24330 (struct mips_sim): Likewise for field "insn" within elements of
24332 (mips_sim_wait_reg): Likewise for param "insn".
24333 (mips_sim_wait_regs): Likewise.
24334 (mips_sim_wait_units): Likewise.
24335 (mips_sim_wait_insn): Likewise.
24336 (mips_sim_issue_insn): Likewise.
24337 (mips_sim_finish_insn): Likewise.
24338 (mips_seq_time): Likewise for param "seq" and local "insn".
24339 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
24340 locals "first", "second".
24341 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
24342 "last", "last2", "next".
24343 (mips_avoid_hazard): Likewise for params "after", "insn".
24344 (mips_reorg_process_insns): Likewise for locals "insn",
24345 "last_insn", "subinsn", "next_insn".
24346 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
24347 (mips16_split_long_branches): Likewise for locals "insn" "jump",
24349 (mips_output_mi_thunk): Likewise for local "insn".
24350 (mips_final_prescan_insn): Likewise for param "insn".
24352 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24354 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
24355 Strengthen return type and local "insns" from rtx to rtx_insn *.
24356 (microblaze_legitimize_tls_address): Likewise for local "insns".
24357 (microblaze_block_move_loop): Strengthen local "label" from rtx
24358 to rtx_code_label *.
24359 (microblaze_expand_prologue): Strengthen two locals named "insn"
24360 from rtx to rtx_insn *.
24361 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
24362 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
24363 "insn". Strengthen locals "div_label", "div_end_label" from rtx
24364 to rtx_code_label *.
24366 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24368 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
24369 param from rtx to rtx_insn *.
24370 (mep_reuse_lo): Likewise for third param.
24371 (mep_use_post_modify_p): Likewise for first param.
24372 (mep_core_address_length): Likewise.
24373 (mep_cop_address_length): Likewise.
24374 (mep_final_prescan_insn): Likewise.
24375 (mep_store_data_bypass_p): Likewise for both params.
24376 (mep_mul_hilo_bypass_p): Likewise.
24377 (mep_ipipe_ldc_p): Likewise for param.
24379 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
24380 (mep_rewrite_mult): Likewise.
24381 (mep_rewrite_mulsi3): Likewise.
24382 (mep_rewrite_maddsi3): Likewise.
24383 (mep_reuse_lo_p_1): Likewise.
24384 (mep_reuse_lo_p): Likewise.
24385 (mep_frame_expr): Likewise.
24386 (mep_make_parallel): Likewise for both params.
24387 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
24389 (mep_use_post_modify_p): Likewise for param "insn".
24390 (mep_core_address_length): Likewise.
24391 (mep_cop_address_length): Likewise.
24392 (mep_reg_set_in_function): Likewise for local "insn".
24393 (mep_asm_without_operands_p): Likewise.
24394 (F): Likewise for return type and param "x".
24395 (add_constant): Likewise for local "insn".
24396 (maybe_dead_move): Likewise for return type and local "insn".
24397 (mep_expand_prologue): Likewise for local "insn".
24398 (mep_final_prescan_insn): Likewise for param "insn".
24399 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
24400 "next", "follow", "x".
24401 (mep_insert_repeat_label_last): Likewise for return type, param
24402 "last_insn", and locals "next", "prev". Strengthen param "label"
24403 from rtx to rtx_code_label *.
24404 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
24406 (struct mep_doloop_end): Likewise for fields "insn" and
24408 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
24409 Strengthen local "repeat_label" from rtx to rtx_code_label *.
24410 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
24412 (mep_invert_branch): Likewise for params "insn" and "after".
24413 (mep_reorg_erepeat): Likewise for param "insns" and locals
24414 "insn", "prev", "new_last", "barrier", "user". Strengthen local
24415 "l" from rtx to rtx_code_label *.
24416 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
24417 from rtx to rtx_insn *.
24418 (mep_reorg_addcombine): Likewise for param "insns" and locals
24420 (add_sp_insn_p): Likewise for param "insn".
24421 (mep_reorg_noframe): Likewise for param "insns" and locals
24422 "start_frame_insn", "end_frame_insn", "next".
24423 (mep_reorg): Likewise for local "insns".
24424 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
24426 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
24427 (mep_mul_hilo_bypass_p): Likewise.
24428 (mep_ipipe_ldc_p): Likewise for param "insn".
24429 (mep_make_bundle): Likewise for return type, param "cop" and local
24430 "insn", splitting out the latter into a new local "seq" for when it
24431 is a SEQUENCE rather than an insn.
24432 (core_insn_p): Likewise for param "insn".
24433 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
24434 "last", "first", "note", "prev", "core_insn".
24436 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24438 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
24440 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
24441 (m68k_final_prescan_insn): Likewise for first param.
24443 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
24444 (m68k_set_frame_related): Likewise for param "insn".
24445 (output_btst): Likewise for param "insn".
24446 (m68k_final_prescan_insn): Likewise.
24447 (m68k_move_to_reg): Likewise for local "insn".
24448 (m68k_call_tls_get_addr): Likewise for local "insns".
24449 (m68k_call_m68k_read_tp): Likewise.
24450 (strict_low_part_peephole_ok): Likewise for param "first_insn".
24451 (m68k_output_mi_thunk): Likewise for local "insn".
24453 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24455 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
24456 first param from rtx to rtx_insn *.
24457 (iq2000_adjust_insn_length): Likewise.
24458 (iq2000_output_conditional_branch): Likewise.
24459 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
24460 "insn" and local "nop_insn".
24461 (iq2000_annotate_frame_insn): Likewise for param "insn".
24462 (iq2000_expand_prologue): Likewise for both locals "insn".
24463 (iq2000_adjust_insn_length): Likewise for param "insn".
24464 (iq2000_output_conditional_branch): Likewise.
24466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24468 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
24469 "insns" from rtx to rtx_insn *.
24470 (ia64_emit_cond_move): Likewise for locals "insn", "first".
24471 (struct spill_fill_data): Likewise for field "init_after" and for
24472 elements of array field "prev_insn".
24473 (spill_restore_mem): Likewise for locals "insn", "first".
24474 (do_spill): Likewise for local "insn".
24475 (do_restore): Likewise.
24476 (ia64_expand_prologue): Likewise.
24477 (ia64_expand_epilogue): Likewise.
24478 (emit_insn_group_barriers): Likewise for locals "insn",
24480 (emit_all_insn_group_barriers): Likewise for locals "insn",
24482 (dfa_stop_insn): Likewise for this global.
24483 (dfa_pre_cycle_insn): Likewise.
24484 (ia64_nop): Likewise.
24485 (final_emit_insn_group_barriers): Likewise for locals "insn",
24487 (emit_predicate_relation_info): Likewise for locals "head", "n",
24489 (ia64_reorg): Likewise for local "insn".
24490 (ia64_output_mi_thunk): Likewise.
24491 (expand_vec_perm_interleave_2): Likewise for local "seq".
24493 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24495 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
24496 param 1 "insn" from rtx to rtx_insn *.
24497 (ix86_use_lea_for_mov): Likewise.
24498 (ix86_avoid_lea_for_addr): Likewise.
24499 (ix86_split_lea_for_addr): Likewise.
24500 (ix86_lea_for_add_ok): Likewise.
24501 (ix86_output_call_insn): Likewise.
24503 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
24504 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
24505 (ix86_output_function_epilogue): Likewise for locals "insn",
24506 "deleted_debug_label".
24507 (legitimize_tls_address): Likewise for local "insn".
24508 (get_some_local_dynamic_name): Likewise.
24509 (increase_distance): Likewise for params "prev", "next".
24510 (distance_non_agu_define_in_bb): Likewise for params "insn",
24511 "start" and locals "prev", "next".
24512 (distance_non_agu_define): Likewise for param "insn".
24513 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
24514 locals "next", "prev".
24515 (distance_agu_use): Likewise for param "insn".
24516 (ix86_lea_outperforms): Likewise.
24517 (ix86_ok_to_clobber_flags): Likewise.
24518 (ix86_avoid_lea_for_add): Likewise.
24519 (ix86_use_lea_for_mov): Likewise.
24520 (ix86_avoid_lea_for_addr): Likewise.
24521 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
24522 (ix86_split_lea_for_addr): Likewise for param "insn".
24523 (ix86_lea_for_add_ok): Likewise for param "insn".
24524 (ix86_expand_carry_flag_compare): Likewise for local
24526 (ix86_expand_int_movcc): Likewise.
24527 (ix86_output_call_insn): Likewise for param "insn".
24528 (ix86_output_call_insn): Likewise for local "i".
24529 (x86_output_mi_thunk): Introduce local "insn", using it in place
24530 of "tmp" when dealing with insns.
24531 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
24533 (ix86_pad_returns): Likewise for locals "ret", "prev".
24534 (ix86_count_insn_bb): Likewise for local "insn".
24535 (ix86_pad_short_function): Likewise for locals "ret", "insn".
24536 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
24537 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
24538 (expand_vec_perm_interleave2): Likewise for local "seq".
24539 (expand_vec_perm_vperm2f128_vblend): Likewise.
24540 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
24541 call to for_each_rtx with for_each_rtx_in_insn.
24543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24545 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
24546 "label" from rtx to rtx_code_label *.
24547 (ix86_expand_prologue): Likewise.
24548 (ix86_expand_split_stack_prologue): Likewise for locals "label",
24550 (ix86_split_idivmod): Likewise for locals "end_label" and
24552 (ix86_expand_branch): Likewise for local "label2".
24553 (ix86_expand_aligntest): Likewise for return type and local "label".
24554 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
24556 (expand_movmem_epilogue): Likewise for the various locals named
24558 (expand_setmem_epilogue): Likewise.
24559 (expand_small_movmem_or_setmem): Likewise for local "label".
24560 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24561 Strengthen param "done_label" from rtx * to rtx_code_label **.
24562 Strengthen locals "loop_label" and "label" from rtx to
24564 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
24565 Likewise for locals "loop_label", "label".
24566 (ix86_expand_set_or_movmem): Likewise for locals "label",
24567 "jump_around_label", "hot_label".
24568 (ix86_expand_strlensi_unroll_1): Likewise for locals
24569 "align_2_label", align_3_label", "align_4_label", "end_0_label",
24571 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
24572 (void ix86_emit_i387_log1p): Likewise for locals "label1",
24573 "label2", "jump_label".
24574 (ix86_expand_sse_compare_and_jump): Likewise for return type and
24576 (ix86_expand_lfloorceil): Likewise for local "label".
24577 (ix86_expand_rint): Likewise.
24578 (ix86_expand_floorceildf_32): Likewise.
24579 (ix86_expand_floorceil): Likewise.
24580 (ix86_expand_rounddf_32): Likewise.
24581 (ix86_expand_trunc): Likewise.
24582 (ix86_expand_truncdf_32): Likewise.
24583 (ix86_expand_round): Likewise.
24585 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24587 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
24588 first param from rtx to rtx_insn *.
24589 (h8300_insn_length_from_table): Likewise.
24590 * config/h8300/h8300.c (F): Likewise for return type and param
24592 (Fpa): Add a checked cast to rtx_insn *.
24593 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
24595 (final_prescan_insn): Likewise for param "insn".
24596 (h8300_binary_length): Likewise.
24597 (h8300_insn_length_from_table): Likewise.
24599 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24601 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
24602 Strengthen first param "insn" from rtx to rtx_insn *.
24604 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
24606 (frame_insn): Likewise for return type. Introduce local "insn"
24607 for use in place of local "x" for use as an rtx_insn *.
24608 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
24609 (epiphany_expand_prologue): Likewise for local "insn".
24610 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
24611 * config/epiphany/resolve-sw-modes.c
24612 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
24615 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24617 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
24618 param from rtx to rtx_insn *.
24619 (c6x_final_prescan_insn): Likewise for first param.
24621 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
24622 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
24623 (c6x_expand_compare): Strengthen local "insns" from rtx to
24625 (c6x_get_unit_specifier): Likewise for param "insn".
24626 (c6x_print_unit_specifier_field): Likewise.
24627 (c6x_final_prescan_insn): Likewise.
24628 (emit_add_sp_const): Likewise for local "insn".
24629 (c6x_expand_prologue): Likewise.
24631 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24633 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
24634 param 1 from rtx to rtx_insn *.
24635 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
24636 the various locals named "insn".
24637 (expand_epilogue_reg_restore): Likewise.
24638 (frame_related_constant_load): Likewise.
24639 (add_to_reg): Likewise.
24640 (emit_link_insn): Likewise.
24641 (do_link): Likewise.
24642 (expand_interrupt_handler_prologue): Likewise.
24643 (branch_dest): Likewise for param "branch".
24644 (asm_conditional_branch): Likewise for param "insn".
24645 (gen_one_bundle): Likewise for elements of param "slot" and local
24647 (bfin_gen_bundles): Likewise for locals "insn", "next" and
24648 elements of local "slot".
24649 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
24650 "queue", "next_queue", "prev".
24651 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
24652 (add_sched_insns_for_speculation): Likewise for local "insn".
24654 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24656 * config/avr/avr-protos.h (output_movqi): Strengthen first param
24657 from rtx to rtx_insn *.
24658 (output_movhi): Likewise.
24659 (output_movsisf): Likewise.
24660 (avr_out_tstsi): Likewise.
24661 (avr_out_tsthi): Likewise.
24662 (avr_out_tstpsi): Likewise.
24663 (avr_out_compare): Likewise.
24664 (avr_out_compare64): Likewise.
24665 (avr_out_movpsi): Likewise.
24666 (ashlqi3_out): Likewise.
24667 (ashlhi3_out): Likewise.
24668 (ashlsi3_out): Likewise.
24669 (ashrqi3_out): Likewise.
24670 (ashrhi3_out): Likewise.
24671 (ashrsi3_out): Likewise.
24672 (lshrqi3_out): Likewise.
24673 (lshrhi3_out): Likewise.
24674 (lshrsi3_out): Likewise.
24675 (avr_out_ashlpsi3): Likewise.
24676 (avr_out_ashrpsi3): Likewise.
24677 (avr_out_lshrpsi3): Likewise.
24678 (avr_out_fract): Likewise.
24679 (avr_out_sbxx_branch): Likewise.
24680 (avr_out_round): Likewise.
24681 (avr_out_xload): Likewise.
24682 (avr_out_movmem): Likewise.
24683 (adjust_insn_length): Likewise.
24684 (avr_out_lpm): Likewise.
24685 (reg_unused_after): Likewise.
24686 (_reg_unused_after): Likewise.
24687 (avr_jump_mode): Likewise for second param.
24688 (jump_over_one_insn): Likewise for first param.
24689 (avr_final_prescan_insn): Likewise.
24690 (out_shift_with_cnt): Likewise for second param.
24692 * config/avr/avr.c (get_sequence_length): Likewise for param
24693 "insns" and local "insn".
24694 (emit_push_byte): Likewise for local "insn".
24695 (emit_push_sfr): Likewise.
24696 (avr_prologue_setup_frame): Likewise for locals "insn",
24697 "fp_plus_insns", "sp_plus_insns".
24698 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
24700 (avr_jump_mode): Likewise for param "insn".
24701 (avr_final_prescan_insn): Likewise.
24702 (avr_find_unused_d_reg): Likewise.
24703 (avr_out_lpm_no_lpmx): Likewise.
24704 (avr_out_lpm): Likewise.
24705 (avr_out_xload): Likewise.
24706 (output_movqi): Likewise.
24707 (output_movhi): Likewise.
24708 (out_movqi_r_mr): Likewise.
24709 (out_movhi_r_mr): Likewise.
24710 (out_movsi_r_mr): Likewise.
24711 (out_movsi_mr_r): Likewise.
24712 (output_movsisf): Likewise.
24713 (avr_out_load_psi): Likewise.
24714 (avr_out_store_psi): Likewise.
24715 (avr_out_movpsi): Likewise.
24716 (out_movqi_mr_r): Likewise.
24717 (avr_out_movhi_mr_r_xmega): Likewise.
24718 (out_movhi_mr_r): Likewise.
24719 (compare_condition): Likewise for param "insn" and local "next".
24720 (compare_sign_p): Likewise for param "insn".
24721 (compare_diff_p): Likewise.
24722 (compare_eq_p): Likewise.
24723 (avr_out_compare): Likewise.
24724 (avr_out_compare64): Likewise.
24725 (avr_out_tsthi): Likewise.
24726 (avr_out_tstpsi): Likewise.
24727 (avr_out_tstsi): Likewise.
24728 (out_shift_with_cnt): Likewise.
24729 (ashlqi3_out): Likewise.
24730 (ashlhi3_out): Likewise.
24731 (avr_out_ashlpsi3): Likewise.
24732 (ashlsi3_out): Likewise.
24733 (ashrqi3_out): Likewise.
24734 (ashrhi3_out): Likewise.
24735 (avr_out_ashrpsi3): Likewise.
24736 (ashrsi3_out): Likewise.
24737 (lshrqi3_out): Likewise.
24738 (lshrhi3_out): Likewise.
24739 (avr_out_lshrpsi3): Likewise.
24740 (lshrsi3_out): Likewise.
24741 (avr_out_fract): Likewise.
24742 (avr_out_round): Likewise.
24743 (avr_adjust_insn_length): Likewise.
24744 (reg_unused_after): Likewise.
24745 (_reg_unused_after): Likewise.
24746 (avr_compare_pattern): Likewise.
24747 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
24748 and locals "branch1", "branch2", "insn2", "jump".
24749 (avr_reorg): Likewise for local "insn".
24750 (avr_2word_insn_p): Likewise for param "insn".
24751 (jump_over_one_insn_p): Likewise.
24752 (avr_out_sbxx_branch): Likewise.
24753 (avr_out_movmem): Likewise.
24755 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24757 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
24758 param from rtx to rtx_insn *.
24759 (thumb1_final_prescan_insn): Likewise.
24760 (thumb2_final_prescan_insn): Likewise.
24762 * config/arm/arm.c (emit_set_insn): Strengthen return type from
24764 (struct minipool_node): Likewise for field "insn".
24765 (dump_minipool): Likewise for param "scan".
24766 (create_fix_barrier): Likewise for local "from". Strengthen local
24767 "label" from rtx to rtx_code_label *.
24768 (push_minipool_barrier): Strengthen param "insn" from rtx to
24770 (push_minipool_fix): Likewise.
24771 (note_invalid_constants): Likewise.
24772 (thumb2_reorg): Likewise for local "insn".
24773 (arm_reorg): Likewise.
24774 (thumb2_final_prescan_insn): Likewise for param
24775 "insn" and local "first_insn".
24776 (arm_final_prescan_insn): Likewise for param "insn" and locals
24777 "start_insn", "this_insn".
24778 (arm_debugger_arg_offset): Likewise for param "insn".
24779 (thumb1_emit_multi_reg_push): Likewise for return type and local
24781 (thumb1_final_prescan_insn): Likewise for param "insn".
24782 (thumb_far_jump_used_p): Likewise for local "insn".
24783 (thumb1_expand_prologue): Likewise.
24784 (arm_expand_epilogue_apcs_frame): Likewise.
24785 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
24786 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
24787 from rtx to rtx_code_label *.
24788 (arm_split_atomic_op): Likewise for local "label".
24789 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
24791 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24793 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
24794 first param from rtx to rtx_insn *.
24795 (arc_verify_short): Likewise.
24796 (arc_short_long): Likewise.
24797 (arc_need_delay): Likewise.
24799 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
24801 (arc_ccfsm_advance): Likewise for param "insn" and locals
24802 "start_insn", "this_insn".
24803 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
24804 (arc_ccfsm_post_advance): Likewise for param "insn".
24805 (arc_next_active_insn): Likewise for return type and param "insn".
24806 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
24807 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
24808 (output_short_suffix): Likewise for local "insn".
24809 (arc_final_prescan_insn): Likewise for param "insn". Remove
24810 now-redundant checked cast.
24811 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
24812 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
24813 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
24814 for use where lc_set became an insn.
24815 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
24817 (arc_get_insn_variants): Likewise for local "prev".
24818 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
24820 (arc_predicate_delay_insns): Likewise for local "insn".
24821 (arc_pad_return): Likewise for local "prev". For now, add a
24822 checked cast when extracting the insn from "final_sequence".
24823 (arc_short_long): Likewise for param "insn".
24824 (arc_need_delay): Likewise for param "insn" and local "next".
24825 (arc_label_align): Likewise for locals "prev", "next".
24827 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24829 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
24830 "insn" from rtx to rtx_insn *.
24831 (alpha_gp_save_rtx): Likewise for local "seq".
24832 (alpha_instantiate_decls): Likewise for local "top".
24833 (get_some_local_dynamic_name): Likewise for local "insn".
24834 (alpha_does_function_need_gp): Likewise.
24835 (set_frame_related_p): Likewise for return type and for locals
24837 (emit_frame_store_1): Likewise for local "insn".
24838 (alpha_expand_prologue): Likewise for locals "insn", "seq".
24839 (alpha_end_function): Likewise for local "insn".
24840 (alpha_output_mi_thunk_osf): Likewise.
24841 (alphaev4_insn_pipe): Likewise for param "insn".
24842 (alphaev5_insn_pipe): Likewise.
24843 (alphaev4_next_group): Likewise for return type and param 1
24845 (alphaev5_next_group): Likewise.
24846 (alpha_align_insns_1): Likewise for return type and param 1 of
24847 callback param "next_group", and for locals "i", "next", "prev",
24848 "where", "where2", "insn".
24850 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
24852 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
24853 rather than modifying the stmt.
24855 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24857 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
24858 cgraph_state conversion.
24860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
24862 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24863 Strengthen local "insns" from rtx to rtx_insn *.
24864 (aarch64_set_frame_expr): Likewise for local "insn".
24865 (aarch64_save_or_restore_fprs): Likewise.
24866 (aarch64_save_or_restore_callee_save_registers): Likewise.
24867 (aarch64_expand_prologue): Likewise.
24868 (aarch64_expand_epilogue): Likewise.
24869 (aarch64_output_mi_thunk): Likewise.
24870 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
24871 "label2" from rtx to rtx_code_label *.
24872 (aarch64_split_atomic_op): Likewise for local "label".
24874 2014-08-25 Martin Liska <mliska@suse.cz>
24876 * cgraph.h (symtab_node):
24877 (bool needed_p (void)): created from decide_is_symbol_needed
24878 (bool referred_to_p (void)): created from referred_to_p
24879 (static cgraph_node *get_for_asmname (tree asmname)):
24880 created from symtab_node_for_asm
24881 * cgraph.h (cgraph_node):
24882 (void assemble_thunks_and_aliases (void)):
24883 created from assemble_thunks_and_aliases
24884 (void expand (void)): created from expand_function
24885 (static void finalize_function (tree, bool)):
24886 created from cgraph_finalize_function
24887 (static cgraph_local_info *local_info (tree decl)):
24888 created from cgraph_local_info
24889 (static cgraph_global_info *global_info (tree)):
24890 created from cgraph_global_info
24891 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
24892 * cgraph.h (varpool_node):
24893 (static void add (tree decl): created from varpool_add_new_variable
24894 * cgraph.h (cgraph_edge):
24895 void remove (void);
24896 (void remove_caller (void)): created from cgraph_edge_remove_caller
24897 (void remove_callee (void)): created from cgraph_edge_remove_callee
24898 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
24899 created from cgraph_set_call_stmt
24900 (void redirect_callee (cgraph_node *n)): created from
24901 cgraph_redirect_edge_callee
24902 (cgraph_edge *make_direct (cgraph_node *callee)): created from
24903 cgraph_make_edge_direct
24904 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
24905 gimple redirect_call_stmt_to_callee (void)): created from
24906 cgraph_turn_edge_to_speculative
24907 (void speculative_call_info (cgraph_edge *&direct,
24908 cgraph_edge *&indirect, ipa_ref *&reference)): created from
24909 cgraph_speculative_call_info
24910 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt,
24911 unsigned stmt_uid, gcov_type count_scale,
24912 int freq_scale, bool update_original)): created from cgraph_clone_edge
24913 (cgraph_edge *resolve_speculation (tree callee_decl)):
24914 created from cgraph_resolve_speculation
24915 (bool cannot_lead_to_return_p (void)): created from
24916 cannot_lead_to_return_p
24917 (bool recursive_p (void)): created from cgraph_edge_recursive_p
24918 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
24919 (static unsigned int rebuild_edges (void)): created from
24920 rebuild_cgraph_edges
24921 (static void rebuild_references (void)): created from
24922 cgraph_rebuild_references
24923 * cgraph.h (symbol_table):
24924 (create_reference): renamed from add_reference
24925 (maybe_create_reference): renamed from maybe_add_reference
24926 (void register_symbol (symtab_node *node)): new function
24927 (void clear_asm_symbols (void)): new function
24928 (void unregister (symtab_node *node)): new function
24929 (void release_symbol (cgraph_node *node, int uid)): new function
24930 (cgraph_node * allocate_cgraph_symbol (void)): new function
24931 (void initialize (void)): created from cgraph_init
24932 (symtab_node *first_symbol (void)):new function
24933 (asm_node *first_asm_symbol (void)):new function
24934 (symtab_node *first_defined_symbol (void)):new function
24935 (varpool_node *first_variable (void)):new function
24936 (varpool_node *next_variable (varpool_node *node)):new function
24937 (varpool_node *first_static_initializer (void)):new function
24938 (varpool_node *next_static_initializer (varpool_node *node)):new
24940 (varpool_node *first_defined_variable (void)):new function
24941 (varpool_node *next_defined_variable (varpool_node *node)):new function
24942 (cgraph_node *first_defined_function (void)):new function
24943 (cgraph_node *next_defined_function (cgraph_node *node)):new function
24944 (cgraph_node *first_function (void)):new function
24945 (cgraph_node *next_function (cgraph_node *node)):new function
24946 (cgraph_node *first_function_with_gimple_body (void)):new function
24947 (asm_node *finalize_toplevel_asm (tree asm_str)): created from
24949 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
24950 created from symtab_remove_unreachable_nodes
24951 (void remove_unreferenced_decls (void)): created from
24952 varpool_remove_unreferenced_decls
24953 (void process_new_functions (void)): created from
24954 cgraph_process_new_functions
24955 (void process_same_body_aliases (void)): created from
24956 cgraph_process_same_body_aliases
24957 (bool output_variables (void)): created from
24958 varpool_node::output_variables
24959 (void output_asm_statements (void)): created from output_asm_statements
24960 (void finalize_compilation_unit (void)): created from
24961 finalize_compilation_unit
24962 (void compile (void)): created from compile
24963 (void output_weakrefs (void)): created from output_weakrefs
24964 (cgraph_node *create_empty (void)): created from
24965 cgraph_node::create_empty
24966 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee,
24967 gimple call_stmt, gcov_type count, int freq,
24968 bool indir_unknown_callee)): created from cgraph_node::create_edge
24969 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
24970 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
24971 created from cgraph_next_function_with_gimple_body
24972 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
24973 created from cgraph_remove_edge_removal_hook
24974 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook,
24975 void *)): created from cgraph_add_node_removal_hook
24976 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
24977 created from cgraph_remove_node_removal_hook
24978 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook,
24979 void *)): created from varpool_add_node_removal_hook
24980 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
24981 created from varpool_remove_node_removal_hook
24982 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook,
24983 void *)): created from cgraph_add_function_insertion_hook
24984 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
24985 created from cgraph_remove_function_insertion_hook
24986 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook,
24987 void *)): created from varpool_add_variable_insertion_hook
24988 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
24989 created from varpool_remove_variable_insertion_hook
24990 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook,
24991 void *)): created from cgraph_add_edge_duplication_hook
24992 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
24993 created from cgraph_remove_edge_duplication_hook
24994 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook,
24995 void *)): created from cgraph_add_node_duplication_hook
24996 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
24997 created from cgraph_remove_node_duplication_hook
24998 (void call_edge_removal_hooks (cgraph_edge *e)):
24999 created from cgraph_call_edge_removal_hooks
25000 (void call_cgraph_insertion_hooks (cgraph_node *node)):
25001 created from call_function_insertion_hooks
25002 (void call_cgraph_removal_hooks (cgraph_node *node)):
25003 created from cgraph_call_node_removal_hooks
25004 (void call_cgraph_duplication_hooks (cgraph_node *node,
25005 cgraph_node *node2)): created from cgraph_node::call_duplication_hooks
25006 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
25007 created from cgraph_call_edge_duplication_hooks
25008 (void call_varpool_removal_hooks (varpool_node *node)):
25009 created from varpool_call_node_removal_hooks
25010 (void call_varpool_insertion_hooks (varpool_node *node)):
25011 created from varpool_call_variable_insertion_hooks
25012 (void insert_to_assembler_name_hash (symtab_node *node,
25013 bool with_clones)): created from insert_to_assembler_name_hash
25014 (void unlink_from_assembler_name_hash (symtab_node *node,
25015 bool with_clones)): created from unlink_from_assembler_name_hash
25016 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
25017 created from symtab_prevail_in_asm_name_hash
25018 (void symtab_initialize_asm_name_hash (void)):
25019 created from symtab_initialize_asm_name_hash
25020 (void change_decl_assembler_name (tree decl, tree name)):
25021 created from change_decl_assembler_name
25022 (void materialize_all_clones (void)): created from
25023 cgraph_materialize_all_clones
25024 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
25025 created from decl_assembler_name_hash
25026 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
25027 created from decl_assembler_name_equal
25028 (static hashval_t hash_node_by_assembler_name (const void *p)):
25029 created from hash_node_by_assembler_name
25030 (static int eq_assembler_name (const void *p1, const void *p2)):
25031 created from eq_assembler_name
25033 2014-08-25 Marek Polacek <polacek@redhat.com>
25035 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
25037 2014-08-25 Petr Murzin <petr.murzin@intel.com>
25039 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
25040 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
25041 SWI1248_AVX512BW mode iterator.
25043 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
25046 * config/sh/predicates.md (general_extend_operand): Disable
25047 TRUNCATE before reload completes.
25049 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
25051 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
25053 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
25056 * config/sh/sh.opt (musermode): Allow negative form.
25057 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
25058 targets that don't support it.
25059 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
25060 Document -mno-usermode option.
25062 2014-08-24 Kito Cheng <kito@0xlab.org>
25064 * system.h (CALLER_SAVE_PROFITABLE): Poison.
25065 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
25066 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
25067 * doc/tm.texi: Regenerate.
25069 2014-08-24 Kito Cheng <kito@0xlab.org>
25071 * ira.c: Fix typo in comment.
25073 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
25075 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
25076 Deprecate c++1y. Change language to reflect greater confidence in C++14.
25078 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
25081 * config/pa/pa.c (pa_output_function_epilogue): Don't set
25082 last_address when the current function is a thunk.
25083 (pa_asm_output_mi_thunk): When we don't have named sections or they
25084 are not being used, check that thunk can reach the stub table with a
25087 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25089 * web.c (union_match_dups): Strengthen param "insn" from rtx to
25091 (pass_web::execute): Likewise for local "insn".
25093 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25095 * var-tracking.c (struct micro_operation_def): Strengthen field
25096 "insn" from rtx to rtx_insn *.
25097 (struct emit_note_data_def): Likewise.
25098 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
25099 (vt_stack_adjustments): Likewise for local "insn".
25100 (adjust_insn): Likewise for param "insn".
25101 (val_store): Likewise.
25102 (val_resolve): Likewise.
25103 (struct count_use_info): Likewise for field "insn".
25104 (log_op_type): Likewise for param "insn".
25105 (reverse_op): Likewise.
25106 (prepare_call_arguments): Likewise.
25107 (add_with_sets): The initial param takes an insn, but we can't
25108 yet strengthen it from rtx to rtx_insn * since it's used as a
25109 cselib_record_sets_hook callback. For now rename initial param
25110 from "insn" to "uncast_insn", and introduce a local "insn" of
25111 the stronger rtx_insn * type, with a checked cast.
25112 (compute_bb_dataflow): Strengthen local "insn" from rtx to
25114 (emit_note_insn_var_location): Likewise.
25115 (emit_notes_for_changes): Likewise.
25116 (emit_notes_for_differences): Likewise.
25117 (next_non_note_insn_var_location): Likewise for return type and
25119 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
25120 (vt_initialize): Likewise for local "insn".
25121 (delete_debug_insns): Likewise for locals "insn" and "next".
25123 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25125 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
25127 (mark_constant_pool): Likewise for local "insn".
25129 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25131 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
25133 (dead_debug_promote_uses): Likewise.
25134 (dead_debug_insert_temp): Likewise.
25136 2014-08-23 David Malcolm <dmalcolm@redhat.com>
25138 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
25139 from const_rtx to const rtx_insn *.
25140 (store_killed_after): Likewise. Strengthen locals "last", "act"
25141 from rtx to rtx_insn *.
25142 (store_killed_before): Strengthen param "insn" from const_rtx to
25143 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
25144 (find_moveable_store): Strengthen param "insn" from rtx to
25146 (compute_store_table): Likewise for local "insn".
25147 (insert_insn_start_basic_block): Likewise for param "insn" and
25148 locals "prev", "before", "insn".
25149 (insert_store): For now, add a checked cast to rtx_insn * on the
25150 result of gen_move_insn.
25151 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
25153 (replace_store_insn): Likewise. For now, add a checked cast to
25154 rtx_insn * on the result of gen_move_insn.
25156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25158 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
25160 (expand_sjlj_dispatch_table): Likewise.
25162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25164 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
25165 "insn" from rtx to rtx_insn *.
25167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25169 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
25170 "insn" from rtx to rtx_insn *.
25171 (dup_block_and_redirect): Likewise for param 3 "before".
25173 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
25174 from rtx to rtx_insn *.
25175 (move_insn_for_shrink_wrap): Likewise.
25176 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
25177 (dup_block_and_redirect): Likewise for param "before" and local
25179 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
25181 (convert_to_simple_return): Likewise for local "start".
25183 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
25184 Strengthen local "insn" from rtx to rtx_insn *, for use when
25185 invoking requires_stack_frame_p.
25187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25189 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
25191 (speculate_expr): Likewise for locals "orig_insn_rtx",
25193 (eq_transformed_insns): Likewise for locals "i1", "i2".
25194 (check_for_new_jump): Likewise for return type and local "end".
25195 (find_new_jump): Likewise for return type and local "jump".
25196 (sel_split_edge): Likewise for local "jump".
25197 (sel_create_recovery_block): Likewise.
25198 (sel_redirect_edge_and_branch_force): Likewise.
25199 (sel_redirect_edge_and_branch): Likewise.
25201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25203 * sel-sched.c (substitute_reg_in_expr): Strengthen local
25204 "new_insn" from rtx to rtx_insn *.
25205 (create_insn_rtx_with_rhs): Likewise for return type and for local
25207 (create_insn_rtx_with_lhs): Likewise.
25208 (create_speculation_check): Likewise for local "insn_rtx".
25209 (implicit_clobber_conflict_p): Likewise for local "insn".
25210 (get_expr_cost): Likewise.
25211 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
25212 (move_cond_jump): Likewise for locals "next", "prev", "link",
25213 "head", "from", "to".
25215 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25217 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
25218 "next" from rtx to rtx_insn *.
25219 (find_conditional_protection): Likewise for local "next".
25220 (is_conditionally_protected): Likewise for local "insn1".
25221 (is_pfree): Likewise for locals "insn1", "insn2".
25223 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25225 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
25226 from rtx to rtx_insn *.
25228 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
25229 locals "insn1", "insn2" from rtx to rtx_insn *.
25230 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
25231 locals "insn", "prev", "last_jump", "next_tail".
25232 (schedule_ebb): Likewise for params "head", "tail".
25233 (schedule_ebbs): Likewise for locals "tail", "head".
25235 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
25236 to rtx_insn on "last_insn" in one of the invocations of
25239 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25241 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
25242 "elem", "insn" from rtx to rtx_insn *.
25243 (change_spec_dep_to_hard): Likewise.
25244 (get_back_and_forw_lists): Likewise for local "con".
25245 (sd_add_dep): Likewise for locals "elem", "insn".
25246 (sd_resolve_dep): Likewise for locals "pro", "con".
25247 (sd_unresolve_dep): Likewise.
25248 (sd_delete_dep): Likewise.
25249 (chain_to_prev_insn): Likewise for local "pro".
25250 (find_inc): Likewise for locals "pro", "con".
25252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25254 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
25256 (reg_set_between_p): Strengthen local "insn" from const_rtx to
25258 (modified_between_p): Strengthen local "insn" from rtx to
25260 (remove_reg_equal_equiv_notes_for_regno): Likewise.
25261 (keep_with_call_p): Strengthen local "i2" from const_rtx to
25264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25266 * resource.c (next_insn_no_annul): Strengthen local "next" from
25268 (mark_referenced_resources): Likewise for local "insn".
25270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25272 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
25274 (find_reloads): Likewise for param 1.
25275 (subst_reloads): Likewise for sole param.
25276 (find_equiv_reg): Likwise for param 2.
25277 (regno_clobbered_p): Likwise for param 2.
25278 (reload): Likewise for param 1.
25280 * caller-save.c (save_call_clobbered_regs): Strengthen local
25281 "insn" from rtx to rtx_insn *.
25282 (insert_one_insn): Likewise for local "insn".
25284 * reload.c (this_insn): Likewise for this global.
25285 (find_reloads): Likewise for param "insn".
25286 (find_reloads_toplev): Likewise.
25287 (find_reloads_address): Likewise.
25288 (subst_reg_equivs): Likewise.
25289 (update_auto_inc_notes): Likewise.
25290 (find_reloads_address_1): Likewise.
25291 (find_reloads_subreg_address): Likewise.
25292 (subst_reloads): Likewise.
25293 (find_equiv_reg): Likewise, also for local "p".
25294 (regno_clobbered_p): Likewise for param "insn".
25296 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
25298 (spill_reg_store): Likewise for the elements of this array.
25299 (remove_init_insns): Likewise for local "equiv_insn".
25300 (will_delete_init_insn_p): Likewise for param "insn".
25301 (reload): Likewise for param ""first" and local "insn".
25302 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
25304 (calculate_elim_costs_all_insns): Likewise.
25305 (delete_caller_save_insns): Likewise.
25306 (spill_failure): Likewise for param "insn".
25307 (delete_dead_insn): Likewise.
25308 (set_label_offsets): Likewise.
25309 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
25311 (elimination_costs_in_insn): Likewise for param "insn".
25312 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
25313 when referring to an insn.
25314 (set_initial_label_offsets): Likewise.
25315 (set_offsets_for_label): Strengthen param "insn" from rtx to
25317 (init_eliminable_invariants): Likewise for param "first" and local
25319 (fixup_eh_region_note): Likewise for param "insn".
25320 (reload_as_needed): Likewise for locals "prev", "insn",
25321 "old_next", "old_prev", "next".
25322 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
25324 (reload_inheritance_insn): Strengthen elements of this array from
25326 (failed_reload): Likewise for param "insn".
25327 (choose_reload_regs): Likewise for local "insn". Replace use of
25328 NULL_RTX with NULL when referring to an insn.
25329 (input_reload_insns): Strengthen elements of this array from rtx
25331 (other_input_address_reload_insns): Likewise for this global.
25332 (other_input_reload_insns): Likewise for this global.
25333 (input_address_reload_insns): Likwise for the elements of this
25335 (inpaddr_address_reload_insns): Likwise for the elements of this
25337 (output_reload_insns): Likewise for the elements of this array.
25338 (output_address_reload_insns): Likewise for the elements of this
25340 (outaddr_address_reload_insns): Likewise for the elements of this
25342 (operand_reload_insns): Likewise for this global.
25343 (other_operand_reload_insns): Likewise for this global.
25344 (other_output_reload_insns): Likewise for the elements of this
25346 (new_spill_reg_store): Likewise for the elements of this
25348 (emit_input_reload_insns): Likewise for locals "insn", "temp".
25349 Strengthen local "where" from rtx * to rtx_insn **.
25350 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
25351 from rtx to rtx_insn *.
25352 (do_input_reload): Likewise for local "insn".
25353 (do_output_reload): Likewise for local "insn".
25354 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
25355 (emit_insn_if_valid_for_reload): Likewise for return type and local
25356 "last". Add checked cast to rtx_insn when returning "insn" since
25357 this has been through emit_insn.
25358 (gen_reload): Strengthen return type and locals "last", "insn", "set"
25359 from rtx to rtx_insn *. Add checked cast to rtx_insn when
25360 returning "insn" since it's been through
25361 emit_insn_if_valid_for_reload at this point.
25362 (delete_output_reload): Strengthen param "insn" and locals
25363 "output_reload_insn", "i2" from rtx to rtx_insn *.
25364 (delete_address_reloads): Likewise for params "dead_insn",
25365 "current_insn" and locals "prev", "next".
25366 (delete_address_reloads_1): Likewise for params "dead_insn",
25367 "current_insn" and locals "prev", "i2".
25368 (inc_for_reload): Likewise for locals "last", "add_insn".
25369 (add_auto_inc_notes): Strengthen param "insn" from rtx to
25372 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
25373 param of this duplicate of the prototype from reload.h
25375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25377 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
25379 (regstat_bb_compute_calls_crossed): Likewise.
25381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25383 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
25385 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
25387 (regrename_analyze): Strengthen local "insn" from rtx to
25389 (scan_rtx_reg): Likewise for param "insn".
25390 (scan_rtx_address): Likewise.
25391 (scan_rtx): Likewise.
25392 (restore_operands): Likewise.
25393 (record_out_operands): Likewise.
25394 (build_def_use): Likewise for local "insn". Replace use of
25395 NULL_RTX with NULL when dealing with an insn.
25397 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25399 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
25400 * reginfo.c (reg_scan): Likewise, also for local "insn".
25401 (reg_scan_mark_refs): Likewise for param "insn".
25402 (init_subregs_of_mode): Likewise for local "insn".
25404 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25406 * regcprop.c (struct queued_debug_insn_change): Strengthen field
25407 "insn" from rtx to rtx_insn *.
25408 (replace_oldest_value_reg): Likewise for param "insn".
25409 (replace_oldest_value_addr): Likewise.
25410 (replace_oldest_value_mem): Likewise.
25411 (apply_debug_insn_changes): Likewise for local "last_insn".
25412 (copyprop_hardreg_forward_1): Likewise for local "insn".
25414 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25416 * reg-stack.c (next_flags_user): Strengthen return type and param
25417 "insn" from rtx to rtx_insn *.
25418 (straighten_stack): Likewise for param "insn".
25419 (check_asm_stack_operands): Likewise.
25420 (remove_regno_note): Likewise.
25421 (emit_pop_insn): Likewise for return type, param "insn", local
25423 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
25424 "limit" from rtx to rtx_insn *.
25425 (swap_to_top): Likewise for param "insn".
25426 (move_for_stack_reg): Likewise.
25427 (move_nan_for_stack_reg): Likewise.
25428 (swap_rtx_condition): Likewise.
25429 (compare_for_stack_reg): Likewise.
25430 (subst_all_stack_regs_in_debug_insn): Likewise.
25431 (subst_stack_regs_pat): Likewise, and local "insn2".
25432 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
25434 (subst_stack_regs): Likewise.
25435 (change_stack): Likewise.
25436 (convert_regs_1): Likewise for locals "insn", "next".
25438 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25440 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
25442 (combine_set_extension): Likewise for param "curr_insn".
25443 (transform_ifelse): Likewise for param "def_insn".
25444 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
25445 from vec<rtx> * to vec<rtx_insn *> *.
25446 (is_cond_copy_insn): Likewise for param "insn".
25447 (struct ext_state): Strengthen the four vec fields from vec<rtx>
25448 to vec<rtx_insn *>.
25449 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
25450 local "def_insn" from rtx to rtx_insn *.
25451 (get_sub_rtx): Likewise for param "def_insn".
25452 (merge_def_and_ext): Likewise.
25453 (combine_reaching_defs): Likewise.
25454 (add_removable_extension): Likewise for param "insn".
25455 (find_removable_extensions): Likewise for local "insn".
25456 (find_and_remove_re): Likewise for locals "curr_insn" and
25457 "def_insn". Strengthen locals "reinsn_del_list" and
25458 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
25460 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25462 * recog.c (split_insn): Strengthen param "insn" and locals
25463 "first", "last" from rtx to rtx_insn *.
25464 (split_all_insns): Likewise for locals "insn", "next".
25465 (split_all_insns_noflow): Likewise.
25467 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25469 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
25471 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25472 (debug_rtx_find): Likewise for param 1 "x".
25474 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
25475 const_rtx to const rtx_insn *. Likewise for local "insn".
25476 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
25477 (debug_rtx_find): Likewise for param 1 "x".
25478 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
25479 from const_rtx to const rtx_insn * within the appropriate cases of
25480 the switch statement.
25482 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
25483 Strengthen local "insns" from rtx to rtx_insn * since this is
25484 passed to a call to debug_rtx_list.
25486 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25488 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
25491 * function.c (stack_protect_epilogue): Add checked cast to
25492 rtx_insn for now when invoking predict_insn_def.
25494 * predict.c (predict_insn): Strengthen param "insn" from rtx to
25496 (predict_insn_def): Likewise.
25497 (rtl_predict_edge): Likewise for local "last_insn".
25498 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
25500 (combine_predictions_for_insn): Strengthen param "insn" from rtx
25502 (bb_estimate_probability_locally): Likewise for local "last_insn".
25503 (expensive_function_p): Likewise for local "insn".
25505 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
25506 local "jmp", since this is used when invoking predict_insn_def.
25508 2014-08-22 Marek Polacek <polacek@redhat.com>
25511 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
25513 2014-08-22 Marek Polacek <polacek@redhat.com>
25516 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
25517 a comparison in parens.
25518 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
25521 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25523 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
25526 * cprop.c (fis_get_condition): Likewise.
25528 * postreload.c (reload_cse_regs): Likewise for param "first".
25529 (reload_cse_simplify): Likewise for param "insn".
25530 (reload_cse_regs_1): Likewise for local "insn".
25531 (reload_cse_simplify_set): Likewise for param "insn".
25532 (reload_cse_simplify_operands): Likewise.
25533 (struct reg_use): Likewise for field "insn".
25534 (reload_combine_purge_insn_uses): Likewise for param "insn".
25535 (fixup_debug_insns): Likewise for params "from", "to" and local
25537 (try_replace_in_use): Likewise for local "use_insn".
25538 (reload_combine_recognize_const_pattern): Likewise for param
25539 "insn" and locals "add_moved_after_insn", "use_insn".
25540 (reload_combine_recognize_pattern): Likewise for param "insn" and
25542 (reload_combine): Likewise for locals "insn", "prev".
25543 (reload_combine_note_use): Likewise for param "insn".
25544 (move2add_use_add2_insn): Likewise.
25545 (move2add_use_add3_insn): Likewise.
25546 (reload_cse_move2add): Likewise, also for local "next".
25547 (move2add_note_store): Likewise for local "insn".
25549 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25551 * postreload-gcse.c (struct occr): Strengthen field "insn" from
25553 (struct unoccr): Likewise.
25554 (struct modifies_mem): Likewise.
25555 (alloc_mem): Likewise for local "insn".
25556 (insert_expr_in_table): Likewise for param "insn".
25557 (dump_expr_hash_table_entry): Likewise for local "insn".
25558 (oprs_unchanged_p): Likewise for param "insn".
25559 (load_killed_in_block_p): Likewise for local "setter".
25560 (record_last_reg_set_info): Likewise for param "insn".
25561 (record_last_reg_set_info_regno): Likewise.
25562 (record_last_mem_set_info): Likewise.
25563 (record_last_set_info): Likewise for local "last_set_insn".
25564 (record_opr_changes): Likewise for param "insn".
25565 (hash_scan_set): Likewise.
25566 (compute_hash_table): Likewise for local "insn".
25567 (get_avail_load_store_reg): Likewise for param "insn".
25568 (eliminate_partially_redundant_load): Likewise, also for locals
25569 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
25571 (eliminate_partially_redundant_loads): Likewise for local "insn".
25573 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25575 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
25577 (expand_binop): Likewise for locals "entry_last", "last", "insns"
25578 (expand_twoval_unop): Likewise for locals entry_last", "last".
25579 (expand_twoval_binop): Likewise.
25580 (expand_twoval_binop_libfunc): Likewise for local "insns".
25581 (widen_leading): Likewise for local "last".
25582 (expand_doubleword_clz): Likewise for local "seq". Strengthen
25583 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
25584 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
25585 (expand_parity): Likewise for locals "last" and "seq".
25586 (expand_ffs): Likewise for local "seq". Strengthen local
25587 "nonzero_label" from rtx to rtx_code_label *.
25588 (expand_absneg_bit): Strengthen local "insns" from rtx to
25590 (expand_unop_direct): Likewise for local "last".
25591 (expand_unop): Likewise for locals "last", "insns".
25592 (expand_abs_nojump): Likewise for local "last".
25593 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
25594 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
25596 (expand_copysign_absneg): Strengthen local "label" from rtx to
25598 (expand_copysign_bit): Strengthen local "insns" from rtx to
25600 (struct no_conflict_data): Likewise for fields "first", "insn".
25601 (emit_libcall_block_1): Likewise for param "insns" and locals
25602 "next", "last", "insn".
25603 (emit_libcall_block): For now, add a checked cast to rtx_insn *
25604 on "insns" when invoking emit_libcall_block_1. Ultimately we
25605 want to strengthen insns itself.
25606 (prepare_cmp_insn): Strengthen local "last" from rtx to
25608 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
25609 (prepare_float_lib_cmp): Likewise for local "insns".
25610 (emit_conditional_move): Likewise for local "last".
25611 (emit_conditional_add): Likewise.
25612 (have_sub2_insn): Likewise for local "seq".
25613 (expand_float): Likewise for local "insns". Strengthen locals
25614 "label", "neglabel" from rtx to rtx_code_label *.
25615 (expand_fix): Likewise for locals "last", "insn", "insns" (to
25616 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
25617 (expand_fixed_convert): Likewise for local "insns" (to
25619 (expand_sfix_optab): Likewise for local "last".
25620 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
25621 to rtx_code_label *.
25622 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
25623 from rtx to rtx_insn *.
25624 (expand_atomic_fetch_op): Likewise for local "insn".
25625 (maybe_legitimize_operand_same_code): Likewise for local "last".
25626 (maybe_legitimize_operands): Likewise.
25628 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25630 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
25631 "insn" from rtx to rtx_insn *.
25632 (ps_rtl_insn): Likewise for return type.
25633 (doloop_register_get): Likewise for params "head", "tail" and
25634 locals "insn", "first_insn_not_to_check".
25635 (schedule_reg_move): Likewise for local "this_insn".
25636 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
25637 of gen_move_insn for now.
25638 (reset_sched_times): Strengthen local "insn" from rtx to
25640 (permute_partial_schedule): Likewise.
25641 (duplicate_insns_of_cycles): Likewise for local "u_insn".
25642 (dump_insn_location): Likewise for param "insn".
25643 (loop_canon_p): Likewise for local "insn".
25644 (sms_schedule): Likewise.
25645 (print_partial_schedule): Likewise.
25646 (ps_has_conflicts): Likewise.
25648 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25650 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
25651 "tailp" from rtx * to rtx_insn **.
25653 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
25654 from rtx to rtx_insn *.
25655 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
25656 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
25657 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
25659 * modulo-sched.c (const_iteration_count): Strengthen return type
25660 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
25661 use of NULL_RTX with NULL when working with insns.
25662 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
25664 (sms_schedule): Likewise.
25665 * sched-rgn.c (init_ready_list): Likewise, also for locals
25666 "src_head" and "src_next_tail".
25667 (compute_block_dependences): Likewise.
25668 (free_block_dependencies): Likewise.
25669 (debug_rgn_dependencies): Likewise.
25670 (free_rgn_deps): Likewise.
25671 (compute_priorities): Likewise.
25672 (schedule_region): Likewise.
25673 * sel-sched.c (find_ebb_boundaries): Likewise.
25675 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
25676 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
25678 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25680 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
25681 from rtx to rtx_insn *.
25682 (new_seginfo): Likewise for param "insn".
25683 (create_pre_exit): Likewise for locals "last_insn",
25684 "before_return_copy", "return_copy".
25685 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
25688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25690 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
25691 from rtx to rtx_insn *.
25692 (lra_push_insn): Likewise for 1st param.
25693 (lra_push_insn_and_update_insn_regno_info): Likewise.
25694 (lra_pop_insn): Likewise for return type.
25695 (lra_invalidate_insn_data): Likewise for 1st param.
25696 (lra_set_insn_deleted): Likewise.
25697 (lra_delete_dead_insn): Likewise.
25698 (lra_process_new_insns): Likewise for first 3 params.
25699 (lra_set_insn_recog_data): Likewise for 1st param.
25700 (lra_update_insn_recog_data): Likewise.
25701 (lra_set_used_insn_alternative): Likewise.
25702 (lra_invalidate_insn_regno_info): Likewise.
25703 (lra_update_insn_regno_info): Likewise.
25704 (lra_former_scratch_operand_p): Likewise.
25705 (lra_eliminate_regs_1): Likewise.
25706 (lra_get_insn_recog_data): Likewise.
25708 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
25711 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
25713 (substitute_within_insn): New.
25714 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
25715 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
25716 Replace call to "substitute" with call to substitute_within_insn.
25718 * lra-constraints.c (curr_insn): Strengthen from rtx to
25720 (get_equiv_with_elimination): Likewise for param "insn".
25721 (match_reload): Strengthen params "before" and "after" from rtx *
25723 (emit_spill_move): Likewise for return type. Add a checked cast
25724 to rtx_insn * on result of gen_move_insn for now.
25725 (check_and_process_move): Likewise for local "before". Replace
25726 NULL_RTX with NULL when referring to insns.
25727 (process_addr_reg): Strengthen params "before" and "after" from
25728 rtx * to rtx_insn **.
25729 (insert_move_for_subreg): Likewise.
25730 (simplify_operand_subreg): Strengthen locals "before" and "after"
25731 from rtx to rtx_insn *.
25732 (process_address_1): Strengthen params "before" and "after" from
25733 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
25735 (process_address): Strengthen params "before" and "after" from
25736 rtx * to rtx_insn **.
25737 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
25738 (curr_insn_transform): Strengthen locals "before" and "after"
25739 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
25741 (loc_equivalence_callback): Update cast of "data", changing
25742 resulting type from rtx to rtx_insn *.
25743 (substitute_pseudo_within_insn): New.
25744 (inherit_reload_reg): Strengthen param "insn" from rtx to
25745 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
25746 NULL when referring to insns. Add a checked cast to rtx_insn *
25747 when using usage_insn to invoke lra_update_insn_regno_info.
25748 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
25749 likewise for locals "restore", "save". Add checked casts to
25750 rtx_insn * when using usage_insn to invoke
25751 lra_update_insn_regno_info and lra_process_new_insns. Replace
25752 NULL_RTX with NULL when referring to insns.
25753 (split_if_necessary): Strengthen param "insn" from rtx to
25755 (update_ebb_live_info): Likewise for params "head", "tail" and local
25757 (get_last_insertion_point): Likewise for return type and local "insn".
25758 (get_live_on_other_edges): Likewise for local "last".
25759 (inherit_in_ebb): Likewise for params "head", "tail" and locals
25760 "prev_insn", "next_insn", "restore".
25761 (remove_inheritance_pseudos): Likewise for local "prev_insn".
25762 (undo_optional_reloads): Likewise for local "insn".
25764 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
25766 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
25768 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
25770 (spill_pseudos): Likewise for local "insn".
25771 (init_elimination): Likewise.
25772 (process_insn_for_elimination): Likewise for param "insn".
25774 * lra-lives.c (curr_insn): Likewise.;
25776 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
25777 (remove_pseudos): Likewise for param "insn".
25778 (spill_pseudos): Likewise for local "insn".
25779 (lra_final_code_change): Likewise for locals "insn", "curr".
25781 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
25782 (lra_set_insn_deleted): Likewise.
25783 (lra_delete_dead_insn): Likewise, and for local "prev".
25784 (new_insn_reg): Likewise for param "insn".
25785 (lra_set_insn_recog_data): Likewise.
25786 (lra_update_insn_recog_data): Likewise.
25787 (lra_set_used_insn_alternative): Likewise.
25788 (get_insn_freq): Likewise.
25789 (invalidate_insn_data_regno_info): Likewise.
25790 (lra_invalidate_insn_regno_info): Likewise.
25791 (lra_update_insn_regno_info): Likewise.
25792 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
25794 (lra_push_insn_1): Strengthen param "insn" from rtx to
25796 (lra_push_insn): Likewise.
25797 (lra_push_insn_and_update_insn_regno_info): Likewise.
25798 (lra_pop_insn): Likewise for return type and local "insn".
25799 (push_insns): Likewise for params "from", "to", and local "insn".
25800 (setup_sp_offset): Likewise for params "from", "last" and locals
25802 (lra_process_new_insns): Likewise for params "insn", "before",
25803 "after" and local "last".
25804 (struct sloc): Likewise for field "insn".
25805 (lra_former_scratch_operand_p): Likewise for param "insn".
25806 (remove_scratches): Likewise for locals "insn", "last".
25807 (check_rtl): Likewise for local "insn".
25808 (add_auto_inc_notes): Likewise for param "insn".
25809 (update_inc_notes): Likewise for local "insn".
25810 (lra): Replace NULL_RTX with NULL when referring to insn.
25812 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25814 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
25816 (resolve_reg_notes): Likewise.
25817 (resolve_simple_move): Likewise for return type, param "insn", and
25818 locals "insns", "minsn".
25819 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
25820 (resolve_use): Likewise.
25821 (resolve_debug): Likewise.
25822 (find_decomposable_shift_zext): Likewise.
25823 (resolve_shift_zext): Likewise for return type, param "insn", and
25824 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
25825 (decompose_multiword_subregs): Likewise for local "insn",
25826 "orig_insn", "decomposed_shift", "end".
25828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25830 * basic-block.h (basic_block split_edge_and_insert): Strengthen
25831 param "insns" from rtx to rtx_insn *.
25833 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
25835 (struct iv_to_split): Likewise.
25836 (loop_exit_at_end_p): Likewise for local "insn".
25837 (split_edge_and_insert): Likewise for param "insns".
25838 (compare_and_jump_seq): Likewise for return type, param "cinsn",
25839 and locals "seq", "jump".
25840 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
25841 "branch_code"; update invocations of compare_and_jump_seq to
25842 eliminate NULL_RTX in favor of NULL.
25843 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
25845 (reset_debug_uses_in_loop): Likewise.
25846 (analyze_insn_to_expand_var): Likewise for param "insn".
25847 (analyze_iv_to_split_insn): Likewise.
25848 (analyze_insns_in_loop): Likewise for local "insn".
25849 (insert_base_initialization): Likewise for param
25850 "insn" and local "seq".
25851 (split_iv): Likewise for param "insn" and local "seq".
25852 (expand_var_during_unrolling): Likewise for param "insn".
25853 (insert_var_expansion_initialization): Likewise for local "seq".
25854 (combine_var_copies_in_loop_exit): Likewise.
25855 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
25857 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
25858 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
25861 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25863 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
25865 (iv_analyze_result): Likewise.
25866 (iv_analyze_expr): Likewise.
25869 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
25870 local "def_insn" from rtx to rtx_insn *.
25871 (get_biv_step_1): Likewise for local "insn".
25872 (iv_analyze_expr): Likewise for param "insn".
25873 (iv_analyze_def): Likewise for local "insn".
25874 (iv_analyze_op): Likewise for param "insn".
25875 (iv_analyze): Likewise.
25876 (iv_analyze_result): Likewise.
25878 (suitable_set_for_replacement): Likewise.
25879 (simplify_using_initial_values): Likewise for local "insn".
25880 (iv_number_of_iterations): Likewise for param "insn".
25881 (check_simple_exit): Add checked cast to rtx_insn when invoking
25882 iv_number_of_iterations for now (until get_condition is
25885 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
25886 "insn" from rtx to rtx_insn *.
25887 (analyze_insns_in_loop): Likewise for local "insn".
25889 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25891 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
25893 (struct invariant): Likewise.
25894 (hash_invariant_expr_1): Likewise for param "insn".
25895 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
25896 (find_exits): Likewise for local "insn".
25897 (create_new_invariant): Likewise for param "insn".
25898 (check_dependencies): Likewise.
25899 (find_invariant_insn): Likewise.
25900 (record_uses): Likewise.
25901 (find_invariants_insn): Likewise.
25902 (find_invariants_bb): Likewise for local "insn".
25903 (get_pressure_class_and_nregs): Likewise for param "insn".
25904 (calculate_loop_reg_pressure): Likewise for local "insn".
25906 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25908 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
25910 (add_test): Likewise for locals "seq", "jump".
25911 (doloop_modify): Likewise for locals "sequence", "jump_insn".
25913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25915 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
25917 (rebuild_jump_labels_chain): Likewise for param "chain".
25919 * cfgexpand.c (pass_expand::execute): Add checked cast to
25920 rtx_insn * when calling rebuild_jump_labels_chain in region where
25921 we know e->insns.r is non-NULL.
25923 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
25925 (rebuild_jump_labels): Likewise.
25926 (rebuild_jump_labels_chain): Likewise for param "chain".
25927 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
25928 (init_label_info): Likewise for param "f".
25929 (maybe_propagate_label_ref): Likewise for params "jump_insn",
25930 "prev_nonjump_insn".
25931 (mark_all_labels): Likewise for param "f" and locals "insn",
25932 "prev_nonjump_insn".
25934 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25936 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
25937 from rtx to rtx_insn *insn.
25938 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
25939 (ira_add_allocno_copy): Likewise.
25940 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
25942 (ira_create_copy): Likewise.
25943 (ira_add_allocno_copy): Likewise.
25944 (create_bb_allocnos): Likewise for local "insn".
25945 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
25946 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
25947 process_regs_for_copy for rtx_insn * param.
25948 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
25949 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
25950 process_regs_for_copy for rtx_insn * param.
25951 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
25952 * ira-costs.c (record_reg_classes): Likewise for param "insn".
25953 (record_operand_costs): Likewise.
25954 (scan_one_insn): Likewise for return type, and for param "insn".
25955 (process_bb_for_costs): Likewise for local "insn".
25956 (process_bb_node_for_hard_reg_moves): Likewise.
25957 * ira-emit.c (struct move): Likewise for field "insn".
25958 (create_move): Eliminate use of NULL_RTX when dealing with an
25960 (emit_move_list): Strengthen return type and locals "result",
25961 "insn" from rtx to rtx_insn *insn.
25962 (emit_moves): Likewise for locals "insns", "tmp".
25963 (ira_emit): Likewise for local "insn".
25964 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
25966 (find_call_crossed_cheap_reg): Likewise.
25967 (process_bb_node_lives): Likewise for local "insn".
25968 * ira.c (decrease_live_ranges_number): Likewise.
25969 (compute_regs_asm_clobbered): Likewise.
25970 (build_insn_chain): Likewise.
25971 (find_moveable_pseudos): Likewise, also locals "def_insn",
25972 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
25973 to rtx_insn **. Add a checked cast when assigning from
25974 "closest_use" into closest_uses array in a region where we know
25975 it's a non-NULL insn.
25976 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
25978 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
25979 "last_interesting_insn", "uin".
25980 (move_unallocated_pseudos): Likewise for locals "def_insn",
25981 "move_insn", "newinsn".
25983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25985 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
25986 Strengthen locals "done_label", "do_error" from rtx to
25988 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
25989 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
25991 (ubsan_expand_si_overflow_neg_check): Likewise for locals
25992 "done_label", "do_error" to rtx_code_label * and local "last" to
25994 (ubsan_expand_si_overflow_mul_check): Likewise for locals
25995 "done_label", "do_error", "large_op0", "small_op0_large_op1",
25996 "one_small_one_large", "both_ops_large", "after_hipart_neg",
25997 "after_lopart_neg", "do_overflow", "hipart_different" to
25998 rtx_code_label * and local "last" to rtx_insn *.
26000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26002 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
26003 "insn" and "move_insn" from rtx to rtx_insn *.
26005 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26007 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
26009 (cheap_bb_rtx_cost_p): Likewise.
26010 (first_active_insn): Likewise for return type and local "insn".
26011 (last_active_insn): Likewise for return type and locals "insn",
26013 (struct noce_if_info): Likewise for fields "jump", "insn_a",
26015 (end_ifcvt_sequence): Likewise for return type and locals "insn",
26017 (noce_try_move): Likewise for local "seq".
26018 (noce_try_store_flag): Likewise.
26019 (noce_try_store_flag_constants): Likewise.
26020 (noce_try_addcc): Likewise.
26021 (noce_try_store_flag_mask): Likewise.
26022 (noce_try_cmove): Likewise.
26023 (noce_try_minmax): Likewise.
26024 (noce_try_abs): Likewise.
26025 (noce_try_sign_mask): Likewise.
26026 (noce_try_bitop): Likewise.
26027 (noce_can_store_speculate_p): Likewise for local "insn".
26028 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
26030 (check_cond_move_block): Likewise for local "insn".
26031 (cond_move_convert_if_block): Likewise.
26032 (cond_move_process_if_block): Likewise for locals "seq",
26034 (noce_find_if_block): Likewise for local "jump".
26035 (merge_if_block): Likewise for local "last".
26036 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
26037 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
26038 (block_has_only_trap): Likewise for return type and local "trap".
26039 (find_if_case_1): Likewise for local "jump".
26040 (dead_or_predicable): Likewise for locals "head", "end", "jump",
26043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26045 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
26046 "last_insn", "loop_end" from rtx to rtx_insn *.
26048 * hw-doloop.c (scan_loop): Likewise for local "insn".
26049 (discover_loop): Likewise for param "tail_insn".
26050 (discover_loops): Likewise for local "tail".
26052 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
26053 cast to rtx_insn * when assigning from an rtx local to a
26054 hwloop_info's "last_insn" field.
26056 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26058 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
26059 (add_delay_dependencies): Strengthen local "pro" from rtx to
26061 (recompute_todo_spec): Likewise.
26062 (dep_cost_1): Likewise for locals "insn", "used".
26063 (schedule_insn): Likewise for local "dbg".
26064 (schedule_insn): Likewise for locals "pro", "next".
26065 (unschedule_insns_until): Likewise for local "con".
26066 (restore_pattern): Likewise for local "next".
26067 (estimate_insn_tick): Likewise for local "pro".
26068 (resolve_dependencies): Likewise for local "next".
26069 (fix_inter_tick): Likewise.
26070 (fix_tick_ready): Likewise for local "pro".
26071 (add_to_speculative_block): Likewise for locals "check", "twin",
26073 (sched_extend_bb): Likewise for locals "end", "insn".
26074 (init_before_recovery): Likewise for local "x".
26075 (sched_create_recovery_block): Likewise for local "barrier".
26076 (create_check_block_twin): Likewise for local "pro".
26077 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
26079 (unlink_bb_notes): Update for change to type of bb_header.
26080 Strengthen locals "prev", "label", "note", "next" from rtx to
26082 (clear_priorities): Likewise for local "pro".
26084 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26086 * gcse.c (struct occr): Strengthen field "insn" from rtx to
26088 (test_insn): Likewise for this global.
26089 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
26091 (oprs_anticipatable_p): Likewise.
26092 (oprs_available_p): Likewise.
26093 (insert_expr_in_table): Strengthen param "insn" from rtx to
26095 (hash_scan_set): Likewise.
26096 (hash_scan_clobber): Likewise.
26097 (hash_scan_call): Likewise.
26098 (hash_scan_insn): Likewise.
26099 (compute_hash_table_work): Likewise for local "insn".
26100 (process_insert_insn): Likewise for return type and local "pat".
26101 (insert_insn_end_basic_block): Likewise for locals "new_insn",
26102 "pat", "pat_end", "maybe_cc0_setter".
26103 (pre_edge_insert): Likewise for local "insn".
26104 (pre_insert_copy_insn): Likewise for param "insn".
26105 (pre_insert_copies): Likewise for local "insn".
26106 (struct set_data): Likewise for field "insn".
26107 (single_set_gcse): Likewise for param "insn".
26108 (gcse_emit_move_after): Likewise.
26109 (pre_delete): Likewise for local "insn".
26110 (update_bb_reg_pressure): Likewise for param "from" and local
26112 (should_hoist_expr_to_dom): Likewise for param "from".
26113 (hoist_code): Likewise for local "insn".
26114 (get_pressure_class_and_nregs): Likewise for param "insn".
26115 (calculate_bb_reg_pressure): Likewise for local "insn".
26116 (compute_ld_motion_mems): Likewise.
26118 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26120 * genpeep.c (main): Rename param back from "uncast_ins1" to
26121 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
26124 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
26126 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26129 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
26130 documentation to state it is only for VSX operations.
26132 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
26133 constraint only active if VSX.
26135 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
26136 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
26137 (lfiwzx): Likewise.
26139 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26141 * fwprop.c (single_def_use_dom_walker::before_dom_children):
26142 Strengthen local "insn" from rtx to rtx_insn *.
26143 (use_killed_between): Likewise for param "target_insn".
26144 (all_uses_available_at): Likewise for param "target_insn" and
26146 (update_df_init): Likewise for params "def_insn", "insn".
26147 (update_df): Likewise for param "insn".
26148 (try_fwprop_subst): Likewise for param "def_insn" and local
26150 (free_load_extend): Likewise for param "insn".
26151 (forward_propagate_subreg): Likewise for param "def_insn" and
26153 (forward_propagate_asm): Likewise for param "def_insn" and local
26155 (forward_propagate_and_simplify): Likewise for param "def_insn"
26156 and local "use_insn".
26157 (forward_propagate_into): Likewise for locals "def_insn" and
26160 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26162 * function.c (emit_initial_value_sets): Strengthen local "seq"
26163 from rtx to rtx_insn *.
26164 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
26166 (instantiate_virtual_regs): Likewise for local "insn".
26167 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
26168 (reorder_blocks_1): Likewise for param "insns" and local "insn".
26169 (expand_function_end): Likewise for locals "insn" and "seq".
26170 (epilogue_done): Likewise for local "insn".
26171 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
26173 (reposition_prologue_and_epilogue_notes): Likewise for locals
26174 "insn", "last", "note", "first".
26175 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
26176 (pass_match_asm_constraints::execute): Likewise for local "insn".
26178 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26180 * output.h (final_scan_insn): Strengthen return type from rtx to
26182 (final_forward_branch_p): Likewise for param.
26183 (current_output_insn): Likewise for this global.
26185 * final.c (rtx debug_insn): Likewise for this variable.
26186 (current_output_insn): Likewise.
26187 (get_attr_length_1): Rename param "insn" to "uncast_insn",
26188 adding "insn" back in as an rtx_insn * with a checked cast, so
26189 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
26191 (compute_alignments): Strengthen local "label" from rtx to
26193 (shorten_branches): Rename param from "first" to "uncast_first",
26194 introducing a new local rtx_insn * "first" using a checked cast to
26195 effectively strengthen "first" from rtx to rtx_insn * without
26196 affecting the type signature. Strengthen locals "insn", "seq",
26197 "next", "label" from rtx to rtx_insn *.
26198 (change_scope): Strengthen param "orig_insn" and local "insn" from
26200 (final_start_function): Rename param from "first" to "uncast_first",
26201 introducing a new local rtx_insn * "first" using a checked cast to
26202 effectively strengthen "first" from rtx to rtx_insn * without
26203 affecting the type signature. Strengthen local "insn" from rtx to
26205 (dump_basic_block_info): Strengthen param "insn" from rtx to
26207 (final): Rename param from "first" to "uncast_first",
26208 introducing a new local rtx_insn * "first" using a checked cast to
26209 effectively strengthen "first" from rtx to rtx_insn * without
26210 affecting the type signature. Strengthen locals "insn", "next"
26211 from rtx to rtx_insn *.
26212 (output_alternate_entry_point): Strengthen param "insn" from rtx to
26214 (call_from_call_insn): Strengthen param "insn" from rtx to
26216 (final_scan_insn): Rename param from "insn" to "uncast_insn",
26217 introducing a new local rtx_insn * "insn" using a checked cast to
26218 effectively strengthen "insn" from rtx to rtx_insn * without
26219 affecting the type signature. Strengthen return type and locals
26220 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
26221 now-redundant checked cast to rtx_insn * from both invocations of
26222 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
26223 introducing a local "call_insn" for use when invoking
26224 call_from_call_insn.
26225 (notice_source_line): Strengthen param "insn" from rtx to
26227 (leaf_function_p): Likewise for local "insn".
26228 (final_forward_branch_p): Likewise.
26229 (leaf_renumber_regs): Likewise for param "first".
26230 (rest_of_clean_state): Likewise for locals "insn" and "next".
26231 (self_recursive_call_p): Likewise for param "insn".
26232 (collect_fn_hard_reg_usage): Likewise for local "insn".
26233 (get_call_fndecl): Likewise for param "insn".
26234 (get_call_cgraph_rtl_info): Likewise.
26235 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
26236 introducing a new local rtx_insn * "insn" using a checked cast to
26237 effectively strengthen "insn" from rtx to rtx_insn * without
26238 affecting the type signature.
26240 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
26241 cast when assigning from param "insn" to current_output_insn.
26242 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
26243 so that we can assign it back to current_output_insn.
26245 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26247 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
26248 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
26249 atmxt540s and atmxt540sreva devices.
26250 * config/avr/avr-tables.opt: Regenerate.
26251 * config/avr/t-multilib: Regenerate.
26252 * doc/avr-mmcu.texi: Regenerate.
26254 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26256 * expr.c (convert_move): Strengthen local "insns" from rtx to
26258 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
26259 "top_label" from rtx to rtx_code_label *.
26260 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
26262 (emit_single_push_insn): Likewise for locals "prev", "last".
26263 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
26264 to rtx_code_label *.
26265 (store_constructor): Likewise for locals "loop_start", "loop_end".
26266 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
26268 (expand_expr_real_2): Likewise.
26269 (expand_expr_real_1): Strengthen local "label" from rtx to
26272 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26274 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
26275 from rtx to rtx_insn *.
26276 (store_bit_field_1): Likewise.
26277 (extract_bit_field_1): Likewise.
26278 (expand_mult_const): Likewise for local "insns".
26279 (expmed_mult_highpart): Strengthen local "label" from rtx to
26281 (expand_smod_pow2): Likewise.
26282 (expand_sdiv_pow2): Likewise.
26283 (expand_divmod): Strengthen locals "last", "insn" from rtx to
26284 rtx_insn *. Strengthen locals "label", "label1", "label2",
26285 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
26286 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
26287 (emit_store_flag): Likewise.
26288 (emit_store_flag_force): Strengthen local "label" from rtx to
26290 (do_cmp_and_jump): Likewise for param "label".
26292 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26294 * explow.c (force_reg): Strengthen local "insn" from rtx to
26296 (adjust_stack_1): Likewise.
26297 (allocate_dynamic_stack_space): Likewise. Strengthen locals
26298 "final_label", "available_label", "space_available" from rtx to
26300 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
26301 (anti_adjust_stack_and_probe): Likewise.
26303 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26305 * except.h (sjlj_emit_function_exit_after): Strengthen param
26306 "after" from rtx to rtx_insn *. This is only called with
26307 result of get_last_insn (in function.c) so type-change should be
26310 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
26311 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
26312 to rtx_insn *. These fields are only used from except.c so this
26313 type-change should be self-contained to this patch.
26315 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
26316 local "last" from rtx to rtx_insn *.
26317 (dw2_build_landing_pads): Likewise for local "seq".
26318 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
26319 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
26320 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
26322 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
26324 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
26325 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
26326 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
26327 referring to an insn. Strengthen local "dispatch_label" from
26328 rtx to rtx_code_label *.
26329 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
26331 (expand_eh_return): Strengthen local "around_label" from
26332 rtx to rtx_code_label *.
26333 (convert_to_eh_region_ranges): Strengthen locals "iter",
26334 "last_action_insn", "first_no_action_insn",
26335 "first_no_action_insn_before_switch",
26336 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
26338 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26340 * dwarf2out.c (last_var_location_insn): Strengthen this variable
26341 from rtx to rtx_insn *.
26342 (cached_next_real_insn): Likewise.
26343 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
26344 working with insns.
26345 (dwarf2out_var_location): Strengthen locals "next_real",
26346 "next_note", "expected_next_loc_note", "last_start", "insn" from
26349 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26351 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
26352 from rtx to rtx_insn *.
26353 (create_pseudo_cfg): Likewise for local "insn".
26355 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26357 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
26358 from rtx to rtx_insn *.
26359 (df_bb_regno_last_def_find): Likewise.
26361 * df-problems.c (df_rd_bb_local_compute): Likewise.
26362 (df_lr_bb_local_compute): Likewise.
26363 (df_live_bb_local_compute): Likewise.
26364 (df_chain_remove_problem): Likewise.
26365 (df_chain_create_bb): Likewise.
26366 (df_word_lr_bb_local_compute): Likewise.
26367 (df_remove_dead_eq_notes): Likewise for param "insn".
26368 (df_note_bb_compute): Likewise for local "insn".
26369 (simulate_backwards_to_point): Likewise.
26370 (df_md_bb_local_compute): Likewise.
26372 * df-scan.c (df_scan_free_bb_info): Likewise.
26373 (df_scan_start_dump): Likewise.
26374 (df_scan_start_block): Likewise.
26375 (df_install_ref_incremental): Likewise for local "insn".
26376 (df_insn_rescan_all): Likewise.
26377 (df_reorganize_refs_by_reg_by_insn): Likewise.
26378 (df_reorganize_refs_by_insn_bb): Likewise.
26379 (df_recompute_luids): Likewise.
26380 (df_bb_refs_record): Likewise.
26381 (df_update_entry_exit_and_calls): Likewise.
26382 (df_bb_verify): Likewise.
26384 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26386 * ddg.h (struct ddg_node): Strengthen fields "insn" and
26387 "first_note" from rtx to rtx_insn *.
26388 (get_node_of_insn): Likewise for param 2 "insn".
26389 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26391 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
26393 (mem_write_insn_p): Likewise.
26394 (mem_access_insn_p): Likewise.
26395 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
26396 (def_has_ccmode_p): Likewise for param "insn".
26397 (add_cross_iteration_register_deps): Likewise for locals
26398 "def_insn" and "use_insn".
26399 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
26400 (build_intra_loop_deps): Likewise for local "src_insn".
26401 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
26403 (get_node_of_insn): Likewise for param "insn".
26405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26407 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
26408 (deletable_insn_p): Strengthen param "insn" from rtx to
26409 rtx_insn *. Add checked cast to rtx_call_insn when invoking
26410 find_call_stack_args, since this is guarded by CALL_P (insn).
26411 (marked_insn_p): Strengthen param "insn" from rtx to
26413 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
26414 invoking find_call_stack_args, since this is guarded by
26416 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
26417 rtx_insn *; we know this is an insn since this was called by
26418 mark_nonreg_stores.
26419 (mark_nonreg_stores_2): Likewise.
26420 (mark_nonreg_stores): Strengthen param "insn" from rtx to
26422 (find_call_stack_args): Strengthen param "call_insn" from rtx to
26423 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
26425 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
26426 from rtx to rtx_insn *.
26427 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
26428 "next", "ref_insn".
26429 (delete_unmarked_insns): Likewise for locals "insn", "next".
26430 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
26431 (mark_reg_dependencies): Likewise for param "insn".
26432 (rest_of_handle_ud_dce): Likewise for local "insn".
26433 (word_dce_process_block): Likewise.
26434 (dce_process_block): Likewise.
26436 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26438 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
26439 from rtx to rtx_insn *.
26440 (struct change_cc_mode_args): Likewise for field "insn".
26441 (this_insn): Strengthen from rtx to rtx_insn *.
26442 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
26444 (validate_canon_reg): Strengthen param "insn" from rtx to
26446 (canon_reg): Likewise.
26447 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
26449 (record_jump_equiv): Strengthen param "insn" from rtx to
26451 (try_back_substitute_reg): Likewise, also for locals "prev",
26453 (find_sets_in_insn): Likewise for param "insn".
26454 (canonicalize_insn): Likewise.
26455 (cse_insn): Likewise. Add a checked cast.
26456 (invalidate_from_clobbers): Likewise for param "insn".
26457 (invalidate_from_sets_and_clobbers): Likewise.
26458 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
26460 (cse_prescan_path): Strengthen local "insn" from rtx to
26462 (cse_extended_basic_block): Likewise for locals "insn" and
26464 (cse_main): Likewise for param "f".
26465 (check_for_label_ref): Likewise for local "insn".
26466 (set_live_p): Likewise for second param ("insn").
26467 (insn_live_p): Likewise for first param ("insn") and for local
26469 (cse_change_cc_mode_insn): Likewise for first param "insn".
26470 (cse_change_cc_mode_insns): Likewise for first and second params
26472 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
26474 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
26477 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26478 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26479 Anna Tikhonova <anna.tikhonova@intel.com>
26480 Ilya Tocar <ilya.tocar@intel.com>
26481 Andrey Turetskiy <andrey.turetskiy@intel.com>
26482 Ilya Verbin <ilya.verbin@intel.com>
26483 Kirill Yukhin <kirill.yukhin@intel.com>
26484 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26486 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
26488 * config/i386/sse.md
26489 (define_mode_iterator VI248_AVX2): Delete.
26490 (define_mode_iterator VI2_AVX2_AVX512BW): New.
26491 (define_mode_iterator VI48_AVX2): Ditto.
26492 (define_insn <shift_insn><mode>3): Delete.
26493 (define_insn "<shift_insn><mode>3<mask_name>" with
26494 VI2_AVX2_AVX512BW): New.
26495 (define_insn "<shift_insn><mode>3<mask_name>" with
26498 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26499 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26500 Anna Tikhonova <anna.tikhonova@intel.com>
26501 Ilya Tocar <ilya.tocar@intel.com>
26502 Andrey Turetskiy <andrey.turetskiy@intel.com>
26503 Ilya Verbin <ilya.verbin@intel.com>
26504 Kirill Yukhin <kirill.yukhin@intel.com>
26505 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26507 * config/i386/sse.md
26508 (define_mode_iterator VI4F_BRCST32x2): New.
26509 (define_mode_attr 64x2_mode): Ditto.
26510 (define_mode_attr 32x2mode): Ditto.
26511 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
26512 with VI4F_BRCST32x2): Ditto.
26513 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
26514 with V16FI mode iterator): Ditto.
26515 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26516 with V16FI): Ditto.
26517 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
26518 with VI8F_BRCST64x2): Ditto.
26520 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
26521 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26522 Anna Tikhonova <anna.tikhonova@intel.com>
26523 Ilya Tocar <ilya.tocar@intel.com>
26524 Andrey Turetskiy <andrey.turetskiy@intel.com>
26525 Ilya Verbin <ilya.verbin@intel.com>
26526 Kirill Yukhin <kirill.yukhin@intel.com>
26527 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26529 * config/i386/sse.md
26530 (define_mode_iterator VI8_AVX512VL): New.
26531 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
26533 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
26535 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
26536 (define_mode_iterator V48_AVX512VL): New.
26537 (define_mode_iterator V12_AVX512VL): Ditto.
26538 (define_insn <avx512>_load<mode>_mask): Split into two similar
26539 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
26540 Refactor output template.
26541 (define_insn "<avx512>_store<mode>_mask"): Ditto.
26543 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26545 * cprop.c (struct occr): Strengthen field "insn" from rtx to
26547 (reg_available_p): Likewise for param "insn".
26548 (insert_set_in_table): Likewise.
26549 (hash_scan_set): Likewise.
26550 (hash_scan_insn): Likewise.
26551 (make_set_regs_unavailable): Likewise.
26552 (compute_hash_table_work): Likewise for local "insn".
26553 (reg_not_set_p): Strengthen param "insn" from const_rtx to
26555 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
26556 (try_replace_reg): Likewise.
26557 (find_avail_set): Likewise.
26558 (cprop_jump): Likewise for params "setcc", "jump".
26559 (constprop_register): Likewise for param "insn".
26560 (cprop_insn): Likewise.
26561 (do_local_cprop): Likewise.
26562 (local_cprop_pass): Likewise for local "insn".
26563 (bypass_block): Likewise for params "setcc" and "jump".
26564 (bypass_conditional_jumps): Likewise for locals "setcc" and
26566 (one_cprop_pass): Likewise for local "insn".
26568 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26570 * compare-elim.c (struct comparison_use): Strengthen field "insn"
26571 from rtx to rtx_insn *.
26572 (struct comparison): Likewise, also for field "prev_clobber".
26573 (conforming_compare): Likewise for param "insn".
26574 (arithmetic_flags_clobber_p): Likewise.
26575 (find_flags_uses_in_insn): Likewise.
26576 (find_comparison_dom_walker::before_dom_children): Likewise for
26577 locals "insn", "next", "last_clobber".
26578 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
26580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26582 * combine-stack-adj.c (struct csa_reflist): Strengthen field
26583 "insn" from rtx to rtx_insn *.
26584 (single_set_for_csa): Likewise for param "insn".
26585 (record_one_stack_ref): Likewise.
26586 (try_apply_stack_adjustment): Likewise.
26587 (struct record_stack_refs_data): Likewise for field "insn".
26588 (maybe_move_args_size_note): Likewise for params "last" and "insn".
26589 (prev_active_insn_bb): Likewise for return type and param "insn".
26590 (next_active_insn_bb): Likewise.
26591 (force_move_args_size_note): Likewise for params "prev" and "last"
26592 and locals "test", "next_candidate", "prev_candidate".
26593 (combine_stack_adjustments_for_block): Strengthen locals
26594 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
26597 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26599 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
26600 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
26601 (subst_insn): Likewise for this variable.
26602 (added_links_insn): Likewise.
26603 (struct insn_link): Likewise for field "insn".
26604 (alloc_insn_link): Likewise for param "insn".
26605 (struct undobuf): Likewise for field "other_insn".
26606 (find_single_use): Likewise for param "insn" and local "next".
26607 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
26608 (delete_noop_moves): Likewise for locals "insn", "next".
26609 (create_log_links): Likewise for locals "insn", "use_insn".
26610 Strengthen local "next_use" from rtx * to rtx_insn **.
26611 (insn_a_feeds_b): Likewise for params "a", "b".
26612 (combine_instructions): Likewise for param "f" and locals "insn",
26613 "next", "prev", "first", "last_combined_insn", "link", "link1",
26614 "temp". Replace use of NULL_RTX with NULL when referring to
26616 (setup_incoming_promotions): Likewise for param "first"
26617 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
26618 (can_combine_p): Likewise for params "insn", "i3", "pred",
26619 "pred2", "succ", "succ2" and for local "p".
26620 (combinable_i3pat): Likewise for param "i3".
26621 (cant_combine_insn_p): Likewise for param "insn".
26622 (likely_spilled_retval_p): Likewise.
26623 (adjust_for_new_dest): Likewise.
26624 (update_cfg_for_uncondjump): Likewise, also for local "insn".
26625 (try_combine): Likewise for return type and for params "i3", "i2",
26626 "i1", "i0", "last_combined_insn", and for locals "insn",
26627 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
26628 "i0_insn". Eliminate local "tem" in favor of new locals
26629 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
26630 checked cast for now to rtx_insn * on the return type of
26631 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
26633 (find_split_point): Strengthen param "insn" from rtx to
26635 (simplify_set): Likewise for local "other_insn".
26636 (recog_for_combine): Likewise for param "insn".
26637 (record_value_for_reg): Likewise.
26638 (record_dead_and_set_regs_1): Likewise for local
26639 "record_dead_insn".
26640 (record_dead_and_set_regs): Likewise for param "insn".
26641 (record_promoted_value): Likewise.
26642 (check_promoted_subreg): Likewise.
26643 (get_last_value_validate): Likewise.
26644 (reg_dead_at_p): Likewise.
26645 (move_deaths): Likewise for param "to_insn".
26646 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
26647 and locals "place", "place2", "cc0_setter". Eliminate local "tem
26648 in favor of new locals "tem_note" and "tem_insn", the latter being
26650 (distribute_links): Strengthen locals "place", "insn" from rtx to
26653 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26655 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
26657 (can_delete_label_p): Require a const rtx_code_label * rather than
26659 (delete_insn): Add checked cast to rtx_code_label * when we know
26660 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
26662 (delete_insn_chain): Strengthen locals "prev" and "current" from
26663 rtx to rtx_insn *. Add a checked cast when assigning from
26664 "finish" (strengthening the params will come later). Add a
26665 checked cast to rtx_note * in region where we know
26667 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
26669 (compute_bb_for_insn): Likewise.
26670 (free_bb_for_insn): Likewise for local "insn".
26671 (compute_bb_for_insn): Likewise.
26672 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
26673 local "insn" from rtx to rtx_insn *
26674 (flow_active_insn_p): Require a const rtx_insn * rather than a
26676 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
26678 (can_fallthru): Likewise for locals "insn" and "insn2".
26679 (bb_note): Likewise for local "note".
26680 (first_insn_after_basic_block_note): Likewise for local "note" and
26682 (rtl_split_block): Likewise for locals "insn" and "next".
26683 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
26685 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
26686 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
26688 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
26689 them), "kill_from", "barrier", "new_insn".
26690 (patch_jump_insn): Likewise for params "insn", "old_label".
26691 (redirect_branch_edge): Likewise for locals "old_label", "insn".
26692 (force_nonfallthru_and_redirect): Likewise for locals "insn",
26693 "old_label", "new_label".
26694 (rtl_tidy_fallthru_edge): Likewise for local "q".
26695 (rtl_split_edge): Likewise for locals "before", "last".
26696 (commit_one_edge_insertion): Likewise for locals "before",
26697 "after", "insns", "tmp", "last", adding a checked cast where
26698 currently necessary.
26699 (commit_edge_insertions): Likewise.
26700 (rtl_dump_bb): Likewise for locals "insn", "last".
26701 (print_rtl_with_bb): Likewise for local "x".
26702 (rtl_verify_bb_insns): Likewise for local "x".
26703 (rtl_verify_bb_pointers): Likewise for local "insn".
26704 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
26706 (rtl_verify_fallthru): Likewise for local "insn".
26707 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
26708 (purge_dead_edges): Likewise for local "insn".
26709 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
26710 (skip_insns_after_block): Likewise for return type and for locals
26711 "insn", "last_insn", "next_head", "prev".
26712 (record_effective_endpoints): Likewise for locals "next_insn",
26714 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
26715 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
26716 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
26717 (duplicate_insn_chain): For now, add checked cast from rtx to
26718 rtx_insn * when returning insn.
26719 (cfg_layout_duplicate_bb): Likewise for local "insn".
26720 (cfg_layout_delete_block): Likewise for locals "insn", "next",
26721 "prev", "remaints".
26722 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
26723 (rtl_block_empty_p): Likewise.
26724 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
26725 "split_point", "last".
26726 (rtl_block_ends_with_call_p): Likewise for local "insn".
26727 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
26729 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
26730 "split_at_insn" from rtx to rtx_insn *.
26731 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
26732 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
26733 to const rtx_insn *.
26734 (rtl_account_profile_record): Likewise.
26736 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26738 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
26740 (average_num_loop_insns): Likewise.
26741 (init_set_costs): Likewise for local "seq".
26742 (seq_cost): Likewise for param "seq", from const_rtx to const
26745 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26747 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
26750 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26752 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
26753 "f1" and "f2" from rtx * to rtx_insn **.
26754 (flow_find_head_matching_sequence): Likewise.
26756 * cfgcleanup.c (try_simplify_condjump): Strengthen local
26757 "cbranch_insn" from rtx to rtx_insn *.
26758 (thread_jump): Likewise for local "insn".
26759 (try_forward_edges): Likewise for local "last".
26760 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
26761 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
26763 (can_replace_by): Likewise for params "i1", "i2".
26764 (old_insns_match_p): Likewise.
26765 (merge_notes): Likewise.
26766 (walk_to_nondebug_insn): Likewise for param "i1".
26767 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
26768 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
26769 "afterlast1", "afterlast2" from rtx to rtx_insn *.
26770 (flow_find_head_matching_sequence): Strengthen params "f1" and
26771 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
26772 "last1", "last2", "beforelast1", "beforelast2" from rtx to
26774 (outgoing_edges_match): Likewise for locals "last1", "last2".
26775 (try_crossjump_to_edge): Likewise for local "insn".
26776 Replace call to for_each_rtx with for_each_rtx_in_insn.
26778 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
26779 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
26780 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
26781 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
26782 (try_optimize_cfg): Strengthen local "last" from rtx to
26784 (delete_dead_jumptables): Likewise for locals "insn", "next",
26787 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
26788 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
26789 "rtx else_first_tail", to reflect the basic-block.h changes above.
26791 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26793 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
26795 (purge_dead_tablejump_edges): Likewise.
26796 (find_bb_boundaries): Likewise for locals "insn", "end",
26797 "flow_transfer_insn".
26799 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26801 * caller-save.c (save_call_clobbered_regs): Strengthen locals
26802 "ins" and "prev" from rtx to rtx_insn *.
26804 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26806 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
26808 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
26809 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
26811 (load_register_parameters): Likewise for local "before_arg".
26812 (check_sibcall_argument_overlap): Likewise for param "insn".
26813 (expand_call): Likewise for locals "normal_call_insns",
26814 "tail_call_insns", "insns", "before_call", "after_args",
26815 "before_arg", "last", "prev". Strengthen one of the "last" from
26816 rtx to rtx_call_insn *.
26817 (fixup_tail_calls): Strengthen local "insn" from rtx to
26819 (emit_library_call_value_1): Likewise for locals "before_call" and
26822 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26824 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
26825 and "last" from rtx to rtx_insn *.
26826 (expand_builtin_nonlocal_goto): Likewise for local "insn".
26827 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
26829 (expand_errno_check): Strengthen local "lab" from rtx to
26831 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
26833 (expand_builtin_mathfn_2): Likewise.
26834 (expand_builtin_mathfn_ternary): Likewise.
26835 (expand_builtin_mathfn_3): Likewise.
26836 (expand_builtin_interclass_mathfn): Likewise for local "last".
26837 (expand_builtin_int_roundingfn): Likewise for local "insns".
26838 (expand_builtin_int_roundingfn_2): Likewise.
26839 (expand_builtin_strlen): Likewise for local "before_strlen".
26840 (expand_builtin_strncmp): Likewise for local "seq".
26841 (expand_builtin_signbit): Likewise for local "last".
26842 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
26843 from rtx to rtx_code_label *.
26844 (expand_stack_restore): Strengthen local "prev" from rtx to
26847 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26849 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
26851 (struct btr_def_s): Likewise.
26852 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
26854 (add_btr_def): Likewise.
26855 (new_btr_user): Likewise.
26856 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
26858 (link_btr_uses): Likewise.
26859 (move_btr_def): Likewise for locals "insp", "old_insn",
26860 "new_insn". Add checked cast to rtx_insn * for now on result of
26862 (can_move_up): Strengthen param "insn" from const_rtx to
26865 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26867 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
26869 (get_uncond_jump_length): Likewise for locals "label", "jump".
26870 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
26872 (add_labels_and_missing_jumps): Likewise for local "new_jump".
26873 (fix_up_fall_thru_edges): Likewise for local "old_jump".
26874 (find_jump_block): Likewise for local "insn".
26875 (fix_crossing_conditional_branches): Likewise for locals
26876 "old_jump", "new_jump".
26877 (fix_crossing_unconditional_branches): Likewise for locals
26878 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
26879 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
26881 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26883 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
26885 (struct mem_insn): Likewise for field "insn".
26886 (reg_next_use): Strengthen from rtx * to rtx_insn **.
26887 (reg_next_inc_use): Likewise.
26888 (reg_next_def): Likewise.
26889 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
26890 from rtx to rtx_insn *.
26891 (move_insn_before): Likewise for param "next_insn" and local "insns".
26892 (attempt_change): Likewise for local "mov_insn".
26893 (try_merge): Likewise for param "last_insn".
26894 (get_next_ref): Likewise for return type and local "insn".
26895 Strengthen param "next_array" from rtx * to rtx_insn **.
26896 (parse_add_or_inc): Strengthen param "insn" from rtx to
26898 (find_inc): Likewise for locals "insn" and "other_insn" (three of
26900 (merge_in_block): Likewise for locals "insn", "curr",
26902 (pass_inc_dec::execute): Update allocations of the arrays to
26903 reflect the stronger types.
26905 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26907 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
26908 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
26909 from rtx to rtx_code_label *.
26911 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26913 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
26916 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
26918 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
26919 generated a warning and prevented bootstrapping the compiler.
26921 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26923 * rtl.h (delete_related_insns): Strengthen return type from rtx to
26926 * jump.c (delete_related_insns): Likewise, also for locals "next"
26929 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26931 * genautomata.c (output_internal_insn_latency_func): When writing
26932 the function "internal_insn_latency" to insn-automata.c,
26933 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
26934 allowing the optional guard function of (define_bypass) clauses to
26935 expect a pair of rtx_insn *, rather than a pair of rtx.
26936 (output_insn_latency_func): When writing the function
26937 "insn_latency", add an "uncast_" prefix to params "insn" and
26938 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
26939 using checked casts from the params, thus enabling the above
26940 change to the generated "internal_insn_latency" function.
26942 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
26944 PR tree-optimization/62091
26945 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
26946 handle correctly arrays.
26947 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
26948 inheritance binfos.
26949 (record_known_type): Walk into inner type.
26950 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
26951 condition on no type changes.
26953 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26955 * genattrtab.c (write_attr_get): Within the generated get_attr_
26956 functions, rename param "insn" to "uncast_insn" and reintroduce
26957 "insn" as an local rtx_insn * using a checked cast, so that "insn"
26958 is an rtx_insn * within insn-attrtab.c
26960 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26962 * output.h (peephole): Strengthen return type from rtx to
26964 * rtl.h (delete_for_peephole): Likewise for both params.
26965 * genpeep.c (main): In generated "peephole" function, strengthen
26966 return type and local "insn" from rtx to rtx_insn *. For now,
26967 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
26968 rtx_insn *, with a checked cast.
26969 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
26970 locals "insn", "next", "prev" from rtx to rtx_insn *.
26972 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
26974 PR tree-optimization/62112
26975 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
26976 * gimple-iterator.h (gsi_replace): Return bool.
26977 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
26978 moved from ref_may_alias_global_p.
26979 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
26981 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
26982 (stmt_kills_ref_p_1): Rename...
26983 (stmt_kills_ref_p): ... to this.
26984 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
26985 stmt_kills_ref_p): Declare.
26986 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
26987 Move the self-assignment case...
26988 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
26990 2014-08-21 David Malcolm <dmalcolm@redhat.com>
26992 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
26994 * emit-rtl.c (try_split): Likewise, also for locals "before" and
26995 "after". For now, don't strengthen param "trial", which requires
26996 adding checked casts when returning it.
26998 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27000 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
27001 "label" from rtx to rtx_code_label *. Strengthen param 1 of
27002 "var_location" hook from rtx to rtx_insn *.
27003 (debug_nothing_rtx): Delete in favor of...
27004 (debug_nothing_rtx_code_label): New prototype.
27005 (debug_nothing_rtx_rtx): Delete unused prototype.
27006 (debug_nothing_rtx_insn): New prototype.
27008 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
27009 invoking debug_hooks->var_location (in two places, one in a NOTE
27010 case of a switch statement, the other guarded by a CALL_P
27011 conditional. Add checked cast to rtx_code_label * when invoking
27012 debug_hooks->label (within CODE_LABEL case of switch statement).
27014 * dbxout.c (dbx_debug_hooks): Update "label" hook from
27015 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27016 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
27017 (xcoff_debug_hooks): Likewise.
27018 * debug.c (do_nothing_debug_hooks): Likewise.
27019 (debug_nothing_rtx): Delete in favor of...
27020 (debug_nothing_rtx_insn): New function.
27021 (debug_nothing_rtx_rtx): Delete unused function.
27022 (debug_nothing_rtx_code_label): New function.
27023 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
27024 debug_nothing_rtx to debug_nothing_rtx_code_label.
27025 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
27027 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
27028 debug_nothing_rtx to debug_nothing_rtx_insn.
27029 (sdbout_label): Strengthen param "insn" from rtx to
27031 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
27032 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
27033 "var_location" hook from debug_nothing_rtx to
27034 debug_nothing_rtx_insn.
27036 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27038 * recog.h (insn_output_fn): Update this function typedef to match
27039 the changes below to the generated output functions, strengthening
27040 the 2nd param from rtx to rtx_insn *.
27042 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
27043 insn when invoking an output function, to match the new signature
27044 of insn_output_fn with a stronger second param.
27046 * genconditions.c (write_header): In the generated code for
27047 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
27048 to match the other changes in this patch.
27050 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
27051 the generated "gen_" functions from rtx to rtx_insn * within their
27054 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
27055 the subfunctions within the generated "recog_", "split", "peephole2"
27056 function trees from rtx to rtx_insn *. For now, the top-level
27057 generated functions ("recog", "split", "peephole2") continue to
27058 take a plain rtx for "insn", to avoid introducing dependencies on
27059 other patches. Rename this 2nd param from "insn" to
27060 "uncast_insn", and reintroduce "insn" as a local variable of type
27061 rtx_insn *, initialized at the top of the generated function with
27062 a checked cast on "uncast_insn".
27063 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
27064 the generated "gen_" functions from rtx to rtx_insn * within their
27067 * genoutput.c (process_template): Strengthen the 2nd param within
27068 the generated "output_" functions "insn" from rtx to rtx_insn *.
27070 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27072 * tree-profile.c (tree_profiling): Skip external functions
27073 when doing coverage instrumentation.
27074 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
27076 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27078 * config/rs6000/altivec.h (vec_cpsgn): New #define.
27079 (vec_mergee): Likewise.
27080 (vec_mergeo): Likewise.
27081 (vec_cntlz): Likewise.
27082 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
27083 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
27084 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
27085 VMRGEW, and VMRGOW.
27086 * doc/extend.texi: Document various forms of vec_cpsgn,
27087 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
27088 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
27089 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
27090 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
27091 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
27093 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27095 * config/rs6000/rs6000.c (context.h): New include.
27096 (tree-pass.h): Likewise.
27097 (make_pass_analyze_swaps): New decl.
27098 (rs6000_option_override): Register pass_analyze_swaps.
27099 (swap_web_entry): New subsclass of web_entry_base (df.h).
27100 (special_handling_values): New enum.
27101 (union_defs): New function.
27102 (union_uses): Likewise.
27103 (insn_is_load_p): Likewise.
27104 (insn_is_store_p): Likewise.
27105 (insn_is_swap_p): Likewise.
27106 (rtx_is_swappable_p): Likewise.
27107 (insn_is_swappable_p): Likewise.
27108 (chain_purpose): New enum.
27109 (chain_contains_only_swaps): New function.
27110 (mark_swaps_for_removal): Likewise.
27111 (swap_const_vector_halves): Likewise.
27112 (adjust_subreg_index): Likewise.
27113 (permute_load): Likewise.
27114 (permute_store): Likewise.
27115 (handle_special_swappables): Likewise.
27116 (replace_swap_with_copy): Likewise.
27117 (dump_swap_insn_table): Likewise.
27118 (rs6000_analyze_swaps): Likewise.
27119 (pass_data_analyze_swaps): New pass_data.
27120 (pass_analyze_swaps): New rtl_opt_pass.
27121 (make_pass_analyze_swaps): New function.
27122 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
27124 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27126 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
27127 type from rtx to rtx_insn *.
27128 (create_copy_of_insn_rtx): Likewise.
27129 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
27130 (create_copy_of_insn_rtx): Likewise, also for local "res".
27132 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27134 * rtl.h (find_first_parameter_load): Strengthen return type from
27136 * rtlanal.c (find_first_parameter_load): Strengthen return type
27137 from rtx to rtx_insn *. Add checked cast for now, to postpone
27138 strengthening the params.
27140 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27143 * diagnostic.c: Set default caret.
27144 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
27146 * diagnostic.h (struct diagnostic_context):
27148 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27150 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
27151 (sel_bb_head): Strengthen return type insn_t (currently just an
27152 rtx) to rtx_insn *.
27153 (sel_bb_end): Likewise.
27155 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
27156 (sel_bb_head): Strengthen return type and local "head" from
27157 insn_t (currently just an rtx) to rtx_insn *.
27158 (sel_bb_end): Likewise for return type.
27159 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
27162 2014-08-21 David Malcolm <dmalcolm@redhat.com>
27164 * basic-block.h (get_last_bb_insn): Strengthen return type from
27166 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
27169 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
27172 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
27174 (diagnostic_report_diagnostic): ... from here.
27175 * toplev.c (general_init): Move code to c-family.
27177 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27179 * df.h (web_entry_base): Replace existing struct web_entry with a
27180 new class web_entry_base with only the predecessor member.
27181 (unionfind_root): Remove declaration and move to class member.
27182 (unionfind_union): Remove declaration and move to friend
27184 (union_defs): Remove declaration.
27185 * web.c (web_entry_base::unionfind_root): Modify to be member
27186 function and adjust accessors.
27187 (unionfind_union): Modify to be friend function and adjust
27189 (web_entry): New subclass of web_entry_base containing the reg
27191 (union_match_dups): Modify for struct -> class changes.
27192 (union_defs): Likewise.
27193 (entry_register): Likewise.
27194 (pass_web::execute): Likewise.
27196 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
27198 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
27199 builtin define __VEC_ELEMENT_REG_ORDER__.
27201 2014-08-20 Martin Jambor <mjambor@suse.cz>
27202 Wei Mi <wmi@google.com>
27205 PR middle-end/61776
27206 * tree-ssa-operands.c (update_stmt_operands): Remove
27207 MODIFIED_NORETURN_CALLS.
27208 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
27209 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
27210 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
27211 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
27212 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
27213 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
27214 (gimple_call_set_ctrl_altering): New func.
27215 (gimple_call_ctrl_altering_p): Ditto.
27216 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
27217 (make_blocks): Use gimple_call_initialize_ctrl_altering.
27218 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
27219 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
27220 remove MODIFIED_NORETURN_CALLS.
27222 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27224 * coverage.c (coverage_compute_profile_id): Return non-0;
27225 also handle symbols with unique name.
27226 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
27228 2014-08-20 Steve Ellcey <sellcey@mips.com>
27230 PR middle-end/49191
27231 * doc/sourcebuild.texi (non_strict_align): New.
27233 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
27235 * cgraphunit.c (ipa_passes, compile): Reshedule
27236 symtab_remove_unreachable_nodes passes; update comments.
27237 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
27238 TODO_remove_functions before the pass; the functions ought to be
27240 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
27241 TODO_remove_functions.
27242 * passes.c (pass_data_early_local_passes): Do not schedule function
27244 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
27246 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27249 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
27250 before setting the option.
27251 * diagnostic.c (diagnostic_classify_diagnostic): Record
27252 command-line status.
27254 2014-08-20 Richard Biener <rguenther@suse.de>
27257 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
27258 to build uint{16,32,64}_type_node.
27260 2014-08-20 Terry Guo <terry.guo@arm.com>
27262 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
27263 with immediate_operand.
27265 2014-08-20 David Malcolm <dmalcolm@redhat.com>
27267 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
27268 "insn" from an as_a to a safe_as_a, for the case when "insn" is
27271 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27273 PR preprocessor/51303
27274 * incpath.c (remove_duplicates): Use cpp_warning.
27276 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27280 * doc/options.texi (CPP): Document it.
27281 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
27282 * optc-gen.awk: Handle CPP.
27283 * opth-gen.awk: Likewise.
27285 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27287 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
27289 (duplicate_insn_chain): Likewise.
27290 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
27291 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
27292 checked cast for now (until we can strengthen the params in the
27294 (duplicate_insn_chain): Likewise.
27296 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27298 * rtl.h (next_cc0_user): Strengthen return type from rtx to
27300 (prev_cc0_setter): Likewise.
27302 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
27303 rtx_insn *, adding checked casts for now as necessary.
27304 (prev_cc0_setter): Likewise.
27306 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27308 * expr.h (emit_move_insn): Strengthen return type from rtx to
27310 (emit_move_insn_1): Likewise.
27311 (emit_move_complex_push): Likewise.
27312 (emit_move_complex_parts): Likewise.
27314 * expr.c (emit_move_via_integer): Strengthen return type from rtx
27315 to rtx_insn *. Replace use of NULL_RTX with NULL when working
27317 (emit_move_complex_push): Strengthen return type from rtx to
27319 (emit_move_complex): Likewise, also for local "ret".
27320 (emit_move_ccmode): Likewise.
27321 (emit_move_multi_word): Likewise for return type and locals
27322 "last_insn", "seq".
27323 (emit_move_insn_1): Likewise for return type and locals "result",
27325 (emit_move_insn): Likewise for return type and local "last_insn".
27326 (compress_float_constant): Likewise.
27328 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27330 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
27331 from rtx to rtx_insn *.
27333 * rtl.h (emit_insn_before): Likewise.
27334 (emit_insn_before_noloc): Likewise.
27335 (emit_insn_before_setloc): Likewise.
27336 (emit_jump_insn_before): Likewise.
27337 (emit_jump_insn_before_noloc): Likewise.
27338 (emit_jump_insn_before_setloc): Likewise.
27339 (emit_call_insn_before): Likewise.
27340 (emit_call_insn_before_noloc): Likewise.
27341 (emit_call_insn_before_setloc): Likewise.
27342 (emit_debug_insn_before): Likewise.
27343 (emit_debug_insn_before_noloc): Likewise.
27344 (emit_debug_insn_before_setloc): Likewise.
27345 (emit_label_before): Likewise.
27346 (emit_insn_after): Likewise.
27347 (emit_insn_after_noloc): Likewise.
27348 (emit_insn_after_setloc): Likewise.
27349 (emit_jump_insn_after): Likewise.
27350 (emit_jump_insn_after_noloc): Likewise.
27351 (emit_jump_insn_after_setloc): Likewise.
27352 (emit_call_insn_after): Likewise.
27353 (emit_call_insn_after_noloc): Likewise.
27354 (emit_call_insn_after_setloc): Likewise.
27355 (emit_debug_insn_after): Likewise.
27356 (emit_debug_insn_after_noloc): Likewise.
27357 (emit_debug_insn_after_setloc): Likewise.
27358 (emit_label_after): Likewise.
27359 (emit_insn): Likewise.
27360 (emit_debug_insn): Likewise.
27361 (emit_jump_insn): Likewise.
27362 (emit_call_insn): Likewise.
27363 (emit_label): Likewise.
27364 (gen_clobber): Likewise.
27365 (emit_clobber): Likewise.
27366 (gen_use): Likewise.
27367 (emit_use): Likewise.
27370 (emit_barrier_before): Strengthen return type from rtx to
27372 (emit_barrier_after): Likewise.
27373 (emit_barrier): Likewise.
27375 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
27376 from rtx to rtx_insn *. Add checked casts for now when converting
27377 "last" from rtx to rtx_insn *.
27378 (emit_insn_before_noloc): Likewise for return type.
27379 (emit_jump_insn_before_noloc): Likewise.
27380 (emit_call_insn_before_noloc): Likewise.
27381 (emit_debug_insn_before_noloc): Likewise.
27382 (emit_barrier_before): Strengthen return type and local "insn"
27383 from rtx to rtx_barrier *.
27384 (emit_label_before): Strengthen return type from rtx to
27385 rtx_insn *. Add checked cast for now when returning param
27386 (emit_pattern_after_noloc): Strengthen return type from rtx to
27387 rtx_insn *. Add checked casts for now when converting "last" from
27389 (emit_insn_after_noloc): Strengthen return type from rtx to
27391 (emit_jump_insn_after_noloc): Likewise.
27392 (emit_call_insn_after_noloc): Likewise.
27393 (emit_debug_insn_after_noloc): Likewise.
27394 (emit_barrier_after): Strengthen return type from rtx to
27396 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
27397 Add checked cast for now when converting "label" from rtx to
27399 (emit_pattern_after_setloc): Strengthen return type from rtx to
27400 rtx_insn *. Add checked casts for now when converting "last" from
27402 (emit_pattern_after): Strengthen return type from rtx to
27404 (emit_insn_after_setloc): Likewise.
27405 (emit_insn_after): Likewise.
27406 (emit_jump_insn_after_setloc): Likewise.
27407 (emit_jump_insn_after): Likewise.
27408 (emit_call_insn_after_setloc): Likewise.
27409 (emit_call_insn_after): Likewise.
27410 (emit_debug_insn_after_setloc): Likewise.
27411 (emit_debug_insn_after): Likewise.
27412 (emit_pattern_before_setloc): Likewise. Add checked casts for now
27413 when converting "last" from rtx to rtx_insn *.
27414 (emit_pattern_before): Strengthen return type from rtx to
27416 (emit_insn_before_setloc): Likewise.
27417 (emit_insn_before): Likewise.
27418 (emit_jump_insn_before_setloc): Likewise.
27419 (emit_jump_insn_before): Likewise.
27420 (emit_call_insn_before_setloc): Likewise.
27421 (emit_call_insn_before): Likewise.
27422 (emit_debug_insn_before_setloc): Likewise.
27423 (emit_debug_insn_before): Likewise.
27424 (emit_insn): Strengthen return type and locals "last", "insn",
27425 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
27426 within cases where we know we have an insn.
27427 (emit_debug_insn): Likewise.
27428 (emit_jump_insn): Likewise.
27429 (emit_call_insn): Strengthen return type and local "insn" from rtx
27431 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
27432 a checked cast to rtx_insn * for now on "label".
27433 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
27434 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
27435 (emit_use): Likewise.
27436 (gen_use): Likewise, also for local "seq".
27437 (emit): Likewise for return type and local "insn".
27438 (rtx_insn): Likewise for return type and local "new_rtx".
27440 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
27441 from rtx to rtx_barrier *.
27443 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
27444 changed return type from rtx to rtx_insn *, we must update
27445 "emit_fn" type, and this in turn means updating...
27446 (frame_insn): ...this. Strengthen return type from rtx to
27447 rtx_insn *. Introduce a new local "insn" of the appropriate type.
27449 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27451 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
27452 rtx to rtx_jump_table_data *. Also for local.
27453 * rtl.h (emit_jump_table_data): Likewise.
27455 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27457 * basic-block.h (create_basic_block_structure): Strengthen third
27458 param "bb_note" from rtx to rtx_note *.
27459 * rtl.h (emit_note_before): Strengthen return type from rtx to
27461 (emit_note_after): Likewise.
27462 (emit_note): Likewise.
27463 (emit_note_copy): Likewise. Also, strengthen param similarly.
27464 * function.h (struct rtl_data): Strengthen field
27465 "x_stack_check_probe_note" from rtx to rtx_note *.
27467 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
27468 from rtx to rtx_note *.
27469 * cfgrtl.c (create_basic_block_structure): Strengthen third param
27470 "bb_note" from rtx to rtx_note *.
27471 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
27472 when calling emit_note_copy.
27473 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
27475 (emit_note_after): Likewise.
27476 (emit_note_before): Likewise.
27477 (emit_note_copy): Likewise. Also, strengthen param similarly.
27478 (emit_note): Likewise.
27479 * except.c (emit_note_eh_region_end): Likewise for return type.
27480 Strengthen local "next" from rtx to rtx_insn *.
27481 (convert_to_eh_region_ranges): Strengthen local "note"
27482 from rtx to rtx_note *.
27483 * final.c (change_scope): Likewise.
27484 (reemit_insn_block_notes): Likewise, for both locals named "note".
27485 Also, strengthen local "insn" from rtx to rtx_insn *.
27486 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
27488 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
27489 strengthen local "seq" from rtx to rtx_insn *.
27490 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
27492 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
27494 (get_bb_note_from_pool): Strengthen return type from rtx to
27496 (sel_create_basic_block): Strengthen local "new_bb_note" from
27497 insn_t to rtx_note *.
27498 * var-tracking.c (emit_note_insn_var_location): Strengthen local
27499 "note" from rtx to rtx_note *.
27500 (emit_notes_in_bb): Likewise.
27502 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27504 * function.h (struct rtl_data): Strengthen field
27505 "x_parm_birth_insn" from rtx to rtx_insn *.
27506 * function.c (struct assign_parm_data_all): Strengthen fields
27507 "first_conversion_insn" and "last_conversion_insn" from rtx to
27510 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27512 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
27513 to rtx_insn *; also for local "var_end_seq".
27514 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
27515 (maybe_cleanup_end_of_block): Likewise for param "last" and local
27517 (expand_gimple_cond): Likewise for locals "last2" and "last".
27518 (mark_transaction_restart_calls): Likewise for local "insn".
27519 (expand_gimple_stmt): Likewise for return type and locals "last"
27521 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
27522 (avoid_complex_debug_insns): Likewise for param "insn".
27523 (expand_debug_locations): Likewise for locals "insn", "last",
27524 "prev_insn" and "insn2".
27525 (expand_gimple_basic_block): Likewise for local "last".
27526 (construct_exit_block): Likewise for locals "head", "end",
27528 (pass_expand::execute): Likewise for locals "var_seq",
27529 "var_ret_seq", "next".
27531 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27533 * asan.h (asan_emit_stack_protection): Strengthen return type from
27535 * asan.c (asan_emit_stack_protection): Likewise. Add local
27536 "insns" to hold the return value.
27538 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27540 * basic-block.h (bb_note): Strengthen return type from rtx to
27542 * sched-int.h (bb_note): Likewise.
27543 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
27545 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27547 * rtl.h (make_insn_raw): Strengthen return type from rtx to
27550 * emit-rtl.c (make_insn_raw): Strengthen return type and local
27551 "insn" from rtx to rtx_insn *.
27552 (make_debug_insn_raw): Strengthen return type from rtx to
27553 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
27554 (make_jump_insn_raw): Strengthen return type from rtx to
27555 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
27556 (make_call_insn_raw): Strengthen return type from rtx to
27557 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
27558 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
27559 callback from rtx to rtx_insn *; likewise for local "insn" and
27560 "next", adding a checked cast to rtx_insn in the relevant cases of
27561 the switch statement.
27562 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
27563 callback from rtx to rtx_insn *.
27564 (emit_pattern_after_setloc): Likewise.
27565 (emit_pattern_after): Likewise.
27566 (emit_pattern_before_setloc): Likewise.
27567 (emit_pattern_before): Likewise.
27569 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27571 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
27573 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
27574 accepting an rtx_insn *.
27575 (last_call_insn): Strengthen return type from rtx to
27578 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27580 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
27581 "insns" from rtx to rtx_insn *.
27582 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
27583 locals "insn" and "prev".
27585 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27587 * rtl.h (tablejump_p): Strengthen third param from rtx * to
27588 rtx_jump_table_data **.
27590 * cfgbuild.c (make_edges): Introduce local "table", using it in
27591 place of "tmp" for jump table data.
27592 (find_bb_boundaries): Strengthen local "table" from rtx to
27593 rtx_jump_table_data *.
27594 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
27595 (outgoing_edges_match): Likewise for locals "table1" and "table2".
27596 (try_crossjump_to_edge): Likewise.
27597 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
27599 (patch_jump_insn): Introduce local "table", using it in place of
27600 "tmp" for jump table data.
27601 (force_nonfallthru_and_redirect): Introduce local "table", so that
27602 call to tablejump_p can receive an rtx_jump_table_data **. Update
27603 logic around the call to overwrite "note" appropriately if
27604 tablejump_p returns non-zero.
27605 (get_last_bb_insn): Introduce local "table", using it in place of
27606 "tmp" for jump table data.
27607 * dwarf2cfi.c (create_trace_edges): Likewise.
27609 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
27610 from rtx to rtx_jump_table_data *.
27611 (create_fix_barrier): Strengthen local "tmp" from rtx to
27612 rtx_jump_table_data *.
27613 (arm_reorg): Likewise for local "table".
27615 * config/s390/s390.c (s390_chunkify_start): Likewise.
27617 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
27619 * jump.c (delete_related_insns): Strengthen local "lab_next" from
27620 rtx to rtx_jump_table_data *.
27622 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
27623 rtx_jump_table_data **. Add a checked cast when writing through
27624 the pointer: we know there that local "table" is non-NULL and that
27625 JUMP_TABLE_DATA_P (table) holds.
27626 (label_is_jump_target_p): Introduce local "table", using it in
27627 place of "tmp" for jump table data.
27629 2014-08-19 Marek Polacek <polacek@redhat.com>
27632 * doc/invoke.texi: Document -Wbool-compare.
27634 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27636 * rtl.h (entry_of_function): Strengthen return type from rtx to
27638 * cfgrtl.c (entry_of_function): Likewise.
27640 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27642 * emit-rtl.h (get_insns): Strengthen return type from rtx to
27643 rtx_insn *, adding a checked cast for now.
27644 (get_last_insn): Likewise.
27646 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27648 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
27651 * emit-rtl.c (gen_label_rtx): Likewise.
27653 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27655 * rtl.h (previous_insn): Strengthen return type from rtx to
27657 (next_insn): Likewise.
27658 (prev_nonnote_insn): Likewise.
27659 (prev_nonnote_insn_bb): Likewise.
27660 (next_nonnote_insn): Likewise.
27661 (next_nonnote_insn_bb): Likewise.
27662 (prev_nondebug_insn): Likewise.
27663 (next_nondebug_insn): Likewise.
27664 (prev_nonnote_nondebug_insn): Likewise.
27665 (next_nonnote_nondebug_insn): Likewise.
27666 (prev_real_insn): Likewise.
27667 (next_real_insn): Likewise.
27668 (prev_active_insn): Likewise.
27669 (next_active_insn): Likewise.
27671 * emit-rtl.c (next_insn): Strengthen return type from rtx to
27672 rtx_insn *, adding a checked cast.
27673 (previous_insn): Likewise.
27674 (next_nonnote_insn): Likewise.
27675 (next_nonnote_insn_bb): Likewise.
27676 (prev_nonnote_insn): Likewise.
27677 (prev_nonnote_insn_bb): Likewise.
27678 (next_nondebug_insn): Likewise.
27679 (prev_nondebug_insn): Likewise.
27680 (next_nonnote_nondebug_insn): Likewise.
27681 (prev_nonnote_nondebug_insn): Likewise.
27682 (next_real_insn): Likewise.
27683 (prev_real_insn): Likewise.
27684 (next_active_insn): Likewise.
27685 (prev_active_insn): Likewise.
27687 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
27688 param "stepfunc" so that it returns an rtx_insn * rather than an
27689 rtx, to track the change to prev_nonnote_insn_bb, which is the
27690 only function this is called with.
27691 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
27693 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
27695 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
27698 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27700 * coretypes.h (class rtx_debug_insn): Add forward declaration.
27701 (class rtx_nonjump_insn): Likewise.
27702 (class rtx_jump_insn): Likewise.
27703 (class rtx_call_insn): Likewise.
27704 (class rtx_jump_table_data): Likewise.
27705 (class rtx_barrier): Likewise.
27706 (class rtx_code_label): Likewise.
27707 (class rtx_note): Likewise.
27709 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
27710 adding the invariant DEBUG_INSN_P (X).
27711 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
27712 the invariant NONJUMP_INSN_P (X).
27713 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
27714 the invariant JUMP_P (X).
27715 (class rtx_call_insn): New, a subclass of rtx_insn, adding
27716 the invariant CALL_P (X).
27717 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
27718 invariant JUMP_TABLE_DATA_P (X).
27719 (class rtx_barrier): New, a subclass of rtx_insn, adding the
27720 invariant BARRIER_P (X).
27721 (class rtx_code_label): New, a subclass of rtx_insn, adding
27722 the invariant LABEL_P (X).
27723 (class rtx_note): New, a subclass of rtx_insn, adding
27724 the invariant NOTE_P(X).
27725 (is_a_helper <rtx_debug_insn *>::test): New.
27726 (is_a_helper <rtx_nonjump_insn *>::test): New.
27727 (is_a_helper <rtx_jump_insn *>::test): New.
27728 (is_a_helper <rtx_call_insn *>::test): New.
27729 (is_a_helper <rtx_jump_table_data *>::test): New functions,
27730 overloaded for both rtx and rtx_insn *.
27731 (is_a_helper <rtx_barrier *>::test): New.
27732 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
27733 for both rtx and rtx_insn *.
27734 (is_a_helper <rtx_note *>::test): New.
27736 2014-08-19 Marek Polacek <polacek@redhat.com>
27738 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
27739 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27740 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
27741 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
27743 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27745 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
27746 rtx_insn *. To help with transition, for now, convert from an
27747 access macro into a pair of functions: BND_TO, returning an
27749 (SET_BND_TO): New function, for use where BND_TO is used as an
27752 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
27754 (BND_TO): New function, adding a checked cast.
27755 (SET_BND_TO): New function.
27757 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
27759 (compute_av_set_on_boundaries): Likewise.
27761 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27763 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
27764 destination if it is used in source.
27765 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
27766 (*popcount<mode>2_falsedep_1): Likewise.
27768 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
27771 * configure.ac: Set install_gold_as_default to no first.
27772 * configure: Regenerated.
27774 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27776 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
27777 "note_list" field will eventually be an rtx_insn *. To help with
27778 transition, for now, convert from an access macro into a pair of
27779 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
27780 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
27783 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
27784 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
27786 * sel-sched-ir.c (init_bb): Likewise.
27787 (sel_restore_notes): Likewise.
27788 (move_bb_info): Likewise.
27789 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
27790 (SET_BB_NOTE_LIST): New function.
27792 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27794 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
27795 field will eventually be an rtx_insn *. To help with transition,
27796 for now, convert from an access macro into a pair of functions:
27797 VINSN_INSN_RTX, returning an rtx_insn *, and...
27798 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
27799 is used as an lvalue.
27801 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
27802 SET_VINSN_INSN_RTX where it's used as an lvalue.
27803 (VINSN_INSN_RTX): New function.
27804 (SET_VINSN_INSN_RTX): New function.
27806 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27808 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
27809 eventually be rtx_insn *, but to help with transition, for now,
27810 convert from an access macro into a pair of functions: DEP_PRO
27811 returning an rtx_insn * and...
27812 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
27813 lvalue, returning an rtx&.
27814 (DEP_CON): Analogous changes to DEP_PRO above.
27815 (SET_DEP_CON): Likewise.
27817 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
27818 an lvalue to SET_DEP_CON.
27819 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
27820 (sd_copy_back_deps): Likewise for DEP_CON.
27821 (DEP_PRO): New function, adding a checked cast for now.
27822 (DEP_CON): Likewise.
27823 (SET_DEP_PRO): New function.
27824 (SET_DEP_CON): Likewise.
27826 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27828 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
27829 (extra_options): Add i386/cygwin.opt.
27830 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
27831 (CPP_SPEC): Accept -pthread.
27832 (LINK_SPEC): Ditto.
27833 (GOMP_SELF_SPECS): Update comment.
27834 * config/i386/cygwin.opt: New file for -pthread flag.
27836 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27838 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
27839 * df.h (DF_REF_INSN): Convert from a macro to a function, so
27840 that we can return an rtx_insn *.
27842 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
27844 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
27845 when building executables, not DLLs. Add --large-address-aware
27846 under the same conditions.
27847 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
27848 when building executables, not DLLs. Add --large-address-aware
27849 under the same conditions when using -m32.
27851 * config/i386/cygwin-stdint.h: Throughout, make type
27852 definitions dependent on target architecture, not host.
27854 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27856 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
27857 the return type from rtx to rtx_insn *, which will enable various
27858 conversions in followup patches. For now this is is done by a
27860 (NEXT_INSN): Likewise.
27861 (SET_PREV_INSN): Convert to an inline function. This is intended
27862 for use as an lvalue, and so returns an rtx& to allow in-place
27864 (SET_NEXT_INSN): Likewise.
27866 2014-07-08 Mark Wielaard <mjw@redhat.com>
27869 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
27871 2014-08-19 Marek Polacek <polacek@redhat.com>
27874 * cgraphunit.c (handle_alias_pairs): Fix condition.
27876 2014-08-19 Richard Biener <rguenther@suse.de>
27878 * gimple-fold.c (fold_gimple_assign): Properly build a
27879 null-pointer constant when devirtualizing addresses.
27881 2014-07-07 Mark Wielaard <mjw@redhat.com>
27883 * dwarf2out.c (decl_quals): New function.
27884 (modified_type_die): Take one cv_quals argument instead of two,
27885 one for const and one for volatile.
27886 (add_type_attribute): Likewise.
27887 (generic_parameter_die): Call add_type_attribute with one modifier
27889 (base_type_for_mode): Likewise.
27890 (add_bounds_info): Likewise.
27891 (add_subscript_info): Likewise.
27892 (gen_array_type_die): Likewise.
27893 (gen_descr_array_type_die): Likewise.
27894 (gen_entry_point_die): Likewise.
27895 (gen_enumeration_type_die): Likewise.
27896 (gen_formal_parameter_die): Likewise.
27897 (gen_subprogram_die): Likewise.
27898 (gen_variable_die): Likewise.
27899 (gen_const_die): Likewise.
27900 (gen_field_die): Likewise.
27901 (gen_pointer_type_die): Likewise.
27902 (gen_reference_type_die): Likewise.
27903 (gen_ptr_to_mbr_type_die): Likewise.
27904 (gen_inheritance_die): Likewise.
27905 (gen_subroutine_type_die): Likewise.
27906 (gen_typedef_die): Likewise.
27907 (force_type_die): Likewise.
27909 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27911 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
27913 * configure: Regenerate.
27915 2014-08-19 Richard Biener <rguenther@suse.de>
27917 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
27918 DECL_EXTERNALs in BLOCKs as non-references.
27919 * tree-streamer-out.c (streamer_write_chain): Likewise.
27921 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
27922 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27923 Anna Tikhonova <anna.tikhonova@intel.com>
27924 Ilya Tocar <ilya.tocar@intel.com>
27925 Andrey Turetskiy <andrey.turetskiy@intel.com>
27926 Ilya Verbin <ilya.verbin@intel.com>
27927 Kirill Yukhin <kirill.yukhin@intel.com>
27928 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
27930 * config/i386/sse.md
27931 (define_mode_iterator VI48_AVX512F): Delete.
27932 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
27933 (define_mode_iterator VI2_AVX512VL): Ditto.
27934 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
27937 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
27939 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
27940 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
27941 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27942 with VI48_AVX512F_AVX512VL): New.
27943 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
27944 with VI2_AVX512VL): Ditto.
27946 2014-08-19 Marek Polacek <polacek@redhat.com>
27948 * doc/invoke.texi: Document -Wc99-c11-compat.
27950 2014-08-19 David Malcolm <dmalcolm@redhat.com>
27952 * rtl.h (PREV_INSN): Split macro in two: the existing one,
27953 for rvalues, and...
27954 (SET_PREV_INSN): New macro, for use as an lvalue.
27955 (NEXT_INSN, SET_NEXT_INSN): Likewise.
27957 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
27958 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
27959 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
27960 (fixup_abnormal_edges): Likewise.
27961 (unlink_insn_chain): Likewise.
27962 (fixup_reorder_chain): Likewise.
27963 (cfg_layout_delete_block): Likewise.
27964 (cfg_layout_merge_blocks): Likewise.
27965 * combine.c (update_cfg_for_uncondjump): Likewise.
27966 * emit-rtl.c (link_insn_into_chain): Likewise.
27967 (remove_insn): Likewise.
27968 (delete_insns_since): Likewise.
27969 (reorder_insns_nobb): Likewise.
27970 (emit_insn_after_1): Likewise.
27971 * final.c (rest_of_clean_state): Likewise.
27972 (final_scan_insn): Likewise.
27973 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
27974 * haifa-sched.c (concat_note_lists): Likewise.
27975 (remove_notes): Likewise.
27976 (restore_other_notes): Likewise.
27977 (move_insn): Likewise.
27978 (unlink_bb_notes): Likewise.
27979 (restore_bb_notes): Likewise.
27980 * jump.c (delete_for_peephole): Likewise.
27981 * optabs.c (emit_libcall_block_1): Likewise.
27982 * reorg.c (emit_delay_sequence): Likewise.
27983 (fill_simple_delay_slots): Likewise.
27984 * sel-sched-ir.c (sel_move_insn): Likewise.
27985 (sel_remove_insn): Likewise.
27986 (get_bb_note_from_pool): Likewise.
27987 * sel-sched.c (move_nop_to_previous_block): Likewise.
27989 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
27990 * config/c6x/c6x.c (gen_one_bundle): Likewise.
27991 (c6x_gen_bundles): Likewise.
27992 (hwloop_optimize): Likewise.
27993 * config/frv/frv.c (frv_function_prologue): Likewise.
27994 (frv_register_nop): Likewise.
27995 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
27996 (ia64_reorg): Likewise.
27997 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
27998 (mep_make_bundle): Likewise.
27999 (mep_bundle_insns): Likewise.
28000 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
28001 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
28002 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
28004 2014-08-19 David Malcolm <dmalcolm@redhat.com>
28006 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
28007 return type from rtx to rtx_insn *.
28008 (BB_END): Likewise.
28009 (BB_HEADER): Likewise.
28010 (BB_FOOTER): Likewise.
28011 (SET_BB_HEAD): Convert to a function.
28012 (SET_BB_END): Likewise.
28013 (SET_BB_HEADER): Likewise.
28014 (SET_BB_FOOTER): Likewise.
28016 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
28017 Strengthen the return type from rtx to rtx_insn *. For now, this
28018 is done by adding a checked cast, but this will eventually
28019 become a field lookup.
28020 (BB_END): Likewise.
28021 (BB_HEADER): Likewise.
28022 (BB_FOOTER): Likewise.
28023 (SET_BB_HEAD): New function, from macro of same name. This is
28024 intended for use as an lvalue, and so returns an rtx& to allow
28025 in-place modification.
28026 (SET_BB_END): Likewise.
28027 (SET_BB_HEADER): Likewise.
28028 (SET_BB_FOOTER): Likewise.
28030 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28032 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
28033 for rvalues, and...
28034 (SET_BB_HEAD): New macro, for use as a lvalue.
28035 (BB_END, SET_BB_END): Likewise.
28036 (BB_HEADER, SET_BB_HEADER): Likewise.
28037 (BB_FOOTER, SET_BB_FOOTER): Likewise.
28039 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
28040 of BB_* macros into SET_BB_* macros.
28041 (fix_crossing_unconditional_branches): Likewise.
28042 * caller-save.c (save_call_clobbered_regs): Likewise.
28043 (insert_one_insn): Likewise.
28044 * cfgbuild.c (find_bb_boundaries): Likewise.
28045 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
28046 (outgoing_edges_match): Likewise.
28047 (try_optimize_cfg): Likewise.
28048 * cfgexpand.c (expand_gimple_cond): Likewise.
28049 (expand_gimple_tailcall): Likewise.
28050 (expand_gimple_basic_block): Likewise.
28051 (construct_exit_block): Likewise.
28052 * cfgrtl.c (delete_insn): Likewise.
28053 (create_basic_block_structure): Likewise.
28054 (rtl_delete_block): Likewise.
28055 (rtl_split_block): Likewise.
28056 (emit_nop_for_unique_locus_between): Likewise.
28057 (rtl_merge_blocks): Likewise.
28058 (block_label): Likewise.
28059 (try_redirect_by_replacing_jump): Likewise.
28060 (emit_barrier_after_bb): Likewise.
28061 (fixup_abnormal_edges): Likewise.
28062 (record_effective_endpoints): Likewise.
28063 (relink_block_chain): Likewise.
28064 (fixup_reorder_chain): Likewise.
28065 (fixup_fallthru_exit_predecessor): Likewise.
28066 (cfg_layout_duplicate_bb): Likewise.
28067 (cfg_layout_split_block): Likewise.
28068 (cfg_layout_delete_block): Likewise.
28069 (cfg_layout_merge_blocks): Likewise.
28070 * combine.c (update_cfg_for_uncondjump): Likewise.
28071 * emit-rtl.c (add_insn_after): Likewise.
28072 (remove_insn): Likewise.
28073 (reorder_insns): Likewise.
28074 (emit_insn_after_1): Likewise.
28075 * haifa-sched.c (get_ebb_head_tail): Likewise.
28076 (restore_other_notes): Likewise.
28077 (move_insn): Likewise.
28078 (sched_extend_bb): Likewise.
28079 (fix_jump_move): Likewise.
28080 * ifcvt.c (noce_process_if_block): Likewise.
28081 (dead_or_predicable): Likewise.
28082 * ira.c (update_equiv_regs): Likewise.
28083 * reg-stack.c (change_stack): Likewise.
28084 * sel-sched-ir.c (sel_move_insn): Likewise.
28085 * sel-sched.c (move_nop_to_previous_block): Likewise.
28087 * config/c6x/c6x.c (hwloop_optimize): Likewise.
28088 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
28090 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28092 * rtl.h (for_each_rtx_in_insn): New function.
28093 * rtlanal.c (for_each_rtx_in_insn): Likewise.
28095 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28097 * coretypes.h (class rtx_insn): Add forward declaration.
28099 * rtl.h: Include is-a.h.
28100 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
28101 workaround to ensure gengtype knows inheritance is occurring,
28102 whilst continuing to use the pre-existing special-casing for
28104 (class rtx_insn): New subclass of rtx_def, adding the
28105 invariant that we're dealing with something we can sanely use
28106 INSN_UID, NEXT_INSN, PREV_INSN on.
28107 (is_a_helper <rtx_insn *>::test): New.
28108 (is_a_helper <const rtx_insn *>::test): New.
28110 2014-08-18 David Malcolm <dmalcolm@redhat.com>
28112 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
28114 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28116 * ipa-visibility.c (update_visibility_by_resolution_info): Do no
28117 turn UNDEF comdats as extern.
28119 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
28121 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
28122 to BUILT_IN_UNREACHABLE.
28124 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
28127 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
28129 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
28130 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
28131 (ffs<mode>2): Do not expand with tzcnt for
28132 TARGET_AVOID_FALSE_DEP_FOR_BMI.
28133 (ffssi2_no_cmove): Ditto.
28134 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
28135 (ctz<mode>2): New expander.
28136 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
28137 (*ctz<mode>2_falsedep): New insn.
28138 (*ctz<mode>2): Rename from ctz<mode>2.
28139 (clz<mode>2_lzcnt): New expander.
28140 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
28141 (*clz<mode>2_lzcnt_falsedep): New insn.
28142 (*clz<mode>2): Rename from ctz<mode>2.
28143 (popcount<mode>2): New expander.
28144 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
28145 (*popcount<mode>2_falsedep): New insn.
28146 (*popcount<mode>2): Rename from ctz<mode>2.
28147 (*popcount<mode>2_cmp): Remove.
28148 (*popcountsi2_cmp_zext): Ditto.
28150 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
28152 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
28153 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
28154 * config/microblaze/microblaze.h
28155 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
28157 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
28160 * configure.ac: Set install_gold_as_default to no for
28162 * configure: Regenerated.
28164 2014-08-18 Roman Gareev <gareevroman@gmail.com>
28166 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
28167 * config.in: Add undef of HAVE_isl.
28168 * configure: Regenerate.
28169 * configure.ac: Add definition of HAVE_isl.
28170 * graphite-blocking.c: Add checking of HAVE_isl.
28171 * graphite-dependences.c: Likewise.
28172 * graphite-interchange.c: Likewise.
28173 * graphite-isl-ast-to-gimple.c: Likewise.
28174 * graphite-optimize-isl.c: Likewise.
28175 * graphite-poly.c: Likewise.
28176 * graphite-scop-detection.c: Likewise.
28177 * graphite-sese-to-poly.c: Likewise.
28178 * graphite.c: Likewise.
28179 * toplev.c: Replace the checking of HAVE_cloog with the checking
28182 2014-08-18 Richard Biener <rguenther@suse.de>
28184 PR tree-optimization/62090
28185 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
28186 (fold_builtin_3): Do not fold snprintf.
28187 (fold_builtin_4): Likewise.
28188 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
28189 moved from builtins.c.
28190 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
28191 (gimple_fold_builtin): Do not fold sprintf here.
28193 2014-08-18 Richard Biener <rguenther@suse.de>
28195 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
28197 (maybe_canonicalize_mem_ref_addr): ... this function.
28198 (fold_stmt_1): Apply it here before all simplification.
28200 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
28203 * cgraph.h (cgraph_node::create_indirect_edge): Add
28204 compute_indirect_info param.
28205 * cgraph.c (cgraph_node::create_indirect_edge): Compute
28206 indirect_info only when it is required.
28207 * cgraphclones.c (cgraph_clone_edge): Do not recompute
28208 indirect_info fore cloned indirect edge.
28210 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28211 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28212 Anna Tikhonova <anna.tikhonova@intel.com>
28213 Ilya Tocar <ilya.tocar@intel.com>
28214 Andrey Turetskiy <andrey.turetskiy@intel.com>
28215 Ilya Verbin <ilya.verbin@intel.com>
28216 Kirill Yukhin <kirill.yukhin@intel.com>
28217 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28219 * config/i386/sse.md
28220 (define_mode_iterator VI8_AVX2_AVX512BW): New.
28221 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
28223 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28225 Anna Tikhonova <anna.tikhonova@intel.com>
28226 Ilya Tocar <ilya.tocar@intel.com>
28227 Andrey Turetskiy <andrey.turetskiy@intel.com>
28228 Ilya Verbin <ilya.verbin@intel.com>
28229 Kirill Yukhin <kirill.yukhin@intel.com>
28230 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28232 * config/i386/sse.md
28233 (define_mode_iterator VF1_AVX512VL): New.
28234 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
28235 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
28238 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28239 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28240 Anna Tikhonova <anna.tikhonova@intel.com>
28241 Ilya Tocar <ilya.tocar@intel.com>
28242 Andrey Turetskiy <andrey.turetskiy@intel.com>
28243 Ilya Verbin <ilya.verbin@intel.com>
28244 Kirill Yukhin <kirill.yukhin@intel.com>
28245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28247 * config/i386/i386.c: Rename ufloatv8siv8df_mask to
28248 ufloatv8siv8df2_mask.
28249 * config/i386/i386.md
28250 (define_code_iterator any_float): New.
28251 (define_code_attr floatsuffix): New.
28252 * config/i386/sse.md
28253 (define_mode_iterator VF1_128_256VL): New.
28254 (define_mode_iterator VF2_512_256VL): New.
28255 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove
28256 unnecessary TARGET check.
28257 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
28258 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
28260 (define_mode_attr qq2pssuff): New.
28261 (define_mode_attr sselongvecmode): New.
28262 (define_mode_attr sselongvecmodelower): New.
28263 (define_mode_attr sseintvecmode3): New.
28264 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
28266 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
28267 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
28268 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
28269 (define_insn "ufloatv2siv2df2<mask_name>"): New.
28271 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28272 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28273 Anna Tikhonova <anna.tikhonova@intel.com>
28274 Ilya Tocar <ilya.tocar@intel.com>
28275 Andrey Turetskiy <andrey.turetskiy@intel.com>
28276 Ilya Verbin <ilya.verbin@intel.com>
28277 Kirill Yukhin <kirill.yukhin@intel.com>
28278 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28280 * config/i386/sse.md
28281 (define_mode_iterator VF2_AVX512VL): New.
28282 (define_mode_attr sseintvecmode2): New.
28283 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
28284 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
28285 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
28287 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
28289 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28291 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
28294 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28295 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28296 Anna Tikhonova <anna.tikhonova@intel.com>
28297 Ilya Tocar <ilya.tocar@intel.com>
28298 Andrey Turetskiy <andrey.turetskiy@intel.com>
28299 Ilya Verbin <ilya.verbin@intel.com>
28300 Kirill Yukhin <kirill.yukhin@intel.com>
28301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28303 * config/i386/i386.md
28304 (define_insn "*movoi_internal_avx"): Add evex version.
28305 (define_insn "*movti_internal"): Ditto.
28307 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28308 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28309 Anna Tikhonova <anna.tikhonova@intel.com>
28310 Ilya Tocar <ilya.tocar@intel.com>
28311 Andrey Turetskiy <andrey.turetskiy@intel.com>
28312 Ilya Verbin <ilya.verbin@intel.com>
28313 Kirill Yukhin <kirill.yukhin@intel.com>
28314 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28316 * config/i386/i386.md
28317 (define_attr "isa"): Add avx512dq, noavx512dq.
28318 (define_attr "enabled"): Ditto.
28319 * config/i386/sse.md
28320 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
28322 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
28323 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28324 Anna Tikhonova <anna.tikhonova@intel.com>
28325 Ilya Tocar <ilya.tocar@intel.com>
28326 Andrey Turetskiy <andrey.turetskiy@intel.com>
28327 Ilya Verbin <ilya.verbin@intel.com>
28328 Kirill Yukhin <kirill.yukhin@intel.com>
28329 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28331 * config/i386/i386.c
28332 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
28333 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
28334 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
28335 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
28336 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
28337 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
28338 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
28339 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
28340 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
28341 * config/i386/sse.md
28342 (define_mode_iterator VMOVE): Allow V4TI mode.
28343 (define_mode_iterator V_AVX512VL): New.
28344 (define_mode_iterator V): New handling for AVX512VL.
28345 (define_insn "avx512f_load<mode>_mask"): Delete.
28346 (define_insn "<avx512>_load<mode>_mask"): New.
28347 (define_insn "avx512f_store<mode>_mask"): Delete.
28348 (define_insn "<avx512>_store<mode>_mask"): New.
28351 2014-08-18 Yury Gribov <y.gribov@samsung.com>
28354 * asan.c (instrument_derefs): Fix bitfield check.
28356 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28358 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
28359 * config/rs6000/htm.md (ttest): Remove clobber.
28360 * config/rs6000/predicates.md (any_mask_operand): New predicate.
28361 (and_operand): Reformat.
28362 (and_2rld_operand): New predicate.
28363 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
28365 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
28366 parameter. Handle AND directly.
28367 (rs6000_split_logical_di): Remove last parameter.
28368 (rs6000_split_logical): Remove last parameter. Remove obsolete
28370 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
28371 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
28372 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
28373 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
28374 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
28375 and 5 anonymous splitters): Delete.
28376 (and<mode>3): New expander.
28377 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
28378 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
28379 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
28380 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
28381 (floatdisf2_internal1): Remove clobbers.
28382 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
28383 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
28384 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
28385 (and<mode>3 for BOOL_128): Remove clobber.
28386 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
28387 rs6000_split_logical.
28388 (*bool<mode>3_internal for BOOL_128): Adjust call of
28389 rs6000_split_logical.
28390 (*boolc<mode>3_internal1 for BOOL_128,
28391 *boolc<mode>3_internal2 for BOOL_128,
28392 *boolcc<mode>3_internal1 for BOOL_128,
28393 *boolcc<mode>3_internal2 for BOOL_128,
28394 *eqv<mode>3_internal1 for BOOL_128,
28395 *eqv<mode>3_internal2 for BOOL_128,
28396 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
28397 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
28399 (*vec_reload_and_reg_<mptrsize>): Delete.
28401 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28403 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
28404 and split, *boolccsi3_internal3 and split): Delete.
28405 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
28406 *boolccdi3_internal3 and split): Delete.
28407 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
28408 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
28410 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28412 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
28413 and split, *boolcsi3_internal3 and split): Delete.
28414 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
28415 *boolcdi3_internal3 and split): Delete.
28416 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
28418 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
28420 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
28421 <'u'>: Also support printing the low-order 16 bits.
28422 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
28423 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
28424 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
28425 *booldi3_internal3 and split): Delete.
28426 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
28427 *bool<mode>3_dot2): New.
28428 (two anonymous define_splits for non_logical_cint_operand): Merge.
28430 2014-08-17 Marek Polacek <polacek@redhat.com>
28431 Manuel López-Ibáñez <manu@gcc.gnu.org>
28434 * diagnostic.c (adjust_line): Add gcc_checking_assert.
28435 (diagnostic_show_locus): Don't print caret diagnostic
28436 if a column is larger than the line_width.
28438 2014-08-17 Roman Gareev <gareevroman@gmail.com>
28440 * common.opt: Make the ISL AST generator to be the main code generator
28443 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
28445 * wide-int.h (generic_wide_int): Declare as class instead of struct.
28447 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
28450 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
28452 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
28453 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
28454 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
28456 * config/pa/pa.md (begin_brtab): Delete insn.
28457 (end_brtab): Likewise.
28459 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
28461 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
28463 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
28465 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
28466 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
28467 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
28468 (get_dynamic_type): Remove.
28469 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
28470 (clear_speculation): Bring to ipa-deivrt.h
28471 (get_class_context): Rename to ...
28472 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
28473 (contains_type_p): Update.
28474 (get_dynamic_type): Rename to ...
28475 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
28476 (possible_polymorphic_call_targets): UPdate.
28477 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
28478 * ipa-prop.c (ipa_analyze_call_uses): Update.
28480 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
28482 * doc/invoke.texi (SH options): Document missing processor variant
28483 options. Remove references to Hitachi. Undocument deprecated mspace
28486 2014-08-15 Jason Merrill <jason@redhat.com>
28488 * tree.c (type_hash_canon): Uncomment assert.
28490 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28492 * input.h (in_system_header_at): Add comment.
28494 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28497 * diagnostic.c (build_message_string): Make it extern.
28498 * diagnostic.h (build_message_string): Make it extern.
28500 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
28502 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
28503 load/store from/to non-floating class pseudo.
28505 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28507 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
28509 2014-08-15 Richard Biener <rguenther@suse.de>
28511 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
28512 (get_constraint_for_ssa_var): Remove dead code.
28513 (get_constraint_for_1): Adjust.
28514 (find_what_var_points_to): Likewise.
28515 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
28517 2014-08-15 Ilya Tocar <tocarip@gmail.com>
28520 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
28521 (_mm512_mask_cmpge_epu32_mask): Ditto.
28522 (_mm512_cmpge_epu32_mask): Ditto.
28523 (_mm512_mask_cmpge_epi64_mask): Ditto.
28524 (_mm512_cmpge_epi64_mask): Ditto.
28525 (_mm512_mask_cmpge_epu64_mask): Ditto.
28526 (_mm512_cmpge_epu64_mask): Ditto.
28527 (_mm512_mask_cmple_epi32_mask): Ditto.
28528 (_mm512_cmple_epi32_mask): Ditto.
28529 (_mm512_mask_cmple_epu32_mask): Ditto.
28530 (_mm512_cmple_epu32_mask): Ditto.
28531 (_mm512_mask_cmple_epi64_mask): Ditto.
28532 (_mm512_cmple_epi64_mask): Ditto.
28533 (_mm512_mask_cmple_epu64_mask): Ditto.
28534 (_mm512_cmple_epu64_mask): Ditto.
28535 (_mm512_mask_cmplt_epi32_mask): Ditto.
28536 (_mm512_cmplt_epi32_mask): Ditto.
28537 (_mm512_mask_cmplt_epu32_mask): Ditto.
28538 (_mm512_cmplt_epu32_mask): Ditto.
28539 (_mm512_mask_cmplt_epi64_mask): Ditto.
28540 (_mm512_cmplt_epi64_mask): Ditto.
28541 (_mm512_mask_cmplt_epu64_mask): Ditto.
28542 (_mm512_cmplt_epu64_mask): Ditto.
28543 (_mm512_mask_cmpneq_epi32_mask): Ditto.
28544 (_mm512_mask_cmpneq_epu32_mask): Ditto.
28545 (_mm512_cmpneq_epu32_mask): Ditto.
28546 (_mm512_mask_cmpneq_epi64_mask): Ditto.
28547 (_mm512_cmpneq_epi64_mask): Ditto.
28548 (_mm512_mask_cmpneq_epu64_mask): Ditto.
28549 (_mm512_cmpneq_epu64_mask): Ditto.
28550 (_mm512_castpd_ps): Ditto.
28551 (_mm512_castpd_si512): Ditto.
28552 (_mm512_castps_pd): Ditto.
28553 (_mm512_castps_si512): Ditto.
28554 (_mm512_castsi512_ps): Ditto.
28555 (_mm512_castsi512_pd): Ditto.
28556 (_mm512_castpd512_pd128): Ditto.
28557 (_mm512_castps512_ps128): Ditto.
28558 (_mm512_castsi512_si128): Ditto.
28559 (_mm512_castpd512_pd256): Ditto.
28560 (_mm512_castps512_ps256): Ditto.
28561 (_mm512_castsi512_si256): Ditto.
28562 (_mm512_castpd128_pd512): Ditto.
28563 (_mm512_castps128_ps512): Ditto.
28564 (_mm512_castsi128_si512): Ditto.
28565 (_mm512_castpd256_pd512): Ditto.
28566 (_mm512_castps256_ps512): Ditto.
28567 (_mm512_castsi256_si512): Ditto.
28568 (_mm512_cmpeq_epu32_mask): Ditto.
28569 (_mm512_mask_cmpeq_epu32_mask): Ditto.
28570 (_mm512_mask_cmpeq_epu64_mask): Ditto.
28571 (_mm512_cmpeq_epu64_mask): Ditto.
28572 (_mm512_cmpgt_epu32_mask): Ditto.
28573 (_mm512_mask_cmpgt_epu32_mask): Ditto.
28574 (_mm512_mask_cmpgt_epu64_mask): Ditto.
28575 (_mm512_cmpgt_epu64_mask): Ditto.
28576 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
28577 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
28578 * config/i386/i386.c (enum ix86_builtins): Add
28579 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
28580 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
28581 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
28582 (bdesc_args): Add __builtin_ia32_si512_256si,
28583 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
28584 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
28585 __builtin_ia32_pd512_pd.
28586 (ix86_expand_args_builtin): Handle new FTYPEs.
28587 * config/i386/sse.md (castmode): Add 512-bit modes.
28588 (AVX512MODE2P): New.
28589 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
28590 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
28592 2014-08-15 Richard Biener <rguenther@suse.de>
28594 * fold-const.c (tree_swap_operands_p): Put all constants
28595 last, also strip sign-changing NOPs when considering further
28596 canonicalization. Canonicalize also when optimizing for size.
28598 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28600 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
28601 one_match > zero_match case to just before simple_sequence.
28603 2014-08-15 Richard Biener <rguenther@suse.de>
28605 * data-streamer.h (streamer_string_index, string_for_index):
28607 * data-streamer-out.c (streamer_string_index): Make static.
28608 * data-streamer-in.c (string_for_index): Likewise.
28609 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
28610 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
28612 2014-08-15 Richard Biener <rguenther@suse.de>
28614 PR tree-optimization/62031
28615 * tree-data-ref.c (dr_analyze_indices): Do not set
28616 DR_UNCONSTRAINED_BASE.
28617 (dr_may_alias_p): All indirect accesses have to go the
28618 formerly DR_UNCONSTRAINED_BASE path.
28619 * tree-data-ref.h (struct indices): Remove
28620 unconstrained_base member.
28621 (DR_UNCONSTRAINED_BASE): Remove.
28623 2014-08-15 Jakub Jelinek <jakub@redhat.com>
28625 PR middle-end/62092
28626 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
28627 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
28628 in OMP_CLAUSE_MAP in some outer target region.
28630 2014-08-15 Bin Cheng <bin.cheng@arm.com>
28632 * tree-ssa-loop-ivopts.c (ivopts_data): New field
28633 name_expansion_cache.
28634 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
28635 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
28636 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
28637 (difference_cannot_overflow_p): New parameter. Use affine
28638 expansion for equality check.
28639 (iv_elimination_compare_lt): Pass new argument.
28641 2014-08-14 DJ Delorie <dj@redhat.com>
28643 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
28644 variables to the accumulator.
28646 * config/rl78/predicates.md (rl78_near_mem_operand): New.
28647 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
28648 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
28649 with far-far moves.
28651 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
28652 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
28653 (umulqihi3_virt): Likewise.
28654 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
28655 (umulqihi3_real): Likewise.
28657 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
28659 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28661 PR tree-optimization/62091
28662 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
28663 function_entry_reached.
28664 (walk_aliased_vdefs): Clear it here.
28665 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
28667 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
28669 * ipa-utils.h (compare_virtual_tables): Declare.
28670 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
28672 2014-08-14 Marek Polacek <polacek@redhat.com>
28675 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
28676 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
28678 2014-08-14 Tom de Vries <tom@codesourcery.com>
28680 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
28682 2014-08-14 Tom de Vries <tom@codesourcery.com>
28684 PR rtl-optimization/62004
28685 PR rtl-optimization/62030
28686 * ifcvt.c (rtx_interchangeable_p): New function.
28687 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
28688 * emit-rtl.h (mem_attrs_eq_p): Declare.
28690 2014-08-14 Roman Gareev <gareevroman@gmail.com>
28692 * graphite-scop-detection.c:
28693 Add inclusion of cp-tree.h.
28694 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
28695 in case they are pointers to object types
28697 2014-08-14 Richard Biener <rguenther@suse.de>
28699 * BASE-VER: Change to 5.0.0
28701 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28702 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28703 Anna Tikhonova <anna.tikhonova@intel.com>
28704 Ilya Tocar <ilya.tocar@intel.com>
28705 Andrey Turetskiy <andrey.turetskiy@intel.com>
28706 Ilya Verbin <ilya.verbin@intel.com>
28707 Kirill Yukhin <kirill.yukhin@intel.com>
28708 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28710 * config/i386/sse.md (define_mode_attr avx512): New.
28711 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
28713 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
28714 (define_mode_attr ssse3_avx2): Ditto.
28715 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
28716 (define_mode_attr avx2_avx512bw): New.
28717 (define_mode_attr ssedoublemodelower): New.
28718 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
28719 V32HI, V64QI modes.
28720 (define_mode_attr ssebytemode): Allow V8DI modes.
28721 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
28722 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
28723 (define_mode_attr ssePSmode2): New.
28724 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
28725 V16HI, V32HI modes.
28726 (define_mode_attr dbpsadbwmode): New.
28727 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
28728 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
28729 (vi8_sse4_1_avx2_avx512): New.
28730 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
28732 (define_mode_attr blendbits): Move before its immediate use.
28734 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28736 Anna Tikhonova <anna.tikhonova@intel.com>
28737 Ilya Tocar <ilya.tocar@intel.com>
28738 Andrey Turetskiy <andrey.turetskiy@intel.com>
28739 Ilya Verbin <ilya.verbin@intel.com>
28740 Kirill Yukhin <kirill.yukhin@intel.com>
28741 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28743 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
28744 * config/i386/subst.md
28745 (define_mode_iterator SUBST_V): Update.
28746 (define_mode_iterator SUBST_A): Ditto.
28747 (define_subst_attr "mask_operand7"): New.
28748 (define_subst_attr "mask_operand10"): New.
28749 (define_subst_attr "mask_operand_arg34") : New.
28750 (define_subst_attr "mask_expand_op3"): New.
28751 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
28752 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
28753 (define_subst_attr "mask_avx512vl_condition"): New.
28754 (define_subst_attr "round_mask_operand4"): Ditto.
28755 (define_subst_attr "round_mask_scalar_op3"): Delete.
28756 (define_subst_attr "round_mask_op4"): New.
28757 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
28759 (define_subst_attr "round_modev8sf_condition"): New.
28760 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
28762 (define_subst_attr "round_saeonly_mask_operand4"): New.
28763 (define_subst_attr "round_saeonly_mask_op4"): New.
28764 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
28765 V8DImode, V16SImode.
28766 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
28767 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
28768 (define_subst_attr "mask_expand4_args"): New.
28769 (define_subst "mask_expand4"): New.
28771 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28772 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28773 Anna Tikhonova <anna.tikhonova@intel.com>
28774 Ilya Tocar <ilya.tocar@intel.com>
28775 Andrey Turetskiy <andrey.turetskiy@intel.com>
28776 Ilya Verbin <ilya.verbin@intel.com>
28777 Kirill Yukhin <kirill.yukhin@intel.com>
28778 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28780 * config/i386/i386.md
28781 (define_attr "isa"): Add avx512bw,noavx512bw.
28782 (define_attr "enabled"): Ditto.
28783 (define_split): Add 32/64-bit mask logic.
28784 (define_insn "*k<logic>qi"): New.
28785 (define_insn "*k<logic>hi"): New.
28786 (define_insn "*anddi_1"): Add mask version.
28787 (define_insn "*andsi_1"): Ditto.
28788 (define_insn "*<code><mode>_1"): Ditto.
28789 (define_insn "*<code>hi_1"): Ditto.
28790 (define_insn "kxnor<mode>"): New.
28791 (define_insn "kunpcksi"): New.
28792 (define_insn "kunpckdi"): New.
28793 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
28794 (define_insn "*one_cmplhi2_1"): Ditto.
28796 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28797 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28798 Anna Tikhonova <anna.tikhonova@intel.com>
28799 Ilya Tocar <ilya.tocar@intel.com>
28800 Andrey Turetskiy <andrey.turetskiy@intel.com>
28801 Ilya Verbin <ilya.verbin@intel.com>
28802 Kirill Yukhin <kirill.yukhin@intel.com>
28803 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28805 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
28808 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
28809 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28810 Anna Tikhonova <anna.tikhonova@intel.com>
28811 Ilya Tocar <ilya.tocar@intel.com>
28812 Andrey Turetskiy <andrey.turetskiy@intel.com>
28813 Ilya Verbin <ilya.verbin@intel.com>
28814 Kirill Yukhin <kirill.yukhin@intel.com>
28815 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28817 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
28819 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
28820 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
28821 xmm/ymm16+ when availble.
28822 * config/i386/i386.h
28823 (HARD_REGNO_NREGS): Add mask regs.
28824 (VALID_AVX512F_REG_MODE): Ditto.
28825 (VALID_AVX512F_REG_MODE) : Define.
28826 (VALID_MASK_AVX512BW_MODE): Ditto.
28827 (reg_class) (MASK_REG_P(X)): Define.
28828 * config/i386/i386.md: Do not split long moves with mask register,
28829 use kmovb if avx512bw is availible.
28830 (movdi_internal): Handle mask registers.
28832 2014-08-14 Richard Biener <rguenther@suse.de>
28834 PR tree-optimization/62081
28835 * tree-ssa-loop.c (pass_fix_loops): New pass.
28836 (pass_tree_loop::gate): Do not fixup loops here.
28837 * tree-pass.h (make_pass_fix_loops): Declare.
28838 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
28840 2014-08-14 Richard Biener <rguenther@suse.de>
28842 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
28843 (type_hash_canon): ... this and avoid 2nd lookup for the add.
28845 2014-08-14 Richard Biener <rguenther@suse.de>
28847 PR tree-optimization/62090
28848 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
28849 (fold_builtin_2): Do not fold sprintf.
28850 (fold_builtin_3): Likewise.
28851 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
28852 moved from builtins.c.
28853 (gimple_fold_builtin): Fold sprintf.
28855 2014-08-14 Richard Biener <rguenther@suse.de>
28857 PR rtl-optimization/62079
28858 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
28861 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28863 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
28864 current_function_decl.
28866 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
28868 * cgraph.c (cgraph_node::function_symbol): Fix wrong
28869 cgraph_function_node to cgraph_node::function_symbol
28872 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
28874 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
28875 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
28877 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
28879 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
28882 2014-08-13 Roman Gareev <gareevroman@gmail.com>
28884 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
28887 2014-08-12 Jakub Jelinek <jakub@redhat.com>
28890 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
28891 any registers that are used in mem_insn.
28893 2014-08-12 Steve Ellcey <sellcey@mips.com>
28895 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
28897 2014-08-12 Steve Ellcey <sellcey@mips.com>
28899 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
28900 (MULTILIB_DIRNAMES): Ditto.
28901 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
28902 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
28903 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
28904 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
28905 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
28906 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
28908 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28911 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
28912 of __ARM_SIZEOF_WCHAR_T.
28914 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28917 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
28918 Remove unnecessary attributes.
28920 2014-08-12 Yury Gribov <y.gribov@samsung.com>
28922 * internal-fn.c (init_internal_fns): Fix off-by-one.
28924 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
28925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28926 Anna Tikhonova <anna.tikhonova@intel.com>
28927 Ilya Tocar <ilya.tocar@intel.com>
28928 Andrey Turetskiy <andrey.turetskiy@intel.com>
28929 Ilya Verbin <ilya.verbin@intel.com>
28930 Kirill Yukhin <kirill.yukhin@intel.com>
28931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28933 * config/i386/i386.c (standard_sse_constant_opcode): Use
28934 vpxord/vpternlog if avx512 is availible.
28936 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
28938 PR middle-end/62103
28939 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
28940 bitfields, that is when size doesn't match the size of type or the
28941 size of the constructor.
28943 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28945 * config/rs6000/constraints.md (wh constraint): New constraint,
28946 for FP registers if direct move is available.
28947 (wi constraint): New constraint, for VSX/FP registers that can
28948 handle 64-bit integers.
28949 (wj constraint): New constraint for VSX/FP registers that can
28950 handle 64-bit integers for direct moves.
28951 (wk constraint): New constraint for VSX/FP registers that can
28952 handle 64-bit doubles for direct moves.
28953 (wy constraint): Make documentation match implementation.
28955 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
28956 scalar_in_vmx_p field to simplify tests of whether SFmode or
28957 DFmode can go in the Altivec registers.
28958 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
28959 (rs6000_setup_reg_addr_masks): Likewise.
28960 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
28961 field, and wh/wi/wj/wk constraints.
28962 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
28963 the wh/wi/wj/wk constraints.
28964 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
28965 upper registers, prefer VSX registers unless the operation is a
28966 memory operation with REG+OFFSET addressing.
28968 * config/rs6000/vsx.md (VSr mode attribute): Add support for
28969 DImode. Change SFmode to use ww constraint instead of d to allow
28970 SF registers in the upper registers.
28973 (VSr5): Fix thinko in comment.
28974 (VSa): New mode attribute that is an alternative to wa, that
28975 returns the VSX register class that a mode can go in, but may not
28976 be the preferred register class.
28977 (VS_64dm): New mode attribute for appropriate register classes for
28978 referencing 64-bit elements of vectors for direct moves and normal
28980 (VS_64reg): Likewise.
28981 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
28982 register allocator to only registers the data type can handle.
28983 (vsx_le_perm_load_<mode>): Likewise.
28984 (vsx_le_perm_store_<mode>): Likewise.
28985 (vsx_xxpermdi2_le_<mode>): Likewise.
28986 (vsx_xxpermdi4_le_<mode>): Likewise.
28987 (vsx_lxvd2x2_le_<mode>): Likewise.
28988 (vsx_lxvd2x4_le_<mode>): Likewise.
28989 (vsx_stxvd2x2_le_<mode>): Likewise.
28990 (vsx_add<mode>3): Likewise.
28991 (vsx_sub<mode>3): Likewise.
28992 (vsx_mul<mode>3): Likewise.
28993 (vsx_div<mode>3): Likewise.
28994 (vsx_tdiv<mode>3_internal): Likewise.
28995 (vsx_fre<mode>2): Likewise.
28996 (vsx_neg<mode>2): Likewise.
28997 (vsx_abs<mode>2): Likewise.
28998 (vsx_nabs<mode>2): Likewise.
28999 (vsx_smax<mode>3): Likewise.
29000 (vsx_smin<mode>3): Likewise.
29001 (vsx_sqrt<mode>2): Likewise.
29002 (vsx_rsqrte<mode>2): Likewise.
29003 (vsx_tsqrt<mode>2_internal): Likewise.
29004 (vsx_fms<mode>4): Likewise.
29005 (vsx_nfma<mode>4): Likewise.
29006 (vsx_eq<mode>): Likewise.
29007 (vsx_gt<mode>): Likewise.
29008 (vsx_ge<mode>): Likewise.
29009 (vsx_eq<mode>_p): Likewise.
29010 (vsx_gt<mode>_p): Likewise.
29011 (vsx_ge<mode>_p): Likewise.
29012 (vsx_xxsel<mode>): Likewise.
29013 (vsx_xxsel<mode>_uns): Likewise.
29014 (vsx_copysign<mode>3): Likewise.
29015 (vsx_float<VSi><mode>2): Likewise.
29016 (vsx_floatuns<VSi><mode>2): Likewise.
29017 (vsx_fix_trunc<mode><VSi>2): Likewise.
29018 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
29019 (vsx_x<VSv>r<VSs>i): Likewise.
29020 (vsx_x<VSv>r<VSs>ic): Likewise.
29021 (vsx_btrunc<mode>2): Likewise.
29022 (vsx_b2trunc<mode>2): Likewise.
29023 (vsx_floor<mode>2): Likewise.
29024 (vsx_ceil<mode>2): Likewise.
29025 (vsx_<VS_spdp_insn>): Likewise.
29026 (vsx_xscvspdp): Likewise.
29027 (vsx_xvcvspuxds): Likewise.
29028 (vsx_float_fix_<mode>2): Likewise.
29029 (vsx_set_<mode>): Likewise.
29030 (vsx_extract_<mode>_internal1): Likewise.
29031 (vsx_extract_<mode>_internal2): Likewise.
29032 (vsx_extract_<mode>_load): Likewise.
29033 (vsx_extract_<mode>_store): Likewise.
29034 (vsx_splat_<mode>): Likewise.
29035 (vsx_xxspltw_<mode>): Likewise.
29036 (vsx_xxspltw_<mode>_direct): Likewise.
29037 (vsx_xxmrghw_<mode>): Likewise.
29038 (vsx_xxmrglw_<mode>): Likewise.
29039 (vsx_xxsldwi_<mode>): Likewise.
29040 (vsx_xscvdpspn): Tighten constraints to only use register classes
29042 (vsx_xscvspdpn): Likewise.
29043 (vsx_xscvdpspn_scalar): Likewise.
29045 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
29046 wj, and wk constraints.
29047 (GPR_REG_CLASS_P): New helper macro for register classes targeting
29048 general purpose registers.
29050 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
29052 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
29053 DImode instead of wm. Use wk constraint for direct move of DFmode
29055 (extendsidi2_lfiwax): Likewise.
29056 (lfiwax): Likewise.
29057 (lfiwzx): Likewise.
29058 (movdi_internal64): Likewise.
29060 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
29061 wk constraints. Make the wy constraint documentation match them
29064 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
29066 Replacement of isl_int by isl_val
29067 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
29068 (compute_bounds_for_param): use isl_val instead of isl_int
29069 (compute_bounds_for_loop): likewise
29070 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
29071 (build_linearized_memory_access): use isl_val instead of isl_int
29072 (pdr_stride_in_loop): likewise
29073 * graphite-optimize-isl.c:
29074 (getPrevectorMap): use isl_val instead of isl_int
29076 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
29077 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
29078 (extern the_isl_ctx): declare
29079 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
29080 (extract_affine_gmp): likewise
29082 (build_loop_iteration_domains): likewise
29083 (add_param_constraints): likewise
29085 2014-08-11 Richard Biener <rguenther@suse.de>
29087 PR tree-optimization/62075
29088 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
29089 handle uses in patterns.
29091 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29092 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29093 Anna Tikhonova <anna.tikhonova@intel.com>
29094 Ilya Tocar <ilya.tocar@intel.com>
29095 Andrey Turetskiy <andrey.turetskiy@intel.com>
29096 Ilya Verbin <ilya.verbin@intel.com>
29097 Kirill Yukhin <kirill.yukhin@intel.com>
29098 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29100 * common/config/i386/i386-common.c
29101 (OPTION_MASK_ISA_AVX512VL_SET): Define.
29102 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
29103 (ix86_handle_option): Handle OPT_mavx512vl.
29104 * config/i386/cpuid.h (bit_AVX512VL): Define.
29105 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
29106 set -mavx512vl accordingly.
29107 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29108 OPTION_MASK_ISA_AVX512VL.
29109 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
29110 (ix86_option_override_internal): Define PTA_AVX512VL, handle
29111 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
29112 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
29113 * config/i386/i386.h (TARGET_AVX512VL): Define.
29114 (TARGET_AVX512VL_P(x)): Ditto.
29115 * config/i386/i386.opt: Add mavx512vl.
29117 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
29119 PR tree-optimization/62073
29120 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
29123 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
29124 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29125 Anna Tikhonova <anna.tikhonova@intel.com>
29126 Ilya Tocar <ilya.tocar@intel.com>
29127 Andrey Turetskiy <andrey.turetskiy@intel.com>
29128 Ilya Verbin <ilya.verbin@intel.com>
29129 Kirill Yukhin <kirill.yukhin@intel.com>
29130 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29132 * common/config/i386/i386-common.c
29133 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
29134 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
29135 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
29136 (ix86_handle_option): Handle OPT_mavx512bw.
29137 * config/i386/cpuid.h (bit_AVX512BW): Define.
29138 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
29139 set -mavx512bw accordingly.
29140 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29141 OPTION_MASK_ISA_AVX512BW.
29142 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
29143 (ix86_option_override_internal): Define PTA_AVX512BW, handle
29144 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
29145 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
29146 * config/i386/i386.h (TARGET_AVX512BW): Define.
29147 (TARGET_AVX512BW_P(x)): Ditto.
29148 * config/i386/i386.opt: Add mavx512bw.
29150 2014-08-11 Richard Biener <rguenther@suse.de>
29152 PR tree-optimization/62070
29153 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
29154 Remove SSA checking.
29156 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29158 * asan.c (asan_check_flags): New enum.
29159 (build_check_stmt_with_calls): Removed function.
29160 (build_check_stmt): Split inlining logic to
29161 asan_expand_check_ifn.
29162 (instrument_derefs): Rename parameter.
29163 (instrument_mem_region_access): Rename parameter.
29164 (instrument_strlen_call): Likewise.
29165 (asan_expand_check_ifn): New function.
29166 (asan_instrument): Remove old code.
29167 (pass_sanopt::execute): Change handling of
29168 asan-instrumentation-with-call-threshold.
29169 (asan_clear_shadow): Fix formatting.
29170 (asan_function_start): Likewise.
29171 (asan_emit_stack_protection): Likewise.
29172 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
29173 Update description.
29174 * internal-fn.c (expand_ASAN_CHECK): New function.
29175 * internal-fn.def (ASAN_CHECK): New internal function.
29176 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
29177 Update description.
29178 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
29179 * tree.c: Small comment fix.
29181 2014-08-11 Yury Gribov <y.gribov@samsung.com>
29183 * gimple.c (gimple_call_fnspec): Support internal functions.
29184 (gimple_call_return_flags): Use const.
29185 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
29186 * internal-fn.def: Add fnspec information.
29187 * internal-fn.h (internal_fn_fnspec): New function.
29188 (init_internal_fns): Declare new function.
29189 * internal-fn.c (internal_fn_fnspec_array): New global variable.
29190 (init_internal_fns): New function.
29191 * tree-core.h: Update macro call.
29192 * tree.c (build_common_builtin_nodes): Initialize internal fns.
29194 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
29196 * lto-streamer.h (struct output_block::symbol): Change from
29197 struct symtab_node to plain symtab_node.
29198 (referenced_from_this_partition_p): Change first parameter
29199 from struct symtab_node to plain symtab_node.
29201 2014-08-10 Marek Polacek <polacek@redhat.com>
29204 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
29206 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
29208 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
29209 DECL correctly; do not give up on types in static storage.
29211 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
29213 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
29215 2014-08-09 Roman Gareev <gareevroman@gmail.com>
29217 * graphite-isl-ast-to-gimple.c:
29218 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
29220 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
29222 2014-08-08 Guozhi Wei <carrot@google.com>
29224 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
29226 2014-08-08 Cary Coutant <ccoutant@google.com>
29228 * dwarf2out.c (get_skeleton_type_unit): Remove.
29229 (output_skeleton_debug_sections): Remove skeleton type units.
29230 (output_comdat_type_unit): Likewise.
29231 (dwarf2out_finish): Likewise.
29233 2014-08-07 Yi Yang <ahyangyi@google.com>
29235 * predict.c (expr_expected_value_1): Remove the redundant assignment.
29237 2014-08-08 Richard Biener <rguenther@suse.de>
29239 * lto-streamer.h (struct lto_input_block): Make it a class
29240 with a constructor.
29241 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
29242 (struct lto_function_header, struct lto_simple_header,
29243 struct lto_simple_header_with_strings,
29244 struct lto_decl_header, struct lto_function_header): Make
29245 a simple inheritance hieararchy. Remove unused fields.
29246 (struct lto_asm_header): Remove.
29247 * lto-streamer-out.c (produce_asm): Adjust.
29248 (lto_output_toplevel_asms): Likewise.
29249 (produce_asm_for_decls): Likewise.
29250 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
29251 * data-streamer-in.c (string_for_index): Likewise.
29252 * ipa-inline-analysis.c (inline_read_section): Likewise.
29253 * ipa-prop.c (ipa_prop_read_section): Likewise.
29254 (read_replacements_section): Likewise.
29255 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
29256 * lto-section-in.c (lto_create_simple_input_block): Likewise.
29257 (lto_destroy_simple_input_block): Likewise.
29258 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
29259 (lto_input_toplevel_asms): Likewise.
29261 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
29262 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
29263 Anna Tikhonova <anna.tikhonova@intel.com>
29264 Ilya Tocar <ilya.tocar@intel.com>
29265 Andrey Turetskiy <andrey.turetskiy@intel.com>
29266 Ilya Verbin <ilya.verbin@intel.com>
29267 Kirill Yukhin <kirill.yukhin@intel.com>
29268 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29270 * common/config/i386/i386-common.c
29271 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
29272 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
29273 (ix86_handle_option): Handle OPT_mavx512dq.
29274 * config/i386/cpuid.h (bit_AVX512DQ): Define.
29275 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
29276 set -mavx512dq accordingly.
29277 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29278 OPTION_MASK_ISA_AVX512DQ.
29279 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
29280 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
29281 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
29282 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
29283 * config/i386/i386.h (TARGET_AVX512DQ): Define.
29284 (TARGET_AVX512DQ_P(x)): Ditto.
29285 * config/i386/i386.opt: Add mavx512dq.
29287 2014-08-08 Richard Biener <rguenther@suse.de>
29289 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
29290 target_percent, target_percent_s): Export.
29291 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
29292 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
29293 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
29294 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
29295 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
29296 Move to gimple-fold.c.
29297 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
29299 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
29300 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
29301 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
29302 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
29303 (rewrite_call_expr_array): Remove.
29304 (fold_builtin_sprintf_chk): Likewise.
29305 (fold_builtin_snprintf_chk): Likewise.
29306 (fold_builtin_varargs): Remove handling of sprintf_chk,
29307 vsprintf_chk, snprintf_chk and vsnprintf_chk.
29308 (gimple_fold_builtin_sprintf_chk): Remove.
29309 (gimple_fold_builtin_snprintf_chk): Likewise.
29310 (gimple_fold_builtin_varargs): Likewise.
29311 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
29312 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
29313 * gimple.c (gimple_seq_add_seq_without_update): New function.
29314 * gimple.h (gimple_seq_add_seq_without_update): Declare.
29315 * gimple-fold.c: Include output.h.
29316 (gsi_replace_with_seq_vops): New function, split out from ...
29317 (gimplify_and_update_call_from_tree): ... here.
29318 (replace_call_with_value): New function.
29319 (replace_call_with_call_and_fold): Likewise.
29320 (var_decl_component_p): Moved from builtins.c.
29321 (gimple_fold_builtin_memory_op): Moved from builtins.c
29322 fold_builtin_memory_op and rewritten to GIMPLE.
29323 (gimple_fold_builtin_memset): Likewise.
29324 (gimple_fold_builtin_strcpy): Likewise.
29325 (gimple_fold_builtin_strncpy): Likewise.
29326 (gimple_fold_builtin_strcat): Likewise.
29327 (gimple_fold_builtin_fputs): Likewise.
29328 (gimple_fold_builtin_memory_chk): Likewise.
29329 (gimple_fold_builtin_stxcpy_chk): Likewise.
29330 (gimple_fold_builtin_stxncpy_chk): Likewise.
29331 (gimple_fold_builtin_snprintf_chk): Likewise.
29332 (gimple_fold_builtin_sprintf_chk): Likewise.
29333 (gimple_fold_builtin_strlen): New function.
29334 (gimple_fold_builtin_with_strlen): New function split out from
29335 gimple_fold_builtin.
29336 (gimple_fold_builtin): Change signature and handle
29337 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
29338 here. Call gimple_fold_builtin_with_strlen.
29339 (gimple_fold_call): Adjust.
29341 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29343 * calls.c (precompute_arguments): Check
29344 promoted_for_signed_and_unsigned_p and set the promoted mode.
29345 (promoted_for_signed_and_unsigned_p): New function.
29346 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
29347 and set the promoted mode.
29348 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
29349 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
29350 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
29353 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
29355 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
29356 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29357 (expand_call): Likewise.
29358 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
29359 to get promoted mode.
29360 * combine.c (record_promoted_value): Skip > 0 comparison with
29361 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
29362 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
29363 of SUBREG_PROMOTED_UNSIGNED_P.
29364 (convert_modes): Likewise.
29365 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
29366 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
29367 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
29368 SUBREG_PROMOTED_UNSIGNED_SET.
29369 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
29370 instead of SUBREG_PROMOTED_UNSIGNED_SET.
29371 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
29372 SUBREG_PROMOTED_SET.
29373 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
29374 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
29375 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
29376 of SUBREG_PROMOTED_UNSIGNED_P.
29377 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
29378 (SUBREG_PROMOTED_SET): New define.
29379 (SUBREG_PROMOTED_GET): Likewise.
29380 (SUBREG_PROMOTED_SIGN): Likewise.
29381 (SUBREG_PROMOTED_SIGNED_P): Likewise.
29382 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
29383 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
29384 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
29385 instead of SUBREG_PROMOTED_UNSIGNED_GET.
29386 (nonzero_bits1): Skip > 0 comparison with the results as
29387 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
29388 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
29389 of !SUBREG_PROMOTED_UNSIGNED_P.
29390 * simplify-rtx.c (simplify_unary_operation_1): Use new
29391 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
29392 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
29393 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
29394 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
29396 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
29398 * ipa-devirt.c: Include gimple-pretty-print.h
29399 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
29401 (decl_maybe_in_construction_p): Fix conditional on cdtor check
29402 (get_polymorphic_call_info): Fix return value
29403 (type_change_info): New sturcture based on ipa-prop
29405 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
29406 based on ipa-prop variant.
29407 (extr_type_from_vtbl_ptr_store): New function
29408 based on ipa-prop variant.
29409 (record_known_type): New function.
29410 (check_stmt_for_type_change): New function.
29411 (get_dynamic_type): New function.
29412 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
29413 * tree-ssa-pre.c: ipa-utils.h
29414 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
29415 machinery; sanity check with ipa-prop devirtualization.
29416 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
29419 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29421 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
29422 * alias.c, cfgexpand.c, cgraphbuild.c,
29423 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
29424 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
29425 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
29426 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
29427 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
29428 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
29429 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
29430 dse.c, except.c, gengtype.c, gimple-expr.c,
29431 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
29432 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
29433 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
29434 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
29435 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
29436 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
29438 * pointer-set.c: Remove file.
29439 * pointer-set.h: Remove file.
29441 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29443 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
29444 * config/arm/types.md (f_sels, f_seld): Delete.
29446 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29448 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
29449 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
29450 (aarch64_movdi_<mode>high): Likewise.
29451 (aarch64_mov<mode>high_di): Likewise.
29452 (aarch64_movdi_<mode>low): Likewise.
29453 (aarch64_mov<mode>low_di): Likewise.
29454 (aarch64_movtilow_tilow): Likewise.
29455 Add comment explaining usage of fp,simd attributes and of
29456 TARGET_FLOAT and TARGET_SIMD.
29458 2014-08-07 Ian Bolton <ian.bolton@arm.com>
29459 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29461 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
29462 Use MOVN when one of the half-words is 0xffff.
29464 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29466 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
29468 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29470 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
29471 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
29472 (rfs_str): String corresponding to RFS_* constants.
29473 (rank_for_schedule_stats_t): New typedef.
29474 (rank_for_schedule_stats): New static variable.
29475 (rfs_result): New static function.
29476 (rank_for_schedule): Track statistics for deciding heuristics.
29477 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
29479 (ready_sort): Use them for debug printouts.
29480 (schedule_block): Init statistics state. Print statistics on
29481 rank_for_schedule decisions.
29483 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29485 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
29487 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
29489 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
29492 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
29494 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
29495 function to not conflict.
29496 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
29497 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
29498 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
29499 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
29500 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
29503 2014-08-07 Marek Polacek <polacek@redhat.com>
29505 * fold-const.c (fold_binary_loc): Add folding of
29506 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
29508 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
29510 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
29511 instead of type size.
29512 (ASM_FINISH_DECLARE_OBJECT): Likewise.
29514 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
29516 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
29517 (*thumb1_movqi_insn): Likewise.
29518 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
29520 2014-08-07 Tom de Vries <tom@codesourcery.com>
29522 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29523 (glibc_2_11_or_earlier): Remove effective-target keywords.
29525 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
29527 * config/arm/arm.c (bdesc_2arg): Fix typo.
29528 (arm_atomic_assign_expand_fenv): Remove The default implementation.
29530 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
29532 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
29534 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
29537 * haifa-sched.c (advance_one_cycle): Fix dump.
29538 (schedule_block): Don't advance cycle if we are already at the
29539 beginning of the cycle.
29541 2014-08-06 Martin Jambor <mjambor@suse.cz>
29544 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
29546 2014-08-06 Richard Biener <rguenther@suse.de>
29549 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
29551 (lto_input_tree): Pop SCCs here.
29553 2014-08-06 Richard Biener <rguenther@suse.de>
29555 PR tree-optimization/61320
29556 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
29557 handle misaligned loads.
29559 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
29561 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
29562 (aarch64_expand_vec_perm_const): Check for dup before zip.
29564 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29566 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
29567 CONST_INT_P instead of GET_CODE and compare.
29568 (aarch64_select_cc_mode): Likewise.
29569 (aarch64_print_operand): Likewise.
29570 (aarch64_rtx_costs): Likewise.
29571 (aarch64_simd_valid_immediate): Likewise.
29572 (aarch64_simd_check_vect_par_cnst_half): Likewise.
29573 (aarch64_simd_emit_pair_result_insn): Likewise.
29575 2014-08-05 David Malcolm <dmalcolm@redhat.com>
29577 * gdbhooks.py (find_gcc_source_dir): New helper function.
29578 (class PassNames): New class, locating and parsing passes.def.
29579 (class BreakOnPass): New command "break-on-pass".
29581 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
29583 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
29586 2014-08-05 Richard Biener <rguenther@suse.de>
29588 PR rtl-optimization/61672
29589 * emit-rtl.h (mem_attrs_eq_p): Declare.
29590 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
29591 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
29592 * cfgcleanup.c (merge_memattrs): Likewise.
29593 Include emit-rtl.h.
29595 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29597 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
29598 rather than singleton vectors.
29599 (vqdmlsls_lane_s32): Likewise.
29601 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29603 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
29604 Use VSDQ_HSI mode iterator.
29605 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29606 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
29607 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
29608 Use BUILTIN_VDQHS macro.
29609 (sqrdmulh_laneq): Likewise.
29610 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
29611 (vqdmlals_laneq_s32): Likewise.
29612 (vqdmlslh_laneq_s16): Likewise.
29613 (vqdmlsls_laneq_s32): Likewise.
29614 (vqdmulhh_laneq_s16): Likewise.
29615 (vqdmulhs_laneq_s32): Likewise.
29616 (vqrdmulhh_laneq_s16): Likewise.
29617 (vqrdmulhs_laneq_s32): Likewise.
29619 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29621 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
29622 (vmuld_laneq_f64): Likewise.
29623 (vmuls_laneq_f32): Likewise.
29624 (vmul_n_f64): Likewise.
29625 (vmuld_lane_f64): Reimplement in C.
29626 (vmuls_lane_f32): Likewise.
29628 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29630 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
29632 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
29634 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29636 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
29637 (rbitsi2): Likewise.
29638 (*arm_rev): Set predicable and predicable_short_it attributes.
29640 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29642 * convert.c (convert_to_integer): Guard transformation to lrint by
29645 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
29647 * config/aarch64/aarch64-builtins.c
29648 (aarch64_simd_builtin_type_mode): Delete.
29649 (v8qi_UP): Remap to V8QImode.
29650 (v4hi_UP): Remap to V4HImode.
29651 (v2si_UP): Remap to V2SImode.
29652 (v2sf_UP): Remap to V2SFmode.
29653 (v1df_UP): Remap to V1DFmode.
29654 (di_UP): Remap to DImode.
29655 (df_UP): Remap to DFmode.
29656 (v16qi_UP):V16QImode.
29657 (v8hi_UP): Remap to V8HImode.
29658 (v4si_UP): Remap to V4SImode.
29659 (v4sf_UP): Remap to V4SFmode.
29660 (v2di_UP): Remap to V2DImode.
29661 (v2df_UP): Remap to V2DFmode.
29662 (ti_UP): Remap to TImode.
29663 (ei_UP): Remap to EImode.
29664 (oi_UP): Remap to OImode.
29665 (ci_UP): Map to CImode.
29666 (xi_UP): Remap to XImode.
29667 (si_UP): Remap to SImode.
29668 (sf_UP): Remap to SFmode.
29669 (hi_UP): Remap to HImode.
29670 (qi_UP): Remap to QImode.
29671 (aarch64_simd_builtin_datum): Make mode a machine_mode.
29672 (VAR1): Build builtin name.
29673 (aarch64_init_simd_builtins): Remove dead code.
29675 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29677 * graphite-isl-ast-to-gimple.c:
29678 (set_options): New function.
29679 (scop_to_isl_ast): Add calling of set_options.
29681 2014-08-05 Jakub Jelinek <jakub@redhat.com>
29683 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
29684 (analyze_iv_to_split_insn): Don't initialize them.
29685 (get_ivts_expr): Removed.
29686 (allocate_basic_variable, insert_base_initialization): Use
29687 SET_SRC instead of *get_ivts_expr.
29688 (split_iv): Use &SET_SRC instead of get_ivts_expr.
29690 2014-08-05 Roman Gareev <gareevroman@gmail.com>
29692 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
29693 (translate_isl_ast_for_loop): Add checking of the
29694 flag_loop_parallelize_all.
29695 (ast_build_before_for): New function.
29696 (scop_to_isl_ast): Add checking of the
29697 flag_loop_parallelize_all.
29698 * graphite-dependences.c: Move the defenition of the
29699 scop_get_dependences from graphite-optimize-isl.c to this file.
29700 (apply_schedule_on_deps): Add checking of the ux's emptiness.
29701 (carries_deps): Add checking of the x's value.
29702 * graphite-optimize-isl.c: Move the defenition of the
29703 scop_get_dependences to graphite-dependences.c.
29704 * graphite-poly.h: Add declarations of scop_get_dependences
29707 2014-08-04 Rohit <rohitarulraj@freescale.com>
29710 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
29712 (alt_reg_names): Likewise.
29713 (rs6000_dwarf_register_span): For SPE high registers, replace
29714 dwarf register numbers with GCC hard register numbers.
29715 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
29716 (rs6000_dbx_register_number): For SPE high registers, return dwarf
29717 register number for the corresponding GCC hard register number.
29718 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
29719 newly added GCC hard register numbers for SPE high registers.
29720 (DWARF_FRAME_REGISTERS): Likewise.
29721 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
29722 (DWARF_FRAME_REGNUM): Likewise.
29723 (FIXED_REGISTERS): Likewise.
29724 (CALL_USED_REGISTERS): Likewise.
29725 (CALL_REALLY_USED_REGISTERS): Likewise.
29726 (REG_ALLOC_ORDER): Likewise.
29727 (enum reg_class): Likewise.
29728 (REG_CLASS_NAMES): Likewise.
29729 (REG_CLASS_CONTENTS): Likewise.
29730 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
29732 2014-08-04 Richard Biener <rguenther@suse.de>
29734 * gimple-fold.h (gimple_fold_builtin): Remove.
29735 * gimple-fold.c (gimple_fold_builtin): Make static.
29736 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
29737 fold_stmt, not gimple_fold_builtin.
29739 2014-08-04 Martin Liska <mliska@suse.cz>
29741 * cgraph.h (csi_end_p): Removed.
29742 (csi_next): Likewise.
29743 (csi_node): Likewise.
29744 (csi_start): Likewise.
29745 (cgraph_node_in_set_p): Likewise.
29746 (cgraph_node_set_size): Likewise.
29747 (vsi_end_p): Likewise.
29748 (vsi_next): Likewise.
29749 (vsi_node): Likewise.
29750 (vsi_start): Likewise.
29751 (varpool_node_set_size): Likewise.
29752 (cgraph_node_set_nonempty_p): Likewise.
29753 (varpool_node_set_nonempty_p): Likewise.
29754 * cgraphunit.c (cgraph_process_new_functions): vec replaces
29756 * ipa-inline-transform.c: Likewise.
29757 * ipa-utils.c (cgraph_node_set_new): Removed.
29758 (cgraph_node_set_add): Likewise.
29759 (cgraph_node_set_remove): Likewise.
29760 (cgraph_node_set_find): Likewise.
29761 (dump_cgraph_node_set): Likewise.
29762 (debug_cgraph_node_set): Likewise.
29763 (free_cgraph_node_set): Likewise.
29764 (varpool_node_set_new): Likewise.
29765 (varpool_node_set_add): Likewise.
29766 (varpool_node_set_remove): Likewise.
29767 (varpool_node_set_find): Likewise.
29768 (dump_varpool_node_set): Likewise.
29769 (free_varpool_node_set): Likewise.
29770 (debug_varpool_node_set): Likewise.
29771 * tree-emutls.c (struct tls_var_data):
29772 (emutls_index): Removed.
29773 (emutls_decl): Likewise.
29774 (gen_emutls_addr): Function implementation uses newly added
29775 hash_map<varpool_node *, tls_var_data>.
29776 (clear_access_vars): Likewise.
29777 (create_emultls_var): Likewise.
29778 (ipa_lower_emutls): Likewise.
29779 (reset_access): New function.
29781 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29783 * config/i386/i386.c (ix86_option_override_internal): Add
29784 PTA_RDRND and PTA_MOVBE for bdver4.
29786 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29787 James Greenhalgh <james.greenhalgh@arm.com>
29789 * doc/md.texi (clrsb): Document.
29790 (clz): Change reference to x into operand 1.
29792 (popcount): Likewise.
29794 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29797 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
29798 move to subtarget in serial version if result is ignored.
29800 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29801 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29803 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
29804 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
29805 (sched_analyze_insn): Update use of try_group_insn to
29806 sched_macro_fuse_insns.
29807 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
29808 arguments that are not conditional jumps.
29810 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29812 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's
29813 extended family information. Handle BTVER2 cpu with cpuid family value.
29815 2014-08-04 Tom de Vries <tom@codesourcery.com>
29817 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
29818 (glibc_2_11_or_earlier): Document effective-target keywords.
29820 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29822 * ipa-devirt.c (odr_type_warn_count): Add type.
29823 (possible_polymorphic_call_targets): Set it.
29824 (ipa_devirt): Use it.
29826 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
29828 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
29830 * ipa-devirt.c: Include hash-map.h
29831 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
29832 (clear_speculation): Break out of ...
29833 (get_class_context): ... here; speed up handling obviously useless
29835 (odr_type_warn_count, decl_warn_count): New structures.
29836 (final_warning_record): New structure.
29837 (final_warning_records): New static variable.
29838 (possible_polymorphic_call_targets): Cleanup handling of
29839 speculative info; do not build speculation when user do not care;
29840 record info about warnings when asked for.
29841 (add_decl_warning): New function.
29842 (type_warning_cmp): New function.
29843 (decl_warning_cmp): New function.
29844 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
29845 (gate): Enable pass when warnings are requested.
29846 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
29849 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29851 * hash-map.h (default_hashmap_traits::mark_key_deleted):
29853 (hash_map::remove): New method.
29854 (hash_map::traverse): New method.
29855 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
29856 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
29857 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
29858 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
29859 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
29860 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
29863 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
29865 * hash-set.h: new File.
29866 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
29867 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
29868 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
29869 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
29870 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
29871 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
29872 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
29873 varpool.c: Use hash_set instead of pointer_set.
29875 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
29877 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
29879 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29881 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
29882 for frame access when strict_p is false.
29884 2014-08-01 Renlin Li <renlin.li@arm.com>
29885 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29887 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
29888 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
29889 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
29891 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
29893 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
29894 aarch64_mem_pair_offset.
29896 2014-08-01 Jiong Wang <jiong.wang@arm.com>
29898 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
29900 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
29901 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
29903 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
29905 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
29907 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
29909 PR regression/61510
29910 * cgraphunit.c (analyze_functions): Use get_create rather than get
29911 for decls which are clones of abstract functions.
29913 2014-08-01 Martin Liska <mliska@suse.cz>
29915 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
29916 * ipa-prop.h (count_formal_params): Global function created from static.
29917 * ipa-prop.c (count_formal_params): Likewise.
29918 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
29919 profiles for semantically equivalent functions.
29920 * passes.c (do_per_function): If we load body of a function
29921 during WPA, this condition should behave same.
29922 * varpool.c (ctor_for_folding): More tolerant assert for variable
29923 aliases created during WPA.
29925 2014-08-01 Martin Liska <mliska@suse.cz>
29927 * doc/invoke.texi (Options That Control Optimization): Documentation
29928 for -foptimize-strlen introduced. Optimization levels default options
29931 2014-08-01 Jakub Jelinek <jakub@redhat.com>
29933 * opts.c (common_handle_option): Handle -fsanitize=alignment.
29934 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
29935 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
29937 * stor-layout.h (min_align_of_type): New prototype.
29938 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
29939 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
29941 * ubsan.c: Include builtins.h.
29942 (ubsan_expand_bounds_ifn): Change return type to bool,
29943 always return true.
29944 (ubsan_expand_null_ifn): Change return type to bool, change
29945 argument to gimple_stmt_iterator *. Handle both null and alignment
29946 sanitization, take type from ckind argument's type rather than
29948 (instrument_member_call): Removed.
29949 (instrument_mem_ref): Remove t argument, add mem and base arguments.
29950 Handle both null and alignment sanitization, don't say whole
29951 struct access is member access. Build 3 argument IFN_UBSAN_NULL
29952 call instead of 2 argument.
29953 (instrument_null): Adjust instrument_mem_ref caller. Don't
29954 instrument calls here.
29955 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
29956 like SANITIZE_NULL.
29957 * stor-layout.c (min_align_of_type): New function.
29958 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
29959 Or it into SANITIZE_UNDEFINED.
29960 * doc/invoke.texi (-fsanitize=alignment): Document.
29962 2014-07-31 Andi Kleen <ak@linux.intel.com>
29964 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
29966 2014-07-31 Andi Kleen <ak@linux.intel.com>
29968 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
29970 (vn_reference_compute_hash): Dito.
29971 (vn_nary_op_compute_hash): Dito.
29972 (vn_phi_compute_hash): Dito.
29973 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
29975 2014-07-31 Andi Kleen <ak@linux.intel.com>
29977 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
29978 Rename to inchash:add_expr_commutative. Convert to inchash.
29979 (iterative_hash_hashable_expr): Rename to
29980 inchash:add_hashable_expr. Convert to inchash.
29981 (avail_expr_hash): Dito.
29983 2014-07-31 Andi Kleen <ak@linux.intel.com>
29985 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
29986 Convert to inchash.
29988 2014-07-31 Andi Kleen <ak@linux.intel.com>
29990 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
29992 2014-07-31 Andi Kleen <ak@linux.intel.com>
29994 * Makefile.in (OBJS): Add rtlhash.o
29995 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
29996 (loc_checksum): Dito.
29997 (loc_checksum_ordered): Dito.
29998 (hash_loc_operands): Dito.
30000 (hash_loc_list): Dito.
30001 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
30002 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
30003 * rtlhash.c: New file.
30004 * rtlhash.h: New file.
30006 2014-07-31 Andi Kleen <ak@linux.intel.com>
30008 * inchash.h (inchash): Change inchash class to namespace.
30009 (class hash): ... Rename from inchash.
30010 (add_object): Move from macro to class template.
30011 * lto-streamer-out.c (hash_tree): Change inchash
30013 * tree.c (build_type_attribute_qual_variant): Dito.
30014 (type_hash_list): Dito.
30015 (attribute_hash_list): Dito.
30016 (iterative_hstate_expr): Rename to inchash::add_expr
30017 (build_range_type_1): Change inchash to inchash::hash
30018 and use hash::add_expr.
30019 (build_array_type_1): Dito.
30020 (build_function_type): Dito
30021 (build_method_type_directly): Dito.
30022 (build_offset_type): Dito.
30023 (build_complex_type): Dito.
30024 (make_vector_type): Dito.
30025 * tree.h (iterative_hash_expr): Dito.
30027 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
30029 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
30031 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30033 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
30034 correct alphabetical position.
30035 (vpaddd_f64): Rewrite using builtins.
30036 (vpaddd_s64): Move to correct alphabetical position.
30039 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
30042 * config/sh/sh.c (sh_legitimate_address_p,
30043 sh_legitimize_reload_address): Handle reg+reg address modes when
30044 ALLOW_INDEXED_ADDRESS is false.
30045 * config/sh/predicates.md (general_movsrc_operand,
30046 general_movdst_operand): Likewise.
30048 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30050 * config/aarch64/aarch64-builtins.c
30051 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
30054 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
30056 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
30057 the generated mask based on BYTES_BIG_ENDIAN.
30058 (aarch64_simd_check_vect_par_cnst_half): New.
30059 * config/aarch64/aarch64-protos.h
30060 (aarch64_simd_check_vect_par_cnst_half): New.
30061 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
30062 the check out to aarch64_simd_check_vect_par_cnst_half.
30063 (vect_par_cnst_lo_half): Likewise.
30064 * config/aarch64/aarch64-simd.md
30065 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
30066 (move_hi_quad_<mode>): Always generate a low mask.
30068 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30070 * doc/invoke.texi (AVR Options): Add documentation about
30071 __AVR_DEVICE_NAME__ built-in macro.
30073 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
30076 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
30077 constraints are satisfied.
30078 (<shift>di3_neon): Likewise.
30080 2014-07-31 Richard Biener <rguenther@suse.de>
30082 PR tree-optimization/61964
30083 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
30084 by structural equality.
30086 2014-07-31 Yury Gribov <y.gribov@samsung.com>
30088 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
30089 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
30090 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
30092 * gcc.c (sanitize_spec_function): Support new option.
30093 (SANITIZER_SPEC): Remove now redundant check.
30094 * opts.c (common_handle_option): Support new option.
30095 (finish_options): Check for incompatibilities.
30096 * toplev.c (process_options): Split userspace-specific checks.
30098 2014-07-31 Richard Biener <rguenther@suse.de>
30100 * lto-streamer.h (struct output_block): Remove global.
30101 (struct data_in): Remove labels, num_named_labels and
30102 num_unnamed_labels.
30103 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
30104 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
30106 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
30109 * common.opt (-Wreturn-local-addr): Moved from c.opt.
30110 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
30111 (isolate_path): New argument to avoid inserting a trap.
30112 (find_implicit_erroneous_behaviour): Handle returning the address
30113 of a local variable.
30114 (find_explicit_erroneous_behaviour): Likewise.
30116 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
30119 * toplev.c (init_random_seed): Move piece of code never called to
30121 (set_random_seed): see above.
30123 2014-07-31 Tom de Vries <tom@codesourcery.com>
30125 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
30127 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
30129 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
30130 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
30132 2014-07-31 Richard Biener <rguenther@suse.de>
30134 * data-streamer.h (streamer_write_data_stream): Declare here,
30136 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
30137 * lto-cgraph.c (lto_output_node): Adjust.
30138 (lto_output_varpool_node): Likewise.
30139 * data-streamer-out.c (streamer_string_index): Likewise.
30140 (streamer_write_data_stream, lto_append_block): Move from ...
30141 * lto-section-out.c (lto_output_data_stream,
30142 lto_append_block): ... here.
30144 2014-07-30 Mike Stump <mikestump@comcast.net>
30146 * configure.ac: Also check for popen.
30147 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
30148 * configure: Regenerate.
30149 * config.in: Regenerate.
30151 2014-07-30 Martin Jambor <mjambor@suse.cz>
30153 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
30154 parameter to gimple.
30156 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30158 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
30159 address as second parameter to __tpf_eh_return routine.
30161 2014-07-30 Jiong Wang <jiong.wang@arm.com>
30163 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
30166 2014-07-30 Tom Tromey <tromey@redhat.com>
30169 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
30170 * doc/extend.texi (Type Attributes): Document designated_init
30173 2014-07-30 Roman Gareev <gareevroman@gmail.com>
30175 * graphite-isl-ast-to-gimple.c:
30176 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
30177 (gcc_expression_from_isl_expression): Pass type to
30178 gcc_expression_from_isl_ast_expr_id.
30180 2014-07-30 Richard Biener <rguenther@suse.de>
30182 * lto-streamer.h (lto_write_data): New function.
30183 * langhooks.c (lhd_append_data): Do not free block.
30184 * lto-section-out.c (lto_write_data): New function writing
30185 raw data to the current section.
30186 (lto_write_stream): Adjust for langhook semantic change.
30187 (lto_destroy_simple_output_block): Write header directly.
30188 * lto-opts.c (lto_write_options): Write options directly.
30189 * lto-streamer-out.c (produce_asm): Write heaeder directly.
30190 (lto_output_toplevel_asms): Likewise.
30191 (copy_function_or_variable): Copy data directly.
30192 (write_global_references): Output index table directly.
30193 (lto_output_decl_state_refs): Likewise.
30194 (write_symbol): Write data directly.
30195 (produce_symtab): Adjust.
30196 (produce_asm_for_decls): Output header and refs directly.
30198 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30200 * ipa-devirt.c (polymorphic_call_target_d): Rename
30201 nonconstruction_targets to speculative_targets
30202 (get_class_context): Fix handling of contextes without outer type;
30203 avoid matching non-polymorphic types in LTO.
30204 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
30205 parameter to speculative_targetsp; handle speculation.
30206 (dump_possible_polymorphic_call_targets): Update dumping.
30208 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
30210 * common.opt (Wodr): Enable by default.
30212 2014-07-29 Olivier Hainque <hainque@adacore.com>
30214 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
30216 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
30219 * gengtype.c (strtoken): New function.
30220 (create_user_defined_type): Replace strtok with strtoken.
30222 2014-07-29 Nathan Sidwell <nathan@acm.org>
30224 * gcov-io.c (gcov_var): Make hidden.
30225 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
30226 (gcov_do_dump): Declare.
30227 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
30229 2014-07-29 Martin Jambor <mjambor@suse.cz>
30231 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
30232 parameter to gimple.
30233 (sra_modify_assign): Likewise.
30235 2014-07-29 Richard Biener <rguenther@suse.de>
30237 PR middle-end/52478
30238 * expr.c (expand_expr_real_2): Revert last change.
30240 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30242 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
30243 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
30244 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
30246 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
30247 (contains_type_p): Forward declare.
30248 (polymorphic_call_target_hasher::hash): Hash speculative info.
30249 (polymorphic_call_target_hasher::equal): Compare speculative info.
30250 (get_class_context): Handle speuclation.
30251 (contains_type_p): Update.
30252 (get_polymorphic_call_info_for_decl): Update.
30253 (walk_ssa_copies): Break out from ...
30254 (get_polymorphic_call_info): ... here; set speculative context
30256 * ipa-prop.c (ipa_write_indirect_edge_info,
30257 ipa_read_indirect_edge_info): Stream speculative context.
30258 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
30259 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
30260 SPECULATIVE_MAYBE_DERIVED_TYPE).
30261 (possible_polymorphic_call_targets overriders): Update.
30262 (dump_possible_polymorphic_call_targets overriders): Update.
30263 (dump_possible_polymorphic_call_target_p overriders): Update.
30265 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
30267 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
30268 ipa-devirt path; fix thinko there.
30270 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
30272 * config/i386/i386.c (ix86_return_in_memory): Replace one
30273 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
30275 2014-07-28 Marek Polacek <polacek@redhat.com>
30277 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
30279 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
30281 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
30282 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
30283 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
30284 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30285 (USE_LD_AS_NEEDED): Likewise.
30286 (ASM_APP_ON): Likewise.
30287 (ASM_APP_OFF): Likewise.
30288 (TARGET_POSIX_IO): Likewise.
30289 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
30290 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
30291 (USE_LD_AS_NEEDED): Likewise.
30292 (ASM_APP_ON): Likewise.
30293 (ASM_APP_OFF): Likewise.
30294 (TARGET_POSIX_IO): Likewise.
30296 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
30298 PR middle-end/61734
30299 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
30300 operators other than the equality operators.
30302 2014-07-28 Richard Biener <rguenther@suse.de>
30304 PR middle-end/52478
30305 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
30306 sure to register SImode ones, not only >= word_mode ones.
30307 * expr.c (expand_expr_real_2): When expanding -ftrapv
30308 binops do not use OPTAB_LIB_WIDEN.
30310 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
30312 PR middle-end/61919
30313 * tree-outof-ssa.c (insert_partition_copy_on_edge)
30314 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
30315 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
30316 inserting them in the insn stream.
30318 2014-07-28 Marek Polacek <polacek@redhat.com>
30320 PR middle-end/61913
30321 * common.opt (Wodr): Add Var.
30323 2014-07-28 Richard Biener <rguenther@suse.de>
30325 PR tree-optimization/61921
30326 * tree-ssa-structalias.c (create_variable_info_for_1): Check
30327 if there is a varpool node before dereferencing it.
30329 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30331 * graphite-sese-to-poly.c:
30332 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
30333 id of the pbb), which contains pointer to the pbb1.
30335 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
30337 2014-07-28 Roman Gareev <gareevroman@gmail.com>
30339 * graphite-isl-ast-to-gimple.c:
30340 (graphite_create_new_guard): New function.
30341 (translate_isl_ast_node_if): New function.
30342 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
30344 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
30346 2014-07-27 Anthony Green <green@moxielogic.com>
30348 * config.gcc: Add moxie-*-moxiebox* configuration.
30349 * config/moxie/moxiebox.h: New file.
30351 2014-07-26 Andrew Pinski <apinski@cavium.com>
30353 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
30354 from the read only register.
30356 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30358 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
30359 as the allocation class if it isn't likely to be spilled.
30361 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
30363 * rtl.h (tls_referenced_p): Declare.
30364 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
30365 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
30366 (mips_cannot_force_const_mem): Use tls_referenced_p.
30367 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
30368 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
30369 instead of pa_tls_referenced_p.
30370 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
30371 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
30372 (pa_legitimate_constant_p): Likewise.
30373 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
30374 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
30375 (rs6000_cannot_force_const_mem, rs6000_emit_move)
30376 (rs6000_address_for_altivec): Use tls_referenced_p instead of
30377 rs6000_tls_referenced_p.
30378 (rs6000_tls_symbol_ref_1): Delete.
30380 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
30383 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30384 Optimize inverse of a VEC_CONCAT.
30386 2014-07-25 Xinliang David Li <davidxl@google.com>
30388 * params.def: New parameter.
30389 * coverage.c (get_coverage_counts): Check new flag.
30390 (coverage_compute_profile_id): Check new flag.
30391 (coverage_begin_function): Check new flag.
30392 (coverage_end_function): Check new flag.
30393 * value-prof.c (coverage_node_map_initialized_p): New function.
30394 (init_node_map): Populate map with all functions.
30395 * doc/invoke.texi: Document new parameter.
30397 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
30398 Richard Biener <rguenther@suse.de>
30400 * lto-streamer-out.c (struct sccs): Turn to ...
30401 (class DFS): ... this one; refactor the DFS walk so it can
30402 be re-done on per-SCC basis.
30403 (DFS::DFS): New constructor.
30404 (DFS::~DFS): New destructor.
30405 (hash_tree): Add new MAP argument holding in-SCC hash values;
30406 remove POINTER_TYPE hashing hack.
30407 (scc_entry_compare): Rename to ...
30408 (DFS::scc_entry_compare): ... this one.
30409 (hash_scc): Rename to ...
30410 (DFS::hash_scc): ... this one; pass output_block instead
30411 of streamer_cache; work harder to get unique and stable SCC
30413 (DFS_write_tree): Rename to ...
30414 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
30415 (lto_output_tree): Update.
30417 2014-07-25 Andi Kleen <ak@linux.intel.com>
30419 * lto-streamer-out.c (hash_tree): Convert to inchash.
30421 2014-07-25 Andi Kleen <ak@linux.intel.com>
30423 * tree.c (build_type_attribute_qual_variant): Use inchash.
30424 (type_hash_list): Dito.
30425 (attribute_hash_list): Dito
30426 (iterative_hstate_expr): Dito.
30427 (iterative_hash_expr): Dito.
30428 (build_range_type_1): Dito.
30429 (build_array_type_1): Dito.
30430 (build_function_type): Dito.
30431 (build_method_type_directly): Dito.
30432 (build_offset_type): Dito.
30433 (build_complex_type): Dito.
30434 (make_vector_type): Dito.
30435 * tree.h (iterative_hash_expr): Add compat wrapper.
30436 (iterative_hstate_expr): Add.
30438 2014-07-25 Andi Kleen <ak@linux.intel.com>
30440 * Makefile.in (OBJS): Add inchash.o.
30441 (PLUGIN_HEADERS): Add inchash.h.
30442 * ipa-devirt.c: Include inchash.h.
30443 * lto-streamer-out.c: Dito.
30444 * tree-ssa-dom.c: Dito.
30445 * tree-ssa-pre.c: Dito.
30446 * tree-ssa-sccvn.c: Dito.
30447 * tree-ssa-tail-merge.c: Dito.
30449 * tree.c (iterative_hash_hashval_t): Move to ...
30450 (iterative_hash_host_wide_int): Move to ...
30451 * inchash.c: Here. New file.
30452 * tree.h (iterative_hash_hashval_t): Move to ...
30453 (iterative_hash_host_wide_int): Move to ...
30454 * inchash.h: Here. New file.
30456 2014-07-25 Richard Biener <rguenther@suse.de>
30458 PR middle-end/61762
30459 PR middle-end/61894
30460 * fold-const.c (native_encode_int): Add and handle offset
30461 parameter to do partial encodings of expr.
30462 (native_encode_fixed): Likewise.
30463 (native_encode_real): Likewise.
30464 (native_encode_complex): Likewise.
30465 (native_encode_vector): Likewise.
30466 (native_encode_string): Likewise.
30467 (native_encode_expr): Likewise.
30468 * fold-const.c (native_encode_expr): Add offset parameter
30470 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
30471 (fold_ctor_reference): Handle all reads from tcc_constant
30474 2014-07-25 Richard Biener <rguenther@suse.de>
30476 * tree-inline.c (estimate_move_cost): Mark speed_p argument
30477 as possibly unused.
30479 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30481 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
30483 2014-07-24 Kyle McMartin <kyle@redhat.com>
30485 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
30487 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30489 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
30491 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
30493 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
30494 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
30495 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
30497 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30499 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
30500 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
30501 aggregate types. Instead, *all* aggregate types, except for single-
30502 element or homogeneous float/vector aggregates, are quadword-aligned
30503 if required by their type alignment. Issue -Wpsabi note when a type
30504 is now treated differently than before.
30506 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30508 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
30509 does not fit fully into floating-point registers, and there is still
30510 space in the register parameter area, use GPRs to pass those parts
30511 of the argument. Issue -Wpsabi note if any parameter is now treated
30512 differently than before.
30513 (rs6000_arg_partial_bytes): Update.
30515 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
30517 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
30519 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30521 * rtl.h (target_rtl): Remove lang_dependent_initialized.
30522 * toplev.c (initialize_rtl): Don't use it. Move previously
30523 "language-dependent" calls to...
30524 (backend_init): ...here.
30525 (lang_dependent_init_target): Don't set lang_dependent_initialized.
30526 Assert that RTL initialization hasn't happend yet.
30528 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30530 PR rtl-optimization/61629
30531 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
30532 they have already been initialized.
30534 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
30536 PR middle-end/61268
30537 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
30538 DECL_INCOMING_RTL and entry_parm.
30539 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
30540 * calls.c (load_register_parameters): Likewise argument values.
30541 (emit_library_call_value_1, store_one_arg): Likewise argument
30543 * config/i386/i386.c (assign_386_stack_local): Likewise the local
30545 * explow.c (validize_mem): Modify the argument in-place.
30547 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30549 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
30550 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
30552 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30554 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
30555 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
30557 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30559 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
30560 (aarch64_save_callee_saves): New parameter "skip_wb".
30561 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
30563 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30565 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
30567 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
30569 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30571 * graphite-isl-ast-to-gimple.c:
30572 (graphite_create_new_loop): Add calling of isl_id_free to properly
30573 decrement reference counts.
30575 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
30577 2014-07-24 Martin Liska <mliska@suse.cz>
30578 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
30580 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
30581 (rs6000_code_end): Likewise.
30583 2014-07-24 Martin Liska <mliska@suse.cz>
30585 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
30586 symtab_node funtion used.
30587 (rs6000_xcoff_declare_object_name): Likewise.
30589 2014-07-24 Martin Liska <mliska@suse.cz>
30591 * cgraphunit.c (compile): Correct function used.
30593 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30595 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
30598 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
30601 * varasm.c (bss_initializer_p): Handle offlined ctors.
30602 (align_variable, get_variable_align): Likewise.
30603 (make_decl_one_only): Likewise.
30604 (default_binds_local_p_1): Likewise.
30605 (decl_binds_to_current_def_p): Likewise.
30606 (get_variable_section): Get constructor if it is offlined.
30607 (assemble_variable_contents): Sanity check that the caller
30608 streamed in the ctor in LTO.
30610 2014-07-24 Roman Gareev <gareevroman@gmail.com>
30612 * graphite-isl-ast-to-gimple.c:
30613 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
30614 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
30615 isl_ast_op_pdiv_r to the different case.
30617 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
30619 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30621 PR middle-end/61876
30622 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
30623 when flag_errno_math is on.
30625 2014-07-24 Martin Liska <mliska@suse.cz>
30627 * cgraph.h (varpool_node):
30628 (availability get_availability (void)):
30629 created from cgraph_variable_initializer_availability
30630 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
30631 created from: cgraph_variable_initializer_availability
30632 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
30633 (void finalize_named_section_flags (void)):
30634 created from varpool_finalize_named_section_flags
30635 (bool assemble_decl (void)): created from varpool_assemble_decl
30636 (void analyze (void)): created from varpool_analyze_node
30637 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
30638 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
30639 (void remove_initializer (void)): created from varpool_remove_initializer
30640 (tree get_constructor (void)): created from varpool_get_constructor
30641 (bool externally_visible_p (void)): created from varpool_externally_visible_p
30642 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
30643 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
30644 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
30645 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
30646 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
30647 (static bool output_variables (void)): created from varpool_output_variables
30648 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
30649 created from varpool_extra_name_alias
30650 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
30651 (static void dump_varpool (FILE *f)): created from dump_varpool
30652 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
30653 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
30654 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
30655 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
30656 (void assemble_aliases (void)): created from assemble_aliases
30658 2014-07-24 Martin Liska <mliska@suse.cz>
30660 * cgraph.h (symtab_node):
30661 (void register_symbol (void)): created from symtab_register_node
30662 (void remove (void)): created from symtab_remove_node
30663 (void dump (FILE *f)): created from dump_symtab_node
30664 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
30665 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
30666 (struct ipa_ref *add_reference (symtab_node *referred_node,
30667 enum ipa_ref_use use_type)): created from add_reference
30668 (struct ipa_ref *add_reference (symtab_node *referred_node,
30669 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
30670 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
30671 gimple stmt)): created from maybe_add_reference
30672 (bool semantically_equivalent_p (symtab_node *target)): created from
30673 symtab_semantically_equivalent_p
30674 (void remove_from_same_comdat_group (void)): created from
30675 remove_from_same_comdat_group
30676 (void add_to_same_comdat_group (symtab_node *old_node)): created from
30677 symtab_add_to_same_comdat_group
30678 (void dissolve_same_comdat_group_list (void)): created from
30679 symtab_dissolve_same_comdat_group_list
30680 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
30681 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
30682 created from symtab_alias_ultimate_target
30683 (inline symtab_node *next_defined_symbol (void)): created from
30684 symtab_next_defined_symbol
30685 (bool resolve_alias (symtab_node *target)): created from
30686 symtab_resolve_alias
30687 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
30688 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
30689 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
30690 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
30691 (void set_section (const char *section)): created from set_section_1
30692 (enum availability get_availability (void)): created from symtab_node_availability
30693 (void make_decl_local (void)): created from symtab_make_decl_local
30694 (bool real_symbol_p (void)): created from symtab_read_node
30695 (can_be_discarded_p (void)): created from symtab_can_be_discarded
30696 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
30697 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
30698 symtab_in_same_comdat_p;
30699 (bool address_taken_from_non_vtable_p (void)): created from
30700 address_taken_from_non_vtable_p
30701 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
30702 (static void dump_table (FILE *)): created from dump_symtab
30703 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
30704 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
30705 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
30706 symtab_used_from_object_file_p
30707 (void dump_base (FILE *)): created from dump_symtab_base
30708 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
30709 (void unregister (void)): created from symtab_unregister_node
30710 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
30711 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
30712 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
30713 symtab_nonoverwritable_alias_1
30714 * cgraph.h (cgraph_node):
30715 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
30716 created from cgraph_remove_node_and_inline_clones
30717 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
30718 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
30719 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
30720 (cgraph_node *function_symbol (enum availability *avail = NULL)):
30721 created from cgraph_function_node
30722 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
30723 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
30724 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
30725 created from cgraph_create_clone
30726 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
30727 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
30728 created from cgraph_create_virtual_clone
30729 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
30730 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
30731 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
30732 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
30733 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
30734 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
30735 created from cgraph_function_version_info
30736 (struct cgraph_function_version_info *insert_new_function_version (void)):
30737 created from insert_new_cgraph_node_version
30738 (struct cgraph_function_version_info *function_version (void)): created from
30739 get_cgraph_node_version
30740 (void analyze (void)): created from analyze_function
30741 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
30742 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
30743 tree real_alias) cgraph_add_thunk
30744 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
30745 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
30746 created from cgraph_function_or_thunk_node
30747 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
30748 created from expand_thunk
30749 (void reset (void)): created from cgraph_reset_node
30750 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
30751 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
30752 (void remove (void)): created from cgraph_remove_node
30753 (void dump (FILE *f)): created from dump_cgraph_node
30754 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
30755 (bool get_body (void)): created from cgraph_get_body
30756 (void release_body (void)): created from cgraph_release_function_body
30757 (void unnest (void)): created from cgraph_unnest_node
30758 (void make_local (void)): created from cgraph_make_node_local
30759 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
30760 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
30761 gcov_type count, int freq)): created from cgraph_create_edge
30762 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
30763 gcov_type count, int freq)): created from cgraph_create_indirect_edge
30764 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
30765 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
30766 created from cgraph_create_edge_including_clones
30767 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
30768 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
30769 (void remove_callers (void)): created from cgraph_node_remove_callers
30770 (void remove_callees (void)): created from cgraph_node_remove_callees
30771 (enum availability get_availability (void)): created from cgraph_function_body_availability
30772 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
30773 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
30774 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
30775 (void call_duplication_hooks (cgraph_node *node2)): created from
30776 cgraph_call_node_duplication_hooks
30777 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
30778 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
30779 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
30780 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
30781 (void call_function_insertion_hooks (void)):
30782 created from cgraph_call_function_insertion_hooks
30783 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
30784 (bool local_p (void)): created from cgraph_local_node
30785 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
30786 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
30787 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
30788 (inline bool only_called_directly_or_aliased_p (void)):
30789 created from cgraph_only_called_directly_or_aliased_p
30790 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
30791 created from cgraph_will_be_removed_from_program_if_no_direct_calls
30792 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
30793 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
30794 (bool can_remove_if_no_direct_calls_p (void)):
30795 created from cgraph_can_remove_if_no_direct_calls_p
30796 (inline bool has_gimple_body_p (void)):
30797 created from cgraph_function_with_gimple_body_p
30798 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
30799 (static void dump_cgraph (FILE *f)): created from dump_cgraph
30800 (static inline void debug_cgraph (void)): created from debug_cgraph
30801 (static void record_function_versions (tree decl1, tree decl2)):
30802 created from record_function_versions
30803 (static void delete_function_version (tree decl)):
30804 created from delete_function_version
30805 (static void add_new_function (tree fndecl, bool lowered)):
30806 created from cgraph_add_new_function
30807 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
30808 (static cgraph_node * create (tree decl)): created from cgraph_create_node
30809 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
30810 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
30811 (static cgraph_node *get_for_asmname (tree asmname)):
30812 created from cgraph_node_for_asm
30813 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
30814 created from cgraph_same_body_alias
30815 (static bool used_from_object_file_p_worker (cgraph_node *node,
30816 void *): new function
30817 (static bool non_local_p (cgraph_node *node, void *)):
30818 created from cgraph_non_local_node_p_1
30819 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
30820 created from verify_cgraph
30821 (static bool make_local (cgraph_node *node, void *)):
30822 created from cgraph_make_node_local
30823 (static cgraph_node *create_alias (tree alias, tree target)):
30824 created from cgraph_create_function_alias
30825 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
30826 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
30827 created from cgraph_create_edge_1
30828 * cgraph.h (varpool_node):
30829 (void remove (void)): created from varpool_remove_node
30830 (void dump (FILE *f)): created from dump_varpool_node
30832 2014-07-24 Richard Biener <rguenther@suse.de>
30835 * tree-ssa-structalias.c (create_variable_info_for_1):
30836 Use varpool_get_constructor.
30837 (create_variable_info_for): Likewise.
30839 2014-07-24 Jiong Wang <jiong.wang@arm.com>
30841 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
30842 subtract outgoing area size when restoring stack_pointer_rtx.
30844 2014-07-24 Nick Clifton <nickc@redhat.com>
30846 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
30847 that operations are taking place in parallel.
30848 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
30850 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
30852 * omp-low.c (extract_omp_for_data): Add missing break statement.
30854 2014-07-24 Richard Biener <rguenther@suse.de>
30856 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
30857 * tree-inline.c (estimate_move_cost): Add speed_p parameter
30858 and adjust MOVE_RATIO query accordingly.
30859 (estimate_num_insns): Adjust callers.
30860 * ipa-prop.c (ipa_populate_param_decls): Likewise.
30861 * ipa-cp.c (gather_context_independent_values,
30862 estimate_local_effects): Likewise.
30863 * ipa-split.c (consider_split): Likewise.
30865 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
30867 * config/i386/driver-i386.c: Remove names of unused arguments and
30868 unnecessary unused attributes.
30869 * config/i386/host-mingw32.c: Likewise.
30870 * config/i386/i386.c: Likewise.
30871 * config/i386/winnt-stubs.c: Likewise.
30872 * config/i386/winnt.c: Likewise.
30874 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30876 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
30877 (aarch64_gen_loadwb_pair): New helper function.
30878 (aarch64_expand_epilogue): Simplify code using new helper functions.
30879 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
30881 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30883 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
30884 (aarch64_gen_storewb_pair): New helper function.
30885 (aarch64_expand_prologue): Simplify code using new helper functions.
30886 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
30888 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30890 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
30891 Rename to aarch64_save_callee_saves, remove restore code.
30892 (aarch64_restore_callee_saves): New function.
30894 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30896 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
30897 (aarch64_save_callee_saves): New function to handle reg save
30898 for both core and vectore regs.
30900 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30902 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
30903 (aarch64_gen_store_pair): New helper function.
30904 (aarch64_save_or_restore_callee_save_registers)
30905 (aarch64_save_or_restore_fprs): Use new helper functions.
30907 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30909 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
30910 (aarch64_save_or_restore_callee_save_registers)
30911 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
30913 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30915 * config/aarch64/aarch64.c
30916 (aarch64_save_or_restore_callee_save_registers)
30917 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
30919 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30921 * config/aarch64/aarch64.c
30922 (aarch64_save_or_restore_callee_save_registers)
30923 (aarch64_save_or_restore_fprs): Remove 'increment'.
30925 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30927 * config/aarch64/aarch64.c
30928 (aarch64_save_or_restore_callee_save_registers)
30929 (aarch64_save_or_restore_fprs): Use register offset in
30930 cfun->machine->frame.reg_offset.
30932 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30934 * config/aarch64/aarch64.c
30935 (aarch64_save_or_restore_callee_save_registers)
30936 (aarch64_save_or_restore_fprs): Remove base_rtx.
30938 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30940 * config/aarch64/aarch64.c
30941 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
30942 to 'start_offset'. Remove local variable 'start_offset'.
30944 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30946 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
30947 type to HOST_WIDE_INT.
30949 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30951 * config/aarch64/aarch64.c (aarch64_expand_prologue)
30952 (aarch64_save_or_restore_fprs)
30953 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
30955 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30957 * config/arm/t-rtems-eabi: Add
30958 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
30959 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
30960 mbig-endian/mthumb/march=armv7-r, and
30961 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
30964 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
30965 Chris Johns <chrisj@rtems.org>
30966 Joel Sherrill <joel.sherrill@oarcorp.com>
30968 * config.gcc: Add nios2-*-rtems*.
30969 * config/nios2/rtems.h: New file.
30970 * gcc/config/nios2/t-rtems: New file.
30972 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
30975 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
30976 constant numbers, not general constants.
30977 (rs6000_expand_vector_init): Ditto.
30979 2014-07-23 Nathan Sidwell <nathan@acm.org>
30981 * gcov-tool.c (gcov_list): Declare here.
30982 (set_gcov_list): Remove.
30983 (gcov_output_files): Set gcov_list directly.
30985 2014-07-23 Host Schirmeier <horst@schirmeier.com>
30987 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
30989 2014-07-23 Jiong Wang <jiong.wang@arm.com>
30991 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
30992 callee-saved registers are available for padding purpose
30993 and r3 is not mandatory, then prefer use those callee-saved
30996 2014-07-23 Richard Biener <rguenther@suse.de>
30998 * params.def (PARAM_MAX_COMBINE_INSNS): New.
30999 * combine.c: Include statistics.h and params.h.
31000 (combine_instructions): Guard three and four insn combines
31001 with max-combine-insns value. Record statistics for combines
31003 * doc/invoke.texi (max-combine-insns): Document new param.
31005 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31007 * graphite-isl-ast-to-gimple.c:
31008 (translate_isl_ast_node_block): New function.
31009 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
31011 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
31012 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
31014 2014-07-23 Roman Gareev <gareevroman@gmail.com>
31016 * graphite-isl-ast-to-gimple.c:
31017 (get_max_schedule_dimensions): New function.
31018 (extend_schedule): Likewise.
31019 (generate_isl_schedule): Add calling of extend_schedule and
31020 get_max_schedule_dimensions.
31022 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31024 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
31025 (case UNSPEC): Handle UNSPEC_RBIT.
31027 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31029 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
31030 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
31032 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31034 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
31036 2014-07-22 Roman Gareev <gareevroman@gmail.com>
31038 * graphite-isl-ast-to-gimple.c:
31039 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
31040 (ivs_params_clear):
31041 (build_iv_mapping): New function.
31042 (translate_isl_ast_node_user): Likewise.
31043 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
31045 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
31046 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
31047 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
31049 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31052 * config/arm/arm.md (setmem): New pattern.
31053 * config/arm/arm-protos.h (struct tune_params): New fields.
31054 (arm_gen_setmem): New prototype.
31055 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
31056 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31057 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31058 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
31059 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
31060 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
31061 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
31062 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31063 (arm_const_inline_cost): New function.
31064 (arm_block_set_max_insns): New function.
31065 (arm_block_set_non_vect_profit_p): New function.
31066 (arm_block_set_vect_profit_p): New function.
31067 (arm_block_set_unaligned_vect): New function.
31068 (arm_block_set_aligned_vect): New function.
31069 (arm_block_set_unaligned_non_vect): New function.
31070 (arm_block_set_aligned_non_vect): New function.
31071 (arm_block_set_vect, arm_gen_setmem): New functions.
31073 2014-07-21 Bin Cheng <bin.cheng@arm.com>
31075 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
31077 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
31080 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
31081 out of #ifdef __OPTIMIZE__.
31083 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31085 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
31086 different trapping status if -fnon-call-exceptions is enabled.
31088 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
31090 * expr.c (store_field): Handle VOIDmode for calls that return values
31091 in multiple locations.
31093 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31095 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
31096 (altivec_vsldoi_<mode>): Likewise.
31098 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31100 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
31101 to the number of characters in the line.
31103 2014-07-20 Roman Gareev <gareevroman@gmail.com>
31105 * graphite-isl-ast-to-gimple.c: Add using of
31106 build_nonstandard_integer_type instead of int128_integer_type_node.
31108 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
31110 * toplev.c (output_stack_usage): Adjust the location of the warning.
31112 2014-07-19 Daniel Cederman <cederman@gaisler.com>
31114 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
31115 (*membar_storeload): Disable for LEON3.
31117 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
31119 PR rtl-optimization/61461
31120 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
31122 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
31125 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
31126 Fix instruction constraint.
31127 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
31129 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
31131 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
31133 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
31135 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
31136 GNU coding standards.
31137 (nds32_register_move_cost): Likewise.
31138 (nds32_memory_move_cost): Likewise.
31139 (nds32_address_cost): Likewise.
31141 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31143 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
31145 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
31147 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
31148 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
31149 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
31150 (HAVE_sync_compare_and_swapqi): Define.
31151 (HAVE_sync_compare_and_swaphi): Likewise.
31152 (HAVE_sync_compare_and_swapsi): Likewise.
31154 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
31156 * config/mips/p5600.md: Add missing cpu tests.
31158 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31160 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
31161 (vmla_f64): Likewise.
31162 (vfms_f64): Likewise.
31163 (vmls_f64): Likewise.
31165 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31167 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
31168 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
31170 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31172 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
31173 (vmlal_high_lane_s32): Likewise.
31174 (vmlal_high_lane_u16): Likewise.
31175 (vmlal_high_lane_u32): Likewise.
31176 (vmlsl_high_lane_s16): Likewise.
31177 (vmlsl_high_lane_s32): Likewise.
31178 (vmlsl_high_lane_u16): Likewise.
31179 (vmlsl_high_lane_u32): Likewise.
31181 2014-07-17 Terry Guo <terry.guo@arm.com>
31183 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
31184 (alus_reg): Renamed to alus_sreg.
31185 * config/arm/arm-fixed.md: Change type of non-dsp instructions
31186 from alu_reg to alu_sreg. Change type of dsp instructions from
31187 alu_reg to alu_dsp_reg.
31188 * config/arm/thumb1.md: Likewise.
31189 * config/arm/thumb2.md: Likewise.
31190 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
31191 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
31192 with alu_sreg and alus_sreg.
31193 * config/arm/arm1026ejs.md (alu_op): Likewise.
31194 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
31195 * config/arm/arm926ejs.md (9_alu_op): Likewise.
31196 * config/arm/fa526.md (526_alu_op): Likewise.
31197 * config/arm/fa606te.md (606te_alu_op): Likewise.
31198 * config/arm/fa626te.md (626te_alu_op): Likewise.
31199 * config/arm/fa726te.md (726te_alu_op): Likewise.
31200 * config/arm/fmp626.md (mp626_alu_op): Likewise.
31201 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
31202 alu_sreg, alu_dsp_reg and alus_sreg.
31203 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
31204 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31205 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31206 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
31207 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
31208 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31209 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31210 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31211 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
31212 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
31213 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
31214 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
31215 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
31216 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
31217 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
31218 alus_reg to alus_sreg.
31220 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
31222 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
31225 2014-07-17 Richard Biener <rguenther@suse.de>
31227 PR rtl-optimization/61801
31228 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
31229 don't set reg_pending_barrier if it appears in a debug-insn.
31231 2014-07-16 DJ Delorie <dj@redhat.com>
31233 * config/rx/rx.c (rx_option_override): Fix alignment values.
31234 (rx_align_for_label): Likewise.
31236 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
31239 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
31240 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
31241 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
31243 (cris_print_index, cris_print_operand, cris_constant_index_p)
31244 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
31245 (cris_address_cost): Ditto last CONSTANT_P.
31246 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
31247 callers changed. Yield cris_offsettable_symbol for non-PIC
31248 constant symbolic expressions including labels. Yield cris_unspec
31250 (cris_expand_pic_call_address): New parameter MARKERP. Set its
31251 target to pic_offset_table_rtx for calls that will likely go
31252 through PLT, const0_rtx when they can't. All callers changed.
31253 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
31254 symbolic expressions to be PICified. Remove second, redundant,
31255 assert on can_create_pseudo_p returning non-zero. Use
31256 replace_equiv_address_nv, not replace_equiv_address, for final
31258 * config/cris/cris.md ("movsi"): Move variable t to pattern
31259 toplevel. Adjust assert for new cris_symbol_type member. Use
31260 CONSTANT_P instead of CONSTANT_ADDRESS_P.
31261 ("*movsi_internal") <case 9>: Make check for valid unspec operands
31263 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
31264 ("call", "call_value"): Use second incoming operand as a marker
31265 for pic-offset-table-register being used.
31266 ("*expanded_call_non_v32", "*expanded_call_v32")
31267 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
31268 second incoming operand to CALL, match cris_call_type_marker.
31269 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
31270 ("*expanded_call_side"): Ditto. Fix typo in comment.
31271 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
31273 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
31274 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
31275 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
31276 users changed. Add members cris_offsettable_symbol and cris_unspec.
31277 (cris_symbol_type): Rename from cris_pic_symbol_type.
31278 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
31280 * config/cris/cris-protos.h (cris_symbol_type_of,
31281 cris_expand_pic_call_address): Adjust prototypes.
31282 (cris_legitimate_constant_p): New prototype.
31284 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
31285 an existing tmake_file. Don't add t-slibgcc and t-linux.
31287 2014-07-17 Jason Merrill <jason@redhat.com>
31290 * symtab.c (symtab_remove_from_same_comdat_group): Also
31291 set_comdat_group to NULL_TREE.
31292 (verify_symtab): Fix diagnostic.
31294 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
31297 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
31299 2014-07-16 Dodji Seketeli <dodji@redhat.com>
31301 Support location tracking for built-in macro tokens
31302 * input.h (is_location_from_builtin_token): New function declaration.
31303 * input.c (is_location_from_builtin_token): New function definition.
31304 * toplev.c (general_init): Tell libcpp what the pre-defined
31305 spelling location for built-in tokens is.
31307 2014-07-16 Jakub Jelinek <jakub@redhat.com>
31309 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
31310 on the FUNCTION_DECL.
31312 2014-07-16 Richard Biener <rguenther@suse.de>
31315 * doc/extend.texi (always_inline): Clarify.
31317 2014-07-15 Eric Christopher <echristo@gmail.com>
31319 * doc/invoke.texi (Link Options): Document -z option.
31321 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
31323 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
31324 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
31326 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
31328 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
31330 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
31332 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
31333 varpool_assemble_decl.
31334 * varpool.c (varpool_assemble_decl): Assert that node->definition is
31337 2014-07-15 Michael Matz <matz@suse.de>
31339 PR rtl-optimization/61772
31340 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
31342 2014-07-15 Richard Biener <rguenther@suse.de>
31344 * opts.c (default_options_table): Disable bit-ccp at -Og.
31346 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31348 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
31350 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
31352 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
31353 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
31354 call langhook for unknown declaration.
31355 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
31356 * tree.h (DECL_ARGUMENTS): Update.
31357 * print-tree.c (print_node): Update.
31358 * tree-core.h (tree_decl_non_common): Remove arguments.
31359 (tree_function_decl): Add arguments.
31361 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
31363 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
31365 2014-07-14 Richard Biener <rguenther@suse.de>
31367 PR tree-optimization/61779
31368 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
31369 simplifying a condition.
31371 2014-07-14 Richard Biener <rguenther@suse.de>
31373 * builtins.c (c_strlen): Make only_value == 2 really only
31374 affect warning generation.
31376 2014-07-14 Richard Biener <rguenther@suse.de>
31378 PR tree-optimization/61757
31379 PR tree-optimization/61783
31380 PR tree-optimization/61787
31381 * tree-ssa-dom.c (record_equality): Revert canonicalization
31382 change and add comment.
31383 (propagate_rhs_into_lhs): Revert previous fix, removing
31384 loop depth restriction again.
31386 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31388 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
31389 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
31390 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
31391 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
31392 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
31393 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
31394 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
31396 2014-07-14 Richard Biener <rguenther@suse.de>
31398 * cgraph.h (decl_in_symtab_p): Make inline.
31400 2014-07-14 Jakub Jelinek <jakub@redhat.com>
31402 PR middle-end/61294
31403 * doc/invoke.texi (-Wmemset-transposed-args): Document.
31406 * config/i386/i386.c (classify_argument): Don't merge classes above
31409 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
31411 * cgraph.h (symtab_node): Add nonzero_address.
31412 (decl_in_symtab_p): Break out from ...
31413 (symtab_get_node): ... here.
31414 * fold-const.c: Include cgraph.h
31415 (tree_single_nonzero_warnv_p): Use symtab to determine
31416 if symbol is non-zero.
31417 * symtab.c (symtab_node::nonzero_address): New method.
31419 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31421 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
31422 forgotten in previous commit.
31424 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31426 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
31428 * ipa-devirt.c: Include stor-layout.h and intl.h
31429 (odr_subtypes_equivalent_p): New function.
31430 (warn_odr): New function.
31431 (warn_type_mismatch): New function.
31432 (odr_types_equivalent_p): New function.
31433 (add_type_duplicate): Use it.
31434 * common.opt (Wodr): New flag.
31435 * doc/invoke.texi (Wodr): Document new warning.
31437 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
31439 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
31440 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
31441 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
31442 (varpool_get_constructor): Push CTORS_IN timevar.
31443 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
31445 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
31447 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
31448 Remove VOID_FTYPE_PUSHORT.
31449 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
31450 Change code to USHORT_FTYPE_VOID.
31451 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
31452 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
31453 (ix86_atomic_assign_expand_fenv): Update for
31454 __builtin_ia32_fnstsw changes.
31455 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
31456 (fnstsw): Change operand 0 to nonimmediate operand.
31458 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31460 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
31461 (varpool_get_constructor): New function.
31462 (varpool_ctor_useable_for_folding_p): Break out from ...
31463 (ctor_for_folding): ... here; use varpool_get_constructor.
31464 (varpool_assemble_decl): Likewise.
31465 * lto-streamer.h (struct output_block): Turn cgraph_node
31467 (lto_input_variable_constructor): Declare.
31468 * ipa-visibility.c (function_and_variable_visibility): Use
31469 varpool_get_constructor.
31470 * cgraph.h (varpool_get_constructor): Declare.
31471 (varpool_ctor_useable_for_folding_p): New function.
31472 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
31473 parameter; return error_mark_node for non-trivial constructors.
31474 (lto_write_tree_1, DFS_write_tree): Update use of
31475 get_symbol_initial_value.
31476 (output_function): Update initialization of symbol.
31477 (output_constructor): New function.
31478 (copy_function): Rename to ..
31479 (copy_function_or_variable): ... this one; handle vars too.
31480 (lto_output): Output variable sections.
31481 * lto-streamer-in.c (input_constructor): New function.
31482 (lto_read_body): Rename from ...
31483 (lto_read_body_or_constructor): ... this one; handle vars too.
31484 (lto_input_variable_constructor): New function.
31485 * ipa-prop.c (ipa_prop_write_jump_functions,
31486 ipa_prop_write_all_agg_replacement): Update.
31487 * lto-cgraph.c (compute_ltrans_boundary): Use it.
31488 (output_cgraph_opt_summary): Set symbol to NULL.
31490 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31492 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
31493 non-polymorphic types.
31494 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
31495 * ipa-devirt.c (types_same_for_odr): Do not explode when one
31496 of types is not polymorphic.
31498 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
31500 * lra-constraints.c (remove_inheritance_pseudos): Process
31501 destination pseudo too.
31503 2014-07-11 Rong Xu <xur@google.com>
31505 * gcov-tool.c (gcov_output_files): Fix build error introduced in
31508 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31510 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
31511 * config/avr/avr-devices.c (AVR_MCU): Same.
31512 (avr_mcu_types): add text start value to end of device list.
31513 * config/avr/avr-mcus.def: Add text section start for all devices.
31514 (ata5782): Add new avr5 device.
31516 * config/avr/avr-tables.opt: Regenerate.
31517 * config/avr/avr.h: Add declaration for text section start handler.
31518 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
31520 (LINK_SPEC): Include text section start handler to linker spec.
31521 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
31522 pass -Ttext option to linker if the text section start for the device
31524 * config/avr/t-multilib: Regenerate.
31525 * doc/avr-mmcu.texi: Regenerate.
31527 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
31529 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
31530 * config/rs6000/aix52.h (LINK_SPEC): Same.
31531 * config/rs6000/aix53.h (LINK_SPEC): Same.
31532 * config/rs6000/aix61.h (LINK_SPEC): Same.
31533 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
31535 2014-07-11 Roman Gareev <gareevroman@gmail.com>
31537 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
31538 (graphite_verify): New function.
31539 (ivs_params_clear): New function.
31540 (gcc_expression_from_isl_ast_expr_id): New function.
31541 (gcc_expression_from_isl_expr_int): New function.
31542 (binary_op_to_tree): New function.
31543 (ternary_op_to_tree): New function.
31544 (unary_op_to_tree): New function.
31545 (nary_op_to_tree): New function.
31546 (gcc_expression_from_isl_expr_op): New function.
31547 (gcc_expression_from_isl_expression): New function.
31548 (graphite_create_new_loop): New function.
31549 (translate_isl_ast_for_loop): New function.
31550 (get_upper_bound): New function.
31551 (graphite_create_new_loop_guard): New function.
31552 (translate_isl_ast_node_for): New function.
31553 (translate_isl_ast): New function.
31554 (add_parameters_to_ivs_params): New function.
31555 (scop_to_isl_ast): New parameter ip.
31556 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
31558 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
31560 * config/xtensa/predicates.md (call expander): Update for
31561 DECL_SECTION_NAME being string.
31563 2014-07-11 Richard Biener <rguenther@suse.de>
31565 PR middle-end/61473
31566 * builtins.c (fold_builtin_memory_op): Inline memory moves that
31567 can be implemented with a single load followed by a single store.
31568 (c_strlen): Only warn when only_value is not 2.
31570 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
31572 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
31574 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
31577 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
31578 (*movhi_bytes): Likewise.
31579 (*arm_movqi_insn): Likewise.
31581 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
31584 * config/alpha/alpha.c: Include tree-pass.h, context.h
31585 and pass_manager.h.
31586 (pass_data_handle_trap_shadows): New pass.
31587 (pass_handle_trap_shadows::gate): New pass gate function.
31588 (make_pass_handle_trap_shadows): New function.
31589 (rest_of_handle_trap_shadows): Ditto.
31591 (alpha_align_insns_1): Rename from alpha_align_insns.
31592 (pass_data_align_insns): New pass.
31593 (pass_align_insns::gate): New pass gate function.
31594 (make_pass_aling_insns): New function.
31595 (rest_of_align_insns): Ditto.
31596 (alpha_align_insns): Ditto.
31598 (alpha_option_override): Declare handle_trap_shadows info
31599 and align_insns_info. Register handle_trap_shadows and align_insns
31601 (alpha_reorg): Do not call alpha_trap_shadows and
31602 alpha_align_insn from here.
31604 (alpha_pad_function_end): Do not skip BARRIERs.
31606 2014-07-10 Rong Xu <xur@google.com>
31608 Add gcov-tool: an offline gcda profile processing tool support.
31609 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
31610 (gcov_is_error): Ditto.
31611 (gcov_read_string): Ditto.
31612 (gcov_read_sync): Ditto.
31613 * gcov-io.h: Move counter defines to gcov-counter.def.
31614 * gcov-dump.c (tag_counters): Use gcov-counter.def.
31615 * coverage.c: Ditto.
31616 * gcov-tool.c: Offline gcda profile processing tool.
31617 (unlink_gcda_file): Remove one gcda file.
31618 (unlink_profile_dir): Remove gcda files from the profile path.
31619 (gcov_output_files): Output gcda files to an output dir.
31620 (profile_merge): Merge two profiles in directory.
31621 (print_merge_usage_message): Print merge usage.
31622 (merge_usage): Print merge usage and exit.
31623 (do_merge): Driver for profile merge sub-command.
31624 (profile_rewrite): Rewrite profile.
31625 (print_rewrite_usage_message): Print rewrite usage.
31626 (rewrite_usage): Print rewrite usage and exit.
31627 (do_rewrite): Driver for profile rewrite sub-command.
31628 (print_usage): Print gcov-info usage and exit.
31629 (print_version): Print gcov-info version.
31630 (process_args): Process arguments.
31631 (main): Main routine for gcov-tool.
31632 * Makefile.in: Build and install gcov-tool.
31633 * gcov-counter.def: New file split from gcov-io.h.
31634 * doc/gcc.texi: Include gcov-tool.texi.
31635 * doc/gcov-tool.texi: Document for gcov-tool.
31637 2014-07-10 Richard Biener <rguenther@suse.de>
31639 PR tree-optimization/61757
31640 * tree-ssa-dom.c (loop_depth_of_name): Restore.
31641 (propagate_rhs_into_lhs): Revert part of last change.
31643 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
31645 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
31648 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
31650 PR middle-end/53590
31651 * function.c (allocate_struct_function): Revert r188667 change.
31653 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
31655 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
31657 * doc/install.texi: Remove links to defunct package providers for
31660 2014-07-09 Tom de Vries <tom@codesourcery.com>
31662 * final.c (get_call_fndecl): Declare.
31663 (self_recursive_call_p): New function.
31664 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
31666 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31668 * ipa-devirt.c (record_node): Walk through aliases.
31670 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31672 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
31674 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31677 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
31679 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31681 * ipa-visibility.c (function_and_variable_visibility): Remove
31682 temporary hack disabling local aliases on AIX.
31684 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31686 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
31687 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
31689 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31691 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
31692 * rs6000/rs6000.c: Inline output of .set instruction.
31693 (declare_alias_data): New struct.
31694 (rs6000_declare_alias): New function.
31695 (rs6000_xcoff_declare_function_name): Use it.
31696 (rs6000_xcoff_declare_object_name): New function.
31697 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
31698 (ASM_OUTPUT_DEF): Turn to empty definition.
31700 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31703 * hash-table.h: use hash_table::value_type instead of
31704 Descriptor::value_type in the return types of several methods.
31706 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31708 * tree-pass.h (pass_data): Remove has_execute member.
31709 * passes.c (execute_one_pass): Don't check pass->has_execute.
31710 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
31711 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
31712 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
31713 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
31714 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
31715 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
31716 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
31717 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
31718 gimple-low.c, gimple-ssa-isolate-paths.c,
31719 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
31720 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
31721 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
31722 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
31723 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
31724 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
31725 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
31726 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
31727 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
31728 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
31729 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
31730 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31731 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
31732 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
31733 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
31734 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
31735 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
31736 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
31737 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
31738 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
31739 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
31740 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
31741 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
31742 web.c: Remove initializer for pass_data::has_execute.
31744 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
31746 * graphite-htab.h: Use hash_map instead of hash_table.
31747 * graphite-clast-to-gimple.c: Adjust.
31748 * passes.c: Use hash_map instead of hash_table.
31749 * sese.c: Likewise.
31750 * sese.h: Remove now unused code.
31752 2014-07-08 Sriraman Tallam <tmsriram@google.com>
31755 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
31758 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31760 PR rtl-optimization/61673
31761 * combine.c (simplify_comparison): Test just mode's sign bit
31762 in tmode rather than the sign bit and any bits above it.
31764 2014-07-08 Roman Gareev <gareevroman@gmail.com>
31766 * graphite-isl-ast-to-gimple.c (generate_isl_context):
31767 Add __isl_give to the declaration.
31768 (generate_isl_schedule): Likewise.
31769 (scop_to_isl_ast): Likewise.
31771 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31773 * config/arm/arm.c (cortexa5_extra_costs): New table.
31774 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
31776 2014-07-08 Jakub Jelinek <jakub@redhat.com>
31778 PR tree-optimization/61725
31779 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
31780 range, use range_includes_zerop_p instead of integer_zerop on
31781 vr0->min, only use log2 of max if min is not negative.
31783 2014-07-08 Richard Biener <rguenther@suse.de>
31785 * tree-ssa-dom.h (loop_depth_of_name): Remove.
31786 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
31787 restriction on loop depth difference.
31788 (record_equality): Likewise.
31789 (propagate_rhs_into_lhs): Likewise. Simplify condition.
31790 (loop_depth_of_name): Remove.
31791 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
31792 restriction on loop depth difference.
31793 (init_copy_prop): Likewise.
31795 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
31797 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
31799 (walk_aliased_vdefs): Likewise.
31800 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
31801 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
31802 (detect_type_change_from_memory_writes): Check if entry was reached.
31804 2014-07-08 Richard Biener <rguenther@suse.de>
31806 PR tree-optimization/61681
31807 * tree-ssa-structalias.c (find_what_var_points_to): Expand
31808 NONLOCAL inside ESCAPED.
31810 2014-07-08 Richard Biener <rguenther@suse.de>
31812 PR tree-optimization/61680
31813 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31814 Handle properly all read-write dependences with group accesses.
31816 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
31818 PR tree-optimization/61576
31819 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
31820 block containing reduction statement is predecessor of phi basi block.
31822 2014-07-08 Marek Polacek <polacek@redhat.com>
31825 * fold-const.c (round_up_loc): Change the parameter type.
31827 * fold-const.h (round_up_loc): Adjust declaration.
31828 * stor-layout.c (finalize_record_size): Check for too large types.
31830 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
31832 * symtab.c: Include calls.h.
31833 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
31835 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
31837 * config/rs6000/rs6000.c (output_vec_const_move): Handle
31838 little-endian code generation.
31839 * config/rs6000/spe.md (spe_evmergehi): Rename to...
31840 (vec_perm00_v2si): ... this. Handle little-endian code generation.
31841 (spe_evmergehilo): Rename to...
31842 (vec_perm01_v2si): ... this. Handle little-endian code generation.
31843 (spe_evmergelo): Rename to...
31844 (vec_perm11_v2si): ... this. Handle little-endian code generation.
31845 (spe_evmergelohi): Rename to...
31846 (vec_perm10_v2si): ... this. Handle little-endian code generation.
31847 (spe_evmergehi, spe_evmergehilo): New expanders.
31848 (spe_evmergelo, spe_evmergelohi): Likewise.
31849 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
31850 (*frob_tf_ti): Likewise.
31851 (*frob_<mode>_di_2): Likewise.
31852 (*frob_tf_di_8_2): Likewise.
31853 (*frob_di_<mode>): Likewise.
31854 (*frob_ti_tf): Likewise.
31855 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
31856 (*frob_ti_<mode>_8_2): Likewise.
31857 (*frob_ti_tf_2): Likewise.
31858 (mov_si<mode>_e500_subreg0): Rename to...
31859 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
31861 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
31862 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
31863 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
31864 the big endianness only.
31865 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
31866 (*mov_si<mode>_e500_subreg0_2): Rename to...
31867 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
31868 big big endianness only.
31869 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
31870 (*mov_si<mode>_e500_subreg4): Rename to...
31871 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
31873 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
31874 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
31875 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
31876 the big endianness only.
31877 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
31879 (*mov_si<mode>_e500_subreg4_2): Rename to...
31880 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
31882 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
31883 (*mov_sitf_e500_subreg8): Rename to...
31884 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
31886 (*mov_sitf_e500_subreg8_le): New instruction pattern.
31887 (*mov_sitf_e500_subreg8_2): Rename to...
31888 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
31890 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
31891 (*mov_sitf_e500_subreg12): Rename to...
31892 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
31894 (*mov_sitf_e500_subreg12_le): New instruction pattern.
31895 (*mov_sitf_e500_subreg12_2): Rename to...
31896 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
31898 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
31900 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
31902 * asan.c (instrument_strlen_call): Do not instrument first byte
31903 in strlen if already instrumented.
31905 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31907 * config/arm/arm.opt (mwords-little-endian): Delete.
31908 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
31909 of TARGET_LITTLE_WORDS.
31910 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
31911 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
31913 * doc/invoke.texi: Remove references to -mwords-little-endian.
31915 2014-07-07 Jakub Jelinek <jakub@redhat.com>
31917 * expmed.c (struct init_expmed_rtl): Change all fields but
31918 pow2 and cint from struct rtx_def to rtx.
31919 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
31920 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
31923 2014-07-06 Marek Polacek <polacek@redhat.com>
31926 * doc/invoke.texi: Document -Wsizeof-array-argument.
31928 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
31930 * wide-int.h (wide_int_storage): Change declaration from struct
31933 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
31935 * cgraph.c (cgraph_create_indirect_edge): Update call of
31936 get_polymorphic_call_info.
31937 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
31938 (possible_polymorphic_call_targets): Add parameter call.
31939 (decl_maybe_in_construction_p): New predicate.
31940 (get_polymorphic_call_info): Add parameter call;
31941 use decl_maybe_in_construction_p.
31942 * gimple-fold.c (fold_gimple_assign): Update use of
31943 possible_polymorphic_call_targets.
31944 (gimple_fold_call): Likewise.
31945 * ipa-prop.c: Inlcude calls.h
31946 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
31947 (param_type_may_change_p): New predicate.
31948 (detect_type_change_from_memory_writes): Break out from ...
31949 (detect_type_change): ... this one; use param_type_may_change_p.
31950 (detect_type_change_ssa): Use param_type_may_change_p.
31951 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
31953 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
31956 * config/arm/arm-protos.h (arm_legitimate_address_p,
31957 arm_is_constant_pool_ref): Add prototypes.
31958 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
31959 (arm_is_constant_pool_ref) New function.
31960 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
31961 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
31962 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
31963 operand. Remove pool_range and neg_pool_range attributes.
31964 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
31965 pool_range and neg_pool_range attributes.
31966 * config/arm/constraints.md (Uh): New constraint.
31967 (Uq): Don't allow constant pool references.
31969 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
31971 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
31972 (move_lo_quad_internal_be_<mode>): Likewise.
31973 (move_lo_quad_<mode>): Convert to define_expand.
31974 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
31975 (aarch64_simd_move_hi_quad_be_<mode>): New.
31976 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
31977 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
31978 (aarch64_combinez_be<mode>): New.
31979 (aarch64_combine<mode>): Convert to define_expand.
31980 (aarch64_combine_internal<mode>): New.
31981 (aarch64_simd_combine<mode>): Remove bogus RTL description.
31983 2014-07-04 Tom de Vries <tom@codesourcery.com>
31985 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
31986 combination of earlyclobber and read/write modifiers.
31988 2014-07-04 Tom de Vries <tom@codesourcery.com>
31990 * config/aarch64/aarch64-simd.md
31991 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
31993 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
31996 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
31998 2014-07-04 Jakub Jelinek <jakub@redhat.com>
32000 PR middle-end/61654
32001 * cgraphunit.c (expand_thunk): Call free_dominance_info.
32003 PR tree-optimization/61684
32004 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
32005 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
32007 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32008 Kito Cheng <kito@0xlab.org>
32009 Monk Chiang <sh.chiang04@gmail.com>
32011 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
32012 (nds32_symbol_load_store_p): Move to ...
32013 (nds32_fp_as_gp_check_available): Move to ...
32014 * config/nds32/nds32-fp-as-gp.c: ... here.
32015 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
32016 extern declaration.
32018 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32019 Kito Cheng <kito@0xlab.org>
32020 Monk Chiang <sh.chiang04@gmail.com>
32022 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
32023 (nds32_expand_store_multiple): Move to ...
32024 (nds32_expand_movmemqi): Move to ...
32025 * config/nds32/nds32-memory-manipulation.c: ... here.
32027 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32028 Kito Cheng <kito@0xlab.org>
32029 Monk Chiang <sh.chiang04@gmail.com>
32031 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
32032 (nds32_output_casesi_pc_relative): Move to ...
32033 (nds32_output_casesi): Move to ...
32034 (nds32_mem_format): Move to ...
32035 (nds32_output_16bit_store): Move to ...
32036 (nds32_output_16bit_load): Move to ...
32037 (nds32_output_32bit_store): Move to ...
32038 (nds32_output_32bit_load): Move to ...
32039 (nds32_output_32bit_load_s): Move to ...
32040 (nds32_output_stack_push): Move to ...
32041 (nds32_output_stack_pop): Move to ...
32042 * config/nds32/nds32-md-auxiliary.c: ... here.
32044 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32045 Ling-Hua Tseng <uranus@tinlans.org>
32047 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
32048 the purpose of this file.
32050 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32051 Kito Cheng <kito@0xlab.org>
32052 Monk Chiang <sh.chiang04@gmail.com>
32054 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
32055 (nds32_address_cost): Move implementation to ...
32056 * config/nds32/nds32-cost.c: ... here.
32057 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
32058 (nds32_address_cost_impl): Declare.
32060 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32061 Kito Cheng <kito@0xlab.org>
32062 Monk Chiang <sh.chiang04@gmail.com>
32064 * config/nds32/nds32.c
32065 (nds32_consecutive_registers_load_store_p): Move to ...
32066 (nds32_valid_multiple_load_store): Move to ...
32067 (nds32_valid_stack_push_pop): Move to ...
32068 (nds32_can_use_bclr_p): Move to ...
32069 (nds32_can_use_bset_p): Move to ...
32070 (nds32_can_use_btgl_p): Move to ...
32071 (nds32_can_use_bitci_p): Move to ...
32072 * config/nds32/nds32-predicates.c: ... here.
32074 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32075 Kito Cheng <kito@0xlab.org>
32076 Monk Chiang <sh.chiang04@gmail.com>
32078 * config/nds32/nds32.c
32079 (nds32_expand_builtin_null_ftype_reg): Move to ...
32080 (nds32_expand_builtin_reg_ftype_imm): Move to ...
32081 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
32082 (nds32_init_builtins): Move implementation to ...
32083 (nds32_expand_builtin): Move implementation to ...
32084 * config/nds32/nds32-intrinsic.c: ... here.
32085 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
32086 (nds32_expand_builtin_impl): Declare.
32088 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32089 Kito Cheng <kito@0xlab.org>
32090 Monk Chiang <sh.chiang04@gmail.com>
32092 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
32093 (nds32_emit_section_tail_template): Move to ...
32094 (nds32_emit_isr_jmptbl_section): Move to ...
32095 (nds32_emit_isr_vector_section): Move to ...
32096 (nds32_emit_isr_reset_conten): Move to ...
32097 (nds32_check_isr_attrs_conflict): Move to ...
32098 (nds32_construct_isr_vectors_information): Move to ...
32099 (nds32_asm_file_start): Move implementation to ...
32100 (nds32_asm_file_end): Move implementation to ...
32101 * config/nds32/nds32-isr.c: ... here.
32102 * config/nds32/nds32-protos.h
32103 (nds32_check_isr_attrs_conflict): Declare.
32104 (nds32_construct_isr_vectors_information): Declare.
32105 (nds32_asm_file_start_for_isr): Declare.
32106 (nds32_asm_file_end_for_isr): Declare.
32108 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
32109 Kito Cheng <kito@0xlab.org>
32110 Monk Chiang <sh.chiang04@gmail.com>
32112 * config.gcc (nds32*): Add new modules to extra_objs.
32113 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
32114 (nds32be-*-*): Likewise.
32115 * config/nds32/nds32-cost.c: New file.
32116 * config/nds32/nds32-fp-as-gp.c: New file.
32117 * config/nds32/nds32-intrinsic.c: New file.
32118 * config/nds32/nds32-isr.c: New file.
32119 * config/nds32/nds32-md-auxiliary.c: New file.
32120 * config/nds32/nds32-memory-manipulation.c: New file.
32121 * config/nds32/nds32-pipelines-auxiliary.c: New file.
32122 * config/nds32/nds32-predicates.c: New file.
32123 * config/nds32/t-nds32: New file.
32125 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32127 PR tree-optimization/61682
32128 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
32129 using cases and when one of the operands is equal to 1.
32131 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
32133 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
32134 ashr<mode>3): Correct mode of operands[2].
32135 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
32136 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
32137 Correct mode of operands[2]. Fix split condition.
32139 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
32141 * arm.md (arch): Add armv6_or_vfpv3.
32142 (arch_enabled): Add test for the above.
32143 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
32145 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
32147 2014-07-03 Jakub Jelinek <jakub@redhat.com>
32149 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
32150 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
32151 HWI 1 and negate the unsigned value.
32152 * expmed.c (expand_sdiv_pow2): For modes wider than word always
32153 use AND instead of shift.
32154 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
32156 2014-07-03 Marek Polacek <polacek@redhat.com>
32158 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
32159 (-fsanitize=float-divide-by-zero): Move to the table with
32160 -fsanitize=undefined suboptions.
32161 (-fsanitize=float-cast-overflow): Likewise.
32163 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
32165 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
32166 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
32169 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32171 * loop-invariant.c (struct invariant): Add a new member: eqno;
32172 (find_identical_invariants): Update eqno;
32173 (create_new_invariant): Init eqno;
32174 (get_inv_cost): Compute comp_cost with eqno;
32176 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
32178 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
32179 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
32180 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
32181 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
32182 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
32184 2014-07-02 Christian Bruel <christian.bruel@st.com>
32188 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
32189 (make_preds_opaque): Delete.
32190 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
32191 (commit_mode_sets): New function.
32192 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
32193 Process all modes at once.
32194 * basic-block.h (pre_edge_lcm_avs): Declare.
32195 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
32196 Call clear_aux_for_edges. Fix comments.
32197 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
32198 (pre_edge_rev_lcm): Idem.
32199 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
32201 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
32202 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
32204 * config/i386/i386.c (x96_emit_mode_set): Idem.
32205 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
32206 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
32207 (fpscr_toggle) Disallow from delay slot.
32208 * target.def (emit_mode_set): Add prev_mode parameter.
32209 * doc/tm.texi: Regenerate.
32211 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32213 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
32216 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32218 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
32219 vtable_pointer_value_to_vtable): Constify.
32220 (contains_polymorphic_type_p): Declare.
32221 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
32222 vtable_pointer_value_to_vtable): Constify.
32223 (contains_polymorphic_type_p): New predicate.
32224 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
32226 (ipa_set_ancestor_jf): Likewise.
32227 (detect_type_change): Return false in easy cases.
32228 (compute_complex_assign_jump_func): Require type to contain
32230 (compute_known_type_jump_func): Likewise.
32232 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
32234 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
32236 (type_in_anonymous_namespace_p): Constify argument.
32237 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
32238 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
32239 (main_odr_variant): New function.
32240 (hash_type_name): Make static; update assert; do not ICE on
32242 (types_same_for_odr): Bring here from tree.c; simplify and remove
32243 old structural comparing code that doesn't work for templates.
32244 (odr_hasher::equal): Update assert.
32245 (add_type_duplicate): Return true when bases should be computed;
32246 replace incomplete loader by complete; do not output duplicated
32247 warnings; do not ICE on non-records; set odr_violated flag.
32248 (get_odr_type): Be ready to replace incomplete type by complete
32249 one; work on ODR variants instead of main variants; reorder item
32250 in array so bases have still smaller indexes.
32251 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
32252 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
32254 2014-07-01 Cary Coutant <ccoutant@google.com>
32256 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
32258 (resolve_addr_in_expr): When replacing the rtx in a location list
32259 entry, get a new address table entry.
32260 (dwarf2out_finish): Call index_location_lists even if there are no
32261 addr_index_table entries yet.
32263 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32265 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
32266 change for not being obvious.
32268 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
32270 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
32273 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32275 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
32276 (vcagt_f64): Likewise.
32277 (vcale_f64): Likewise.
32278 (vcaled_f64): Likewise.
32279 (vcales_f32): Likewise.
32280 (vcalt_f64): Likewise.
32281 (vcaltd_f64): Likewise.
32282 (vcalts_f32): Likewise.
32284 2014-07-01 Marek Polacek <polacek@redhat.com>
32286 * doc/invoke.texi: Document -Wint-conversion.
32288 2014-07-01 Marek Polacek <polacek@redhat.com>
32291 * doc/invoke.texi: Document -Wincompatible-pointer-types.
32293 2014-07-01 Martin Liska <mliska@suse.cz>
32295 IPA REF alias refactoring
32296 * cgraph.h (iterate_direct_aliases): New function.
32297 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
32298 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
32299 FOR_EACH_ALIAS added.
32300 (cgraph_for_node_and_aliases): Likewise.
32301 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
32302 * ipa-inline.c (reset_edge_caches): Likewise.
32303 (update_caller_keys): Likewise.
32304 * trans-mem.c (ipa_tm_execute): Likewise.
32305 *varpool.c (varpool_analyze_node): Likewise.
32306 (varpool_for_node_and_aliases): Likewise.
32307 * ipa-ref.h (first_alias): New function.
32308 (last_alias): Likewise.
32309 (has_aliases_p): Likewise.
32310 * ipa-ref.c (ipa_ref::remove_reference): Removal function
32311 is sensitive to IPA_REF_ALIASes.
32312 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
32313 are put at the beginning of the list.
32314 (symtab_node::iterate_direct_aliases): New function.
32316 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32319 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32321 (write_ts_type_common_tree_pointers): Do not stream fields not set
32322 for incomplete types; do not stream duplicated fields for variants;
32323 sanity check that variant and type match.
32324 (write_ts_type_non_common_tree_pointers): Likewise.
32325 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32326 TYPE_SIZE whether type is complete.
32327 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32328 write_ts_type_common_tree_pointers
32329 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32331 2014-06-30 Joseph Myers <joseph@codesourcery.com>
32333 * var-tracking.c (add_stores): Return instead of asserting if old
32334 and new values for conditional store are the same.
32336 2014-06-30 Richard Henderson <rth@redhat.com>
32340 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
32341 the cfg if there were any changes.
32342 * passes.def: Revert move of peephole2 after reorder_blocks;
32343 move duplicate_computed_gotos before peephole2.
32345 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
32347 * except.c (emit_note_eh_region_end): New helper function.
32348 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
32349 emit EH_REGION_END note.
32350 * jump.c (cleanup_barriers): Do not split a call and its
32351 corresponding CALL_ARG_LOCATION note.
32353 2014-06-30 Jeff Law <law@redhat.com>
32355 PR tree-optimization/61607
32356 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
32357 deeper into the SSA_NAME_VALUE chain.
32359 2014-06-30 Marek Polacek <polacek@redhat.com>
32361 * convert.c (convert_to_integer): Don't instrument conversions if the
32362 function has no_sanitize_undefined attribute.
32363 * ubsan.c: Don't run the ubsan pass if the function has
32364 no_sanitize_undefined attribute.
32366 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32368 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
32369 -fsanitize=undefined suboptions.
32371 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
32373 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
32374 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
32375 against bigendian and adjust indices.
32377 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32379 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
32381 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
32384 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
32385 Add alternative; make early clobber. Adjust both split patterns
32386 to use operand 0 as the working register.
32388 2014-06-30 Jakub Jelinek <jakub@redhat.com>
32390 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
32391 as ira_object_id_map might be NULL, or 1.
32393 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32395 * loop-invariant.c (get_inv_cost): Handle register class.
32396 (gain_for_invariant): Check the register pressure of the inv
32397 and its overlapped register class, other than all.
32399 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
32401 * doc/invoke.texi (Optimize Options): Fix descriptions of
32402 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
32404 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
32406 * doc/extend.texi (Function Attributes): Update 'naked' attribute
32409 2014-06-29 Tobias Grosser <tobias@grosser.es>
32412 * graphite-isl-ast-to-gimple.c: Add missing guards.
32414 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32416 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
32417 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
32418 * flag-types.h: Add new enum fgraphite_generator.
32419 * graphite-isl-ast-to-gimple.c: New.
32420 * graphite-isl-ast-to-gimple.h: New.
32421 * graphite.c (graphite_transform_loops): Add choice of Graphite
32422 code generator, which depends on flag_graphite_code_gen.
32424 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32426 * graphite-dependences.c (subtract_commutative_associative_deps):
32427 Add NULL checking of the following variables: must_raw_no_source,
32428 may_raw_no_source, must_war_no_source, may_war_no_source,
32429 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
32430 must_war, may_war, must_waw, may_waw.
32432 2014-06-29 Roman Gareev <gareevroman@gmail.com>
32434 * graphite-clast-to-gimple.c: gloog is renamed to
32435 graphite_regenerate_ast_cloog. gloog_error is renamed to
32436 graphite_regenerate_error.
32437 * graphite-clast-to-gimple.h: The definition of the struct
32438 bb_pbb_def is moved to graphite-htab.h.
32439 Add inclusion of the hash-table.h.
32440 * graphite-htab.h: The declaration of the function gloog is moved
32441 to graphite-clast-to-gimple.h and renamed to
32442 graphite_regenerate_ast_cloog.
32443 * graphite.c (graphite_transform_loops): gloog is renamed
32444 to graphite_regenerate_ast_cloog.
32446 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32448 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
32450 (write_ts_type_common_tree_pointers): Do not stream fields not set
32451 for incomplete types; do not stream duplicated fields for variants;
32452 sanity check that variant and type match.
32453 (write_ts_type_non_common_tree_pointers): Likewise.
32454 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
32455 TYPE_SIZE whether type is complete.
32456 (lto_input_ts_type_common_tree_pointers): Do same changes as in
32457 write_ts_type_common_tree_pointers
32458 (lto_input_ts_type_non_common_tree_pointers): Likewise.
32460 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32462 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
32464 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32466 * tree-inline.c (remap_type_1): Do not duplicate fields
32467 that are shared in between type and its main variant.
32469 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32471 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
32473 (ipa_set_ancestor_jf) Likewise.
32474 (check_stmt_for_type_change): Check that we work on main variant.
32475 (detect_type_change): Look into main variant.
32476 (compute_known_type_jump_func): Check that main variant has BINFO.
32478 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32480 * ipa-devirt.c (set_type_binfo): New function.
32481 (add_type_duplicate): Use it.
32482 (get_odr_type): Sanity check that binfos points to main variants.
32483 (get_class_context): Be sure the context's outer_type is main variant.
32484 (contains_type_p): Walk main variant.
32485 (get_polymorphic_call_info_for_decl): Set outer_type to be
32487 (get_polymorphic_call_info): Likewise.
32488 (possible_polymorphic_call_targets): Sanity check that we operate
32491 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
32493 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
32495 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32497 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
32498 accidental change due to wide-int branch merge.
32500 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32502 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
32503 compressed debug support.
32504 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
32505 * configure: Regenerate.
32506 * config.in: Regenerate.
32507 * common.opt (compressed_debug_sections): New enum.
32508 (gz, gz=): New options.
32509 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
32510 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
32511 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
32512 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
32513 LINK_COMPRESS_DEBUG_SPEC.
32514 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
32515 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
32516 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
32517 (Debugging Options): Document -gz[=type].
32519 2014-06-27 Martin Jambor <mjambor@suse.cz>
32522 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
32523 args_to_skip, use those from node instead. Copy args_to_skip and
32524 combined_args_to_skip from node to the new thunk.
32525 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
32526 (cgraph_create_virtual_clone): Moved computation of
32527 combined_args_to_skip...
32528 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
32530 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
32532 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
32533 redundant diagnostic machinary.
32535 2014-06-27 Richard Biener <rguenther@suse.de>
32537 * tree-ssa-math-opts.c (bswap_replace): Fix
32538 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
32540 2014-06-27 Martin Liska <mliska@suse.cz>
32542 * gimple.h (gimple_location_safe): New function introduced.
32543 * cgraphunit.c (walk_polymorphic_call_targets): Usage
32544 of gimple_location_safe replaces gimple_location.
32545 (gimple_fold_call): Likewise.
32546 * ipa-devirt.c (ipa_devirt): Likewise.
32547 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32548 * ipa.c (walk_polymorphic_call_targets): Likewise.
32549 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32551 2014-06-27 Jakub Jelinek <jakub@redhat.com>
32553 PR tree-optimization/57233
32554 PR tree-optimization/61299
32555 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
32557 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
32558 would be lowered to scalar shifts, check if corresponding
32559 shifts and vector BIT_IOR_EXPR are supported and don't lower
32560 or lower just to narrower vector type in that case.
32561 * expmed.c (expand_shift_1): Fix up handling of vector
32562 shifts and rotates.
32564 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
32567 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
32569 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
32571 * doc/invoke.texi (-fsemantic-interposition): Document.
32572 * common.opt (fsemantic-interposition): New flag.
32573 * varasm.c (decl_replaceable_p): Use it.
32575 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32578 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
32579 extraction other than index 3.
32581 2014-06-26 Teresa Johnson <tejohnson@google.com>
32583 * doc/invoke.texi: Fix typo.
32584 * dumpfile.c: Add support for documented -fdump-* options
32585 optimized/missed/note/optall.
32587 2014-06-26 Martin Jambor <mjambor@suse.cz>
32589 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
32590 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
32591 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
32592 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
32593 * opts.c (default_options_optimization): Set
32594 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
32595 * doc/invoke.texi (allow-load-data-races)
32596 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
32597 (allow-store-data-races): Document the new default.
32599 2014-06-26 Martin Jambor <mjambor@suse.cz>
32601 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
32602 renamed to ipa_impossible_devirt_target. Fix typo.
32603 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
32604 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
32605 ipa_impossible_devirt_target.
32607 2014-06-26 Richard Biener <rguenther@suse.de>
32609 PR tree-optimization/61607
32610 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
32611 explaining why we restrict copies on loop depth.
32612 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32614 (record_equivalences_from_phis): Instead add it here.
32616 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
32618 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
32619 (LTO_WRAPPER_OBJS): New variable.
32620 (lto-wrapper$(exeext)): Use it.
32621 * collect2.c: Include "collect-utils.h".
32622 (verbose, debug): Remove variables.
32623 (at_file_supplied): No longer static.
32624 (tool_name): New variable.
32625 (do_wait, fork_execute, maybe_unlink): Don't declare.
32626 (tool_cleanup): No longer static.
32627 (notice): Remove function.
32628 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
32629 fork_execute calls.
32630 (collect_wait, do_wait, collect_execute): Remove functions.
32631 (maybe_unlink): No longer static.
32632 * collect2.h (verbose, debug): Don't declare.
32633 (at_file_supplied): Declare.
32634 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
32636 (collect_execute): Replace with implementation from collect2, plus a
32637 new arg use_atfile. All callers changed.
32638 (collect_wait): Replace with implementation from collect2.
32639 (maybe_unlink_file): Remove function.
32640 (fork_execute): Replace with implementation from collect2, plus a
32641 new arg use_atfile. All callers changed.
32642 (do_wait): Add call to utils_cleanup to the error path.
32643 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
32644 (tool_cleanup): Adjust declarations.
32645 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
32646 * tlink.c: Include "collect-utils.h".
32647 (tlink_execute): New arg use_atfile. All callers changed.
32648 (tlink_init, tlink_execute): Remove declarations.
32650 * collect-utils.c (save_temps): New variable.
32651 (do_wait): Use it instead of debug. Use fatal_error.
32652 * collect-utils.h (save_temps): Declare.
32653 * collect2.c (verbose): Rename from vflag. All uses changed.
32654 (tool_cleanup): New function, copied from collect_atexit.
32655 (collect_atexit, handler): Just call it.
32656 * collect2.h (verbose): Declaration renamed from vflag.
32657 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
32660 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
32661 (lto-wrapper$(exeext)): Link with collect-utils.o.
32662 * collect-utils.c: New file.
32663 * collect-utils.h: New file.
32664 * lto-wrapper.c: Include "collect-utils.h".
32665 (args_name): Delete variable.
32666 (tool_name): New variable.
32667 (tool_cleanup): New function.
32668 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
32669 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
32670 (fork_execute): Remove functions.
32672 2014-06-26 Nick Clifton <nickc@redhat.com>
32674 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
32676 * doc/extend.texi (Function Attributes): Fix typo in description
32677 of RX vector attribute.
32679 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
32681 * config.gcc (supported_defaults): Error when passing either
32682 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
32684 2014-06-26 Richard Biener <rguenther@suse.de>
32686 * tree-ssa-dom.c (cprop_operand): Remove restriction on
32687 propagating volatile pointers.
32689 2014-06-26 Richard Biener <rguenther@suse.de>
32691 PR tree-optimization/61607
32692 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
32693 loop if we redirected its latch edge.
32694 (thread_block_1): Do not cancel loops prematurely.
32696 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
32698 * toplev.c (backend_init_target): Move init_emit_regs and
32700 (backend_init) ... here; skip ira_init_once and backend_init_target.
32701 (target_reinit) ... and here; clear
32702 this_target_rtl->lang_dependent_initialized.
32703 (lang_dependent_init_target): Clear
32704 this_target_rtl->lang_dependent_initialized;
32705 break out rtl initialization to ...
32706 (initialize_rtl): ... here; call also backend_init_target
32708 * toplev.h (initialize_rtl): New function.
32709 * function.c: Include toplev.h
32710 (init_function_start): Call initialize_rtl.
32711 * rtl.h (target_rtl): Add target_specific_initialized,
32712 lang_dependent_initialized.
32714 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
32715 Jakub Jelinek <jakub@redhat.com>
32717 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
32719 2014-06-25 Tom de Vries <tom@codesourcery.com>
32721 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
32723 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32725 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
32726 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
32727 Issue a strict overflow warning if appropriate.
32729 2014-06-25 Martin Liska <mliska@suse.cz>
32731 IPA REF refactoring
32732 * Makefile.in: Removed header file (ipa-ref-inline.h).
32733 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
32735 (cgraph_speculative_call_info): Likewise.
32736 (cgraph_for_node_thunks_and_aliases): Likewise.
32737 (cgraph_for_node_and_aliases): Likewise.
32738 (verify_cgraph_node): Likewise.
32739 * cgraph.h: Batch of IPA REF functions become member functions of
32740 symtab_node: add_reference, maybe_add_reference, clone_references,
32741 clone_referring, clone_reference, find_reference,
32742 remove_stmt_references, remove_all_references,
32743 remove_all_referring, dump_references, dump_referring,
32744 has_alias_p, iterate_reference, iterate_referring.
32745 * cgraphbuild.c (record_reference): New IPA REF function used.
32746 (record_type_list): Likewise.
32747 (record_eh_tables): Likewise.
32748 (mark_address): Likewise.
32749 (mark_load): Likewise.
32750 (mark_store): Likewise.
32751 (pass_build_cgraph_edges): Likewise.
32752 (rebuild_cgraph_edge): Likewise.
32753 (cgraph_rebuild_references): Likewise.
32754 (pass_remove_cgraph_callee_edges): Likewise.
32755 * cgraphclones.c (cgraph_clone_node): Likewise.
32756 (cgraph_create_virtual_clone): Likewise.
32757 (cgraph_materialize_clone): Likewise.
32758 (cgraph_materialize_all_clones): Likewise.
32759 * cgraphunit.c (cgraph_reset_node): Likewise.
32760 (cgraph_reset_node): Likewise.
32761 (analyze_function): Likewise.
32762 (assemble_thunks_and_aliases): Likewise.
32763 (expand_function): Likewise.
32764 * ipa-comdats.c (propagate_comdat_group): Likewise.
32765 (enqueue_references): Likewise.
32766 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
32767 (create_specialized_node): Likewise.
32768 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
32769 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
32770 * ipa-inline.c (reset_edge_caches): Likewise.
32771 (update_caller_keys): Likewise.
32772 (execute): Likewise.
32773 * ipa-prop.c (remove_described_reference): Likewise.
32774 (propagate_controlled_uses): Likewise.
32775 (ipa_edge_duplication_hook): Likewise.
32776 (ipa_modify_call_arguments): Likewise.
32777 * ipa-pure-const.c (propagate_pure_const): Likewise.
32778 * ipa-ref-inline.h: Header file removed, functions moved
32779 to symtab_node class.
32780 * ipa-ref.c (remove_reference): New class member function.
32781 (cannot_lead_to_return): New class member function.
32782 (referring_ref_list): Likewise.
32783 (referred_ref_list): Likewise.
32784 Rest of functions moved to symtab_node class.
32785 * ipa-ref.h: New member functions remove_reference,
32786 cannot_lead_to_return, referring_ref_list, referred_ref_list added
32788 ipa_ref_list class has new member functions: first_reference,
32789 first_referring, clear, nreferences.
32790 * ipa-reference.c (analyze_function): New IPA REF function used.
32791 (write_node_summary_p): Likewise.
32792 (ipa_reference_write_optimization_summary): Likewise.
32793 * ipa-split.c (split_function): Likewise.
32794 * ipa-utils.c (ipa_reverse_postorder): Likewise.
32795 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
32796 (function_and_variable_visibility): Likewise.
32797 * ipa.c (has_addr_references_p): Likewise.
32798 (process_references): Argument type changed.
32799 (symtab_remove_unreachable_nodes): New IPA REF function used.
32800 (process_references): Likewise.
32801 (set_writeonly_bit): Likewise.
32802 * lto-cgraph.c: Implementation of new symtab_node member functions
32803 that uses new IPA REF functions.
32804 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
32806 * lto-streamer-out.c (output_symbol_p): Likewise.
32807 * lto-streamer.h (referenced_from_this_partition_p): Argument type
32809 * symtab.c: Implementation of new IPA REF API.
32810 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
32811 (ipa_tm_create_version): Likewise.
32812 (ipa_tm_execute): Likewise.
32813 * tree-emutls.c (gen_emutls_addr): Likewise.
32814 * tree-inline.c (copy_bb): Likewise.
32815 (delete_unreachable_blocks_update_callgraph): Likewise.
32816 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
32817 (varpool_for_node_and_aliases): Likewise.
32819 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32821 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
32823 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
32826 * fold-const.c (fold_checksum_tree): Use a hash_table of const
32827 tree_node * instead of tree_node *.
32829 (print_fold_checksum): Likewise.
32830 (fold_check_failed): Likewise.
32831 (debug_fold_checksum): Likewise.
32832 (fold_build1_stat_loc): Likewise.
32833 (fold_build2_stat_loc): Likewise.
32834 (fold_build3_stat_loc): Likewise.
32835 (fold_build_call_array_loc): Likewise.
32837 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
32839 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
32840 implementation with call to...
32841 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
32843 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
32846 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
32848 PR tree-optimization/57742
32849 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
32850 after replacing the statement.
32852 2014-06-25 Nick Clifton <nickc@redhat.com>
32854 * config/v850/v850.c (GHS_default_section_names): Change to const
32856 (GHS_current_section_names): Likewise.
32857 (v850_insert_attributes): Do not build strings, just assign the
32858 names directly. Change the type of 'chosen_section' to const
32860 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
32861 directly to the array entry.
32862 * config/v850/v850.h (GHS_default_section_names): Change to const
32864 (GHS_current_section_names): Likewise.
32866 2014-06-25 Jakub Jelinek <jakub@redhat.com>
32868 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
32869 (LANG_HOOKS_DECLS): Add it.
32870 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
32872 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
32873 * langhooks.h (struct lang_hooks_for_decls): Add
32874 omp_clause_linear_ctor hook.
32875 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
32876 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
32877 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
32878 combined simd loop use omp_clause_linear_ctor hook.
32880 2014-06-24 Cong Hou <congh@google.com>
32882 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
32883 pattern recognition.
32884 (type_conversion_p): PROMOTION is true if it's a type promotion
32885 conversion, and false otherwise. Return true if the given expression
32886 is a type conversion one.
32887 * tree-vectorizer.h: Adjust the number of patterns.
32888 * tree.def: Add SAD_EXPR.
32889 * optabs.def: Add sad_optab.
32890 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
32891 * expr.c (expand_expr_real_2): Likewise.
32892 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
32893 * gimple.c (get_gimple_rhs_num_ops): Likewise.
32894 * optabs.c (optab_for_tree_code): Likewise.
32895 * tree-cfg.c (estimate_operator_cost): Likewise.
32896 * tree-ssa-operands.c (get_expr_operands): Likewise.
32897 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
32898 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
32899 * doc/generic.texi: Add document for SAD_EXPR.
32900 * doc/md.texi: Add document for ssad and usad.
32902 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32904 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
32905 qualification in cast.
32907 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
32909 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
32910 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
32911 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
32912 (tree_function_decl): ... here.
32913 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
32914 streaming of vindex to ...
32915 (write_ts_function_decl_tree_pointers): ... here.
32916 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
32917 Do not stream DECL_VINDEX.
32918 (lto_input_ts_function_decl_tree_pointers): Stream it here.
32920 2014-06-24 Catherine Moore <clm@codesourcery.com>
32921 Sandra Loosemore <sandra@codesourcery.com>
32923 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
32924 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
32925 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
32927 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32929 * doc/invoke.texi (Warning Options): Remove duplicated
32930 -Wmaybe-uninitialized.
32932 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
32934 PR tree-optimization/57742
32935 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
32936 (handle_builtin_malloc, handle_builtin_memset): New functions.
32937 (strlen_optimize_stmt): Call them.
32938 * passes.def: Move strlen after loop+dom but before vrp.
32940 2014-06-24 Jakub Jelinek <jakub@redhat.com>
32943 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
32944 model family 6 CPU with has_longmode never use a CPU without
32947 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
32950 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
32953 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32955 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
32956 * dominance.c (iterate_fix_dominators): Use hash_map instead of
32958 * hash-map.h: New file.
32959 * ipa-comdats.c: Use hash_map instead of pointer_map.
32961 * lto-section-out.c: Adjust.
32962 * lto-streamer.h: Replace pointer_map with hash_map.
32963 * symtab.c (verify_symtab): Likewise.
32964 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
32965 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
32966 * tree-streamer.h: Likewise.
32967 * tree-streamer.c: Adjust.
32968 * pointer-set.h: Remove pointer_map.
32970 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32972 * hash-table.h: Add a template arg to choose between storing values
32973 and storing pointers to values, and then provide partial
32974 specializations for both.
32975 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
32976 should store, not the type values should point to.
32977 * tree-into-ssa.c (var_info_hasher): Likewise.
32978 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
32979 * tree-complex.c: Adjust.
32980 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
32981 table instead of int_tree_map *.
32982 * tree-parloops.c: Adjust.
32983 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
32984 type is being stored.
32985 * tree-vectorizer.c: Adjust.
32987 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
32989 * hash-table.h: Remove a layer of indirection from hash_table so that
32990 it contains the hash table's data instead of a pointer to the data.
32991 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
32992 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
32993 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
32994 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
32995 fold-const.c, gcse.c, ggc-common.c,
32996 gimple-ssa-strength-reduction.c, gimplify.c,
32997 graphite-clast-to-gimple.c, graphite-dependences.c,
32998 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
32999 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33000 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
33001 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
33002 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
33003 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
33004 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
33005 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
33006 tree-ssa-live.c, tree-ssa-loop-im.c,
33007 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
33008 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
33009 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33010 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
33011 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
33012 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
33013 vtable-verify.c, vtable-verify.h: Adjust.
33015 2014-06-24 Richard Biener <rguenther@suse.de>
33017 PR tree-optimization/61572
33018 * tree-ssa-sink.c (statement_sink_location): Do not sink
33019 loads from hard registers.
33021 2014-06-24 Jakub Jelinek <jakub@redhat.com>
33023 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
33024 not mentioned in clauses use private clause if the iterator is
33025 declared in #pragma omp for simd, and when adding lastprivate
33026 instead, add it to the outer #pragma omp for too. Diagnose
33027 if the variable is private in outer context. For simd collapse > 1
33028 loops, replace all iterators with temporaries.
33029 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
33030 same even in collapse > 1 loops.
33032 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
33033 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
33035 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
33036 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
33038 (gimplify_adjust_omp_clauses): Likewise.
33039 * omp-low.c (lower_rec_simd_input_clauses,
33040 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
33041 safelen the same as safelen(1).
33042 * tree-nested.c (convert_nonlocal_omp_clauses,
33043 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
33044 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
33045 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
33046 Fixup handling of GIMPLE_OMP_TARGET.
33047 (convert_tramp_reference_stmt, convert_gimple_call): Handle
33050 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
33052 PR tree-optimization/61554
33053 * tree-ssa-propagate.c: Include "bitmap.h".
33054 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
33055 properly update constructor/destructor.
33056 (substitute_and_fold_dom_walker::before_dom_children):
33057 Remove call to gimple_purge_dead_eh_edges, add bb->index to
33058 need_eh_cleaup instead.
33059 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
33062 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33064 * varpool.c (dump_varpool_node): Dump used_by_single_function.
33065 * tree-pass.h (make_pass_ipa_single_use): New pass.
33066 * cgraph.h (used_by_single_function): New flag.
33067 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
33069 * passes.def (pass_ipa_single_use): Scedule.
33070 * ipa.c (BOTTOM): New macro.
33071 (meet): New function
33072 (propagate_single_user): New function.
33073 (ipa_single_use): New function.
33074 (pass_data_ipa_single_use): New pass.
33075 (pass_ipa_single_use): New pass.
33076 (pass_ipa_single_use::gate): New gate.
33077 (make_pass_ipa_single_use): New function.
33079 2014-06-23 Kai Tietz <ktietz@redhat.com>
33082 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
33083 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
33085 2014-06-23 Richard Biener <rguenther@suse.de>
33087 * tree-ssa-loop.c (gate_loop): New function.
33088 (pass_tree_loop::gate): Call it.
33089 (pass_data_tree_no_loop, pass_tree_no_loop,
33090 make_pass_tree_no_loop): New.
33091 * tree-vectorizer.c: Include tree-scalar-evolution.c
33092 (pass_slp_vectorize::execute): Initialize loops and SCEV if
33094 (pass_slp_vectorize::clone): New method.
33095 * timevar.def (TV_TREE_NOLOOP): New.
33096 * tree-pass.h (make_pass_tree_no_loop): Declare.
33097 * passes.def (pass_tree_no_loop): New pass group with
33100 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
33103 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
33104 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
33106 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33108 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
33109 "yes" where needed.
33111 2014-06-23 Alan Modra <amodra@gmail.com>
33114 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
33115 to zero on debug statements.
33117 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33120 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
33121 Ignore third operand if present by marking qualifier_internal.
33123 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
33125 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
33127 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
33128 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
33129 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
33130 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
33131 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
33132 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
33133 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
33134 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
33135 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
33136 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
33137 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
33138 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
33139 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
33140 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
33141 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
33142 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
33143 logic in GCC vector extensions
33145 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
33146 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
33147 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
33148 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
33149 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
33150 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
33151 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
33152 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
33153 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
33154 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
33156 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
33158 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
33161 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
33162 (vget_low_s64): Use __GET_LOW macro.
33163 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
33164 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
33165 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
33166 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
33167 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
33169 (vcombine_s64): Use GCC vector extensions; remove cast.
33170 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
33171 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
33172 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
33173 Fix type signature; remove cast.
33175 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
33178 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
33180 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
33182 (BUILTIN_VD1): New.
33183 (BUILTIN_VD_RE): Remove.
33184 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
33185 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
33186 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
33187 variant but not df.
33188 (vreinterpretv1df*, vreinterpret*v1df): New.
33189 (vreinterpretdf*, vreinterpret*df): Remove.
33190 * config/aarch64/aarch64-simd.md (aarch64_create,
33191 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
33192 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
33194 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
33195 (vcreate_f64): Remove cast, use v1df builtin.
33196 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
33197 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
33198 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
33199 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
33200 vmov_n_f64, vst1_f64): Use gcc vector extensions.
33201 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
33202 add range check using __builtin_aarch64_im_lane_boundsi.
33203 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
33204 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
33205 type signature, use gcc vector extensions.
33206 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
33207 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
33208 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
33209 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
33210 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
33211 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
33212 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
33213 vreinterpret_u64_f64): Use v1df builtin not df.
33215 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
33217 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
33220 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
33222 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
33225 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33227 * loop-invariant.c (pre_check_invariant_p): New function.
33228 (find_invariant_insn): Call pre_check_invariant_p.
33230 2014-06-22 Richard Henderson <rth@redhat.com>
33233 * compare-elim.c (struct comparison): Add eh_note.
33234 (find_comparison_dom_walker::before_dom_children): Don't eliminate
33235 a redundant comparison in a different EH region. Purge EH edges if
33238 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33240 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
33241 (var_shift): Use it.
33242 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
33243 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33244 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33245 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33246 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33247 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
33248 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
33249 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
33250 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
33251 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
33252 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
33253 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
33254 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
33255 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
33256 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
33257 *rotldi3_internal15be): Use the new attribute. Merge register and
33258 integer alternatives.
33260 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33262 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
33263 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
33264 split, *ashrdi3_internal3 and split): Delete, merge into...
33265 (ashr<mode>3): New expander.
33266 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
33267 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
33269 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33271 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
33272 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
33273 *rotldi3_internal3 and split): Delete, merge into...
33274 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
33275 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
33276 Use "rotlw" extended mnemonic.
33278 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33280 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
33281 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
33282 and split, *ashldi3_internal3 and split): Delete, merge into...
33283 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
33284 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
33286 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33288 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
33289 (lshrsi3, two anonymous define_insns and define_splits,
33290 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
33291 *lshrdi3_internal3 and split): Delete, merge into...
33292 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
33293 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
33295 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
33297 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
33298 Remove "O" alternative.
33300 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
33302 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
33303 (mips_move_from_gpr_cost): Likewise.
33304 (mips_register_move_cost): Update accordingly.
33305 (mips_secondary_reload_class): Remove name of in_p.
33307 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
33310 * config/i386/i386.md (x86_64_shrd, x86_shrd,
33311 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
33313 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33315 * config/nios2/nios2.c: Include "builtins.h".
33317 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33319 * cgraph.h (tls_model_names): New variable.
33320 * print-tree.c (print_node): Simplify.
33321 * varpool.c (tls_model_names): New variable.
33322 (dump_varpool_node): Output tls model.
33324 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33326 * ipa-visibility.c (function_and_variable_visibility): Disable
33327 temporarily local aliases for some targets.
33329 2014-06-20 Marek Polacek <polacek@redhat.com>
33331 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
33332 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
33333 into SANITIZE_UNDEFINED.
33334 * doc/invoke.texi: Describe -fsanitize=bounds.
33335 * gimplify.c (gimplify_call_expr): Add gimplification of internal
33336 functions created in the FEs.
33337 * internal-fn.c: Move "internal-fn.h" after "tree.h".
33338 (expand_UBSAN_BOUNDS): New function.
33339 * internal-fn.def (UBSAN_BOUNDS): New internal function.
33340 * internal-fn.h: Don't define internal functions here.
33341 * opts.c (common_handle_option): Add -fsanitize=bounds.
33342 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
33343 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
33344 * tree-core.h: Define internal functions here.
33345 (struct tree_base): Add ifn field.
33346 * tree-pretty-print.c: Include "internal-fn.h".
33347 (dump_generic_node): Handle functions without CALL_EXPR_FN.
33348 * tree.c (get_callee_fndecl): Likewise.
33349 (build_call_expr_internal_loc): New function.
33350 * tree.def (CALL_EXPR): Update description.
33351 * tree.h (CALL_EXPR_IFN): Define.
33352 (build_call_expr_internal_loc): Declare.
33353 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
33355 (ubsan_type_descriptor): Change bool parameter to enum
33356 ubsan_print_style. Adjust the code. Add handling of
33358 (ubsan_expand_bounds_ifn): New function.
33359 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
33360 (ubsan_build_overflow_builtin): Likewise.
33361 (instrument_bool_enum_load): Likewise.
33362 (ubsan_instrument_float_cast): Likewise.
33363 * ubsan.h (enum ubsan_print_style): New enum.
33364 (ubsan_expand_bounds_ifn): Declare.
33365 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
33367 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
33369 * config/rs6000/rs6000.md: Append `DONE' to preparation
33370 statements of `bswap' pattern splitters.
33372 2014-06-20 Tom de Vries <tom@codesourcery.com>
33374 * target.def (call_fusage_contains_non_callee_clobbers): Update
33376 * doc/tm.texi: Regenerate.
33378 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33379 Max Ostapenko <m.ostapenko@partner.samsung.com>
33382 * asan.c (instrument_strlen_call): Fixed instrumentation of
33385 2014-06-20 Martin Jambor <mjambor@suse.cz>
33388 * ipa-prop.c (impossible_devirt_target): New function.
33389 (try_make_edge_direct_virtual_call): Use it, also instead of
33392 2014-06-20 Yury Gribov <y.gribov@samsung.com>
33393 Max Ostapenko <m.ostapenko@partner.samsung.com>
33396 * asan.c (build_check_stmt): Add condition.
33398 2014-06-20 Martin Jambor <mjambor@suse.cz>
33401 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
33404 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33406 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
33408 (VCONQ): Make comment more helpful.
33410 * config/aarch64/aarch64-simd.md
33411 (aarch64_sqdmulh_lane<mode>):
33412 Use VCOND for operands 2. Update lane checking and flipping logic.
33413 (aarch64_sqrdmulh_lane<mode>): Likewise.
33414 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
33415 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
33416 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
33417 attribute of operand 3 to VCOND.
33418 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
33419 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33420 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
33421 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
33422 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33423 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
33425 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
33426 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
33427 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
33428 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
33429 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
33430 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
33431 operand to VCOND. Update lane flipping and bounds checking logic.
33432 (aarch64_sqdmlal2_lane<mode>): Likewise.
33433 (aarch64_sqdmlsl_lane<mode>): Likewise.
33434 (aarch64_sqdmull_lane<mode>): Likewise.
33435 (aarch64_sqdmull2_lane<mode>): Likewise.
33436 (aarch64_sqdmlal_laneq<mode>):
33437 Replace VCON usage with VCONQ.
33438 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
33439 (aarch64_sqdmlal2_laneq<mode>): Emit
33440 aarch64_sqdmlal2_laneq<mode>_internal insn.
33441 Replace VCON with VCONQ.
33442 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
33443 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
33444 (aarch64_sqdmull_laneq<mode>): Emit
33445 aarch64_sqdmull_laneq<mode>_internal insn.
33446 Replace VCON with VCONQ.
33447 (aarch64_sqdmull2_laneq<mode>): Emit
33448 aarch64_sqdmull2_laneq<mode>_internal insn.
33449 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
33450 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
33451 of 3rd argument to int16x4_t.
33452 (vqdmlalh_lane_s16): Likewise.
33453 (vqdmlslh_lane_s16): Likewise.
33454 (vqdmull_high_lane_s16): Likewise.
33455 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
33456 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
33457 (vqdmlsl_lane_s16): Likewise.
33458 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
33459 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
33460 (vqdmlals_lane_s32): Likewise.
33461 (vqdmlsls_lane_s32): Likewise.
33462 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
33463 (vqdmulls_lane_s32): Likewise.
33464 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
33465 (vqdmlsl_lane_s32): Likewise.
33466 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
33467 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
33468 (vqrdmulhh_lane_s16): Likewise.
33469 (vqdmlsl_high_lane_s16): Likewise.
33470 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
33471 (vqdmlsl_high_lane_s32): Likewise.
33472 (vqrdmulhs_lane_s32): Likewise.
33474 2014-06-20 Tom de Vries <tom@codesourcery.com>
33476 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
33477 get_call_reg_set_usage.
33479 2014-06-20 Tom de Vries <tom@codesourcery.com>
33481 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
33482 it contains all call_used_regs.
33484 2014-06-20 Tom de Vries <tom@codesourcery.com>
33486 * final.c (collect_fn_hard_reg_usage): Add and use variable
33487 function_used_regs.
33489 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
33491 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
33492 (set_init_priority, get_init_priority, set_fini_priority,
33493 get_fini_priority): New methods.
33494 * tree.c (init_priority_for_decl): Remove.
33495 (init_ttree): Do not initialize init priority.
33496 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
33497 (decl_priority_info): Remove.
33498 (decl_init_priority_insert): Rewrite.
33499 (decl_fini_priority_insert): Rewrite.
33500 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
33501 tree_priority_map_marked_p): Remove.
33502 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
33503 * lto-streamer-out.c (hash_tree): Do not hash priorities.
33504 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
33505 not output priorities.
33506 (pack_ts_function_decl_value_fields): Likewise.
33507 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
33508 not input priorities.
33509 (unpack_ts_function_decl_value_fields): Likewise.
33510 * symtab.c (symbol_priority_map): Declare.
33511 (init_priority_hash): Declare.
33512 (symtab_unregister_node): Unregister from priority hash, too.
33513 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
33515 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
33516 (symbol_priority_info): New function.
33517 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
33519 * tree-core.h (tree_priority_map): Remove.
33521 2014-06-20 Jakub Jelinek <jakub@redhat.com>
33523 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
33524 0xff to uint64_t before shifting it up.
33526 2014-06-20 Julian Brown <julian@codesourcery.com>
33527 Chung-Lin Tang <cltang@codesourcery.com>
33529 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
33530 TARGET_THUMB1_ONLY. Add comments.
33532 2014-06-19 Tom de Vries <tom@codesourcery.com>
33534 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
33535 return type to void.
33536 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
33538 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33540 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
33541 as "move", from depends_on.
33543 2014-06-19 Terry Guo <terry.guo@arm.com>
33545 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
33548 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
33550 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
33552 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
33554 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
33557 * config/sh/sh.c (prepare_move_operands): Don't process TLS
33558 addresses here if reload in progress or completed.
33560 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33562 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
33563 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
33564 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
33565 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
33566 (mips_register_priority): New function that implements the target
33567 hook TARGET_REGISTER_PRIORITY.
33568 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
33569 (mips_lra_p): Likewise for TARGET_LRA_P.
33570 (TARGET_REGISTER_PRIORITY): Define macro.
33571 (TARGET_SPILL_CLASS): Likewise.
33572 (TARGET_LRA_P): Likewise.
33573 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
33575 (REG_CLASS_NAMES): Likewise.
33576 (REG_CLASS_CONTENTS): Likewise.
33577 (BASE_REG_CLASS): Use M16_SP_REGS.
33578 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
33579 New set attribute to enable alternatives depending on the register
33581 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
33582 (*lea64): Disable pattern for MIPS16.
33583 * config/mips/mips.opt (mlra): New option.
33585 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
33587 * lra-constraints.c (base_to_reg): New function.
33588 (process_address): Use new function.
33590 2014-06-18 Tom de Vries <tom@codesourcery.com>
33592 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
33593 * config/aarch64/aarch64.c
33594 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
33595 (aarch64_emit_call_insn): New function.
33596 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
33598 * config/aarch64/aarch64.md (define_expand "call_internal")
33599 (define_expand "call_value_internal", define_expand "sibcall_internal")
33600 (define_expand "sibcall_value_internal"): New.
33601 (define_expand "call", define_expand "call_value")
33602 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
33603 expand variant and aarch64_emit_call_insn.
33605 2014-06-18 Radovan Obradovic <robradovic@mips.com>
33606 Tom de Vries <tom@codesourcery.com>
33608 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
33609 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33611 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
33612 clobbers to CALL_INSN_FUNCTION_USAGE.
33613 (define_expand "sibcall_internal")
33614 (define_expand "sibcall_value_internal"): New.
33615 (define_expand "call", define_expand "call_value"): Add argument to
33616 arm_emit_call_insn.
33617 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
33618 (define_expand "sibcall_value"): Use sibcall_value_internal and
33619 arm_emit_call_insn.
33621 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33623 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
33625 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33627 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
33630 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33632 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
33633 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
33634 annotations. Fix DWARF information.
33636 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33638 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
33639 __udivmoddi4, and fixups for negative operands.
33641 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33643 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
33645 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33647 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
33650 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33652 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
33655 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33657 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
33658 describing register usage on function entry and exit.
33660 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33662 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
33663 (__aeabi_ldivmod): Fix whitespace.
33665 2014-06-18 Andreas Schwab <schwab@suse.de>
33667 * doc/md.texi (Standard Names): Use @itemx for grouped items.
33668 Remove blank line after @item.
33670 2014-06-18 Richard Henderson <rth@redhat.com>
33673 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
33675 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
33677 * config/arm/arm.c (neon_vector_mem_operand): Allow register
33678 POST_MODIFY for neon loads and stores.
33679 (arm_print_operand): Output post-index register for neon loads and
33682 2014-06-18 Richard Biener <rguenther@suse.de>
33684 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
33686 2014-06-18 Richard Biener <rguenther@suse.de>
33688 * tree-pass.h (make_pass_dce_loop): Remove.
33689 * passes.def: Replace pass_dce_loop with pass_dce.
33690 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
33691 changed free niter estimates and reset the scev cache.
33692 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
33693 make_pass_dce_loop): Remove.
33694 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
33695 (fini_copy_prop): Return whether something changed. Always
33696 let substitute_and_fold perform DCE and free niter estimates
33697 and reset the scev cache if so.
33698 (execute_copy_prop): If sth changed schedule cleanup-cfg.
33699 (pass_data_copy_prop): Do not unconditionally schedule
33700 cleanup-cfg or update-ssa.
33702 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33704 PR tree-optimization/61518
33705 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
33706 reduction var is used in reduction stmt or phi-function only.
33708 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33710 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
33712 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33714 PR tree-optimization/61517
33715 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
33716 whose rhs's first tree is the source expression instead of the
33718 (find_bswap_or_nop): Likewise.
33719 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
33720 gimple stmt whose rhs's first tree is the source. In the memory source
33721 case, move the stmt to be replaced close to one of the original load to
33722 avoid the problem of a store between the load and the stmt's original
33724 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
33727 2014-06-18 Andreas Schwab <schwab@suse.de>
33729 PR rtl-optimization/54555
33730 * postreload.c (move2add_use_add2_insn): Substitute
33731 STRICT_LOW_PART only if it is cheaper.
33733 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
33735 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
33736 Do not use unspec as call operand. Use memory_operand instead of
33737 memory_nox32_operand and add "m" operand constraint. Disable
33738 pattern for TARGET_X32.
33739 (*sibcall_pop_memory): Ditto.
33740 (*sibcall_value_memory): Ditto.
33741 (*sibcall_value_pop_memory): Ditto.
33742 (sibcall peepholes): Merge SImode and DImode patterns using
33743 W mode iterator. Use memory_operand instead of memory_nox32_operand.
33744 Disable pattern for TARGET_X32. Check if eliminated register is
33745 really dead after call insn. Generate call RTX without unspec operand.
33746 (sibcall_value peepholes): Ditto.
33747 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
33748 instead of memory_nox32_operand. Check if eliminated register is
33749 really dead after call insn. Generate call RTX without unspec operand.
33750 (sibcall_value_pop peepholes): Ditto.
33751 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
33753 2014-06-18 Terry Guo <terry.guo@arm.com>
33756 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
33759 2014-06-18 Olivier Hainque <hainque@adacore.com>
33761 * tree-core.h (tree_block): Add an "end_locus" field, allowing
33762 memorization of the end of block source location.
33763 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
33764 * gimplify.c (gimplify_bind_expr): Propagate the block start and
33765 end source location info we have on the block entry/exit code we
33768 2014-06-18 Richard Biener <rguenther@suse.de>
33770 * common.opt (fssa-phiopt): New option.
33771 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
33773 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
33774 * doc/invoke.texi (-fssa-phiopt): Document.
33776 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33778 * genattrtab.c (n_bypassed): New variable.
33779 (process_bypasses): Initialise n_bypassed.
33780 Count number of bypassed reservations.
33781 (make_automaton_attrs): Allocate space for bypassed reservations
33782 rather than number of bypasses.
33784 2014-06-18 Richard Biener <rguenther@suse.de>
33786 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
33787 we propagated anything.
33788 (substitute_and_fold_dom_walker::before_dom_children): Something
33789 changed if we propagated into PHI arguments.
33790 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
33793 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
33795 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
33797 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
33798 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
33799 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
33800 Introduces alternative way of loads group permutaions.
33801 (vect_transform_grouped_load): Try alternative way of permutations.
33803 2014-06-18 Jakub Jelinek <jakub@redhat.com>
33805 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
33806 changed in ORT_TARGET region, don't jump to do_outer.
33807 (struct gimplify_adjust_omp_clauses_data): New type.
33808 (gimplify_adjust_omp_clauses_1): Adjust for data being
33809 a struct gimplify_adjust_omp_clauses_data pointer instead
33810 of tree *. Pass pre_p as a new argument to
33811 lang_hooks.decls.omp_finish_clause hook.
33812 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
33813 splay_tree_foreach to pass both list_p and pre_p.
33814 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
33815 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
33816 gimplify_adjust_omp_clauses callers.
33817 * langhooks.c (lhd_omp_finish_clause): New function.
33818 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
33819 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
33820 * langhooks.h (struct lang_hooks_for_decls): Add a new
33821 gimple_seq * argument to omp_finish_clause hook.
33822 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
33823 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
33824 (scan_omp_parallel, lower_omp_for): When adding
33825 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
33826 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
33827 * tree-nested.c (convert_nonlocal_omp_clauses,
33828 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
33829 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
33831 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
33833 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
33834 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
33836 2014-06-17 Xinliang David Li <davidxl@google.com>
33838 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
33839 * passes.c (pass_init_dump_file): Do not set initialize
33840 flag to false unconditionally.
33842 2014-06-17 Richard Biener <rguenther@suse.de>
33844 * genopinit.c (main): Use vec<>::qsort method.
33845 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
33847 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
33849 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
33851 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
33852 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
33853 (mips_move_to_gpr_cost): Remove ST_REGS case.
33854 (mips_move_from_gpr_cost): Likewise.
33855 (mips_register_move_cost): Likewise.
33856 (mips_secondary_reload_class): Likewise.
33858 2014-06-17 Richard Biener <rguenther@suse.de>
33860 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
33861 (pass_all_optimizations): Move 3rd copy-prop pass from after
33862 fre to before ifcombine/phiopt.
33864 2014-06-17 Richard Biener <rguenther@suse.de>
33866 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
33867 and allow all blocks to be forwarders.
33869 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
33872 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
33873 variable 'size'; calculate 'size' right in the front; use
33874 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
33875 pcum->aapcs_stack_words.
33877 2014-06-17 Nick Clifton <nickc@redhat.com>
33879 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
33880 (umulhi3, mulsidi3, umulsidi3): Likewise.
33882 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
33884 PR middle-end/61508
33885 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
33886 check for section name.
33888 2014-06-17 Richard Biener <rguenther@suse.de>
33890 * tree-ssa-propagate.c: Include domwalk.h.
33891 (substitute_and_fold): Outline main worker into a domwalker ...
33892 (substitute_and_fold_dom_walker::before_dom_children): ... here.
33893 Schedule stmts we can fully propagate for removal. Remove
33895 (substitute_and_fold): Apply a dominator walk to perform
33896 substitution. Process stmts scheduled for removal here.
33898 2014-06-17 Richard Biener <rguenther@suse.de>
33900 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
33901 of PHI node moving.
33903 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
33905 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
33906 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
33907 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33908 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
33909 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
33911 (get_fpscr) : Likewise.
33913 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33915 PR rtl-optimization/61325
33916 * lra-constraints.c (valid_address_p): Add forward declaration.
33917 (simplify_operand_subreg): Check address validity before and after
33918 alter_reg of memory subreg.
33920 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
33922 * config/i386/i386.c (decide_alg): Correctly handle
33923 maximum size of stringop algorithm.
33925 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33927 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
33929 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
33931 PR rtl-optimization/61522
33932 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
33934 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
33937 * symtab.c (symtab_node::reset_section): New method.
33938 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
33940 * cgraph.h (reset_section): Declare.
33941 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
33942 do not consider comdat locals.
33943 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
33945 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
33946 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
33947 reset sections of symbols dragged out of the comdats.
33948 (function_and_variable_visibility): Reset sections of
33951 2014-06-16 Richard Biener <rguenther@suse.de>
33953 PR tree-optimization/61482
33954 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
33955 [-INF(OVF), +INF(OVF)] range.
33957 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
33959 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
33960 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
33961 handling 32-bit multiplication.
33963 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
33965 PR middle-end/61430
33966 * lra-lives.c (process_bb_lives): Skip creating copy during
33967 insn scan when src/dest has constrained to same regno.
33969 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
33971 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
33972 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
33974 2014-06-16 Yury Gribov <y.gribov@samsung.com>
33976 * asan.c (check_func): New function.
33977 (maybe_create_ssa_name): Likewise.
33978 (build_check_stmt_with_calls): Likewise.
33979 (use_calls_p): Likewise.
33980 (report_error_func): Change interface.
33981 (build_check_stmt): Allow non-integer lengths; add support
33983 (asan_instrument): Likewise.
33984 (instrument_mem_region_access): Moved code to build_check_stmt.
33985 (instrument_derefs): Likewise.
33986 (instrument_strlen_call): Likewise.
33987 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
33988 * doc/invoke.texi: Describe new parameter.
33989 * params.def: Define new parameter.
33990 * params.h: Likewise.
33991 * sanitizer.def: Describe new builtins.
33993 2014-06-16 Richard Biener <rguenther@suse.de>
33995 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33996 Make all defs available at the end.
33997 (eliminate): If we remove a PHI node schedule cfg-cleanup.
33999 2014-06-18 Jakub Jelinek <jakub@redhat.com>
34002 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
34004 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
34007 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
34008 initialization. Replace remaining use of uid.
34010 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
34012 * c-family/c-common.c (handle_tls_model_attribute): Use
34013 set_decl_tls_model.
34014 * c-family/c-common.c (handle_tls_model_attribute): Use
34015 set_decl_tls_model.
34016 * cgraph.h (struct varpool_node): Add tls_model.
34017 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
34018 * tree.h (DECL_TLS_MODEL): Update.
34019 (DECL_THREAD_LOCAL_P): Check that variable is static.
34020 (decl_tls_model): Declare.
34021 (set_decl_tls_model): Declare.
34022 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
34023 set symbol prorperties.
34024 (get_emutls_init_templ_addr): Cleanup.
34025 (new_emutls_decl): Update.
34026 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
34027 (lto_input_varpool_node): Likewise.
34028 * lto-streamer-out.c (hash_tree): Likewise.
34029 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
34030 not stream DECL_TLS_MODEL.
34031 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
34032 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
34034 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34036 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
34038 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34040 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
34041 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
34043 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
34044 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
34045 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
34046 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
34047 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
34048 (df_get_artificial_defs, df_get_artificial_uses)
34049 (df_single_def, df_single_use): Update accordingly.
34050 (df_refs_chain_dump): Take the first element in a linked list as
34051 parameter, rather than a pointer to an array of pointers.
34052 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
34053 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
34054 (df_chain_create_bb_process_use): Likewise.
34055 (df_md_bb_local_compute_process_def): Likewise.
34056 * fwprop.c (process_defs, process_uses): Likewise.
34057 (register_active_defs, update_uses): Likewise.
34058 (forward_propagate_asm): Update for new df_ref linking.
34059 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
34060 (df_null_ref_rec, df_null_mw_rec): Likewise.
34061 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
34063 (df_scan_free_bb_info): Remove check for null artificial_defs.
34064 (df_install_ref_incremental): Adjust for new df_ref linking.
34065 Use a single-element insertion rather than a full sort.
34066 (df_ref_chain_delete_du_chain): Take the first element
34067 in a linked list as parameter, rather than a pointer to an array of
34069 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
34070 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
34071 (df_insn_info_delete): Remove check for null defs and call to
34072 df_scan_free_mws_vec.
34073 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
34074 null rather than df_null_*_rec.
34075 (df_insn_rescan_debug_internal): Likewise, and update null
34076 checks in the same way. Remove check for null defs.
34077 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
34078 Move a single element rather doing a full sort.
34079 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
34081 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
34082 Initialize df_ref and df_mw_hardreg lists to null rather than
34084 (df_ref_compare): Take df_refs as parameter, transferring the
34085 old interface to...
34086 (df_ref_ptr_compare): ...this new function.
34087 (df_sort_and_compress_refs): Update accordingly.
34088 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
34089 old interface to...
34090 (df_mw_ptr_compare): ...this new function.
34091 (df_sort_and_compress_mws): Update accordingly.
34092 (df_install_refs, df_install_mws): Return a linked list rather than
34093 an array of pointers.
34094 (df_refs_add_to_chains): Assert that old lists are empty rather
34096 (df_insn_refs_verify): Don't handle null defs speciailly.
34097 * web.c (union_match_dups): Update for new df_ref linking.
34099 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34101 * df.h (df_ref_create, df_ref_remove): Delete.
34102 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
34103 (df_ref_remove): Likewise.
34105 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34107 * df.h (df_single_def, df_single_use): New functions.
34108 * ira.c (find_moveable_pseudos): Use them.
34110 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34112 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
34113 * df-problems.c (df_note_bb_compute): Use it.
34114 * regstat.c (regstat_bb_compute_ri): Likewise.
34116 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34118 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
34119 * cse.c (cse_extended_basic_block): Use them.
34120 * dce.c (mark_artificial_use): Likewise.
34121 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
34122 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34123 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
34124 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
34125 (df_simulate_initialize_backwards): Likewise.
34126 (df_simulate_finalize_backwards): Likewise.
34127 (df_simulate_initialize_forwards): Likewise.
34128 (df_md_simulate_artificial_defs_at_top): Likewise.
34129 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34130 * regrename.c (init_rename_info): Likewise.
34131 * regstat.c (regstat_bb_compute_ri): Likewise.
34132 (regstat_bb_compute_calls_crossed): Likewise.
34134 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
34136 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
34137 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
34138 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
34139 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
34140 * combine.c (create_log_links): Likewise.
34141 * compare-elim.c (find_flags_uses_in_insn): Likewise.
34142 (try_eliminate_compare): Likewise.
34143 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
34144 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
34145 (remove_reg_equal_equiv_notes_for_defs): Likewise.
34146 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
34147 (word_dce_process_block, dce_process_block): Likewise.
34148 * ddg.c (def_has_ccmode_p): Likewise.
34149 * df-core.c (df_bb_regno_first_def_find): Likewise.
34150 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
34151 * df-problems.c (df_rd_simulate_one_insn): Likewise.
34152 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
34153 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
34154 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
34155 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
34156 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
34157 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
34158 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
34159 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
34160 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
34161 * fwprop.c (local_ref_killed_between_p): Likewise.
34162 (all_uses_available_at, free_load_extend): Likewise.
34163 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
34164 * hw-doloop.c (scan_loop): Likewise.
34165 * ifcvt.c (dead_or_predicable): Likewise.
34166 * init-regs.c (initialize_uninitialized_regs): Likewise.
34167 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
34168 (process_bb_node_lives): Likewise.
34169 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
34170 (find_moveable_pseudos): Likewise.
34171 * loop-invariant.c (check_dependencies, record_uses): Likewise.
34172 * recog.c (peep2_find_free_register): Likewise.
34173 * ree.c (get_defs): Likewise.
34174 * regstat.c (regstat_bb_compute_ri): Likewise.
34175 (regstat_bb_compute_calls_crossed): Likewise.
34176 * sched-deps.c (find_inc, find_mem): Likewise.
34177 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
34178 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
34179 * shrink-wrap.c (requires_stack_frame_p): Likewise.
34180 (prepare_shrink_wrap): Likewise.
34181 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
34182 * web.c (union_defs, pass_web::execute): Likewise.
34183 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
34184 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
34186 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
34188 * lra-assign.c (assign_by_spills): Add code to assign vector regs
34189 to inheritance pseudos.
34190 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
34192 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
34195 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
34196 (BU_MISC_2): Rename to ...
34197 (BU_LDBL128_2): ... this.
34198 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
34199 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
34200 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
34201 RS6000_BTM_LDBL128.
34202 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
34203 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
34204 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
34205 (unpacktf_1): Likewise.
34206 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
34207 (__builtin_longdouble_dw1): Likewise.
34208 * doc/sourcebuild.texi (longdouble128): Document.
34210 2014-06-13 Jeff Law <law@redhat.com>
34212 PR rtl-optimization/61094
34213 PR rtl-optimization/61446
34214 * ree.c (combine_reaching_defs): Get the mode for the copy from
34215 the extension insn rather than the defining insn.
34217 2014-06-13 Dehao Chen <dehao@google.com>
34219 * dwarf2out.c (add_linkage_name): Emit more linkage name.
34221 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
34223 * doc/install.texi (--enable-linker-plugin-configure-flags)
34224 (--enable-linker-plugin-flags): Document new flags.
34226 2014-06-13 Martin Jambor <mjambor@suse.cz>
34229 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
34230 cache_token if returning early.
34232 2014-06-13 Nick Clifton <nickc@redhat.com>
34234 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
34235 requested alignment is active.
34236 (LABEL_ALIGN): Likewise.
34237 (LOOP_ALIGN): Likewise.
34239 2014-06-13 Richard Biener <rguenther@suse.de>
34241 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34242 Rewrite to propagate the VN result into all uses where
34243 possible and to remove stmts becoming dead because of that.
34244 (eliminate): Generalize stmt removal handling, remove in
34245 reverse dominator order to support proper debug stmt
34246 generation. Update stmts before removing stmts.
34247 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
34249 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
34251 PR tree-optimization/61375
34252 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
34253 symbolic number cannot be represented in an uint64_t.
34254 (find_bswap_or_nop_1): Likewise.
34256 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34258 * symtab.c (symtab_node::reset_section): New method.
34259 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
34261 * cgraph.h (reset_section): Declare.
34262 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
34263 do not consider comdat locals.
34264 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
34266 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
34267 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
34268 reset sections of symbols dragged out of the comdats.
34269 (function_and_variable_visibility): Reset sections of
34272 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
34274 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
34275 to use symtab and decl_binds_to_current_def_p
34276 * tree-vectorizer.c (increase_alignment): Increase alignment
34277 of alias target, too.
34279 2014-06-12 Jakub Jelinek <jakub@redhat.com>
34281 PR middle-end/61486
34282 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
34283 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
34284 if outer combined construct is distribute.
34285 (gimplify_omp_for): For OMP_DISTRIBUTE set
34286 gimplify_omp_ctxp->distribute.
34287 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
34288 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
34289 mapping into decl map.
34291 2014-06-12 Jason Merrill <jason@redhat.com>
34293 * common.opt (fabi-version): Change default to 0.
34295 2014-06-12 Jason Merrill <jason@redhat.com>
34297 * toplev.c (process_options): Reject -fabi-version=1.
34299 2014-06-12 Jeff Law <law@redhat.com>
34301 PR tree-optimization/61009
34302 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
34303 value when we stop processing a block due to problematic PHIs.
34305 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
34307 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
34308 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
34309 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
34310 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
34311 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
34312 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
34313 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
34314 are not in the spec.
34316 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
34319 * config/aarch64/aarch64-modes.def: Add V1DFmode.
34320 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
34323 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
34325 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
34327 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
34330 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
34331 loading from address spaces.
34333 2014-06-12 Martin Liska <mliska@suse.cz>
34336 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
34337 statement is reachable.
34339 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34341 * symtab.c (section_hash): New hash.
34342 (symtab_unregister_node): Clear section before freeing.
34343 (hash_section_hash_entry): New haser.
34344 (eq_sections): New function.
34345 (symtab_node::set_section_for_node): New method.
34346 (set_section_1): Update.
34347 (symtab_node::set_section): Take string instead of tree as parameter.
34348 (symtab_resolve_alias): Update.
34349 * cgraph.h (section_hash_entry_d): New structure.
34350 (section_hash_entry): New typedef.
34351 (cgraph_node): Change comdat_group_ to x_comdat_group,
34352 change section_ to x_section and turn into section_hash_entry;
34353 update accestors; put set_section_for_node offline.
34354 * tree.c (decl_section_name): Turn into string.
34355 (set_decl_section_name): Change parameter to be string.
34356 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
34357 * sdbout.c (sdbout_one_type): Update.
34358 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
34359 * varasm.c (IN_NAMED_SECTION, get_named_section,
34360 resolve_unique_section, hot_function_section, get_named_text_section,
34361 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
34362 make_decl_rtl, default_unique_section): Update.
34363 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
34364 (c6x_elf_unique_section): Update.
34365 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
34366 * config/pa/pa.c (pa_function_section): Update.
34367 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
34368 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
34369 * config/arc/arc.c (arc_in_small_data_p): Update.
34370 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
34371 * config/mcore/mcore.c (mcore_unique_section): Update.
34372 * config/mips/mips.c (mips16_build_function_stub): Update.
34373 (mips16_build_call_stub): Update.
34374 (mips_function_rodata_section): Update.
34375 (mips_in_small_data_p): Update.
34376 * config/score/score.c (score_in_small_data_p): Update.
34377 * config/rx/rx.c (rx_in_small_data): Update.
34378 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
34379 (rs6000_xcoff_asm_named_section): Update.
34380 (rs6000_xcoff_unique_section): Update.
34381 * config/frv/frv.c (frv_string_begins_with): Update.
34382 (frv_in_small_data_p): Update.
34383 * config/v850/v850.c (v850_encode_data_area): Update.
34384 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
34385 (bfin_handle_l1_data_attribute): Update.
34386 (bfin_handle_l2_attribute): Update.
34387 * config/mep/mep.c (mep_unique_section): Update.
34388 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
34390 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
34391 (h8300_handle_tiny_data_attribute): Update.
34392 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
34393 (m32r_in_small_data_p): Update.
34394 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
34395 * config/i386/i386.c (ix86_in_large_data_p): Update.
34396 * config/i386/winnt.c (i386_pe_unique_section): Update.
34397 * config/darwin.c (darwin_function_section): Update.
34398 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
34399 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34400 (new_emutls_decl): Update.
34401 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
34402 input_varpool_node): Update.
34403 (ead_string_cst): Turn to ...
34404 (read_string): ... this one.
34405 * dwarf2out.c (secname_for_decl): Update.
34406 * asan.c (asan_protect_global): Update.
34408 2014-06-11 DJ Delorie <dj@redhat.com>
34410 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
34412 * config/rx/rx.c (rx_option_override): Likewise.
34413 (rx_align_for_label): Likewise.
34415 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
34417 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
34419 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
34422 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34424 * common.md: New file.
34425 * doc/md.texi: Update description of generic, machine-independent
34427 * config/s390/constraints.md (e): Delete.
34428 * Makefile.in (md_file): Include common.md.
34429 * config/m32c/t-m32c (md_file): Likewise.
34430 * genpreds.c (general_mem): New array.
34431 (generic_constraint_letters): Remove constraints now defined by
34433 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34434 Allow the first character to be '<' or '>' as well.
34435 * genoutput.c (general_mem): New array.
34436 (indep_constraints): Remove constraints now defined by common.md.
34437 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
34438 Remove special handling of 'm'.
34439 * ira-costs.c (record_reg_classes): Remove special handling of
34440 constraints now defined by common.md.
34441 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34442 * ira-lives.c (single_reg_class): Likewise.
34443 (ira_implicitly_set_insn_hard_regs): Likewise.
34444 * lra-constraints.c (reg_class_from_constraints): Likewise.
34445 (process_alt_operands, process_address, curr_insn_transform): Likewise.
34446 * postreload.c (reload_cse_simplify_operands): Likewise.
34447 * reload.c (push_secondary_reload, scratch_reload_class)
34448 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34449 * reload1.c (maybe_fix_stack_asms): Likewise.
34450 * targhooks.c (default_secondary_reload): Likewise.
34451 * stmt.c (parse_output_constraint): Likewise.
34452 * recog.c (preprocess_constraints): Likewise.
34453 (constrain_operands, peep2_find_free_register): Likewise.
34454 (asm_operand_ok): Likewise, but add a comment saying why 'o'
34455 must be handled specially.
34457 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34459 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
34460 * genpreds.c (have_const_dbl_constraints): Delete.
34461 (add_constraint): Don't set it.
34462 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
34463 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
34464 constraints using the lookup_constraint logic.
34465 * ira-lives.c (single_reg_class): Likewise.
34466 * ira.c (ira_setup_alts): Likewise.
34467 * lra-constraints.c (process_alt_operands): Likewise.
34468 * recog.c (asm_operand_ok, constrain_operands): Likewise.
34469 * reload.c (find_reloads): Likewise.
34471 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34473 * genpreds.c (const_int_start, const_int_end): New variables.
34474 (choose_enum_order): Output CONST_INT constraints before memory
34476 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
34478 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
34479 * ira.c (ira_setup_alts): Likewise.
34480 * lra-constraints.c (process_alt_operands): Likewise.
34481 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34482 * reload.c (find_reloads): Likewise.
34484 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34486 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
34487 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
34488 * recog.c (preprocess_constraints): Update accordingly.
34490 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34492 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
34493 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
34494 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
34495 * genpreds.c (print_type_tree): New function.
34496 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
34497 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
34498 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
34499 Write out enum constraint_type and get_constraint_type.
34500 * lra-constraints.c (satisfies_memory_constraint_p): Take a
34501 constraint_num rather than a constraint string.
34502 (satisfies_address_constraint_p): Likewise.
34503 (reg_class_from_constraints): Avoid old constraint macros.
34504 (process_alt_operands, process_address_1): Likewise.
34505 (curr_insn_transform): Likewise.
34506 * ira-costs.c (record_reg_classes): Likewise.
34507 (record_operand_costs): Likewise.
34508 * ira-lives.c (single_reg_class): Likewise.
34509 (ira_implicitly_set_insn_hard_regs): Likewise.
34510 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
34511 * postreload.c (reload_cse_simplify_operands): Likewise.
34512 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
34513 (constrain_operands, peep2_find_free_register): Likewise.
34514 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
34515 (find_reloads, alternative_allows_const_pool_ref): Likewise.
34516 * reload1.c (maybe_fix_stack_asms): Likewise.
34517 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
34518 * targhooks.c (default_secondary_reload): Likewise.
34519 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
34520 to EXTRA_CONSTRAINT_STR.
34521 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
34523 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34525 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
34526 (write_constraint_satisfied_p_array): ...this new function.
34527 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
34529 (write_insn_preds_c): Update accordingly.
34531 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34533 * genpreds.c (write_lookup_constraint): Rename to...
34534 (write_lookup_constraint_1): ...this.
34535 (write_lookup_constraint_array): New function.
34536 (write_tm_preds_h): Define lookup_constraint as an inline function
34537 that uses write_lookup_constraint_array where possible.
34538 (write_insn_preds_c): Update for the changes above.
34540 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
34542 * doc/md.texi (regclass_for_constraint): Rename to...
34543 (reg_class_for_constraint): ...this.
34544 * genpreds.c (num_constraints, enum_order, register_start)
34545 (register_end, satisfied_start, memory_start, memory_end)
34546 (address_start, address_end): New variables.
34547 (add_constraint): Count the number of constraints.
34548 (choose_enum_order): New function.
34549 (write_enum_constraint_num): Iterate over enum_order.
34550 (write_regclass_for_constraint): Rename to...
34551 (write_reg_class_for_constraint_1): ...this and update output
34553 (write_constraint_satisfied_p): Rename to...
34554 (write_constraint_satisfied_p_1): ...this and update output
34555 accordingly. Do nothing if all extra constraints are register
34557 (write_insn_extra_memory_constraint): Delete.
34558 (write_insn_extra_address_constraint): Delete.
34559 (write_range_function): New function.
34560 (write_tm_preds_h): Define constraint_satisfied_p and
34561 reg_class_for_constraint as inline functions that do a range check
34562 before calling the out-of-line function. Use write_range_function
34563 to implement insn_extra_{register,memory,address}_constraint,
34564 the first of which is new.
34565 (write_insn_preds_c): Update after above changes to write_* functions.
34566 (main): Call choose_enum_order.
34568 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
34570 PR tree-optimization/61306
34571 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
34572 expression instead of its size.
34573 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
34574 false to prevent optimization when the result is unpredictable due to
34575 arithmetic right shift of signed type with highest byte is set.
34576 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
34577 (init_symbolic_number): Likewise.
34578 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
34579 when the result is unpredictable due to sign extension.
34581 2014-06-11 Terry Guo <terry.guo@arm.com>
34583 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
34584 (*thumb1_addsi3): Ditto.
34585 (*thumb_subdi3): Ditto.
34586 (thumb1_subsi3_insn): Ditto.
34587 (*thumb_mulsi3): Ditto.
34588 (*thumb_mulsi3_v6): Ditto.
34589 (*thumb1_andsi3_insn): Ditto.
34590 (thumb1_bicsi3): Ditto.
34591 (*thumb1_iorsi3_insn): Ditto.
34592 (*thumb1_xorsi3_insn): Ditto.
34593 (*thumb1_ashlsi3): Ditto.
34594 (*thumb1_ashrsi3): Ditto.
34595 (*thumb1_lshrsi3): Ditto.
34596 (*thumb1_rotrsi3): Ditto.
34597 (*thumb1_negdi2): Ditto.
34598 (*thumb1_negsi2): Ditto.
34599 (*thumb1_abssi2): Ditto.
34600 (*thumb1_neg_abssi2): Ditto.
34601 (*thumb1_one_cmplsi2): Ditto.
34602 (*thumb1_zero_extendhisi2): Ditto.
34603 (*thumb1_zero_extendqisi2): Ditto.
34604 (*thumb1_zero_extendqisi2_v6): Ditto.
34605 (thumb1_extendhisi2): Ditto.
34606 (thumb1_extendqisi2): Ditto.
34607 (*thumb1_movdi_insn): Ditto.
34608 (*thumb1_movsi_insn): Ditto.
34609 (*thumb1_movhi_insn): Ditto.
34610 (thumb_movhi_clobber): Ditto.
34611 (*thumb1_movqi_insn): Ditto.
34612 (*thumb1_movhf): Ditto.
34613 (*thumb1_movsf_insn): Ditto.
34614 (*thumb_movdf_insn): Ditto.
34615 (movmem12b): Ditto.
34617 (cbranchqi4): Ditto.
34618 (cbranchsi4_insn): Ditto.
34619 (cbranchsi4_scratch): Ditto.
34620 (*negated_cbranchsi4): Ditto.
34621 (*tbit_cbranch): Ditto.
34622 (*tlobits_cbranch): Ditto.
34623 (*tstsi3_cbranch): Ditto.
34624 (*cbranchne_decr1): Ditto.
34625 (*addsi3_cbranch): Ditto.
34626 (*addsi3_cbranch_scratch): Ditto.
34627 (*thumb_cmpdi_zero): Ditto.
34628 (cstoresi_eq0_thumb1): Ditto.
34629 (cstoresi_ne0_thumb1): Ditto.
34630 (*cstoresi_eq0_thumb1_insn): Ditto.
34631 (*cstoresi_ne0_thumb1_insn): Ditto.
34632 (cstoresi_nltu_thumb1): Ditto.
34633 (cstoresi_ltu_thumb1): Ditto.
34634 (thumb1_addsi3_addgeu): Ditto.
34635 (*thumb_jump): Ditto.
34636 (*call_reg_thumb1_v5): Ditto.
34637 (*call_reg_thumb1): Ditto.
34638 (*call_value_reg_thumb1_v5): Ditto.
34639 (*call_value_reg_thumb1): Ditto.
34640 (*call_insn): Ditto.
34641 (*call_value_insn): Ditto.
34642 (thumb1_casesi_internal_pic): Ditto.
34643 (thumb1_casesi_dispatch): Ditto.
34644 (*thumb1_indirect_jump): Ditto.
34645 (prologue_thumb1_interwork): Ditto.
34646 (*epilogue_insns): Ditto.
34647 (consttable_1): Ditto.
34648 (consttable_2): Ditto.
34649 (tablejump): Ditto.
34650 (*thumb1_tablejump): Ditto.
34651 (thumb_eh_return): Ditto.
34652 (define_peephole2): Two of them are thumb1 only and got moved into
34653 new file thumb1.md.
34654 (define_split): Six of them are thumb1 only and got moved into new
34656 * config/arm/thumb1.md: New file comprised of above thumb1 only
34659 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34661 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
34662 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
34664 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
34665 (aarch64_crc_builtin_datum): New struct.
34666 (aarch64_crc_builtin_data): New.
34667 (aarch64_init_crc32_builtins): New function.
34668 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
34669 (aarch64_crc32_expand_builtin): New.
34670 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
34671 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
34672 __ARM_FEATURE_CRC32 when appropriate.
34673 (TARGET_CRC32): Define.
34674 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
34675 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
34676 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
34677 (aarch64_<crc_variant>): New pattern.
34678 * config/aarch64/arm_acle.h: New file.
34679 * config/aarch64/iterators.md (CRC): New int iterator.
34680 (crc_variant, crc_mode): New int attributes.
34681 * doc/aarch64-acle-intrinsics.texi: New file.
34682 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
34683 Include aarch64-acle-intrinsics.texi.
34685 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
34687 * tree-vect-data-refs.c (vect_grouped_store_supported): New
34688 check for stores group of length 3.
34689 (vect_permute_store_chain): New permutations for stores group of
34691 * tree-vect-stmts.c (vect_model_store_cost): Change cost
34692 of vec_perm_shuffle for the new permutations.
34694 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
34696 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
34697 table rewriting temporarily on targets not supporting ONE_ONLY.
34699 2014-06-11 Richard Biener <rguenther@suse.de>
34701 PR middle-end/61437
34703 2014-06-04 Richard Biener <rguenther@suse.de>
34705 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
34706 TREE_PUBLIC and DECL_EXTERNAL decls.
34708 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34710 * varasm.c (set_implicit_section): New function.
34711 (resolve_unique_section): Use it to set implicit section
34713 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
34714 (default_function_section): Likewise.
34715 (decl_binds_to_current_def_p): Constify argument.
34716 * varasm.h (decl_binds_to_current_def_p): Update prototype.
34717 * asan.c (asan_protect_global): Use
34718 symtab_get_node (decl)->implicit_section.
34719 * symtab.c (dump_symtab_base): Dump implicit sections.
34720 (verify_symtab_base): Verify sanity of sectoins and comdats.
34721 (symtab_resolve_alias): Alias share the section of its target.
34722 (set_section_1): New function.
34723 (symtab_node::set_section): Move here, recurse to aliases.
34724 (verify_symtab): Check for duplicated symtab lists.
34725 * tree-core.h (implicit_section_name_p): Remove.
34726 * tree-vect-data-refs.c: Include varasm.h.
34727 (vect_can_force_dr_alignment_p): Fix conditional on when
34728 decl bints to current definition; use
34729 symtab_get_node (decl)->implicit_section.
34730 * cgraph.c (cgraph_make_node_local_1): Fix section set.
34731 * cgraph.h (struct symtab_node): Add implicit_section.
34732 (set_section): Rename to ...
34733 (set_section_for_node): ... this one.
34734 (set_section): Declare.
34735 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
34736 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
34737 input_overwrite_node, input_varpool_node): Stream implicit_section.
34738 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
34739 removal; it will fail in LTO.
34741 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34743 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
34744 Change second alternative type to f_mcr.
34745 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
34746 and 12th alternatives' types to f_mcr and f_mrc.
34747 (*movdi_aarch64): Same for 12th and 13th alternatives.
34748 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
34749 (aarch64_movtilow_tilow): Change type to fmov.
34751 2014-06-10 Jiong Wang <jiong.wang@arm.com>
34753 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
34754 (aarch64_save_or_restore_callee_save_registers): Fix layout.
34756 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34758 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
34760 (aarch64_sqrdmulh_lane<mode>): Likewise.
34761 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34762 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34763 (aarch64_sqdmulh_laneq<mode>): New expander.
34764 (aarch64_sqrdmulh_laneq<mode>): Likewise.
34765 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
34766 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
34767 (aarch64_sqdmulh_lane<mode>): New expander.
34768 (aarch64_sqrdmulh_lane<mode>): Likewise.
34769 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
34770 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
34771 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
34772 (aarch64_sqdmlal_laneq<mode>): Likewise.
34773 (aarch64_sqdmlsl_lane<mode>): Likewise.
34774 (aarch64_sqdmlsl_laneq<mode>): Likewise.
34775 (aarch64_sqdmlal2_lane<mode>): Likewise.
34776 (aarch64_sqdmlal2_laneq<mode>): Likewise.
34777 (aarch64_sqdmlsl2_lane<mode>): Likewise.
34778 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
34779 (aarch64_sqdmull_lane<mode>): Likewise.
34780 (aarch64_sqdmull_laneq<mode>): Likewise.
34781 (aarch64_sqdmull2_lane<mode>): Likewise.
34782 (aarch64_sqdmull2_laneq<mode>): Likewise.
34784 2014-06-10 Richard Biener <rguenther@suse.de>
34786 PR tree-optimization/61438
34787 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
34788 (eliminate_dom_walker::before_dom_children): Only try to inhibit
34789 insertion of IVs if running PRE.
34790 (eliminate): Adjust.
34791 (pass_pre::execute): Likewise.
34792 (pass_fre::execute): Likewise.
34794 2014-06-10 Richard Biener <rguenther@suse.de>
34796 PR middle-end/61456
34797 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
34798 Do not use the main variant for the type comparison.
34799 (ncr_compar): Likewise.
34800 (nonoverlapping_component_refs_p): Likewise.
34802 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
34804 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
34805 REG_CFA_RESTORE mode.
34807 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
34809 * config/i386/i386.c (expand_vec_perm_pblendv): New.
34810 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
34811 expand_vec_perm_pblendv.
34813 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34815 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
34817 Simplify description of __crc32d and __crc32cd intrinsics.
34818 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
34821 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
34824 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
34825 * config.in: Regenerate.
34826 * configure: Likewise.
34828 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
34830 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
34832 (intersect_static_var_sets): Remove.
34833 (propagate): Do not prune local statics.
34835 2014-06-10 Jakub Jelinek <jakub@redhat.com>
34838 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
34839 Set lastprivate_firstprivate even if omp_private_outer_ref
34840 langhook returns true.
34841 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
34842 langhook, call unshare_expr on new_var and call
34843 build_outer_var_ref to get the last argument.
34845 2014-06-10 Marek Polacek <polacek@redhat.com>
34848 * doc/extend.texi: Add cindex for transparent_union.
34850 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
34852 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
34853 init_symbolic_number ().
34855 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
34857 PR middle-end/61141
34858 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
34859 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
34860 (verify_rtl_sharing): Likewise.
34862 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
34865 * tree.c (build_qualified_type): Use a canonical type for
34868 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34870 * config/arm/arm-modes.def: Remove XFmode.
34872 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
34875 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
34876 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
34877 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
34878 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
34879 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
34880 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
34881 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
34882 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
34883 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
34885 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
34887 * tree-core.h (tree_decl_with_vis): Remove section_name.
34889 2014-06-09 Kito Cheng <kito@0xlab.org>
34891 * ira.c (ira): Don't call init_caller_save if LRA enabled
34892 since LRA use its own infrastructure to handle that.
34894 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34896 * symtab.c (dump_symtab_base): Update dumping.
34897 (symtab_make_decl_local): Clear only DECL_COMDAT.
34898 * tree-vect-data-refs.c (Check that variable is static before
34899 tampering with sections.
34900 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
34901 (cgraph_create_virtual_clone): Likewise.
34902 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
34903 (decl_section_name, set_decl_section_name): New accessors.
34904 (find_decls_types_r): Do not walk section name
34905 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
34906 (decl_comdat_group, decl_comdat_group_id): Constify.
34907 (decl_section_name, set_decl_section_name): Update.
34908 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
34909 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
34910 (cgraph_make_node_local_1): Clear section and comdat group.
34911 * cgraph.h (set_comdat_group): Sanity check.
34912 (get_section, set_section): New.
34913 * ipa-comdats.c (ipa_comdats): Use get_section.
34914 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
34915 * lto-streamer-out.c: Do not follow section names.
34916 * c-family/c-common.c (handle_section_attribute): Update.
34917 * lto-cgraph.c (lto_output_node): Output section.
34918 (lto_output_varpool_node): Likewise.
34919 (read_comdat_group): Rename to ...
34920 (read_identifier): ... this one.
34921 (read_string_cst): New function.
34922 (input_node, input_varpool_node): Input section names.
34923 * tree-emutls.c (get_emutls_init_templ_addr): Update.
34924 (new_emutls_decl): Update.
34925 (secname_for_decl): Check section names only of static vars.
34926 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
34927 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
34928 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34929 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34930 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
34931 * config/mcore/mcore.c (mcore_unique_section): Likewise.
34932 * config/mips/mips.c (mips16_build_function_stub): Likewise.
34933 * config/v850/v850.c (v850_insert_attributes): Likewise.
34934 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
34936 (h8300_handle_tiny_data_attribute): Likewise.
34937 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
34938 (bfin_handle_l2_attribute): Likewise.
34940 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34942 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
34943 remove static initializer.
34945 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34947 * varasm.c (use_blocks_for_decl_p): Check symbol table
34948 instead of alias attribute.
34949 (place_block_symbol): Recurse on aliases.
34951 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34953 * ipa-visibility.c: Include varasm.h
34954 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
34956 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
34958 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
34959 outputting aliases.
34961 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
34963 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
34964 from test_insn into GGC space escape via SET_SRC.
34966 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
34968 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
34969 call statement, if any.
34970 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
34971 statements, if any. Tidy up.
34973 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34976 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
34977 iterators, VSX_D that handles 64-bit types, and VSX_LE that
34978 handles swapping the two 64-bit double words on little endian
34979 systems. Include V1TImode and optionally TImode in VSX_LE so that
34980 these types are properly swapped. Change all of the insns and
34981 splits that do the 64-bit swaps to use VSX_LE.
34982 (vsx_le_perm_load_<mode>): Likewise.
34983 (vsx_le_perm_store_<mode>): Likewise.
34984 (splitters for little endian memory operations): Likewise.
34985 (vsx_xxpermdi2_le_<mode>): Likewise.
34986 (vsx_lxvd2x2_le_<mode>): Likewise.
34987 (vsx_stxvd2x2_le_<mode>): Likewise.
34989 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
34992 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
34993 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
34994 and corresponding splitters. Zero extend general register
34995 or memory input operand to XMM temporary. Enable for
34996 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
34997 (floatunssi<mode>2): Update expander predicate.
34999 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
35001 PR rtl-optimization/61325
35002 * lra-constraints.c (process_address_1): Check scale equal to one
35003 to prevent transformation: base + scale * index => base + new_reg.
35005 2014-06-06 Richard Biener <rguenther@suse.de>
35007 PR tree-optimization/59299
35008 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
35010 (nearest_common_dominator_of_uses): Likewise.
35011 (statement_sink_location): Adjust. Support sinking loads.
35013 2014-06-06 Martin Jambor <mjambor@suse.cz>
35015 * ipa-prop.c (get_place_in_agg_contents_list): New function.
35016 (build_agg_jump_func_from_list): Likewise.
35017 (determine_known_aggregate_parts): Renamed to
35018 determine_locally_known_aggregate_parts. Moved some functionality
35019 to the two functions above, removed bound checks.
35021 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
35023 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
35024 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
35025 (aarch64_progress_pointer): Likewise.
35026 (aarch64_copy_one_part_and_move_pointers): Likewise.
35027 (aarch64_expand_movmen): Likewise.
35028 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
35029 * config/aarch64/aarch64.md (movmem<mode>): New.
35031 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
35033 * targhooks.c (default_add_stmt_cost): Call target specific
35034 hook instead of default one.
35036 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35038 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
35039 endianness instead of host endianness.
35040 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
35043 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35046 * function.c (instantiate_decls): Process the saved static chain.
35047 (expand_function_start): If not optimizing, save the static chain
35049 * tree-nested.c (convert_all_function_calls): Always create the static
35050 chain for nested functions if not optimizing.
35052 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35054 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
35056 2014-06-06 Richard Biener <rguenther@suse.de>
35058 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
35059 (construct_init_block): Likewise.
35060 (construct_exit_block): Likewise.
35061 (pass_expand::execute): Likewise.
35062 * graphite.c (graphite_transforms): Replace check for current_loops
35063 with a check for > 1 loops.
35064 (pass_graphite_transforms::execute): Adjust.
35065 * ipa-split.c (split_function): Remove check for current_loops.
35066 * omp-low.c (expand_parallel_call): Likewise.
35067 (expand_omp_for_init_counts): Likewise.
35068 (extract_omp_for_update_vars): Likewise.
35069 (expand_omp_for_generic): Likewise.
35070 (expand_omp_sections): Likewise.
35071 (expand_omp_target): Likewise.
35072 * tracer.c (tail_duplicate): Likewise.
35073 (pass_tracer::execute): Likewise.
35074 * trans-mem.c (expand_transaction): Likewise.
35075 * tree-complex.c (expand_complex_div_wide): Likewise.
35076 * tree-eh.c (lower_resx): Likewise.
35077 (cleanup_empty_eh_merge_phis): Likewise.
35078 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
35079 current_loops with a check for > 1 loops.
35080 (pass_predcom::execute): Adjust.
35081 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
35082 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
35083 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
35084 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
35085 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
35086 * tree-switch-conversion.c (process_switch): Likewise.
35087 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
35088 * tree-vrp.c (vrp_visit_phi_node): Likewise.
35089 (execute_vrp): Likewise.
35090 * ubsan.c (ubsan_expand_null_ifn): Likewise.
35092 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
35094 * rtl.h (insn_location): Declare.
35095 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
35096 with UNKNOWN_LOCATION.
35097 * emit-rtl.c (insn_location): New function.
35098 * final.c (notice_source_line): Check that the instruction has a
35099 location before retrieving it and use insn_location.
35100 * modulo-sched.c (loop_single_full_bb_p): Likewise.
35101 * print-rtl.c (print_rtx): Likewise.
35103 2014-06-06 Richard Biener <rguenther@suse.de>
35105 * passes.def: Move 2nd VRP pass before phi-only-cprop.
35107 2014-06-06 Christian Bruel <christian.bruel@st.com>
35109 PR tree-optimization/43934
35110 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
35113 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
35115 * ira-lives.c (single_reg_class): Add missing break. Explicitly
35116 return NO_REGS for extra address and memory constraints. Handle
35117 operands that match (or are equivalent to something that matches)
35118 extra constant constraints. Ignore other non-register operands.
35120 2014-06-06 Alan Modra <amodra@gmail.com>
35123 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
35124 * doc/tm.texi: Regenerate.
35125 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
35126 Use throughout in place of REG_PARM_STACK_SPACE.
35127 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
35128 "incoming" param. Pass to rs6000_function_parms_need_stack.
35129 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
35130 prototype_p when incoming. Use function decl when incoming
35131 to handle K&R style functions.
35132 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
35133 (INCOMING_REG_PARM_STACK_SPACE): Define.
35135 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35138 * cfgexpand.c (expand_debug_expr): Use address space of nested
35139 TREE_TYPE for ADDR_EXPR and MEM_REF.
35141 2014-06-05 Jeff Law <law@redhat.com>
35143 PR tree-optimization/61289
35144 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
35145 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
35146 looking for those which match LHS. All callers changed.
35147 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
35148 parameters and code which manipulated them. All callers changed.
35149 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
35150 and DST_MAP parameters. Simplify invalidation code by just calling
35151 invalidate_equivalences. All callers changed.
35152 (thread_across_edge): Simplify now that we don't need to maintain
35153 the map of equivalences to invalidate.
35155 2014-06-05 Kai Tietz <ktietz@redhat.com>
35156 Richard Henderson <rth@redhat.com>
35159 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
35160 checking for !TARGET_X32.
35161 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
35162 (sibcall_intern): New define_insn, plus required peepholes.
35163 (sibcall_pop_intern): Likewise.
35164 (sibcall_value_intern): Likewise.
35165 (sibcall_value_pop_intern): Likewise.
35167 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
35169 * tree-inline.c (tree_function_versioning): Check DF info existence
35170 before accessing it.
35172 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35174 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
35176 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
35177 aarch64_frame hard_fp_offset and frame_size.
35178 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
35179 frame_size; remove original_frame_size.
35180 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
35181 (aarch64_initial_elimination_offset): Remove frame_size and
35182 offset. Use aarch64_frame frame_size.
35184 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35185 Jiong Wang <jiong.wang@arm.com>
35186 Renlin <renlin.li@arm.com>
35188 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
35189 initialization of R30 offset. Update offset. Iterate core
35190 regisers upto X30. Remove X29, X30 specific code.
35192 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35193 Jiong Wang <jiong.wang@arm.com>
35195 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
35196 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
35197 (aarch64_register_saved_on_entry): Adjust test.
35199 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35201 * config/aarch64/aarch64.h (machine_function): Move
35202 saved_varargs_size from here...
35203 (aarch64_frame): ... to here.
35205 * config/aarch64/aarch64.c (aarch64_expand_prologue)
35206 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
35207 (aarch64_initial_elimination_offset)
35208 (aarch64_setup_incoming_varargs): Adjust location of
35209 saved_varargs_size.
35211 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
35213 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
35216 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
35217 Prachi Godbole <Prachi.Godbole@imgtec.com>
35219 * config/mips/mips-cpus.def: Add definition for p5600. Updated
35220 mips32r5 entry to use PROCESSOR_P5600.
35221 * config/mips/mips-tables.opt: Regenerate.
35222 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
35223 * config/mips/mips.c (mips_fmadd_bypass): New function.
35224 (mips_rtx_cost_data): Add costs for p5600.
35225 (mips_issue_rate): Add support for p5600.
35226 (mips_multipass_dfa_lookahead): Likewise.
35227 * config/mips/mips.h (TUNE_P5600): New define.
35228 (TUNE_MACC_CHAINS): Add TUNE_P5600.
35229 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
35230 * config/mips/mips.md: Include p5600.md.
35231 (processor): Add p5600.
35232 * config/mips/p5600.md: New file.
35234 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
35236 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
35237 * config/i386/predicates.md (palignr_operand): New.
35238 Indicates if permutation is suitable for palignr instruction.
35240 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
35242 PR tree-optimization/61319
35243 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
35244 stmt belongs to loop.
35246 2014-06-05 Richard Biener <rguenther@suse.de>
35248 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
35249 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
35250 (lookup_tmp_var): Adjust.
35251 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
35253 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35255 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
35257 2014-06-05 Marek Polacek <polacek@redhat.com>
35260 * doc/invoke.texi: Document -Wlogical-not-parentheses.
35262 2014-06-04 Tom de Vries <tom@codesourcery.com>
35264 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
35267 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
35269 PR tree-optimization/61385
35270 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
35272 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
35274 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
35275 changed to use fatal_error.
35276 (main): Ensure lto_wrapper_cleanup is run atexit.
35278 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35280 * lra-constraints.c (valid_address_p): Move earlier in file.
35281 (address_eliminator): New structure.
35282 (satisfies_memory_constraint_p): New function.
35283 (satisfies_address_constraint_p): Likewise.
35284 (process_alt_operands, process_address, curr_insn_transform): Use them.
35286 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35288 * lra-int.h (lra_static_insn_data): Make operand_alternative a
35290 (target_lra_int, default_target_lra_int, this_target_lra_int)
35291 (op_alt_data): Delete.
35292 * lra.h (lra_init): Delete.
35293 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
35294 (init_insn_code_data_once): Remove op_alt_data handling.
35295 (finish_insn_code_data_once): Likewise.
35296 (init_op_alt_data): Delete.
35297 (get_static_insn_data): Initialize operand_alternative to null.
35298 (free_insn_recog_data): Cast operand_alternative before freeing it.
35299 (setup_operand_alternative): Take the operand_alternative as
35300 parameter and assume it isn't already cached in the static
35302 (lra_set_insn_recog_data): Update accordingly.
35303 (lra_init): Delete.
35304 * ira.c (ira_init): Don't call lra_init.
35305 * target-globals.h (this_target_lra_int): Declare.
35306 (target_globals): Remove lra_int.
35307 (restore_target_globals): Update accordingly.
35308 * target-globals.c: Don't include lra-int.h.
35309 (default_target_globals, save_target_globals): Remove lra_int.
35311 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35313 * recog.h (operand_alternative): Convert reg_class, reject,
35314 matched and matches into bitfields.
35315 (preprocess_constraints): New overload.
35316 (preprocess_insn_constraints): New function.
35317 (preprocess_constraints): Take the insn as parameter.
35318 (recog_op_alt): Change into a pointer.
35319 (target_recog): Add x_op_alt.
35320 * recog.c (asm_op_alt): New variable.
35321 (recog_op_alt): Change into a pointer.
35322 (preprocess_constraints): New overload, replacing the old function
35323 definition with one that doesn't use global state.
35324 (preprocess_insn_constraints): New function.
35325 (preprocess_constraints): Use them. Take the insn as parameter.
35326 Use asm_op_alt for asms.
35327 (recog_init): Free existing x_op_alt entries.
35328 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
35330 (make_early_clobber_and_input_conflicts): Likewise.
35331 (process_bb_node_lives): Pass the insn to process_constraints.
35332 * reg-stack.c (check_asm_stack_operands): Likewise.
35333 (subst_asm_stack_regs): Likewise.
35334 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35335 * regrename.c (build_def_use): Likewise.
35336 * sched-deps.c (sched_analyze_insn): Likewise.
35337 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
35338 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35339 (note_invalid_constants): Likewise.
35340 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35341 (ix86_legitimate_combined_insn): Make operand_alternative pointer
35344 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35346 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
35347 * ira-lives.c (check_and_make_def_conflict): Check for disabled
35349 (make_early_clobber_and_input_conflicts): Likewise.
35350 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35352 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35354 * recog.h (alternative_class): New function.
35355 (which_op_alt): Return a const recog_op_alt.
35356 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
35357 (subst_asm_stack_regs): Likewise.
35358 * config/arm/arm.c (note_invalid_constants): Likewise.
35359 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
35360 the operand_alternative; use alternative class instead.
35361 * sel-sched.c (get_reg_class): Likewise.
35362 * regrename.c (build_def_use): Likewise.
35363 (hide_operands, restore_operands, record_out_operands): Update type
35366 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
35368 * recog.h (recog_op_alt): Convert to a flat array.
35369 (which_op_alt): New function.
35370 * recog.c (recog_op_alt): Convert to a flat array.
35371 (preprocess_constraints): Update accordingly, grouping all
35372 operands of the same alternative together, rather than the
35374 * ira-lives.c (check_and_make_def_conflict): Likewise.
35375 (make_early_clobber_and_input_conflicts): Likewise.
35376 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
35377 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
35378 (subst_asm_stack_regs): Likewise.
35379 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
35380 * regrename.c (hide_operands, record_out_operands): Likewise.
35381 (build_def_use): Likewise.
35382 * sel-sched.c (get_reg_class): Likewise.
35383 * config/arm/arm.c (note_invalid_constants): Likewise.
35385 2014-06-04 Jason Merrill <jason@redhat.com>
35389 * gimplify.c (gimplify_arg): Non-static.
35390 * gimplify.h: Declare it.
35392 2014-06-04 Richard Biener <rguenther@suse.de>
35394 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
35395 TREE_PUBLIC and DECL_EXTERNAL decls.
35397 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
35399 * regcprop.c (copyprop_hardreg_forward_1): Account for
35400 HARD_REGNO_CALL_PART_CLOBBERED.
35402 2014-06-04 Richard Biener <rguenther@suse.de>
35404 * configure.ac: Check whether the underlying type of int64_t
35405 is long or long long.
35406 * configure: Regenerate.
35407 * config.in: Likewise.
35408 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
35409 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
35411 2014-06-04 Richard Biener <rguenther@suse.de>
35413 PR tree-optimization/60098
35414 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
35416 (dse_optimize_stmt): Simplify, now that we found a kill
35419 2014-06-04 Richard Biener <rguenther@suse.de>
35421 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
35422 of accesses with non-invariant address.
35424 2014-06-04 Martin Liska <mliska@suse.cz>
35426 * cgraph.h (cgraph_make_wrapper): New function introduced.
35427 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
35428 * ipa-inline.h (inline_analyze_function): The function is global.
35429 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
35431 2014-06-04 Martin Liska <mliska@suse.cz>
35433 * tree.h (private_lookup_attribute_starting): New function.
35434 (lookup_attribute_starting): Likewise.
35435 * tree.c (private_lookup_attribute_starting): Likewise.
35437 2014-06-04 Martin Liska <mliska@suse.cz>
35439 * cgraph.h (expand_thunk): New argument added.
35440 (address_taken_from_non_vtable_p): New global function.
35441 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
35442 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
35443 * cgraphunit.c (analyze_function): Likewise.
35444 (assemble_thunks_and_aliases): Argument added to call.
35445 (expand_thunk): New argument forces to produce GIMPLE thunk.
35447 2014-06-04 Martin Liska <mliska@suse.cz>
35449 * coverage.h (coverage_compute_cfg_checksum): Argument added.
35450 * coverage.c (coverage_compute_cfg_checksum): Likewise.
35451 * profile.c (branch_prob): Likewise.
35453 2014-06-04 Martin Jambor <mjambor@suse.cz>
35456 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
35457 handler for switch on an ipa_ref_use enum.
35458 * ipa-reference.c (analyze_function): Likewise.
35460 2014-06-04 Kai Tietz <ktietz@redhat.com>
35462 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
35463 from old call-instruction.
35465 2014-06-04 Bin Cheng <bin.cheng@arm.com>
35467 * config/aarch64/aarch64.c (aarch64_classify_address)
35468 (aarch64_legitimize_reload_address): Support full addressing modes
35470 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
35471 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
35473 2014-06-03 Andrew Pinski <apinski@cavium.com>
35475 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
35478 2014-06-03 Andrew Pinski <apinski@cavium.com>
35480 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
35481 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
35483 2014-06-03 Kai Tietz <ktietz@redhat.com>
35485 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
35488 2014-06-03 Dehao Chen <dehao@google.com>
35490 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
35493 2014-06-03 Marek Polacek <polacek@redhat.com>
35496 * doc/invoke.texi: Document -Wswitch-bool.
35497 * function.c (stack_protect_epilogue): Cast controlling expression of
35499 * gengtype.c (walk_type): Generate switch expression with its
35500 controlling expression cast to int.
35502 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
35504 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
35506 * config/avr/avr-tables.opt: Regenerate.
35507 * config/avr/t-multilib: Regenerate.
35508 * doc/avr-mmcu.texi: Regenerate.
35510 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
35511 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35513 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
35514 (ata6617c, ata664251): Add new avr35 devices.
35515 (ata6612c): Add new avr4 device.
35516 (ata6613c, ata6614q): Add new avr5 devices.
35517 * config/avr/avr-tables.opt: Regenerate.
35518 * config/avr/t-multilib: Regenerate.
35519 * doc/avr-mmcu.texi: Regenerate.
35521 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35523 * gcc/config/aarch64/aarch64-builtins.c
35524 (aarch64_types_binop_ssu_qualifiers): New static data.
35525 (TYPES_BINOP_SSU): Define.
35526 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
35527 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
35528 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
35529 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
35530 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
35531 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
35532 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
35533 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
35534 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
35535 suffix to builtin function name, remove cast.
35536 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
35537 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
35538 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
35540 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35542 * gcc/config/aarch64/aarch64-builtins.c
35543 (aarch64_types_binop_uus_qualifiers,
35544 aarch64_types_shift_to_unsigned_qualifiers,
35545 aarch64_types_unsigned_shiftacc_qualifiers): Define.
35546 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
35547 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
35548 sqshlu_n, uqshl_n): Update qualifiers.
35549 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
35550 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
35551 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
35552 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
35553 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
35554 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
35555 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
35556 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
35557 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
35558 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
35559 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
35560 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
35561 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
35562 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
35563 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
35564 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
35565 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
35566 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
35567 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
35568 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
35569 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
35570 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
35571 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
35572 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
35573 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
35574 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
35575 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
35577 2014-06-03 Teresa Johnson <tejohnson@google.com>
35579 * tree-sra.c (modify_function): Record caller nodes after rebuild.
35581 2014-06-02 Jason Merrill <jason@redhat.com>
35584 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
35586 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35588 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
35591 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
35593 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
35595 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
35596 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
35597 * config/aarch64/iterators.md (REVERSE): New iterator.
35598 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
35599 (rev_op): New int_attribute.
35600 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
35601 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
35602 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
35603 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
35604 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
35605 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
35606 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
35607 Replace temporary __asm__ with __builtin_shuffle.
35609 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35611 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
35613 * config/mips/mips-tables.opt: Regenerate.
35614 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
35615 to use mips_isa_rev rather than ISA_MIPS32R2.
35616 * config/mips/mips.h (ISA_MIPS32R3): New define.
35617 (ISA_MIPS32R5): New define.
35618 (ISA_MIPS64R3): New define.
35619 (ISA_MIPS64R5): New define.
35620 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
35621 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
35622 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
35624 (MIPS_ISA_SYNCI_SPEC): Likewise.
35625 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
35626 (LINK_SPEC): Added mips32r3 and mips32r5.
35627 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
35628 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
35629 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
35630 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
35631 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
35632 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
35633 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
35635 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
35637 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
35639 * config/mips/mips.opt (mxpa): New option.
35640 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
35643 2014-06-03 Martin Jambor <mjambor@suse.cz>
35646 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
35649 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
35651 PR tree-optimization/61328
35652 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
35653 initialization from find_bswap_or_nop_1.
35654 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
35655 in source_expr2 before using the size value the function sets. Also
35656 make use of init_symbolic_number () in both the old place and
35657 find_bswap_or_nop_load () to avoid reading uninitialized memory when
35658 doing recursion in the GIMPLE_BINARY_RHS case.
35660 2014-06-03 Richard Biener <rguenther@suse.de>
35662 PR tree-optimization/61383
35663 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
35666 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
35668 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
35669 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
35670 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
35671 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
35673 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
35674 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
35675 * system.h: ...here and make it unconditional.
35676 * target.def (conditional_register_usage): Mention
35677 define_register_constraint instead of old-style constraint macros.
35678 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
35679 * doc/tm.texi: Regenerate.
35680 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
35681 protected by !USE_MD_CONSTRAINTS.
35682 * config/frv/frv.md: Remove quote from old version of documentation.
35683 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
35684 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
35685 CONST_DOUBLE_OK_FOR_LETTER.
35686 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
35688 2014-06-02 Andrew Pinski <apinski@cavium.com>
35690 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
35691 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
35692 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
35693 file whose name depends on -mabi= and -mbig-endian.
35694 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
35695 Handle LP64 better and handle ilp32 too.
35696 (MULTILIB_OPTIONS): Delete.
35697 (MULTILIB_DIRNAMES): Delete.
35699 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
35701 * expr.h: Remove prototypes of functions defined in builtins.c.
35702 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
35703 Remove prototypes of functions defined in builtins.c.
35704 * builtins.h: Update prototype list to include all exported functions.
35705 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
35706 no_c99_libc_has_function): Move to targhooks.c
35707 (build_string_literal, build_call_expr_loc_array,
35708 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
35710 (expand_builtin_object_size, fold_builtin_object_size): Make static.
35711 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
35712 no_c99_libc_has_function): Relocate from builtins.c.
35713 * tree.c: Include builtins.h.
35714 (build_call_expr_loc_array, build_call_expr_loc_vec,
35715 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
35717 * fold-const.h (fold_fma): Move prototype to builtins.h.
35718 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
35719 * asan.c: Include builtins.h.
35720 * cfgexpand.c: Likewise.
35721 * convert.c: Likewise.
35722 * emit-rtl.c: Likewise.
35723 * except.c: Likewise.
35724 * expr.c: Likewise.
35725 * fold-const.c: Likewise.
35726 * gimple-fold.c: Likewise.
35727 * gimple-ssa-strength-reduction.c: Likewise.
35728 * gimplify.c: Likewise.
35729 * ipa-inline.c: Likewise.
35730 * ipa-prop.c: Likewise.
35731 * lto-streamer-out.c: Likewise.
35732 * stmt.c: Likewise.
35733 * tree-inline.c: Likewise.
35734 * tree-object-size.c: Likewise.
35735 * tree-sra.c: Likewise.
35736 * tree-ssa-ccp.c: Likewise.
35737 * tree-ssa-forwprop.c: Likewise.
35738 * tree-ssa-loop-ivcanon.c: Likewise.
35739 * tree-ssa-loop-ivopts.c: Likewise.
35740 * tree-ssa-math-opts.c: Likewise.
35741 * tree-ssa-reassoc.c: Likewise.
35742 * tree-ssa-threadedge.c: Likewise.
35743 * tree-streamer-in.c: Likewise.
35744 * tree-vect-data-refs.c: Likewise.
35745 * tree-vect-patterns.c: Likewise.
35746 * tree-vect-stmts.c: Likewise.
35747 * config/aarch64/aarch64.c: Likewise.
35748 * config/alpha/alpha.c: Likewise.
35749 * config/arc/arc.c: Likewise.
35750 * config/arm/arm.c: Likewise.
35751 * config/avr/avr.c: Likewise.
35752 * config/bfin/bfin.c: Likewise.
35753 * config/c6x/c6x.c: Likewise.
35754 * config/cr16/cr16.c: Likewise.
35755 * config/cris/cris.c: Likewise.
35756 * config/epiphany/epiphany.c: Likewise.
35757 * config/fr30/fr30.c: Likewise.
35758 * config/frv/frv.c: Likewise.
35759 * config/h8300/h8300.c: Likewise.
35760 * config/i386/i386.c: Likewise.
35761 * config/i386/winnt.c: Likewise.
35762 * config/ia64/ia64.c: Likewise.
35763 * config/iq2000/iq2000.c: Likewise.
35764 * config/lm32/lm32.c: Likewise.
35765 * config/m32c/m32c.c: Likewise.
35766 * config/m32r/m32r.c: Likewise.
35767 * config/m68k/m68k.c: Likewise.
35768 * config/mcore/mcore.c: Likewise.
35769 * config/mep/mep.c: Likewise.
35770 * config/microblaze/microblaze.c: Likewise.
35771 * config/mips/mips.c: Likewise.
35772 * config/mmix/mmix.c: Likewise.
35773 * config/mn10300/mn10300.c: Likewise.
35774 * config/moxie/moxie.c: Likewise.
35775 * config/msp430/msp430.c: Likewise.
35776 * config/nds32/nds32.c: Likewise.
35777 * config/pa/pa.c: Likewise.
35778 * config/pdp11/pdp11.c: Likewise.
35779 * config/picochip/picochip.c: Likewise.
35780 * config/rl78/rl78.c: Likewise.
35781 * config/rs6000/rs6000.c: Likewise.
35782 * config/rx/rx.c: Likewise.
35783 * config/s390/s390.c: Likewise.
35784 * config/score/score.c: Likewise.
35785 * config/sh/sh.c: Likewise.
35786 * config/sparc/sparc.c: Likewise.
35787 * config/spu/spu.c: Likewise.
35788 * config/stormy16/stormy16.c: Likewise.
35789 * config/tilegx/tilegx.c: Likewise.
35790 * config/tilepro/tilepro.c: Likewise.
35791 * config/v850/v850.c: Likewise.
35792 * config/vax/vax.c: Likewise.
35793 * config/xtensa/xtensa.c: Likewise.
35795 2014-06-02 Jeff Law <law@redhat.com>
35797 PR rtl-optimization/61094
35798 * ree.c (combine_reaching_defs): Do not reextend an insn if it
35799 was marked as do_no_reextend. If a copy is needed to eliminate
35800 an extension, then mark it as do_not_reextend.
35802 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
35804 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
35806 2014-06-02 Richard Henderson <rth@redhat.com>
35809 * config/alpha/alpha.c (print_operand_address): Allow symbolic
35810 addresses inside asms. Use output_operand_lossage instead of
35813 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
35816 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
35817 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
35819 2014-06-02 Tom de Vries <tom@codesourcery.com>
35821 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
35822 case that x has VOIDmode.
35824 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
35826 * varasm.c (copy_constant): Delete function.
35827 (build_constant_desc): Don't call it.
35829 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35832 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
35833 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
35834 with immediate_operand.
35836 2014-06-02 Andreas Schwab <schwab@suse.de>
35838 * config/ia64/ia64.c
35839 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
35840 pending_data_specs first.
35842 2014-06-02 Richard Biener <rguenther@suse.de>
35844 PR tree-optimization/61378
35845 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
35846 valueized_anything.
35848 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
35850 * config/i386/constraints.md (Bw): Rename from 'w'.
35851 (Bz): Rename from 'z'.
35852 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
35854 2014-06-01 Kai Tietz <ktietz@redhat.com>
35857 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
35858 * config/i386/i386.md (sibcall_insn_operand): Use Bs
35859 instead of m constraint.
35861 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
35863 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
35864 a separate alternative where the scratch operand 2 is marked as
35867 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
35869 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
35870 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
35871 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
35872 and __builtins_arm_get_fpscr.
35873 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
35874 __builtins_arm_get_fpscr.
35875 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
35876 __builtins_arm_ldfpscr.
35877 (arm_atomic_assign_expand_fenv): New function.
35878 * config/arm/vfp.md (set_fpscr): New pattern.
35879 (get_fpscr) : Likewise.
35880 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
35882 * doc/extend.texi (AARCH64 Built-in Functions) : Document
35883 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
35885 2014-05-30 Jakub Jelinek <jakub@redhat.com>
35887 * asan.c (report_error_func): Add SLOW_P argument, use
35888 BUILT_IN_ASAN_*_N if set.
35889 (build_check_stmt): Likewise.
35890 (instrument_derefs): If T has insufficient alignment,
35891 force same handling as for odd sizes.
35893 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
35894 BUILT_IN_ASAN_REPORT_STORE_N): New.
35895 * asan.c (struct asan_mem_ref): Change access_size type to
35897 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
35898 update_mem_ref_hash_table): Likewise.
35899 (asan_mem_ref_hasher::hash): Hash in a HWI.
35900 (report_error_func): Change size_in_bytes argument to HWI.
35901 Use *_N builtins if size_in_bytes is larger than 16 or not power of
35903 (build_shadow_mem_access): New function.
35904 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
35905 Handle size_in_bytes not power of two or larger than 16.
35906 (instrument_derefs): Don't give up if size_in_bytes is not
35907 power of two or is larger than 16.
35909 2014-05-30 Kai Tietz <ktietz@redhat.com>
35912 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
35913 for sibling-tail-calls.
35914 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
35916 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
35917 (sibcall_insn_operand): Add check for sibcall_memory_operand.
35919 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
35921 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
35922 * config/avr/avr-tables.opt: Regenerate.
35923 * config/avr/t-multilib: Regenerate.
35924 * doc/avr-mmcu.texi: Regenerate.
35926 2014-05-30 Ian Lance Taylor <iant@google.com>
35928 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
35931 2014-05-30 Tom de Vries <tom@codesourcery.com>
35933 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
35936 2014-05-30 Tom de Vries <tom@codesourcery.com>
35938 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
35939 * lra.c (initialize_lra_reg_info_element): Add init of
35940 actual_call_used_reg_set field.
35941 (lra): Call lra_create_live_ranges before lra_inheritance for
35943 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
35945 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
35946 instead of call_used_reg_set for -fuse-caller-save.
35947 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
35949 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35951 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
35953 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
35955 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
35957 * ira.c (ira_get_dup_out_num): Check for output operands at
35958 the start of the loop. Handle cases where an included alternative
35959 follows an excluded one.
35961 2014-05-29 Mike Stump <mikestump@comcast.net>
35964 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
35965 post ld passes when lto is used.
35967 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
35969 PR rtl-optimization/61325
35970 * lra-constraints.c (process_address): Rename to process_address_1.
35971 (process_address): New function.
35973 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
35975 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
35976 TYPES_BINOPV): New static data.
35977 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
35979 * config/aarch64/aarch64-simd.md (aarch64_ext,
35980 aarch64_im_lane_boundsi): New patterns.
35981 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
35983 (aarch64_evpc_ext): New function.
35985 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
35987 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
35988 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
35989 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
35990 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
35991 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
35993 2014-05-29 Tom de Vries <tom@codesourcery.com>
35995 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
35997 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
35998 Richard Sandiford <rdsandiford@googlemail.com>
36000 * arm/iterators.md (shiftable_ops): New code iterator.
36001 (t2_binop0, arith_shift_insn): New code attributes.
36002 * arm/predicates.md (shift_nomul_operator): New predicate.
36003 * arm/arm.md (insn_enabled): Delete.
36004 (enabled): Remove insn_enabled test.
36005 (*arith_shiftsi): Delete. Replace with ...
36006 (*<arith_shift_insn>_multsi): ... new pattern.
36007 (*<arith_shift_insn>_shiftsi): ... new pattern.
36008 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
36010 2014-05-29 Radovan Obradovic <robradovic@mips.com>
36011 Tom de Vries <tom@codesourcery.com>
36013 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
36014 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
36016 (mips_split_call): Use POST_CALL_TMP_REG.
36017 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
36019 2014-05-29 Tom de Vries <tom@codesourcery.com>
36021 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
36022 with #ifdef STACK_REGS.
36024 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
36026 * varasm.c (get_variable_section): Walk aliases.
36027 (place_block_symbol): Walk aliases.
36029 2014-05-28 Tom de Vries <tom@codesourcery.com>
36032 2014-05-28 Tom de Vries <tom@codesourcery.com>
36034 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36035 * lra.c (initialize_lra_reg_info_element): Add init of
36036 actual_call_used_reg_set field.
36037 (lra): Call lra_create_live_ranges before lra_inheritance for
36039 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36041 * lra-constraints.c (need_for_call_save_p): Use
36042 actual_call_used_reg_set instead of call_used_reg_set for
36044 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36046 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36048 * doc/md.texi: Document that the % constraint character must
36049 be at the beginning of the string.
36050 * genoutput.c (validate_insn_alternatives): Check that '=',
36051 '+' and '%' only appear at the beginning of a constraint.
36052 * ira.c (commutative_constraint_p): Delete.
36053 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
36054 at the start of the string.
36055 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
36057 * config/arm/neon.md (bicdi3_neon): Likewise.
36058 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
36059 (slt_si, sltu_si): Likewise.
36060 * config/vax/vax.md (sbcdi3): Likewise.
36061 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
36062 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
36063 (mul64): Move '%' to beginning of constraint.
36064 * config/arm/arm.md (*xordi3_insn): Likewise.
36065 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
36066 (xorsi3): Likewise.
36068 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36070 * doc/md.texi: Document the restrictions on the "enabled" attribute.
36072 2014-05-28 Jason Merrill <jason@redhat.com>
36075 * cgraph.h (symtab_node::get_comdat_group_id): New.
36076 * cgraphunit.c (analyze_functions): Call it.
36077 * symtab.c (dump_symtab_node): Likewise.
36078 * tree.c (decl_comdat_group_id): New.
36079 * tree.h: Declare it.
36080 * lto-streamer-out.c (write_symbol): Use it.
36081 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
36083 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
36085 PR bootstrap/PR61146
36086 * wide-int.cc: Do not include longlong.h when compiling with clang.
36088 2014-05-28 Richard Biener <rguenther@suse.de>
36090 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
36091 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
36092 (vrp_visit_assignment_or_call): Print less vertical space.
36093 (vrp_visit_stmt): Likewise.
36094 (vrp_visit_phi_node): Likewise. For a PHI argument with
36095 VR_VARYING range consider recording it as copy.
36097 2014-05-28 Richard Biener <rguenther@suse.de>
36100 2014-05-28 Richard Biener <rguenther@suse.de>
36102 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36104 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
36106 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
36107 sufficiently aligned and an offset is used at the same time.
36108 (expand_expr_real_1): Likewise.
36110 2014-05-28 Richard Biener <rguenther@suse.de>
36112 PR middle-end/61045
36113 * fold-const.c (fold_comparison): When folding
36114 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
36115 the sign of the remaining constant operand stays the same.
36117 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
36119 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
36120 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
36121 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
36123 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
36124 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
36125 (m32bit-doubles) Likewise.
36126 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
36127 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
36130 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36132 * configure.ac ($gcc_cv_ld_clearcap): New test.
36133 * configure: Regenerate.
36134 * config.in: Regenerate.
36135 * config/sol2.opt (mclear-hwcap): New option.
36136 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
36137 * config/sol2-clearcap.map: Moved here from
36138 testsuite/gcc.target/i386/clearcap.map.
36139 * config/sol2-clearcapv2.map: Move here from
36140 gcc.target/i386/clearcapv2.map.
36141 * config/t-sol2 (install): Depend on install-clearcap-map.
36142 (install-clearcap-map): New target.
36143 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
36146 2014-05-28 Richard Biener <rguenther@suse.de>
36148 * hwint.h (*_HALF_WIDE_INT*): Move to ...
36149 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
36150 ... here and remove the rest.
36151 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
36153 2014-05-28 Richard Biener <rguenther@suse.de>
36155 PR tree-optimization/61335
36156 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
36157 new range fails, drop to varying.
36159 2014-05-28 Olivier Hainque <hainque@adacore.com>
36161 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
36162 (CPP_SPEC): Add entry for -mcpu=8548.
36163 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
36164 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
36166 2014-05-28 Tom de Vries <tom@codesourcery.com>
36168 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
36169 * lra.c (initialize_lra_reg_info_element): Add init of
36170 actual_call_used_reg_set field.
36171 (lra): Call lra_create_live_ranges before lra_inheritance for
36173 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
36175 * lra-constraints.c (need_for_call_save_p): Use
36176 actual_call_used_reg_set instead of call_used_reg_set for
36178 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
36180 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36181 Tom de Vries <tom@codesourcery.com>
36183 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
36185 (@item -fuse-caller-save): New item.
36187 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36188 Tom de Vries <tom@codesourcery.com>
36190 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
36191 OPT_fuse_caller_save.
36193 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36194 Tom de Vries <tom@codesourcery.com>
36196 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
36197 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
36198 get_call_reg_set_usage.
36199 * resource.c (mark_set_resources, mark_target_live_regs): Use
36200 get_call_reg_set_usage.
36201 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
36203 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
36204 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
36205 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36206 * ira-build.c (ira_create_allocno): Init
36207 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36208 (create_cap_allocno, propagate_allocno_info)
36209 (propagate_some_info_from_allocno)
36210 (copy_info_to_removed_store_destinations): Handle
36211 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
36212 * ira-costs.c (ira_tune_allocno_costs): Use
36213 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
36215 2014-05-28 Radovan Obradovic <robradovic@mips.com>
36216 Tom de Vries <tom@codesourcery.com>
36218 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
36219 and function_used_regs_valid fields.
36220 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
36221 find_all_hard_reg_sets.
36222 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
36223 (get_call_reg_set_usage): New function.
36224 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
36225 * regs.h (get_call_reg_set_usage): Declare.
36227 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36230 * config/dbx.h (License): Add Runtime Library Exception.
36231 * config/newlib-stdint.h (License): Same.
36232 * config/rtems.h (License): Same
36233 * config/initfini-array.h (License): Same
36234 * config/v850/v850.h (License): Same.
36235 * config/v850/v850-opts.h (License): Same
36236 * config/v850/rtems.h (License): Same.
36238 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
36241 * doc/extend.texi (Local Labels): Note that label differences are
36242 not supported for AVR.
36244 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
36245 Olivier Hainque <hainque@adacore.com>
36247 * rtl.h (set_for_reg_notes): Declare.
36248 * emit-rtl.c (set_for_reg_notes): New function.
36249 (set_unique_reg_note): Use it.
36250 * optabs.c (add_equal_note): Likewise
36252 2014-05-27 Andrew Pinski <apinski@cavium.com>
36254 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
36255 Use <w> for the register in assembly template.
36256 (stack_protect_test): Use the mode of operands[0] for the result.
36257 (stack_protect_test_<mode>): Use <w> for the register
36258 in assembly template.
36260 2014-05-27 DJ Delorie <dj@redhat.com>
36262 * config/rx/rx.c (add_vector_labels): New.
36263 (rx_output_function_prologue): Call it.
36264 (rx_handle_func_attribute): Don't require empty arguments.
36265 (rx_handle_vector_attribute): New.
36266 (rx_attribute_table): Add "vector" attribute.
36267 * doc/extend.texi (interrupt, vector): Document new/changed
36268 RX-specific attributes.
36270 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
36272 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36274 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
36275 predicate to detect a negative quotient.
36277 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
36279 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
36280 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
36281 Add X - Y CMP 0 to X CMP Y transformation.
36282 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
36284 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
36286 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
36289 2014-05-27 Steve Ellcey <sellcey@mips.com>
36291 * config/mips/mips.c: Add include of cgraph.h.
36293 2014-05-27 Richard Biener <rguenther@suse.de>
36295 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
36297 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36300 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
36301 * config/arm/arm-cores.def (License): Same.
36302 * config/arm/arm-opts.h (License): Same.
36303 * config/arm/aout.h (License): Same.
36304 * config/arm/bpabi.h (License): Same.
36305 * config/arm/elf.h (License): Same.
36306 * config/arm/linux-elf.h (License): Same.
36307 * config/arm/linux-gas.h (License): Same.
36308 * config/arm/netbsd-elf.h (License): Same.
36309 * config/arm/uclinux-eabi.h (License): Same.
36310 * config/arm/uclinux-elf.h (License): Same.
36311 * config/arm/vxworks.h (License): Same.
36313 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36315 * config/arm/neon.md (neon_bswap<mode>): New pattern.
36316 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
36317 (arm_init_neon_builtins): Handle NEON_BSWAP.
36318 Define required type nodes.
36319 (arm_expand_neon_builtin): Handle NEON_BSWAP.
36320 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
36321 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
36322 * config/arm/iterators.md (VDQHSD): New mode iterator.
36324 2014-05-27 Richard Biener <rguenther@suse.de>
36326 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
36327 Try using literal operands when comparing value-ranges failed.
36329 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36331 * ira.c (commutative_operand): Adjust for change to recog_data.
36332 [Missing from previous commit.]
36334 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36336 * system.h (TEST_BIT): New macro.
36337 * recog.h (alternative_mask): New type.
36338 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
36339 (recog_data_d): Replace alternative_enabled_p array with
36340 enabled_alternatives.
36341 (target_recog): New structure.
36342 (default_target_recog, this_target_recog): Declare.
36343 (get_enabled_alternatives, recog_init): Likewise.
36344 * recog.c (default_target_recog, this_target_recog): New variables.
36345 (get_enabled_alternatives): New function.
36346 (extract_insn): Use it.
36347 (recog_init): New function.
36348 (preprocess_constraints, constrain_operands): Adjust for change to
36350 * postreload.c (reload_cse_simplify_operands): Likewise.
36351 * reload.c (find_reloads): Likewise.
36352 * ira-costs.c (record_reg_classes): Likewise.
36353 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
36354 all alternatives after a disabled one would be skipped.
36355 (ira_implicitly_set_insn_hard_regs): Likewise.
36356 * ira.c (ira_setup_alts): Adjust for change to recog_data.
36357 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
36358 with enabled_alternatives.
36359 * lra.c (free_insn_recog_data): Update accordingly.
36360 (lra_update_insn_recog_data): Likewise.
36361 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
36362 * lra-constraints.c (process_alt_operands): Likewise. Handle
36363 only_alternative as part of the enabled mask.
36364 * target-globals.h (this_target_recog): Declare.
36365 (target_globals): Add a recog field.
36366 (restore_target_globals): Restore this_target_recog.
36367 * target-globals.c: Include recog.h.
36368 (default_target_globals): Initialize recog field.
36369 (save_target_globals): Likewise.
36370 * reginfo.c (reinit_regs): Call recog_init.
36371 * toplev.c (backend_init_target): Likewise.
36373 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
36375 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
36376 rather than any named insn's code.
36378 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
36381 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
36382 * config/arm/arm-cores.def (License): Same.
36384 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
36386 * tree.h (decl_comdat_group): Declare.
36387 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
36388 * tree.c (decl_comdat_group): Here.
36390 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
36392 PR rtl-optimization/61222
36393 * combine.c (simplify_shift_const_1): When moving a PLUS outside
36394 the shift, truncate the PLUS operand to the result mode.
36396 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
36399 * config/i386/i386.c (ix86_rtx_costs)
36400 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
36403 2014-05-26 Martin Jambor <mjambor@suse.cz>
36405 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
36408 2014-05-26 Richard Biener <rguenther@suse.de>
36410 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
36411 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
36412 Provide specializations.
36413 (wi::int_traits <HOST_WIDE_INT>,
36414 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
36416 2014-05-26 Alan Modra <amodra@gmail.com>
36419 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
36420 params and return a bool. Remove dead code. Update comment.
36421 Assert we have a const_int source. Remove bogus code from
36422 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
36423 handling of constants > 2G and reg_equal note, from..
36424 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
36425 return value. Update comment. If we can, use a new pseudo
36426 for intermediate calculations.
36427 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
36429 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
36430 call to rs6000_emit_set_const in splitter.
36431 (movdi_internal64+2, +3): Likewise.
36433 2014-05-26 Richard Biener <rguenther@suse.de>
36435 * system.h: Define __STDC_FORMAT_MACROS before
36436 including inttypes.h.
36437 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
36438 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
36439 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
36440 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
36441 HOST_WIDEST_INT_C): Remove.
36442 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
36443 if C99 inttypes.h is not available.
36444 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
36445 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
36446 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
36447 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
36448 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
36449 (struct output_info): Likewise.
36450 (print_statistics): Adjust.
36451 (dump_bitmap_statistics): Likewise.
36452 * bt-load.c (migrate_btr_defs): Print with PRId64.
36453 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
36454 (MAX_SAFE_MULTIPLIER): Adjust.
36455 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
36456 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
36457 dump_cgraph_node): Likewise.
36458 * final.c (dump_basic_block_info): Likewise.
36459 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
36460 * gcov.c (format_gcov): Likewise.
36461 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
36463 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
36464 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
36465 (inline_small_functions, dump_overall_stats, dump_inline_stats):
36466 Use PRId64 for dumping.
36467 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
36468 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
36469 (add_allocno_hard_regs): Adjust.
36470 * loop-doloop.c (doloop_modify): Print using PRId64.
36471 * loop-iv.c (inverse): Compute in uint64_t.
36472 (determine_max_iter, iv_number_of_iterations): Likewise.
36473 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
36474 Print using PRId64.
36475 * lto-streamer-out.c (write_symbol): Use uint64_t.
36476 * mcf.c (CAP_INFINITY): Use int64_t maximum.
36477 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
36478 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
36479 * modulo-sched.c (const_iteration_count): Use int64_t.
36480 (sms_schedule): Dump using PRId64.
36481 * predict.c (dump_prediction): Likewise.
36482 * pretty-print.h (pp_widest_integer): Remove.
36483 * profile.c (get_working_sets, is_edge_inconsistent,
36484 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
36485 * tree-pretty-print.c (pp_double_int): Remove case handling
36486 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
36487 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
36489 (pass_optimize_bswap::execute): Remove restriction on hosts.
36490 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
36491 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
36492 * tree.c (widest_int_cst_value): Remove.
36493 * tree.h (widest_int_cst_value): Likewise.
36494 * value-prof.c (dump_histogram_value): Print using PRId64.
36495 * gengtype.c (main): Also inject int64_t.
36496 * ggc-page.c (struct max_alignment): Use int64_t.
36497 * alloc-pool.c (struct allocation_object_def): Likewise.
36498 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
36500 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
36501 * doc/tm.texi: Regenerated.
36502 * gengtype-lex.l (IWORD): Handle [u]int64_t.
36503 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
36504 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
36505 mmix_output_register_setting): Use [u]int64_t in prototypes.
36506 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
36507 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
36508 mmix_output_octa, mmix_output_shifted_value): Adjust.
36509 (mmix_intval): Adjust. Remove unreachable case.
36510 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
36512 2014-05-26 Richard Biener <rguenther@suse.de>
36514 * configure.ac: Drop __int64 type check. Insist that we
36515 found uint64_t and int64_t.
36516 * hwint.h (HOST_BITS_PER___INT64): Remove.
36517 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
36518 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
36519 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
36520 (HOST_WIDEST_FAST_INT): Remove __int64 case.
36521 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
36522 for dst_q_src_df_rms_cdt.
36523 * configure: Regenerate.
36524 * config.in: Likewise.
36526 2014-05-26 Michael Tautschnig <mt@debian.org>
36529 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
36530 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
36532 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36534 PR rtl-optimization/61278
36535 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
36537 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36539 PR rtl-optimization/61220
36540 Part of PR rtl-optimization/61225
36541 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
36542 insn; skip split_edge for a block with only one successor.
36544 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36546 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
36549 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36551 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
36552 (update_vtable_references): New function.
36553 (function_and_variable_visibility): Rewrite also vtable initializers.
36554 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
36556 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36558 * ggc.h (ggc_grow): New function.
36559 * ggc-none.c (ggc_grow): New function.
36560 * ggc-page.c (ggc_grow): Likewise.
36562 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36564 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
36565 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
36566 comdat_can_be_unshared_p, cgraph_externally_visible_p,
36567 varpool_externally_visible_p, can_replace_by_local_alias,
36568 update_visibility_by_resolution_info, function_and_variable_visibility,
36569 pass_data_ipa_function_and_variable_visibility,
36570 make_pass_ipa_function_and_variable_visibility,
36571 whole_program_function_and_variable_visibility,
36572 pass_data_ipa_whole_program_visibility,
36573 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
36574 * cgraph.h (cgraph_local_node_p): Declare.
36575 * ipa-visibility.c: New file.
36576 * Makefile.in (OBJS): Add ipa-visiblity.o
36578 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36580 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
36581 that var decl is available.
36583 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36585 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
36586 symtab_node pointer.
36587 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
36588 (find_decls_types_r): Do not walk COMDAT_GROUP.
36589 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
36590 * varasm.c (make_decl_one_only): Use set_comdat_group;
36591 create node if needed.
36592 * ipa-inline-transform.c (save_inline_function_body): Update
36593 way we decl->symtab mapping.
36594 * symtab.c (symtab_hash, hash_node, eq_node
36595 symtab_insert_node_to_hashtable): Remove.
36596 (symtab_register_node): Update.
36597 (symtab_unregister_node): Update.
36598 (symtab_get_node): Reimplement as inline function.
36599 (symtab_add_to_same_comdat_group): Update.
36600 (symtab_dissolve_same_comdat_group_list): Update.
36601 (dump_symtab_base): Update.
36602 (verify_symtab_base): Update.
36603 (symtab_make_decl_local): Update.
36604 (fixup_same_cpp_alias_visibility): Update.
36605 (symtab_nonoverwritable_alias): Update.
36606 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
36607 * ipa.c (update_visibility_by_resolution_info): UPdate.
36608 * bb-reorder.c: Include cgraph.h
36609 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
36610 with comdat groups.
36611 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
36612 * cgraph.c (cgraph_get_create_node): Update.
36613 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
36615 (symtab_get_node): Make inline.
36616 (symtab_insert_node_to_hashtable): Remove.
36617 (symtab_can_be_discarded): Update.
36618 (decl_comdat_group): New function.
36619 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
36621 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
36623 (read_comdat_group): New function.
36624 (input_node, input_varpool_node): Use it.
36625 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
36627 * mips.c (mips_start_unique_function): Likewise.
36628 (ix86_code_end): Likewise.
36629 (rs6000_code_end): Likweise.
36630 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
36632 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36634 * gengtype-state.c (fatal_reading_state): Bring offline.
36635 * optabs.c (widening_optab_handler): Bring offline.
36636 * optabs.h (widening_optab_handler): Likewise.
36637 * final.c (get_attr_length_1): Likewise.
36639 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
36641 * sched-int.h (sd_iterator_cond): Manually tail recurse.
36643 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36645 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
36646 (ppc440-compare): Include shift with dot.
36647 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
36648 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
36650 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
36652 (e6500_sfx2): Include it.
36653 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
36654 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
36655 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
36656 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
36657 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
36658 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
36659 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
36660 *lshiftrt_internal1le, *lshiftrt_internal1be,
36661 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
36662 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
36663 *rotldi3_internal10le, *rotldi3_internal10be,
36664 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
36665 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
36666 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
36667 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
36668 define_insns): Use type "shift" in the appropriate alternatives.
36670 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36672 * config/rs6000/rs6000.md (type): Add "logical". Delete
36674 (dot): Adjust comment.
36675 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
36676 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
36677 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
36678 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
36679 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
36680 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
36681 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
36682 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36684 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36685 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36686 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36687 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36688 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36689 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36690 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36691 * config/rs6000/8540.md (ppc8540_su): Adjust.
36692 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36693 cell-cmp-microcoded): Adjust.
36694 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36695 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36696 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36697 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36698 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36699 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36700 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36701 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36702 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36704 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36705 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
36706 Adjust. Adjust comment.
36707 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36708 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36710 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36712 * config/rs6000/rs6000.md (type): Add "add".
36713 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
36714 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
36715 define_insns): Use it.
36716 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
36718 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36719 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
36720 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36721 * config/rs6000/601.md (ppc601-integer): Adjust.
36722 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36723 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36724 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36725 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36726 * config/rs6000/8540.md (ppc8540_su): Adjust.
36727 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36728 cell-cmp-microcoded): Adjust.
36729 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
36730 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36731 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
36732 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
36733 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
36734 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36735 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
36736 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
36737 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
36739 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
36740 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
36741 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36742 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
36744 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36746 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
36747 "delayed_compare", "var_delayed_compare".
36748 (var_shift): New attribute.
36749 (cell_micro): Adjust.
36750 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
36751 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
36752 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
36753 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
36754 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
36755 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
36756 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
36757 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
36758 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
36759 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
36760 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
36761 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
36762 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
36763 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
36764 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
36765 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
36766 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
36767 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
36768 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
36769 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
36770 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
36771 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
36772 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
36773 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36774 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36776 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
36777 * config/rs6000/440.md (ppc440-integer): Adjust.
36778 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
36779 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
36780 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
36781 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
36782 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
36783 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
36784 * config/rs6000/8540.md (ppc8540_su): Adjust.
36785 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
36786 cell-cmp-microcoded): Adjust.
36787 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
36788 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36789 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
36790 e500mc64_delayed): Adjust.
36791 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
36792 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
36793 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
36794 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
36795 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
36796 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
36797 power6-delayed-compare, power6-var-delayed-compare): Adjust.
36798 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
36799 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
36801 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
36802 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36804 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36806 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
36807 (bits): New mode_attr.
36808 (idiv_ldiv): Delete mode_attr.
36809 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
36810 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36811 rs6000_adjust_priority, is_nonpipeline_insn,
36812 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36814 * config/rs6000/40x.md (ppc403-idiv): Adjust.
36815 * config/rs6000/440.md (ppc440-idiv): Adjust.
36816 * config/rs6000/476.md (ppc476-idiv): Adjust.
36817 * config/rs6000/601.md (ppc601-idiv): Adjust.
36818 * config/rs6000/603.md (ppc603-idiv): Adjust.
36819 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
36820 ppc620-ldiv): Adjust.
36821 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
36822 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
36823 * config/rs6000/8540.md (ppc8540_divide): Adjust.
36824 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
36825 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
36826 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
36827 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
36828 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
36829 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
36830 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
36831 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
36832 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
36833 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
36834 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
36835 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
36836 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
36837 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
36838 * config/rs6000/titan.md (titan_fxu_div): Adjust.
36840 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36842 * config/rs6000/rs6000.md (type): Delete "insert_word",
36843 "insert_dword". Add "insert".
36844 (size): Update comment.
36845 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36846 insn_must_be_first_in_group): Adjust.
36847 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
36848 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
36849 *insvsi_internal6, insvdi_internal): Adjust.
36851 * config/rs6000/40x.md (ppc403-integer): Adjust.
36852 * config/rs6000/440.md (ppc440-integer): Adjust.
36853 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
36854 * config/rs6000/601.md (ppc601-integer): Adjust.
36855 * config/rs6000/603.md (ppc603-integer): Adjust.
36856 * config/rs6000/6xx.md (ppc604-integer): Adjust.
36857 * config/rs6000/7450.md (ppc7450-integer): Adjust.
36858 * config/rs6000/7xx.md (ppc750-integer): Adjust.
36859 * config/rs6000/8540.md (ppc8540_su): Adjust.
36860 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
36861 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
36862 * config/rs6000/e500mc.md (e500mc_su): Adjust.
36863 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
36864 * config/rs6000/e5500.md (e5500_sfx): Adjust.
36865 * config/rs6000/e6500.md (e6500_sfx): Adjust.
36866 * config/rs6000/mpc.md (mpccore-integer): Adjust.
36867 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
36868 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
36869 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
36870 * config/rs6000/power7.md (power7-integer): Adjust.
36871 * config/rs6000/power8.md (power8-1cyc): Adjust.
36872 * config/rs6000/rs64.md (rs64a-integer): Adjust.
36873 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
36875 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36877 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
36878 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
36879 (size): New attribute.
36880 (dot): New attribute.
36881 (cell_micro): Adjust.
36882 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
36883 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
36884 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
36885 umuldi3_highpart): Adjust.
36886 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
36887 rs6000_adjust_priority, is_nonpipeline_insn,
36888 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
36890 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
36891 ppc405-imul3): Adjust.
36892 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
36893 * config/rs6000/476.md (ppc476-imul): Adjust.
36894 * config/rs6000/601.md (ppc601-imul): Adjust.
36895 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
36896 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
36897 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
36898 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
36899 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
36901 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
36902 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
36903 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
36904 cell-imul): Adjust.
36905 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
36906 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
36907 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
36908 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
36909 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
36910 * config/rs6000/mpc.md (mpccore-imul): Adjust.
36911 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
36912 power4-lmul, power4-imul, power4-imul3): Adjust.
36913 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
36914 power5-lmul, power5-imul, power5-imul3): Adjust.
36915 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
36916 power6-lmul, power6-imul, power6-imul3): Adjust.
36917 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
36918 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
36920 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
36921 rs64a-lmul): Adjust.
36922 * config/rs6000/titan.md (titan_imul): Adjust.
36924 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36926 * config/rs6000/rs6000.md (type): Add new value "halfmul".
36927 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
36928 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
36929 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
36930 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
36931 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
36932 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
36933 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
36934 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
36935 * config/rs6000/titan.md: Delete nonsensical comment.
36936 (titan_imul): Add type imul3.
36937 (titan_mulhw): Remove type imul3; add type halfmul.
36939 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
36941 * config/rs6000/rs6000.md (type): Reorder, reformat.
36943 2014-05-23 Martin Jambor <mjambor@suse.cz>
36945 PR tree-optimization/53787
36946 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
36947 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
36948 analysis_done, update all uses.
36949 * ipa-prop.c: Include domwalk.h
36950 (param_analysis_info): Removed.
36951 (param_aa_status): New type.
36952 (ipa_bb_info): Likewise.
36953 (func_body_info): Likewise.
36954 (ipa_get_bb_info): New function.
36955 (aa_overwalked): Likewise.
36956 (find_dominating_aa_status): Likewise.
36957 (parm_bb_aa_status_for_bb): Likewise.
36958 (parm_preserved_before_stmt_p): Changed to use new param AA info.
36959 (load_from_unmodified_param): Accept func_body_info as a parameter
36960 instead of parms_ainfo.
36961 (parm_ref_data_preserved_p): Changed to use new param AA info.
36962 (parm_ref_data_pass_through_p): Likewise.
36963 (ipa_load_from_parm_agg_1): Likewise. Update callers.
36964 (compute_complex_assign_jump_func): Changed to use new param AA info.
36965 (compute_complex_ancestor_jump_func): Likewise.
36966 (ipa_compute_jump_functions_for_edge): Likewise.
36967 (ipa_compute_jump_functions): Removed.
36968 (ipa_compute_jump_functions_for_bb): New function.
36969 (ipa_analyze_indirect_call_uses): Likewise, moved variable
36971 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
36972 and info, moved variable declarations down.
36973 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
36975 (ipa_analyze_stmt_uses): Likewise.
36976 (ipa_analyze_params_uses): Removed.
36977 (ipa_analyze_params_uses_in_bb): New function.
36978 (ipa_analyze_controlled_uses): Likewise.
36979 (free_ipa_bb_info): Likewise.
36980 (analysis_dom_walker): New class.
36981 (ipa_analyze_node): Handle node-specific forbidden analysis,
36982 initialize and free func_body_info, use dominator walker.
36983 (ipcp_modif_dom_walker): New class.
36984 (ipcp_transform_function): Create and free func_body_info, use
36985 ipcp_modif_dom_walker, moved a lot of functionality there.
36987 2014-05-23 Marek Polacek <polacek@redhat.com>
36988 Jakub Jelinek <jakub@redhat.com>
36990 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
36991 * gcc.c (sanitize_spec_function): Likewise.
36992 * convert.c (convert_to_integer): Include "ubsan.h". Add
36993 floating-point to integer instrumentation.
36994 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
36995 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
36996 SANITIZE_NONDEFAULT.
36997 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
36998 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
36999 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
37000 * ubsan.c: Include "realmpfr.h" and "dfp.h".
37001 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
37002 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
37003 float/double/long double.
37004 (ubsan_instrument_float_cast): New function.
37005 * ubsan.h (ubsan_instrument_float_cast): Declare.
37007 2014-05-23 Jiong Wang <jiong.wang@arm.com>
37009 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
37011 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
37012 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
37013 Adjust for tailcalling through registers.
37014 * config/aarch64/aarch64.h (enum reg_class): New caller save
37016 (REG_CLASS_NAMES): Likewise.
37017 (REG_CLASS_CONTENTS): Likewise.
37018 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
37019 Allow tailcalling without decls.
37021 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37023 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37024 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
37026 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
37027 gsi, and variables v_* to v*.
37029 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
37031 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
37033 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
37035 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
37036 * omp-low.c: Update accordingly.
37038 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
37039 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
37040 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
37041 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
37042 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
37043 GF_OMP_TARGET_KIND_UPDATE.
37045 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
37046 Explicitly enumerate the expected region types.
37048 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
37051 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
37052 documentation; the old documentation didn't clearly state the
37053 constraints on the contents of the pointed-to storage.
37055 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37057 Fix bootstrap error on ia64
37058 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
37059 Return default value.
37061 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
37063 PR tree-optimization/54733
37064 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
37066 (find_bswap_or_nop_load): New.
37067 (find_bswap_1): Renamed to ...
37068 (find_bswap_or_nop_1): This. Also add support for memory source.
37069 (find_bswap): Renamed to ...
37070 (find_bswap_or_nop): This. Also add support for memory source and
37071 detection of bitwise operations equivalent to load in target
37073 (execute_optimize_bswap): Likewise. Also move its leading comment back
37074 in place and split statement transformation into ...
37075 (bswap_replace): This.
37077 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37079 PR rtl-optimization/61215
37080 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
37081 simplify_gen_subreg until final substitution.
37083 2014-05-23 Alan Modra <amodra@gmail.com>
37086 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
37087 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
37088 Use "Y" constraint rather than "m".
37090 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
37092 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
37094 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
37095 New function declaration.
37096 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
37097 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
37098 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
37099 (aarch64_init_builtins) : Initialize builtins
37100 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37101 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37102 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
37103 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
37104 and __builtins_aarch64_set_fpsr.
37105 (aarch64_atomic_assign_expand_fenv): New function.
37106 * config/aarch64/aarch64.md (set_fpcr): New pattern.
37107 (get_fpcr) : Likewise.
37108 (set_fpsr) : Likewise.
37109 (get_fpsr) : Likewise.
37110 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
37111 and UNSPECV_SET_FPSR.
37112 * doc/extend.texi (AARCH64 Built-in Functions) : Document
37113 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
37114 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
37116 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
37118 PR rtl-optimization/60969
37119 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
37120 constraints. Set up mem cost for NO_REGS case.
37122 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
37124 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
37126 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
37128 * config/darwin.c: Include "lto-section-names.h".
37129 (LTO_SEGMENT_NAME): Don't define.
37130 * config/i386/winnt.c: Include "lto-section-names.h".
37131 * lto-streamer.c: Include "lto-section-names.h".
37132 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
37133 * lto-wrapper.c: Include "lto-section-names.h".
37134 (LTO_SECTION_NAME_PREFIX): Don't define.
37135 * lto-section-names.h: New file.
37136 * cgraphunit.c: Include "lto-section-names.h".
37138 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
37140 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
37142 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
37145 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
37147 2014-05-22 Nick Clifton <nickc@redhat.com>
37149 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
37151 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
37153 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
37154 -> (T)A transformation to integer types.
37156 2014-05-22 Teresa Johnson <tejohnson@google.com>
37158 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
37159 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
37160 (gcov_rewrite): Use gcov_nonruntime_assert.
37161 (gcov_open): Ditto.
37162 (gcov_write_words): Ditto.
37163 (gcov_write_length): Ditto.
37164 (gcov_read_words): Use gcov_nonruntime_assert, and remove
37165 gcc_assert from IN_LIBGCOV code.
37166 (gcov_read_summary): Use gcov_error to flag profile corruption.
37167 (gcov_sync): Use gcov_nonruntime_assert.
37168 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
37169 (gcov_histo_index): Use gcov_nonruntime_assert.
37170 (static void gcov_histogram_merge): Ditto.
37171 (compute_working_sets): Ditto.
37172 * gcov-io.h (gcov_nonruntime_assert): Define.
37173 (gcov_error): Define for !IN_LIBGCOV
37175 2014-05-22 Richard Biener <rguenther@suse.de>
37177 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37178 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
37179 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
37180 and deallocation site.
37181 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37182 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
37183 passing through the incoming points-to set.
37184 (handle_lhs_call): Use flags argument instead of recomputing it.
37185 (find_func_aliases_for_call): Call handle_lhs_call with proper
37188 2014-05-22 Jakub Jelinek <jakub@redhat.com>
37190 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
37191 all padding bits in REAL_VALUE_TYPE are cleared.
37193 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37195 Cleanup and improve multipass_dfa_lookahead_guard
37196 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
37197 (core2i7_first_cycle_multipass_begin,)
37198 (core2i7_first_cycle_multipass_issue,)
37199 (core2i7_first_cycle_multipass_backtrack): Update signature.
37200 * config/ia64/ia64.c
37201 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
37202 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
37203 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
37205 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
37206 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
37208 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
37210 * doc/tm.texi: Regenerate.
37212 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
37213 * haifa-sched.c (ready_try): Make signed to allow negative values.
37214 (rebug_ready_list_1): Update.
37215 (choose_ready): Simplify.
37216 (sched_extend_ready_list): Update.
37218 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37220 Remove IA64 speculation tweaking flags
37221 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
37222 speculation tuning flags.
37223 (msched-prefer-non-data-spec-insns,)
37224 (msched-prefer-non-control-spec-insns): Obsolete options.
37225 * haifa-sched.c (choose_ready): Remove handling of
37226 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37227 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
37228 and PREFER_NON_DATA_SPEC.
37229 * sel-sched.c (process_spec_exprs): Remove handling of
37230 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
37232 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37234 Improve scheduling debug output
37235 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
37236 (advance_one_cycle): Update.
37237 (schedule_insn, queue_to_ready): Add debug printouts.
37238 (debug_ready_list_1): New static function.
37239 (debug_ready_list): Update.
37240 (max_issue): Add debug printouts.
37241 (dump_insn_stream): New static function.
37242 (schedule_block): Use it. Also better indent printouts.
37244 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37246 Fix sched_insn debug counter
37247 * haifa-sched.c (schedule_insn): Update.
37248 (struct haifa_saved_data): Add nonscheduled_insns_begin.
37249 (save_backtrack_point, restore_backtrack_point): Update.
37250 (first_nonscheduled_insn): New static function.
37251 (queue_to_ready, choose_ready): Use it.
37252 (schedule_block): Init nonscheduled_insns_begin.
37253 (sched_emit_insn): Update.
37256 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
37258 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
37260 (aarch64_secondary_reload) : LikeWise.
37261 (aarch64_class_max_nregs) : Remove CORE_REGS.
37262 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
37263 (REG_CLASS_NAMES) : Likewise.
37264 (REG_CLASS_CONTENTS) : LikeWise.
37265 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
37267 2014-05-21 Guozhi Wei <carrot@google.com>
37270 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
37272 (vqdmulhq_n_s16): Likewise.
37274 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
37276 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
37278 2014-05-21 Marek Polacek <polacek@redhat.com>
37281 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
37283 2014-05-21 Martin Jambor <mjambor@suse.cz>
37285 * doc/invoke.texi (Optimize Options): Document parameters
37286 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
37287 ipa-cp-array-index-hint-bonus.
37289 2014-05-21 Mark Wielaard <mjw@redhat.com>
37292 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
37293 version >= 3 or not strict DWARF.
37294 * langhooks.h (struct lang_hooks_for_types): Add
37295 enum_underlying_base_type.
37296 * langhooks.c (lhd_enum_underlying_base_type): New function.
37297 * gcc/langhooks.h (struct lang_hooks_for_types): Add
37298 enum_underlying_base_type.
37299 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
37300 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
37301 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
37303 2014-05-21 Richard Biener <rguenther@suse.de>
37305 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
37307 2014-05-21 John Marino <gnugcc@marino.st>
37309 * config.gcc (*-*-dragonfly*): New target.
37310 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
37311 * configure: Regenerate.
37312 * config/dragonfly-stdint.h: New.
37313 * config/dragonfly.h: New.
37314 * config/dragonfly.opt: New.
37315 * config/i386/dragonfly.h: New.
37316 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
37318 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37320 * tree.def (VOID_CST): New.
37321 * tree-core.h (TI_VOID): New.
37322 * tree.h (void_node): New.
37323 * tree.c (tree_node_structure_for_code, tree_code_size)
37324 (iterative_hash_expr): Handle VOID_CST.
37325 (build_common_tree_nodes): Initialize void_node.
37327 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
37329 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
37331 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
37333 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
37336 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
37337 flag_reorder_blocks_and_partition.
37338 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
37340 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
37343 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
37345 (*addc_r_t): Add new insn_and_split.
37347 2014-05-21 Jakub Jelinek <jakub@redhat.com>
37349 PR middle-end/61252
37350 * omp-low.c (handle_simd_reference): New function.
37351 (lower_rec_input_clauses): Use it. Defer adding reference
37352 initialization even for reduction without placeholder if in simd,
37353 handle it properly later on.
37355 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37357 PR tree-optimization/60899
37358 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
37359 assume all static symbols will have definition wile parsing and
37360 check the do have definition later in compilation; check that
37361 variable referring symbol will be output before concluding that
37362 reference is safe; be conservative for referring local statics;
37363 be more precise about when comdat is output in other partition.
37365 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37368 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
37370 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
37371 (ipa_inline): Loop inline_to_all_callers until no more aliases
37374 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37376 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
37377 set writeonly flag only for vars actually written to.
37379 2014-05-20 Dehao Chen <dehao@google.com>
37381 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
37382 and callee count to get clone count.
37383 * tree-inline.c (expand_call_inline): Use callee count instead of bb
37384 count in copy_body.
37386 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
37388 PR rtl-optimization/61243
37389 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
37391 2014-05-20 Xinliang David Li <davidxl@google.com>
37393 * cgraphunit.c (walk_polymorphic_call_targets): Add
37394 dbgcnt and fopt-info support.
37395 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
37396 * ipa-devirt.c (ipa_devirt): Ditto.
37397 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
37398 * ipa.c (walk_polymorphic_call_targets): Ditto.
37399 * gimple-fold.c (fold_gimple_assign): Ditto.
37400 (gimple_fold_call): Ditto.
37401 * dbgcnt.def: New counter.
37403 2014-05-20 DJ Delorie <dj@redhat.com>
37405 * config/msp430/msp430.md (split): Don't allow subregs when
37406 splitting SImode adds.
37407 (andneghi): Fix subtraction logic.
37408 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
37410 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
37412 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
37414 * except.c (switch_to_exception_section, resolve_unique_section,
37415 get_named_text_section, default_function_rodata_section,
37416 align_variable, get_block_for_decl, default_section_type_flags):
37417 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
37418 * symtab.c (symtab_add_to_same_comdat_group,
37419 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
37420 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
37422 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
37423 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
37424 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
37425 (c6x_function_in_section_p): Likewise.
37426 * config/darwin.c (machopic_select_section): Likewise.
37427 * config/arm/arm.c (arm_function_in_section_p): Likewise.
37428 * config/mips/mips.c (mips_function_rodata_section): Likewise.
37429 * config/mep/mep.c (mep_select_section): LIkewise.
37430 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
37432 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
37434 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
37435 EH region of calls to pure functions that can throw an exception.
37436 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
37437 (copy_reference_ops_from_call): Also copy the EH region of the call if
37438 it can throw an exception.
37440 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37442 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
37443 nested VEC_SELECTs that are inverses of each other.
37445 2014-05-20 Richard Biener <rguenther@suse.de>
37447 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
37448 (extract_and_process_scc_for_name): not here.
37449 (cond_dom_walker::before_dom_children): Only process
37450 stmts that end the BB in interesting ways.
37451 (run_scc_vn): Mark param uses as visited.
37453 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37455 * config/arm/arm.md (arith_shiftsi): Do not predicate for
37458 2014-05-20 Nick Clifton <nickc@redhat.com>
37460 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
37461 (msp430_gimplify_va_arg_expr): New function.
37462 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
37464 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
37465 operand 0 in order to prevent confusion about the number of
37466 registers involved.
37468 2014-05-20 Richard Biener <rguenther@suse.de>
37470 PR tree-optimization/61221
37471 * tree-ssa-pre.c (el_to_update): Remove.
37472 (eliminate_dom_walker::before_dom_children): Handle released
37473 VDEFs by value-numbering them to the associated VUSE. Update
37474 stmt immediately for substituted call address.
37475 (eliminate): Remove delayed stmt updating code.
37476 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
37477 possibly late re-numbered vuses.
37478 (vn_reference_lookup_2): Adjust.
37479 (vn_reference_lookup_pieces): Likewise.
37480 (vn_reference_lookup): Likewise.
37482 2014-05-20 Richard Biener <rguenther@suse.de>
37484 * config.gcc: Remove need_64bit_hwint.
37485 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
37486 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
37488 * config.in: Regenerate.
37489 * configure: Likewise.
37491 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
37493 * doc/extend.texi: Create Label Attributes section,
37494 move all label attributes into it and reference it.
37496 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
37498 * arm.c (thumb1_reorg): When scanning backwards skip anything
37499 that's not a proper insn.
37501 2014-05-19 Richard Biener <rguenther@suse.de>
37503 PR tree-optimization/61221
37504 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
37505 Do nothing for unreachable blocks.
37506 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
37507 Improve unreachability detection.
37509 2014-05-19 Richard Biener <rguenther@suse.de>
37511 PR tree-optimization/61209
37512 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
37514 2014-05-19 Nick Clifton <nickc@redhat.com>
37516 * except.c (init_eh): Fix computation of builtin setjmp buffer
37517 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
37519 2014-05-19 Richard Biener <rguenther@suse.de>
37521 PR tree-optimization/61184
37522 * tree-vrp.c (is_negative_overflow_infinity): Use
37523 TREE_OVERFLOW_P and do that check first.
37524 (is_positive_overflow_infinity): Likewise.
37525 (is_overflow_infinity): Likewise.
37526 (vrp_operand_equal_p): Properly treat operands with
37527 differing overflow as not equal.
37529 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
37531 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
37532 shift simplification where it was intended.
37534 2014-05-19 Christian Bruel <christian.bruel@st.com>
37537 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
37539 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
37542 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
37545 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37547 * reg-notes.def (CROSSING_JUMP): Likewise.
37548 * rtl.h (rtx_def): Update comment for jump flag.
37549 (CROSSING_JUMP_P): Define.
37550 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
37551 of a REG_CROSSING_JUMP note.
37552 * cfghooks.c (tidy_fallthru_edges): Likewise.
37553 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
37554 * emit-rtl.c (try_split): Likewise.
37555 * haifa-sched.c (sched_create_recovery_edges): Likewise.
37556 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
37557 * jump.c (redirect_jump_2): Likewise.
37558 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
37559 (relax_delay_slots): Likewise.
37560 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
37561 (bbit_di): Likewise.
37562 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
37563 * config/sh/sh.md (jump_compact): Likewise.
37564 * bb-reorder.c (rotate_loop): Likewise.
37565 (pass_duplicate_computed_gotos::execute): Likewise.
37566 (add_reg_crossing_jump_notes): Rename to...
37567 (update_crossing_jump_flags): ...this.
37568 (pass_partition_blocks::execute): Update accordingly.
37570 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
37572 * tree.h: Remove extraneous template <>.
37574 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37576 * ipa.c (symtab_remove_unreachable_nodes): Remove
37577 symbol from comdat group if its body was eliminated.
37578 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
37579 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
37580 (symtab_unregister_node): ... this one.
37581 (verify_symtab_base): More strict checking of comdats.
37582 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
37584 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37586 * tree-pass.h (make_pass_ipa_comdats): New pass.
37587 * timevar.def (TV_IPA_COMDATS): New timevar.
37588 * passes.def (pass_ipa_comdats): Add.
37589 * Makefile.in (OBJS): Add ipa-comdats.o
37590 * ipa-comdats.c: New file.
37592 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37594 * ipa.c (update_visibility_by_resolution_info): New function.
37595 (function_and_variable_visibility): Use it.
37597 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
37599 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
37601 (FOR_EACH_DEFINED_SYMBOL): New macro.
37602 (varpool_first_static_initializer, varpool_next_static_initializer,
37603 varpool_first_defined_variable, varpool_next_defined_variable):
37605 (symtab_in_same_comdat_p): Correctly deal with inline functions.
37607 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37609 * ggc-page.c (ggc_handle_finalizers): Add comment.
37611 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37613 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
37614 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
37615 (ggc_internal_cleared_alloc): Likewise.
37616 * ggc-page.c (finalizer): New class.
37617 (vec_finalizer): Likewise.
37618 (globals::finalizers): New member.
37619 (globals::vec_finalizers): Likewise.
37620 (ggc_internal_alloc): Record the finalizer if any for the block being
37622 (ggc_handle_finalizers): New function.
37623 (ggc_collect): Call ggc_handle_finalizers.
37624 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
37626 (ggc_internal_cleared_alloc): Likewise.
37627 (finalize): New function.
37628 (need_finalization_p): Likewise.
37629 (ggc_alloc): Install the type's destructor as the finalizer if it
37630 might do something.
37631 (ggc_cleared_alloc): Likewise.
37632 (ggc_vec_alloc): Likewise.
37633 (ggc_cleared_vec_alloc): Likewise.
37635 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37637 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
37639 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37641 * alias.c (record_alias_subset): Adjust.
37642 * bitmap.c (bitmap_element_allocate): Likewise.
37643 (bitmap_gc_alloc_stat): Likewise.
37644 * cfg.c (init_flow): Likewise.
37645 (alloc_block): Likewise.
37646 (unchecked_make_edge): Likewise.
37647 * cfgloop.c (alloc_loop): Likewise.
37648 (flow_loops_find): Likewise.
37649 (rescan_loop_exit): Likewise.
37650 * cfgrtl.c (init_rtl_bb_info): Likewise.
37651 * cgraph.c (insert_new_cgraph_node_version): Likewise.
37652 (cgraph_allocate_node): Likewise.
37653 (cgraph_create_edge_1): Likewise.
37654 (cgraph_allocate_init_indirect_info): Likewise.
37655 * cgraphclones.c (cgraph_clone_edge): Likewise.
37656 * cgraphunit.c (add_asm_node): Likewise.
37657 (init_lowered_empty_function): Likewise.
37658 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
37659 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
37660 (alpha_use_linkage): Likewise.
37661 * config/arc/arc.c (arc_init_machine_status): Likewise.
37662 * config/arm/arm.c (arm_init_machine_status): Likewise.
37663 * config/avr/avr.c (avr_init_machine_status): Likewise.
37664 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
37665 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
37666 * config/cris/cris.c (cris_init_machine_status): Likewise.
37667 * config/darwin.c (machopic_indirection_name): Likewise.
37668 (darwin_build_constant_cfstring): Likewise.
37669 (darwin_enter_string_into_cfstring_table): Likewise.
37670 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
37671 * config/frv/frv.c (frv_init_machine_status): Likewise.
37672 * config/i386/i386.c (get_dllimport_decl): Likewise.
37673 (ix86_init_machine_status): Likewise.
37674 (assign_386_stack_local): Likewise.
37675 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
37676 (i386_pe_maybe_record_exported_symbol): Likewise.
37677 (i386_pe_record_stub): Likewise.
37678 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
37679 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
37680 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
37681 (m32c_note_pragma_address): Likewise.
37682 * config/mep/mep.c (mep_init_machine_status): Likewise.
37683 (mep_note_pragma_flag): Likewise.
37684 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
37685 (mips16_local_alias): Likewise.
37686 (mips_init_machine_status): Likewise.
37687 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
37688 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
37689 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
37690 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
37691 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
37692 * config/pa/pa.c (pa_init_machine_status): Likewise.
37693 (pa_get_deferred_plabel): Likewise.
37694 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
37695 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
37696 (rs6000_init_machine_status): Likewise.
37697 (output_toc): Likewise.
37698 * config/s390/s390.c (s390_init_machine_status): Likewise.
37699 * config/score/score.c (score_output_external): Likewise.
37700 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
37701 * config/spu/spu.c (spu_init_machine_status): Likewise.
37702 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
37703 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
37704 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
37705 * coverage.c (coverage_end_function): Likewise.
37706 * dbxout.c (dbxout_init): Likewise.
37707 * doc/gty.texi: Don't mention variable_size attribute.
37708 * dwarf2cfi.c (new_cfi): Adjust.
37709 (new_cfi_row): Likewise.
37710 (copy_cfi_row): Likewise.
37711 (create_cie_data): Likewise.
37712 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
37713 (new_loc_descr): Likewise.
37714 (find_AT_string_in_table): Likewise.
37715 (add_addr_table_entry): Likewise.
37716 (new_die): Likewise.
37717 (add_var_loc_to_decl): Likewise.
37718 (clone_die): Likewise.
37719 (clone_as_declaration): Likewise.
37720 (break_out_comdat_types): Likewise.
37721 (new_loc_list): Likewise.
37722 (add_loc_descr_to_each): Likewise.
37723 (add_location_or_const_value_attribute): Likewise.
37724 (add_linkage_name): Likewise.
37725 (lookup_filename): Likewise.
37726 (dwarf2out_var_location): Likewise.
37727 (new_line_info_table): Likewise.
37728 (dwarf2out_init): Likewise.
37729 (mem_loc_descriptor): Likewise.
37730 (loc_descriptor): Likewise.
37731 (add_const_value_attribute): Likewise.
37732 (tree_add_const_value_attribute): Likewise.
37733 (comp_dir_string): Likewise.
37734 (dwarf2out_vms_debug_main_pointer): Likewise.
37735 (string_cst_pool_decl): Likewise.
37736 * emit-rtl.c (set_mem_attrs): Likewise.
37737 (get_reg_attrs): Likewise.
37738 (start_sequence): Likewise.
37739 (init_emit): Likewise.
37740 (init_emit_regs): Likewise.
37741 * except.c (init_eh_for_function): Likewise.
37742 (gen_eh_region): Likewise.
37743 (gen_eh_region_catch): Likewise.
37744 (gen_eh_landing_pad): Likewise.
37745 (add_call_site): Likewise.
37746 * function.c (add_frame_space): Likewise.
37747 (insert_temp_slot_address): Likewise.
37748 (assign_stack_temp_for_type): Likewise.
37749 (get_hard_reg_initial_val): Likewise.
37750 (allocate_struct_function): Likewise.
37751 (prepare_function_start): Likewise.
37752 (types_used_by_var_decl_insert): Likewise.
37753 * gengtype.c (variable_size_p): Remove function.
37754 (enum alloc_quantity): Remove enum.
37755 (write_typed_alloc_def): Remove function.
37756 (write_typed_struct_alloc_def): Likewise.
37757 (write_typed_typedef_alloc_def): Likewise.
37758 (write_typed_alloc_defns): Likewise.
37760 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
37761 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
37762 * ggc.h (ggc_alloc): new function.
37763 (ggc_cleared_alloc): Likewise.
37764 (ggc_vec_alloc): Template on type of vector element, and remove
37765 element size argument.
37766 (ggc_cleared_vec_alloc): Likewise.
37767 * gimple.c (gimple_build_omp_for): Adjust.
37768 (gimple_copy): Likewise.
37769 * ipa-cp.c (get_replacement_map): Likewise.
37770 (find_aggregate_values_for_callers_subset): Likewise.
37771 (known_aggs_to_agg_replacement_list): Likewise.
37772 * ipa-devirt.c (get_odr_type): Likewise.
37773 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
37774 (read_agg_replacement_chain): Likewise.
37775 * loop-iv.c (get_simple_loop_desc): Likewise.
37776 * lto-cgraph.c (input_node_opt_summary): Likewise.
37777 * lto-section-in.c (lto_new_in_decl_state): Likewise.
37778 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
37779 (input_eh_region): Likewise.
37780 (input_eh_lp): Likewise.
37781 (input_cfg): Likewise.
37782 * optabs.c (set_optab_libfunc): Likewise.
37783 (init_tree_optimization_optabs): Likewise.
37784 (set_conv_libfunc): Likewise.
37785 * passes.c (do_per_function_toporder): Likewise.
37786 * rtl.h: Don't use variable_size gty attribute.
37787 * sese.c (if_region_set_false_region): Adjust.
37788 * stringpool.c (gt_pch_save_stringpool): Likewise.
37789 * target-globals.c (save_target_globals): Likewise.
37790 * toplev.c (general_init): Likewise.
37791 * trans-mem.c (record_tm_replacement): Likewise.
37792 (split_bb_make_tm_edge): Likewise.
37793 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37794 * tree-data-ref.h (lambda_vector_new): Likewise.
37795 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
37796 * tree-iterator.c (tsi_link_before): Likewise.
37797 (tsi_link_after): Likewise.
37798 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
37799 * tree-ssa-loop-niter.c (record_estimate): Likewise.
37800 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
37801 * tree-ssa-operands.h: Don't use variable_size gty attribute.
37802 * tree-ssa.c (init_tree_ssa): Adjust.
37803 * tree-ssanames.c (set_range_info): Likewise.
37804 (get_ptr_info): Likewise.
37805 (duplicate_ssa_name_ptr_info): Likewise.
37806 (duplicate_ssa_name_range_info): Likewise.
37807 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
37808 (unpack_ts_fixed_cst_value_fields): Likewise.
37809 * tree.c (build_fixed): Likewise.
37810 (build_real): Likewise.
37811 (build_string): Likewise.
37812 (decl_priority_info): Likewise.
37813 (decl_debug_expr_insert): Likewise.
37814 (decl_value_expr_insert): Likewise.
37815 (decl_debug_args_insert): Likewise.
37816 (type_hash_add): Likewise.
37817 (build_omp_clause): Likewise.
37818 * ubsan.c (decl_for_type_insert): Likewise.
37819 * varasm.c (get_unnamed_section): Likewise.
37820 (get_noswitch_section): Likewise.
37821 (get_section): Likewise.
37822 (get_block_for_section): Likewise.
37823 (create_block_symbol): Likewise.
37824 (build_constant_desc): Likewise.
37825 (create_constant_pool): Likewise.
37826 (force_const_mem): Likewise.
37827 (record_tm_clone_pair): Likewise.
37828 * varpool.c (varpool_create_empty_node): Likewise.
37830 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
37832 * dwarf2out.c (tree_add_const_value_attribute): Call
37833 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
37834 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
37835 instead of ggc_internal_<x>alloc_stat.
37836 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
37837 (ggc_realloc): Likewise.
37838 * ggc-none.c (ggc_internal_alloc): Likewise.
37839 (ggc_internal_cleared_alloc): Likewise.
37840 * ggc-page.c: Likewise.
37841 * ggc.h (ggc_internal_alloc_stat): Likewise.
37842 (ggc_internal_alloc): Remove macro.
37843 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
37844 (ggc_internal_cleared_alloc): Remove macro.
37845 (GGC_RESIZEVEC): Adjust.
37846 (ggc_resizevar): Remove macro.
37847 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
37848 (ggc_internal_cleared_vec_alloc_stat): Likewise.
37849 (ggc_internal_vec_cleared_alloc): Remove macro.
37850 (ggc_alloc_atomic_stat): Drop _stat suffix.
37851 (ggc_alloc_atomic): Remove macro.
37852 (ggc_alloc_cleared_atomic): Remove macro.
37853 (ggc_alloc_string_stat): Drop _stat suffix.
37854 (ggc_alloc_string): Remove macro.
37855 (ggc_alloc_rtx_def_stat): Adjust.
37856 (ggc_alloc_tree_node_stat): Likewise.
37857 (ggc_alloc_cleared_tree_node_stat): Likewise.
37858 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
37859 (ggc_alloc_cleared_simd_clone_stat): Likewise.
37860 * gimple.c (gimple_build_omp_for): Likewise.
37861 (gimple_copy): Likewise.
37862 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
37863 * toplev.c (realloc_for_line_map): Adjust.
37864 * tree-data-ref.h (lambda_vector_new): Likewise.
37865 * tree-phinodes.c (allocate_phi_node): Likewise.
37866 * tree.c (grow_tree_vec_stat): Likewise.
37867 * vec.h (va_gc::reserve): Adjust.
37869 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
37871 * config/microblaze/microblaze.c (break_handler): New Declaration.
37872 (microblaze_break_function_p,microblaze_is_break_handler): New.
37873 (compute_frame_size): Use microblaze_break_function_p.
37874 Add the test of break_handler.
37875 (microblaze_function_prologue) : Add the test of variable
37876 break_handler. Check the fnname by BREAK_HANDLER_NAME.
37877 (microblaze_function_epilogue) : Add the test of break_handler.
37878 (microblaze_globalize_label) : Add the test of break_handler.
37879 Check the name by BREAK_HANDLER_NAME.
37881 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
37883 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
37884 microblaze_is_break_handler test.
37885 (call_internal1,call_value_intern): Use microblaze_break_function_p.
37886 Use SYMBOL_REF_DECL.
37888 * config/microblaze/microblaze-protos.h
37889 (microblaze_break_function_p,microblaze_is_break_handler):
37892 * doc/extend.texi (MicroBlaze break_handler Functions): Document
37893 new MicroBlaze break_handler functions.
37895 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37897 * doc/extend.texi (Size of an asm): Move node text according
37898 to its @menu entry position.
37900 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
37902 PR tree-optimization/61140
37903 PR tree-optimization/61150
37904 PR tree-optimization/61197
37905 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
37907 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
37909 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
37911 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
37913 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
37914 __SIZEOF_INT128__ is defined.
37916 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37918 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
37919 (rs6000_delegitimize_address): Use it.
37921 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
37923 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
37924 inplace argument. Store the new address in the original MEM when true.
37925 * emit-rtl.c (change_address_1): Likewise.
37926 (adjust_address_1, adjust_automodify_address_1, offset_address):
37927 Update accordingly.
37928 * rtl.h (plus_constant): Add an inplace argument.
37929 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
37930 when true. Avoid generating (plus X (const_int 0)).
37931 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
37932 in-place. Pass true to plus_constant.
37933 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
37935 2014-05-16 Dehao Chen <dehao@google.com>
37937 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
37939 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37942 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
37944 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
37946 2014-05-16 Dehao Chen <dehao@google.com>
37948 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
37949 optimize_function_for_size_p.
37950 * regs.h (REG_FREQ_FROM_BB): Likewise.
37952 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37955 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
37956 negt_reg_operand cases.
37957 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
37959 * config/sh/predicates.md (cbranch_treg_value): Simplify.
37961 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
37963 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
37966 2014-05-16 David Malcolm <dmalcolm@redhat.com>
37969 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37971 * tree-cfg.c (dump_function_to_file): Dump the return type of
37972 functions, in a line to itself before the function body, mimicking
37973 the layout of a C function.
37975 2014-05-16 Dehao Chen <dehao@google.com>
37977 * cfghooks.c (make_forwarder_block): Use direct computation to
37978 get fall-through edge's count and frequency.
37980 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
37982 * config/arc/arc.c (arc_init): Fix typo in error message.
37983 * config/i386/i386.c (ix86_expand_builtin): Likewise.
37984 (split_stack_prologue_scratch_regno): Likewise.
37985 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
37986 word from error message.
37988 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37990 * ira-costs.c: Fix typo in comment.
37992 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
37994 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
37996 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
37998 * varpool.c (dump_varpool_node): Dump write-only flag.
37999 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
38001 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
38002 write-only variables.
38003 * ipa.c (process_references): New function.
38004 (set_readonly_bit): New function.
38005 (set_writeonly_bit): New function.
38006 (clear_addressable_bit): New function.
38007 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
38008 fix handling of aliases.
38009 * cgraph.h (struct varpool_node): Add writeonly flag.
38011 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
38013 PR rtl-optimization/60969
38014 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
38015 Calculate costs for this case.
38017 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
38019 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
38020 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
38022 2014-05-16 Richard Biener <rguenther@suse.de>
38024 PR tree-optimization/61194
38025 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
38026 bool patterns ending in a COND_EXPR.
38028 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38030 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
38032 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38034 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
38035 where we were unable to cost an RTX.
38037 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38039 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
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 TRUNCATE.
38047 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38048 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38050 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
38051 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
38053 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38054 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38056 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
38059 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38060 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38062 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38065 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38066 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38068 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
38069 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
38071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38072 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38074 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
38075 rotates and shifts.
38077 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38078 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38080 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
38081 ZERO_EXTEND and SIGN_EXTEND better.
38083 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38084 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38086 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
38087 logical operations.
38089 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38090 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38092 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
38093 costs when costing loads and stores to memory.
38095 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38096 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
38098 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
38101 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
38105 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38106 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38108 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
38110 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
38112 (aarch64_rtx_mult_cost): New.
38113 (aarch64_rtx_costs): Use it, refactor as appropriate.
38115 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38116 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
38118 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
38119 emit instructions, return number of instructions which would
38121 (aarch64_add_constant): Update call to aarch64_build_constant.
38122 (aarch64_output_mi_thunk): Likewise.
38123 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
38126 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38128 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
38129 (TARGET_RTX_COSTS): Call it.
38131 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38133 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
38134 (cortexa57_vector_cost): Likewise.
38135 (cortexa57_tunings): Use them.
38137 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
38139 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
38140 (cpu_addrcost_table): Use it.
38141 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
38142 (aarch64_address_cost): Rewrite using aarch64_classify_address,
38145 2014-05-16 Richard Biener <rguenther@suse.de>
38147 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
38148 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
38149 (visit_phi): Ignore edges marked as not executable.
38150 (class cond_dom_walker): New.
38151 (cond_dom_walker::before_dom_children): Value-number
38152 control statements and mark successor edges as not
38153 executable if possible.
38154 (run_scc_vn): First walk all control statements in
38155 dominator order, marking edges as not executable.
38156 * tree-inline.c (copy_edges_for_bb): Be not confused
38157 about random edge flags.
38159 2014-05-16 Richard Biener <rguenther@suse.de>
38161 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
38163 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
38166 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
38167 (__TM_simple_begin): Use it.
38168 (__TM_begin): Likewise.
38170 2014-05-15 Martin Jambor <mjambor@suse.cz>
38173 * ipa-prop.c (update_indirect_edges_after_inlining): Check
38174 type_preserved flag when the indirect edge is polymorphic.
38176 2014-05-15 Martin Jambor <mjambor@suse.cz>
38178 PR tree-optimization/61090
38179 * tree-sra.c (sra_modify_expr): Pass the current gsi to
38180 build_ref_for_model.
38182 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38184 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
38185 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
38187 2014-05-15 Jakub Jelinek <jakub@redhat.com>
38189 PR tree-optimization/61158
38190 * fold-const.c (fold_binary_loc): If X is zero-extended and
38191 shiftc >= prec, make sure zerobits is all ones instead of
38192 invoking undefined behavior.
38194 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38196 * regcprop.h: New file.
38197 * regcprop.c (skip_debug_insn_p): New decl.
38198 (replace_oldest_value_reg): Check skip_debug_insn_p.
38199 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
38200 * shrink-wrap.c: Include regcprop.h.
38201 (prepare_shrink_wrap): Call
38202 copyprop_hardreg_forward_bb_without_debug_insn.
38204 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38206 * shrink-wrap.h: Update comment.
38207 * shrink-wrap.c: Update comment.
38208 (next_block_for_reg): Rename to live_edge_for_reg.
38209 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
38210 (move_insn_for_shrink_wrap): Split live_edge.
38211 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
38213 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38215 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
38217 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
38218 * config/sparc/sparc.md (fptype_ut699): New attribute.
38219 (in_branch_delay): Return false if -mfix-ut699 is specified and
38220 fptype_ut699 is set to single.
38221 (truncdfsf2): Add fptype_ut699 attribute.
38222 (fix_truncdfsi2): Likewise.
38223 (floatsisf2): Change fptype attribute.
38224 (fix_truncsfsi2): Likewise.
38225 (negtf2_notv9): Delete.
38226 (negtf2_v9): Likewise.
38227 (negtf2_hq): New instruction.
38228 (negtf2): New instruction and splitter.
38229 (negdf2_notv9): Rewrite.
38230 (abstf2_notv9): Delete.
38231 (abstf2_hq_v9): Likewise.
38232 (abstf2_v9): Likewise.
38233 (abstf2_hq): New instruction.
38234 (abstf2): New instruction and splitter.
38235 (absdf2_notv9): Rewrite.
38237 2014-05-14 Cary Coutant <ccoutant@google.com>
38240 * opts.c (common_handle_option): Don't special-case "-g".
38241 (set_debug_level): Default to at least level 2 with "-g".
38243 2014-05-14 DJ Delorie <dj@redhat.com>
38245 * config/msp430/msp430.c (msp430_builtin): Add
38246 MSP430_BUILTIN_DELAY_CYCLES.
38247 (msp430_init_builtins): Register void __delay_cycles(long long).
38248 (msp430_builtin_decl): Add it.
38249 (cg_magic_constant): New.
38250 (msp430_expand_delay_cycles): New.
38251 (msp430_expand_builtin): Call it.
38252 (msp430_print_operand_raw): Change integer printing from "int" to
38254 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
38255 (delay_cycles_start): New.
38256 (delay_cycles_end): New.
38257 (delay_cycles_32): New.
38258 (delay_cycles_32x): New.
38259 (delay_cycles_16): New.
38260 (delay_cycles_16x): New.
38261 (delay_cycles_2): New.
38262 (delay_cycles_1): New.
38263 * doc/extend.texi: Document __delay_cycles().
38265 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
38267 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
38268 length attribute computation.
38270 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
38273 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
38275 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
38278 * config/sparc/sparc.md: Fix types of low and high in DI constant
38279 splitter. Use gen_int_mode in some other splitters.
38281 2014-05-14 Martin Jambor <mjambor@suse.cz>
38284 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
38286 2014-05-14 James Norris <jnorris@codesourcery.com>
38288 * omp-low.c (expand_parallel_call): Remove shadow variable.
38289 (expand_omp_taskreg): Likewise.
38291 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
38293 * common/config/i386/i386-common.c
38294 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
38295 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
38296 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
38297 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
38298 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
38299 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
38300 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
38301 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
38302 xsavecintrin.h, xsavesintrin.h.
38303 (x86_64-*-*): Ditto.
38304 * config/i386/clflushoptintrin.h: New.
38305 * config/i386/xsavecintrin.h: Ditto.
38306 * config/i386/xsavesintrin.h: Ditto.
38307 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
38308 (bit_XSAVES): Ditto.
38309 (bit_XSAVES): Ditto.
38310 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
38311 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
38313 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38314 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
38315 OPTION_MASK_ISA_XSAVES.
38316 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
38317 -mxsavec, -mxsaves.
38318 (PTA_CLFLUSHOPT) Define.
38319 (PTA_XSAVEC): Ditto.
38320 (PTA_XSAVES): Ditto.
38321 (ix86_option_override_internal): Handle new options.
38322 (ix86_valid_target_attribute_inner_p): Ditto.
38323 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
38324 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
38325 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
38326 (bdesc_special_args): Add __builtin_ia32_xsaves,
38327 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
38328 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
38329 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
38330 (ix86_expand_builtin): Handle new builtins.
38331 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
38332 (TARGET_CLFLUSHOPT_P): Ditto.
38333 (TARGET_XSAVEC): Ditto.
38334 (TARGET_XSAVEC_P): Ditto.
38335 (TARGET_XSAVES): Ditto.
38336 (TARGET_XSAVES_P): Ditto.
38337 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
38338 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
38339 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
38341 (ANY_XRSTOR64): Ditto.
38343 (xrstor): Change into <xrstor>.
38344 (xrstor_rex64): Change into <xrstor>_rex64.
38345 (xrstor64): Change into <xrstor>64
38347 * config/i386/i386.opt (mclflushopt): New.
38350 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
38352 * doc/invoke.texi: Document new options.
38354 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38356 PR rtl-optimization/60866
38357 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
38358 Default it to -1. Pass it down to init_simplejump_data.
38359 (init_simplejump_data): New parameter old_seqno. Pass it down
38360 to get_seqno_for_a_jump.
38361 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
38362 initializing new jump seqno as a last resort. Add comment.
38363 (sel_redirect_edge_and_branch): Save old seqno of the conditional
38364 jump and pass it down to sel_init_new_insn.
38365 (sel_redirect_edge_and_branch_force): Likewise.
38367 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
38369 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
38370 shifted values to avoid build warning.
38372 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
38374 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
38375 * cfgrtl.c (rtl_merge_blocks): Fix comment.
38376 (cfg_layout_merge_blocks): Likewise.
38377 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
38379 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
38381 PR rtl-optimization/60901
38382 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
38383 bb predecessor belongs to the same scheduling region. Adjust comment.
38385 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
38387 * doc/sourcebuild.texi: (dfp_hw): Document.
38388 (p8vector_hw): Likewise.
38389 (powerpc_eabi_ok): Likewise.
38390 (powerpc_elfv2): Likewise.
38391 (powerpc_htm_ok): Likewise.
38392 (ppc_recip_hw): Likewise.
38393 (vsx_hw): Likewise.
38395 2014-05-13 Cary Coutant <ccoutant@google.com>
38397 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
38399 2014-05-13 David Malcolm <dmalcolm@redhat.com>
38401 * gengtype-parse.c (require3): Eliminate in favor of...
38403 (require_template_declaration): Update to support optional single *
38406 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
38407 (create_user_defined_type): Handle a single level of explicit
38408 pointerness within template arguments.
38409 (struct write_types_data): Add field "kind".
38410 (filter_type_name): Handle "*" character.
38411 (write_user_func_for_structure_ptr): Require a write_types_data
38412 rather than just a prefix string, so that we can look up the kind
38413 of the wtd and use it as an index into wrote_user_func_for_ptr,
38414 ensuring that such functions are written at most once. Support
38415 subclasses by invoking the marking function of the ultimate base class.
38416 (write_user_func_for_structure_body): Require a write_types_data
38417 rather than just a prefix string, so that we can pass this to
38418 write_user_func_for_structure_ptr.
38419 (write_func_for_structure): Likewise.
38420 (ggc_wtd): Add initializer of new "kind" field.
38421 (pch_wtd): Likewise.
38423 * gengtype.h (enum write_types_kinds): New.
38424 (struct type): Add field wrote_user_func_for_ptr to the "s"
38427 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38429 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
38430 instead of const_binop.
38431 (fold_binary_loc): Likewise.
38433 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
38435 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
38436 calculation to match get_ref_base_and_extent.
38438 2014-05-13 Catherine Moore <clm@codesourcery.com>
38439 Sandra Loosemore <sandra@codesourcery.com>
38441 * configure.ac: Fix assembly for explicit JALR relocation check.
38442 * configure: Regenerate.
38444 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38446 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
38447 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
38448 Remove associated type declarations and initialisations.
38449 (arm_expand_neon_builtin): Likewise.
38450 (neon_emit_pair_result_insn): Delete.
38451 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
38452 * config/arm/neon.md (neon_vtrn<mode>): Delete.
38453 (neon_vzip<mode>): Likewise.
38454 (neon_vuzp<mode>): Likewise.
38456 2014-05-13 Richard Biener <rguenther@suse.de>
38459 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
38460 it needs revisiting whether the call still may be tail-called.
38462 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38464 * rtl.def (SYMBOL_REF): Remove middle "0" field.
38465 * rtl.h (block_symbol): Reduce number of fields to 2.
38466 (rtx_def): Add u2.symbol_ref_flags.
38467 (SYMBOL_REF_FLAGS): Use it.
38468 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
38469 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
38470 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
38471 Lower index of SYMBOL_REF_DATA.
38472 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
38473 Print SYMBOL_REF_FLAGS at the same time.
38474 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
38476 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38478 * rtl.def (VAR_LOCATION): Remove "i" field.
38479 * rtl.h (rtx_def): Add u2.var_location_status.
38480 (PAT_VAR_LOCATION_STATUS): Use it.
38481 (gen_rtx_VAR_LOCATION): Declare.
38482 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
38483 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
38484 * var-tracking.c (emit_note_insn_var_location): Remove casts.
38486 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38488 * rtl.def (scratch): Fix outdated comment and remove "0" field.
38489 * gengtype.c (adjust_field_rtx_def): Update accordingly.
38491 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38493 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
38494 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
38495 * rtl.h (rtx_def): Add insn_uid to u2 field.
38496 (RTX_FLAG_CHECK8): Delete in favor of...
38497 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
38498 (INSN_DELETED_P): Update accordingly.
38499 (INSN_UID): Use u2.insn_uid.
38500 (INSN_CHAIN_CODE_P): Define.
38501 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
38502 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
38503 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
38504 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
38505 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
38506 indices accordingly.
38507 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
38508 Update indices for insn-chain rtxes.
38509 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
38510 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
38511 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
38512 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
38513 * combine.c (try_combine): Likewise.
38514 * ira.c (setup_prohibited_mode_move_regs): Likewise.
38516 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38518 * rtl.def (REG): Remove middle field.
38519 * rtl.h (rtx_def): Add orignal_regno to u2.
38520 (ORIGINAL_REGNO): Use it instead of field 1.
38521 (REG_ATTRS): Lower field index accordingly.
38522 * gengtype.c (adjust_field_rtx_def): Remove handling of
38523 ORIGINAL_REGNO. Move REG_ATTRS index down.
38524 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
38525 code that prints the REGNO.
38527 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38529 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
38532 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
38534 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
38536 2014-05-13 Bin Cheng <bin.cheng@arm.com>
38538 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
38539 (alloc_iv): Lower base expressions containing ADDR_EXPR.
38541 2014-05-13 Ian Bolton <ian.bolton@arm.com>
38543 * config/aarch64/aarch64-protos.h
38544 (aarch64_hard_regno_caller_save_mode): New prototype.
38545 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
38547 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
38549 2014-05-13 Christian Bruel <christian.bruel@st.com>
38551 * target.def (mode_switching): New hook vector.
38552 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
38553 (mode_exit, modepriority_to_mode): Likewise.
38554 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
38555 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38556 * target.h: Include tm.h and hard-reg-set.h.
38557 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
38558 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
38559 * doc/tm.texi Regenerate.
38560 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38561 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38562 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
38563 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
38564 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
38565 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38566 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
38567 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
38568 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
38569 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
38570 (ix86_emit_mode_set): Hookify.
38571 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
38573 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
38574 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
38575 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
38576 (epiphany_mode_priority_to_mode): Remove declaration.
38577 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
38578 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
38579 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
38581 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
38582 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
38583 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
38585 2014-05-13 Jakub Jelinek <jakub@redhat.com>
38588 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
38589 is const0_rtx, return immediately. Don't test count == 0 when
38592 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38594 * Makefile.in: add shrink-wrap.o.
38595 * config/i386/i386.c: include "shrink-wrap.h"
38596 * function.c: Likewise.
38597 (requires_stack_frame_p, next_block_for_reg,
38598 move_insn_for_shrink_wrap, prepare_shrink_wrap,
38599 dup_block_and_redirect): Move to shrink-wrap.c
38600 (thread_prologue_and_epilogue_insns): Extract three code segments
38601 as functions in shrink-wrap.c
38602 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
38604 * shrink-wrap.c: New file.
38605 * shrink-wrap.h: New file.
38607 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38609 * doc/extend.texi: Reflect current numbers of pragmas. Remove
38610 reference to Solaris.
38612 2014-05-12 Mike Stump <mikestump@comcast.net>
38615 * genattrtab.c (filename): Add.
38616 (convert_set_attr_alternative): Improve error message.
38617 (check_defs): Restore read_md_filename for error messages.
38618 (gen_insn): Save filename.
38620 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
38622 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
38623 -fno-local-ivars and -fivar-visibility.
38624 * c-family/c.opt: Make -Wshadow also implicitly enable
38627 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
38629 * doc/tm.texi: Remove reference to deleted macro.
38630 * doc/tm.texi.in: Likewise.
38632 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38635 * config/avr/avr.c (avr_out_store_psi): Use correct constant
38638 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
38641 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
38642 * config/arm/aout.h (License): Same.
38643 * config/arm/bpabi.h (License): Same.
38644 * config/arm/elf.h (License): Same.
38645 * config/arm/linux-elf.h (License): Same.
38646 * config/arm/linux-gas.h (License): Same.
38647 * config/arm/netbsd-elf.h (License): Same.
38648 * config/arm/uclinux-eabi.h (License): Same.
38649 * config/arm/uclinux-elf.h (License): Same.
38650 * config/arm/vxworks.h (License): Same.
38652 2014-05-11 Jakub Jelinek <jakub@redhat.com>
38654 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
38655 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
38656 number of operands to 3.
38657 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
38658 * tree-nested.c (convert_nonlocal_omp_clauses,
38659 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
38660 * gimplify.c (gimplify_scan_omp_clauses): Handle
38661 OMP_CLAUSE_LINEAR_STMT.
38662 * omp-low.c (lower_rec_input_clauses): Fix typo.
38663 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
38664 cast between Fortran boolean_type_node and C _Bool if
38667 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
38669 PR tree-optimization/61136
38670 * wide-int.h (multiple_of_p): Define a version that doesn't return
38672 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
38673 integer_zerop/const_binop pair.
38674 (multiple_of_p): Likewise, converting both operands to widest_int
38677 2014-05-09 Teresa Johnson <tejohnson@google.com>
38679 * cgraphunit.c (analyze_functions): Use correct dump file.
38681 2014-05-09 Florian Weimer <fweimer@redhat.com>
38683 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
38685 (stack_protect_return_slot_p): New function.
38686 (expand_used_vars): Call stack_protect_decl_p and
38687 stack_protect_return_slot_p for -fstack-protector-strong.
38689 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
38690 Andrew Haley <aph@redhat.com>
38691 Richard Sandiford <rdsandiford@googlemail.com>
38693 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
38696 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
38698 PR middle-end/61111
38699 * fold-const.c (fold_binary_loc): Changed width of mask.
38701 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38703 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
38704 unsigned int initializers for regno_in, regno_out.
38706 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
38709 * config/avr/avr.md (cc): Add new attribute set_vzn.
38710 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
38711 Set cc insn attribute to set_vzn instead of set_zn for alternatives
38712 with INC, DEC or NEG.
38713 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
38714 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
38715 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
38717 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38720 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38722 * wide-int.cc (UTItype): Define.
38723 (UDWtype): Define for appropriate W_TYPE_SIZE.
38725 2014-05-09 Richard Biener <rguenther@suse.de>
38727 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
38728 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
38729 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
38730 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
38731 ssa_propagate): Adjust.
38733 2014-05-08 Jeff Law <law@redhat.com>
38735 PR tree-optimization/61009
38736 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
38737 tri-state rather than a boolean. When a block is too big to
38738 thread through, inform caller via negative return value.
38739 (thread_across_edge): If a block was too big for normal threading,
38740 then it's too big for a joiner too, so remove temporary equivalences
38741 and return immediately.
38743 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
38744 Matthias Klose <doko@ubuntu.com>
38747 * optc-gen.awk: Fix option handling for -Wunused-parameter.
38749 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38752 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
38754 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
38757 * config/alpha/alpha.c: Include gimple-iterator.h.
38758 (alpha_gimple_fold_builtin): New function. Move
38759 ALPHA_BUILTIN_UMULH folding from ...
38760 (alpha_fold_builtin): ... here.
38761 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
38763 2014-05-08 Wei Mi <wmi@google.com>
38766 * config/i386/i386.c (ix86_compute_frame_layout): Update
38767 preferred_stack_boundary for call, expanded from tls descriptor.
38768 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
38769 to depend on SP register.
38770 (*tls_local_dynamic_base_32_gnu): Ditto.
38771 (*tls_local_dynamic_32_once): Ditto.
38772 (tls_global_dynamic_64_<mode>): Set
38773 ix86_tls_descriptor_calls_expanded_in_cfun.
38774 (tls_local_dynamic_base_64_<mode>): Ditto.
38775 (tls_global_dynamic_32): Set
38776 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
38777 to depend on SP register.
38778 (tls_local_dynamic_base_32): Ditto.
38780 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38782 * config/arm/arm_neon.h: Update comment.
38783 * config/arm/neon-docgen.ml: Delete.
38784 * config/arm/neon-gen.ml: Delete.
38785 * doc/arm-neon-intrinsics.texi: Update comment.
38787 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38789 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
38791 (vand, vorr, veor, vorn, vbic): Remove.
38792 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
38794 (neon_vsub_unspec): Likewise.
38795 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
38797 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38799 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
38800 (vadd_s16): Likewise.
38801 (vadd_s32): Likewise.
38802 (vadd_f32): Likewise.
38803 (vadd_u8): Likewise.
38804 (vadd_u16): Likewise.
38805 (vadd_u32): Likewise.
38806 (vadd_s64): Likewise.
38807 (vadd_u64): Likewise.
38808 (vaddq_s8): Likewise.
38809 (vaddq_s16): Likewise.
38810 (vaddq_s32): Likewise.
38811 (vaddq_s64): Likewise.
38812 (vaddq_f32): Likewise.
38813 (vaddq_u8): Likewise.
38814 (vaddq_u16): Likewise.
38815 (vaddq_u32): Likewise.
38816 (vaddq_u64): Likewise.
38817 (vmul_s8): Likewise.
38818 (vmul_s16): Likewise.
38819 (vmul_s32): Likewise.
38820 (vmul_f32): Likewise.
38821 (vmul_u8): Likewise.
38822 (vmul_u16): Likewise.
38823 (vmul_u32): Likewise.
38824 (vmul_p8): Likewise.
38825 (vmulq_s8): Likewise.
38826 (vmulq_s16): Likewise.
38827 (vmulq_s32): Likewise.
38828 (vmulq_f32): Likewise.
38829 (vmulq_u8): Likewise.
38830 (vmulq_u16): Likewise.
38831 (vmulq_u32): Likewise.
38832 (vsub_s8): Likewise.
38833 (vsub_s16): Likewise.
38834 (vsub_s32): Likewise.
38835 (vsub_f32): Likewise.
38836 (vsub_u8): Likewise.
38837 (vsub_u16): Likewise.
38838 (vsub_u32): Likewise.
38839 (vsub_s64): Likewise.
38840 (vsub_u64): Likewise.
38841 (vsubq_s8): Likewise.
38842 (vsubq_s16): Likewise.
38843 (vsubq_s32): Likewise.
38844 (vsubq_s64): Likewise.
38845 (vsubq_f32): Likewise.
38846 (vsubq_u8): Likewise.
38847 (vsubq_u16): Likewise.
38848 (vsubq_u32): Likewise.
38849 (vsubq_u64): Likewise.
38850 (vand_s8): Likewise.
38851 (vand_s16): Likewise.
38852 (vand_s32): Likewise.
38853 (vand_u8): Likewise.
38854 (vand_u16): Likewise.
38855 (vand_u32): Likewise.
38856 (vand_s64): Likewise.
38857 (vand_u64): Likewise.
38858 (vandq_s8): Likewise.
38859 (vandq_s16): Likewise.
38860 (vandq_s32): Likewise.
38861 (vandq_s64): Likewise.
38862 (vandq_u8): Likewise.
38863 (vandq_u16): Likewise.
38864 (vandq_u32): Likewise.
38865 (vandq_u64): Likewise.
38866 (vorr_s8): Likewise.
38867 (vorr_s16): Likewise.
38868 (vorr_s32): Likewise.
38869 (vorr_u8): Likewise.
38870 (vorr_u16): Likewise.
38871 (vorr_u32): Likewise.
38872 (vorr_s64): Likewise.
38873 (vorr_u64): Likewise.
38874 (vorrq_s8): Likewise.
38875 (vorrq_s16): Likewise.
38876 (vorrq_s32): Likewise.
38877 (vorrq_s64): Likewise.
38878 (vorrq_u8): Likewise.
38879 (vorrq_u16): Likewise.
38880 (vorrq_u32): Likewise.
38881 (vorrq_u64): Likewise.
38882 (veor_s8): Likewise.
38883 (veor_s16): Likewise.
38884 (veor_s32): Likewise.
38885 (veor_u8): Likewise.
38886 (veor_u16): Likewise.
38887 (veor_u32): Likewise.
38888 (veor_s64): Likewise.
38889 (veor_u64): Likewise.
38890 (veorq_s8): Likewise.
38891 (veorq_s16): Likewise.
38892 (veorq_s32): Likewise.
38893 (veorq_s64): Likewise.
38894 (veorq_u8): Likewise.
38895 (veorq_u16): Likewise.
38896 (veorq_u32): Likewise.
38897 (veorq_u64): Likewise.
38898 (vbic_s8): Likewise.
38899 (vbic_s16): Likewise.
38900 (vbic_s32): Likewise.
38901 (vbic_u8): Likewise.
38902 (vbic_u16): Likewise.
38903 (vbic_u32): Likewise.
38904 (vbic_s64): Likewise.
38905 (vbic_u64): Likewise.
38906 (vbicq_s8): Likewise.
38907 (vbicq_s16): Likewise.
38908 (vbicq_s32): Likewise.
38909 (vbicq_s64): Likewise.
38910 (vbicq_u8): Likewise.
38911 (vbicq_u16): Likewise.
38912 (vbicq_u32): Likewise.
38913 (vbicq_u64): Likewise.
38914 (vorn_s8): Likewise.
38915 (vorn_s16): Likewise.
38916 (vorn_s32): Likewise.
38917 (vorn_u8): Likewise.
38918 (vorn_u16): Likewise.
38919 (vorn_u32): Likewise.
38920 (vorn_s64): Likewise.
38921 (vorn_u64): Likewise.
38922 (vornq_s8): Likewise.
38923 (vornq_s16): Likewise.
38924 (vornq_s32): Likewise.
38925 (vornq_s64): Likewise.
38926 (vornq_u8): Likewise.
38927 (vornq_u16): Likewise.
38928 (vornq_u32): Likewise.
38929 (vornq_u64): Likewise.
38931 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38933 * wide-int.cc (UTItype): Define.
38934 (UDWtype): Define for appropriate W_TYPE_SIZE.
38936 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
38938 PR tree-optimization/59100
38939 * tree-ssa-phiopt.c: Include tree-inline.h.
38940 (neutral_element_p, absorbing_element_p): New functions.
38941 (value_replacement): Handle conditional binary operations with a
38942 neutral or absorbing element.
38944 2014-05-08 Richard Biener <rguenther@suse.de>
38946 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
38947 folding the expression.
38948 (valueize_expr): Remove.
38949 (visit_reference_op_load): Do not valueize the result of
38951 (simplify_binary_expression): Likewise.
38952 (simplify_unary_expression): Likewise.
38954 2014-05-08 Richard Biener <rguenther@suse.de>
38956 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
38957 looking at TYPE_ARG_TYPES.
38959 2014-05-08 Richard Biener <rguenther@suse.de>
38961 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
38962 pointer propagation special-case.
38964 2014-05-08 Bin Cheng <bin.cheng@arm.com>
38966 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
38967 core part of address expressions.
38969 2014-05-08 Alan Modra <amodra@gmail.com>
38972 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
38973 loads and stores when -mno-strict-align at any alignment.
38974 (expand_block_clear): Similarly. Also correct calculation of
38977 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
38979 PR middle-end/39246
38980 * tree-complex.c (expand_complex_move): Keep line info when expanding
38982 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
38983 of complex expression. Use new argument to display correct location
38984 for values coming from phi statement.
38985 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
38986 (warn_uninitialized_phi): Pass location of phi argument to
38988 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
38989 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
38991 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
38993 * config/rs6000/predicates.md (indexed_address_mem): New.
38994 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
38995 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
38996 fpstore_ux, fpstore_u.
38997 (sign_extend, indexed, update): New.
38998 (cell_micro): Adjust.
38999 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
39000 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
39001 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
39002 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
39003 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
39004 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
39005 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
39006 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
39007 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
39008 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
39009 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
39010 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
39011 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
39012 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
39013 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
39015 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
39016 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
39017 *vsx_extract_<mode>_store): Adjust.
39018 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
39019 is_cracked_insn, insn_must_be_first_in_group,
39020 insn_must_be_last_in_group): Adjust.
39022 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
39024 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
39025 ppc440-fpstore): Adjust.
39026 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
39027 ppc476-fpstore): Adjust.
39028 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
39029 ppc601-fpstore): Adjust.
39030 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
39032 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
39034 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
39035 ppc7450-fpstore): Adjust.
39036 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
39037 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
39038 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
39040 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
39041 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
39042 cell-fpstore, cell-fpstore-update): Adjust.
39043 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
39044 ppce300c3_store, ppce300c3_fpstore): Adjust.
39045 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
39046 e500mc_fpstore): Adjust.
39047 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
39048 e500mc64_store, e500mc64_fpstore): Adjust.
39049 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
39050 e5500_fpstore): Adjust.
39051 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
39052 e6500_fpstore): Adjust.
39053 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
39055 * config/rs6000/power4.md (power4-load, power4-load-ext,
39056 power4-load-ext-update, power4-load-ext-update-indexed,
39057 power4-load-update-indexed, power4-load-update, power4-fpload,
39058 power4-fpload-update, power4-store, power4-store-update,
39059 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
39061 * config/rs6000/power5.md (power5-load, power5-load-ext,
39062 power5-load-ext-update, power5-load-ext-update-indexed,
39063 power5-load-update-indexed, power5-load-update, power5-fpload,
39064 power5-fpload-update, power5-store, power5-store-update,
39065 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
39067 * config/rs6000/power6.md (power6-load, power6-load-ext,
39068 power6-load-update, power6-load-update-indexed,
39069 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
39070 power6-fpload-update, power6-store, power6-store-update,
39071 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
39073 * config/rs6000/power7.md (power7-load, power7-load-ext,
39074 power7-load-update, power7-load-update-indexed,
39075 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
39076 power7-fpload-update, power7-store, power7-store-update,
39077 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
39079 * config/rs6000/power8.md (power8-load, power8-load-update,
39080 power8-load-ext, power8-load-ext-update, power8-fpload,
39081 power8-fpload-update, power8-store, power8-store-update-indexed,
39082 power8-fpstore, power8-fpstore-update): Adjust.
39083 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
39085 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
39086 titan_lsu_store, titan_lsu_fpstore): Adjust.
39087 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
39089 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
39092 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
39093 unrolled byte insns. Emit address increments after move insns.
39095 2014-05-07 David Malcolm <dmalcolm@redhat.com>
39097 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
39098 const_gimple, rather than a gimple.
39099 (gimple_call_builtin_p): Likewise, for the three variants.
39101 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
39102 (gimple_call_builtin_p): Likewise, for the three variants.
39104 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
39106 PR tree-optimization/61095
39107 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
39109 2014-05-07 Richard Biener <rguenther@suse.de>
39111 PR tree-optimization/61034
39112 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
39113 (maybe_skip_until): Use translate to take into account
39114 lattices when trying to do disambiguations.
39115 (get_continuation_for_phi_1): Likewise.
39116 (get_continuation_for_phi): Adjust for added translate arguments.
39117 (walk_non_aliased_vuses): Likewise.
39118 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
39119 (walk_non_aliased_vuses): Likewise.
39120 (call_may_clobber_ref_p_1): Declare.
39121 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
39122 calls. Stop early if we are only supposed to disambiguate.
39123 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
39125 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
39127 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
39128 Emit an error when the function has arguments.
39130 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39132 * cfgloop.h (unswitch_loops): Remove.
39133 * doc/passes.texi: Remove references to loop-unswitch.c
39134 * timevar.def (TV_LOOP_UNSWITCH): Remove.
39136 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
39138 * tree-vect-data-refs.c (vect_grouped_load_supported): New
39139 check for loads group of length 3.
39140 (vect_permute_load_chain): New permutations for loads group of
39142 * tree-vect-stmts.c (vect_model_load_cost): Change cost
39143 of vec_perm_shuffle for the new permutations.
39145 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
39147 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
39148 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
39149 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
39150 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
39151 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
39152 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
39153 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
39154 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
39156 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
39158 * loop-unswitch.c: Delete.
39160 2014-05-07 Richard Biener <rguenther@suse.de>
39162 * config.gcc: Always set need_64bit_hwint to yes.
39164 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
39166 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
39167 of using optimize_size.
39169 2014-05-06 Mike Stump <mikestump@comcast.net>
39171 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
39173 2014-05-06 Joseph Myers <joseph@codesourcery.com>
39175 * config/i386/sse.md (*mov<mode>_internal)
39176 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
39177 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
39178 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
39179 (*<code><mode>3, *andnot<mode>3<mask_name>)
39180 (<mask_codefor><code><mode>3<mask_name>): Only consider
39181 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
39183 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39186 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
39188 * lra-constraints.c (valid_address_p): Move earlier in file.
39189 Add a constraint argument to the address_info version.
39190 (satisfies_memory_constraint_p): New function.
39191 (satisfies_address_constraint_p): Likewise.
39192 (process_alt_operands, curr_insn_transform): Use them.
39193 (process_address): Pass the constraint to valid_address_p when
39194 checking address operands.
39196 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
39198 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
39199 to their respective blocks. Fix inadvertent use of "node".
39201 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
39203 * emit-rtl.c (init_derived_machine_modes): New functionm, split
39205 (init_emit_once): ...here.
39206 * rtl.h (init_derived_machine_modes): Declare.
39207 * toplev.c (do_compile): Call it even if no_backend.
39209 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
39210 Mike Stump <mikestump@comcast.net>
39211 Richard Sandiford <rdsandiford@googlemail.com>
39212 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39214 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
39215 (rtx_equal_for_memref_p): Update comment.
39216 (adjust_offset_for_component_ref): Use wide-int interfaces.
39217 * builtins.c (get_object_alignment_2): Likewise.
39218 (c_readstr): Likewise.
39219 (target_char_cast): Add comment.
39220 (determine_block_size): Use wide-int interfaces.
39221 (expand_builtin_signbit): Likewise.
39222 (fold_builtin_int_roundingfn): Likewise.
39223 (fold_builtin_bitop): Likewise.
39224 (fold_builtin_bswap): Likewise.
39225 (fold_builtin_logarithm): Use signop.
39226 (fold_builtin_pow): Likewise.
39227 (fold_builtin_memory_op): Use wide-int interfaces.
39228 (fold_builtin_object_size): Likewise.
39229 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
39230 nb_iterations_estimate.
39231 (record_niter_bound): Use wide-int interfaces.
39232 (get_estimated_loop_iterations_int): Likewise.
39233 (get_estimated_loop_iterations): Likewise.
39234 (get_max_loop_iterations): Likewise.
39235 * cfgloop.h: Include wide-int.h.
39236 (struct nb_iter_bound): Change bound to widest_int.
39237 (struct loop): Change nb_iterations_upper_bound and
39238 nb_iterations_estimate to widest_int.
39239 (record_niter_bound): Switch to use widest_int.
39240 (get_estimated_loop_iterations): Likewise.
39241 (get_max_loop_iterations): Likewise.
39242 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
39243 update for wide-int.
39244 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
39245 * combine.c (try_combine): Likewise.
39246 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
39247 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
39249 (aarch64_float_const_representable_p): Likewise.
39250 * config/arc/arc.c: Include wide-int.h.
39251 (arc_can_use_doloop_p): Use wide-int interfaces.
39252 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
39253 (vfp3_const_double_index): Likewise.
39254 * config/avr/avr.c (avr_out_round): Likewise.
39255 (avr_fold_builtin): Likewise.
39256 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
39257 (bfin_can_use_doloop_p): Likewise.
39258 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
39259 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
39260 * config/i386/i386.c: Include wide-int.h.
39261 (ix86_data_alignment): Use wide-int interfaces.
39262 (ix86_local_alignment): Likewise.
39263 (ix86_emit_swsqrtsf): Update real_from_integer.
39264 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
39265 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
39266 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
39267 (zero_constant): Likewise.
39268 (input_operand): Likewise.
39269 (splat_input_operand): Likewise.
39270 (non_logical_cint_operand): Change const_double to const_wide_int.
39271 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
39272 (easy_altivec_constant): Remove comment.
39273 (paired_expand_vector_init): Use CONSTANT_P.
39274 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
39275 (rs6000_emit_move): Update checks.
39276 (rs6000_aggregate_candidate): Use wide-int interfaces.
39277 (rs6000_expand_ternop_builtin): Likewise.
39278 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
39279 (rs6000_assemble_integer): Likewise.
39280 (rs6000_hash_constant): Likewise.
39281 (output_toc): Likewise.
39282 (rs6000_rtx_costs): Likewise.
39283 (rs6000_emit_swrsqrt); Update call to real_from_integer.
39284 * config/rs6000/rs6000-c.c: Include wide-int.h.
39285 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
39286 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
39287 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
39288 Handle CONST_WIDE_INT.
39289 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
39290 Use tree_fits_uhwi_p.
39291 * config/sparc/sparc.c: Include wide-int.h.
39292 (sparc_fold_builtin): Use wide-int interfaces.
39293 * config/vax/vax.c: Include wide-int.h.
39294 (vax_float_literal): Use real_from_integer.
39295 * coretypes.h (struct hwivec_def): New.
39297 (const_hwivec): New.
39298 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
39299 (equiv_constant): Handle CONST_WIDE_INT.
39300 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
39301 (cselib_hash_rtx): Handle CONST_WIDE_INT.
39302 * dbxout.c (stabstr_U): Use wide-int interfaces.
39303 (dbxout_type): Update to use cst_fits_shwi_p.
39304 * defaults.h (LOG2_BITS_PER_UNIT): Define.
39305 (TARGET_SUPPORTS_WIDE_INT): Add default.
39306 * dfp.c: Include wide-int.h.
39307 (decimal_real_to_integer2): Use wide-int interfaces and rename to
39308 decimal_real_to_integer.
39309 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
39310 decimal_real_to_integer.
39311 * doc/generic.texi (Constant expressions): Update for wide_int.
39312 * doc/rtl.texi (const_double): Likewise.
39313 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
39314 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
39315 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
39316 (REAL_VALUE_FROM_INT): Remove.
39317 (TARGET_SUPPORTS_WIDE_INT): New.
39318 * doc/tm.texi: Regenerate.
39319 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
39320 * double-int.h: Include wide-int.h.
39321 (struct wi::int_traits): New.
39322 * dwarf2out.c (get_full_len): New.
39323 (dw_val_equal_p): Add case dw_val_class_wide_int.
39324 (size_of_loc_descr): Likewise.
39325 (output_loc_operands): Likewise.
39326 (insert_double): Remove.
39327 (insert_wide_int): New.
39328 (add_AT_wide): New.
39329 (print_die): Add case dw_val_class_wide_int.
39330 (attr_checksum): Likewise.
39331 (attr_checksum_ordered): Likewise.
39332 (same_dw_val_p): Likewise.
39333 (size_of_die): Likewise.
39334 (value_format): Likewise.
39335 (output_die): Likewise.
39336 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
39338 (clz_loc_descriptor): Use wide-int interfaces.
39339 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
39340 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
39341 (round_up_to_align): Use wide-int interfaces.
39342 (field_byte_offset): Likewise.
39343 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
39344 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
39345 CONST_DOUBLE handling. Use wide-int interfaces.
39346 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
39347 (gen_enumeration_type_die): Use add_AT_wide.
39348 (hash_loc_operands): Add case dw_val_class_wide_int.
39349 (compare_loc_operands): Likewise.
39350 * dwarf2out.h: Include wide-int.h.
39351 (wide_int_ptr): New.
39352 (enum dw_val_class): Add dw_val_class_wide_int.
39353 (struct dw_val_struct): Add val_wide.
39354 * emit-rtl.c (const_wide_int_htab): New.
39355 (const_wide_int_htab_hash): New.
39356 (const_wide_int_htab_eq): New.
39357 (lookup_const_wide_int): New.
39358 (const_double_htab_hash): Use wide-int interfaces.
39359 (const_double_htab_eq): Likewise.
39360 (rtx_to_double_int): Conditionally compile for wide-int.
39361 (immed_double_int_const): Rename to immed_wide_int_const and
39362 update for wide-int.
39363 (immed_double_const): Conditionally compile for wide-int.
39364 (init_emit_once): Use wide-int interfaces.
39365 * explow.c (plus_constant): Likewise.
39366 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
39367 (lshift_value): Use wide-int interfaces.
39368 (expand_mult): Likewise.
39369 (choose_multiplier): Likewise.
39370 (expand_smod_pow2): Likewise.
39371 (make_tree): Likewise.
39372 * expr.c (convert_modes): Consolidate handling of constants.
39373 Use wide-int interfaces.
39374 (emit_group_load_1): Add note.
39375 (store_expr): Update comment.
39376 (get_inner_reference): Use wide-int interfaces.
39377 (expand_constructor): Update comment.
39378 (expand_expr_real_2): Use wide-int interfaces.
39379 (expand_expr_real_1): Likewise.
39380 (reduce_to_bit_field_precision): Likewise.
39381 (const_vector_from_tree): Likewise.
39382 * final.c: Include wide-int-print.h.
39383 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
39384 * fixed-value.c: Include wide-int.h.
39385 (fixed_from_string): Use wide-int interfaces.
39386 (fixed_to_decimal): Likewise.
39387 (fixed_convert_from_real): Likewise.
39388 (real_convert_from_fixed): Likewise.
39389 * fold-const.h (mem_ref_offset): Return an offset_int.
39390 (div_if_zero_remainder): Remove code parameter.
39391 * fold-const.c (div_if_zero_remainder): Remove code parameter.
39392 Use wide-int interfaces.
39393 (may_negate_without_overflow_p): Use wide-int interfaces.
39394 (negate_expr_p): Likewise.
39395 (fold_negate_expr): Likewise.
39396 (int_const_binop_1): Likewise.
39397 (const_binop): Likewise.
39398 (fold_convert_const_int_from_int): Likewise.
39399 (fold_convert_const_int_from_real): Likewise.
39400 (fold_convert_const_int_from_fixed): Likewise.
39401 (fold_convert_const_fixed_from_int): Likewise.
39402 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
39403 (sign_bit_p): Use wide-int interfaces.
39404 (make_range_step): Likewise.
39405 (build_range_check): Likewise. Pass an integer of the correct type
39406 instead of using integer_one_node.
39407 (range_predecessor): Pass an integer of the correct type instead
39408 of using integer_one_node.
39409 (range_successor): Likewise.
39410 (merge_ranges): Likewise.
39411 (unextend): Use wide-int interfaces.
39412 (extract_muldiv_1): Likewise.
39413 (fold_div_compare): Likewise.
39414 (fold_single_bit_test): Likewise.
39415 (fold_sign_changed_comparison): Likewise.
39416 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
39417 (fold_plusminus_mult_expr): Use wide-int interfaces.
39418 (native_encode_int): Likewise.
39419 (native_interpret_int): Likewise.
39420 (fold_unary_loc): Likewise.
39421 (pointer_may_wrap_p): Likewise.
39422 (size_low_cst): Likewise.
39423 (mask_with_tz): Likewise.
39424 (fold_binary_loc): Likewise.
39425 (fold_ternary_loc): Likewise.
39426 (multiple_of_p): Likewise.
39427 (tree_call_nonnegative_warnv_p): Update calls to
39428 tree_int_cst_min_precision and real_from_integer.
39429 (fold_negate_const): Use wide-int interfaces.
39430 (fold_abs_const): Likewise.
39431 (fold_relational_const): Use tree_int_cst_lt.
39432 (round_up_loc): Use wide-int interfaces.
39433 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
39434 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
39435 * gengtype.c: Remove include of double-int.h.
39436 (do_typedef): Use wide-int interfaces.
39437 (open_base_files): Add wide-int.h.
39438 (main): Add offset_int and widest_int typedefs.
39439 * gengtype-lex.l: Handle "^".
39440 (CXX_KEYWORD): Add "static".
39441 * gengtype-parse.c (require3): New.
39442 (require_template_declaration): Handle constant template arguments
39443 and nested templates.
39444 * gengtype-state.c: Don't include "double-int.h".
39445 * genpreds.c (write_one_predicate_function): Update comment.
39446 (write_tm_constrs_h): Add check for hval and lval use in
39448 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
39449 (add_to_sequence): Likewise.
39450 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
39451 and const_double_operand.
39452 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
39454 * gimple-fold.c (get_base_constructor): Likewise.
39455 (fold_array_ctor_reference): Likewise.
39456 (fold_nonarray_ctor_reference): Likewise.
39457 (fold_const_aggregate_ref_1): Likewise.
39458 (gimple_val_nonnegative_real_p): Likewise.
39459 (gimple_fold_indirect_ref): Likewise.
39460 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
39461 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
39462 (struct slsr_cand_d): Change index to be widest_int.
39463 (struct incr_info_d): Change incr to be widest_int.
39464 (alloc_cand_and_find_basis): Use wide-int interfaces.
39465 (slsr_process_phi): Likewise.
39466 (backtrace_base_for_ref): Likewise. Return a widest_int.
39467 (restructure_reference): Take a widest_int instead of a double_int.
39468 (slsr_process_ref): Use wide-int interfaces.
39469 (create_mul_ssa_cand): Likewise.
39470 (create_mul_imm_cand): Likewise.
39471 (create_add_ssa_cand): Likewise.
39472 (create_add_imm_cand): Take a widest_int instead of a double_int.
39473 (slsr_process_add): Use wide-int interfaces.
39474 (slsr_process_cast): Likewise.
39475 (slsr_process_copy): Likewise.
39476 (dump_candidate): Likewise.
39477 (dump_incr_vec): Likewise.
39478 (replace_ref): Likewise.
39479 (cand_increment): Likewise. Return a widest_int.
39480 (cand_abs_increment): Likewise.
39481 (replace_mult_candidate): Take a widest_int instead of a double_int.
39482 (replace_unconditional_candidate): Use wide-int interfaces.
39483 (incr_vec_index): Take a widest_int instead of a double_int.
39484 (create_add_on_incoming_edge): Likewise.
39485 (create_phi_basis): Use wide-int interfaces.
39486 (replace_conditional_candidate): Likewise.
39487 (record_increment): Take a widest_int instead of a double_int.
39488 (record_phi_increments): Use wide-int interfaces.
39489 (phi_incr_cost): Take a widest_int instead of a double_int.
39490 (lowest_cost_path): Likewise.
39491 (total_savings): Likewise.
39492 (analyze_increments): Use wide-int interfaces.
39493 (ncd_with_phi): Take a widest_int instead of a double_int.
39494 (ncd_of_cand_and_phis): Likewise.
39495 (nearest_common_dominator_for_cands): Likewise.
39496 (insert_initializers): Use wide-int interfaces.
39497 (all_phi_incrs_profitable): Likewise.
39498 (replace_one_candidate): Likewise.
39499 (replace_profitable_candidates): Likewise.
39500 * godump.c: Include wide-int-print.h.
39501 (go_output_typedef): Use wide-int interfaces.
39502 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
39503 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
39504 (build_loop_iteration_domains): Likewise.
39505 * hooks.h: Include wide-int.h rather than double-int.h.
39506 (hook_bool_dint_dint_uint_bool_true): Delete.
39507 (hook_bool_wint_wint_uint_bool_true): Declare.
39508 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
39509 (hook_bool_wint_wint_uint_bool_true): New.
39510 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
39512 (ubsan_expand_si_overflow_mul_check): Likewise.
39513 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
39514 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
39515 (get_ancestor_addr_info): Likewise.
39516 (ipa_modify_call_arguments): Likewise.
39517 * loop-doloop.c (doloop_modify): Likewise.
39518 (doloop_optimize): Likewise.
39519 * loop-iv.c (iv_number_of_iterations): Likewise.
39520 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
39521 (unroll_loop_constant_iterations): Likewise.
39522 (decide_unroll_runtime_iterations): Likewise.
39523 (unroll_loop_runtime_iterations): Likewise.
39524 (decide_peel_simple): Likewise.
39525 (decide_unroll_stupid): Likewise.
39526 * lto-streamer-in.c (streamer_read_wi): Add.
39527 (input_cfg): Use wide-int interfaces.
39528 (lto_input_tree_1): Likewise.
39529 * lto-streamer-out.c (streamer_write_wi): Add.
39530 (hash_tree): Use wide-int interfaces.
39531 (output_cfg): Likewise.
39532 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
39533 (GTFILES): Add wide-int.h and signop.h.
39534 (TAGS): Look for .cc files too.
39535 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
39536 * optabs.c (expand_subword_shift): Likewise.
39537 (expand_doubleword_shift): Likewise.
39538 (expand_absneg_bit): Likewise.
39539 (expand_copysign_absneg): Likewise.
39540 (expand_copysign_bit): Likewise.
39541 * postreload.c (reload_cse_simplify_set): Likewise.
39542 * predict.c (predict_iv_comparison): Likewise.
39543 * pretty-print.h: Include wide-int-print.h.
39545 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
39546 * print-tree.c: Include wide-int-print.h.
39547 (print_node_brief): Use wide-int interfaces.
39548 (print_node): Likewise.
39549 * read-rtl.c (validate_const_wide_int): New.
39550 (read_rtx_code): Add CONST_WIDE_INT case.
39551 * real.c: Include wide-int.h.
39552 (real_to_integer2): Delete.
39553 (real_to_integer): New function, returning a wide_int.
39554 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39555 (ten_to_ptwo): Update call to real_from_integer.
39556 (real_digit): Likewise.
39557 * real.h: Include signop.h, wide-int.h and insn-modes.h.
39558 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
39559 (REAL_VALUE_TO_INT): Delete.
39560 (real_to_integer): Declare a wide-int form.
39561 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
39562 * recog.c (const_int_operand): Improve comment.
39563 (const_scalar_int_operand): New.
39564 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
39565 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
39566 (split_double): Likewise.
39567 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
39568 (rtx_size): Likewise.
39569 (rtx_alloc_stat_v): New.
39570 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
39571 (cwi_output_hex): New.
39572 (iterative_hash_rtx): Handle CONST_WIDE_INT.
39573 (cwi_check_failed_bounds): New.
39574 * rtl.def (CONST_WIDE_INT): New.
39575 * rtl.h: Include <utility> and wide-int.h.
39576 (struct hwivec_def): New.
39577 (CWI_GET_NUM_ELEM): New.
39578 (CWI_PUT_NUM_ELEM): New.
39579 (struct rtx_def): Add num_elem and hwiv.
39580 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
39581 (CASE_CONST_UNIQUE): Likewise.
39582 (CASE_CONST_ANY): Likewise.
39583 (CONST_SCALAR_INT_P): Likewise.
39584 (CONST_WIDE_INT_P): New.
39586 (HWIVEC_CHECK): New.
39587 (cwi_check_failed_bounds): New.
39589 (HWIVEC_CHECK): New.
39590 (CONST_WIDE_INT_VEC) New.
39591 (CONST_WIDE_INT_NUNITS) New.
39592 (CONST_WIDE_INT_ELT) New.
39593 (rtx_mode_t): New type.
39594 (wi::int_traits <rtx_mode_t>): New.
39596 (wi::min_value): New.
39597 (wi::max_value): New.
39599 (const_wide_int_alloc): New.
39600 (immed_wide_int_const): New.
39601 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
39602 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
39603 * signop.h: New file.
39604 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
39605 (simplify_const_unary_operation): Use wide-int interfaces.
39606 (simplify_binary_operation_1): Likewise.
39607 (simplify_const_binary_operation): Likewise.
39608 (simplify_const_relational_operation): Likewise.
39609 (simplify_immed_subreg): Likewise.
39610 * stmt.c (expand_case): Likewise.
39611 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
39612 signop rather than a bool.
39613 * stor-layout.c (layout_type): Use wide-int interfaces.
39614 (initialize_sizetypes): Update calls to
39615 set_min_and_max_values_for_integral_type.
39616 (set_min_and_max_values_for_integral_type): Take a signop rather
39617 than a bool. Use wide-int interfaces.
39618 (fixup_signed_type): Update accordingly. Remove
39619 HOST_BITS_PER_DOUBLE_INT limit.
39620 (fixup_unsigned_type): Likewise.
39621 * system.h (STATIC_CONSTANT_P): New.
39622 (STATIC_ASSERT): New.
39623 * target.def (can_use_doloop_p): Take widest_ints rather than
39625 * target.h: Include wide-int.h rather than double-int.h.
39626 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
39628 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
39629 rather than INT_CST_LT_UNSIGNED.
39630 (can_use_doloop_if_innermost): Take widest_ints rather than
39632 * tree-affine.c: Include wide-int-print.h.
39633 (double_int_ext_for_comb): Delete.
39634 (wide_int_ext_for_comb): New.
39635 (aff_combination_zero): Use wide-int interfaces.
39636 (aff_combination_const): Take a widest_int instead of a double_int.
39637 (aff_combination_elt): Use wide-int interfaces.
39638 (aff_combination_scale): Take a widest_int instead of a double_int.
39639 (aff_combination_add_elt): Likewise.
39640 (aff_combination_add_cst): Likewise.
39641 (aff_combination_add): Use wide-int interfaces.
39642 (aff_combination_convert): Likewise.
39643 (tree_to_aff_combination): Likewise.
39644 (add_elt_to_tree): Take a widest_int instead of a double_int.
39645 (aff_combination_to_tree): Use wide-int interfaces.
39646 (aff_combination_remove_elt): Likewise.
39647 (aff_combination_add_product): Take a widest_int instead of
39649 (aff_combination_mult): Use wide-int interfaces.
39650 (aff_combination_expand): Likewise.
39651 (double_int_constant_multiple_p): Delete.
39652 (wide_int_constant_multiple_p): New.
39653 (aff_combination_constant_multiple_p): Take a widest_int pointer
39654 instead of a double_int pointer.
39655 (print_aff): Use wide-int interfaces.
39656 (get_inner_reference_aff): Take a widest_int pointer
39657 instead of a double_int pointer.
39658 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
39659 * tree-affine.h: Include wide-int.h.
39660 (struct aff_comb_elt): Change type of coef to widest_int.
39661 (struct affine_tree_combination): Change type of offset to widest_int.
39662 (double_int_ext_for_comb): Delete.
39663 (wide_int_ext_for_comb): New.
39664 (aff_combination_const): Use widest_int instead of double_int.
39665 (aff_combination_scale): Likewise.
39666 (aff_combination_add_elt): Likewise.
39667 (aff_combination_constant_multiple_p): Likewise.
39668 (get_inner_reference_aff): Likewise.
39669 (aff_comb_cannot_overlap_p): Likewise.
39670 (aff_combination_zero_p): Use wide-int interfaces.
39671 * tree.c: Include tree.h.
39672 (init_ttree): Use make_int_cst.
39673 (tree_code_size): Removed code for INTEGER_CST case.
39674 (tree_size): Add INTEGER_CST case.
39675 (make_node_stat): Update comment.
39676 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
39677 (build_int_cst_type): Use wide-int interfaces.
39678 (double_int_to_tree): Likewise.
39679 (double_int_fits_to_tree_p): Delete.
39680 (force_fit_type_double): Delete.
39681 (force_fit_type): New.
39682 (int_cst_hash_hash): Use wide-int interfaces.
39683 (int_cst_hash_eq): Likewise.
39684 (build_int_cst_wide): Delete.
39685 (wide_int_to_tree): New.
39686 (cache_integer_cst): Use wide-int interfaces.
39687 (build_low_bits_mask): Likewise.
39688 (cst_and_fits_in_hwi): Likewise.
39689 (real_value_from_int_cst): Likewise.
39690 (make_int_cst_stat): New.
39691 (integer_zerop): Use wide_int interfaces.
39692 (integer_onep): Likewise.
39693 (integer_all_onesp): Likewise.
39694 (integer_pow2p): Likewise.
39695 (integer_nonzerop): Likewise.
39696 (tree_log2): Likewise.
39697 (tree_floor_log2): Likewise.
39698 (tree_ctz): Likewise.
39699 (int_size_in_bytes): Likewise.
39700 (mem_ref_offset): Return an offset_int rather than a double_int.
39701 (build_type_attribute_qual_variant): Use wide_int interfaces.
39702 (type_hash_eq): Likewise
39703 (tree_int_cst_equal): Likewise.
39704 (tree_int_cst_lt): Delete.
39705 (tree_int_cst_compare): Likewise.
39706 (tree_fits_shwi_p): Use wide_int interfaces.
39707 (tree_fits_uhwi_p): Likewise.
39708 (tree_int_cst_sign_bit): Likewise.
39709 (tree_int_cst_sgn): Likewise.
39710 (tree_int_cst_min_precision): Take a signop rather than a bool.
39711 (simple_cst_equal): Use wide_int interfaces.
39712 (compare_tree_int): Likewise.
39713 (iterative_hash_expr): Likewise.
39714 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
39716 (get_type_static_bounds): Use wide_int interfaces.
39717 (tree_int_cst_elt_check_failed): New.
39718 (build_common_tree_nodes): Reordered to set prec before filling in
39720 (int_cst_value): Check cst_and_fits_in_hwi.
39721 (widest_int_cst_value): Use wide_int interfaces.
39722 (upper_bound_in_type): Likewise.
39723 (lower_bound_in_type): Likewise.
39724 (num_ending_zeros): Likewise.
39725 (drop_tree_overflow): Likewise.
39726 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
39727 (gen_conditions_for_pow_cst_base): Likewise.
39728 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
39729 (group_case_labels_stmt): Use wide-int interfaces.
39730 (verify_gimple_assign_binary): Likewise.
39731 (print_loop): Likewise.
39732 * tree-chrec.c (tree_fold_binomial): Likewise.
39733 * tree-core.h (struct tree_base): Add int_length.
39734 (struct tree_int_cst): Change rep of value.
39735 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
39736 (dr_may_alias_p): Likewise.
39737 (max_stmt_executions_tree): Likewise.
39738 * tree.def (INTEGER_CST): Update comment.
39739 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
39740 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
39741 * tree-dump.c: Include wide-int.h and wide-int-print.h.
39742 (dequeue_and_dump): Use wide-int interfaces.
39743 * tree.h: Include wide-int.h.
39744 (NULL_TREE): Moved to earlier loc in file.
39745 (TREE_INT_CST_ELT_CHECK): New.
39746 (tree_int_cst_elt_check_failed): New.
39748 (TREE_INT_CST): Delete.
39749 (TREE_INT_CST_LOW): Use wide-int interfaces.
39750 (TREE_INT_CST_HIGH): Delete.
39751 (TREE_INT_CST_NUNITS): New.
39752 (TREE_INT_CST_EXT_NUNITS): Likewise.
39753 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
39754 (TREE_INT_CST_ELT): Likewise.
39755 (INT_CST_LT): Delete.
39756 (tree_int_cst_elt_check): New (two forms).
39757 (type_code_size): Update comment.
39758 (make_int_cst_stat, make_int_cst): New.
39759 (tree_to_double_int): Delete.
39760 (double_int_fits_to_tree_p): Delete.
39761 (force_fit_type_double): Delete.
39762 (build_int_cstu): Replace with out-of-line function.
39763 (build_int_cst_wide): Delete.
39764 (tree_int_cst_lt): Define inline.
39765 (tree_int_cst_le): New.
39766 (tree_int_cst_compare): Define inline.
39767 (tree_int_cst_min_precision): Take a signop rather than a bool.
39768 (wi::int_traits <const_tree>): New.
39769 (wi::int_traits <tree>): New.
39770 (wi::extended_tree): New.
39771 (wi::int_traits <wi::extended_tree>): New.
39772 (wi::to_widest): New.
39773 (wi::to_offset): New.
39774 (wi::fits_to_tree_p): New.
39775 (wi::min_value): New.
39776 (wi::max_value): New.
39777 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
39778 (copy_tree_body_r): Likewise.
39779 * tree-object-size.c (compute_object_offset): Likewise.
39780 (addr_object_size): Likewise.
39781 * tree-predcom.c: Include wide-int-print.h.
39782 (struct dref_d): Change type of offset to widest_int.
39783 (dump_dref): Call wide-int printer.
39784 (aff_combination_dr_offset): Use wide-int interfaces.
39785 (determine_offset): Take a widest_int pointer rather than a
39786 double_int pointer.
39787 (split_data_refs_to_components): Use wide-int interfaces.
39788 (suitable_component_p): Likewise.
39789 (order_drefs): Likewise.
39790 (add_ref_to_chain): Likewise.
39791 (valid_initializer_p): Likewise.
39792 (determine_roots_comp): Likewise.
39793 * tree-pretty-print.c: Include wide-int-print.h.
39794 (dump_generic_node): Use wide-int interfaces.
39795 * tree-sra.c (sra_ipa_modify_expr): Likewise.
39796 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
39797 (move_fixed_address_to_symbol): Likewise.
39798 (move_hint_to_base): Likewise.
39799 (move_pointer_to_base): Likewise.
39800 (move_variant_to_index): Likewise.
39801 (most_expensive_mult_to_index): Likewise.
39802 (addr_to_parts): Likewise.
39803 (copy_ref_info): Likewise.
39804 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
39805 (indirect_refs_may_alias_p): Likewise.
39806 (stmt_kills_ref_p_1): Likewise.
39807 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
39808 * tree-ssa-ccp.c: Update comment at top of file. Include
39810 (struct prop_value_d): Change type of mask to widest_int.
39811 (extend_mask): New function.
39812 (dump_lattice_value): Use wide-int interfaces.
39813 (get_default_value): Likewise.
39814 (set_constant_value): Likewise.
39815 (set_value_varying): Likewise.
39816 (valid_lattice_transition): Likewise.
39817 (set_lattice_value): Likewise.
39818 (value_to_double_int): Delete.
39819 (value_to_wide_int): New.
39820 (get_value_from_alignment): Use wide-int interfaces.
39821 (get_value_for_expr): Likewise.
39822 (do_dbg_cnt): Likewise.
39823 (ccp_finalize): Likewise.
39824 (ccp_lattice_meet): Likewise.
39825 (bit_value_unop_1): Use widest_ints rather than double_ints.
39826 (bit_value_binop_1): Likewise.
39827 (bit_value_unop): Use wide-int interfaces.
39828 (bit_value_binop): Likewise.
39829 (bit_value_assume_aligned): Likewise.
39830 (evaluate_stmt): Likewise.
39831 (ccp_fold_stmt): Likewise.
39832 (visit_cond_stmt): Likewise.
39833 (ccp_visit_stmt): Likewise.
39834 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
39835 (constant_pointer_difference): Likewise.
39836 (associate_pointerplus): Likewise.
39837 (combine_conversions): Likewise.
39838 * tree-ssa-loop.h: Include wide-int.h.
39839 (struct tree_niter_desc): Change type of max to widest_int.
39840 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
39841 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
39842 (remove_redundant_iv_tests): Likewise.
39843 (canonicalize_loop_induction_variables): Likewise.
39844 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
39845 (constant_multiple_of): Take a widest_int pointer instead of
39846 a double_int pointer.
39847 (get_computation_aff): Use wide-int interfaces.
39848 (ptr_difference_cost): Likewise.
39849 (difference_cost): Likewise.
39850 (get_loop_invariant_expr_id): Likewise.
39851 (get_computation_cost_at): Likewise.
39852 (iv_elimination_compare_lt): Likewise.
39853 (may_eliminate_iv): Likewise.
39854 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
39855 instead of double_int.
39856 (max_loop_iterations): Likewise.
39857 (max_stmt_executions): Likewise.
39858 (estimated_stmt_executions): Likewise.
39859 * tree-ssa-loop-niter.c: Include wide-int-print.h.
39860 (split_to_var_and_offset): Use wide-int interfaces.
39861 (determine_value_range): Likewise.
39862 (bound_difference_of_offsetted_base): Likewise.
39863 (bounds_add): Take a widest_int instead of a double_int.
39864 (number_of_iterations_ne_max): Use wide-int interfaces.
39865 (number_of_iterations_ne): Likewise.
39866 (number_of_iterations_lt_to_ne): Likewise.
39867 (assert_loop_rolls_lt): Likewise.
39868 (number_of_iterations_lt): Likewise.
39869 (number_of_iterations_le): Likewise.
39870 (number_of_iterations_cond): Likewise.
39871 (number_of_iterations_exit): Likewise.
39872 (finite_loop_p): Likewise.
39873 (derive_constant_upper_bound_assign): Likewise.
39874 (derive_constant_upper_bound): Return a widest_int.
39875 (derive_constant_upper_bound_ops): Likewise.
39876 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
39877 (record_estimate): Take a widest_int rather than a double_int.
39878 (record_nonwrapping_iv): Use wide-int interfaces.
39879 (double_int_cmp): Delete.
39880 (wide_int_cmp): New.
39881 (bound_index): Take a widest_int rather than a double_int.
39882 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
39883 (maybe_lower_iteration_bound): Likewise.
39884 (estimate_numbers_of_iterations_loop): Likewise.
39885 (estimated_loop_iterations): Take a widest_int pointer than than
39886 a double_int pointer.
39887 (estimated_loop_iterations_int): Use wide-int interfaces.
39888 (max_loop_iterations): Take a widest_int pointer than than
39889 a double_int pointer.
39890 (max_loop_iterations_int): Use wide-int interfaces.
39891 (max_stmt_executions): Take a widest_int pointer than than
39892 a double_int pointer.
39893 (estimated_stmt_executions): Likewise.
39894 (n_of_executions_at_most): Use wide-int interfaces.
39895 (scev_probably_wraps_p): Likewise.
39896 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
39897 to real_to_integer.
39898 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
39900 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
39901 double_ints. Adjust for trailing_wide_ints <3> representation.
39902 (set_nonzero_bits): Likewise.
39903 (get_range_info): Return wide_ints rather than double_ints.
39904 Adjust for trailing_wide_ints <3> representation.
39905 (get_nonzero_bits): Likewise.
39906 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
39908 * tree-ssanames.h (struct range_info_def): Replace min, max and
39909 nonzero_bits with a trailing_wide_ints <3>.
39910 (set_range_info): Use wide_int_refs rather than double_ints.
39911 (set_nonzero_bits): Likewise.
39912 (get_range_info): Return wide_ints rather than double_ints.
39913 (get_nonzero_bits): Likewise.
39914 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
39915 * tree-ssa-pre.c (phi_translate_1): Likewise.
39916 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
39917 (acceptable_pow_call): Likewise.
39918 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
39920 (vn_reference_fold_indirect): Likewise.
39921 (vn_reference_maybe_forwprop_address): Likewise.
39922 (valueize_refs_1): Likewise.
39923 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
39924 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
39925 tree_int_cst_lt and tree_int_cst_le.
39926 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
39928 (streamer_alloc_tree): Likewise.
39929 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
39930 (streamer_write_tree_header): Likewise.
39931 (streamer_write_integer_cst): Likewise.
39932 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
39933 (build_constructors): Likewise.
39934 (array_value_type): Likewise.
39935 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
39936 (vect_check_gather): Likewise.
39937 * tree-vect-generic.c (build_replicated_const): Likewise.
39938 (expand_vector_divmod): Likewise.
39939 * tree-vect-loop.c (vect_transform_loop): Likewise.
39940 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
39941 (vect_do_peeling_for_alignment): Likewise.
39942 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
39943 * tree-vrp.c: Include wide-int.h.
39944 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
39945 (extract_range_from_assert): Use wide-int interfaces.
39946 (vrp_int_const_binop): Likewise.
39947 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
39948 double_int pointers.
39949 (ranges_from_anti_range): Use wide-int interfaces.
39950 (quad_int_cmp): Delete.
39951 (quad_int_pair_sort): Likewise.
39952 (extract_range_from_binary_expr_1): Use wide-int interfaces.
39953 (extract_range_from_unary_expr_1): Likewise.
39954 (adjust_range_with_scev): Likewise.
39955 (masked_increment): Take and return wide_ints rather than double_ints.
39956 (register_edge_assert_for_2): Use wide-int interfaces.
39957 (check_array_ref): Likewise.
39958 (search_for_addr_array): Likewise.
39959 (maybe_set_nonzero_bits): Likewise.
39960 (union_ranges): Pass an integer of the correct type instead of
39961 using integer_one_node.
39962 (intersect_ranges): Likewise.
39963 (simplify_truth_ops_using_ranges): Likewise.
39964 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
39965 (range_fits_type_p): Likewise.
39966 (simplify_cond_using_ranges): Likewise. Take a signop rather than
39968 (simplify_conversion_using_ranges): Use wide-int interfaces.
39969 (simplify_float_conversion_using_ranges): Likewise.
39970 (vrp_finalize): Likewise.
39971 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
39972 (gimple_stringops_transform): Likewise.
39973 * varasm.c (decode_addr_const): Likewise.
39974 (const_hash_1): Likewise.
39975 (const_rtx_hash_1): Likewise
39976 (output_constant): Likewise.
39977 (array_size_for_constructor): Likewise.
39978 (output_constructor_regular_field): Likewise.
39979 (output_constructor_bitfield): Likewise.
39980 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
39981 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
39983 * gencheck.c: Define BITS_PER_UNIT.
39984 * wide-int.cc: New.
39986 * wide-int-print.cc: New.
39987 * wide-int-print.h: New.
39989 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39991 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
39993 2014-05-06 Richard Biener <rguenther@suse.de>
39995 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
39996 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
39997 (TODO_verify_all): Adjust.
39998 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
39999 TODO_verify_stmts and TODO_verify_rtl_sharing.
40000 * bb-reorder.c: Likewise.
40001 * cfgexpand.c: Likewise.
40002 * cprop.c: Likewise.
40004 * function.c: Likewise.
40005 * fwprop.c: Likewise.
40006 * gcse.c: Likewise.
40007 * gimple-ssa-isolate-paths.c: Likewise.
40008 * gimple-ssa-strength-reduction.c: Likewise.
40009 * ipa-split.c: Likewise.
40010 * loop-init.c: Likewise.
40011 * loop-unroll.c: Likewise.
40012 * lower-subreg.c: Likewise.
40013 * modulo-sched.c: Likewise.
40014 * postreload-gcse.c: Likewise.
40015 * predict.c: Likewise.
40016 * recog.c: Likewise.
40017 * sched-rgn.c: Likewise.
40018 * store-motion.c: Likewise.
40019 * tracer.c: Likewise.
40020 * trans-mem.c: Likewise.
40021 * tree-call-cdce.c: Likewise.
40022 * tree-cfg.c: Likewise.
40023 * tree-cfgcleanup.c: Likewise.
40024 * tree-complex.c: Likewise.
40025 * tree-eh.c: Likewise.
40026 * tree-emutls.c: Likewise.
40027 * tree-if-conv.c: Likewise.
40028 * tree-into-ssa.c: Likewise.
40029 * tree-loop-distribution.c: Likewise.
40030 * tree-object-size.c: Likewise.
40031 * tree-parloops.c: Likewise.
40032 * tree-pass.h: Likewise.
40033 * tree-sra.c: Likewise.
40034 * tree-ssa-ccp.c: Likewise.
40035 * tree-ssa-copy.c: Likewise.
40036 * tree-ssa-copyrename.c: Likewise.
40037 * tree-ssa-dce.c: Likewise.
40038 * tree-ssa-dom.c: Likewise.
40039 * tree-ssa-dse.c: Likewise.
40040 * tree-ssa-forwprop.c: Likewise.
40041 * tree-ssa-ifcombine.c: Likewise.
40042 * tree-ssa-loop-ch.c: Likewise.
40043 * tree-ssa-loop-ivcanon.c: Likewise.
40044 * tree-ssa-loop.c: Likewise.
40045 * tree-ssa-math-opts.c: Likewise.
40046 * tree-ssa-phiopt.c: Likewise.
40047 * tree-ssa-phiprop.c: Likewise.
40048 * tree-ssa-pre.c: Likewise.
40049 * tree-ssa-reassoc.c: Likewise.
40050 * tree-ssa-sink.c: Likewise.
40051 * tree-ssa-strlen.c: Likewise.
40052 * tree-ssa-tail-merge.c: Likewise.
40053 * tree-ssa-uncprop.c: Likewise.
40054 * tree-switch-conversion.c: Likewise.
40055 * tree-tailcall.c: Likewise.
40056 * tree-vect-generic.c: Likewise.
40057 * tree-vectorizer.c: Likewise.
40058 * tree-vrp.c: Likewise.
40059 * tsan.c: Likewise.
40060 * var-tracking.c: Likewise.
40061 * bt-load.c: Likewise.
40062 * cfgcleanup.c: Likewise.
40063 * combine-stack-adj.c: Likewise.
40064 * combine.c: Likewise.
40065 * compare-elim.c: Likewise.
40066 * config/epiphany/resolve-sw-modes.c: Likewise.
40067 * config/i386/i386.c: Likewise.
40068 * config/mips/mips.c: Likewise.
40069 * config/s390/s390.c: Likewise.
40070 * config/sh/sh_treg_combine.cc: Likewise.
40071 * config/sparc/sparc.c: Likewise.
40074 * final.c: Likewise.
40075 * ifcvt.c: Likewise.
40076 * mode-switching.c: Likewise.
40077 * passes.c: Likewise.
40078 * postreload.c: Likewise.
40080 * reg-stack.c: Likewise.
40081 * regcprop.c: Likewise.
40082 * regrename.c: Likewise.
40085 2014-05-06 Richard Biener <rguenther@suse.de>
40087 PR middle-end/61070
40088 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
40089 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
40091 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
40094 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
40096 2014-05-05 Radovan Obradovic <robradovic@mips.com>
40097 Tom de Vries <tom@codesourcery.com>
40099 * target.def (call_fusage_contains_non_callee_clobbers): New
40101 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
40103 (@node Miscellaneous Register Hooks): New node.
40104 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
40105 * doc/tm.texi: Regenerate.
40107 2014-05-05 Marek Polacek <polacek@redhat.com>
40110 * opts.c (common_handle_option): Call error_at instead of warning_at.
40112 2014-05-05 Richard Biener <rguenther@suse.de>
40114 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
40115 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
40116 under the TODO_verify_il umbrella.
40118 2014-05-05 Richard Biener <rguenther@suse.de>
40120 * passes.c (execute_function_todo): Move TODO_verify_flow under
40121 the TODO_verify_ul umbrella.
40123 2014-05-05 Richard Biener <rguenther@suse.de>
40125 PR middle-end/61010
40126 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
40127 X & CST away from a CST that is the mask of a mode.
40129 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40131 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
40132 int argument to enum machine_mode.
40133 (picochip_class_max_nregs): Ditto.
40134 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
40135 (picochip_class_max_nregs): Ditto.
40137 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40139 * target.def: Add new target hook.
40140 * doc/tm.texi: Regenerate.
40141 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
40142 * targhooks.c (default_keep_leaf_when_profiled): New function.
40144 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
40145 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
40147 2014-05-05 Bin Cheng <bin.cheng@arm.com>
40149 PR tree-optimization/60363
40150 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
40151 (copy_phi_args): New parameters. Call get_value_locus_in_path.
40152 (update_destination_phis): New parameter.
40153 (create_edge_and_update_destination_phis): Ditto.
40154 (ssa_fix_duplicate_block_edges): Pass new arguments.
40155 (thread_single_edge): Ditto.
40157 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
40159 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
40160 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
40161 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
40162 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
40163 Use RS6000_BTM_HARD_FLOAT.
40164 (BU_MISC_2): Likewise.
40165 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
40166 RS6000_BTM_HARD_FLOAT.
40167 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
40168 is explicitly used.
40169 (rs6000_invalid_builtin): Add hard floating builtin support.
40170 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
40171 hard float builtins.
40172 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
40174 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40176 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
40177 Add missing function* argument.
40179 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40181 * lra-constraints.c (valid_address_p): Move earlier in file.
40182 Add a constraint argument to the address_info version.
40183 (satisfies_memory_constraint_p): New function.
40184 (satisfies_address_constraint_p): Likewise.
40185 (process_alt_operands, curr_insn_transform): Use them.
40186 (process_address): Pass the constraint to valid_address_p when
40187 checking address operands.
40189 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
40191 * config/mips/mips.c (mips_isa_rev): New variable.
40192 (mips_set_architecture): Set it.
40193 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
40195 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
40196 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
40197 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
40198 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
40199 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
40200 conditions in terms of mips_isa_rev.
40201 (mips_isa_rev): Declare.
40203 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40205 * config/sh/sh-mem.cc: Use tabs instead of spaces.
40206 (prob_unlikely, prob_likely): Make variables const.
40208 2014-05-03 Denis Chertykov <chertykov@gmail.com>
40210 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
40212 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40214 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
40216 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40218 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
40219 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
40220 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
40222 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
40223 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
40225 Replace usage of ROUND_REG with sh_round_reg.
40226 Use CEIL instead of ROUND_ADVANCE.
40228 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
40231 * config/sh/sh.c: Include stdlib headers before everything else.
40233 2014-05-02 Jakub Jelinek <jakub@redhat.com>
40235 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
40236 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
40237 (gimplify_adjust_omp_clauses): Simd region is never
40238 directly nested in combined parallel. Instead, for linear
40239 with copyin/copyout, if in combined for simd loop, make decl
40240 firstprivate/lastprivate on OMP_FOR.
40241 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
40242 expand_omp_for_static_chunk): When setting endvar, also set
40243 fd->loop.v to the same value.
40245 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40247 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
40249 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
40251 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
40254 2014-05-02 Marek Polacek <polacek@redhat.com>
40256 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
40258 2014-05-02 Kito Cheng <kito@0xlab.org>
40260 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
40261 to a C expression marco.
40262 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
40263 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
40264 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
40265 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
40266 HONOR_REG_ALLOC_ORDER.
40267 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
40269 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40271 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
40273 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40275 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
40277 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
40279 * tree-if-conv.c (is_cond_scalar_reduction): New function.
40280 (convert_scalar_cond_reduction): Likewise.
40281 (predicate_scalar_phi): Add recognition and transformation
40282 of simple conditioanl reduction to be vectorizable.
40284 2014-05-01 Marek Polacek <polacek@redhat.com>
40287 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
40289 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
40291 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
40292 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
40293 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
40294 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
40295 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
40296 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
40297 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
40298 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
40300 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
40302 * config/arc/arc.opt (mlra): Move comment above option name
40303 to avoid mis-parsing as language options.
40305 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40307 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
40308 * config/sol2.h: ... here.
40309 * config/sol2-10.h: Remove.
40311 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
40312 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
40313 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
40314 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
40315 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
40316 * config/sol2.h: ... here.
40317 (SECTION_NAME_FORMAT): Don't redefine.
40318 (STARTFILE_ARCH32_SPEC): Rename to ...
40319 (STARTFILE_ARCH_SPEC): ... this.
40320 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
40321 * config/sparc/sol2.h: ... here.
40322 (SECTION_NAME_FORMAT): Don't undef.
40323 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
40324 (SUBTARGET_EXTRA_SPECS): Remove.
40325 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
40327 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
40328 (MD_STARTFILE_PREFIX): Remove.
40329 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
40330 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
40331 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
40332 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
40333 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
40334 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
40335 * config/i386/sol2.h: ... here.
40336 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
40337 * config/i386/sol2-bi.h: Remove.
40338 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
40339 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
40341 * config/i386/t-sol2-64: Rename to ...
40342 * config/i386/t-sol2: ... this.
40343 * config/sparc/t-sol2-64: Rename to ...
40344 * config/sparc/t-sol2: ... this.
40346 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
40347 sol2_tm_file_head, sol2_tm_file_tail.
40348 Include ${cpu_type}/sol2.h before sol2.h.
40350 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
40351 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
40352 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
40353 Reflect i386/t-sol2-64 renaming.
40354 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
40355 Reflect sparc/t-sol2-64 renaming.
40357 2014-04-30 Richard Biener <rguenther@suse.de>
40359 * passes.c (execute_function_todo): Move TODO_verify_stmts
40360 and TODO_verify_ssa under the TODO_verify_il umbrella.
40361 * tree-ssa.h (verify_ssa): Adjust prototype.
40362 * tree-ssa.c (verify_ssa): Add parameter to tell whether
40363 we should verify SSA operands.
40364 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
40365 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
40366 whether we should verify whether not throwing stmts have EH info.
40367 * graphite-scop-detection.c (create_sese_edges): Adjust.
40368 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
40369 * tree-eh.c (lower_try_finally_switch): Do not add the
40370 default case label twice.
40372 2014-04-30 Marek Polacek <polacek@redhat.com>
40374 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
40375 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
40376 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
40377 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
40379 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
40381 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
40382 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
40383 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
40384 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
40385 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
40386 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
40387 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
40388 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
40390 2014-04-29 David Malcolm <dmalcolm@redhat.com>
40392 * tree-cfg.c (dump_function_to_file): Dump the return type of
40393 functions, in a line to itself before the function body, mimicking
40394 the layout of a C function.
40396 2014-04-29 Jakub Jelinek <jakub@redhat.com>
40398 PR tree-optimization/60971
40399 * tree-tailcall.c (process_assignment): Reject conversions which
40402 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
40404 * calls.c (initialize_argument_information): Always treat
40405 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
40406 (expand_call): Likewise.
40407 (emit_library_call_calue_1): Likewise.
40408 * expr.c (PUSH_ARGS_REVERSED): Do not define.
40409 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
40412 2014-04-29 Nick Clifton <nickc@redhat.com>
40414 * config/msp430/msp430.md (umulsidi): Fix typo.
40415 (mulhisi3): Enable even inside interrupt handlers.
40416 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
40417 bigger return address pushed in large mode.
40419 2014-04-29 Nick Clifton <nickc@redhat.com>
40421 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
40422 (arc_init_reg_tables): Use a machine_mode enum to iterate over
40424 * config/m32r/m32r.c (init_reg_tables): Likewise.
40425 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
40426 enum to hold the modes.
40428 2014-04-29 Richard Biener <rguenther@suse.de>
40430 * dominance.c (free_dominance_info): Add overload with
40431 function parameter.
40432 (dom_info_state): Likewise.
40433 (dom_info_available_p): Likewise.
40434 * basic-block.h (free_dominance_info, dom_info_state,
40435 dom_info_available_p): Declare overloads.
40436 * passes.c (execute_function_todo): Verify that verifiers
40437 don't change dominator info state. Drop dominator info
40438 for IPA pass invocations.
40439 * cgraph.c (release_function_body): Restore asserts that
40440 dominator information is released.
40442 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
40444 * doc/invoke.texi: Fix typo.
40445 * tree-vrp.c: Fix typos.
40446 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
40448 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40450 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
40452 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40454 * config/aarch64/aarch64-builtins.c
40455 (aarch64_types_storestruct_lane_qualifiers): New.
40456 (TYPES_STORESTRUCT_LANE): Likewise.
40457 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
40458 (st3_lane): Likewise.
40459 (st4_lane): Likewise.
40460 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
40461 (vec_store_lanesci_lane<mode>): Likewise.
40462 (vec_store_lanesxi_lane<mode>): Likewise.
40463 (aarch64_st2_lane<VQ:mode>): Likewise.
40464 (aarch64_st3_lane<VQ:mode>): Likewise.
40465 (aarch64_st4_lane<VQ:mode>): Likewise.
40466 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
40467 * config/aarch64/arm_neon.h
40468 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
40469 use new macro arguments.
40470 (__ST3_LANE_FUNC): Likewise.
40471 (__ST4_LANE_FUNC): Likewise.
40472 * config/aarch64/iterators.md (V_TWO_ELEM): New.
40473 (V_THREE_ELEM): Likewise.
40474 (V_FOUR_ELEM): Likewise.
40476 2014-04-28 David Malcolm <dmalcolm@redhat.com>
40478 * doc/gimple.texi: Replace the description of the now-defunct
40479 union gimple_statement_d with a diagram showing the
40480 gimple_statement_base class hierarchy and its relationships to
40481 the GSS_ and GIMPLE_ enums.
40483 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
40485 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
40486 * config/aarch64/aarch64.c
40487 (aarch64_cannot_change_mode_class): Weaken conditions.
40488 (aarch64_modes_tieable_p): New.
40489 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
40491 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
40493 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40494 (loadsync_<mode>): Change mode.
40495 (load_quadpti, store_quadpti): New.
40496 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40497 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40499 2014-04-28 Martin Jambor <mjambor@suse.cz>
40501 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
40502 same alias type as the original statement.
40503 (subreplacement_assignment_data): New type.
40504 (handle_unscalarized_data_in_subtree): New type of parameter,
40505 generate new memory accesses with same alias type as the original
40507 (load_assign_lhs_subreplacements): Likewise.
40508 (sra_modify_constructor_assign): Generate new memory accesses with
40509 same alias type as the original statement.
40511 2014-04-28 Richard Biener <rguenther@suse.de>
40513 * tree-pass.h (TODO_verify_il): Define.
40514 (TODO_verify_all): Complete properly.
40515 * passes.c (execute_function_todo): Move existing loop-closed
40516 SSA verification under TODO_verify_il.
40517 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
40518 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
40519 Fix tree sharing issue.
40521 2014-04-28 Richard Biener <rguenther@suse.de>
40523 PR middle-end/60092
40524 * builtins.def (DEF_C11_BUILTIN): Add.
40525 (BUILT_IN_ALIGNED_ALLOC): Likewise.
40526 * coretypes.h (enum function_class): Add function_c11_misc.
40527 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
40528 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
40529 (call_may_clobber_ref_p_1): Likewise.
40530 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
40531 (mark_all_reaching_defs_necessary_1): Likewise.
40532 (propagate_necessity): Likewise.
40533 (eliminate_unnecessary_stmts): Likewise.
40534 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
40536 2014-04-28 Richard Biener <rguenther@suse.de>
40538 * tree-vrp.c (vrp_var_may_overflow): Remove.
40539 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
40540 with overflow immediately bump to one before that value and
40541 let iteration figure out overflow status.
40543 2014-04-28 Richard Biener <rguenther@suse.de>
40545 * configure.ac: Do valgrind header checks unconditionally.
40546 Add --enable-valgrind-annotations.
40547 * system.h: Guard valgrind header inclusion with
40548 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
40549 * alloc-pool.c (pool_alloc, pool_free): Use
40550 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
40551 to guard possibly dead code.
40552 * config.in: Regenerated.
40553 * configure: Likewise.
40555 2014-04-28 Jeff Law <law@redhat.com>
40557 PR tree-optimization/60902
40558 * tree-ssa-threadedge.c
40559 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
40560 over real defs when invalidating outputs from statements that do not
40561 produce useful outputs for threading.
40563 2014-04-28 Richard Biener <rguenther@suse.de>
40565 PR tree-optimization/60979
40566 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
40567 SCOPs that end in a block with a successor with abnormal
40570 2014-04-28 Richard Biener <rguenther@suse.de>
40572 * tree-pass.h (execute_pass_list): Adjust prototype.
40573 * passes.c (pass_manager::execute_early_local_passes): Adjust.
40574 (do_per_function): Change callback signature, push all actual
40575 work to the callbals.
40576 (do_per_function_toporder): Likewise.
40577 (execute_function_dump): Adjust.
40578 (execute_function_todo): Likewise.
40579 (clear_last_verified): Likewise.
40580 (verify_curr_properties): Likewise.
40581 (update_properties_after_pass): Likewise.
40582 (execute_pass_list_1): Split out from ...
40583 (execute_pass_list): ... here. Adjust.
40584 (execute_ipa_pass_list): Likewise.
40585 * cgraphunit.c (cgraph_add_new_function): Adjust.
40586 (analyze_function): Likewise.
40587 (expand_function): Likewise.
40588 * cgraph.c (release_function_body): Free dominance info
40589 here instead of asserting it was magically freed elsewhere.
40591 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
40593 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
40594 * configure: Regenerate.
40595 * config/sparc/sparc.opt (muser-mode): New option.
40596 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
40598 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
40599 * doc/invoke.texi (SPARC options): Document -muser-mode.
40601 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
40603 * cselib.c (find_slot_memmode): Delete.
40604 (cselib_hasher): Change compare_type to a struct.
40605 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
40607 (preserve_constants_and_equivs): Adjust for new compare_type.
40608 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
40609 (wrap_constant): Delete.
40610 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
40612 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
40614 * doc/install.texi (Building with profile feedback): Remove
40617 2014-04-26 Tom de Vries <tom@codesourcery.com>
40619 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
40622 2014-04-25 Cary Coutant <ccoutant@google.com>
40625 * dwarf2out.c (should_move_die_to_comdat): A type definition
40626 can contain a subprogram definition, but don't move it to a
40628 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
40629 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
40631 (clone_tree_hash): Rename to...
40632 (clone_tree_partial): ...this; change callers. Copy
40633 DW_TAG_subprogram DIEs as declarations.
40634 (copy_decls_walk): Don't copy children of a declaration into a
40637 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
40640 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
40643 2014-04-25 Jiong Wang <jiong.wang@arm.com>
40645 * config/arm/predicates.md (call_insn_operand): Add long_call check.
40646 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
40648 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
40651 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40653 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
40655 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40657 PR tree-optimization/60930
40658 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
40659 creating a multiply candidate by folding two constant
40660 multiplicands when the result overflows.
40662 2014-04-25 Jakub Jelinek <jakub@redhat.com>
40664 PR tree-optimization/60960
40665 * tree-vect-generic.c (expand_vector_operation): Only call
40666 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
40668 2014-04-25 Tom de Vries <tom@codesourcery.com>
40670 * expr.c (clobber_reg_mode): New function.
40671 * expr.h (clobber_reg): New function.
40673 2014-04-25 Tom de Vries <tom@codesourcery.com>
40675 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
40678 2014-04-25 Radovan Obradovic <robradovic@mips.com>
40679 Tom de Vries <tom@codesourcery.com>
40681 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
40683 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
40684 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
40685 new argument to find_all_hard_reg_sets call.
40687 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40689 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
40690 Use HOST_WIDE_INT_C for mask literal.
40691 (aarch_rev16_shleft_mask_imm_p): Likewise.
40693 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
40696 * config/sparc/sparc.md (ashlsi3_extend): Delete.
40698 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
40700 PR preprocessor/56540
40701 * config/i386/i386-c.c (ix86_target_macros): Define
40702 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
40704 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40706 * configure.ac (tga_func): Remove.
40707 (LIB_TLS_SPEC): Remove.
40708 * configure: Regenerate.
40709 * config.in: Regenerate.
40710 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
40712 2014-04-25 Richard Biener <rguenther@suse.de>
40715 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
40716 call stmt use/clobber sets during stmt walk instead of
40717 walking the possibly incomplete set of caller edges.
40719 2014-04-25 Richard Biener <rguenther@suse.de>
40722 * passes.c (apply_ipa_transforms): Inline into only caller ...
40723 (execute_one_pass): ... here. Properly bring in function
40724 bodies for nodes we want to apply IPA transforms to.
40726 2014-04-24 Cong Hou <congh@google.com>
40728 PR tree-optimization/60896
40729 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
40730 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
40731 (vect_mark_pattern_stmts): Set the def type of all statements in
40732 PATTERN_DEF_SEQ as vect_internal_def.
40734 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
40736 * doc/extend.texi (PowerPC Built-in Functions): Document new
40737 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
40738 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
40740 * config/rs6000/predicates.md (const_0_to_3_operand): New
40741 predicate to match 0..3 integer constants.
40743 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
40744 to support adding miscellaneous builtin functions.
40745 (BU_DFP_MISC_2): Likewise.
40746 (BU_P7_MISC_1): Likewise.
40747 (BU_P7_MISC_2): Likewise.
40748 (BU_P8V_MISC_3): Likewise.
40749 (BU_MISC_1): Likewise.
40750 (BU_MISC_2): Likewise.
40751 (DIVWE): Add extended divide builtin functions.
40752 (DIVWEO): Likewise.
40753 (DIVWEU): Likewise.
40754 (DIVWEUO): Likewise.
40756 (DIVDEO): Likewise.
40757 (DIVDEU): Likewise.
40758 (DIVDEUO): Likewise.
40759 (DXEX): Add decimal floating-point builtin functions.
40761 (DDEDPD): Likewise.
40762 (DDEDPDQ): Likewise.
40763 (DENBCD): Likewise.
40764 (DENBCDQ): Likewise.
40768 (DSCLIQ): Likewise.
40770 (DSCRIQ): Likewise.
40771 (CDTBCD): Add new BCD builtin functions.
40772 (CBCDTD): Likewise.
40773 (ADDG6S): Likewise.
40774 (BCDADD): Likewise.
40775 (BCDADD_LT): Likewise.
40776 (BCDADD_EQ): Likewise.
40777 (BCDADD_GT): Likewise.
40778 (BCDADD_OV): Likewise.
40779 (BCDSUB): Likewise.
40780 (BCDSUB_LT): Likewise.
40781 (BCDSUB_EQ): Likewise.
40782 (BCDSUB_GT): Likewise.
40783 (BCDSUB_OV): Likewise.
40784 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
40785 (UNPACK_TD): Likewise.
40786 (PACK_TF): Likewise.
40787 (UNPACK_TF): Likewise.
40788 (UNPACK_TF_0): Likewise.
40789 (UNPACK_TF_1): Likewise.
40790 (PACK_V1TI): Likewise.
40791 (UNPACK_V1TI): Likewise.
40793 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
40794 support for decimal floating point builtin functions.
40795 (rs6000_expand_ternop_builtin): Add checks for the new builtin
40796 functions that take constant arguments.
40797 (rs6000_invalid_builtin): Add decimal floating point builtin support.
40798 (rs6000_init_builtins): Setup long double, _Decimal64, and
40799 _Decimal128 types for new builtin functions.
40800 (builtin_function_type): Set the unsigned flags appropriately for
40801 the new builtin functions.
40802 (rs6000_opt_masks): Add support for decimal floating point builtin
40805 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
40806 floating point builtin functions.
40807 (RS6000_BTM_COMMON): Likewise.
40808 (RS6000_BTI_long_double): Likewise.
40809 (RS6000_BTI_dfloat64): Likewise.
40810 (RS6000_BTI_dfloat128): Likewise.
40811 (long_double_type_internal_node): Likewise.
40812 (dfloat64_type_internal_node): Likewise.
40813 (dfloat128_type_internal_node): Likewise.
40815 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
40816 2.07 bcd arithmetic instructions.
40817 (UNSPEC_BCDSUB): Likewise.
40818 (UNSPEC_BCD_OVERFLOW): Likewise.
40819 (UNSPEC_BCD_ADD_SUB): Likewise.
40820 (bcd_add_sub): Likewise.
40821 (BCD_TEST): Likewise.
40822 (bcd<bcd_add_sub>): Likewise.
40823 (bcd<bcd_add_sub>_test): Likewise.
40824 (bcd<bcd_add_sub>_test2): Likewise.
40825 (bcd<bcd_add_sub>_<code>): Likewise.
40826 (peephole2 for combined bcd ops): Likewise.
40828 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
40829 decimal floating point builtin functions.
40830 (UNSPEC_DENBCD): Likewise.
40831 (UNSPEC_DXEX): Likewise.
40832 (UNSPEC_DIEX): Likewise.
40833 (UNSPEC_DSCLI): Likewise.
40834 (UNSPEC_DSCRI): Likewise.
40835 (D64_D128): Likewise.
40836 (dfp_suffix): Likewise.
40837 (dfp_ddedpd_<mode>): Likewise.
40838 (dfp_denbcd_<mode>): Likewise.
40839 (dfp_dxex_<mode>): Likewise.
40840 (dfp_diex_<mode>): Likewise.
40841 (dfp_dscli_<mode>): Likewise.
40842 (dfp_dscri_<mode>): Likewise.
40844 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
40846 (UNSPEC_CDTBCD): Likewise.
40847 (UNSPEC_CBCDTD): Likewise.
40848 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
40849 (UNSPEC_DIVEO): Likewise.
40850 (UNSPEC_DIVEU): Likewise.
40851 (UNSPEC_DIVEUO): Likewise.
40852 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
40853 pack/unpack 128-bit types.
40854 (UNSPEC_PACK_128BIT): Likewise.
40855 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
40856 (udiv<mode>3): Use idiv_ldiv mode attribute.
40857 (div<mode>3): Likewise.
40858 (addg6s): Add new BCD builtin functions.
40859 (cdtbcd): Likewise.
40860 (cbcdtd): Likewise.
40861 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
40862 (div_extend): Likewise.
40863 (div<div_extend>_<mode>"): Likewise.
40864 (FP128_64): Add support for new builtin functions to pack/unpack
40866 (unpack<mode>): Likewise.
40867 (unpacktf_0): Likewise.
40868 (unpacktf_1): Likewise.
40869 (unpack<mode>_dm): Likewise.
40870 (unpack<mode>_nodm): Likewise.
40871 (pack<mode>): Likewise.
40872 (unpackv1ti): Likewise.
40873 (packv1ti): Likewise.
40875 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
40877 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
40880 2014-04-24 Jakub Jelinek <jakub@redhat.com>
40882 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
40883 * gimplify.c (omp_is_private): Change last argument's type to int.
40884 Only diagnose lastprivate if the simd argument is 1, only diagnose
40885 linear if the simd argument is 2.
40886 (gimplify_omp_for): Adjust omp_is_private callers. When adding
40887 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
40888 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
40889 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
40890 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
40891 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40892 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
40893 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
40894 * tree-nested.c (convert_nonlocal_omp_clauses,
40895 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
40897 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
40900 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
40903 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
40905 * flag-types.h (enum ivar_visibility): Add.
40907 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
40909 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
40910 function * argument.
40912 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
40914 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
40916 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40917 Tom de Vries <tom@codesourcery.com>
40919 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
40920 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
40922 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
40923 * emit-rtl.c (try_split): Same.
40925 2014-04-24 Radovan Obradovic <robradovic@mips.com>
40926 Tom de Vries <tom@codesourcery.com>
40928 * common.opt (fuse-caller-save): New option.
40930 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
40932 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
40933 elements for big-endian.
40935 2014-04-24 Richard Biener <rguenther@suse.de>
40937 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
40938 during TER and instead use the sepops interface for expanding
40939 non-GIMPLE_SINGLE_RHS.
40941 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40943 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
40944 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
40946 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40948 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
40949 assembler 64-bit option.
40950 * configure: Regenerate.
40952 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40954 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
40955 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
40956 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
40957 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
40958 (TARGET_CRYPTO): Take TARGET_SIMD into account.
40960 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40962 * config/aarch64/aarch64-builtins.c
40963 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
40964 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
40965 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
40966 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
40968 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
40969 (Vrevsuff): New mode attribute.
40971 2014-04-24 Terry Guo <terry.guo@arm.com>
40973 * config/arm/arm.h (machine_function): Define variable
40974 after_arm_reorg here.
40975 * config/arm/arm.c (after_arm_reorg): Remove the definition.
40976 (arm_split_constant): Update the way to access variable
40978 (arm_reorg): Ditto.
40979 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
40981 2014-04-23 Tom de Vries <tom@codesourcery.com>
40983 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
40985 2014-04-23 David Malcolm <dmalcolm@redhat.com>
40987 * is-a.h: Update comments to reflect the following changes to the
40988 "pointerness" of the API, making the template parameter match the
40989 return type, allowing use of is-a.h with typedefs of pointers.
40990 (is_a_helper::cast): Return a T rather then a pointer to a T, so
40991 that the return type matches the parameter to the is_a_helper.
40993 (dyn_cast): Likewise.
40995 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
40996 pointer from the is-a.h API.
40998 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
40999 (is_a_helper <cgraph_node *>::test): ...this, matching change to
41001 (is_a_helper <varpool_node>::test): Likewise, convert to...
41002 (is_a_helper <varpool_node *>::test): ...this.
41004 (varpool_first_variable): Update for removal of implicit pointer
41005 from the is-a.h API.
41006 (varpool_next_variable): Likewise.
41007 (varpool_first_static_initializer): Likewise.
41008 (varpool_next_static_initializer): Likewise.
41009 (varpool_first_defined_variable): Likewise.
41010 (varpool_next_defined_variable): Likewise.
41011 (cgraph_first_defined_function): Likewise.
41012 (cgraph_next_defined_function): Likewise.
41013 (cgraph_first_function): Likewise.
41014 (cgraph_next_function): Likewise.
41015 (cgraph_first_function_with_gimple_body): Likewise.
41016 (cgraph_next_function_with_gimple_body): Likewise.
41017 (cgraph_alias_target): Likewise.
41018 (varpool_alias_target): Likewise.
41019 (cgraph_function_or_thunk_node): Likewise.
41020 (varpool_variable_node): Likewise.
41021 (symtab_real_symbol_p): Likewise.
41022 * cgraphunit.c (referred_to_p): Likewise.
41023 (analyze_functions): Likewise.
41024 (handle_alias_pairs): Likewise.
41025 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
41026 * gimple-ssa.h (gimple_vuse_op): Likewise.
41027 (gimple_vdef_op): Likewise.
41028 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
41029 * gimple.c (gimple_build_asm_1): Likewise.
41030 (gimple_build_try): Likewise.
41031 (gimple_build_resx): Likewise.
41032 (gimple_build_eh_dispatch): Likewise.
41033 (gimple_build_omp_for): Likewise.
41034 (gimple_omp_for_set_clauses): Likewise.
41036 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
41037 (is_a_helper <gimple_statement_asm *>::test): ...this.
41038 (is_a_helper <gimple_statement_bind>::test): Convert to...
41039 (is_a_helper <gimple_statement_bind *>::test): ...this.
41040 (is_a_helper <gimple_statement_call>::test): Convert to...
41041 (is_a_helper <gimple_statement_call *>::test): ...this.
41042 (is_a_helper <gimple_statement_catch>::test): Convert to...
41043 (is_a_helper <gimple_statement_catch *>::test): ...this.
41044 (is_a_helper <gimple_statement_resx>::test): Convert to...
41045 (is_a_helper <gimple_statement_resx *>::test): ...this.
41046 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
41047 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
41048 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
41049 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
41050 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
41051 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
41052 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
41053 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
41054 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
41055 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
41056 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
41057 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
41058 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
41059 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
41060 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
41061 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
41062 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
41063 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
41064 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
41065 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
41066 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
41067 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
41068 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
41069 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
41070 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
41071 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
41072 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
41073 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
41074 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
41075 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
41076 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
41077 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
41078 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
41079 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
41080 (is_a_helper <gimple_statement_phi>::test): Convert to...
41081 (is_a_helper <gimple_statement_phi *>::test): ...this.
41082 (is_a_helper <gimple_statement_transaction>::test): Convert to...
41083 (is_a_helper <gimple_statement_transaction *>::test): ...this.
41084 (is_a_helper <gimple_statement_try>::test): Convert to...
41085 (is_a_helper <gimple_statement_try *>::test): ...this.
41086 (is_a_helper <gimple_statement_wce>::test): Convert to...
41087 (is_a_helper <gimple_statement_wce *>::test): ...this.
41088 (is_a_helper <const gimple_statement_asm>::test): Convert to...
41089 (is_a_helper <const gimple_statement_asm *>::test): ...this.
41090 (is_a_helper <const gimple_statement_bind>::test): Convert to...
41091 (is_a_helper <const gimple_statement_bind *>::test): ...this.
41092 (is_a_helper <const gimple_statement_call>::test): Convert to...
41093 (is_a_helper <const gimple_statement_call *>::test): ...this.
41094 (is_a_helper <const gimple_statement_catch>::test): Convert to...
41095 (is_a_helper <const gimple_statement_catch *>::test): ...this.
41096 (is_a_helper <const gimple_statement_resx>::test): Convert to...
41097 (is_a_helper <const gimple_statement_resx *>::test): ...this.
41098 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
41099 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
41100 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
41101 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
41102 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
41104 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
41106 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
41108 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
41110 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
41111 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
41112 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
41114 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
41115 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
41117 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
41118 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
41119 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
41120 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
41121 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
41122 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
41124 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
41125 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
41126 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
41127 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
41129 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
41130 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
41131 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
41132 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
41133 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
41134 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
41135 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
41136 (is_a_helper <const gimple_statement_phi>::test): Convert to...
41137 (is_a_helper <const gimple_statement_phi *>::test): ...this.
41138 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
41139 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
41140 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
41141 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
41142 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
41143 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
41144 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
41146 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
41148 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
41149 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
41151 (gimple_use_ops): Update for removal of implicit pointer from the
41153 (gimple_set_use_ops): Likewise.
41154 (gimple_vuse): Likewise.
41155 (gimple_vdef): Likewise.
41156 (gimple_vuse_ptr): Likewise.
41157 (gimple_vdef_ptr): Likewise.
41158 (gimple_set_vuse): Likewise.
41159 (gimple_set_vdef): Likewise.
41160 (gimple_omp_return_set_lhs): Likewise.
41161 (gimple_omp_return_lhs): Likewise.
41162 (gimple_omp_return_lhs_ptr): Likewise.
41163 (gimple_call_fntype): Likewise.
41164 (gimple_call_set_fntype): Likewise.
41165 (gimple_call_set_internal_fn): Likewise.
41166 (gimple_call_use_set): Likewise.
41167 (gimple_call_clobber_set): Likewise.
41168 (gimple_bind_vars): Likewise.
41169 (gimple_bind_set_vars): Likewise.
41170 (gimple_bind_body_ptr): Likewise.
41171 (gimple_bind_set_body): Likewise.
41172 (gimple_bind_add_stmt): Likewise.
41173 (gimple_bind_block): Likewise.
41174 (gimple_bind_set_block): Likewise.
41175 (gimple_asm_ninputs): Likewise.
41176 (gimple_asm_noutputs): Likewise.
41177 (gimple_asm_nclobbers): Likewise.
41178 (gimple_asm_nlabels): Likewise.
41179 (gimple_asm_input_op): Likewise.
41180 (gimple_asm_input_op_ptr): Likewise.
41181 (gimple_asm_output_op): Likewise.
41182 (gimple_asm_output_op_ptr): Likewise.
41183 (gimple_asm_set_output_op): Likewise.
41184 (gimple_asm_clobber_op): Likewise.
41185 (gimple_asm_set_clobber_op): Likewise.
41186 (gimple_asm_label_op): Likewise.
41187 (gimple_asm_set_label_op): Likewise.
41188 (gimple_asm_string): Likewise.
41189 (gimple_catch_types): Likewise.
41190 (gimple_catch_types_ptr): Likewise.
41191 (gimple_catch_handler_ptr): Likewise.
41192 (gimple_catch_set_types): Likewise.
41193 (gimple_catch_set_handler): Likewise.
41194 (gimple_eh_filter_types): Likewise.
41195 (gimple_eh_filter_types_ptr): Likewise.
41196 (gimple_eh_filter_failure_ptr): Likewise.
41197 (gimple_eh_filter_set_types): Likewise.
41198 (gimple_eh_filter_set_failure): Likewise.
41199 (gimple_eh_must_not_throw_fndecl): Likewise.
41200 (gimple_eh_must_not_throw_set_fndecl): Likewise.
41201 (gimple_eh_else_n_body_ptr): Likewise.
41202 (gimple_eh_else_e_body_ptr): Likewise.
41203 (gimple_eh_else_set_n_body): Likewise.
41204 (gimple_eh_else_set_e_body): Likewise.
41205 (gimple_try_eval_ptr): Likewise.
41206 (gimple_try_cleanup_ptr): Likewise.
41207 (gimple_try_set_eval): Likewise.
41208 (gimple_try_set_cleanup): Likewise.
41209 (gimple_wce_cleanup_ptr): Likewise.
41210 (gimple_wce_set_cleanup): Likewise.
41211 (gimple_phi_capacity): Likewise.
41212 (gimple_phi_num_args): Likewise.
41213 (gimple_phi_result): Likewise.
41214 (gimple_phi_result_ptr): Likewise.
41215 (gimple_phi_set_result): Likewise.
41216 (gimple_phi_arg): Likewise.
41217 (gimple_phi_set_arg): Likewise.
41218 (gimple_resx_region): Likewise.
41219 (gimple_resx_set_region): Likewise.
41220 (gimple_eh_dispatch_region): Likewise.
41221 (gimple_eh_dispatch_set_region): Likewise.
41222 (gimple_omp_critical_name): Likewise.
41223 (gimple_omp_critical_name_ptr): Likewise.
41224 (gimple_omp_critical_set_name): Likewise.
41225 (gimple_omp_for_clauses): Likewise.
41226 (gimple_omp_for_clauses_ptr): Likewise.
41227 (gimple_omp_for_set_clauses): Likewise.
41228 (gimple_omp_for_collapse): Likewise.
41229 (gimple_omp_for_index): Likewise.
41230 (gimple_omp_for_index_ptr): Likewise.
41231 (gimple_omp_for_set_index): Likewise.
41232 (gimple_omp_for_initial): Likewise.
41233 (gimple_omp_for_initial_ptr): Likewise.
41234 (gimple_omp_for_set_initial): Likewise.
41235 (gimple_omp_for_final): Likewise.
41236 (gimple_omp_for_final_ptr): Likewise.
41237 (gimple_omp_for_set_final): Likewise.
41238 (gimple_omp_for_incr): Likewise.
41239 (gimple_omp_for_incr_ptr): Likewise.
41240 (gimple_omp_for_set_incr): Likewise.
41241 (gimple_omp_for_pre_body_ptr): Likewise.
41242 (gimple_omp_for_set_pre_body): Likewise.
41243 (gimple_omp_parallel_clauses): Likewise.
41244 (gimple_omp_parallel_clauses_ptr): Likewise.
41245 (gimple_omp_parallel_set_clauses): Likewise.
41246 (gimple_omp_parallel_child_fn): Likewise.
41247 (gimple_omp_parallel_child_fn_ptr): Likewise.
41248 (gimple_omp_parallel_set_child_fn): Likewise.
41249 (gimple_omp_parallel_data_arg): Likewise.
41250 (gimple_omp_parallel_data_arg_ptr): Likewise.
41251 (gimple_omp_parallel_set_data_arg): Likewise.
41252 (gimple_omp_task_clauses): Likewise.
41253 (gimple_omp_task_clauses_ptr): Likewise.
41254 (gimple_omp_task_set_clauses): Likewise.
41255 (gimple_omp_task_child_fn): Likewise.
41256 (gimple_omp_task_child_fn_ptr): Likewise.
41257 (gimple_omp_task_set_child_fn): Likewise.
41258 (gimple_omp_task_data_arg): Likewise.
41259 (gimple_omp_task_data_arg_ptr): Likewise.
41260 (gimple_omp_task_set_data_arg): Likewise.
41261 (gimple_omp_taskreg_clauses): Likewise.
41262 (gimple_omp_taskreg_clauses_ptr): Likewise.
41263 (gimple_omp_taskreg_set_clauses): Likewise.
41264 (gimple_omp_taskreg_child_fn): Likewise.
41265 (gimple_omp_taskreg_child_fn_ptr): Likewise.
41266 (gimple_omp_taskreg_set_child_fn): Likewise.
41267 (gimple_omp_taskreg_data_arg): Likewise.
41268 (gimple_omp_taskreg_data_arg_ptr): Likewise.
41269 (gimple_omp_taskreg_set_data_arg): Likewise.
41270 (gimple_omp_task_copy_fn): Likewise.
41271 (gimple_omp_task_copy_fn_ptr): Likewise.
41272 (gimple_omp_task_set_copy_fn): Likewise.
41273 (gimple_omp_task_arg_size): Likewise.
41274 (gimple_omp_task_arg_size_ptr): Likewise.
41275 (gimple_omp_task_set_arg_size): Likewise.
41276 (gimple_omp_task_arg_align): Likewise.
41277 (gimple_omp_task_arg_align_ptr): Likewise.
41278 (gimple_omp_task_set_arg_align): Likewise.
41279 (gimple_omp_single_clauses): Likewise.
41280 (gimple_omp_single_clauses_ptr): Likewise.
41281 (gimple_omp_single_set_clauses): Likewise.
41282 (gimple_omp_target_clauses): Likewise.
41283 (gimple_omp_target_clauses_ptr): Likewise.
41284 (gimple_omp_target_set_clauses): Likewise.
41285 (gimple_omp_target_child_fn): Likewise.
41286 (gimple_omp_target_child_fn_ptr): Likewise.
41287 (gimple_omp_target_set_child_fn): Likewise.
41288 (gimple_omp_target_data_arg): Likewise.
41289 (gimple_omp_target_data_arg_ptr): Likewise.
41290 (gimple_omp_target_set_data_arg): Likewise.
41291 (gimple_omp_teams_clauses): Likewise.
41292 (gimple_omp_teams_clauses_ptr): Likewise.
41293 (gimple_omp_teams_set_clauses): Likewise.
41294 (gimple_omp_sections_clauses): Likewise.
41295 (gimple_omp_sections_clauses_ptr): Likewise.
41296 (gimple_omp_sections_set_clauses): Likewise.
41297 (gimple_omp_sections_control): Likewise.
41298 (gimple_omp_sections_control_ptr): Likewise.
41299 (gimple_omp_sections_set_control): Likewise.
41300 (gimple_omp_for_set_cond): Likewise.
41301 (gimple_omp_for_cond): Likewise.
41302 (gimple_omp_atomic_store_set_val): Likewise.
41303 (gimple_omp_atomic_store_val): Likewise.
41304 (gimple_omp_atomic_store_val_ptr): Likewise.
41305 (gimple_omp_atomic_load_set_lhs): Likewise.
41306 (gimple_omp_atomic_load_lhs): Likewise.
41307 (gimple_omp_atomic_load_lhs_ptr): Likewise.
41308 (gimple_omp_atomic_load_set_rhs): Likewise.
41309 (gimple_omp_atomic_load_rhs): Likewise.
41310 (gimple_omp_atomic_load_rhs_ptr): Likewise.
41311 (gimple_omp_continue_control_def): Likewise.
41312 (gimple_omp_continue_control_def_ptr): Likewise.
41313 (gimple_omp_continue_set_control_def): Likewise.
41314 (gimple_omp_continue_control_use): Likewise.
41315 (gimple_omp_continue_control_use_ptr): Likewise.
41316 (gimple_omp_continue_set_control_use): Likewise.
41317 (gimple_transaction_body_ptr): Likewise.
41318 (gimple_transaction_label): Likewise.
41319 (gimple_transaction_label_ptr): Likewise.
41320 (gimple_transaction_set_body): Likewise.
41321 (gimple_transaction_set_label): Likewise.
41323 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
41324 * ipa-inline-analysis.c (inline_write_summary): Likewise.
41325 * ipa-ref.c (ipa_record_reference): Likewise.
41326 * ipa-reference.c (analyze_function): Likewise.
41327 (ipa_reference_write_optimization_summary): Likewise.
41328 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
41329 (address_taken_from_non_vtable_p): Likewise.
41330 (comdat_can_be_unshared_p_1): Likewise.
41331 * lto-cgraph.c (lto_output_ref): Likewise.
41332 (add_references): Likewise.
41333 (compute_ltrans_boundary): Likewise.
41334 (output_symtab): Likewise.
41335 (input_ref): Likewise.
41336 (input_cgraph_1): Likewise.
41337 (output_cgraph_opt_summary): Likewise.
41338 * lto-streamer-out.c (lto_output): Likewise.
41339 (output_symbol_p): Likewise.
41340 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
41341 (lsei_start_function_in_partition): Likewise.
41342 (lsei_next_variable_in_partition): Likewise.
41343 (lsei_start_variable_in_partition): Likewise.
41344 * symtab.c (insert_to_assembler_name_hash): Likewise.
41345 (unlink_from_assembler_name_hash): Likewise.
41346 (symtab_unregister_node): Likewise.
41347 (symtab_remove_node): Likewise.
41348 (dump_symtab_node): Likewise.
41349 (verify_symtab_base): Likewise.
41350 (verify_symtab_node): Likewise.
41351 (symtab_make_decl_local): Likewise.
41352 (symtab_alias_ultimate_target): Likewise.
41353 (symtab_resolve_alias): Likewise.
41354 (symtab_get_symbol_partitioning_class): Likewise.
41355 * tree-phinodes.c (allocate_phi_node): Likewise.
41356 (reserve_phi_args_for_new_edge): Likewise.
41357 (remove_phi_args): Likewise.
41358 * varpool.c (varpool_node_for_asm): Likewise.
41359 (varpool_remove_unreferenced_decls): Likewise.
41361 2014-04-23 Jeff Law <law@redhat.com>
41363 PR tree-optimization/60902
41364 * tree-ssa-threadedge.c
41365 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
41366 invalidate outputs from statements that do not produce useful
41367 outputs for threading.
41369 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
41371 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
41372 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
41373 machine descriptions for Stack Smashing Protector.
41375 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
41377 * aarch64.md (<optab>_rol<mode>3): New pattern.
41378 (<optab>_rolsi3_uxtw): Likewise.
41379 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
41381 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
41383 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
41384 (arm_cortex_a12_tune): Likewise.
41386 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41388 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
41390 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41392 * config/arm/arm.md (arm_rev16si2): New pattern.
41393 (arm_rev16si2_alt): Likewise.
41394 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
41396 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41398 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
41399 (rev16<mode>2_alt): Likewise.
41400 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
41401 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
41402 (aarch_rev16_shleft_mask_imm_p): Likewise.
41403 (aarch_rev16_p_1): Likewise.
41404 (aarch_rev16_p): Likewise.
41405 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
41406 (aarch_rev16_shright_mask_imm_p): Likewise.
41407 (aarch_rev16_shleft_mask_imm_p): Likewise.
41409 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41411 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
41412 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
41414 (cortex_a53_extra_costs): Likewise.
41415 (cortex_a57_extra_costs): Likewise.
41416 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
41417 (cortexa7_extra_costs): Likewise.
41418 (cortexa8_extra_costs): Likewise.
41419 (cortexa12_extra_costs): Likewise.
41420 (cortexa15_extra_costs): Likewise.
41421 (v7m_extra_costs): Likewise.
41422 (arm_new_rtx_costs): Handle BSWAP.
41424 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41426 * config/arm/arm.c (cortexa8_extra_costs): New table.
41427 (arm_cortex_a8_tune): New tuning struct.
41428 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
41430 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41432 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
41434 2014-04-23 Richard Biener <rguenther@suse.de>
41436 * Makefile.in (OBJS): Remove loop-unswitch.o.
41437 * tree-pass.h (make_pass_rtl_unswitch): Remove.
41438 * passes.def (pass_rtl_unswitch): Likewise.
41439 * loop-init.c (gate_rtl_unswitch): Likewise.
41440 (rtl_unswitch): Likewise.
41441 (pass_data_rtl_unswitch): Likewise.
41442 (pass_rtl_unswitch): Likewise.
41443 (make_pass_rtl_unswitch): Likewise.
41444 * rtl.h (reversed_condition): Likewise.
41445 (compare_and_jump_seq): Likewise.
41446 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
41448 * loop-unroll.c (compare_and_jump_seq): Likewise.
41450 2014-04-23 Richard Biener <rguenther@suse.de>
41452 PR tree-optimization/60903
41453 * tree-ssa-loop-im.c (analyze_memory_references): Remove
41454 commented code block.
41455 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
41456 loop flags to newly created BBs and edges.
41458 2014-04-23 Nick Clifton <nickc@redhat.com>
41460 * config/msp430/msp430.c (msp430_handle_option): Move function
41462 (msp430_option_override): Simplify mcu and mcpu option handling.
41463 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
41464 support for -mhwmult command line option.
41465 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
41466 -mhwmult command line option.
41467 (msp430_hwmult_enabled): Delete.
41468 (msp43o_output_labelref): Add support for -mhwmult command line option.
41469 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
41470 (umulsidi3): Likewise.
41471 * config/msp430/msp430.opt (mmcu): Add Report attribute.
41472 (mcpu, mlarge, msmall): Likewise.
41473 (mhwmult): New option.
41474 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
41476 (msp430_is_f5_mcu): Remove prototype.
41477 (msp430_use_f5_series_hwmult): Add prototype.
41478 * config/msp430/msp430-opts.h: New file.
41479 * common/config/msp430: New directory.
41480 * common/config/msp430/msp430-common.c: New file.
41481 * config.gcc (msp430): Remove target_has_targetm_common.
41482 * doc/invoke.texi: Document -mhwmult command line option.
41484 2014-04-23 Nick Clifton <nickc@redhat.com>
41486 * config/i386/cygwin.h (ENDFILE_SPEC): Include
41487 default-manifest.o if it can be found in the search path.
41488 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41490 2014-04-23 Terry Guo <terry.guo@arm.com>
41492 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
41494 2014-04-23 Richard Biener <rguenther@suse.de>
41496 PR middle-end/60895
41497 * tree-inline.c (declare_return_variable): Use mark_addressable.
41499 2014-04-23 Richard Biener <rguenther@suse.de>
41501 PR middle-end/60891
41502 * loop-init.c (loop_optimizer_init): Make sure to apply
41503 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
41505 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41508 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
41510 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
41511 if flag_sanitize_undefined_trap_on_error.
41512 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
41513 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
41514 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
41515 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
41516 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
41517 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
41518 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
41519 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
41520 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
41521 * ubsan.c (ubsan_instrument_unreachable): Return
41522 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
41523 (ubsan_expand_null_ifn): Emit __builtin_trap ()
41524 if flag_sanitize_undefined_trap_on_error and
41525 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
41526 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
41527 instrument_bool_enum_load): Emit __builtin_trap () if
41528 flag_sanitize_undefined_trap_on_error and
41529 __builtin_handle_*_abort () if !flag_sanitize_recover.
41530 * doc/invoke.texi (-fsanitize-recover,
41531 -fsanitize-undefined-trap-on-error): Document.
41533 2014-04-22 Christian Bruel <christian.bruel@st.com>
41535 * config/sh/sh.md (mov<mode>): Replace movQIHI.
41536 Force immediates to SImode.
41538 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
41540 * config/nios2/nios2.md (UNSPEC_ROUND): New.
41541 (lroundsfsi2): New.
41542 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
41543 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
41544 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
41545 (nios2_fpu_insn): Add entry for round.
41546 (N2FPU_NO_ERRNO_P): Define.
41547 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
41549 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
41551 2014-04-22 Richard Henderson <rth@redhat.com>
41553 * config/aarch64/aarch64 (addti3, subti3): New expanders.
41554 (add<GPI>3_compare0): Remove leading * from name.
41555 (add<GPI>3_carryin): Likewise.
41556 (sub<GPI>3_compare0): Likewise.
41557 (sub<GPI>3_carryin): Likewise.
41558 (<su_optab>mulditi3): New expander.
41559 (multi3): New expander.
41560 (madd<GPI>): Remove leading * from name.
41562 2014-04-22 Martin Jambor <mjambor@suse.cz>
41564 * cgraphclones.c (cgraph_function_versioning): Copy
41565 ipa_transforms_to_apply instead of asserting it is empty.
41567 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
41570 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
41571 on count_exp to get mode.
41573 2014-04-22 Andrew Pinski <apinski@cavium.com>
41575 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
41576 Handle TLS for ILP32.
41577 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
41578 (tlsie_small_<mode>): this and handle PTR.
41579 (tlsie_small_sidi): New pattern.
41580 (tlsle_small): Change to an expand to handle ILP32.
41581 (tlsle_small_<mode>): New pattern.
41582 (tlsdesc_small): Rename to ...
41583 (tlsdesc_small_<mode>): this and handle PTR.
41585 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41587 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
41589 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41591 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41592 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
41593 (aarch64_types_signed_poly_qualifiers): Likewise.
41594 (aarch64_types_unsigned_signed_qualifiers): Likewise.
41595 (aarch64_types_poly_signed_qualifiers): Likewise.
41596 (TYPES_REINTERP_SS): Type macro added.
41597 (TYPES_REINTERP_SU): Likewise.
41598 (TYPES_REINTERP_SP): Likewise.
41599 (TYPES_REINTERP_US): Likewise.
41600 (TYPES_REINTERP_PS): Likewise.
41601 (aarch64_fold_builtin): New expression folding added.
41602 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
41603 Declarations removed.
41604 (REINTERP_SS): Declarations added.
41605 (REINTERP_US): Likewise.
41606 (REINTERP_PS): Likewise.
41607 (REINTERP_SU): Likewise.
41608 (REINTERP_SP): Likewise.
41609 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
41610 (vreinterpretq_p8_f64): Likewise.
41611 (vreinterpret_p16_f64): Likewise.
41612 (vreinterpretq_p16_f64): Likewise.
41613 (vreinterpret_f32_f64): Likewise.
41614 (vreinterpretq_f32_f64): Likewise.
41615 (vreinterpret_f64_f32): Likewise.
41616 (vreinterpret_f64_p8): Likewise.
41617 (vreinterpret_f64_p16): Likewise.
41618 (vreinterpret_f64_s8): Likewise.
41619 (vreinterpret_f64_s16): Likewise.
41620 (vreinterpret_f64_s32): Likewise.
41621 (vreinterpret_f64_s64): Likewise.
41622 (vreinterpret_f64_u8): Likewise.
41623 (vreinterpret_f64_u16): Likewise.
41624 (vreinterpret_f64_u32): Likewise.
41625 (vreinterpret_f64_u64): Likewise.
41626 (vreinterpretq_f64_f32): Likewise.
41627 (vreinterpretq_f64_p8): Likewise.
41628 (vreinterpretq_f64_p16): Likewise.
41629 (vreinterpretq_f64_s8): Likewise.
41630 (vreinterpretq_f64_s16): Likewise.
41631 (vreinterpretq_f64_s32): Likewise.
41632 (vreinterpretq_f64_s64): Likewise.
41633 (vreinterpretq_f64_u8): Likewise.
41634 (vreinterpretq_f64_u16): Likewise.
41635 (vreinterpretq_f64_u32): Likewise.
41636 (vreinterpretq_f64_u64): Likewise.
41637 (vreinterpret_s64_f64): Likewise.
41638 (vreinterpretq_s64_f64): Likewise.
41639 (vreinterpret_u64_f64): Likewise.
41640 (vreinterpretq_u64_f64): Likewise.
41641 (vreinterpret_s8_f64): Likewise.
41642 (vreinterpretq_s8_f64): Likewise.
41643 (vreinterpret_s16_f64): Likewise.
41644 (vreinterpretq_s16_f64): Likewise.
41645 (vreinterpret_s32_f64): Likewise.
41646 (vreinterpretq_s32_f64): Likewise.
41647 (vreinterpret_u8_f64): Likewise.
41648 (vreinterpretq_u8_f64): Likewise.
41649 (vreinterpret_u16_f64): Likewise.
41650 (vreinterpretq_u16_f64): Likewise.
41651 (vreinterpret_u32_f64): Likewise.
41652 (vreinterpretq_u32_f64): Likewise.
41654 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41656 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
41657 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
41658 (vreinterpret_p8_s8): Likewise.
41659 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
41660 (vreinterpret_p8_s16): Likewise.
41661 (vreinterpret_p8_s32): Likewise.
41662 (vreinterpret_p8_s64): Likewise.
41663 (vreinterpret_p8_f32): Likewise.
41664 (vreinterpret_p8_u8): Likewise.
41665 (vreinterpret_p8_u16): Likewise.
41666 (vreinterpret_p8_u32): Likewise.
41667 (vreinterpret_p8_u64): Likewise.
41668 (vreinterpret_p8_p16): Likewise.
41669 (vreinterpretq_p8_s8): Likewise.
41670 (vreinterpretq_p8_s16): Likewise.
41671 (vreinterpretq_p8_s32): Likewise.
41672 (vreinterpretq_p8_s64): Likewise.
41673 (vreinterpretq_p8_f32): Likewise.
41674 (vreinterpretq_p8_u8): Likewise.
41675 (vreinterpretq_p8_u16): Likewise.
41676 (vreinterpretq_p8_u32): Likewise.
41677 (vreinterpretq_p8_u64): Likewise.
41678 (vreinterpretq_p8_p16): Likewise.
41679 (vreinterpret_p16_s8): Likewise.
41680 (vreinterpret_p16_s16): Likewise.
41681 (vreinterpret_p16_s32): Likewise.
41682 (vreinterpret_p16_s64): Likewise.
41683 (vreinterpret_p16_f32): Likewise.
41684 (vreinterpret_p16_u8): Likewise.
41685 (vreinterpret_p16_u16): Likewise.
41686 (vreinterpret_p16_u32): Likewise.
41687 (vreinterpret_p16_u64): Likewise.
41688 (vreinterpret_p16_p8): Likewise.
41689 (vreinterpretq_p16_s8): Likewise.
41690 (vreinterpretq_p16_s16): Likewise.
41691 (vreinterpretq_p16_s32): Likewise.
41692 (vreinterpretq_p16_s64): Likewise.
41693 (vreinterpretq_p16_f32): Likewise.
41694 (vreinterpretq_p16_u8): Likewise.
41695 (vreinterpretq_p16_u16): Likewise.
41696 (vreinterpretq_p16_u32): Likewise.
41697 (vreinterpretq_p16_u64): Likewise.
41698 (vreinterpretq_p16_p8): Likewise.
41699 (vreinterpret_f32_s8): Likewise.
41700 (vreinterpret_f32_s16): Likewise.
41701 (vreinterpret_f32_s32): Likewise.
41702 (vreinterpret_f32_s64): Likewise.
41703 (vreinterpret_f32_u8): Likewise.
41704 (vreinterpret_f32_u16): Likewise.
41705 (vreinterpret_f32_u32): Likewise.
41706 (vreinterpret_f32_u64): Likewise.
41707 (vreinterpret_f32_p8): Likewise.
41708 (vreinterpret_f32_p16): Likewise.
41709 (vreinterpretq_f32_s8): Likewise.
41710 (vreinterpretq_f32_s16): Likewise.
41711 (vreinterpretq_f32_s32): Likewise.
41712 (vreinterpretq_f32_s64): Likewise.
41713 (vreinterpretq_f32_u8): Likewise.
41714 (vreinterpretq_f32_u16): Likewise.
41715 (vreinterpretq_f32_u32): Likewise.
41716 (vreinterpretq_f32_u64): Likewise.
41717 (vreinterpretq_f32_p8): Likewise.
41718 (vreinterpretq_f32_p16): Likewise.
41719 (vreinterpret_s64_s8): Likewise.
41720 (vreinterpret_s64_s16): Likewise.
41721 (vreinterpret_s64_s32): Likewise.
41722 (vreinterpret_s64_f32): Likewise.
41723 (vreinterpret_s64_u8): Likewise.
41724 (vreinterpret_s64_u16): Likewise.
41725 (vreinterpret_s64_u32): Likewise.
41726 (vreinterpret_s64_u64): Likewise.
41727 (vreinterpret_s64_p8): Likewise.
41728 (vreinterpret_s64_p16): Likewise.
41729 (vreinterpretq_s64_s8): Likewise.
41730 (vreinterpretq_s64_s16): Likewise.
41731 (vreinterpretq_s64_s32): Likewise.
41732 (vreinterpretq_s64_f32): Likewise.
41733 (vreinterpretq_s64_u8): Likewise.
41734 (vreinterpretq_s64_u16): Likewise.
41735 (vreinterpretq_s64_u32): Likewise.
41736 (vreinterpretq_s64_u64): Likewise.
41737 (vreinterpretq_s64_p8): Likewise.
41738 (vreinterpretq_s64_p16): Likewise.
41739 (vreinterpret_u64_s8): Likewise.
41740 (vreinterpret_u64_s16): Likewise.
41741 (vreinterpret_u64_s32): Likewise.
41742 (vreinterpret_u64_s64): Likewise.
41743 (vreinterpret_u64_f32): Likewise.
41744 (vreinterpret_u64_u8): Likewise.
41745 (vreinterpret_u64_u16): Likewise.
41746 (vreinterpret_u64_u32): Likewise.
41747 (vreinterpret_u64_p8): Likewise.
41748 (vreinterpret_u64_p16): Likewise.
41749 (vreinterpretq_u64_s8): Likewise.
41750 (vreinterpretq_u64_s16): Likewise.
41751 (vreinterpretq_u64_s32): Likewise.
41752 (vreinterpretq_u64_s64): Likewise.
41753 (vreinterpretq_u64_f32): Likewise.
41754 (vreinterpretq_u64_u8): Likewise.
41755 (vreinterpretq_u64_u16): Likewise.
41756 (vreinterpretq_u64_u32): Likewise.
41757 (vreinterpretq_u64_p8): Likewise.
41758 (vreinterpretq_u64_p16): Likewise.
41759 (vreinterpret_s8_s16): Likewise.
41760 (vreinterpret_s8_s32): Likewise.
41761 (vreinterpret_s8_s64): Likewise.
41762 (vreinterpret_s8_f32): Likewise.
41763 (vreinterpret_s8_u8): Likewise.
41764 (vreinterpret_s8_u16): Likewise.
41765 (vreinterpret_s8_u32): Likewise.
41766 (vreinterpret_s8_u64): Likewise.
41767 (vreinterpret_s8_p8): Likewise.
41768 (vreinterpret_s8_p16): Likewise.
41769 (vreinterpretq_s8_s16): Likewise.
41770 (vreinterpretq_s8_s32): Likewise.
41771 (vreinterpretq_s8_s64): Likewise.
41772 (vreinterpretq_s8_f32): Likewise.
41773 (vreinterpretq_s8_u8): Likewise.
41774 (vreinterpretq_s8_u16): Likewise.
41775 (vreinterpretq_s8_u32): Likewise.
41776 (vreinterpretq_s8_u64): Likewise.
41777 (vreinterpretq_s8_p8): Likewise.
41778 (vreinterpretq_s8_p16): Likewise.
41779 (vreinterpret_s16_s8): Likewise.
41780 (vreinterpret_s16_s32): Likewise.
41781 (vreinterpret_s16_s64): Likewise.
41782 (vreinterpret_s16_f32): Likewise.
41783 (vreinterpret_s16_u8): Likewise.
41784 (vreinterpret_s16_u16): Likewise.
41785 (vreinterpret_s16_u32): Likewise.
41786 (vreinterpret_s16_u64): Likewise.
41787 (vreinterpret_s16_p8): Likewise.
41788 (vreinterpret_s16_p16): Likewise.
41789 (vreinterpretq_s16_s8): Likewise.
41790 (vreinterpretq_s16_s32): Likewise.
41791 (vreinterpretq_s16_s64): Likewise.
41792 (vreinterpretq_s16_f32): Likewise.
41793 (vreinterpretq_s16_u8): Likewise.
41794 (vreinterpretq_s16_u16): Likewise.
41795 (vreinterpretq_s16_u32): Likewise.
41796 (vreinterpretq_s16_u64): Likewise.
41797 (vreinterpretq_s16_p8): Likewise.
41798 (vreinterpretq_s16_p16): Likewise.
41799 (vreinterpret_s32_s8): Likewise.
41800 (vreinterpret_s32_s16): Likewise.
41801 (vreinterpret_s32_s64): Likewise.
41802 (vreinterpret_s32_f32): Likewise.
41803 (vreinterpret_s32_u8): Likewise.
41804 (vreinterpret_s32_u16): Likewise.
41805 (vreinterpret_s32_u32): Likewise.
41806 (vreinterpret_s32_u64): Likewise.
41807 (vreinterpret_s32_p8): Likewise.
41808 (vreinterpret_s32_p16): Likewise.
41809 (vreinterpretq_s32_s8): Likewise.
41810 (vreinterpretq_s32_s16): Likewise.
41811 (vreinterpretq_s32_s64): Likewise.
41812 (vreinterpretq_s32_f32): Likewise.
41813 (vreinterpretq_s32_u8): Likewise.
41814 (vreinterpretq_s32_u16): Likewise.
41815 (vreinterpretq_s32_u32): Likewise.
41816 (vreinterpretq_s32_u64): Likewise.
41817 (vreinterpretq_s32_p8): Likewise.
41818 (vreinterpretq_s32_p16): Likewise.
41819 (vreinterpret_u8_s8): Likewise.
41820 (vreinterpret_u8_s16): Likewise.
41821 (vreinterpret_u8_s32): Likewise.
41822 (vreinterpret_u8_s64): Likewise.
41823 (vreinterpret_u8_f32): Likewise.
41824 (vreinterpret_u8_u16): Likewise.
41825 (vreinterpret_u8_u32): Likewise.
41826 (vreinterpret_u8_u64): Likewise.
41827 (vreinterpret_u8_p8): Likewise.
41828 (vreinterpret_u8_p16): Likewise.
41829 (vreinterpretq_u8_s8): Likewise.
41830 (vreinterpretq_u8_s16): Likewise.
41831 (vreinterpretq_u8_s32): Likewise.
41832 (vreinterpretq_u8_s64): Likewise.
41833 (vreinterpretq_u8_f32): Likewise.
41834 (vreinterpretq_u8_u16): Likewise.
41835 (vreinterpretq_u8_u32): Likewise.
41836 (vreinterpretq_u8_u64): Likewise.
41837 (vreinterpretq_u8_p8): Likewise.
41838 (vreinterpretq_u8_p16): Likewise.
41839 (vreinterpret_u16_s8): Likewise.
41840 (vreinterpret_u16_s16): Likewise.
41841 (vreinterpret_u16_s32): Likewise.
41842 (vreinterpret_u16_s64): Likewise.
41843 (vreinterpret_u16_f32): Likewise.
41844 (vreinterpret_u16_u8): Likewise.
41845 (vreinterpret_u16_u32): Likewise.
41846 (vreinterpret_u16_u64): Likewise.
41847 (vreinterpret_u16_p8): Likewise.
41848 (vreinterpret_u16_p16): Likewise.
41849 (vreinterpretq_u16_s8): Likewise.
41850 (vreinterpretq_u16_s16): Likewise.
41851 (vreinterpretq_u16_s32): Likewise.
41852 (vreinterpretq_u16_s64): Likewise.
41853 (vreinterpretq_u16_f32): Likewise.
41854 (vreinterpretq_u16_u8): Likewise.
41855 (vreinterpretq_u16_u32): Likewise.
41856 (vreinterpretq_u16_u64): Likewise.
41857 (vreinterpretq_u16_p8): Likewise.
41858 (vreinterpretq_u16_p16): Likewise.
41859 (vreinterpret_u32_s8): Likewise.
41860 (vreinterpret_u32_s16): Likewise.
41861 (vreinterpret_u32_s32): Likewise.
41862 (vreinterpret_u32_s64): Likewise.
41863 (vreinterpret_u32_f32): Likewise.
41864 (vreinterpret_u32_u8): Likewise.
41865 (vreinterpret_u32_u16): Likewise.
41866 (vreinterpret_u32_u64): Likewise.
41867 (vreinterpret_u32_p8): Likewise.
41868 (vreinterpret_u32_p16): Likewise.
41869 (vreinterpretq_u32_s8): Likewise.
41870 (vreinterpretq_u32_s16): Likewise.
41871 (vreinterpretq_u32_s32): Likewise.
41872 (vreinterpretq_u32_s64): Likewise.
41873 (vreinterpretq_u32_f32): Likewise.
41874 (vreinterpretq_u32_u8): Likewise.
41875 (vreinterpretq_u32_u16): Likewise.
41876 (vreinterpretq_u32_u64): Likewise.
41877 (vreinterpretq_u32_p8): Likewise.
41878 (vreinterpretq_u32_p16): Likewise.
41880 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
41882 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
41884 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
41886 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
41887 (vqnegd_s64): Likewise.
41888 (vqabs_s64): Likewise.
41889 (vqabsd_s64): Likewise.
41891 2014-04-22 Richard Henderson <rth@redhat.com>
41893 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
41894 computation to the top of the loop.
41896 2014-04-22 Renlin <renlin.li@arm.com>
41897 Jiong Wang <jiong.wang@arm.com>
41899 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
41900 * config/aarch64/aarch64.c (aarch64_layout_frame)
41901 (aarch64_initial_elimination_offset): Likewise.
41903 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
41905 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
41908 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
41910 * machmode.h (bitwise_mode_for_mode): Declare.
41911 * stor-layout.h (bitwise_type_for_mode): Likewise.
41912 * stor-layout.c (bitwise_mode_for_mode): New function.
41913 (bitwise_type_for_mode): Likewise.
41914 * builtins.c (fold_builtin_memory_op): Use it instead of
41915 int_mode_for_mode and build_nonstandard_integer_type.
41917 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41919 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
41920 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
41921 (*-*-solaris2*): Simplify.
41922 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
41923 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
41924 *-*-solaris2.9* handling.
41926 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
41928 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
41929 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
41930 handling, simplify.
41931 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
41932 * configure: Regenerate.
41934 * config/i386/sol2-9.h: Remove.
41936 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
41937 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
41938 Remove Solaris 9 references.
41940 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
41942 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
41943 (floatuns<GPI:mode><GPF:mode>2): Remove.
41944 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
41945 and floatuns conversions.
41946 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
41947 and floatuns conversions.
41948 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
41949 (w1,w2): New mode attributes for inequal width conversions.
41951 2014-04-22 Renlin Li <Renlin.Li@arm.com>
41953 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
41954 the output asm format.
41956 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
41958 * config/aarch64/aarch64-simd.md
41959 (aarch64_cm<optab>di): Always split.
41960 (*aarch64_cm<optab>di): New.
41961 (aarch64_cmtstdi): Always split.
41962 (*aarch64_cmtstdi): New.
41964 2014-04-22 Jakub Jelinek <jakub@redhat.com>
41966 PR tree-optimization/60823
41967 * omp-low.c (ipa_simd_modify_function_body): Go through
41968 all SSA_NAMEs and for those refering to vector arguments
41969 which are going to be replaced adjust SSA_NAME_VAR and,
41970 if it is a default definition, change it into a non-default
41971 definition assigned at the beginning of function from new_decl.
41972 (ipa_simd_modify_stmt_ops): Rewritten.
41973 * tree-dfa.c (set_ssa_default_def): When removing default def,
41974 check for NULL loc instead of NULL *loc.
41976 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41978 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
41979 restrictions on core registers for DImode values in Thumb2.
41981 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41983 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
41984 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
41986 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41988 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
41989 (*iordi_notzesidi_di): Likewise.
41990 (*iordi_notsesidi_di): Likewise.
41992 2014-04-22 Ian Bolton <ian.bolton@arm.com>
41994 * config/arm/arm-protos.h (tune_params): New struct members.
41995 * config/arm/arm.c: Initialise tune_params per processor.
41996 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
41997 for speed, based on new tune_params.
41999 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
42001 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
42002 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
42003 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
42004 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
42005 * config/aarch64/arm_neon.h (vrnd_f64): Added.
42006 (vrnda_f64): Likewise.
42007 (vrndi_f64): Likewise.
42008 (vrndm_f64): Likewise.
42009 (vrndn_f64): Likewise.
42010 (vrndp_f64): Likewise.
42011 (vrndx_f64): Likewise.
42013 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
42015 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
42016 GET_MODE_SIZE argument is enum machine_mode.
42018 2014-04-22 Jakub Jelinek <jakub@redhat.com>
42021 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
42022 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
42024 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
42026 PR middle-end/60281
42027 * asan.c (asan_emit_stack_protection): Force the base to align to
42028 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
42029 appropriate bits if STRICT_ALIGNMENT.
42030 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
42032 (expand_used_vars): Leave a space in the stack frame for alignment
42033 if STRICT_ALIGNMENT.
42035 2014-04-21 David Malcolm <dmalcolm@redhat.com>
42037 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
42039 (gimple_store_p): Likewise.
42040 (gimple_assign_load_p): Likewise.
42041 (gimple_assign_cast_p): Likewise.
42042 (gimple_clobber_p): Likewise.
42044 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
42045 rather than a gimple.
42046 (gimple_assign_cast_p): Likewise.
42048 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
42051 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
42052 If mode is DDmode and TARGET_E500_DOUBLE allow move.
42054 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
42055 more debug information for E500 if -mdebug=reg.
42057 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
42060 * config/i386/i386.c (ix86_expand_builtin)
42061 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
42062 register for target RTX.
42063 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
42065 2014-04-18 Cong Hou <congh@google.com>
42067 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
42068 the widen-mult pattern by handling two operands with different sizes,
42069 and operands whose size is smaller than half of the result type.
42071 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42073 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
42074 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
42075 (do_estimate_edge_time): Compute it.
42076 * ipa-inline.c (want_inline_small_function_p): Bypass
42077 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
42079 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
42081 * ipa-inline.c (spec_rem): New static variable.
42082 (dump_overall_stats): New function.
42083 (dump_inline_stats): New function.
42085 2014-04-18 Richard Henderson <rth@redhat.com>
42087 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
42088 to GET_MODE_SIZE, not a reg_class_t.
42090 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42092 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
42093 (vsx_xxmrglw_<mode>): Likewise.
42095 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
42098 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
42099 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
42100 (rs6000_init_hard_regno_mode_ok): Likewise.
42102 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
42104 * ipa-inline.c (inline_small_functions): Account only non-cold
42106 * doc/invoke.texi (inline-unit-growth): Update documentation.
42108 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
42110 * config/rs6000/rs6000.md (addti3, subti3): New.
42112 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
42115 * config/i386/i386.c (ix86_expand_clear): Remove outdated
42116 comment. Check optimize_insn_for_size_p instead of
42117 optimize_insn_for_speed_p.
42119 2014-04-17 Martin Jambor <mjambor@suse.cz>
42121 * gimple-iterator.c (gsi_start_edge): New function.
42122 * gimple-iterator.h (gsi_start_edge): Declare.
42123 * tree-sra.c (single_non_eh_succ): New function.
42124 (disqualify_ops_if_throwing_stmt): Renamed to
42125 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
42126 having one non-EH successor BB.
42127 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
42128 generate loads into replacements.
42129 (sra_modify_assign): Likewise and and also use the simple path for
42131 (sra_modify_function_body): Commit statements on edges.
42133 2014-04-17 Richard Biener <rguenther@suse.de>
42135 PR middle-end/60849
42136 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
42137 comparison results and add clarifying comment.
42139 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42141 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
42142 (blank_mode): Initialize it.
42143 (emit_mode_size_inline, emit_mode_nunits_inline,
42144 emit_mode_inner_inline): New functions.
42145 (emit_insn_modes_h): Call them and surround their output with
42146 #if GCC_VERSION >= 4001 ... #endif.
42147 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
42148 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
42149 mode_* arrays if the argument is __builtin_constant_p.
42150 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
42151 is enum machine_mode.
42153 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42155 * passes.c (opt_pass::execute): Adjust.
42156 (pass_manager::execute_pass_mode_switching): Likewise.
42157 (early_local_passes::execute): Likewise.
42158 (execute_one_pass): Pass cfun to the pass's execute method.
42159 * tree-pass.h (opt_pass::execute): Add function * argument.
42160 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42161 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42162 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42163 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42164 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42165 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
42166 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
42167 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42168 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42169 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
42170 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
42171 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
42172 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
42173 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
42174 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42175 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42176 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42177 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
42178 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
42179 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42180 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42181 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42182 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42183 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42184 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42185 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42186 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42187 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42188 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42191 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42193 * passes.c (opt_pass::gate): Take function * argument.
42194 (gate_all_early_local_passes): Merge into
42195 (early_local_passes::gate): this.
42196 (gate_all_early_optimizations): Merge into
42197 (all_early_optimizations::gate): this.
42198 (gate_all_optimizations): Mege into
42199 (all_optimizations::gate): this.
42200 (gate_all_optimizations_g): Merge into
42201 (all_optimizations_g::gate): this.
42202 (gate_rest_of_compilation): Mege into
42203 (rest_of_compilation::gate): this.
42204 (gate_postreload): Merge into
42205 (postreload::gate): this.
42206 (dump_one_pass): Pass cfun to the pass's gate method.
42207 (execute_ipa_summary_passes): Likewise.
42208 (execute_one_pass): Likewise.
42209 (ipa_write_summaries_2): Likewise.
42210 (ipa_write_optimization_summaries_1): Likewise.
42211 (ipa_read_summaries_1): Likewise.
42212 (ipa_read_optimization_summaries_1): Likewise.
42213 (execute_ipa_stmt_fixups): Likewise.
42214 * tree-pass.h (opt_pass::gate): Add function * argument.
42215 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
42216 combine-stack-adj.c, combine.c, compare-elim.c,
42217 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42218 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
42219 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
42220 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
42221 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
42222 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
42223 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42224 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
42225 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
42226 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
42227 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
42228 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
42229 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
42230 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42231 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42232 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42233 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42234 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42235 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42236 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42237 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42238 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42239 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
42240 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
42241 var-tracking.c, vtable-verify.c, web.c: Adjust.
42243 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42245 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
42246 * configure: Regenerate.
42248 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42250 * passes.c (dump_one_pass): don't check pass->has_gate.
42251 (execute_ipa_summary_passes): Likewise.
42252 (execute_one_pass): Likewise.
42253 (ipa_write_summaries_2): Likewise.
42254 (ipa_write_optimization_summaries_1): Likewise.
42255 (ipa_read_optimization_summaries_1): Likewise.
42256 (execute_ipa_stmt_fixups): Likewise.
42257 * tree-pass.h (pass_data::has_gate): Remove.
42258 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
42259 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
42260 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
42261 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
42262 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
42263 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
42264 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
42265 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
42266 gimple-low.c, gimple-ssa-isolate-paths.c,
42267 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
42268 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
42269 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
42270 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
42271 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
42272 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
42273 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
42274 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
42275 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
42276 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
42277 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
42278 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
42279 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
42280 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
42281 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
42282 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
42283 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
42284 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
42285 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
42286 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
42287 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
42288 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
42291 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42293 * pass_manager.h (pass_manager::register_dump_files_1): Remove
42295 * passes.c (pass_manager::register_dump_files_1): Merge into
42296 (pass_manager::register_dump_files): this, and remove its handling of
42297 properties since the pass always has the properties anyway.
42298 (pass_manager::pass_manager): Adjust.
42300 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
42302 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
42303 * passes.c (pass_manager::register_dump_files_1): Remove dead code
42304 dealing with properties.
42305 (pass_manager::register_dump_files): Adjust.
42307 2014-03-20 Mark Wielaard <mjw@redhat.com>
42309 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
42310 then represent the bound as normal constant value.
42312 2014-04-17 Jakub Jelinek <jakub@redhat.com>
42315 Forward port from 4.8 branch
42316 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
42318 * config/i386/bmiintrin.h (_blsi_u32): New.
42319 (_blsi_u64): Ditto.
42320 (_blsr_u32): Ditto.
42321 (_blsr_u64): Ditto.
42322 (_blsmsk_u32): Ditto.
42323 (_blsmsk_u64): Ditto.
42324 (_tzcnt_u32): Ditto.
42325 (_tzcnt_u64): Ditto.
42327 2014-04-17 Kito Cheng <kito@0xlab.org>
42329 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
42331 2014-04-17 Richard Biener <rguenther@suse.de>
42333 PR middle-end/60849
42334 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
42335 boolean results for comparisons.
42337 2014-04-17 Richard Biener <rguenther@suse.de>
42339 PR tree-optimization/60836
42340 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
42341 initial PHI args to be gimple values.
42343 2014-04-17 Richard Biener <rguenther@suse.de>
42345 PR tree-optimization/60841
42346 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
42347 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
42348 of stmts to SLP build.
42349 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
42350 (vect_analyze_slp): Likewise.
42351 (vect_analyze_slp_instance): Likewise.
42352 (vect_build_slp_tree): Limit overall SLP tree growth.
42353 * tree-vectorizer.h (vect_analyze_data_refs,
42354 vect_analyze_slp): Adjust prototypes.
42356 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42358 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
42361 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42363 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
42364 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
42365 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
42366 for TARGET_SLOW_PSHUFB
42368 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
42370 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
42371 * config/i386/i386.c (intel_cost): Ditto.
42373 2014-04-17 Joey Ye <joey.ye@arm.com>
42375 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
42377 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42379 * opts.c (common_handle_option): Disable -fipa-reference coorectly
42380 with -fuse-profile.
42382 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42384 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
42385 (type_all_derivations_known_p): New predicate.
42386 (type_all_ctors_visible_p): New predicate.
42387 (type_possibly_instantiated_p): New predicate.
42388 (get_odr_type): Compute all_derivations_known.
42389 (dump_odr_type): Dump the flag.
42390 (maybe_record_type): Cleanup.
42391 (record_target_from_binfo): Add bases_to_consider array;
42392 record bases for types w/o instances and skip CXX destructor.
42393 (possible_polymorphic_call_targets_1): Add bases_to_consider
42394 and consider_construction parameters; check if type may have instance.
42395 (get_polymorphic_call_info): Set maybe_in_construction to true
42396 when we know nothing.
42397 (record_targets_from_bases): Skip CXX destructors; they are
42398 never called for types in construction.
42399 (possible_polymorphic_call_targets): Do not record target when
42400 type may not have instance.
42402 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
42405 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
42406 external aliases alive, too.
42408 2014-04-16 Andrew Pinski <apinski@cavium.com>
42410 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
42413 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42415 * final.c (compute_alignments): Do not apply loop alignment to a block
42416 falling through to the exit.
42418 2014-04-16 Catherine Moore <clm@codesourcery.com>
42420 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
42421 Adjust constraints for microMIPS store patterns.
42423 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42425 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
42427 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
42429 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
42430 (append_use): Run at -O0.
42431 (append_vdef): Likewise.
42432 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
42433 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
42435 2014-04-16 Jakub Jelinek <jakub@redhat.com>
42437 PR tree-optimization/60844
42438 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
42439 (propagate_op_to_single_use, remove_visited_stmt_chain,
42440 linearize_expr, repropagate_negates, reassociate_bb): Use it
42441 instead of gsi_remove.
42443 2014-04-16 Martin Jambor <mjambor@suse.cz>
42445 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
42446 ipa_transforms_to_apply.
42447 (cgraph_function_versioning): Assert that old_node has empty
42448 ipa_transforms_to_apply.
42449 * trans-mem.c (ipa_tm_create_version): Likewise.
42450 * tree-inline.c (tree_function_versioning): Do not duplicate
42451 ipa_transforms_to_apply.
42453 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42456 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
42458 Pass necessary as flags on 64-bit Solaris/x86.
42459 Use lowercase relocs for x86_64-*-*.
42460 * configure: Regenerate.
42462 2014-04-15 Jan Hubicka <jh@suse.cz>
42464 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
42465 (maybe_record_node, likely_target_p): Use it.
42467 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42470 Revert following patch
42472 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
42475 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
42476 software floating point or no floating point registers, do not
42477 allow any type in the FPRs. Eliminate a test for SPE SIMD types
42478 in GPRs that occurs after we tested for GPRs that would never be
42481 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
42482 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
42483 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
42484 specifically allow DDmode, since that does not use the SPE SIMD
42487 2014-03-21 Mark Wielaard <mjw@redhat.com>
42489 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
42490 as unsigned or int depending on type and value used.
42492 2014-04-15 Richard Biener <rguenther@suse.de>
42494 PR rtl-optimization/56965
42495 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
42496 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
42498 * alias.c (true_dependence_1): Do not call
42499 nonoverlapping_component_refs_p.
42500 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
42501 nonoverlapping_component_refs_p.
42502 (indirect_refs_may_alias_p): Likewise.
42504 2014-04-15 Teresa Johnson <tejohnson@google.com>
42506 * cfg.c (dump_bb_info): Fix flags check.
42507 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
42509 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42511 PR rtl-optimization/60663
42512 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
42515 2014-04-15 Richard Biener <rguenther@suse.de>
42517 * lto-streamer.h (LTO_major_version): Bump to 4.
42519 2014-04-15 Richard Biener <rguenther@suse.de>
42521 * common.opt (lto_partition_model): New enum.
42522 (flto-partition=): Merge separate options with a single with argument,
42523 add -flto-partition=one support.
42524 * flag-types.h (enum lto_partition_model): Declare.
42525 * opts.c (finish_options): Remove duplicate -flto-partition=
42527 * lto-wrapper.c (run_gcc): Adjust.
42529 2014-04-15 Richard Biener <rguenther@suse.de>
42531 * alias.c (ncr_compar): New function.
42532 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
42534 2014-04-15 Richard Biener <rguenther@suse.de>
42536 * alias.c (record_component_aliases): Do not walk BINFOs.
42538 2014-04-15 Richard Biener <rguenther@suse.de>
42540 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
42541 Add struct function argument and adjust.
42542 (find_func_aliases_for_call): Likewise.
42543 (find_func_aliases): Likewise.
42544 (find_func_clobbers): Likewise.
42545 (intra_create_variable_infos): Likewise.
42546 (compute_points_to_sets): Likewise.
42547 (ipa_pta_execute): Adjust. Do not push/pop cfun.
42549 2014-04-15 Richard Biener <rguenther@suse.de>
42551 * tree.c (iterative_hash_expr): Use enum tree_code_class
42552 to store TREE_CODE_CLASS.
42553 (tree_block): Likewise.
42554 (tree_set_block): Likewise.
42555 * tree.h (fold_build_pointer_plus_loc): Use
42556 convert_to_ptrofftype_loc.
42558 2014-04-15 Jakub Jelinek <jakub@redhat.com>
42561 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
42564 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
42566 * cfgloop.h (struct loop): Move force_vectorize down.
42567 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
42568 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
42569 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
42570 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
42571 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
42572 * tree-core.h (enum annot_expr_kind): Add new kind values.
42573 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
42574 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
42576 * tree.def (ANNOTATE_EXPR): Tweak comment.
42578 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42580 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
42583 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
42585 * tree.h (TYPE_IDENTIFIER): Declare.
42586 * tree.c (subrange_type_for_debug_p): Use it.
42587 * godump.c (go_format_type): Likewise.
42588 * dwarf2out.c (is_cxx_auto, modified_type_die,
42589 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
42590 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
42592 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42595 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
42597 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
42599 * config/i386/i386.c (examine_argument): Return bool. Return true if
42600 parameter should be passed in memory.
42601 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
42602 (construct_container): Update calls to examine_argument.
42603 (function_arg_advance_64): Ditto.
42604 (return_in_memory_32): Merge with ix86_return_in_memory.
42605 (return_in_memory_64): Ditto.
42606 (return_in_memory_ms_64): Ditto.
42608 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
42610 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
42611 * coverage.c (coverage_compute_profile_id): Handle externally visible
42614 2014-04-14 Martin Jambor <mjambor@suse.cz>
42616 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
42617 DECL_DISREGARD_INLINE_LIMITS functions.
42619 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42622 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
42624 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
42627 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
42628 optimize_insn_for_speed_p instead of
42629 optimize_function_for_speed_p.
42631 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
42633 * doc/invoke.texi (free): Document AArch64.
42635 2014-04-14 Richard Biener <rguenther@suse.de>
42637 PR tree-optimization/60042
42638 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
42639 (insert_into_preds_of_block): Do not prevent PHI insertion
42640 for REFERENCE exprs here ...
42641 (eliminate_dom_walker::before_dom_children): ... but prevent
42642 their use here under similar conditions when applied to the
42643 IL after PRE optimizations.
42645 2014-04-14 Richard Biener <rguenther@suse.de>
42647 * passes.def: Move early points-to after early SRA.
42649 2014-04-14 Richard Biener <rguenther@suse.de>
42651 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
42652 check for which sign-changes we allow when forwarding
42653 a converted value into a switch.
42655 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42657 * stor-layout.c (place_field): Finalize non-constant offset for the
42660 2014-04-14 Richard Biener <rguenther@suse.de>
42662 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
42664 (expand_switch_using_bit_tests_p): Likewise.
42665 (process_switch): Compute and pass on speed_p based on the
42667 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
42668 optimize_bb_for_speed_p.
42670 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
42672 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
42673 * function.h (struct function): Rename has_force_vect_loops into
42674 has_force_vectorize_loops.
42675 * lto-streamer-in.c (input_cfg): Adjust for renaming.
42676 (input_struct_function_base): Likewise.
42677 * lto-streamer-out.c (output_cfg): Likewise.
42678 (output_struct_function_base): Likewise.
42679 * omp-low.c (expand_omp_simd): Likewise.
42680 * tree-cfg.c (move_sese_region_to_fn): Likewise.
42681 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
42682 (version_loop_for_if_conversion): Likewise.
42683 (tree_if_conversion): Likewise.
42684 (main_tree_if_conversion): Likewise.
42685 (gate_tree_if_conversion): Likewise.
42686 * tree-inline.c (copy_loops): Likewise.
42687 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
42688 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
42689 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
42690 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
42691 * tree-vectorizer.c (vectorize_loops): Likewise.
42692 * tree-vectorizer.h (unlimited_cost_model): Likewise.
42694 2014-04-14 Richard Biener <rguenther@suse.de>
42697 * lto-streamer-out.c (wrap_refs): New function.
42698 (lto_output): Wrap symbol references in global initializes in
42699 type-preserving MEM_REFs.
42701 2014-04-14 Christian Bruel <christian.bruel@st.com>
42703 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
42705 2014-04-14 Christian Bruel <christian.bruel@st.com>
42707 * config/sh/sh.md (setmemqi): New expand pattern.
42708 * config/sh/sh.h (CLEAR_RATIO): Define.
42709 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
42710 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
42712 2014-04-14 Richard Biener <rguenther@suse.de>
42714 PR middle-end/55022
42715 * fold-const.c (negate_expr_p): Don't negate directional rounding
42717 (fold_negate_expr): Likewise.
42719 2014-04-14 Richard Biener <rguenther@suse.de>
42721 PR tree-optimization/59817
42722 PR tree-optimization/60453
42723 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
42724 recursion to catch all CHRECs in the scalar evolution and restrict
42725 the predicate for the remains appropriately.
42727 2014-04-12 Catherine Moore <clm@codesourcery.com>
42729 * config/mips/constraints.md: Add new register constraint "kb".
42730 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
42731 (*movhi_internal): Likewise.
42732 (*movqi_internal): Likewise.
42733 * config/mips/mips.h (M16_STORE_REGS): New register class.
42734 (REG_CLASS_NAMES): Add M16_STORE_REGS.
42735 (REG_CLASS_CONTENTS): Likewise.
42736 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
42738 2014-04-11 Tobias Burnus <burnus@net-b.de>
42741 * doc/invoke.texi (-Wformat-signedness): Document it.
42742 (Wformat=2): Mention that this enables -Wformat-signedness.
42744 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42746 * common/config/epiphany/epiphany-common.c
42747 (epiphany_option_optimization_table): Enable section anchors by
42748 default at -O1 or higher.
42749 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
42750 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
42751 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
42752 carries no extra cost.
42753 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
42754 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
42755 * config/epiphany/predicates.md (memclob_operand): New predicate.
42756 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
42757 Use memclob_operand predicate and X constraint for operand 3.
42759 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42761 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
42762 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
42765 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
42767 PR rtl-optimization/60651
42768 * mode-switching.c (optimize_mode_switching): Make sure to emit
42769 sets of a lower numbered entity before sets of a higher numbered
42770 entity to a mode of the same or lower priority.
42771 When creating a seginfo for a basic block that starts with a code
42772 label, move the insertion point past the code label.
42773 (new_seginfo): Document and enforce requirement that
42774 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
42775 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
42776 * doc/tm.texi: Regenerate.
42778 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
42781 * config/arc/arc.c (arc_save_restore): Fix assert typo.
42783 2013-04-11 Jakub Jelinek <jakub@redhat.com>
42785 * BASE-VER: Set to 4.10.0.
42787 2014-04-11 Tobias Burnus <burnus@net-b.de>
42790 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
42791 * doc/gcc.texi (Service): Update description in the @menu
42792 * doc/invoke.texi (Option Summary): Remove misplaced and
42795 2014-04-11 Steve Ellcey <sellcey@mips.com>
42796 Jakub Jelinek <jakub@redhat.com>
42798 PR middle-end/60556
42799 * expr.c (convert_move): Use emit_store_flag_force instead of
42800 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
42803 2014-04-11 Richard Biener <rguenther@suse.de>
42805 PR middle-end/60797
42806 * varasm.c (assemble_alias): Avoid endless error reporting
42807 recursion by setting TREE_ASM_WRITTEN.
42809 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42811 * config/s390/s390.md: Add a splitter for NOT rtx.
42813 2014-04-11 Jakub Jelinek <jakub@redhat.com>
42815 PR rtl-optimization/60663
42816 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
42818 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
42819 Jakub Jelinek <jakub@redhat.com>
42822 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
42823 flag from decl_node to node.
42825 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42828 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
42829 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
42830 ameliorating the cases where it can be.
42832 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
42835 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42837 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42838 (loadsync_<mode>): Change mode.
42839 (load_quadpti, store_quadpti): New.
42840 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42841 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42842 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
42844 2014-04-09 Cong Hou <congh@google.com>
42847 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
42850 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42852 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
42853 instead of vnor to exploit possible fusion opportunity in the
42855 (altivec_expand_vec_perm_const_le): Likewise.
42857 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
42859 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
42860 (loadsync_<mode>): Change mode.
42861 (load_quadpti, store_quadpti): New.
42862 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
42863 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
42865 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
42868 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
42869 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
42870 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
42872 2014-04-08 Richard Biener <rguenther@suse.de>
42874 PR middle-end/60706
42875 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
42876 a 64bit widest int print double-int similar to on HWI64 hosts.
42878 2014-04-08 Richard Biener <rguenther@suse.de>
42880 PR tree-optimization/60785
42881 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
42882 default defs properly.
42884 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
42886 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
42887 (Weffc++): Likewise.
42889 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
42891 * ipa-devirt.c (maybe_record_node): When node is not recorded,
42892 set completep to false rather than true.
42894 2014-04-07 Douglas B Rupp <rupp@adacore.com>
42897 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
42898 ARM_TARGET2_DWARF_FORMAT.
42900 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
42903 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
42904 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
42907 2014-04-07 Richard Biener <rguenther@suse.de>
42909 PR tree-optimization/60766
42910 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
42911 (may_eliminate_iv): Convert cand_value_at result to desired type.
42913 2014-04-07 Jason Merrill <jason@redhat.com>
42916 * common.opt (-fno-gnu-unique): Add.
42917 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
42919 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42921 * haifa-sched.c: Fix outdated function reference and minor
42922 grammar errors in introductory comment.
42924 2014-04-07 Richard Biener <rguenther@suse.de>
42926 PR middle-end/60750
42927 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
42928 for noreturn calls.
42929 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
42931 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
42934 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
42935 size accounting for thunks.
42936 (pa_asm_output_mi_thunk): Use final_start_function() and
42937 final_end_function() to output function start and end directives.
42939 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
42941 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
42942 device specific ISA/ feature information. Remove short_sp and
42943 errata_skip ds. Add avr_device_specific_features enum to have device
42945 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
42946 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
42947 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
42948 updated device specific info.
42949 * config/avr/avr-mcus.def: Merge device specific details to
42950 dev_attribute field.
42951 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
42953 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
42954 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
42955 assembler if RMW isa supported by current device.
42956 * config/avr/genmultilib.awk: Update as device info structure changed.
42957 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
42959 2014-04-04 Cong Hou <congh@google.com>
42961 PR tree-optimization/60656
42962 * tree-vect-stmts.c (supportable_widening_operation):
42963 Fix a bug that elements in a vector with vect_used_by_reduction
42964 property are incorrectly reordered when the operation on it is not
42965 consistant with the one in reduction operation.
42967 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
42969 PR rtl-optimization/60155
42970 * gcse.c (record_set_data): New function.
42971 (single_set_gcse): New function.
42972 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
42973 (hoist_code): Likewise.
42974 (get_pressure_class_and_nregs): Likewise.
42976 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
42978 * explow.c (probe_stack_range): Emit a final optimization blockage.
42980 2014-04-04 Anthony Green <green@moxielogic.com>
42982 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
42985 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
42988 * lto-cgraph.c (input_overwrite_node): Check that partitioning
42989 flags are set only during streaming.
42990 * ipa.c (process_references, walk_polymorphic_call_targets,
42991 symtab_remove_unreachable_nodes): Drop bodies of always inline
42992 after early inlining.
42993 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
42995 2014-04-04 Jakub Jelinek <jakub@redhat.com>
42996 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42999 * dwarf2out.c (const_ok_for_output_1): Reject expressions
43002 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43005 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
43007 (cortex_a53_fdivd): Likewise.
43009 2014-04-04 Martin Jambor <mjambor@suse.cz>
43012 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
43013 Adjust all callers.
43014 * cgraph.c (clone_of_p): Also return true if thunks match.
43015 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
43016 cgraph_function_or_thunk_node and an obsolete comment.
43017 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
43019 (build_function_decl_skip_args): Likewise.
43020 (set_new_clone_decl_and_node_flags): New function.
43021 (duplicate_thunk_for_node): Likewise.
43022 (redirect_edge_duplicating_thunks): Likewise.
43023 (cgraph_clone_node): New parameter args_to_skip, pass it to
43024 redirect_edge_duplicating_thunks which is called instead of
43025 cgraph_redirect_edge_callee.
43026 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
43027 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
43029 2014-04-04 Jeff Law <law@redhat.com>
43032 * config/arm/predicates.md (const_int_I_operand): New predicate.
43033 (const_int_M_operand): Similarly.
43034 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
43036 (insv_t2, extv_reg, extzv_t2): Likewise.
43037 (load_multiple_with_writeback): Similarly for const_int_I_operand.
43038 (pop_multiple_with_writeback_and_return): Likewise.
43039 (vfp_pop_multiple_with_writeback): Likewise
43041 2014-04-04 Richard Biener <rguenther@suse.de>
43044 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
43045 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
43047 * gimplify.h (gimple_add_tmp_var_fn): Declare.
43048 * gimplify.c (gimple_add_tmp_var_fn): New function.
43049 * gimple-expr.h (create_tmp_reg_fn): Declare.
43050 * gimple-expr.c (create_tmp_reg_fn): New function.
43051 * gimple-low.c (record_vars_into): Don't change cfun.
43052 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
43053 code generation without cfun.
43055 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
43058 * Makefile.in (install-driver): Fix shell scripting.
43060 2014-04-03 Cong Hou <congh@google.com>
43062 PR tree-optimization/60505
43063 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
43064 threshold of number of iterations below which no vectorization
43066 * tree-vect-loop.c (new_loop_vec_info):
43067 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
43068 * tree-vect-loop.c (vect_analyze_loop_operations):
43069 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
43070 * tree-vect-loop.c (vect_transform_loop):
43071 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
43072 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
43073 of iterations of the loop and see if we should build the epilogue.
43075 2014-04-03 Richard Biener <rguenther@suse.de>
43077 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
43078 (streamer_tree_cache_create): Adjust.
43079 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
43080 to allow optional nodes array.
43081 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
43082 (streamer_tree_cache_append): Likewise.
43083 (streamer_tree_cache_create): Create nodes array optionally
43084 as specified by parameter.
43085 * lto-streamer-out.c (create_output_block): Avoid maintaining
43086 the node array in the writer cache.
43087 (DFS_write_tree): Remove assertion.
43088 (produce_asm_for_decls): Free the out decl state hash table early.
43089 * lto-streamer-in.c (lto_data_in_create): Adjust for
43090 streamer_tree_cache_create prototype change.
43092 2014-04-03 Richard Biener <rguenther@suse.de>
43094 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
43095 set TREE_CHAIN to NULL_TREE.
43097 2014-04-03 Richard Biener <rguenther@suse.de>
43099 PR tree-optimization/60740
43100 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
43101 over all GIMPLE_COND operands.
43103 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
43105 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
43106 (Weffc++): Remove Scott's numbering, merge lists and reference
43109 2014-04-03 Nick Clifton <nickc@redhat.com>
43111 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
43114 2014-04-03 Martin Jambor <mjambor@suse.cz>
43116 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
43117 mention gcc_unreachable before failing.
43118 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
43121 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
43124 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
43125 inconsistent code and instead mark the context inconsistent.
43126 (possible_polymorphic_call_targets): For inconsistent contexts
43127 return empty complete list.
43129 2014-04-02 Anthony Green <green@moxielogic.com>
43131 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
43132 (extendqisi2, extendhisi2): Define.
43133 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
43134 (WCHAR_TYPE): Change to unsigned int.
43136 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43138 PR tree-optimization/60733
43139 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
43140 insertion point for PHI candidates to be the end of the feeding
43141 block for the PHI argument.
43143 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
43145 PR rtl-optimization/60650
43146 * lra-constraints.c (process_alt_operands): Decrease reject for
43147 earlyclobber matching.
43149 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43151 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
43153 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43155 * config/spu/spu.c (pad_bb): Do not crash when the last
43156 insn is CODE_FOR_blockage.
43158 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43160 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
43161 lies outside the target mode.
43163 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
43166 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
43167 software floating point or no floating point registers, do not
43168 allow any type in the FPRs. Eliminate a test for SPE SIMD types
43169 in GPRs that occurs after we tested for GPRs that would never be
43172 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
43173 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
43174 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
43175 specifically allow DDmode, since that does not use the SPE SIMD
43178 2014-04-02 Richard Biener <rguenther@suse.de>
43180 PR middle-end/60729
43181 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
43182 MODE_INTs. Properly use negv_optab.
43183 (expand_abs): Likewise.
43185 2014-04-02 Richard Biener <rguenther@suse.de>
43188 * Makefile.in (install-driver): Guard extra installs with special
43191 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
43193 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43194 Document vec_vgbbd.
43196 2014-04-01 Richard Henderson <rth@redhat.com>
43199 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
43200 alternative enabled before register allocation.
43202 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
43204 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
43205 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
43207 (nios2_large_got_address): Remove unneeded 'sym' parameter.
43208 (nios2_got_address): Update nios2_large_got_address call site.
43209 (nios2_delegitimize_address): New function.
43210 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
43211 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
43212 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
43214 2014-04-01 Martin Husemann <martin@duskware.de>
43216 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
43219 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
43221 PR rtl-optimization/60604
43222 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
43223 check from register_operand.
43224 (register_operand): Redefine in terms of general_operand.
43225 (nonmemory_operand): Use register_operand for the non-constant cases.
43227 2014-04-01 Richard Biener <rguenther@suse.de>
43229 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
43231 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
43233 * doc/invoke.texi (mapp-regs): Clarify.
43235 2014-03-31 Ulrich Drepper <drepper@gmail.com>
43237 * config/i386/avx512fintrin.h (__v32hi): Define type.
43238 (__v64qi): Likewise.
43239 (_mm512_set1_epi8): Define.
43240 (_mm512_set1_epi16): Define.
43241 (_mm512_set4_epi32): Define.
43242 (_mm512_set4_epi64): Define.
43243 (_mm512_set4_pd): Define.
43244 (_mm512_set4_ps): Define.
43245 (_mm512_setr4_epi64): Define.
43246 (_mm512_setr4_epi32): Define.
43247 (_mm512_setr4_pd): Define.
43248 (_mm512_setr4_ps): Define.
43249 (_mm512_setzero_epi32): Define.
43251 2014-03-31 Martin Jambor <mjambor@suse.cz>
43253 PR middle-end/60647
43254 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
43255 callsite_arguments_match_p. Updated all callers. Also check types of
43256 corresponding formal parameters and actual arguments.
43257 (not_all_callers_have_enough_arguments_p) Renamed to
43258 some_callers_have_mismatched_arguments_p.
43260 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
43262 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
43264 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
43267 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
43270 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
43272 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
43273 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
43275 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
43276 Use FMAMODE_NOVF512 mode iterator.
43277 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
43278 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
43279 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
43280 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
43282 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
43283 Use VF_128_256 mode iterator.
43284 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
43287 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43289 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
43290 static chain if needed.
43292 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43295 * lra-constraints.c (index_part_to_reg): New.
43296 (process_address): Use it.
43298 2014-03-27 Jeff Law <law@redhat.com>
43299 Jakub Jelinek <jakub@redhat.com>
43302 * expr.c (do_tablejump): Use simplify_gen_binary rather than
43303 gen_rtx_{PLUS,MULT} to build up the address expression.
43305 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
43306 creating non-canonical RTL.
43308 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43311 * ipa-inline.c (want_inline_small_function_p): Short circuit large
43312 functions; reorganize to make cheap checks first.
43313 (inline_small_functions): Do not estimate growth when dumping;
43315 * ipa-inline.h (inline_summary): Add min_size.
43316 (growth_likely_positive): New function.
43317 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
43318 (set_cond_stmt_execution_predicate): Cleanup.
43319 (estimate_edge_size_and_time): Compute min_size.
43320 (estimate_calls_size_and_time): Likewise.
43321 (estimate_node_size_and_time): Likewise.
43322 (inline_update_overall_summary): Update min_size.
43323 (do_estimate_edge_time): Likewise.
43324 (do_estimate_edge_size): Update.
43325 (do_estimate_edge_hints): Update.
43326 (growth_likely_positive): New function.
43328 2014-03-28 Jakub Jelinek <jakub@redhat.com>
43331 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
43332 also if addr has VOIDmode.
43334 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43336 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
43337 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
43339 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
43340 instructions as well as AdvancedSIMD loads.
43342 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43344 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
43345 Use crypto_aese type.
43346 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
43347 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
43348 crypto_aese, crypto_aesmc. Move to types.md.
43349 * config/arm/types.md (crypto_aes): Split into crypto_aese,
43351 * config/arm/iterators.md (crypto_type): Likewise.
43353 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
43355 * cgraph.c: Include expr.h and tree-dfa.h.
43356 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
43359 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
43362 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
43363 regs from checking multi-reg pseudos.
43365 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43367 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
43369 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43371 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
43372 if it would clobber the stack pointer, even temporarily.
43374 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
43376 * mode-switching.c: Make small adjustments to the top comment.
43378 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
43380 * config/rs6000/constraints.md (wD constraint): New constraint to
43381 match the constant integer to get the top DImode/DFmode out of a
43382 vector in a VSX register.
43384 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
43385 match the constant integer to get the top DImode/DFmode out of a
43386 vector in a VSX register.
43388 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
43391 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
43394 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
43395 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
43397 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
43398 Optimize vec_extract of 64-bit values, where the value being
43399 extracted is in the top word, where we can use scalar
43400 instructions. Add direct move and store support. Combine the big
43401 endian/little endian vector select load support into a single insn.
43402 (vsx_extract_<mode>_internal1): Likewise.
43403 (vsx_extract_<mode>_internal2): Likewise.
43404 (vsx_extract_<mode>_load): Likewise.
43405 (vsx_extract_<mode>_store): Likewise.
43406 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
43407 combined into vsx_extract_<mode>_load.
43408 (vsx_extract_<mode>_one_le): Likewise.
43410 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
43411 define the top 64-bit vector element.
43413 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
43416 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43417 Document vec_vbpermq builtin.
43420 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
43421 enable use of xxsldwi and xxpermdi builtin functions.
43422 (vec_xxpermdi): Likewise.
43424 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
43425 Document use of vec_xxsldwi and vec_xxpermdi builtins.
43427 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
43429 PR rtl-optimization/60650
43430 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
43432 (find_spills_for): New.
43433 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
43434 Spill all pseudos on the second iteration.
43436 2014-03-27 Marek Polacek <polacek@redhat.com>
43439 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
43442 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43444 * config/s390/s390.c (s390_can_use_return_insn): Check for
43445 call-saved FPRs on 31 bit.
43447 2014-03-27 Jakub Jelinek <jakub@redhat.com>
43449 PR middle-end/60682
43450 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
43451 if they need regimplification, just drop them instead of
43452 calling gimple_regimplify_operands on them.
43454 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
43457 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
43458 (aarch64_frame_pointer_required): Adjust logic.
43459 (aarch64_can_eliminate): Adjust logic.
43460 (aarch64_override_options_after_change): Adjust logic.
43462 2014-03-27 Dehao Chen <dehao@google.com>
43464 * ipa-inline.c (early_inliner): Update node's inline info.
43466 2014-03-26 Dehao Chen <dehao@google.com>
43468 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
43469 compiler inserted conditional jumps for NAN float check.
43471 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43473 * ubsan.h (ubsan_create_data): Change second argument's type
43474 to const location_t *.
43475 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
43477 (ubsan_create_data): Change second argument to const location_t *PLOC.
43478 Create Loc field whenever PLOC is non-NULL.
43479 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
43480 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
43484 * real.c (real_to_integer2): Change type of low to UHWI.
43486 2014-03-26 Tobias Burnus <burnus@net-b.de>
43488 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
43489 (CILK_SELF_SPECS): New define.
43490 (driver_self_specs): Use it.
43492 2014-03-26 Richard Biener <rguenther@suse.de>
43494 * tree-pretty-print.c (percent_K_format): Implement special
43495 case for LTO and its stripped down BLOCK tree.
43497 2014-03-26 Jakub Jelinek <jakub@redhat.com>
43500 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
43502 * tree-vrp.c (simplify_internal_call_using_ranges): If only
43503 one range is range_int_cst_p, but not both, at least optimize
43504 addition/subtraction of 0 and multiplication by 0 or 1.
43505 * gimple-fold.c (gimple_fold_call): Fold
43506 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
43507 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
43508 INTEGER_CSTs, try to fold at least x * 0 and y - y.
43510 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
43512 PR rtl-optimization/60452
43513 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
43514 <case REG>: Return 1 for invalid offsets from the frame pointer.
43516 2014-03-26 Marek Polacek <polacek@redhat.com>
43519 * doc/extend.texi (C Extensions): Mention variable-length arrays in
43522 2014-03-26 Marek Polacek <polacek@redhat.com>
43525 * doc/extend.texi (Designated Inits): Describe what happens to omitted
43528 2014-03-26 Marek Polacek <polacek@redhat.com>
43531 * ira-color.c (update_conflict_hard_regno_costs): Perform the
43532 multiplication in unsigned type.
43534 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43536 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
43538 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
43540 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
43542 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43545 * cif-code.def (UNREACHABLE) New code.
43546 * ipa-inline.c (inline_small_functions): Skip edges to
43547 __builtlin_unreachable.
43548 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
43549 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
43550 predicate to __bulitin_unreachable.
43551 (set_cond_stmt_execution_predicate): Fix issue when
43552 invert_tree_comparison returns ERROR_MARK.
43553 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
43554 propagate to inline clones.
43555 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
43557 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
43558 * cgraphclones.c (cgraph_clone_node): If call destination is already
43559 ureachable, do not redirect it back.
43560 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
43563 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
43565 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
43566 Do not modify inline clones.
43568 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43570 * config/i386/i386.md (general_sext_operand): New mode attr.
43571 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
43572 don't generate (sign_extend (const_int)).
43573 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
43574 operands[2]. Use We constraint instead of <i> and
43575 <general_sext_operand> predicate instead of <general_operand>.
43576 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
43577 * config/i386/constraints.md (We): New constraint.
43578 * config/i386/predicates.md (x86_64_sext_operand,
43579 sext_operand): New predicates.
43581 2014-03-25 Martin Jambor <mjambor@suse.cz>
43584 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
43585 inconsistent devirtualizations to __builtin_unreachable.
43587 2014-03-25 Marek Polacek <polacek@redhat.com>
43590 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
43592 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
43594 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
43595 order of elements for big-endian.
43597 2014-03-25 Richard Biener <rguenther@suse.de>
43599 PR middle-end/60635
43600 * gimplify-me.c (gimple_regimplify_operands): Update the
43603 2014-03-25 Martin Jambor <mjambor@suse.cz>
43606 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
43607 (lto_output_varpool_node): Likewise.
43608 (input_overwrite_node): Likewise.
43609 (input_varpool_node): Likewise.
43611 2014-03-25 Richard Biener <rguenther@suse.de>
43613 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
43614 (run_gcc): Likewise.
43616 2014-03-25 Jakub Jelinek <jakub@redhat.com>
43618 * combine.c (simplify_compare_const): Add MODE argument.
43619 Handle mode_width 0 as very large mode_width.
43620 (try_combine, simplify_comparison): Adjust callers.
43622 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
43623 type to avoid signed integer overflow.
43624 * explow.c (plus_constant): Likewise.
43626 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
43628 * doc/generic.texi: Correct typos.
43630 2014-03-24 Tobias Burnus <burnus@net-b.de>
43632 * doc/invoke.texi (-flto): Expand section about
43633 using static libraries with LTO.
43635 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43637 PR rtl-optimization/60501
43638 * optabs.def (addptr3_optab): New optab.
43639 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
43640 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
43641 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
43643 * lra.c (emit_add3_insn): Use the addptr pattern if available.
43645 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
43647 2014-03-24 Ulrich Drepper <drepper@gmail.com>
43649 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
43652 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
43653 (_mm256_undefined_ps): Define.
43654 (_mm256_undefined_pd): Define.
43655 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
43656 (_mm_undefined_pd): Define.
43657 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
43658 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
43659 (_mm512_undefined_ps): Define.
43660 (_mm512_undefined_pd): Define.
43661 Use _mm*_undefined_*.
43662 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
43664 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
43666 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
43667 (lshr_simd): DI mode added.
43668 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
43669 (aarch64_ushr_simddi): Likewise.
43670 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
43671 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
43672 (vshrd_n_u64): Likewise.
43674 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43676 * Makefile.in (s-macro_list): Depend on cc1.
43678 2014-03-23 Teresa Johnson <tejohnson@google.com>
43680 * ipa-utils.c (ipa_print_order): Use specified dump file.
43682 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
43684 PR rtl-optimization/60601
43685 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43687 * gcc.c (eval_spec_function): Initialize save_growing_value.
43689 2014-03-22 Jakub Jelinek <jakub@redhat.com>
43692 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
43693 code == MINUS_EXPR, never swap op0 with op1.
43695 * toplev.c (init_local_tick): Avoid signed integer multiplication
43697 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
43698 shift by first operand's bitsize.
43700 2014-03-21 Jakub Jelinek <jakub@redhat.com>
43703 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
43704 redefine to 1 or 0.
43705 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
43706 TARGET_ISA_64BIT_P(x).
43708 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43710 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
43711 pattern for vector nor instead of subtract from splat(-1).
43712 (altivec_expand_vec_perm_const_le): Likewise.
43714 2014-03-21 Richard Henderson <rth@twiddle.net>
43717 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
43718 related insns after epilogue_completed.
43720 2014-03-21 Martin Jambor <mjambor@suse.cz>
43723 * cgraph.h (symtab_node): New flag body_removed.
43724 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
43725 when removing bodies.
43726 * symtab.c (dump_symtab_base): Dump body_removed flag.
43727 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
43728 had their bodies removed.
43730 2014-03-21 Martin Jambor <mjambor@suse.cz>
43733 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
43736 2014-03-21 Richard Biener <rguenther@suse.de>
43738 PR tree-optimization/60577
43739 * tree-core.h (struct tree_base): Document nothrow_flag use
43740 in DECL_NONALIASED.
43741 * tree.h (DECL_NONALIASED): New.
43742 (may_be_aliased): Adjust.
43743 * coverage.c (build_var): Set DECL_NONALIASED.
43745 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43747 * expr.c (expand_expr_real_1): Remove outdated comment.
43749 2014-03-20 Jakub Jelinek <jakub@redhat.com>
43751 PR middle-end/60597
43752 * ira.c (adjust_cleared_regs): Call copy_rtx on
43753 *reg_equiv[REGNO (loc)].src_p before passing it to
43754 simplify_replace_fn_rtx.
43757 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
43758 into CONST, put pic register as first operand of PLUS. Use
43759 gen_const_mem for both 32-bit and 64-bit PIC got loads.
43761 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
43763 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
43765 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43767 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
43768 around for store forwarding issue in the FPU on the UT699.
43769 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
43770 loads and operations if -mfix-ut699 is specified.
43771 (divtf3_hq): Tweak attribute.
43772 (sqrttf2_hq): Likewise.
43774 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
43776 * calls.c (store_one_arg): Remove incorrect const qualification on the
43777 type of the temporary.
43778 * cfgexpand.c (expand_return): Likewise.
43779 * expr.c (expand_constructor): Likewise.
43780 (expand_expr_real_1): Likewise.
43782 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
43784 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
43787 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
43790 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
43792 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
43794 * config/arm/aarch-common-protos.h
43795 (alu_cost_table): Fix spelling of "extend".
43796 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
43798 2014-03-19 Richard Biener <rguenther@suse.de>
43800 PR middle-end/60553
43801 * tree-core.h (tree_type_common): Re-order pointer members
43802 to reduce recursion depth during GC walks.
43804 2014-03-19 Marek Polacek <polacek@redhat.com>
43807 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
43808 before accessing it.
43810 2014-03-19 Richard Biener <rguenther@suse.de>
43813 * lto-streamer-in.c (input_function): In WPA stage do not drop
43816 2014-03-19 Jakub Jelinek <jakub@redhat.com>
43818 PR tree-optimization/60559
43819 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
43820 with build_zero_cst assignment.
43822 2014-03-18 Kai Tietz <ktietz@redhat.com>
43824 PR rtl-optimization/56356
43825 * sdbout.c (sdbout_parms): Verify that parms'
43826 incoming argument is valid.
43827 (sdbout_reg_parms): Likewise.
43829 2014-03-18 Richard Henderson <rth@redhat.com>
43832 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
43833 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
43834 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
43836 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
43838 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
43839 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
43840 Italicize plugin event names in description. Explain that
43841 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
43842 Remind that no GCC functions should be called after PLUGIN_FINISH.
43843 Explain what pragmas with expansion are.
43845 2014-03-18 Martin Liska <mliska@suse.cz>
43847 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
43848 gimple call statement is update.
43849 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
43850 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
43852 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43855 * ubsan.c (ubsan_instrument_unreachable): Call
43856 initialize_sanitizer_builtins.
43857 (ubsan_pass): Likewise.
43860 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
43861 varpool_finalize_decl instead of rest_of_decl_compilation.
43863 2014-03-18 Richard Biener <rguenther@suse.de>
43865 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
43866 by using bitmap_and_compl instead of bitmap_and_compl_into.
43867 (df_rd_transfer_function): Likewise.
43869 2014-03-18 Richard Biener <rguenther@suse.de>
43871 * doc/lto.texi (fresolution): Fix typo.
43873 2014-03-18 Richard Biener <rguenther@suse.de>
43875 * doc/invoke.texi (flto): Update for changes in 4.9.
43877 2014-03-18 Richard Biener <rguenther@suse.de>
43879 * doc/loop.texi: Remove section on the removed lambda framework.
43880 Update loop docs with recent changes in preserving loop structure.
43882 2014-03-18 Richard Biener <rguenther@suse.de>
43884 * doc/lto.texi (-fresolution): Document.
43886 2014-03-18 Richard Biener <rguenther@suse.de>
43888 * doc/contrib.texi: Adjust my name.
43890 2014-03-18 Jakub Jelinek <jakub@redhat.com>
43893 * internal-fn.c: Include diagnostic-core.h.
43894 (expand_BUILTIN_EXPECT): New function.
43895 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
43896 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
43897 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
43898 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
43899 IFN_BUILTIN_EXPECT.
43900 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
43901 Revert 3 argument __builtin_expect code.
43902 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
43903 * gimple-fold.c (gimple_fold_call): Likewise.
43904 * tree.h (fold_builtin_expect): New prototype.
43905 * builtins.c (build_builtin_expect_predicate): Add predictor
43906 argument, if non-NULL, create 3 argument __builtin_expect.
43907 (fold_builtin_expect): No longer static. Add ARG2 argument,
43908 pass it through to build_builtin_expect_predicate.
43909 (fold_builtin_2): Adjust caller.
43910 (fold_builtin_3): Handle BUILT_IN_EXPECT.
43911 * internal-fn.def (BUILTIN_EXPECT): New.
43913 2014-03-18 Tobias Burnus <burnus@net-b.de>
43916 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
43917 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
43918 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
43920 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
43923 * predict.c (combine_predictions_for_bb): Fix up formatting.
43924 (expr_expected_value_1, expr_expected_value): Add predictor argument,
43925 fill what it points to if non-NULL.
43926 (tree_predict_by_opcode): Adjust caller, use the predictor.
43927 * predict.def (PRED_COMPARE_AND_SWAP): Add.
43929 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
43931 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
43932 proper constant for the store mode.
43934 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
43936 * symtab.c (change_decl_assembler_name): Fix transparent alias
43937 chain construction.
43939 2014-03-16 Renlin Li <Renlin.Li@arm.com>
43941 * config/aarch64/aarch64.c: Correct the comments about the
43942 aarch64 stack layout.
43944 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
43946 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
43947 check for GF_OMP_FOR_KIND_FOR.
43949 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
43951 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
43952 ymm and zmm register names.
43954 2014-03-17 Jakub Jelinek <jakub@redhat.com>
43957 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
43958 note creation for the 2010-08-31 changes.
43960 2014-03-17 Marek Polacek <polacek@redhat.com>
43962 PR middle-end/60534
43963 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
43964 as -fno-tree-loop-vectorize.
43965 (expand_omp_simd): Likewise.
43967 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
43969 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
43970 (eligible_for_call_delay): New prototype.
43971 * config/sparc/sparc.c (tls_call_delay): Rename into...
43972 (eligible_for_call_delay): ...this. Return false if the instruction
43973 cannot be put in the delay slot of a branch.
43974 (eligible_for_restore_insn): Simplify.
43975 (eligible_for_return_delay): Return false if the instruction cannot be
43976 put in the delay slot of a branch and simplify.
43977 (eligible_for_sibcall_delay): Return false if the instruction cannot be
43978 put in the delay slot of a branch.
43979 * config/sparc/sparc.md (fix_ut699): New attribute.
43980 (tls_call_delay): Delete.
43981 (in_call_delay): Reimplement.
43982 (eligible_for_sibcall_delay): Rename into...
43983 (in_sibcall_delay): ...this.
43984 (eligible_for_return_delay): Rename into...
43985 (in_return_delay): ...this.
43986 (in_branch_delay): Reimplement.
43987 (in_uncond_branch_delay): Delete.
43988 (in_annul_branch_delay): Delete.
43990 2014-03-14 Richard Henderson <rth@redhat.com>
43993 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
43994 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
43995 (*floathi<X87MODEF>2_i387_with_temp): Remove.
43996 (floathi splitters): Remove.
43997 (float<SWI48x>xf2): New pattern.
43998 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
43999 code that tried to handle DImode for 32-bit, but which was excluded
44000 by the pattern's condition. Drop allocation of stack temporary.
44001 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
44002 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
44003 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
44004 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
44005 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
44006 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
44007 (*float<SWI48><MODEF>2_sse_interunit): Remove.
44008 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
44009 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
44010 (*float<SWI48x><X87MODEF>2_i387): Remove.
44011 (all float _with_temp splitters): Remove.
44012 (*float<SWI48x><MODEF>2_i387): New pattern.
44013 (*float<SWI48><MODEF>2_sse): New pattern.
44014 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
44015 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
44017 2014-03-14 Jakub Jelinek <jakub@redhat.com>
44018 Marek Polacek <polacek@redhat.com>
44020 PR middle-end/60484
44021 * common.opt (dump_base_name_prefixed): New Variable.
44022 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
44023 if x_dump_base_name_prefixed is already set, set it at the end.
44025 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
44027 PR rtl-optimization/60508
44028 * lra-constraints.c (get_reload_reg): Add new parameter
44030 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
44031 Pass the new parameter values.
44033 2014-03-14 Richard Biener <rguenther@suse.de>
44035 * common.opt: Revert unintented changes from r205065.
44036 * opts.c: Likewise.
44038 2014-03-14 Richard Biener <rguenther@suse.de>
44040 PR middle-end/60518
44041 * cfghooks.c (split_block): Properly adjust all loops the
44042 block was a latch of.
44044 2014-03-14 Martin Jambor <mjambor@suse.cz>
44047 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
44050 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
44053 * config/avr/avr.c (avr_set_current_function): Pass function name
44054 through default_strip_name_encoding before sanity checking instead
44055 of skipping the first char of the assembler name.
44057 2014-03-13 Richard Henderson <rth@redhat.com>
44060 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
44061 (ix86_force_to_memory, ix86_free_from_memory): Remove.
44062 * config/i386/i386-protos.h: Likewise.
44063 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
44064 in the expander instead of a splitter.
44065 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
44066 any possibility of requiring a memory.
44067 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
44068 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
44069 (fp branch splitters): Update for ix86_split_fp_branch.
44070 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
44071 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
44072 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
44073 (*fop_<MODEF>_2_i387): Remove f/r alternative.
44074 (*fop_<MODEF>_3_i387): Likewise.
44075 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
44076 (splitters for the fop_* register patterns): Remove.
44077 (fscalexf4_i387): Rename from *fscalexf4_i387.
44078 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
44080 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44082 PR tree-optimization/59779
44083 * tree-dfa.c (get_ref_base_and_extent): Use double_int
44084 type for bitsize and maxsize instead of HOST_WIDE_INT.
44086 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
44088 PR rtl-optimization/57320
44089 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
44090 the CFG after thread_prologue_and_epilogue_insns.
44092 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
44094 PR rtl-optimization/57189
44095 * lra-constraints.c (process_alt_operands): Disfavor spilling
44098 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
44100 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
44102 2014-03-13 Jakub Jelinek <jakub@redhat.com>
44104 PR tree-optimization/59025
44105 PR middle-end/60418
44106 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
44107 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
44109 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
44112 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
44113 calls of avr_out_plus_1.
44115 2014-03-13 Bin Cheng <bin.cheng@arm.com>
44117 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
44118 BB's single pred and update the father loop's latch info later.
44120 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
44122 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
44126 (VEC_base): Likewise.
44127 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
44128 registers, we need to swap double words in little endian mode.
44130 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
44131 to be a container mode for 128-bit integer operations added in ISA
44132 2.07. Unlike TImode and PTImode, the preferred register set is
44133 the Altivec/VMX registers for the 128-bit operations.
44135 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
44137 (rs6000_split_128bit_ok_p): Likewise.
44139 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
44140 macros for creating ISA 2.07 normal and overloaded builtin
44141 functions with 3 arguments.
44142 (BU_P8V_OVERLOAD_3): Likewise.
44143 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
44144 for use as overloaded functions.
44145 (VPERM_1TI_UNS): Likewise.
44146 (VSEL_1TI): Likewise.
44147 (VSEL_1TI_UNS): Likewise.
44148 (ST_INTERNAL_1ti): Likewise.
44149 (LD_INTERNAL_1ti): Likewise.
44150 (XXSEL_1TI): Likewise.
44151 (XXSEL_1TI_UNS): Likewise.
44152 (VPERM_1TI): Likewise.
44153 (VPERM_1TI_UNS): Likewise.
44154 (XXPERMDI_1TI): Likewise.
44155 (SET_1TI): Likewise.
44156 (LXVD2X_V1TI): Likewise.
44157 (STXVD2X_V1TI): Likewise.
44158 (VEC_INIT_V1TI): Likewise.
44159 (VEC_SET_V1TI): Likewise.
44160 (VEC_EXT_V1TI): Likewise.
44161 (EQV_V1TI): Likewise.
44162 (NAND_V1TI): Likewise.
44163 (ORC_V1TI): Likewise.
44164 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
44165 added in ISA 2.07. Add both normal 'altivec' builtins, and the
44166 overloaded builtin.
44167 (VADDUQM): Likewise.
44168 (VSUBCUQ): Likewise.
44169 (VADDEUQM): Likewise.
44170 (VADDECUQ): Likewise.
44171 (VSUBEUQM): Likewise.
44172 (VSUBECUQ): Likewise.
44174 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
44175 __int128_t and __uint128_t types.
44176 (__uint128_type): Likewise.
44177 (altivec_categorize_keyword): Add support for vector __int128_t,
44178 vector __uint128_t, vector __int128, and vector unsigned __int128
44179 as a container type for TImode operations that need to be done in
44180 VSX/Altivec registers.
44181 (rs6000_macro_to_expand): Likewise.
44182 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
44183 to support 128-bit integer instructions vaddcuq, vadduqm,
44184 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
44185 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
44187 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
44188 for V1TImode, and set up preferences to use VSX/Altivec registers.
44189 Setup VSX reload handlers.
44190 (rs6000_debug_reg_global): Likewise.
44191 (rs6000_init_hard_regno_mode_ok): Likewise.
44192 (rs6000_preferred_simd_mode): Likewise.
44193 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
44194 (easy_altivec_constant): Likewise.
44195 (output_vec_const_move): Likewise.
44196 (rs6000_expand_vector_set): Convert V1TImode set and extract to
44198 (rs6000_expand_vector_extract): Likewise.
44199 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
44201 (rs6000_const_vec): Add support for V1TImode.
44202 (rs6000_emit_le_vsx_load): Swap double words when loading or
44203 storing TImode/V1TImode.
44204 (rs6000_emit_le_vsx_store): Likewise.
44205 (rs6000_emit_le_vsx_move): Likewise.
44206 (rs6000_emit_move): Add support for V1TImode.
44207 (altivec_expand_ld_builtin): Likewise.
44208 (altivec_expand_st_builtin): Likewise.
44209 (altivec_expand_vec_init_builtin): Likewise.
44210 (altivec_expand_builtin): Likewise.
44211 (rs6000_init_builtins): Add support for V1TImode type. Add
44212 support for ISA 2.07 128-bit integer builtins. Define type names
44213 for the VSX/Altivec vector types.
44214 (altivec_init_builtins): Add support for overloaded vector
44215 functions with V1TImode type.
44216 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
44217 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
44219 (rs6000_split_128bit_ok_p): Likewise.
44220 (rs6000_handle_altivec_attribute): Create V1TImode from vector
44221 __int128_t and vector __uint128_t.
44223 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
44224 and mode attributes.
44226 (VSX_M2): Likewise.
44231 (VS_scalar): Likewise.
44232 (VS_double): Likewise.
44233 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
44235 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
44236 we support the ISA 2.07 128-bit integer arithmetic instructions.
44237 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
44238 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
44239 and TImode types for use with the builtin functions.
44240 (V1TI_type_node): Likewise.
44241 (unsigned_V1TI_type_node): Likewise.
44242 (intTI_type_internal_node): Likewise.
44243 (uintTI_type_internal_node): Likewise.
44245 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
44246 128-bit builtin functions.
44247 (UNSPEC_VADDEUQM): Likewise.
44248 (UNSPEC_VADDECUQ): Likewise.
44249 (UNSPEC_VSUBCUQ): Likewise.
44250 (UNSPEC_VSUBEUQM): Likewise.
44251 (UNSPEC_VSUBECUQ): Likewise.
44252 (VM): Add V1TImode to vector mode iterators.
44254 (VI_unit): Likewise.
44255 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
44256 (altivec_vaddcuq): Likewise.
44257 (altivec_vsubuqm): Likewise.
44258 (altivec_vsubcuq): Likewise.
44259 (altivec_vaddeuqm): Likewise.
44260 (altivec_vaddecuq): Likewise.
44261 (altivec_vsubeuqm): Likewise.
44262 (altivec_vsubecuq): Likewise.
44264 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
44266 (BOOL_128): Likewise.
44267 (BOOL_REGS_OUTPUT): Likewise.
44268 (BOOL_REGS_OP1): Likewise.
44269 (BOOL_REGS_OP2): Likewise.
44270 (BOOL_REGS_UNARY): Likewise.
44271 (BOOL_REGS_AND_CR0): Likewise.
44273 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
44274 128-bit integer builtin support.
44275 (vec_vadduqm): Likewise.
44276 (vec_vaddecuq): Likewise.
44277 (vec_vaddeuqm): Likewise.
44278 (vec_vsubecuq): Likewise.
44279 (vec_vsubeuqm): Likewise.
44280 (vec_vsubcuq): Likewise.
44281 (vec_vsubuqm): Likewise.
44283 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
44284 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
44285 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
44286 128-bit integer add/subtract to ISA 2.07.
44288 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
44290 * config/arc/arc.c (arc_predicate_delay_insns):
44291 Fix third argument passed to conditionalize_nonjump.
44293 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
44295 * config/aarch64/aarch64-builtins.c
44296 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
44297 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
44298 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
44299 instead of __builtin_lfloor.
44300 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
44302 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44304 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
44305 (tree_ssa_ifcombine_bb_1): New function.
44306 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
44307 is an empty forwarder block to then_bb or vice versa and then_bb
44308 and else_bb are effectively swapped.
44310 2014-03-12 Christian Bruel <christian.bruel@st.com>
44313 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
44314 REG_CFA_DEF_CFA note.
44315 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
44316 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
44318 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
44320 PR tree-optimization/60454
44321 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
44323 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44325 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
44326 Do not define target_cpu_default2 to generic.
44327 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
44328 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
44329 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
44331 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44332 Marc Glisse <marc.glisse@inria.fr>
44334 PR tree-optimization/60502
44335 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
44336 instead of build_low_bits_mask.
44338 2014-03-12 Jakub Jelinek <jakub@redhat.com>
44340 PR middle-end/60482
44341 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
44342 if there are multiple uses, but op doesn't live on E edge.
44343 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
44344 clobber stmts before __builtin_unreachable.
44346 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
44348 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
44349 hard_frame_pointer_rtx.
44350 * cse.c (cse_insn): Remove volatile check.
44351 * cselib.c (cselib_process_insn): Likewise.
44352 * dse.c (scan_insn): Likewise.
44354 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44356 * config/arc/arc.c (conditionalize_nonjump): New function,
44358 (arc_ifcvt): ... this.
44359 (arc_predicate_delay_insns): Use it.
44361 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
44363 * config/arc/predicates.md (extend_operand): During/after reload,
44364 allow const_int_operand.
44365 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
44366 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
44367 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
44369 (umulsi3_highpart_i): Likewise.
44371 2014-03-11 Richard Biener <rguenther@suse.de>
44373 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
44374 Add asserts to guard possible wrong-code bugs.
44376 2014-03-11 Richard Biener <rguenther@suse.de>
44378 PR tree-optimization/60429
44379 PR tree-optimization/60485
44380 * tree-ssa-structalias.c (set_union_with_increment): Properly
44381 take into account all fields that overlap the shifted vars.
44382 (do_sd_constraint): Likewise.
44383 (do_ds_constraint): Likewise.
44384 (get_constraint_for_ptr_offset): Likewise.
44386 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
44388 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
44389 (nios2_compute_frame_layout):
44390 Add calculation of cfun->machine->fp_save_offset.
44391 (nios2_expand_prologue): Correct setting of frame pointer register
44393 (nios2_expand_epilogue): Update recovery of stack pointer from
44394 frame pointer accordingly.
44395 (nios2_initial_elimination_offset): Update calculation of offset
44396 for eliminating to HARD_FRAME_POINTER_REGNUM.
44398 2014-03-10 Jakub Jelinek <jakub@redhat.com>
44401 * ipa.c (symtab_remove_unreachable_nodes): Don't call
44402 cgraph_get_create_node on VAR_DECLs.
44404 2014-03-10 Richard Biener <rguenther@suse.de>
44406 PR middle-end/60474
44407 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
44409 2014-03-08 Douglas B Rupp <rupp@gnat.com>
44411 * config/vms/vms.opt (vms_float_format): New variable.
44413 2014-03-08 Tobias Burnus <burnus@net-b.de>
44415 * doc/invoke.texi (-fcilkplus): Update implementation status.
44417 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
44418 Richard Biener <rguenther@suse.de>
44420 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
44421 consistently accross all TUs.
44422 (run_gcc): Enable -fshort-double automatically at link at link-time
44423 and disallow override.
44425 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
44428 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
44429 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
44430 if they can't be used.
44432 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44434 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
44435 for Solaris 11/x86 ld.
44436 * configure: Regenerate.
44438 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44440 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
44441 (LIB_TLS_SPEC): Save as ld_tls_libs.
44442 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
44443 (HAVE_AS_IX86_TLSLDM): New test.
44444 * configure, config.in: Regenerate.
44445 * config/i386/i386.c (legitimize_tls_address): Fall back to
44446 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
44447 cannot support TLS_MODEL_LOCAL_DYNAMIC.
44448 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
44449 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
44451 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
44453 * common.opt (fira-loop-pressure): Mark as optimization.
44455 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
44457 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
44458 an OpenMP mappable type.
44460 2014-03-06 Matthias Klose <doko@ubuntu.com>
44462 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
44463 MULTILIB_OSDIRNAMES is not defined.
44465 2014-03-06 Jakub Jelinek <jakub@redhat.com>
44466 Meador Inge <meadori@codesourcery.com>
44469 * config/arm/arm.c (arm_tls_symbol_p): Remove.
44470 (arm_legitimize_address): Call legitimize_tls_address for any
44471 arm_tls_referenced_p expression, handle constant addend. Call it
44472 before testing for !TARGET_ARM.
44473 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
44475 2014-03-06 Richard Biener <rguenther@suse.de>
44477 PR middle-end/60445
44481 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44483 * tree-streamer.c (record_common_node): Assert we don't record
44484 nodes with type double.
44485 (preload_common_node): Skip type double, complex double and double
44486 pointer since it is now frontend dependent due to fshort-double option.
44488 2014-03-06 Richard Biener <rguenther@suse.de>
44490 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
44491 or -fno-lto is specified and the linker has full plugin support.
44492 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
44493 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
44494 * lto-wrapper.c (merge_and_complain): Merge compile-time
44495 optimization levels.
44496 (run_gcc): And pass it through to the link options.
44498 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
44502 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44504 * cselib.c (remove_useless_values): Skip to avoid quadratic
44505 behavior if the condition moved from...
44506 (cselib_process_insn): ... here holds.
44508 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44511 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
44512 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
44515 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
44516 (TM_H): Add x86-tune.def.
44518 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44520 * config/aarch64/aarch64.c (generic_tunings):
44521 Use cortexa57_extra_costs.
44523 2014-03-05 Jakub Jelinek <jakub@redhat.com>
44526 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
44527 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
44528 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
44531 2014-03-04 Heiher <r@hev.cc>
44533 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
44534 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
44536 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
44538 * config/i386/predicates.md (const2356_operand): Change to ...
44539 (const2367_operand): ... this.
44540 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
44542 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44543 (*avx512pf_scatterpf<mode>sf): Ditto.
44544 (avx512pf_scatterpf<mode>df): Ditto.
44545 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44546 (*avx512pf_scatterpf<mode>df): Ditto.
44547 * config/i386/i386.c (ix86_expand_builtin): Update
44548 incorrect hint operand error message.
44550 2014-03-04 Richard Biener <rguenther@suse.de>
44552 * lto-section-in.c (lto_get_section_data): Fix const cast.
44554 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
44556 * tree-streamer.c (record_common_node): Assert we don't record
44557 nodes with type double.
44558 (preload_common_node): Skip type double, complex double and double
44559 pointer since it is now frontend dependent due to fshort-double option.
44561 2014-03-04 Richard Biener <rguenther@suse.de>
44564 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
44565 (lto_input_toplevel_asms): Likewise.
44566 * lto-section-in.c (lto_get_section_data): Instead do it here
44569 2014-03-04 Richard Biener <rguenther@suse.de>
44571 PR tree-optimization/60382
44572 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
44573 dead PHIs a reduction.
44575 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
44577 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
44579 (_mm_prefetch): Move out of GCC target("sse") pragma.
44580 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
44581 GCC target("prfchw") pragma.
44582 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
44584 * config/i386/i386.c (ix86_option_override_internal): Enable
44585 -mprfchw with -mprefetchwt1.
44587 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44589 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
44592 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
44594 * opts.h (CL_PCH_IGNORE): Define.
44595 * targhooks.c (option_affects_pch_p):
44596 Return false for options that have CL_PCH_IGNORE set.
44597 * opt-functions.awk: Process PchIgnore.
44598 * doc/options.texi: Document PchIgnore.
44600 * config/arc/arc.opt (misize): Add PchIgnore property.
44602 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44604 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
44605 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
44606 constraint on constants to permit them being loaded into
44607 GENERAL_REGS or BASE_REGS.
44609 2014-03-03 Nick Clifton <nickc@redhat.com>
44611 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
44612 anti-cacnonical alternatives.
44613 (negandhi3_real): New pattern.
44614 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
44616 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
44618 * config/avr/avr-mcus.def: Remove atxmega16x1.
44619 * config/avr/avr-tables.opt: Regenerate.
44620 * config/avr/t-multilib: Regenerate.
44621 * doc/avr-mmcu.texi: Regenerate.
44623 2014-03-03 Tobias Grosser <tobias@grosser.es>
44624 Mircea Namolaru <mircea.namolaru@inria.fr>
44626 PR tree-optimization/58028
44627 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
44630 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
44632 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
44633 not handled by recognizers.
44635 2014-03-03 Jakub Jelinek <jakub@redhat.com>
44637 PR middle-end/60175
44638 * function.c (expand_function_end): Don't emit
44639 clobber_return_register sequence if clobber_after is a BARRIER.
44640 * cfgexpand.c (construct_exit_block): Append instructions before
44641 return_label to prev_bb.
44643 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44645 * config/rs6000/constraints.md: Document reserved use of "wc".
44647 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44650 * ipa.c (function_and_variable_visibility): When dissolving comdat
44651 group, also set all symbols to local.
44653 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
44658 2013-12-14 Jan Hubicka <jh@suse.cz>
44659 PR middle-end/58477
44660 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
44662 2014-03-02 Jon Beniston <jon@beniston.com>
44668 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
44669 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
44670 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
44671 (simple_return, *simple_return): New patterns
44672 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
44673 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
44675 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
44677 * dwarf2out.c (gen_subprogram_die): Tidy.
44679 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
44682 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
44683 (*mov_t_msb_neg_negc): ... this new insn.
44685 2014-02-28 Jason Merrill <jason@redhat.com>
44688 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
44691 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
44694 * dwarf2out.c (decltype_auto_die): New static.
44695 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
44696 (gen_type_die_with_usage): Handle 'decltype(auto)'.
44697 (is_cxx_auto): Likewise.
44699 2014-02-28 Ian Bolton <ian.bolton@arm.com>
44701 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
44702 we are not using general regs only.
44704 2014-02-28 Richard Biener <rguenther@suse.de>
44707 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
44708 previous fix and only allow to remove trivial pre-headers
44709 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
44710 (remove_forwarder_block): Properly update the latch of a loop.
44712 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44715 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
44716 (cselib_preserved_hash_table): New.
44717 (preserve_constants_and_equivs): Move preserved vals to it.
44718 (cselib_find_slot): Look it up first.
44719 (cselib_init): Initialize it.
44720 (cselib_finish): Release it.
44721 (dump_cselib_table): Dump it.
44723 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44726 * cselib.c (remove_useless_values): Skip to avoid quadratic
44727 behavior if the condition moved from...
44728 (cselib_process_insn): ... here holds.
44730 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
44733 * var-tracking.c (vt_initialize): Apply the same condition to
44734 preserve the CFA base value.
44736 2014-02-28 Joey Ye <joey.ye@arm.com>
44739 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
44740 if reload in progress or completed.
44742 2014-02-28 Tobias Burnus <burnus@net-b.de>
44744 PR middle-end/60147
44745 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
44748 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
44750 * doc/tm.texi.in (Condition Code Status): Update documention for
44751 relative locations of cc0-setter and cc0-user.
44753 2014-02-27 Jeff Law <law@redhat.com>
44755 PR rtl-optimization/52714
44756 * combine.c (try_combine): When splitting an unrecognized PARALLEL
44757 into two independent simple sets, if I3 is a jump, ensure the
44758 pattern we place into I3 is a (set (pc) ...).
44760 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
44761 Jeff Law <law@redhat.com>
44763 PR rtl-optimization/49847
44764 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
44765 are in different blocks.
44766 * doc/tm.texi (Condition Code Status): Update documention for
44767 relative locations of cc0-setter and cc0-user.
44769 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
44772 * lra.c (lra_emit_add): Check SUBREG too.
44774 2014-02-27 Andreas Schwab <schwab@suse.de>
44776 * config/m68k/m68k.c (m68k_option_override): Disable
44777 -flive-range-shrinkage for classic m68k.
44778 (m68k_override_options_after_change): Likewise.
44780 2014-02-27 Marek Polacek <polacek@redhat.com>
44782 PR middle-end/59223
44783 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
44784 -Wmaybe-uninitialized.
44786 2014-02-27 Alan Modra <amodra@gmail.com>
44789 * reload1.c (emit_input_reload_insns): When reload_override_in,
44790 set old to rl->in_reg when rl->in_reg is a subreg.
44792 2014-02-26 Richard Biener <rguenther@suse.de>
44795 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
44797 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44799 * common/config/i386/predicates.md (const1256_operand): Remove.
44800 (const2356_operand): New.
44801 (const_1_to_2_operand): Remove.
44802 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
44803 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
44804 (*avx512pf_gatherpf<mode>sf): Ditto.
44805 (avx512pf_gatherpf<mode>df): Ditto.
44806 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44807 (*avx512pf_gatherpf<mode>df): Ditto.
44808 (avx512pf_scatterpf<mode>sf): Ditto.
44809 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
44810 (*avx512pf_scatterpf<mode>sf): Ditto.
44811 (avx512pf_scatterpf<mode>df): Ditto.
44812 (*avx512pf_scatterpf<mode>df_mask): Ditto.
44813 (*avx512pf_scatterpf<mode>df): Ditto.
44814 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
44816 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
44818 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
44819 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
44820 (_mm512_mask_testn_epi64_mask): Move to ...
44821 * config/i386/avx512cdintrin.h: Here.
44822 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
44823 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
44824 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
44825 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
44826 TARGET_AVX512F from TARGET_AVX512CD.
44828 2014-02-26 Richard Biener <rguenther@suse.de>
44831 * ipa.c (walk_polymorphic_call_targets): Properly guard
44832 call to inline_update_overall_summary.
44834 2014-02-26 Bin Cheng <bin.cheng@arm.com>
44837 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
44838 and latches only if requested. Fix latch if it is removed.
44839 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
44840 LOOPS_HAVE_PREHEADERS.
44842 2014-02-25 Andrew Pinski <apinski@cavium.com>
44844 * builtins.c (expand_builtin_thread_pointer): Create a new target
44845 when the target is NULL.
44847 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
44849 PR rtl-optimization/60317
44850 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44851 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
44852 * lra-assigns.c: Include params.h.
44853 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
44854 other reload pseudos considerations.
44856 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44858 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
44859 to use canonical form for nor<mode>3.
44861 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44864 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
44867 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
44869 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
44870 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
44871 (ix86_handle_option): Handle OPT_mprefetchwt1.
44872 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
44873 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
44875 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
44876 OPTION_MASK_ISA_PREFETCHWT1.
44877 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
44878 (PTA_PREFETCHWT1): New.
44879 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
44880 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
44881 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
44882 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
44883 (*prefetch_avx512pf_<mode>_: Change into ...
44884 (*prefetch_prefetchwt1_<mode>: This.
44885 * config/i386/i386.opt (mprefetchwt1): New.
44886 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
44887 (_mm_prefetch): Handle intent to write.
44888 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
44890 2014-02-25 Richard Biener <rguenther@suse.de>
44892 PR middle-end/60291
44893 * emit-rtl.c (mem_attrs_htab): Remove.
44894 (mem_attrs_htab_hash): Likewise.
44895 (mem_attrs_htab_eq): Likewise.
44896 (set_mem_attrs): Always allocate new mem-attrs when something changed.
44897 (init_emit_once): Do not allocate mem_attrs_htab.
44899 2014-02-25 Richard Biener <rguenther@suse.de>
44902 * lto-opts.c (lto_write_options): Output non-explicit conservative
44903 -fwrapv, -fno-trapv and -fno-strict-overflow.
44904 * lto-wrapper.c (merge_and_complain): Handle merging those options.
44905 (run_gcc): And pass them through.
44907 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44909 * sel-sched.c (calculate_new_fences): New parameter ptime.
44910 Calculate it as a maximum over all fence cycles.
44911 (sel_sched_region_2): Adjust the call to calculate_new_fences.
44912 Print the final schedule timing when sched_verbose.
44914 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
44916 PR rtl-optimization/60292
44917 * sel-sched.c (fill_vec_av_set): Do not reset target availability
44918 bit fot the fence instruction.
44920 2014-02-24 Alangi Derick <alangiderick@gmail.com>
44922 * calls.h: Fix typo in comment.
44924 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
44926 * config/pa/pa.c (pa_output_move_double): Don't valididate when
44927 adjusting offsetable addresses.
44929 2014-02-24 Guozhi Wei <carrot@google.com>
44931 * sparseset.h (sparseset_pop): Fix the wrong index.
44933 2014-02-24 Walter Lee <walt@tilera.com>
44935 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
44936 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
44938 * common/config/tilegx/tilegx-common.c
44939 (TARGET_DEFAULT_TARGET_FLAGS): Define.
44940 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
44941 (LINK_SPEC): Ditto.
44942 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
44943 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
44944 (tilegx_gimplify_va_arg_expr): Handle big endian.
44945 (tilegx_expand_unaligned_load): Ditto.
44946 (tilegx_expand_unaligned_store): Ditto.
44947 (TARGET_RETURN_IN_MSB): New.
44948 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
44949 (TARGET_ENDIAN_DEFAULT): New.
44950 (TARGET_BIG_ENDIAN): Handle big endian.
44951 (BYTES_BIG_ENDIAN): Ditto.
44952 (WORDS_BIG_ENDIAN): Ditto.
44953 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
44954 (ENDIAN_SPEC): New.
44955 (EXTRA_SPECS): New.
44956 * config/tilegx/tilegx.md (extv): Handle big endian.
44958 (insn_st<n>): Ditto.
44959 (insn_st<n>_add<bitsuffix>): Ditto.
44960 (insn_stnt<n>): Ditto.
44961 (insn_stnt<n>_add<bitsuffix>):Ditto.
44962 (vec_interleave_highv8qi): Handle big endian.
44963 (vec_interleave_highv8qi_be): New.
44964 (vec_interleave_highv8qi_le): New.
44965 (insn_v1int_h): Handle big endian.
44966 (vec_interleave_lowv8qi): Handle big endian.
44967 (vec_interleave_lowv8qi_be): New.
44968 (vec_interleave_lowv8qi_le): New.
44969 (insn_v1int_l): Handle big endian.
44970 (vec_interleave_highv4hi): Handle big endian.
44971 (vec_interleave_highv4hi_be): New.
44972 (vec_interleave_highv4hi_le): New.
44973 (insn_v2int_h): Handle big endian.
44974 (vec_interleave_lowv4hi): Handle big endian.
44975 (vec_interleave_lowv4hi_be): New.
44976 (vec_interleave_lowv4hi_le): New.
44977 (insn_v2int_l): Handle big endian.
44978 (vec_interleave_highv2si): Handle big endian.
44979 (vec_interleave_highv2si_be): New.
44980 (vec_interleave_highv2si_le): New.
44981 (insn_v4int_h): Handle big endian.
44982 (vec_interleave_lowv2si): Handle big endian.
44983 (vec_interleave_lowv2si_be): New.
44984 (vec_interleave_lowv2si_le): New.
44985 (insn_v4int_l): Handle big endian.
44986 * config/tilegx/tilegx.opt (mbig-endian): New option.
44987 (mlittle-endian): New option.
44988 * doc/install.texi: Document tilegxbe-linux.
44989 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
44991 2014-02-24 Martin Jambor <mjambor@suse.cz>
44994 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
44995 there are no parameter descriptors.
44997 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
44999 PR rtl-optimization/60268
45000 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
45001 initialization to ...
45002 (sched_rgn_init): ... here.
45003 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
45005 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45007 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
45010 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
45012 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
45015 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45017 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
45018 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
45020 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
45022 * config/microblaze/predicates.md: Add cmp_op predicate.
45023 * config/microblaze/microblaze.md: Add branch_compare instruction
45024 which uses cmp_op predicate and emits cmp insn before branch.
45025 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
45026 to microblaze_expand_conditional_branch and consolidate logic.
45027 (microblaze_expand_conditional_branch): emit branch_compare
45028 insn instead of handling cmp op separate from branch insn.
45030 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45032 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
45035 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45037 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
45038 define_insn with define_expand and new define_insn
45039 *altivec_lve<VI_char>x_internal.
45040 (altivec_stve<VI_char>x): Replace define_insn with define_expand
45041 and new define_insn *altivec_stve<VI_char>x_internal.
45042 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
45044 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
45046 (altivec_expand_stvex_be): New function.
45048 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
45050 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
45051 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
45052 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
45053 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
45055 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
45058 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
45059 instead of emit_move_insn.
45061 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45063 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
45064 vspltw with vsldoi.
45065 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
45066 gen_altivec_vsumsws.
45068 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45070 * config/rs6000/altivec.md (altivec_lvxl): Rename as
45071 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
45072 (altivec_lvxl_<mode>): New define_expand incorporating
45073 -maltivec=be semantics where needed.
45074 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
45075 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
45076 semantics where needed.
45077 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
45078 (altivec_stvx_<mode>): New define_expand incorporating
45079 -maltivec=be semantics where needed.
45080 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
45081 VM2 iterator instead of V4SI.
45082 (altivec_stvxl_<mode>): New define_expand incorporating
45083 -maltivec=be semantics where needed.
45084 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
45085 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
45086 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
45087 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
45088 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
45089 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
45090 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
45091 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
45092 ALTIVEC_BUILTIN_STVXL.
45093 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
45094 (altivec_expand_stvx_be): Likewise.
45095 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
45096 (altivec_expand_lvx_be): Likewise.
45097 (altivec_expand_stvx_be): Likewise.
45098 (altivec_expand_builtin): Add cases for
45099 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
45100 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
45101 (altivec_init_builtins): Add definitions for
45102 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
45103 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
45105 2014-02-21 Catherine Moore <clm@codesourcery.com>
45107 * doc/invoke.texi (mvirt, mno-virt): Document.
45108 * config/mips/mips.opt (mvirt): New option.
45109 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
45111 2014-02-21 Richard Biener <rguenther@suse.de>
45113 PR tree-optimization/60276
45114 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
45115 (STMT_VINFO_MIN_NEG_DIST): New macro.
45116 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
45117 STMT_VINFO_MIN_NEG_DIST.
45118 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
45119 made for negative dependence distances still hold.
45121 2014-02-21 Richard Biener <rguenther@suse.de>
45123 PR middle-end/60291
45124 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
45125 DECL_INITIAL for globals not in the current function context.
45127 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45129 PR tree-optimization/56490
45130 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
45131 * tree-ssa-uninit.c: Include params.h.
45132 (compute_control_dep_chain): Add num_calls argument, return false
45133 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
45134 num_calls to recursive call.
45135 (find_predicates): Change dep_chain into normal array,
45136 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
45137 variable and adjust compute_control_dep_chain caller.
45138 (find_def_preds): Likewise.
45140 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
45142 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
45143 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
45145 2014-02-21 Nick Clifton <nickc@redhat.com>
45147 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
45148 (pushhi1): Likewise.
45149 (popqi1): Add mode to pre_dec.
45150 (pophi1): Likewise.
45152 2014-02-21 Jakub Jelinek <jakub@redhat.com>
45154 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
45155 mode for mask of V8SFmode permutation.
45157 2014-02-20 Richard Henderson <rth@redhat.com>
45160 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
45161 a new pseudo for OLDVAL.
45163 2014-02-20 Jakub Jelinek <jakub@redhat.com>
45166 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
45167 gen_reg_rtx if d->testing_p.
45168 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
45169 if d->testing_p and we will certainly return true.
45170 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
45173 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
45175 * emit-rtl.c (gen_reg_rtx): Assert that
45176 crtl->emit.regno_pointer_align_length is non-zero.
45178 2014-02-20 Richard Henderson <rth@redhat.com>
45181 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
45182 on failure the store back into EXPECT.
45184 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
45185 Sandra Loosemore <sandra@codesourcery.com>
45187 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
45188 * config/nios2/nios2.c (nios2_function_profiler): Add
45189 -fPIC (flag_pic == 2) support.
45190 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
45191 (nios2_large_offset_p): New function.
45192 (nios2_unspec_reloc_p): Move up position, update to use
45193 nios2_large_offset_p.
45194 (nios2_unspec_address): Remove function.
45195 (nios2_unspec_offset): New function.
45196 (nios2_large_got_address): New function.
45197 (nios2_got_address): Add large offset support.
45198 (nios2_legitimize_tls_address): Update usage of removed and new
45200 (nios2_symbol_binds_local_p): New function.
45201 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
45202 (nios2_legitimize_address): Update to use nios2_large_offset_p.
45203 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
45204 (nios2_print_operand): Merge H/L processing, add hiadj/lo
45205 processing for (const (unspec ...)).
45206 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
45208 2014-02-20 Richard Biener <rguenther@suse.de>
45210 * tree-cfg.c (replace_uses_by): Mark altered BBs before
45211 doing the substitution.
45212 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
45214 2014-02-20 Martin Jambor <mjambor@suse.cz>
45217 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
45218 info when checking whether lattices are bottom.
45220 2014-02-20 Richard Biener <rguenther@suse.de>
45222 PR middle-end/60221
45223 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
45226 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
45229 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
45230 parameter specifying the scaling.
45231 (inline_call): Update.
45232 (want_inline_recursively): Guard division by zero.
45233 (recursive_inlining): Update.
45234 * ipa-inline.h (clone_inlined_nodes): Update.
45236 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45239 * config/i386/i386.c (classify_argument): Pass structures of size
45240 64 bytes or less in register.
45242 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
45243 Kirill Yukhin <kirill.yukhin@intel.com>
45245 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
45246 (_mm_rcp28_round_ss): Ditto.
45247 (_mm_rsqrt28_round_sd): Ditto.
45248 (_mm_rsqrt28_round_ss): Ditto.
45249 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
45250 (_mm_rcp14_round_ss): Ditto.
45251 (_mm_rsqrt14_round_sd): Ditto.
45252 (_mm_rsqrt14_round_ss): Ditto.
45253 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
45254 the first input operand, get rid of match_dup.
45255 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
45257 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45259 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
45260 operand as the first input operand, set type attribute.
45261 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45262 Set type attribute.
45263 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
45264 operand as the first input operand, set type attribute.
45266 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45268 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
45271 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
45274 * config/i386/i386.c (construct_container): Remove TFmode check
45275 for X86_64_INTEGER_CLASS.
45277 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
45280 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
45281 only when -Wpsabi is enabled.
45283 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
45286 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
45287 passing arrays in registers are the same as for structs, so remove the
45288 special case for them.
45290 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
45292 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
45293 destination type, extract only the valid bits if the source type is not
45294 integral and has a different mode.
45296 2014-02-19 Richard Biener <rguenther@suse.de>
45299 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
45302 2014-02-19 Richard Biener <rguenther@suse.de>
45305 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
45306 (ipa_modify_call_arguments): Emit an argument load explicitely and
45307 preserve virtual SSA form there and for the replacement call.
45308 Do not update SSA form nor free dominance info.
45310 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45312 * ipa.c (function_and_variable_visibility): Also clear WEAK
45313 flag when disolving COMDAT_GROUP.
45315 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45317 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
45318 * ipa-prop.c (ipa_set_jf_known_type): Return early when
45319 not devirtualizing.
45320 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
45321 do more sanity checks.
45322 (detect_type_change): Return true when giving up early.
45323 (compute_complex_assign_jump_func): Fix type parameter of
45324 ipa_set_ancestor_jf.
45325 (compute_complex_ancestor_jump_func): Likewise.
45326 (update_jump_functions_after_inlining): Fix updating of
45328 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
45330 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
45332 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
45333 inline clones when edge disappears.
45335 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
45338 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
45339 Split 64-bit moves into 2 patterns. Do not allow the use of
45340 direct move for TDmode in little endian, since the decimal value
45341 has little endian bytes within a word, but the 64-bit pieces are
45342 ordered in a big endian fashion, and normal subreg's of TDmode are
45344 (mov<mode>_64bit_dm): Likewise.
45345 (movtd_64bit_nodm): Likewise.
45347 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45349 PR tree-optimization/60174
45350 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
45351 statement of an SSA_NAME that occurs in an abnormal PHI node.
45353 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45356 * final.c (SEEN_BB): Remove.
45357 (SEEN_NOTE, SEEN_EMITTED): Renumber.
45358 (final_scan_insn): Don't force_source_line on second
45359 NOTE_INSN_BASIC_BLOCK.
45361 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
45364 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
45365 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
45366 (type_natural_mode): Warn ABI change when %zmm register is not
45367 available for AVX512F vector value passing.
45369 2014-02-18 Kai Tietz <ktietz@redhat.com>
45372 * config/i386/i386.c (ix86_expand_prologue): Use value in
45373 rax register as displacement when restoring %r10 or %rax.
45374 Fix wrong offset when restoring both registers.
45376 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
45378 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
45379 assertion with conditional return.
45381 2014-02-18 Jakub Jelinek <jakub@redhat.com>
45382 Uros Bizjak <ubizjak@gmail.com>
45385 * config/i386/driver-i386.c (host_detect_local_cpu): If
45386 YMM state is not saved by the OS, also clear has_f16c. Move
45387 CPUID 0x80000001 handling before YMM state saving checking.
45389 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
45391 PR rtl-optimization/58960
45392 * haifa-sched.c (alloc_global_sched_pressure_data): New,
45393 factored out from ...
45394 (sched_init): ... here.
45395 (free_global_sched_pressure_data): New, factored out from ...
45396 (sched_finish): ... here.
45397 * sched-int.h (free_global_sched_pressure_data): Declare.
45398 * sched-rgn.c (nr_regions_initial): New static global.
45399 (haifa_find_rgns): Initialize it.
45400 (schedule_region): Disable sched-pressure for the newly
45403 2014-02-17 Richard Biener <rguenther@suse.de>
45405 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
45406 release SSA defs of pattern stmts.
45408 2014-02-17 Richard Biener <rguenther@suse.de>
45410 * tree-inline.c (expand_call_inline): Release the virtual
45411 operand defined by the call we are about to inline.
45413 2014-02-17 Richard Biener <rguenther@suse.de>
45415 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
45417 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
45418 Ilya Tocar <ilya.tocar@intel.com>
45420 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
45421 arguments order in builtin.
45422 (_mm512_permutexvar_epi64): Ditto.
45423 (_mm512_mask_permutexvar_epi64): Ditto
45424 (_mm512_maskz_permutexvar_epi32): Ditto
45425 (_mm512_permutexvar_epi32): Ditto
45426 (_mm512_mask_permutexvar_epi32): Ditto
45428 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45430 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
45431 (p8_vmrgow): Likewise.
45433 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45435 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
45438 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
45441 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
45442 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
45443 into 64-bit and 32-bit moves. On 64-bit moves, add support for
45444 using direct move instructions on ISA 2.07. Also adjust
45445 instruction length for 64-bit.
45446 (mov<mode>_64bit, TFmode/TDmode): Likewise.
45447 (mov<mode>_32bit, TFmode/TDmode): Likewise.
45449 2014-02-15 Alan Modra <amodra@gmail.com>
45453 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
45454 find_replacement on parts of insn rtl that might be reloaded.
45456 2014-02-15 Richard Biener <rguenther@suse.de>
45458 PR tree-optimization/60183
45459 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
45460 (tree_ssa_phiprop): Calculate and free post-dominators.
45462 2014-02-14 Jeff Law <law@redhat.com>
45464 PR rtl-optimization/60131
45465 * ree.c (get_extended_src_reg): New function.
45466 (combine_reaching_defs): Use it rather than assuming location of REG.
45467 (find_and_remove_re): Verify first operand of extension is
45468 a REG before adding the insns to the copy list.
45470 2014-02-14 Roland McGrath <mcgrathr@google.com>
45472 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
45473 * configure: Regenerated.
45474 * config.in: Regenerated.
45475 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
45476 instead of ASM_SHORT.
45478 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
45479 Richard Earnshaw <rearnsha@arm.com>
45481 PR rtl-optimization/59535
45482 * lra-constraints.c (process_alt_operands): Encourage alternative
45483 when unassigned pseudo class is superset of the alternative class.
45484 (inherit_reload_reg): Don't inherit when optimizing for code size.
45485 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
45486 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
45487 modes not less than 4 for Thumb1.
45489 2014-02-14 Kyle McMartin <kyle@redhat.com>
45492 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
45494 2014-02-14 Richard Biener <rguenther@suse.de>
45496 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
45497 (get_frame_arg): Drop the assert with langhook types_compatible_p.
45498 Do not strip INDIRECT_REFs.
45500 2014-02-14 Richard Biener <rguenther@suse.de>
45503 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
45504 DECL_FUNCTION_SPECIFIC_TARGET.
45505 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
45506 * tree-streamer-out.c (pack_ts_target_option): Remove.
45507 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
45508 (write_ts_function_decl_tree_pointers): Do not stream
45509 DECL_FUNCTION_SPECIFIC_TARGET.
45510 * tree-streamer-in.c (unpack_ts_target_option): Remove.
45511 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
45512 (lto_input_ts_function_decl_tree_pointers): Do not stream
45513 DECL_FUNCTION_SPECIFIC_TARGET.
45515 2014-02-14 Jakub Jelinek <jakub@redhat.com>
45517 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
45518 (get_initial_def_for_induction, vectorizable_induction): Ignore
45519 debug stmts when looking for exit_phi.
45520 (vectorizable_live_operation): Fix up condition.
45522 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45524 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
45525 nreverse() because it changes the content of original tree list.
45527 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45529 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
45530 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
45532 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
45534 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
45535 GNU coding standards.
45537 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45540 * dwarf2out.c (gen_subprogram_die): Don't call
45541 add_calling_convention_attribute if subr_die is old_die.
45543 2014-02-13 Sharad Singhai <singhai@google.com>
45545 * doc/optinfo.texi: Fix order of nodes.
45547 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
45549 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
45550 operands[2], not operands[3].
45552 2014-02-13 Richard Biener <rguenther@suse.de>
45555 * doc/install.texi (ISL): Update recommended version to 0.12.2,
45556 mention the possibility of an in-tree build.
45557 (CLooG): Update recommended version to 0.18.1, mention the
45558 possibility of an in-tree build and clarify that the ISL
45559 bundled with CLooG does not work.
45561 2014-02-13 Jakub Jelinek <jakub@redhat.com>
45564 * expr.c (compress_float_constant): If x is a hard register,
45565 extend into a pseudo and then move to x.
45567 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
45569 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
45570 caused by bad second argument to warning_at() with -mhotpatch and
45571 nested functions (e.g. with gfortran).
45573 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
45575 * opts.c (option_name): Remove "enabled by default" rider.
45577 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
45579 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
45581 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
45582 Uros Bizjak <ubizjak@gmail.com>
45585 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
45586 * configure: Regenerated.
45588 2014-02-12 Richard Biener <rguenther@suse.de>
45590 * vec.c (vec_prefix::calculate_allocation): Move as
45591 inline variant to vec.h.
45592 (vec_prefix::calculate_allocation_1): New out-of-line version.
45593 * vec.h (vec_prefix::calculate_allocation_1): Declare.
45594 (vec_prefix::m_has_auto_buf): Rename to ...
45595 (vec_prefix::m_using_auto_storage): ... this.
45596 (vec_prefix::calculate_allocation): Inline the easy cases
45597 and dispatch to calculate_allocation_1 which doesn't need the
45599 (va_heap::reserve): Use gcc_checking_assert.
45600 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
45601 m_using_auto_storage.
45602 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
45604 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
45605 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
45606 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
45608 2014-02-12 Richard Biener <rguenther@suse.de>
45610 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
45611 when we found a dependence.
45613 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
45615 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
45617 (maybe_fold_stmt): ... into this new function.
45618 * omp-low.c (lower_omp): Update comment.
45620 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
45623 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
45626 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
45628 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
45629 identifiers in comments.
45630 (cortexa53_extra_costs): Likewise.
45631 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
45632 (cortexa7_extra_costs): Likewise.
45633 (cortexa12_extra_costs): Likewise.
45634 (cortexa15_extra_costs): Likewise.
45635 (v7m_extra_costs): Likewise.
45637 2014-02-12 Richard Biener <rguenther@suse.de>
45639 PR middle-end/60092
45640 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
45641 of posix_memalign being successful.
45642 (lower_stmt): Restrict lowering of posix_memalign to when
45643 -ftree-bit-ccp is enabled.
45645 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
45647 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
45649 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
45651 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
45653 PR rtl-optimization/60116
45654 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
45655 other_insn once the combination has been validated.
45657 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
45660 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
45662 * ipa-devirt.c: Include demangle.h
45663 (odr_violation_reported): New static variable.
45664 (add_type_duplicate): Update odr_violations.
45665 (maybe_record_node): Add completep parameter; update it.
45666 (record_target_from_binfo): Add COMPLETEP parameter;
45667 update it as needed.
45668 (possible_polymorphic_call_targets_1): Likewise.
45669 (struct polymorphic_call_target_d): Add nonconstruction_targets;
45670 rename FINAL to COMPLETE.
45671 (record_targets_from_bases): Sanity check we found the binfo;
45672 fix COMPLETEP updating.
45673 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
45674 parameter, fix computing of COMPLETEP.
45675 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
45676 at LTO time do demangling.
45677 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
45678 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
45680 (gimple_get_virt_method_for_binfo): Likewise.
45681 * gimple-fold.h (gimple_get_virt_method_for_binfo,
45682 gimple_get_virt_method_for_vtable): Update prototypes.
45684 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
45687 * genautomata.c (add_presence_absence): Fix typo with
45688 {final_}presence_list.
45690 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
45693 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
45694 for VSX/Altivec vectors that land in GPR registers.
45696 2014-02-11 Richard Henderson <rth@redhat.com>
45697 Jakub Jelinek <jakub@redhat.com>
45700 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
45701 around drhs if type conversion to lacc->type is not useless.
45703 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45705 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
45707 (cortex-a57.cortex-a53): Likewise.
45708 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
45710 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45712 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
45715 2014-02-11 Renlin Li <Renlin.Li@arm.com>
45717 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
45718 add_options_for_arm_vfp3.
45720 2014-02-11 Jeff Law <law@redhat.com>
45722 PR middle-end/54041
45723 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
45724 object with an undesirable mode.
45726 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45729 * config/i386/sol2-9.h: New file.
45730 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
45731 *-*-solaris2.9*): Use it.
45733 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45735 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
45736 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
45738 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
45740 * config/microblaze/microblaze.c: Extend mcpu version format
45742 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
45744 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
45746 2014-02-10 Richard Henderson <rth@redhat.com>
45749 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
45750 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
45751 ms-abi vs -mno-accumulate-outgoing-args.
45752 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
45753 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
45756 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
45758 PR middle-end/60080
45759 * cfgexpand.c (expand_asm_operands): Attach source location to
45760 ASM_INPUT rtx objects.
45761 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
45763 2014-02-10 Nick Clifton <nickc@redhat.com>
45765 * config/mn10300/mn10300.c (popcount): New function.
45766 (mn10300_expand_prologue): Include saved registers in stack usage
45769 2014-02-10 Jeff Law <law@redhat.com>
45771 PR middle-end/52306
45772 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
45773 when changing the SET_DEST of a prior insn to avoid an input reload.
45775 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
45777 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
45778 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
45779 -mcall-openbsd, or -mcall-linux.
45780 (CC1_ENDIAN_BIG_SPEC): Remove.
45781 (CC1_ENDIAN_LITTLE_SPEC): Remove.
45782 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45783 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
45784 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
45785 and %cc1_endian_default.
45786 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
45788 2014-02-10 Richard Biener <rguenther@suse.de>
45790 PR tree-optimization/60115
45791 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
45792 MEM_REF handling. Properly verify that the accesses are not
45793 out of the objects bound.
45795 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45797 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
45800 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
45802 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
45803 proper constants and fix formatting.
45804 (possible_polymorphic_call_targets): Fix formatting.
45806 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
45807 Ilya Tocar <ilya.tocar@intel.com>
45809 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
45810 (_mm512_loadu_epi32): Renamed into...
45811 (_mm512_loadu_si512): This.
45812 (_mm512_storeu_epi32): Renamed into...
45813 (_mm512_storeu_si512): This.
45814 (_mm512_maskz_ceil_ps): Removed.
45815 (_mm512_maskz_ceil_pd): Ditto.
45816 (_mm512_maskz_floor_ps): Ditto.
45817 (_mm512_maskz_floor_pd): Ditto.
45818 (_mm512_floor_round_ps): Ditto.
45819 (_mm512_floor_round_pd): Ditto.
45820 (_mm512_ceil_round_ps): Ditto.
45821 (_mm512_ceil_round_pd): Ditto.
45822 (_mm512_mask_floor_round_ps): Ditto.
45823 (_mm512_mask_floor_round_pd): Ditto.
45824 (_mm512_mask_ceil_round_ps): Ditto.
45825 (_mm512_mask_ceil_round_pd): Ditto.
45826 (_mm512_maskz_floor_round_ps): Ditto.
45827 (_mm512_maskz_floor_round_pd): Ditto.
45828 (_mm512_maskz_ceil_round_ps): Ditto.
45829 (_mm512_maskz_ceil_round_pd): Ditto.
45830 (_mm512_expand_pd): Ditto.
45831 (_mm512_expand_ps): Ditto.
45832 * config/i386/i386.c (ix86_builtins): Remove
45833 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
45834 (bdesc_args): Ditto.
45835 * config/i386/predicates.md (const1256_operand): New.
45836 (const_1_to_2_operand): Ditto.
45837 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
45838 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
45839 (*avx512pf_gatherpf<mode>sf): Ditto.
45840 (avx512pf_gatherpf<mode>df): Ditto.
45841 (*avx512pf_gatherpf<mode>df_mask): Ditto.
45842 (*avx512pf_gatherpf<mode>df): Ditto.
45843 (avx512pf_scatterpf<mode>sf): Ditto.
45844 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
45845 (*avx512pf_scatterpf<mode>sf): Ditto.
45846 (avx512pf_scatterpf<mode>df): Ditto.
45847 (*avx512pf_scatterpf<mode>df_mask): Ditto.
45848 (*avx512pf_scatterpf<mode>df): Ditto.
45849 (avx512f_expand<mode>): Removed.
45850 (<shift_insn><mode>3<mask_name>): Change predicate type.
45852 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45854 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
45855 not at the end of datarefs vector use ordered_remove to avoid
45856 reordering datarefs vector.
45859 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
45860 mark local addressable non-static vars as GOVD_PRIVATE
45861 instead of GOVD_LOCAL.
45862 * omp-low.c (lower_omp_for): Move gimple_bind_vars
45863 and BLOCK_VARS of gimple_bind_block to new_stmt rather
45866 PR middle-end/60092
45867 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
45868 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
45869 assume_aligned or alloc_align attributes.
45870 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
45871 arguments. Handle also assume_aligned and alloc_align attributes.
45872 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
45873 calls to functions with assume_aligned or alloc_align attributes.
45874 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
45876 2014-02-08 Terry Guo <terry.guo@arm.com>
45878 * doc/invoke.texi: Document ARM -march=armv7e-m.
45880 2014-02-08 Jakub Jelinek <jakub@redhat.com>
45882 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
45883 flag on __cilkrts_rethrow builtin.
45886 * ipa-cp.c (determine_versionability): Fail at -O0
45887 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
45888 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
45891 2014-02-04 Jakub Jelinek <jakub@redhat.com>
45894 * tree-inline.c (copy_forbidden): Fail for
45895 __attribute__((optimize (0))) functions.
45897 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45899 * varpool.c: Include pointer-set.h.
45900 (varpool_remove_unreferenced_decls): Variables in other partitions
45901 will not be output; be however careful to not lose information
45902 about partitioning.
45904 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
45906 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
45907 lookup in the vtable constructor.
45909 2014-02-07 Jeff Law <law@redhat.com>
45912 * config/m68k/m68k.md (ashldi_extsi): Turn into a
45913 define_insn_and_split.
45915 * ipa-inline.c (inline_small_functions): Fix typos.
45917 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45919 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
45920 (s390_can_use_return_insn): Declare.
45921 * config/s390/s390.h (EPILOGUE_USES): Define.
45922 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
45924 (s390_chunkify_start): Handle return JUMP_LABELs.
45925 (s390_early_mach): Emit a main_pool instruction on the entry edge.
45926 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
45927 (s390_can_use_return_insn): New functions.
45928 (s390_fix_long_loop_prediction): Handle conditional returns.
45929 (TARGET_SET_UP_BY_PROLOGUE): Define.
45930 * config/s390/s390.md (ANY_RETURN): New code iterator.
45931 (*creturn, *csimple_return, return, simple_return): New patterns.
45933 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45935 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
45936 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
45937 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
45938 REG_CFA_RESTORE list when deciding not to restore a register.
45940 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45942 * config/s390/s390.c: Include tree-pass.h and context.h.
45943 (s390_early_mach): New function, split out from...
45944 (s390_emit_prologue): ...here.
45945 (pass_data_s390_early_mach): New pass structure.
45946 (pass_s390_early_mach): New class.
45947 (s390_option_override): Create and register early_mach pass.
45948 Move to end of file.
45950 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45952 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
45953 to match for the exit block.
45955 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45957 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
45958 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
45959 Reject misaligned operands.
45961 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45963 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
45965 2014-02-07 Richard Biener <rguenther@suse.de>
45967 PR middle-end/60092
45968 * gimple-low.c (lower_builtin_posix_memalign): New function.
45969 (lower_stmt): Call it to lower posix_memalign in a way
45970 to make alignment info accessible.
45972 2014-02-07 Jakub Jelinek <jakub@redhat.com>
45975 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
45976 __builtin_setjmp_receiver.
45978 2014-02-07 Richard Biener <rguenther@suse.de>
45980 PR middle-end/60092
45981 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
45982 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
45983 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
45984 Handle BUILT_IN_POSIX_MEMALIGN.
45985 (find_func_clobbers): Likewise.
45986 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
45987 (call_may_clobber_ref_p_1): Likewise.
45989 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45992 * ipa-devirt.c (record_target_from_binfo): Remove overactive
45995 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
45998 * lto-cgraph.c (lto_output_node): Use
45999 symtab_get_symbol_partitioning_class.
46000 (lto_output_varpool_node): likewise.
46001 (symtab_get_symbol_partitioning_class): Move here from
46002 lto/lto-partition.c
46003 * cgraph.h (symbol_partitioning_class): Likewise.
46004 (symtab_get_symbol_partitioning_class): Declare.
46006 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46008 * ggc.h (ggc_internal_cleared_alloc): New macro.
46009 * vec.h (vec_safe_copy): Handle memory stats.
46010 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
46011 * target-globals.c (save_target_globals): Likewise.
46013 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
46016 * expr.c (emit_move_resolve_push): Export; be bit more selective
46017 on when to clear alias set.
46018 * expr.h (emit_move_resolve_push): Declare.
46019 * function.h (struct function): Add tail_call_marked.
46020 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
46021 * config/i386/i386-protos.h (ix86_expand_push): Remove.
46022 * config/i386/i386.md (TImode move expander): De not call
46024 (FP push expanders): Preserve memory attributes.
46025 * config/i386/sse.md (push<mode>1): Remove.
46026 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
46027 (ix86_expand_push): Remove.
46028 * config/i386/mmx.md (push<mode>1): Remove.
46030 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46032 PR rtl-optimization/60030
46033 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
46034 lopart with paradoxical subreg before shifting it up by hprec.
46036 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46038 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
46039 Remove extra newline at end of file.
46040 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
46041 (arm_issue_rate): Handle cortexa57.
46042 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
46043 (cortex-a57.cortex-a53): Likewise.
46045 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46048 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
46049 don't record in REG_FRAME_RELATED_EXPR registers not set in that
46051 (arm_expand_prologue): Adjust all callers.
46052 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
46053 info, registers also at the lowest numbered registers side. Use
46054 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
46058 * var-tracking.c (adjust_mems): Before adding a SET to
46059 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
46061 2014-02-06 Alan Modra <amodra@gmail.com>
46064 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
46065 change SDmode to DDmode when lra_in_progress.
46067 2014-02-06 Jakub Jelinek <jakub@redhat.com>
46069 PR middle-end/59150
46070 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
46071 free_data_ref on the dr first, and before goto again also set dr
46072 to the next dr. For simd_lane_access, free old datarefs[i] before
46073 overwriting it. For get_vectype_for_scalar_type failure, don't
46074 free_data_ref if simd_lane_access.
46076 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
46079 * tree.h (opts_for_fn): New inline function.
46080 (opt_for_fn): Define.
46081 * config/i386/i386.c (ix86_function_regparm): Use
46082 opt_for_fn (decl, optimize) instead of optimize.
46084 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
46086 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
46087 for SYMBOL_REF in large memory model.
46089 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46091 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
46092 and crypto support.
46093 (cortex-a57): Likewise.
46094 (cortex-a57.cortex-a53): Likewise.
46096 2014-02-06 Yury Gribov <y.gribov@samsung.com>
46097 Kugan Vivekanandarajah <kuganv@linaro.org>
46099 * config/arm/arm.c (arm_vector_alignment_reachable): Check
46101 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
46103 2014-02-06 Richard Biener <rguenther@suse.de>
46105 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
46106 set_loop_copy and initialize_original_copy_tables.
46108 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
46110 * config/aarch64/aarch64-simd.md
46111 (aarch64_ashr_simddi): Change QI to SI.
46113 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46114 Jakub Jelinek <jakub@redhat.com>
46116 PR middle-end/60013
46117 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
46120 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46122 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
46123 CODE_FOR_altivec_vpku[hw]um to
46124 CODE_FOR_altivec_vpku[hw]um_direct.
46125 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
46126 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
46127 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
46128 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
46130 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46132 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
46133 generation for -maltivec=be.
46134 (altivec_vsumsws): Simplify redundant test.
46136 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46138 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
46139 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
46140 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
46141 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
46142 gen_altivec_vpkuwum.
46143 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
46145 (altivec_vpks<VI_char>ss): Likewise.
46146 (altivec_vpks<VI_char>us): Likewise.
46147 (altivec_vpku<VI_char>us): Likewise.
46148 (altivec_vpku<VI_char>um): Likewise.
46149 (altivec_vpku<VI_char>um_direct): New (copy of
46150 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
46152 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
46153 target is little endian and -maltivec=be is not specified.
46154 (*altivec_vupkhs<VU_char>_direct): New (copy of
46155 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
46156 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
46157 target is little endian and -maltivec=be is not specified.
46158 (*altivec_vupkls<VU_char>_direct): New (copy of
46159 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
46160 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
46161 little endian and -maltivec=be is not specified.
46162 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
46163 little endian and -maltivec=be is not specified.
46165 2014-02-05 Richard Henderson <rth@redhat.com>
46168 * combine-stack-adj.c: Revert r206943.
46169 * sched-int.h (struct deps_desc): Add last_args_size.
46170 * sched-deps.c (init_deps): Initialize it.
46171 (sched_analyze_insn): Add OUTPUT dependencies between insns that
46172 contain REG_ARGS_SIZE notes.
46174 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
46176 * lto-cgraph.c (asm_nodes_output): Make global.
46177 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
46178 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
46179 (driver_handle_option): Handle OPT_fwpa.
46181 2014-02-05 Jakub Jelinek <jakub@redhat.com>
46184 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
46185 a comment typo and formatting issue. If odr_hash hasn't been
46186 created, return vNULL and set *completep to false.
46188 PR middle-end/57499
46189 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
46190 bb with no successors.
46192 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
46195 * doc/invoke.texi (-march): Clarify documentation for ARM.
46196 (-mtune): Likewise.
46199 2014-02-05 Richard Biener <rguenther@suse.de>
46201 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
46202 when not vectorizing because of too many alias checks.
46203 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
46204 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
46206 2014-02-05 Nick Clifton <nickc@redhat.com>
46208 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
46209 accept extended registers in any mode when compiling for the MN10300.
46211 2014-02-05 Yury Gribov <y.gribov@samsung.com>
46213 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
46214 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
46215 sanitization attributes.
46216 (can_inline_edge_p): Likewise.
46217 (sanitize_attrs_match_for_inline_p): New function.
46219 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46221 * ipa-prop.c (detect_type_change): Shor circuit testing of
46222 type changes on THIS pointer.
46224 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
46227 * config/pa/pa.c (legitimize_tls_address): Return original address
46228 if not passed a SYMBOL_REF rtx.
46229 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
46231 (pa_emit_move_sequence): Simplify TLS source operands.
46232 (pa_legitimate_constant_p): Reject all TLS constants.
46233 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
46234 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
46236 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46238 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
46239 groups when we know they are controlled by LTO.
46240 * varasm.c (default_binds_local_p_1): If object is in other partition,
46241 it will be resolved locally.
46243 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46245 * config/host-linux.c (linux_gt_pch_use_address): Don't
46246 use SSIZE_MAX because it is not always defined.
46248 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
46251 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
46252 threshold for pseudo splitting.
46253 (update_ebb_live_info): Process call argument hard registers and
46254 hard registers from insn definition too.
46255 (max_small_class_regs_num): New constant.
46256 (inherit_in_ebb): Update live hard regs through EBBs. Update
46257 reloads_num only for small register classes. Don't split for
46260 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
46263 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
46266 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
46268 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
46269 visibility is safe.
46271 2014-02-04 Marek Polacek <polacek@redhat.com>
46273 * gdbinit.in (pel): Define.
46275 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
46277 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
46280 2014-02-04 Richard Biener <rguenther@suse.de>
46283 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
46284 in function context local.
46285 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
46286 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
46287 similar to LTO_imported_decl_ref.
46289 2014-02-04 Jakub Jelinek <jakub@redhat.com>
46291 PR tree-optimization/60002
46292 * cgraphclones.c (build_function_decl_skip_args): Clear
46293 DECL_LANG_SPECIFIC.
46295 PR tree-optimization/60023
46296 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
46297 false to gsi_replace.
46298 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
46299 has been in some EH region and vec_stmt could throw, add
46300 vec_stmt into the same EH region.
46301 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
46302 has no lhs, ignore it.
46303 * internal-fn.c (expand_MASK_LOAD): Likewise.
46306 * tree-inline.c (copy_forbidden): Fail for
46307 __attribute__((optimize (0))) functions.
46310 * omp-low.c (simd_clone_struct_copy): If from->inbranch
46311 is set, copy one less argument.
46312 (expand_simd_clones): Don't subtract clone_info->inbranch
46313 from simd_clone_struct_alloc argument.
46315 PR rtl-optimization/57915
46316 * recog.c (simplify_while_replacing): If all unary/binary/relational
46317 operation arguments are constant, attempt to simplify those.
46319 PR middle-end/59261
46320 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
46321 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
46323 2014-02-04 Richard Biener <rguenther@suse.de>
46325 PR tree-optimization/60012
46326 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
46327 TBAA disambiguation to all DDRs.
46329 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46332 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
46333 (LINK_SPEC): Use it for -shared, -shared-libgcc.
46335 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46338 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
46340 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46342 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
46343 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
46345 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46348 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
46349 to figure out targets of polymorphic calls with known decl.
46350 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46351 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
46352 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
46353 (get_polymorphic_call_info): ... here.
46354 (get_polymorphic_call_info_from_invariant): New function.
46356 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46358 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
46359 lookup via vtable pointer; check for type consistency
46360 and turn inconsitent facts into UNREACHABLE.
46361 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46362 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
46363 type inconsistent querries; return UNREACHABLE instead.
46365 2014-02-03 Richard Henderson <rth@twiddle.net>
46368 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
46369 already processed this node.
46370 (normalize_one_pred_1): Pass along mark_set.
46371 (normalize_one_pred): Create and destroy a pointer_set_t.
46372 (normalize_one_pred_chain): Likewise.
46374 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
46376 PR gcov-profile/58602
46377 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
46379 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
46382 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
46383 -fno-devirtualize; try to devirtualize by the knowledge of
46384 virtual table pointer given by aggregate propagation.
46385 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
46386 (ipa_print_node_jump_functions): Dump also offset that
46387 is relevant for polymorphic calls.
46388 (determine_known_aggregate_parts): Add arg_type parameter; use it
46389 instead of determining the type from pointer type.
46390 (ipa_compute_jump_functions_for_edge): Update call of
46391 determine_known_aggregate_parts.
46392 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
46393 (gimple_get_virt_method_for_binfo): ... here; simplify using
46394 vtable_pointer_value_to_vtable.
46395 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
46396 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
46397 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
46398 (vtable_pointer_value_to_vtable): Break out from ...; handle also
46400 (vtable_pointer_value_to_binfo): ... here.
46401 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
46403 2014-02-03 Teresa Johnson <tejohnson@google.com>
46405 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
46406 redef of outer loop index variable.
46408 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
46412 * doc/extend.texi (Function Attributes): Typo.
46414 2014-02-03 Cong Hou <congh@google.com>
46416 PR tree-optimization/60000
46417 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
46418 if the vectorized statement is a store. A store statement can only
46419 appear at the end of pattern statements.
46421 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46423 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
46424 (ix86_option_override_internal): Default long double to 64-bit for
46425 32-bit Bionic and to 128-bit for 64-bit Bionic.
46427 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
46428 TARGET_LONG_DOUBLE_128 is true.
46429 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
46431 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
46432 (mlong-double-64): Negate -mlong-double-128.
46433 (mlong-double-128): New option.
46435 * config/i386/i386-c.c (ix86_target_macros): Define
46436 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
46438 * doc/invoke.texi: Document -mlong-double-128.
46440 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
46442 PR rtl-optimization/60024
46443 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
46445 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
46447 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
46449 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46451 PR rtl-optimization/57662
46452 * sel-sched.c (code_motion_path_driver): Do not mark already not
46453 existing blocks in the visiting bitmap.
46455 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
46457 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
46458 on the insn being emitted.
46460 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
46461 Will Deacon <will.deacon@arm.com>
46463 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
46465 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
46467 * config/arm/arm-tables.opt: Regenerate.
46469 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46471 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
46472 for vector types other than V16QImode.
46473 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
46474 define_expand, and call altivec_expand_vec_perm_le when producing
46475 code with little endian element order.
46476 (*altivec_vperm_<mode>_internal): New insn having previous
46477 behavior of altivec_vperm_<mode>.
46478 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
46479 altivec_expand_vec_perm_le when producing code with little endian
46481 (*altivec_vperm_<mode>_uns_internal): New insn having previous
46482 behavior of altivec_vperm_<mode>_uns.
46484 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46486 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
46487 (altivec_vsumsws): Add handling for -maltivec=be with a little
46489 (altivec_vsumsws_direct): New.
46490 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
46491 gen_altivec_vsumsws.
46493 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46495 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
46496 vtable_pointer_value_to_binfo): New functions.
46497 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
46498 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
46500 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
46502 * config/nios2/nios2.md (load_got_register): Initialize GOT
46503 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
46504 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
46506 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
46508 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
46509 preserverd by passthrough, do not propagate the type.
46511 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46513 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
46514 (mips_atomic_assign_expand_fenv): New function.
46515 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
46517 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46519 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
46520 (__builtin_mips_set_fcsr): Likewise.
46521 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
46522 MIPS_USI_FTYPE_VOID.
46523 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
46524 (mips16_expand_set_fcsr): Likewise.
46525 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
46526 (mips16_set_fcsr_stub): Likewise.
46527 (mips16_get_fcsr_one_only_stub): New class.
46528 (mips16_set_fcsr_one_only_stub): Likewise.
46529 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
46530 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
46531 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
46532 (hard_float): New availability predicate.
46533 (mips_builtins): Add get_fcsr and set_fcsr.
46534 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
46535 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
46536 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
46537 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
46538 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
46541 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
46543 * config/mips/mips.c (mips_one_only_stub): New class.
46544 (mips_need_mips16_rdhwr_p): Replace with...
46545 (mips16_rdhwr_stub): ...this new variable.
46546 (mips16_stub_call_address): New function.
46547 (mips16_rdhwr_one_only_stub): New class.
46548 (mips_expand_thread_pointer): Use mips16_stub_call_address.
46549 (mips_output_mips16_rdhwr): Delete.
46550 (mips_finish_stub): New function.
46551 (mips_code_end): Use it to handle rdhwr stubs.
46553 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
46556 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
46557 when calculating size of integer atomic types.
46559 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
46561 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
46563 2014-02-01 Jakub Jelinek <jakub@redhat.com>
46565 PR tree-optimization/60003
46566 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
46567 * profile.c (branch_prob): Use gimple_call_builtin_p
46568 to check for BUILT_IN_SETJMP_RECEIVER.
46569 * tree-inline.c (copy_bb): Call notice_special_calls.
46571 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
46574 * lra-constraints.c (process_alt_operands): Update reload_sum only
46577 2014-01-31 Richard Henderson <rth@redhat.com>
46579 PR middle-end/60004
46580 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
46581 until after else_eh is processed.
46583 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46585 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
46586 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
46587 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
46588 in smmintrin.h, remove them.
46589 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
46590 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
46591 * config/i386/i386.md (ROUND_SAE): Fix value.
46592 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
46593 (const48_operand): New.
46594 * config/i386/subst.md (round), (round_expand): Use
46595 const_4_or_8_to_11_operand.
46596 (round_saeonly), (round_saeonly_expand): Use const48_operand.
46598 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
46600 * config/i386/constraints.md (Yk): Swap meaning with k.
46601 * config/i386/i386.md (movhi_internal): Change Yk to k.
46602 (movqi_internal): Ditto.
46603 (*k<logic><mode>): Ditto.
46606 (kandn<mode>): Ditto.
46607 (*<code>hi_1): Ditto.
46608 (*<code>qi_1): Ditto.
46609 (kxnor<mode>): Ditto.
46610 (kortestzhi): Ditto.
46611 (kortestchi): Ditto.
46613 (*one_cmplhi2_1): Ditto.
46614 (*one_cmplqi2_1): Ditto.
46615 * config/i386/sse.md (): Change k to Yk.
46616 (avx512f_load<mode>_mask): Ditto.
46617 (avx512f_blendm<mode>): Ditto.
46618 (avx512f_store<mode>_mask): Ditto.
46619 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
46620 (avx512f_storedqu<mode>_mask): Ditto.
46621 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
46623 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
46624 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
46625 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
46626 (avx512f_maskcmp<mode>3): Ditto.
46627 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
46628 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
46629 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
46630 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
46631 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
46632 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
46633 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
46634 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
46635 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
46636 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
46637 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
46638 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
46639 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
46640 (vec_extract_lo_<mode>_maskm): Ditto.
46641 (vec_extract_hi_<mode>_maskm): Ditto.
46642 (avx512f_vternlog<mode>_mask): Ditto.
46643 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
46644 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
46645 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
46646 (avx512f_<code>v8div16qi2_mask): Ditto.
46647 (avx512f_<code>v8div16qi2_mask_store): Ditto.
46648 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
46649 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
46650 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
46651 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
46652 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
46653 (*avx512pf_gatherpf<mode>df_mask): Ditto.
46654 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
46655 (*avx512pf_scatterpf<mode>df_mask): Ditto.
46656 (avx512cd_maskb_vec_dupv8di): Ditto.
46657 (avx512cd_maskw_vec_dupv16si): Ditto.
46658 (avx512f_vpermi2var<mode>3_maskz): Ditto.
46659 (avx512f_vpermi2var<mode>3_mask): Ditto.
46660 (avx512f_vpermi2var<mode>3_mask): Ditto.
46661 (avx512f_vpermt2var<mode>3_maskz): Ditto.
46662 (*avx512f_gathersi<mode>): Ditto.
46663 (*avx512f_gathersi<mode>_2): Ditto.
46664 (*avx512f_gatherdi<mode>): Ditto.
46665 (*avx512f_gatherdi<mode>_2): Ditto.
46666 (*avx512f_scattersi<mode>): Ditto.
46667 (*avx512f_scatterdi<mode>): Ditto.
46668 (avx512f_compress<mode>_mask): Ditto.
46669 (avx512f_compressstore<mode>_mask): Ditto.
46670 (avx512f_expand<mode>_mask): Ditto.
46671 * config/i386/subst.md (mask): Change k to Yk.
46672 (mask_scalar_merge): Ditto.
46675 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
46677 * doc/extend.texi (Vector Extensions): Document ?: in C++.
46679 2014-01-31 Richard Biener <rguenther@suse.de>
46681 PR middle-end/59990
46682 * builtins.c (fold_builtin_memory_op): Make sure to not
46683 use a floating-point mode or a boolean or enumeral type for
46684 the copy operation.
46686 2014-01-30 DJ Delorie <dj@redhat.com>
46688 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
46689 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
46690 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
46691 whenever main() has an epilogue.
46693 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46695 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
46696 unused variable "field".
46697 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
46698 (vsx_mergeh_<mode>): Likewise.
46699 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
46700 (altivec_vmrghh): Likewise.
46701 (altivec_vmrghw): Likewise.
46702 (altivec_vmrglb): Likewise.
46703 (altivec_vmrglh): Likewise.
46704 (altivec_vmrglw): Likewise.
46705 (altivec_vspltb): Add missing uses.
46706 (altivec_vsplth): Likewise.
46707 (altivec_vspltw): Likewise.
46708 (altivec_vspltsf): Likewise.
46710 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46713 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
46714 frame related instructions.
46716 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
46718 PR rtl-optimization/59959
46719 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
46720 any reload of register whose subreg is invalid.
46722 2014-01-30 Jakub Jelinek <jakub@redhat.com>
46724 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
46725 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
46726 Add missing return type - void.
46728 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46730 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
46731 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
46732 remove element index adjustment for endian (now handled in vsx.md
46734 (altivec_expand_vec_perm_const): Use
46735 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
46736 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
46737 (vsx_xxspltw_<mode>): Adjust element index for little endian.
46738 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
46739 define_expand and a new define_insn *altivec_vspltb_internal;
46740 adjust for -maltivec=be on a little endian target.
46741 (altivec_vspltb_direct): New.
46742 (altivec_vsplth): Divide into a define_expand and a new
46743 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
46744 little endian target.
46745 (altivec_vsplth_direct): New.
46746 (altivec_vspltw): Divide into a define_expand and a new
46747 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
46748 little endian target.
46749 (altivec_vspltw_direct): New.
46750 (altivec_vspltsf): Divide into a define_expand and a new
46751 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
46752 a little endian target.
46754 2014-01-30 Richard Biener <rguenther@suse.de>
46756 PR tree-optimization/59993
46757 * tree-ssa-forwprop.c (associate_pointerplus): Check we
46758 can propagate form the earlier stmt and avoid the transform
46759 when the intermediate result is needed.
46761 2014-01-30 Alangi Derick <alangiderick@gmail.com>
46763 * README.Portability: Fix typo.
46765 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
46767 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
46768 comparison_operator with ordered_comparison_operator.
46770 2014-01-30 Nick Clifton <nickc@redhat.com>
46772 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
46773 Rename to mn10300_store_multiple_regs.
46774 * config/mn10300/mn10300.c: Likewise.
46775 * config/mn10300/mn10300.md (store_movm): Fix typo: call
46776 store_multiple_regs.
46777 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
46778 Call mn10300_store_multiple_regs.
46780 2014-01-30 Nick Clifton <nickc@redhat.com>
46781 DJ Delorie <dj@redhat.com>
46783 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
46784 %fp 2 to keep registers after it properly word-aligned.
46785 (rl78_alloc_physical_registers_umul): Handle the case where both
46786 input operands are the same.
46788 2014-01-30 Richard Biener <rguenther@suse.de>
46790 PR tree-optimization/59903
46791 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
46794 2014-01-30 Jason Merrill <jason@redhat.com>
46797 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
46800 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
46802 2014-01-30 Richard Biener <rguenther@suse.de>
46804 PR tree-optimization/59951
46805 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
46807 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
46810 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
46811 SFmode to DFmode case.
46813 2014-01-29 DJ Delorie <dj@redhat.com>
46815 * config/msp430/msp430.opt (-minrt): New.
46816 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
46818 (ENDFILE_SPEC): Likewise.
46820 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
46822 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
46823 (estimate_function_body_sizes): Use it.
46825 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
46828 * dwarf2out.c (is_cxx_auto): New.
46829 (is_base_type): Use it.
46830 (gen_type_die_with_usage): Likewise.
46832 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
46834 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
46835 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
46836 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
46837 -maltivec=be with LE targets.
46838 (vsx_mergeh_<mode>): Likewise.
46839 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
46840 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
46841 (altivec_vmrghb): Replace with define_expand and new
46842 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
46843 (altivec_vmrghb_direct): New define_insn.
46844 (altivec_vmrghh): Replace with define_expand and new
46845 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
46846 (altivec_vmrghh_direct): New define_insn.
46847 (altivec_vmrghw): Replace with define_expand and new
46848 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
46849 (altivec_vmrghw_direct): New define_insn.
46850 (*altivec_vmrghsf): Adjust for endianness.
46851 (altivec_vmrglb): Replace with define_expand and new
46852 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
46853 (altivec_vmrglb_direct): New define_insn.
46854 (altivec_vmrglh): Replace with define_expand and new
46855 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
46856 (altivec_vmrglh_direct): New define_insn.
46857 (altivec_vmrglw): Replace with define_expand and new
46858 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
46859 (altivec_vmrglw_direct): New define_insn.
46860 (*altivec_vmrglsf): Adjust for endianness.
46861 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46862 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46863 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
46864 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
46865 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46866 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46867 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
46868 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
46870 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
46872 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
46873 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
46876 2014-01-29 Richard Biener <rguenther@suse.de>
46878 PR tree-optimization/58742
46879 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
46880 associate_pointerplus_align.
46881 (associate_pointerplus_diff): New function.
46882 (associate_pointerplus): Likewise. Call associate_pointerplus_align
46883 and associate_pointerplus_diff.
46885 2014-01-29 Richard Biener <rguenther@suse.de>
46887 * lto-streamer.h (LTO_major_version): Bump to 3.
46888 (LTO_minor_version): Reset to 0.
46890 2014-01-29 Renlin Li <Renlin.Li@arm.com>
46892 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
46893 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
46894 (arm_file_start): Generate correct asm header for armv7ve.
46895 * config/arm/bpabi.h: Add multilib support for armv7ve.
46896 * config/arm/driver-arm.c: Change the architectures of cortex-a7
46897 and cortex-a15 to armv7ve.
46898 * config/arm/t-aprofile: Add multilib support for armv7ve.
46899 * doc/invoke.texi: Document -march=armv7ve.
46901 2014-01-29 Richard Biener <rguenther@suse.de>
46903 PR tree-optimization/58742
46904 * tree-ssa-forwprop.c (associate_plusminus): Return true
46905 if we changed sth, defer EH cleanup to ...
46906 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
46907 (simplify_mult): New function.
46909 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46911 PR middle-end/59917
46912 PR tree-optimization/59920
46913 * tree.c (build_common_builtin_nodes): Remove
46914 __builtin_setjmp_dispatcher initialization.
46915 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
46916 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
46917 instead of gsi_after_labels + manually skipping debug stmts.
46918 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
46919 ignore bbs with IFN_ABNORMAL_DISPATCHER.
46920 * tree-inline.c (copy_edges_for_bb): Remove
46921 can_make_abnormal_goto argument, instead add abnormal_goto_dest
46922 argument. Ignore computed_goto_p stmts. Don't call
46923 make_abnormal_goto_edges. If a call might need abnormal edges
46924 for non-local gotos, see if it already has an edge to
46925 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
46926 with true argument, don't do anything then, otherwise add
46927 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
46928 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
46930 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
46931 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
46932 (lower_stmt): Don't set data->calls_builtin_setjmp.
46933 (lower_builtin_setjmp): Adjust comment.
46934 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
46935 * tree-cfg.c (found_computed_goto): Remove.
46936 (factor_computed_gotos): Remove.
46937 (make_goto_expr_edges): Return bool, true for computed gotos.
46938 Don't call make_abnormal_goto_edges.
46939 (build_gimple_cfg): Don't set found_computed_goto, don't call
46940 factor_computed_gotos.
46941 (computed_goto_p): No longer static.
46942 (make_blocks): Don't set found_computed_goto.
46943 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
46944 (make_edges): If make_goto_expr_edges returns true, push bb
46945 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
46946 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
46947 vector. Record mapping between bbs and OpenMP regions if there
46948 are any, adjust make_gimple_omp_edges caller. Call
46949 handle_abnormal_edges.
46950 (make_abnormal_goto_edges): Remove.
46951 * tree-cfg.h (make_abnormal_goto_edges): Remove.
46952 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
46953 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
46954 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
46955 * internal-fn.def (ABNORMAL_DISPATCHER): New.
46956 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
46957 filling *region also set *region_idx to (*region)->entry->index.
46960 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
46961 For REGs set ORIGINAL_REGNO.
46963 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
46965 * doc/md.texi: Mention that a target shouldn't implement
46966 vec_widen_(s|u)mul_even/odd pair if it is less efficient
46969 2014-01-29 Jakub Jelinek <jakub@redhat.com>
46971 PR tree-optimization/59594
46972 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
46973 a copy of the datarefs vector rather than the vector itself.
46975 2014-01-28 Jason Merrill <jason@redhat.com>
46978 * dwarf2out.c (auto_die): New static.
46979 (gen_type_die_with_usage): Handle C++1y 'auto'.
46980 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
46983 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
46986 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
46987 (SPEC_X32): Likewise.
46988 (SPEC_64): Likewise.
46989 * config/i386/i386.c (ix86_option_override_internal): Turn off
46990 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
46992 (x86_file_start): Output .code16gcc for TARGET_16BIT.
46993 * config/i386/i386.h (TARGET_16BIT): New macro.
46994 (TARGET_16BIT_P): Likewise.
46995 * config/i386/i386.opt: Add m16.
46996 * doc/invoke.texi: Document -m16.
46998 2014-01-28 Jakub Jelinek <jakub@redhat.com>
47000 PR preprocessor/59935
47001 * input.c (location_get_source_line): Bail out on when line number
47002 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
47004 2014-01-28 Richard Biener <rguenther@suse.de>
47006 PR tree-optimization/58742
47007 * tree-ssa-forwprop.c (associate_plusminus): Handle
47008 pointer subtraction of the form (T)(P + A) - (T)P.
47010 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47012 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
47015 2014-01-28 Richard Biener <rguenther@suse.de>
47018 2014-01-28 Richard Biener <rguenther@suse.de>
47020 PR rtl-optimization/45364
47021 PR rtl-optimization/59890
47022 * var-tracking.c (local_get_addr_clear_given_value): Handle
47023 already cleared slot.
47024 (val_reset): Handle not allocated local_get_addr_cache.
47025 (vt_find_locations): Use post-order on the inverted CFG.
47027 2014-01-28 Richard Biener <rguenther@suse.de>
47029 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
47031 2014-01-28 Richard Biener <rguenther@suse.de>
47033 PR rtl-optimization/45364
47034 PR rtl-optimization/59890
47035 * var-tracking.c (local_get_addr_clear_given_value): Handle
47036 already cleared slot.
47037 (val_reset): Handle not allocated local_get_addr_cache.
47038 (vt_find_locations): Use post-order on the inverted CFG.
47040 2014-01-28 Alan Modra <amodra@gmail.com>
47042 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
47043 * configure.ac <recursive call for build != host>: Define
47044 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
47045 and LD_FOR_BUILD too.
47046 * configure: Regenerate.
47048 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
47050 * config/i386/i386.c (get_builtin_code_for_version): Separate
47051 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
47052 Broadwell from Haswell.
47054 2014-01-27 Steve Ellcey <sellcey@mips.com>
47056 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
47057 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
47058 * config/mips/mips.c (mips_option_override): Change setting
47060 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
47061 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
47062 Change from Mask to Var.
47064 2014-01-27 Jeff Law <law@redhat.com>
47066 * ipa-inline.c (inline_small_functions): Fix typo.
47068 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
47070 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
47071 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
47072 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
47073 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
47074 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
47075 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
47076 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
47077 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
47078 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
47079 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
47080 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
47081 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
47082 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
47083 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
47084 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
47085 (_mm512_storeu_epi64): Ditto.
47086 (_mm512_cmpge_epi32_mask): Ditto.
47087 (_mm512_cmpge_epu32_mask): Ditto.
47088 (_mm512_cmpge_epi64_mask): Ditto.
47089 (_mm512_cmpge_epu64_mask): Ditto.
47090 (_mm512_cmple_epi32_mask): Ditto.
47091 (_mm512_cmple_epu32_mask): Ditto.
47092 (_mm512_cmple_epi64_mask): Ditto.
47093 (_mm512_cmple_epu64_mask): Ditto.
47094 (_mm512_cmplt_epi32_mask): Ditto.
47095 (_mm512_cmplt_epu32_mask): Ditto.
47096 (_mm512_cmplt_epi64_mask): Ditto.
47097 (_mm512_cmplt_epu64_mask): Ditto.
47098 (_mm512_cmpneq_epi32_mask): Ditto.
47099 (_mm512_cmpneq_epu32_mask): Ditto.
47100 (_mm512_cmpneq_epi64_mask): Ditto.
47101 (_mm512_cmpneq_epu64_mask): Ditto.
47102 (_mm512_expand_pd): Ditto.
47103 (_mm512_expand_ps): Ditto.
47104 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
47105 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
47106 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
47107 * config/i386/i386.c (ix86_builtins): Add
47108 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
47109 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
47110 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
47111 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
47112 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
47113 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
47114 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
47115 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
47116 IX86_BUILTIN_PMOVUSQW512_MEM.
47117 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
47118 __builtin_ia32_pmovsqd512mem_mask,
47119 __builtin_ia32_pmovqd512mem_mask,
47120 __builtin_ia32_pmovusqw512mem_mask,
47121 __builtin_ia32_pmovsqw512mem_mask,
47122 __builtin_ia32_pmovqw512mem_mask,
47123 __builtin_ia32_pmovusdw512mem_mask,
47124 __builtin_ia32_pmovsdw512mem_mask,
47125 __builtin_ia32_pmovdw512mem_mask,
47126 __builtin_ia32_pmovqb512mem_mask,
47127 __builtin_ia32_pmovusqb512mem_mask,
47128 __builtin_ia32_pmovsqb512mem_mask,
47129 __builtin_ia32_pmovusdb512mem_mask,
47130 __builtin_ia32_pmovsdb512mem_mask,
47131 __builtin_ia32_pmovdb512mem_mask.
47132 (bdesc_args): Add __builtin_ia32_expanddf512,
47133 __builtin_ia32_expandsf512.
47134 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
47135 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
47136 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
47137 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
47138 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
47139 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
47140 (avx512f_<code>v8div16qi2_mask_store): This.
47141 (avx512f_expand<mode>): New.
47143 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
47145 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
47147 (_mm512_mask_prefetch_i64gather_pd): Ditto.
47148 (_mm512_prefetch_i32scatter_pd): Ditto.
47149 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
47150 (_mm512_prefetch_i64scatter_pd): Ditto.
47151 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
47152 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
47153 (_mm512_mask_prefetch_i64gather_ps): Ditto.
47154 (_mm512_prefetch_i32scatter_ps): Ditto.
47155 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
47156 (_mm512_prefetch_i64scatter_ps): Ditto.
47157 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
47158 * config/i386/i386-builtin-types.def: Define
47159 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
47160 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
47161 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
47162 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
47163 IX86_BUILTIN_SCATTERPFQPD.
47164 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
47165 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
47166 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
47167 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
47168 __builtin_ia32_scatterpfqps.
47169 (ix86_expand_builtin): Expand new built-ins.
47170 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
47171 fix memory access data type.
47172 (*avx512pf_gatherpf<mode>_mask): Ditto.
47173 (*avx512pf_gatherpf<mode>): Ditto.
47174 (avx512pf_scatterpf<mode>): Ditto.
47175 (*avx512pf_scatterpf<mode>_mask): Ditto.
47176 (*avx512pf_scatterpf<mode>): Ditto.
47177 (GATHER_SCATTER_SF_MEM_MODE): New.
47178 (avx512pf_gatherpf<mode>df): Ditto.
47179 (*avx512pf_gatherpf<mode>df_mask): Ditto.
47180 (*avx512pf_scatterpf<mode>df): Ditto.
47182 2014-01-27 Jakub Jelinek <jakub@redhat.com>
47185 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
47186 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
47189 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47191 * common/config/arm/arm-common.c
47192 (arm_rewrite_mcpu): Handle multiple names.
47194 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47196 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
47198 * gimple-builder.h (create_gimple_tmp): Delete.
47200 2014-01-27 Christian Bruel <christian.bruel@st.com>
47202 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
47205 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
47207 * config/pa/pa.md (call): Generate indirect long calls to non-local
47208 functions when outputing 32-bit code.
47209 (call_value): Likewise except for special call to buggy powf function.
47211 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
47212 portable runtime and PIC indirect calls.
47213 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
47214 and PIC call sequences. Use ldo instead of blr to set return register
47215 in PIC call sequence.
47217 2014-01-25 Walter Lee <walt@tilera.com>
47219 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
47220 avoid clobbering a live register.
47222 2014-01-25 Walter Lee <walt@tilera.com>
47224 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
47225 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
47226 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
47227 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
47229 2014-01-25 Walter Lee <walt@tilera.com>
47231 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
47232 arguments on even registers.
47233 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
47235 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
47236 (BIGGEST_ALIGNMENT): Ditto.
47237 (BIGGEST_FIELD_ALIGNMENT): Ditto.
47239 2014-01-25 Walter Lee <walt@tilera.com>
47241 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
47242 insns before bundling.
47243 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47245 2014-01-25 Walter Lee <walt@tilera.com>
47247 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
47248 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
47249 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
47251 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47253 * config/mips/constraints.md (kl): Delete.
47254 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
47255 define expands, using...
47256 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
47257 instructions for MIPS16.
47258 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
47259 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
47261 2014-01-25 Walter Lee <walt@tilera.com>
47263 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
47267 2014-01-25 Walter Lee <walt@tilera.com>
47269 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
47270 (TARGET_EXPAND_TO_RTL_HOOK): Define.
47272 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
47274 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
47277 2014-01-25 Jakub Jelinek <jakub@redhat.com>
47279 * print-rtl.c (in_call_function_usage): New var.
47280 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
47281 EXPR_LIST mode as mode and not as reg note name.
47283 PR middle-end/59561
47284 * cfgloopmanip.c (copy_loop_info): If
47285 loop->warned_aggressive_loop_optimizations, make sure
47286 the flag is set in target loop too.
47288 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
47290 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
47292 * builtins.def: Likewise.
47293 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
47294 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
47295 * ira.c (ira_setup_eliminable_regset): Likewise.
47296 * omp-low.c (gate_expand_omp): Likewise.
47297 (execute_lower_omp): Likewise.
47298 (diagnose_sb_0): Likewise.
47299 (gate_diagnose_omp_blocks): Likewise.
47300 (simd_clone_clauses_extract): Likewise.
47303 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47305 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
47306 correction for little endian...
47307 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
47310 2014-01-24 Jeff Law <law@redhat.com>
47312 PR tree-optimization/59919
47313 * tree-vrp.c (find_assert_locations_1): Do not register asserts
47314 for non-returning calls.
47316 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
47318 * common/config/aarch64/aarch64-common.c
47319 (aarch64_rewrite_mcpu): Handle multiple names.
47320 * config/aarch64/aarch64.h
47321 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
47323 2014-01-24 Dodji Seketeli <dodji@redhat.com>
47325 * input.c (add_file_to_cache_tab): Handle the case where fopen
47328 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
47331 * config/i386/i386.md (pushsf splitter): Get stack adjustment
47332 from push operand if code of push isn't PRE_DEC.
47334 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47337 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
47338 -mquad-memory-atomic. Update -mquad-memory documentation to say
47339 it is only used for non-atomic loads/stores.
47341 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
47342 -mquad-memory or -mquad-memory-atomic switches.
47344 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
47345 -mquad-memory-atomic to ISA 2.07 support.
47347 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
47348 to separate support of normal quad word memory operations (ldq, stq)
47349 from the atomic quad word memory operations.
47351 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
47352 support to separate non-atomic quad word operations from atomic
47353 quad word operations. Disable non-atomic quad word operations in
47354 little endian mode so that we don't have to swap words after the
47355 load and before the store.
47356 (quad_load_store_p): Add comment about atomic quad word support.
47357 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
47358 options printed with -mdebug=reg.
47360 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
47361 -mquad-memory-atomic as the test for whether we have quad word
47362 atomic instructions.
47363 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
47364 or -mp8-vector are used, allow byte/half-word atomic operations.
47366 * config/rs6000/sync.md (load_lockedti): Insure that the address
47367 is a proper indexed or indirect address for the lqarx instruction.
47368 On little endian systems, swap the hi/lo registers after the lqarx
47370 (load_lockedpti): Use indexed_or_indirect_operand predicate to
47371 insure the address is valid for the lqarx instruction.
47372 (store_conditionalti): Insure that the address is a proper indexed
47373 or indirect address for the stqcrx. instruction. On little endian
47374 systems, swap the hi/lo registers before doing the stqcrx.
47376 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
47377 insure the address is valid for the stqcrx. instruction.
47379 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
47380 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
47381 type of quad memory support is available.
47383 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
47385 PR regression/59915
47386 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
47387 there is a danger of looping.
47389 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
47391 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
47392 force flag_ira_loop_pressure if set via command line.
47394 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47396 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
47397 (ashr_simd): New builtin handling DI mode.
47398 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
47399 (aarch64_sshr_simddi): New match pattern.
47400 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
47401 (vshrd_n_s64): Likewise.
47402 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
47404 2014-01-23 Nick Clifton <nickc@redhat.com>
47406 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
47407 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
47408 favour of mcu specific scripts.
47409 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
47412 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47413 Alex Velenko <Alex.Velenko@arm.com>
47415 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
47416 (vaddv_s16): Likewise.
47417 (vaddv_s32): Likewise.
47418 (vaddv_u8): Likewise.
47419 (vaddv_u16): Likewise.
47420 (vaddv_u32): Likewise.
47421 (vaddvq_s8): Likewise.
47422 (vaddvq_s16): Likewise.
47423 (vaddvq_s32): Likewise.
47424 (vaddvq_s64): Likewise.
47425 (vaddvq_u8): Likewise.
47426 (vaddvq_u16): Likewise.
47427 (vaddvq_u32): Likewise.
47428 (vaddvq_u64): Likewise.
47429 (vaddv_f32): Likewise.
47430 (vaddvq_f32): Likewise.
47431 (vaddvq_f64): Likewise.
47432 (vmaxv_f32): Likewise.
47433 (vmaxv_s8): Likewise.
47434 (vmaxv_s16): Likewise.
47435 (vmaxv_s32): Likewise.
47436 (vmaxv_u8): Likewise.
47437 (vmaxv_u16): Likewise.
47438 (vmaxv_u32): Likewise.
47439 (vmaxvq_f32): Likewise.
47440 (vmaxvq_f64): Likewise.
47441 (vmaxvq_s8): Likewise.
47442 (vmaxvq_s16): Likewise.
47443 (vmaxvq_s32): Likewise.
47444 (vmaxvq_u8): Likewise.
47445 (vmaxvq_u16): Likewise.
47446 (vmaxvq_u32): Likewise.
47447 (vmaxnmv_f32): Likewise.
47448 (vmaxnmvq_f32): Likewise.
47449 (vmaxnmvq_f64): Likewise.
47450 (vminv_f32): Likewise.
47451 (vminv_s8): Likewise.
47452 (vminv_s16): Likewise.
47453 (vminv_s32): Likewise.
47454 (vminv_u8): Likewise.
47455 (vminv_u16): Likewise.
47456 (vminv_u32): Likewise.
47457 (vminvq_f32): Likewise.
47458 (vminvq_f64): Likewise.
47459 (vminvq_s8): Likewise.
47460 (vminvq_s16): Likewise.
47461 (vminvq_s32): Likewise.
47462 (vminvq_u8): Likewise.
47463 (vminvq_u16): Likewise.
47464 (vminvq_u32): Likewise.
47465 (vminnmv_f32): Likewise.
47466 (vminnmvq_f32): Likewise.
47467 (vminnmvq_f64): Likewise.
47469 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
47471 * config/aarch64/aarch64-simd.md
47472 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
47473 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
47474 (*aarch64_mul3_elt<mode>): Likewise.
47475 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
47476 (*aarch64_mul3_elt_to_64v2df): Likewise.
47477 (*aarch64_mla_elt<mode>): Likewise.
47478 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
47479 (*aarch64_mls_elt<mode>): Likewise.
47480 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
47481 (*aarch64_fma4_elt<mode>): Likewise.
47482 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
47483 (*aarch64_fma4_elt_to_64v2df): Likewise.
47484 (*aarch64_fnma4_elt<mode>): Likewise.
47485 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
47486 (*aarch64_fnma4_elt_to_64v2df): Likewise.
47487 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
47488 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
47489 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47490 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
47491 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
47492 (aarch64_sqdmull_lane<mode>_internal): Likewise.
47493 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
47495 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
47497 * config/aarch64/aarch64-simd.md
47498 (aarch64_be_checked_get_lane<mode>): New define_expand.
47499 * config/aarch64/aarch64-simd-builtins.def
47500 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
47501 New builtin definition.
47502 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
47503 Use new safe be builtin.
47505 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
47507 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
47509 (aarch64_be_st1<mode>): Likewise.
47510 (aarch_ld1<VALL:mode>): Define_expand modified.
47511 (aarch_st1<VALL:mode>): Likewise.
47512 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
47513 (UNSPEC_ST1): Likewise.
47515 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
47517 * config/microblaze/microblaze.md: Add trap insn and attribute
47519 2014-01-23 Dodji Seketeli <dodji@redhat.com>
47521 PR preprocessor/58580
47522 * input.h (location_get_source_line): Take an additional line_size
47524 (void diagnostics_file_cache_fini): Declare new function.
47525 * input.c (struct fcache): New type.
47526 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
47527 New static constants.
47528 (diagnostic_file_cache_init, total_lines_num)
47529 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
47530 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
47531 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
47532 (get_next_line, read_next_line, goto_next_line, read_line_num):
47533 New static function definitions.
47534 (diagnostic_file_cache_fini): New function.
47535 (location_get_source_line): Take an additional output line_len
47536 parameter. Re-write using lookup_or_add_file_to_cache_tab and
47538 * diagnostic.c (diagnostic_finish): Call
47539 diagnostic_file_cache_fini.
47540 (adjust_line): Take an additional input parameter for the length
47541 of the line, rather than calculating it with strlen.
47542 (diagnostic_show_locus): Adjust the use of
47543 location_get_source_line and adjust_line with respect to their new
47544 signature. While displaying a line now, do not stop at the first
47545 null byte. Rather, display the zero byte as a space and keep
47546 going until we reach the size of the line.
47547 * Makefile.in: Add vec.o to OBJS-libcommon
47549 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47550 Ilya Tocar <ilya.tocar@intel.com>
47552 * config/i386/avx512fintrin.h (_mm512_kmov): New.
47553 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
47554 (__builtin_ia32_kmov16): Ditto.
47555 * config/i386/i386.md (UNSPEC_KMOV): New.
47558 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
47560 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
47561 (_mm512_storeu_si512): Ditto.
47563 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
47566 * rtl.h (get_referenced_operands): Declare.
47567 * recog.c (get_referenced_operands): New function.
47568 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
47569 operands have been referenced when recording LO_SUM references.
47571 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
47573 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
47575 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47577 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
47578 Enable for generic and recent AMD targets.
47580 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
47582 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
47583 ARG_SIZE note when adjustment was eliminated.
47585 2014-01-22 Jeff Law <law@redhat.com>
47587 PR tree-optimization/59597
47588 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
47589 in file. Accept new argument REGISTERING and use it to modify
47590 dump output appropriately.
47591 (register_jump_thread): Corresponding changes.
47592 (mark_threaded_blocks): Reinstate code to cancel unprofitable
47593 thread paths involving joiner blocks. Add code to dump cancelled
47594 jump threading paths.
47596 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
47598 PR rtl-optimization/59477
47599 * lra-constraints.c (inherit_in_ebb): Process call for living hard
47600 regs. Update reloads_num and potential_reload_hard_regs for all insns.
47602 2014-01-22 Tom Tromey <tromey@redhat.com>
47604 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
47606 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
47608 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47610 PR rtl-optimization/59896
47611 * lra-constraints.c (process_alt_operands): Check unused note for
47612 matched operands of insn with no output reloads.
47614 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
47616 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
47617 (mips_move_from_gpr_cost): Likewise.
47619 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
47621 PR rtl-optimization/59858
47622 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
47623 ira_class_hard_regs_num.
47624 (process_alt_operands): Increase reject for dying matched operand.
47626 2014-01-21 Jakub Jelinek <jakub@redhat.com>
47629 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
47630 smaller than size, perform several stores or loads and stores
47631 at dst + count - size to store or copy all of size bytes, rather
47632 than just last modesize bytes.
47634 2014-01-20 DJ Delorie <dj@redhat.com>
47636 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
47637 that CLOBBERs are REGs before propogating their values.
47639 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
47641 PR middle-end/59789
47642 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
47643 (cgraph_inline_failed_type): New function.
47644 * cgraph.h (DEFCIFCODE): Add type.
47645 (cgraph_inline_failed_type_t): New enum.
47646 (cgraph_inline_failed_type): New prototype.
47647 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
47648 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
47649 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
47650 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
47651 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
47652 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
47653 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
47654 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
47655 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
47656 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
47657 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
47658 OPTIMIZATION_MISMATCH.
47659 * tree-inline.c (expand_call_inline): Emit errors during
47660 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
47662 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47665 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
47666 mode attribute in insn output.
47668 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
47670 * output.h (output_constant): Delete.
47671 * varasm.c (output_constant): Make private.
47673 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
47675 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
47677 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47679 PR middle-end/59860
47680 * tree.h (fold_builtin_strcat): New prototype.
47681 * builtins.c (fold_builtin_strcat): No longer static. Add len
47682 argument, if non-NULL, don't call c_strlen. Optimize
47683 directly into __builtin_memcpy instead of __builtin_strcpy.
47684 (fold_builtin_2): Adjust fold_builtin_strcat caller.
47685 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
47687 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
47689 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47690 for SImode_address_operand operands, having only a REG argument.
47692 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
47694 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
47695 loader name using mbig-endian.
47696 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
47698 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47700 * doc/invoke.texi (-march): Clarify documentation for AArch64.
47701 (-mtune): Likewise.
47704 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
47706 * config/aarch64/aarch64-protos.h
47707 (aarch64_cannot_change_mode_class_ptr): Declare.
47708 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
47709 aarch64_cannot_change_mode_class_ptr): New.
47710 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
47711 backend hook aarch64_cannot_change_mode_class.
47713 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
47715 * common/config/aarch64/aarch64-common.c
47716 (aarch64_handle_option): Don't handle any option order logic here.
47717 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
47718 selected_cpu, warn on architecture version mismatch.
47719 (aarch64_override_options): Fix parsing order for option strings.
47721 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47722 Iain Sandoe <iain@codesourcery.com>
47725 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
47726 warning. Amend comment to reflect current functionality.
47728 2014-01-20 Richard Biener <rguenther@suse.de>
47730 PR middle-end/59860
47731 * builtins.c (fold_builtin_strcat): Remove case better handled
47732 by tree-ssa-strlen.c.
47734 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
47736 * config/aarch64/aarch64.opt
47737 (mcpu, march, mtune): Make case-insensitive.
47739 2014-01-20 Jakub Jelinek <jakub@redhat.com>
47742 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
47743 if operands[1] is a REG or ZERO_EXTEND of a REG.
47745 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
47747 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
47749 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
47751 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
47752 long non-pic millicode calls.
47754 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
47756 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
47758 2014-01-19 Kito Cheng <kito@0xlab.org>
47760 * builtins.c (expand_movstr): Check movstr expand done or fail.
47762 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47763 H.J. Lu <hongjiu.lu@intel.com>
47766 * config/i386/i386.md (*lea<mode>): Zero-extend return register
47767 to DImode for zero-extended addresses.
47769 2014-01-19 Jakub Jelinek <jakub@redhat.com>
47771 PR rtl-optimization/57763
47772 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
47773 on the new indirect jump_insn and increment LABEL_NUSES (label).
47775 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
47779 * config.gcc (x86_archs): New variable.
47780 (x86_64_archs): Likewise.
47781 (x86_cpus): Likewise.
47782 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
47783 --with-arch/--with-cpu= options.
47784 Support --with-arch=/--with-cpu={nehalem,westmere,
47785 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
47787 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47789 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
47790 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
47792 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
47794 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
47796 2014-01-18 Jakub Jelinek <jakub@redhat.com>
47799 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
47800 clear cpp_get_options (parse_in)->warn_unused_macros for
47801 ix86_target_macros_internal with cpp_define.
47803 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
47805 * jump.c (delete_related_insns): Keep (use (insn))s.
47806 * reorg.c (redundant_insn): Check for barriers too.
47808 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47810 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
47812 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
47814 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
47815 call to $$dyncall when TARGET_LONG_CALLS is true.
47817 2014-01-17 Jeff Law <law@redhat.com>
47819 * ree.c (combine_set_extension): Temporarily disable test for
47820 changing number of hard registers.
47822 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47824 PR middle-end/58125
47825 * ipa-inline-analysis.c (inline_free_summary):
47826 Do not free summary of aliases.
47828 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47830 PR middle-end/59706
47831 * gimplify.c (gimplify_expr): Use create_tmp_var
47832 instead of create_tmp_var_raw. If cond doesn't have
47833 integral type, don't add the IFN_ANNOTATE builtin at all.
47835 2014-01-17 Martin Jambor <mjambor@suse.cz>
47838 * ipa-cp.c (prev_edge_clone): New variable.
47839 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
47840 Also resize prev_edge_clone vector.
47841 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
47842 (ipcp_edge_removal_hook): New function.
47843 (ipcp_driver): Register ipcp_edge_removal_hook.
47845 2014-01-17 Andrew Pinski <apinski@cavium.com>
47846 Steve Ellcey <sellcey@mips.com>
47849 * config/mips/mips.c (mips_print_operand): Check operand mode instead
47852 2014-01-17 Jeff Law <law@redhat.com>
47854 PR middle-end/57904
47855 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
47856 so that pass_ccp runs first.
47858 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47860 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
47861 (ix86_adjust_cost): Use !TARGET_XXX.
47862 (do_reorder_for_imul): Likewise.
47863 (swap_top_of_ready_list): Likewise.
47864 (ix86_sched_reorder): Likewise.
47866 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
47868 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
47869 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
47870 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
47871 (intel_memset): New. Duplicate slm_memset.
47872 (intel_cost): New. Duplicate slm_cost.
47873 (m_INTEL): New macro.
47874 (processor_target_table): Add "intel".
47875 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
47876 with PROCESSOR_INTEL for "intel".
47877 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
47878 PROCESSOR_SILVERMONT.
47879 (ix86_issue_rate): Likewise.
47880 (ix86_adjust_cost): Likewise.
47881 (ia32_multipass_dfa_lookahead): Likewise.
47882 (swap_top_of_ready_list): Likewise.
47883 (ix86_sched_reorder): Likewise.
47884 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
47885 instead of TARGET_OPT_AGU.
47886 * config/i386/i386.h (TARGET_INTEL): New.
47887 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
47888 (processor_type): Add PROCESSOR_INTEL.
47889 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
47890 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
47892 2014-01-17 Marek Polacek <polacek@redhat.com>
47895 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
47898 2014-01-17 Richard Biener <rguenther@suse.de>
47900 PR tree-optimization/46590
47901 * opts.c (default_options_table): Add entries for
47902 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
47903 all enabled at -O1 but not for -Og.
47904 * common.opt (fbranch-count-reg): Remove Init(1).
47905 (fmove-loop-invariants): Likewise.
47906 (ftree-pta): Likewise.
47908 2014-01-17 Jakub Jelinek <jakub@redhat.com>
47910 * config/i386/i386.c (ix86_data_alignment): For compatibility with
47911 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
47912 decls to at least the GCC 4.8 used alignments.
47915 * tree-nested.c (convert_nonlocal_reference_stmt,
47916 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
47917 of GIMPLE_BIND stmts, adjust associated decls.
47919 2014-01-17 Richard Biener <rguenther@suse.de>
47921 PR tree-optimization/46590
47922 * vec.h (vec<>::bseach): New member function implementing
47923 binary search according to C89 bsearch.
47924 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
47925 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
47926 bitmap pointer again. Make accesses_in_loop a flat array.
47927 (mem_ref_obstack): New global.
47928 (outermost_indep_loop): Adjust for mem_ref->stored changes.
47929 (mark_ref_stored): Likewise.
47930 (ref_indep_loop_p_2): Likewise.
47931 (set_ref_stored_in_loop): New helper function.
47932 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
47933 (memref_free): Adjust.
47934 (record_mem_ref_loc): Simplify.
47935 (gather_mem_refs_stmt): Adjust.
47936 (sort_locs_in_loop_postorder_cmp): New function.
47937 (analyze_memory_references): Sort accesses_in_loop after
47938 loop postorder number.
47939 (find_ref_loc_in_loop_cmp): New function.
47940 (for_all_locs_in_loop): Find relevant cluster of locs in
47941 accesses_in_loop and iterate without recursion.
47942 (execute_sm): Avoid uninit warning.
47943 (struct ref_always_accessed): Simplify.
47944 (ref_always_accessed::operator ()): Likewise.
47945 (ref_always_accessed_p): Likewise.
47946 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
47947 loop postorder numbers here.
47948 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
47951 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
47954 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
47955 on decls for which assemble_alias has been called.
47957 2014-01-17 Nick Clifton <nickc@redhat.com>
47959 * config/msp430/msp430.opt: (mcpu): New option.
47960 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
47961 (msp430_option_override): Parse target_cpu. If the MCU name
47962 matches a generic string, clear target_mcu.
47963 (msp430_attr): Allow numeric interrupt values up to 63.
47964 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
47965 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
47967 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
47969 * config/msp430/msp430.md (popm): Use %J rather than %I.
47970 (addsi3): Use msp430_nonimmediate_operand for operand 2.
47971 (addhi_cy_i): Use immediate_operand for operand 2.
47972 * doc/invoke.texi: Document -mcpu option.
47974 2014-01-17 Richard Biener <rguenther@suse.de>
47976 PR rtl-optimization/38518
47977 * df.h (df_analyze_loop): Declare.
47978 * df-core.c: Include cfgloop.h.
47979 (df_analyze_1): Split out main part of df_analyze.
47980 (df_analyze): Adjust.
47981 (loop_inverted_post_order_compute): New function.
47982 (loop_post_order_compute): Likewise.
47983 (df_analyze_loop): New function avoiding whole-function
47984 postorder computes.
47985 * loop-invariant.c (find_defs): Use df_analyze_loop.
47986 (find_invariants): Adjust.
47987 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
47989 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
47991 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
47992 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
47994 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
47996 * ipa-ref.c (ipa_remove_stmt_references): Fix references
47997 traversal when removing references.
47999 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
48002 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
48004 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
48006 PR middle-end/56791
48007 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
48008 pushing a reload for an autoinc when we had previously reloaded an
48009 inner part of the address.
48011 2014-01-16 Jakub Jelinek <jakub@redhat.com>
48013 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
48015 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
48016 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
48017 when not giving up or versioning for alias only because of
48019 (vect_analyze_data_ref_dependences): Set to true.
48020 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
48022 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
48023 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
48026 PR middle-end/58344
48027 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
48030 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
48031 operand 0 predicate for gathers, use a new pseudo as subtarget.
48033 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48035 PR middle-end/59609
48036 * lra-constraints.c (process_alt_operands): Add printing debug info.
48037 Check absence of input/output reloads for matched operands too.
48039 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
48041 PR rtl-optimization/59835
48042 * ira.c (ira_init_register_move_cost): Increase cost for
48045 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
48047 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
48049 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
48052 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
48053 non-register objects. Use gen_(high/low)part more consistently.
48056 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
48059 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
48060 endian support, remove tests for WORDS_BIG_ENDIAN.
48061 (p8_mfvsrd_3_<mode>): Likewise.
48062 (reload_gpr_from_vsx<mode>): Likewise.
48063 (reload_gpr_from_vsxsf): Likewise.
48064 (p8_mfvsrd_4_disf): Likewise.
48066 2014-01-16 Richard Biener <rguenther@suse.de>
48068 PR rtl-optimization/46590
48069 * lcm.c (compute_antinout_edge): Use postorder iteration.
48070 (compute_laterin): Use inverted postorder iteration.
48072 2014-01-16 Nick Clifton <nickc@redhat.com>
48074 PR middle-end/28865
48075 * varasm.c (output_constant): Return the number of bytes actually
48077 (output_constructor_array_range): Update the field size with the
48078 number of bytes emitted by output_constant.
48079 (output_constructor_regular_field): Likewise. Also do not
48080 complain if the total number of bytes emitted is now greater
48081 than the expected fieldpos.
48082 * output.h (output_constant): Update prototype and descriptive comment.
48084 2014-01-16 Marek Polacek <polacek@redhat.com>
48086 PR middle-end/59827
48087 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
48088 it is error_mark_node.
48090 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
48092 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
48093 VALID_AVX256_REG_OR_OI_MODE.
48095 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
48097 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
48098 current procedure should be profiled.
48100 2014-01-15 Andrew Pinski <apinski@cavium.com>
48102 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
48103 of moving from/to the STACK_REG register class.
48105 2014-01-15 Richard Henderson <rth@redhat.com>
48108 * reginfo.c (global_regs_decl): Globalize.
48109 * rtl.h (global_regs_decl): Declare.
48110 * ira.c (do_reload): Diagnose frame_pointer_needed and it
48111 reserved via global_regs.
48113 2014-01-15 Teresa Johnson <tejohnson@google.com>
48115 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
48117 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
48119 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
48120 and vmulosh rather than call gen_vec_widen_smult_*.
48121 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
48122 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
48123 (vec_widen_smult_even_v16qi): Likewise.
48124 (vec_widen_umult_even_v8hi): Likewise.
48125 (vec_widen_smult_even_v8hi): Likewise.
48126 (vec_widen_umult_odd_v16qi): Likewise.
48127 (vec_widen_smult_odd_v16qi): Likewise.
48128 (vec_widen_umult_odd_v8hi): Likewise.
48129 (vec_widen_smult_odd_v8hi): Likewise.
48130 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
48131 vmuloub rather than call gen_vec_widen_umult_*.
48132 (vec_widen_umult_lo_v16qi): Likewise.
48133 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
48134 vmulosb rather than call gen_vec_widen_smult_*.
48135 (vec_widen_smult_lo_v16qi): Likewise.
48136 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
48137 rather than call gen_vec_widen_umult_*.
48138 (vec_widen_umult_lo_v8hi): Likewise.
48139 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
48140 rather than call gen_vec_widen_smult_*.
48141 (vec_widen_smult_lo_v8hi): Likewise.
48143 2014-01-15 Jeff Law <law@redhat.com>
48145 PR tree-optimization/59747
48146 * ree.c (find_and_remove_re): Properly handle case where a second
48147 eliminated extension requires widening a copy created for elimination
48148 of a prior extension.
48149 (combine_set_extension): Ensure that the number of hard regs needed
48150 for a destination register does not change when we widen it.
48152 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
48154 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
48155 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
48156 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
48157 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
48158 (avr-*-rtems*): Likewise.
48159 (bfin*-rtems*): Likewise.
48160 (moxie-*-rtems*): Likewise.
48161 (h8300-*-rtems*): Likewise.
48162 (i[34567]86-*-rtems*): Likewise.
48163 (lm32-*-rtems*): Likewise.
48164 (m32r-*-rtems*): Likewise.
48165 (m68k-*-rtems*): Likewise.
48166 (microblaze*-*-rtems*): Likewise.
48167 (mips*-*-rtems*): Likewise.
48168 (powerpc-*-rtems*): Likewise.
48169 (sh-*-rtems*): Likewise.
48170 (sparc-*-rtems*): Likewise.
48171 (sparc64-*-rtems*): Likewise.
48172 (v850-*-rtems*): Likewise.
48173 (m32c-*-rtems*): Likewise.
48175 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
48177 PR rtl-optimization/59511
48178 * ira.c (ira_init_register_move_cost): Use memory costs for some
48179 cases of register move cost calculations.
48180 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
48181 instead of BB frequency.
48182 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
48183 * lra-assigns.c (find_hard_regno_for): Ditto.
48185 2014-01-15 Richard Biener <rguenther@suse.de>
48187 PR tree-optimization/59822
48188 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
48189 (vectorizable_load): Use it to hoist defs of uses of invariant
48190 loads out of the loop.
48192 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
48193 Kugan Vivekanandarajah <kuganv@linaro.org>
48196 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
48199 2014-01-15 Richard Biener <rguenther@suse.de>
48201 PR rtl-optimization/59802
48202 * lcm.c (compute_available): Use inverted postorder to seed
48203 the initial worklist.
48205 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48208 * config/s390/s390.c (s390_preferred_reload_class): Don't return
48209 ADDR_REGS for invalid symrefs in non-PIC code.
48211 2014-01-15 Jakub Jelinek <jakub@redhat.com>
48214 * builtins.c (determine_block_size): Initialize *probable_max_size
48215 even if len_rtx is CONST_INT.
48217 2014-01-14 Andrew Pinski <apinski@cavium.com>
48219 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
48220 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
48221 (cortexa53_tunings): Likewise.
48222 (aarch64_sched_issue_rate): New function.
48223 (TARGET_SCHED_ISSUE_RATE): Define.
48225 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48227 * ira-costs.c (find_costs_and_classes): Add missed
48228 ira_init_register_move_cost_if_necessary.
48230 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
48233 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
48235 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
48238 * config/i386/i386.c (type_natural_mode): Add a bool parameter
48239 to indicate if type is used for function return value. Warn ABI
48240 change if the vector mode isn't available for function return value.
48241 (ix86_function_arg_advance): Pass false to type_natural_mode.
48242 (ix86_function_arg): Likewise.
48243 (ix86_gimplify_va_arg): Likewise.
48244 (function_arg_32): Don't warn ABI change.
48245 (ix86_function_value): Pass true to type_natural_mode.
48246 (ix86_return_in_memory): Likewise.
48247 (ix86_struct_value_rtx): Removed.
48248 (TARGET_STRUCT_VALUE_RTX): Likewise.
48250 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
48252 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
48253 converting a conditional jump into a conditional return.
48255 2014-01-14 Richard Biener <rguenther@suse.de>
48257 PR tree-optimization/58921
48258 PR tree-optimization/59006
48259 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
48260 hoisting invariant stmts.
48261 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
48262 invariant loads on the preheader edge if possible.
48264 2014-01-14 Joey Ye <joey.ye@arm.com>
48266 * doc/plugin.texi (Building GCC plugins): Update to C++.
48268 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
48270 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
48271 (_mm_rcp28_round_ss): Ditto.
48272 (_mm_rsqrt28_round_sd): Ditto.
48273 (_mm_rsqrt28_round_ss): Ditto.
48274 (_mm_rcp28_sd): Ditto.
48275 (_mm_rcp28_ss): Ditto.
48276 (_mm_rsqrt28_sd): Ditto.
48277 (_mm_rsqrt28_ss): Ditto.
48278 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
48279 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
48280 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
48281 (IX86_BUILTIN_RCP28SD): Ditto.
48282 (IX86_BUILTIN_RCP28SS): Ditto.
48283 (IX86_BUILTIN_RSQRT28SD): Ditto.
48284 (IX86_BUILTIN_RSQRT28SS): Ditto.
48285 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
48286 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
48287 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
48288 (ix86_expand_special_args_builtin): Expand new FTYPE.
48289 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
48290 (srcp14<mode>): Make insn unary.
48291 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
48292 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
48293 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
48294 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
48295 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
48296 Fix rounding: make it SAE only.
48297 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
48299 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
48301 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
48302 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
48303 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
48304 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
48305 (round_saeonly_mask_scalar_operand4): Ditto.
48306 (round_saeonly_mask_scalar_op3): Ditto.
48307 (round_saeonly_mask_scalar_op4): Ditto.
48309 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48311 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
48312 Implement -maltivec=be for vec_insert and vec_extract.
48314 2014-01-10 DJ Delorie <dj@redhat.com>
48316 * config/msp430/msp430.md (call_internal): Don't allow memory
48317 references with SP as the base register.
48318 (call_value_internal): Likewise.
48319 * config/msp430/constraints.md (Yc): New. For memory references
48320 that don't use SP as a base register.
48322 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
48323 "an integer without a # prefix"
48324 * config/msp430/msp430.md (epilogue_helper): Use it.
48326 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48329 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
48330 AVX512F gather builtins.
48331 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
48332 on gather decls with INTEGER_TYPE masktype.
48333 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
48334 directly into the builtin rather than hoisting it before loop.
48336 PR tree-optimization/59387
48337 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
48338 (scev_const_prop): If folded_casts and type has undefined overflow,
48339 use force_gimple_operand instead of force_gimple_operand_gsi and
48340 for each added stmt if it is assign with
48341 arith_code_with_undefined_signed_overflow, call
48342 rewrite_to_defined_overflow.
48343 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
48344 gimple-fold.h instead.
48345 (arith_code_with_undefined_signed_overflow,
48346 rewrite_to_defined_overflow): Moved to ...
48347 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
48348 rewrite_to_defined_overflow): ... here. No longer static.
48349 Include gimplify-me.h.
48350 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
48351 rewrite_to_defined_overflow): New prototypes.
48353 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48355 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
48357 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
48359 * builtins.c (get_object_alignment_2): Minor tweak.
48360 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
48362 2014-01-13 Christian Bruel <christian.bruel@st.com>
48364 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
48365 optimized non constant lengths.
48367 2014-01-13 Jakub Jelinek <jakub@redhat.com>
48370 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
48371 load as __atomic_load_N if possible.
48373 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48375 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
48377 (rs6000_expand_builtin): Adjust call.
48379 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
48382 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
48383 * config/rs6000/rs6000.c: Include target-globals.h.
48384 (rs6000_set_current_function): Instead of doing target_reinit
48385 unconditionally, use save_target_globals_default_opts and
48386 restore_target_globals.
48388 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
48390 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
48391 (rs6000_expand_builtin): Handle mffs and mtfsf.
48392 (rs6000_init_builtins): Define mffs and mtfsf.
48393 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
48394 (rs6000_mffs): New pattern.
48395 (rs6000_mtfsf): New pattern.
48397 2014-01-11 Bin Cheng <bin.cheng@arm.com>
48399 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
48400 Start narrowing with START. Apply candidate-use pair
48401 and check overall cost in narrowing.
48402 (iv_ca_prune): Pass new argument.
48404 2014-01-10 Jeff Law <law@redhat.com>
48406 PR middle-end/59743
48407 * ree.c (combine_reaching_defs): Ensure the defining statement
48408 occurs before the extension when optimizing extensions with
48409 different source and destination hard registers.
48411 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48414 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
48415 vtables into the type inheritance graph.
48417 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48419 PR rtl-optimization/59754
48420 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
48421 modes in the REGNO != REGNO case.
48423 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48425 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
48427 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48429 PR tree-optimization/59745
48430 * tree-predcom.c (tree_predictive_commoning_loop): Call
48431 free_affine_expand_cache if giving up because components is NULL.
48433 * target-globals.c (save_target_globals): Allocate < 4KB structs using
48434 GC in payload of target_globals struct instead of allocating them on
48435 the heap and the larger structs separately using GC.
48436 * target-globals.h (struct target_globals): Make regs, hard_regs,
48437 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
48438 of GTY((skip)) and change type to void *.
48439 (reset_target_globals): Cast loads from those fields to corresponding
48442 2014-01-10 Steve Ellcey <sellcey@mips.com>
48445 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
48446 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
48447 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
48449 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
48452 * aarch64-modes.def (CC_Zmode): New flags mode.
48453 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
48454 represents an equality.
48455 (aarch64_get_condition_code): Handle CC_Zmode.
48456 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
48458 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
48460 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
48461 extraction in good case.
48463 2014-01-10 Richard Biener <rguenther@suse.de>
48465 PR tree-optimization/59374
48466 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
48467 checking after SLP discovery. Mark stmts not participating
48468 in any SLP instance properly.
48470 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48472 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
48473 when handling a SET rtx.
48475 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48477 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
48478 (cortex-a57): Likewise.
48479 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
48481 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
48483 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
48484 non-iwmmxt builtins.
48486 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
48490 * ipa-devirt.c record_target_from_binfo): Take as argument
48491 stack of binfos and lookup matching one for virtual inheritance.
48492 (possible_polymorphic_call_targets_1): Update.
48494 2014-01-10 Huacai Chen <chenhc@lemote.com>
48496 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
48497 kernel strings for Loongson-2E/2F/3A.
48499 2014-01-10 Jakub Jelinek <jakub@redhat.com>
48501 PR middle-end/59670
48502 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
48503 is_gimple_call before calling gimple_call_internal_p.
48505 2014-01-09 Steve Ellcey <sellcey@mips.com>
48507 * Makefile.in (TREE_FLOW_H): Remove.
48508 (TREE_SSA_H): Add file names from tree-flow.h.
48509 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
48510 * tree.h: Remove tree-flow.h reference.
48511 * hash-table.h: Remove tree-flow.h reference.
48512 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
48513 reference with tree-ssa-loop.h.
48515 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48517 * doc/invoke.texi: Add -maltivec={be,le} options, and document
48518 default element-order behavior for -maltivec.
48519 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
48520 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
48521 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
48522 when targeting big endian, at least for now.
48523 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
48525 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48527 PR middle-end/47735
48528 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
48529 var satisfies use_register_for_decl, just take into account type
48530 alignment, rather than decl alignment.
48532 PR tree-optimization/59622
48533 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
48534 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
48535 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
48536 Don't devirtualize for inplace at all. For targets.length () == 1,
48537 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
48539 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48541 * config/i386/i386.md (cpu): Remove the unused btver1.
48543 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
48545 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
48547 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48550 * tree-core.h (struct target_globals): New forward declaration.
48551 (struct tree_target_option): Add globals field.
48552 * tree.h (TREE_TARGET_GLOBALS): Define.
48553 (prepare_target_option_nodes_for_pch): New prototype.
48554 * target-globals.h (struct target_globals): Define even if
48555 !SWITCHABLE_TARGET.
48556 * tree.c (prepare_target_option_node_for_pch,
48557 prepare_target_option_nodes_for_pch): New functions.
48558 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
48559 * config/i386/i386.c: Include target-globals.h.
48560 (ix86_set_current_function): Instead of doing target_reinit
48561 unconditionally, use save_target_globals_default_opts and
48562 restore_target_globals.
48564 2014-01-09 Richard Biener <rguenther@suse.de>
48566 PR tree-optimization/59715
48567 * tree-cfg.h (split_critical_edges): Declare.
48568 * tree-cfg.c (split_critical_edges): Export.
48569 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
48571 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
48573 * cfgexpand.c (expand_stack_vars): Optionally disable
48574 asan stack protection.
48575 (expand_used_vars): Likewise.
48576 (partition_stack_vars): Likewise.
48577 * asan.c (asan_emit_stack_protection): Optionally disable
48578 after return stack usage.
48579 (instrument_derefs): Optionally disable memory access instrumentation.
48580 (instrument_builtin_call): Likewise.
48581 (instrument_strlen_call): Likewise.
48582 (asan_protect_global): Optionally disable global variables protection.
48583 * doc/invoke.texi: Added doc for new options.
48584 * params.def: Added new options.
48585 * params.h: Likewise.
48587 2014-01-09 Jakub Jelinek <jakub@redhat.com>
48589 PR rtl-optimization/59724
48590 * ifcvt.c (cond_exec_process_if_block): Don't call
48591 flow_find_head_matching_sequence with 0 longest_match.
48592 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
48593 non-active insns if !stop_after.
48594 (try_head_merge_bb): Revert 2014-01-07 changes.
48596 2014-01-08 Jeff Law <law@redhat.com>
48598 * ree.c (get_sub_rtx): New function, extracted from...
48599 (merge_def_and_ext): Here.
48600 (combine_reaching_defs): Use get_sub_rtx.
48602 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
48604 * cgraph.h (varpool_variable_node): Do not choke on null node.
48606 2014-01-08 Catherine Moore <clm@codesourcery.com>
48608 * config/mips/mips.md (simple_return): Attempt to use JRC
48610 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
48612 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48614 PR rtl-optimization/59137
48615 * reorg.c (steal_delay_list_from_target): Call update_block for
48617 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
48619 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48621 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
48622 two duplicate entries.
48624 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
48627 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
48629 * config/mips/mips.c (mips_truncated_op_cost): New function.
48630 (mips_rtx_costs): Adjust test for BADDU.
48631 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
48633 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
48635 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
48636 (*baddu_si): ...this new pattern.
48638 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48641 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
48643 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
48645 PR middle-end/57748
48646 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
48648 (expand_expr, expand_normal): Adjust.
48649 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
48650 inner_reference_p. Use inner_reference_p to expand inner references.
48651 (store_expr): Adjust.
48652 * cfgexpand.c (expand_call_stmt): Adjust.
48654 2014-01-08 Rong Xu <xur@google.com>
48656 * gcov-io.c (gcov_var): Move from gcov-io.h.
48657 (gcov_position): Ditto.
48658 (gcov_is_error): Ditto.
48659 (gcov_rewrite): Ditto.
48660 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
48661 only part to libgcc/libgcov.h.
48663 2014-01-08 Marek Polacek <polacek@redhat.com>
48665 PR middle-end/59669
48666 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
48668 2014-01-08 Marek Polacek <polacek@redhat.com>
48671 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
48673 2014-01-08 Jakub Jelinek <jakub@redhat.com>
48675 PR rtl-optimization/59649
48676 * stor-layout.c (get_mode_bounds): For BImode return
48677 0 and STORE_FLAG_VALUE.
48679 2014-01-08 Richard Biener <rguenther@suse.de>
48681 PR middle-end/59630
48682 * gimple.h (is_gimple_builtin_call): Remove.
48683 (gimple_builtin_call_types_compatible_p): New.
48684 (gimple_call_builtin_p): New overload.
48685 * gimple.c (is_gimple_builtin_call): Remove.
48686 (validate_call): Rename to ...
48687 (gimple_builtin_call_types_compatible_p): ... this and export. Also
48688 check return types.
48689 (validate_type): New static function.
48690 (gimple_call_builtin_p): New overload and adjust.
48691 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
48692 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
48693 (gimple_fold_stmt_to_constant_1): Likewise.
48694 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
48696 2014-01-08 Richard Biener <rguenther@suse.de>
48698 PR middle-end/59471
48699 * gimplify.c (gimplify_expr): Gimplify register-register type
48700 VIEW_CONVERT_EXPRs to separate stmts.
48702 2014-01-07 Jeff Law <law@redhat.com>
48704 PR middle-end/53623
48705 * ree.c (combine_set_extension): Handle case where source
48706 and destination registers in an extension insn are different.
48707 (combine_reaching_defs): Allow source and destination registers
48708 in extension to be different under limited circumstances.
48709 (add_removable_extension): Remove restriction that the
48710 source and destination registers in the extension are the same.
48711 (find_and_remove_re): Emit a copy from the extension's
48712 destination to its source after the defining insn if
48713 the source and destination registers are different.
48715 PR middle-end/59285
48716 * ifcvt.c (merge_if_block): If we are merging a block with more than
48717 one successor with a block with no successors, remove any BARRIER
48718 after the second block.
48720 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
48722 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
48724 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
48727 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
48728 for 14-bit register offsets when INT14_OK_STRICT is false.
48730 2014-01-07 Roland Stigge <stigge@antcom.de>
48731 Michael Meissner <meissner@linux.vnet.ibm.com>
48734 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
48735 Only check TFmode for SPE constants. Don't check TImode or TDmode.
48737 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
48739 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
48742 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
48744 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
48745 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
48746 rtx is const0_rtx or not.
48748 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
48751 * target-globals.c (save_target_globals): Remove this_fn_optab
48753 * toplev.c: Include optabs.h.
48754 (target_reinit): Temporarily restore the global options if another
48755 set of options are in force.
48757 2014-01-07 Jakub Jelinek <jakub@redhat.com>
48759 PR rtl-optimization/58668
48760 * cfgcleanup.c (flow_find_cross_jump): Don't count
48761 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
48762 to determine what is counted.
48763 (flow_find_head_matching_sequence): Use active_insn_p to determine
48765 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
48767 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
48768 determine what is counted.
48770 PR tree-optimization/59643
48771 * tree-predcom.c (split_data_refs_to_components): If one dr is
48772 read and one write, determine_offset fails and the write isn't
48773 in the bad component, just put the read into the bad component.
48775 2014-01-07 Mike Stump <mikestump@comcast.net>
48776 Jakub Jelinek <jakub@redhat.com>
48779 * tree-core.h (struct tree_optimization_option): Change optabs
48780 type from unsigned char * to void *.
48781 * optabs.c (init_tree_optimization_optabs): Adjust
48782 TREE_OPTIMIZATION_OPTABS initialization.
48784 2014-01-06 Jakub Jelinek <jakub@redhat.com>
48787 * config/i386/i386.h (struct machine_function): Add
48788 no_drap_save_restore field.
48789 * config/i386/i386.c (ix86_save_reg): Use
48790 !cfun->machine->no_drap_save_restore instead of
48791 crtl->stack_realign_needed.
48792 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
48793 this function clears frame_pointer_needed. Set
48794 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
48795 and DRAP reg is needed.
48797 2014-01-06 Marek Polacek <polacek@redhat.com>
48800 * doc/implement-c.texi: Mention that other integer types are
48801 permitted as bit-field types in strictly conforming mode.
48803 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
48805 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
48806 is newly allocated.
48808 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
48810 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
48812 2014-01-06 Martin Jambor <mjambor@suse.cz>
48815 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
48817 * ipa-prop.c (ipa_print_node_params): Fix indentation.
48819 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
48823 * var-tracking.c (add_stores): Preserve the value of the source even if
48824 we don't record the store.
48826 2014-01-06 Terry Guo <terry.guo@arm.com>
48828 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
48830 2014-01-05 Iain Sandoe <iain@codesourcery.com>
48833 * config/darwin.c (darwin_function_section): Adjust return values to
48834 correspond to optimisation changes made in r206070.
48836 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
48838 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
48839 from prefetch_block tune setting.
48840 (nocona_cost): Correct size of prefetch block to 64.
48842 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
48844 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
48845 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
48846 used to save the static chain register in the computation of the offset
48847 from which the FP registers need to be restored.
48849 2014-01-04 Jakub Jelinek <jakub@redhat.com>
48851 PR tree-optimization/59519
48852 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
48853 ICE if get_current_def (current_new_name) is already non-NULL, as long
48854 as it is a phi result of some other phi in *new_exit_bb that has
48857 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
48858 or vmovdqu* for misaligned_operand.
48859 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
48860 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
48861 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
48862 aligned_mem for AVX512F masked aligned load and store builtins and for
48863 non-temporal moves.
48865 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
48867 PR tree-optimization/59651
48868 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
48869 Address range for negative step should be added by TYPE_SIZE_UNIT.
48871 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
48873 * config/m68k/m68k.c (handle_move_double): Handle pushes with
48874 overlapping registers also for registers other than the stack pointer.
48876 2014-01-03 Marek Polacek <polacek@redhat.com>
48879 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
48882 2014-01-03 Jakub Jelinek <jakub@redhat.com>
48885 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
48888 * config/i386/i386.md (MODE_SIZE): New mode attribute.
48889 (push splitter): Use <P:MODE_SIZE> instead of
48890 GET_MODE_SIZE (<P:MODE>mode).
48891 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
48892 (mov -1, reg peephole2): Likewise.
48893 * config/i386/sse.md (*mov<mode>_internal,
48894 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
48895 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
48896 *<code><mode>3, *andnot<mode>3<mask_name>,
48897 <mask_codefor><code><mode>3<mask_name>): Likewise.
48898 * config/i386/subst.md (mask_mode512bit_condition,
48899 sd_mask_mode512bit_condition): Likewise.
48901 2014-01-02 Xinliang David Li <davidxl@google.com>
48903 PR tree-optimization/59303
48904 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
48905 (dump_predicates): Better output format.
48906 (pred_equal_p): New function.
48907 (is_neq_relop_p): Ditto.
48908 (is_neq_zero_form_p): Ditto.
48909 (pred_expr_equal_p): Ditto.
48910 (pred_neg_p): Ditto.
48911 (simplify_pred): Ditto.
48912 (simplify_preds_2): Ditto.
48913 (simplify_preds_3): Ditto.
48914 (simplify_preds_4): Ditto.
48915 (simplify_preds): Ditto.
48916 (push_pred): Ditto.
48917 (push_to_worklist): Ditto.
48918 (get_pred_info_from_cmp): Ditto.
48919 (is_degenerated_phi): Ditto.
48920 (normalize_one_pred_1): Ditto.
48921 (normalize_one_pred): Ditto.
48922 (normalize_one_pred_chain): Ditto.
48923 (normalize_preds): Ditto.
48924 (normalize_cond_1): Remove function.
48925 (normalize_cond): Ditto.
48926 (is_gcond_subset_of): Ditto.
48927 (is_subset_of_any): Ditto.
48928 (is_or_set_subset_of): Ditto.
48929 (is_and_set_subset_of): Ditto.
48930 (is_norm_cond_subset_of): Ditto.
48931 (pred_chain_length_cmp): Ditto.
48932 (convert_control_dep_chain_into_preds): Type change.
48933 (find_predicates): Ditto.
48934 (find_def_preds): Ditto.
48935 (destroy_predicates_vecs): Ditto.
48936 (find_matching_predicates_in_rest_chains): Ditto.
48937 (use_pred_not_overlap_with_undef_path_pred): Ditto.
48938 (is_pred_expr_subset): Ditto.
48939 (is_pred_chain_subset_of): Ditto.
48940 (is_included_in): Ditto.
48941 (is_superset_of): Ditto.
48943 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48945 Update copyright years.
48947 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
48949 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
48950 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
48951 config/arc/arc.md, config/arc/arc.opt,
48952 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
48953 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
48954 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
48955 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
48956 config/linux-protos.h, config/linux.c, config/winnt-c.c,
48957 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
48958 vtable-verify.c, vtable-verify.h: Use the standard form for the
48961 2014-01-02 Tobias Burnus <burnus@net-b.de>
48963 * gcc.c (process_command): Update copyright notice dates.
48964 * gcov-dump.c: Ditto.
48966 * doc/cpp.texi: Bump @copying's copyright year.
48967 * doc/cppinternals.texi: Ditto.
48968 * doc/gcc.texi: Ditto.
48969 * doc/gccint.texi: Ditto.
48970 * doc/gcov.texi: Ditto.
48971 * doc/install.texi: Ditto.
48972 * doc/invoke.texi: Ditto.
48974 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
48976 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
48978 2014-01-01 Jakub Jelinek <jakub@redhat.com>
48980 * config/i386/sse.md (*mov<mode>_internal): Guard
48981 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
48983 PR rtl-optimization/59647
48984 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
48985 new_rtx into UNSIGNED_FLOAT rtxes.
48987 Copyright (C) 2014 Free Software Foundation, Inc.
48989 Copying and distribution of this file, with or without modification,
48990 are permitted in any medium without royalty provided the copyright
48991 notice and this notice are preserved.